rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, at the root, Android is Linux. So, become a proficient Android programmer and you will learn both Java and Linux. You can also use other low-level languages with Android such as C, C++, and Python.

rproffitt commented: Let's also add we get to learn XML and much more. However I do run into folk that bristle when I hit my laptop to google it. Learn to google it. +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is why I hate WordPress. They totally misuse PHP, mixing their PHP and HTML code. I would fire the lot of their developers if I was a senior/principal/managing engineer there. PHP should be written much like C++. Place the HTML and other client-side code (javascript, etc) in string variables within a class method. Once it is fully formed, then output the method data. There are several advantages to this. First is that you can debug it. Next is that it is a LOT more efficient time-wise since there is only one large message from server to client, and not a gazillion small ones. Suddenly, adding an image to the header becomes a trivial exercise.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Maybe he just wants to illustrate proper PHP or HTML code? :-)

rproffitt commented: If so, it would be nice to get the rest of the tutorial in the work. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What deceptikon said. We don't do your homework for you. Make an honest attempt to do the assignment, and post your code with errors here in order to get our help.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you see /dev/sdf1 in /dev? If so, that is the partition that you need to mount, not /dev/sdf. IE: mount /dev/sdf1 /home/me/Desktop/mnt/

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Android is NOT an RTOS. It is Linux with some RT extensions, but is is not hard real time. The QNX OS (used on some Blackberry phones) is a hard RTOS. You can make sure that certain operations and interrupt handlers will meet hard deadlines in terms of system response.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try running fsck on the partition of the sd card. Unfortunately, most use FAT file systems, so you may need to use fsck.fat to fix it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Word supports regular expression operations that will do this. RTFM.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If it is a laptop, you may have to remove the battery and short out a couple of contacts on the motherboard. Check with the Samsung web site's support pages for this system.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try ClamWin - open source and free. I use it on Windows, and the ClamAV version for my Linux systems.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Homework I presume. We don't do your homework for you. Make an honest effort to do the work and when you run into coding problems, post the code and errors here and then we may be able to help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

$value is a dynamic variable that only lives within the scope of the loop it is used in. You have declared it with the loop declaraction.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You just need a standard GNU C compiler to build a kernel module. You have to learn how to unpackage kernel source with dependencies so you get the headers and such that you need to build the module. In any case, your question indicates that you have some serious studying and experimentation to do before you are ready for this, unless that module has already packaged it to build easily, much like nVidia kernel modules. Even in that case, you still need the kernel headers and such to build them.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Not enough information. Need server specs, operating system, and a lot of other stuff. With this "nugget" of information, you are on your own!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just get your timezone set properly and the proper clock time will take care of itself. When I go elsewhere, in another timezone, I just reset the clock timezone, and the rest is handled for me!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What the Reverend said - 5 meters is a REALLY long USB cable and unless it is designed to handle those distances (double-shielded tight twisted pair wires in the cable) you are not going to get much power through. Also, your system may not recognize the device. Post the output from lsusb (assuming you are running a Linux system) here for analysis.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Backup data. Install new system. Re-install your applications (hope you have the license keys if needed), restore data, and have "fun". I'm sure Win10 will provide you with all the "fun" you need for a long time to come - NOT!

rproffitt commented: A fresh machine is more fun. +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The pointer just points to NULL. It has no storage space. you need to allocate space. You could use strdup to do that. IE, sentence = strdup("helloworld"); strdup will allocate space for the string (including terminating NUL character) and copy the string to the newly allocated space that "sentence" now owns.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I always cap them because then you can detect them in your code a LOT easier! Also, I am not sure, but they may need to be all caps anyway. I'd have to refer to the reference documentation to be sure.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think that Android is trying to tell you that "D:\MyApplication3.idea\workspace.xml" is not a valid key file. Not sure how to fix other than going to the Android web site and doing some research on keystore files.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Note that Java is not deterministic. You can do and time an operation once, but the next time the timing may be completely different. If you do this, and the garbage collector kicks in, your times will be wildly different. Do a hundred measurements of the same operations and average them out, and you may get a "reasonable" value.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think Microsoft's philosophy is "if it ain't broke, break it anyway"...

rproffitt commented: Also, many engineers. +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try copying it, not dragging/dropping it.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I would agree with rproffitt. It will probably be cheaper (as well as faster and easier) to get something from Fry's or Best Buy or wherever. It will be new, and have a warranty.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Symantec's certs were serious hacked recently which is why this happened.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Posting 200+ lines of code for a simple problem is disrespectul of the time we spend to help you. Please show the relevant code for review.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Books by Niklaus Wirth and Donald Knuth are good for this. Not cheap, but worth having on hand - they all have places of honor on my book shelf.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You need an encrypt method that takes a list or array of files argument so it can encrypt each and put the output into the output file.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you know any C++ or other object oriented languages such as Java or C#? If so, consider PHP to be C++ for the web: classes, methods, member and global/static variables as well as just-plain-functions. Most people make a hash of PHP, but if they program it like they would C++ then all of a sudden it becomes a lot simpler to deal with.

ddanbe commented: Nice explanation! +15
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Generally, the timestamp field will not be updated unless the row has changed, update statement notwithstanding. IE, it is indicating when the row was physically updated.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try using a live DVD instead of USB drive. That way, any faulty software on the live image can't break the media. Also, I am guessing that the ISO you built your live image from is faulty. Have you run a checksum on it and compared that to what is on the system you got it from? Also, did you get it from the Ubuntu web site, or somewhere else?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Here's an alternative post:

How plan for gobbledegook (hacker) network blank word?
Ans: Ask Scoobydoo?

rproffitt commented: I had to ask Shaggy at http://www.cartoonnetwork.com/games/scooby/askswami/ +12
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This is a bad mixture of C and C++. Also, your main() function does nothing. First question is whether you are are supposed to be writing C or C++ code? If C++, then your structs for Graph and Edge should be classes and not structures. Yes, structs in C++ are classes where all members are public. If that is what you want, then ok. Another issue is that you are not properly encompassing expressions such as using while (e < V - 1) instead of while (e < (V - 1)) - it could possibly be evaluated as while ((e < V) - 1). Always be explicit in what you mean when writing code like this. This sort of code may work 99% of the time. That other 1% will bite you right on the ass! Oops. Sorry but I didn't mean for the rocket to fly into the sun! Doh! Also, if this is supposed to be C++ use operator new instead of malloc(). If you have to, use calloc() instead - at least that way the memory allocated will be cleared to null values.

One final issue (but not the last) is that you don't validate your array boundaries such as in your find() and Union() functions.

So, review all of your code and decide what you are trying to do.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What tinstaafl said. Compilers turn all variable names into symbols anyway. So using X vs. Games doesn't make any difference to the size or performance of your code, but it DOES make it a lot easier to debug!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I assume your boys have some of their own $$? If they need more RAM, let them buy it. However, for the CPU, go as high as you can afford. As pty said, an i7 isn't that much over the top. Also, forget about SSD drives. Too expensive and in the long term, not as reliable as spinning rust. Get bigger rotating rust buckets instead. That's what I have in my new laptop - 4GHz i7, 16GB RAM, 1TB hard drive.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Re floating point elements. I think you are correct, but just like integers, you may need multiple buckets such as [0,1], [2,3], etc to cover the range of elements. I haven't used a bucket sort since the 1980's so my recollection is a bit misty at the moment. :-) Insertion sorts, binary tree sorts, etc. not such a problem. Anyway, if you have Knuth's volume 3, "Sorting and Searching", then the answers are there. When I have to go back to "the source", that's where I go. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, nobody here is going to analyze 5000+ lines of binary dump code. The first post indicating that a signal 11 (segfault) caused this problem is helpful. It means that the PHP code is either overwriting memory in the wrong places, or has run out of stack space, or has tried to access/write a null pointer.

So, is this PHP code something you wrote, or got from elsewhere?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

And yes, we had images of the employees stored in the database so they were displayed on the terminal when they clocked in/out and security could verify there were the right person and not someone else substituting for them (not uncommon). FWIW, that was one of the most high-tech stainless steel plants in the country.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I had to write barcode scanning and decoding software back in the mid-1980's so our customers could use barcode scanners to log in/out workers from the plant (a major steel manufacturer). I had to research all of that so that the software could store the data (login/logout times) into the database for each employee. It was a LOT faster than the old way of punching in/out of a timeclock. The company liked it. The employees liked it. Win-win all around. This isn't rocket science, but you need to do your research first.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just to confuse you (bumfuzzle you) a bit, there are also multi-maps... Maps with duplicate keys for one or more values. Here is the cplusplus.com page on them: http://www.cplusplus.com/reference/map/multimap/
Myself, I try to keep away from them - FAR away! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You'll do ok Kasis if you remember that you can find most of your answers on the Internet. Post here when you are totally bumfuzzled (confused). We will be happy to help then.

FWIW, a map is a collection of key/value pairs that is indexed on the key. A hash-map is a map where the keys are hash values of something, possibly the value, but not necessarily. In any case a map consists of unique keys - duplicate keys are not allowed, although duplicate values are allowed if necessary.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Under the covers, all Java objects are references. When you assign one variable to another, the reference is copied, not the object's data. At that point, both variables hold a valid reference to the the object and the actual object data cannot be garbage-collected until both variables are cleared (set to NULL or another object reference). This is one reason why "dangling references" are such a problem in Java as well as C++. Caveat programmer!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think ClamAV/ClamWin have such api's. The key thing is that you need a signature for the virus you are scanning for. All A/V tools such as Clam have large databases of virus signatures that they scan for. I suggest Clam because it is fully open source and free.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Can you please phrase the set of instructions in C++ compatible to my PC performance.

They don't exist. Realtime is a kernel issue, not a compiler or CPU one. Utilizing 75% of your ram? Just allocate (operator new) as much memory as you want to utilize. However, this isn't going to do what you think unless you totally shut down the virtual memory and swap file(s) that your system is using.

It is obvious that you have a lot to learn before you get this deep into the internals of current systems. FWIW, Windows has no realtime extensions for Win7 and such. I think they have a Windows RT version that may give you deterministic timing behavior (more or less), but I doubt that it is hard realtime. More likely soft realtime. IE, you need hard realtime in order to apply a rate monotonic analysis to your process/thread stream to determine computationally that all deadlines will be met. This is the "rocket science" of computer science.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You will find some useful stuff in http://www.cplusplus.com/
If you plug "recursion" into their search bar you get a lot of articles that cover the subject.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

RTFM? The C Builder documentation should cover what you need to do for a new installation.

rproffitt commented: Or use the prior answers. https://www.daniweb.com/programming/software-development/threads/236961/linker-fatal-error +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, asking us to analyze over 250 lines of code is just disrespectful. Please indicate what errors you are getting, and where they are coming from at the least.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Each day you should create a new table with an auto-increment column, otherwise you will have to change your algorithm and use something else for the SN. There are other ways around this problem, but they are too complex to go into here. I've had to deal with them in the past and none of the solutions are simple and require some serious coding (mostly not complex, but careful).