rproffitt 2,701 https://5calls.org Moderator

Something doesn't sound right. The linked folder is throwing me a curve here. The link is just that. If the link folder exists before you make a link, I hope the link command would fail. Something smells off here.

rproffitt 2,701 https://5calls.org Moderator

@OP. DId you complete all the exercises of the FREE PDF of the K&R book yet? It's easy enough to find at https://www.google.com/search?q=The+C+Programming+Language

Bit manipulation is likely around chapter 2.9. May want to re-read that chapter and exercises.

rproffitt 2,701 https://5calls.org Moderator

I can't know how you are looking at those folders. We know Windows Explorer might not show a file or folder instantly. That's a long standing issue. No reason to dive into that. That's why I know to tap F5.

Also, since Explorer is buggy (even on W10) I always revert to the old ways. Command line, DIR. I'm sure you follow that.

rproffitt 2,701 https://5calls.org Moderator

This is partly why I know to tap F5 on Windows Explorer or just open a command line and DIR.

rproffitt 2,701 https://5calls.org Moderator

I think you need to pare this down more. I started reading at line 1 and by line 20 I finally reached where you might be asking a question.

Since you know your use of the arrays and what it means, I think you need a python debugger tool. Or need to learn how to print values so you can see what your code and variables are at some line of code.
https://www.google.com/search?q=python+debugging shows there is a debugger so if I was working this, I would be using that to check over the varialbes as it runs.

rproffitt 2,701 https://5calls.org Moderator

Try sharing your code and where you are having troubles. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question before you post again so you know how this works.

Why must the groups be implemented by functions? This is your app, right? Not some homework assignment.

rproffitt 2,701 https://5calls.org Moderator

That's a lot to ask since it's homework. You pasted hundreds of lines so do the following in this order.

  1. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question
  2. It's rare to find folk to read past 100 lines. If you have a function that long, it is accepted that you break it up into manageable chunks.
  3. Pare down your request to where you are having trouble and where it's at.
rproffitt 2,701 https://5calls.org Moderator

I don't see where you tried another account and safe mode. Try those. I don't write how since XP users are well seasoned and we have the internet.

rproffitt 2,701 https://5calls.org Moderator

This is your first post. This looks like an assignment but read this first before you reply.
https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

If you are a programmer in a hurry I guess you could google the answer like http://stackoverflow.com/questions/2510383/how-can-i-calculate-what-date-good-friday-falls-on-given-a-year but how would that help you learn to program?

rproffitt 2,701 https://5calls.org Moderator

Yeah! Spaghetti with sauce!!!

rproffitt 2,701 https://5calls.org Moderator

I didn't explain it well. For DropBox the local sync dir is the cache. There is no other space used so no duplication.

OneDrive uses a junction so it "looks" like a duplcate but is not. I showed a person long ago a test I used for this. I dropped a 1GB file in the junction and it shows in 2 folders. But the disk space only dropped 1GB. Delete the file in either folder and both directory entries vanish and you get back 1GB not 2.

I'm not an OneDrive user but have run into folk with junction questions where they swear it was creating duplicates and eating space.

rproffitt 2,701 https://5calls.org Moderator

@assertnull. When I replied I didn't find the tag so I asked. I wonder why it didn't show when I posted.

PS. Added with edit. The forum seems to have a new layout. Maybe someone moved the cheese.

rproffitt 2,701 https://5calls.org Moderator

I've yet to see this effect. However I have run into folk that swear that a junction takes up space. I've yet to find this to be true. Well, yes a junction is in entry in the file system which could take a few hundred bytes but after that you run into other user issues.

https://social.technet.microsoft.com/Forums/windows/en-US/97d2a170-21a8-4cd6-b77a-1accd68d626e/junction-to-2nd-drive-still-gets-calculated-as-used-space?forum=w7itproui for example is another back and forth.

OneDrive content is usually cached local and on the cloud for reasons. I use DropBox as I opted out of a microsoft account. For dropbox I like what they did since the content is on my PC, my backup PC and the dropbox cloud. You could debate if that's 3 copies and you only needed one?

rproffitt 2,701 https://5calls.org Moderator

I think network-served banner ads are dead here. Native advertising should be fine.

How we got here, to me is interesting. The primary reason I installed an adblocker was malvertising and when the advert took over half the screen. So how else to stem the flow? I did similar blocks on TV by cutting the cable and using Roku and Netflix when I do watch stuff.

rproffitt 2,701 https://5calls.org Moderator

What language is this being coded in?

Do you consider While (c, c++, others) to be a loop? Some consider loops to be the loop keyword (natch) or the word for. Tell us what language this is in. Also share why do this since there are some that are done for both good and bad reasons.

rproffitt 2,701 https://5calls.org Moderator

@lytonia. You seem to have pasted your assignment. Maybe you need to be clear that you are hunting for folk to write your app for you. That's done by offering some pay and a longer spec.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question which covers a lot of ground about asking for coding help.

rproffitt 2,701 https://5calls.org Moderator

Just a FYI for Dani. I was out and about and bumped into someone that should be contacting you shortly. It's a professor and they have students and more. I can't write it all here, but they may omit I sent them your way. They said something about being on Longuyland.

rproffitt 2,701 https://5calls.org Moderator

@John. You didn't post any code or tell where you got stuck. Before you write again, read
https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question
and consider that I see no one writing your app for free. If you do need to hire some help, then there's a subforum and tags for that.

rproffitt 2,701 https://5calls.org Moderator

The thing is, here in the NSA (country formarly known as the USA) the government has taps all over. While Yahoo got slammed over writing search code for this country, these taps were dictated before.

Please read https://en.wikipedia.org/wiki/Lavabit as it revealed those taps years ago. Levison was under a gag order and eventually closed up shop.

Given the taps all over on internet, email, phone, SMS and more, just how do you propose to solve this while communicating with others?

-> If you want to open a discussion about secure comms, let's do that! For me the old ways can be the best ways.
https://www.google.com/search?q=nsa+can't+crack+codebook

So let's say you and I want to securely message each other. Let's make an app that uses a codebook. Since there are so many, we have to first agree on a codebook then our apps fetch those books and then... You get the idea.

rproffitt 2,701 https://5calls.org Moderator

I see you wanted a little more.

Flashing most Android devices is well, done with tools like http://donandroid.com/odin-tutorial-how-to-use-odin-to-flash-rom-on-android-device-634 BUT these tools may vary with the target.

You asked more so how about Linux to some Android phone? https://www.google.com/search?q=install+linux+on+android+phone seems to get into it.

-> But this is where we get into deep waters. If you want to make your own OS and apps, we won't be seeing you for decades. I suggest you take a bog standard Linux that was used in the linux on android before and step 1, learn to compile that version and step 2, alter it to do what you want.

Stefce commented: Thank you, BTW i'm asking this cause of learning purposes and protect my privacy +0
rproffitt 2,701 https://5calls.org Moderator

Possible? Yes. There are folk that create new "roms" or images all the time at XDA Forums. But the toolset and experience is something that won't fix in just one book.

You may have to rub shoulders with that now defunct Firefox OS on a cell phone effort. The hardware looked no different than a run of the mill Android phone.

Stefce commented: said enough thanks :D +2
rproffitt 2,701 https://5calls.org Moderator

For cloning I've been using the Apricom USB 3.0 drive clone kit and software. Some won't think it's worth it. I have hair.

As to the RAM it looks OK at first glance. If the seller won't answer, that's a bad sign but doesn't mean it will or won't work.

rproffitt 2,701 https://5calls.org Moderator

@OP, rubberman is right. You are falling for the trap "it works." Uninitialized variables is a big no-no in programming. Just because it works does not mean it's correct. I'd stop and learn this before you get burned later over it.

Here's the google on that. https://www.google.com/search?q=c%2B%2B+uninitialized+variables&ie=utf-8&oe=utf-8

So in some IDEs the memory space is cleared for you but when you compile or run outside the IDE it can blow up.

True story. I was on a team that traveled over 6 thousand miles many times over this issue. The code had been outsourced and they didn't believe you needed to initialize variables. Hard expensive lessons for both companies. For me, a breeze of a job since it was not a design issue but one of the basics.

rproffitt 2,701 https://5calls.org Moderator

Then let's call this a failed experiment. That is, when we write code we have a design or result in mind. If you just want to print the value 11, you can take a hello world and change the string to 11.

There's a lot more wrong with your code than lines 12 and 27. For example, C++ line 27 even if it worked would not print "11" but would output, possibly a Vertical Tab character. Don't believe it? Simplify it to setting a value to 11 and printing that value.

Can you share how you got this far? It's odd to see all those includes and you not use them.

rproffitt 2,701 https://5calls.org Moderator

Here's the thing. You didn't reveal what your code was supposed to do. I would be guessing what all that code was supposed and can't seem to find a data type Point in line 12. Maybe you left out more code or just need to reveal the software design specification.

rproffitt 2,701 https://5calls.org Moderator

Just a comment about code formatting. Your code above is all over the map. Extra blank lines, varying parens and brace alignment and so on. It's not easy to read so it made it hard to follow. When presenting code to others, pick a coding style and stick to it.

Examples at https://en.wikipedia.org/wiki/Indent_style

rproffitt 2,701 https://5calls.org Moderator

I see you got the tag right but you didn't share your work so far. I see your assignment so read
https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question next to see what the next step is.

rproffitt 2,701 https://5calls.org Moderator

Nice attempt but seems to fall short of what http://phpfiddle.org/ offers.

No VIM at the fiddle but it has SQL and more.

rproffitt 2,701 https://5calls.org Moderator

To me this sounds like the old ftp and rsync discussion ( https://www.google.com/search?q=is+rsync+better+than+ftp+mirror&ie=utf-8&oe=utf-8 ) so I'd pick over that. You would have to benchmark the byte count of each system to see which has the lower overhead.

I like the banter at https://ask.slashdot.org/story/03/02/13/2132221/ftp-better-than-http-or-obsolete

At the end of the day your choice on how much overhead as you up your sync rate. At the office we settled for daily syncs. During the day we could always issue a command to "do it now."

rproffitt 2,701 https://5calls.org Moderator

I read what looks like your other post at https://www.daniweb.com/digital-media/digital-marketing/search-engine-strategies/threads/506136/seeking-seo-advice#post2210328

Are you not already doing this? Or are you a shill setting up to spam your services?

rproffitt 2,701 https://5calls.org Moderator

vb.net can call up word to perform actions. But you should research prior discussions like https://www.google.com/search?q=vb.net+office+integration&ie=utf-8&oe=utf-8

That is, all you need to know might be on the web. I can't guess what you mean by "connect."

rproffitt 2,701 https://5calls.org Moderator

I took a look at this old thing and there's a book and more out there. https://pmdapplied.com/

What I see is something that looks to have no active updates for about 5 years so this is a tool and like any tool of this ilk, once in a while you find someone thinking it does "this." A few others may think it's a panacea.

Don't get me wrong I like automated code inspection but there are folk that want to make it a rule or a gauntlet thou shall pass. (or not.) For me I'll get by with turning all the warnings on with a simple -wall.

rproffitt 2,701 https://5calls.org Moderator

Gentlemedia is right.

At the link supplied "Warning: To prevent unsolicited downloads over cellular networks at the user’s expense, embedded media cannot be played automatically in Safari on iOS—the user always initiates playback." So there it is.

Added with edit. Had a second thought and tested it. GIF plays without user intervention. It's not perfect but I did check this out on my iPhone 5s on iOS 10.0.2. Works. If you need a convertor, try Zamzar.

rproffitt 2,701 https://5calls.org Moderator

Don't get hung up on video encoding. Just move forward to HTML5 and use the autoplay tag noted in the docs.
https://developer.apple.com/library/content/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/AudioandVideoTagBasics/AudioandVideoTagBasics.html

Added with edit. Dummy me. The example shows a .mov. So there you are.

rproffitt 2,701 https://5calls.org Moderator

Sorry lew but inxi would have me sleuthing the machine's make and model then I could check on compatible RAM.

Is this a test to see if I can guess the laptop model? I'm good but given you have that info, seems I could use that time to do something else.

Maybe I got that wrong but I have run into folk that write "I told you enough for you to figure it out. You're not allowed to ask questions." You can imagine my response. Mostly I let them eat static.

rproffitt 2,701 https://5calls.org Moderator

So your question had me look to other ways. https://tinyapps.org/blog/misc/201005080700_boot_any_iso_from_usb.html was a fun read as a few look new and interesting.

rproffitt 2,701 https://5calls.org Moderator

About virtual machines don't make partition changes to physical USBs. I recall doing that years ago. It was long ago but today I stick with a bootable copy of GPARTED when I need to edit partitons.

rproffitt 2,701 https://5calls.org Moderator

You wrote "WinUSB is not a choice since it's seemingly offline, unetBootin" so I shared what I used last time. Once in a while you have a client that has no Windows machines at all so you get the files from them and make it for them. I understand that but I'm a bit of a lazy bum. That is, if I find I need a Windows machine, that's what I use. I am agnostic about OSes.

rproffitt 2,701 https://5calls.org Moderator

I can sort of answer that. That 2006 Dell E1505 was a return from my son from his college days. It only had 1GB RAM but a bad HDD.

The 120GB SSD was all of 30 bucks on a door buster sale so that went in. The boot time was about 45 seconds with just 1GB RAM on W10. Since it was looking good at this point I found a 2GB memory upgrade kit for 15 bucks on Amazon. That helped boot time fall to under 30 seconds. So yes, more RAM is a good thing. I quote the 33 seconds because it shows just how much time you can save with SSD.

The 33 second is from a cold boot (not sleep) and launching Firefox, typing test into the google search box, press enter and getting a result.

Let's hope your laptop is better than this 2006 E1505.

I'm unclear on your "what to look for" question. I get memory from crucial.com and sometimes from Amazon. I only look to see if they mention my model or if I'm chancing it, I look to DDR type, voltage, and the 20 other items that DDR specs can have. I don't like doing that work so often it's Crucial or Amazon items that mention the target machine.

rproffitt 2,701 https://5calls.org Moderator

Sorry but the last time I did this I used MSFT's tool at http://wudt.codeplex.com/

Now some .iso's do not work on USB so you have to test that out. I used the old ODD (optical disc drive) to be sure my ISO worked before I did the USB test. And to make matters more fun, BIOS issues. I don't own your PC so I can't tell you the settings to use for 7 and 10. I know on 7, uefi is the pits at times.

rproffitt 2,701 https://5calls.org Moderator

Just a tip. Always add the model number so folk don't have to sleuth out what model this was.

Laptop CPUs are rarely changeable and sourcing is a pain too. Forget all that and pop in the SSD now. The speed gain I'm seeing is phenomenal.

Example. Dell E1505 2006 Inspiron with 2GB RAM 120GB SSD boots W10 in 33 second from cold to a Google web result. That's one old laptop yet it's very usable. With the old HDD it took 5+ minutes to do that.

rproffitt 2,701 https://5calls.org Moderator
  1. Try google and google scholar about your topic.
  2. Put it into Wolfram Alpha ( https://www.wolframalpha.com/examples/EquationSolving.html ) and see if you get your answer.

  3. There are folk that attempt such but don't write code and ask "How to do it?" Another member here shared a video about this. I'm hoping one day they do another skit about programming.

  4. Solve it and write down all the steps. Now take each step and create code that the computer and you understand. Complete for each step and then you've done it.
rproffitt 2,701 https://5calls.org Moderator

Close enough. My view on picking power supplies is close to that. Today unless you are an electroinics engineer you also get a "single rail PSU." My choice is to much higher on the Watts since I want my PC to run for more than 2 years.

Your car at 80 MPH breaks down faster than at 70.

rproffitt 2,701 https://5calls.org Moderator

Nothing glares at me and says it won't work. There are too many builds to choose from today and if I was going for my first build I would check out https://www.reddit.com/r/PCMasterRace/wiki/builds too.

Installing the OS is well done on the web so it's Windows so you dive in, install and start your trip through driver hell. It's not that bad, just remember you can always start over and change your plan. Only the newest of the new worry about this area. I haven't and I've been at this since the early days (pre-PC.)

rproffitt 2,701 https://5calls.org Moderator

"You're a programmer, Ishtiaq_1 !"

  • Hagrid.

Anyhow you could write a service that you send a message to and it does this for you on demand.
https://www.google.com/search?q=command+line+to+disable+a+device&ie=utf-8&oe=utf-8 finds it can be done via a command line so you as a programmer would craft a service that checks for say a message on schedule or event (your choice) and does the deed. That service would be given the rights to do that.

Such a large company must have a few programmers laying about.

rproffitt 2,701 https://5calls.org Moderator

I would be guessing if by notepad you meant a "file." Your question reads better if I change your words to ones programmers around me use when discussing code, files and parsing.

In fact your post reads like your first quarter assignment to read and parse a file. Parsing input is a little done.

So let's get down to work. Ready? What question did you have? I see code, some statements by you but no question.

rproffitt 2,701 https://5calls.org Moderator

The thing with code is there is always a better way.

rproffitt 2,701 https://5calls.org Moderator

Try adding a loop to encompass or enclose what you want to loop on.

In psuedocode.
loop
what you want to loop on
until exitcondition.

rproffitt 2,701 https://5calls.org Moderator

I gave this post a few days and to me, either you are asking folk to write your code or the question is unclear.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question and then clarify your question.

rproffitt 2,701 https://5calls.org Moderator

Font mapping. While I know a bit about Windows font mapping I had to see if Mac OS has that.

https://www.google.com/search?q=font+mapping&ie=utf-8&oe=utf-8#q=Apple+Mac+OS+X+font+mapping+

I have to write the well came up dry on that. So back to the classic here. Take your font file, edit it then put it on your Apple and use it.
Font editing on the Apple is so done that I'll stop here.