rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Flash itself is being deprecated in favor of HTML5 for video applications. As you should know, PHP is server-side code whereas javascript, etc are client-side tools. If you want this to be a client-server application, then use PHP on the server to build/send javascript, jquery and such as strings to the client. They can be a browser on the mobile device, or on any system. Doing that, making it a brower-based application, you don't need to put your app in any mobile device "store". If you do want to run it as a "native" app on devices, then you will need to port it to the preferred languages/apis for the devices you are going to support. That will be a lot of work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If you need, I'll dig out my text book for that class. It should still be on my shelf somewhere... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Time to take it to the repair shop if you cannot even boot into the BIOS.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I only run Windows on my Linux system in a virtual machine. I have a licensed copy of Windows 7, but it refuses to allow me to register it with MS which results in degraded operations. I also have XP and will install that in another VM - never had a problem with that. I think that part of the problem with Win7 is that it requires access to the BIOS flash data area to store encrypted keys, but VirtualBox doesn't support that "feature". XP isn't so picky... :-) Truth be told, I rarely have need to run Windows any longer. LibreOffice is a great substitute for MS Office (and cheap at twice the price - $0.00), and the only time I need Windows is for some more advanced scanner functions than xsane gives me on Linux. I can still access those in the Win7 VM however, so it isn't much of an issue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@JamesCherrill - I agree. I learned some programming first - Fortran in Engineering School, BASIC, dBase-II, and then C and C++ (along with Cobol, Dibol, Snobol, SmallTalk, Prolog, and others over time). These days, Java, JavaScript, PHP, and more. However, soon after I started, I realized that just programming was not sufficient and I needed a more fundamental understanding of algorithms - what they are, how to develop them, etc. I learned by reading and studying the giants of the software engineering discipline.

So, learning a language, and then using that to express algorithms is a good approach. What language is not important, but something that is inherently object oriented is a good idea, such as Java, C++, Python, et al.

Ghost0s commented: thanks a lot +1
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Do you have to use SQL? First, solve the problem mathematically using an arbitrary reference point (latitude and longitude). Compute what the L&L (latitude and longitude) would be for a distance of 5km from the reference point in any direction. Then, you will understand how to derive that from database entries. Note that you may want to compute this in an abstract manner, rather than just 5km east, west, north, or south of the reference location. That seems to be what you are trying to do, but SQL is NOT a good language for such abstractions unless you fully understand the permutations involved first.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, one of my best friends, Bruce Ravenel, one of the inventors of the Intel x86 processor family, was a graduate student of Wirth at the University of Colorado (Wirth was a visiting professor then). He (Bruce) is the person who got me into software engineering.

Ghost0s commented: rubberman i trust your answers they are always helpful but you didnt specify algo or programming can u give me few steps to follow and start my way +1
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is a great book by Niklaus Wirth (the inventor of Pascal and Modula programming languages) called "Algorithms + Data Structures = Programs". This is one of the bibles of software engineering. My copy is from the 1980's, but it has been revised and updated a number of times since then. You can find it on Amazon. Well worth spending some time and money on. You may also be able to find copies on the internet. This was, at the time, one of the most important text books for learning software engineering.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Your PHP restart script may need to specify a valid IP address, such as localhost (127.0.0.1:80). 0.0.0.0:80 is not a valid IP address. FWIW, the :80 part is the port that PHP will be listening on. Also, port 80 is the default for http (web services), and that may be already used by Apache. What version of PHP are you using?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

ddanbe is being nice. We don't do your homework for you - please read this site's terms of service. Make an honest attempt to solve the problem. Write the code. Post the code and problems, error messages, etc here and then we can help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think something munged your system. Do the following:

  1. Run the disc check tool to see if the file system is ok. If it is, go to #2 (which will require a reboot).
  2. Schedule the sector check tool to run on reboot.
  3. Run a virus scanner on your file system.

These will verify that the disc and file system are ok, and try to fix them if not. If the disc and file system are ok, then if you have a recovery partition on the disc, boot from that and run the recovery tool to replace lost dll's and such. I assume you have a good virus scanner? If not, you can download and run the open source scanner ClamWin.

DDoerschuk commented: All three suggestions were correct and diagnosed problems! +1
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Go to the Services page in the Control Panel and see if the spooler is listed there. If it is running then try to restart it. If not running, then start it and click on the autostart icon so it will start on next reboot of the OS. If it isn't showing up at all, then go to the add/remove software page. On the left side of the screen should be a panel showing what Microsoft services and applications have been installed. There should be an Add button which would show available applications and services - the print spooler should show up there.

rch1231 commented: Excellent answer and what I was just about to suggest. +11
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Remove it. DO NOT OPEN IT! It may well be malware, ready to infect your system if you open it. I don't know, but as the saying goes, better safe than sorry!

happygeek commented: Absolutely agree - especially considering that we are talking about a PDF here! +13
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most open-sourced binaries and sources have been digitally signed with md5, or preferably sha-256 signatures, making it difficult for malware writers to create alternative versions of this code. This is not a perfect solution (no such exists in my opinion), but it does move the bar much higher.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is also, as I mentioned, the issue of maximum current draw. You want to be sure that the new power supply can provide that much amperage. The voltage is only 1/2 of the equation. For example, I have an HP power adapter in hand that provides a 1.0amp max power at 18volts. So, you need to know what your device's power needs are at those 12 volts, and be sure that the power supply can provide that many amps.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When proprietary software is hacked, you are SOL in terms of fixing it since you do not have access to the source code. FOSS is not such, and since you can access the source code, you can analyze and fix it as necessary. So, in relative terms, Open Source software is MUCH more secure than proprietary code. I do not run proprietary code any longer. No malware on my Linux systems!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You missed Libre Office for office applications (word processing, spreadsheets, etc) which is available for the Mac - and free/open source as well!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, I don't mean to say that it will take you 15+ years to become a professional game developer. Just it will take that long to become one of the best. At the least, however, it will take you 4 or 5 years to learn enough to become employable in the industry. Equivalent to a BS degree. I have plenty of friends who did that, and went on to become top developers in that, or in many cases, other fields. Game programming and game theory expertise opens a lot of doors for the software engineer.

There are exceptions, but they are rare, geniuses that intuitively understand the domain. The fact that you asked the question(s) you did tell me you are not one of those. My grandson is. I am not. I am a top software engineer, but it took me a good 10 years to get "my chops" so to speak. My grandson makes me look like a doofus, and he is just 21 now. He was doing stuff I could only imagine when he was 8 or 10. This is a guy that builds his own CNC machines so he can mod his motorcycle... He then fixes bugs in some of the components he has to purchase, and sells the fixes for those back to the manufacturer. :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

That and two weeks I can make you an astrophysicist. Get real! This is not simple stuff, "give me all related things to the game developement"! Study, experiment, study some more, experiment some more, ...

And to become an astrophysicist you need 4 years for a BS, 2 more for an MS, and up to 6+ years for a PhD. My father was one, so I understand a bit of that. My wife is a particle physicist. After her BS, it took her 6 years to get her PhD at a top university, then another 10 years of post doctoral research before she got a permanent position on staff at a top international research laboratory.

To become a top game developer, it will take a similar amount of time. Don't give up. Just don't be impatient, and make small steps at first until you understand what you are doing. There is a lot of sources on the internet to help you, but until you actually start writing games and understanding the subtleties of the subject, anything else is just simple B.S.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, study AI for about 4 years at a college level. Next, learn CLIPS because an inference engine needs a rule engine to work. While you are doing that, learn to program in LISP and Prolog which are the two major AI programming languages. I have a nice shelf of books that are standards in the domain... FWIW, I wrote a rule engine in C++ about 15 years ago that is used to help run semiconductor manufacturing plants. It is extensively used in most 300mm semiconductor fabs in the world today.

pritaeas commented: Great! Now gimme the codez ;) +14
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

In theory you can't, but the terms of service for this web site indicate that even if I knew how, I couldn't tell you anyway. Please search the web for this information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The cost per gallon is an integer, so decimals won't work for any integer value where you need to input a fractional value. Use doubles for those as well.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There are some excellent Linux systems for business desktops and laptops, many of which are based upon the Debian system. I'll mention some in a moment. As for office automation tools (word processing, slide shows and presentations, spreadsheets, etc) there is Libre Office, an advanced fork of Open Office. For web browsing, there are Chrome, Firefox, Opera, and a number of clones of Firefox, etc. There are excellent audio/video tools for playback as well as audio/video editing, or format conversion. There are also CD/DVD authoring tools, and many other things, most all of which are FOSS (Free and Open Source).

Debian-based distributions you may want to check out:

  1. Point Linux: pointlinux.org
  2. Linux Mint: linuxmint.com
  3. Ubuntu: ubuntu.com

Have fun!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@danibootstrap - NO YOU CANNOT JUST MODIFY THE IOCTL CALL! This is what I've been trying to tell you. Ioctl is just a user-space function that sends messages to the appropriate kernel module. Changing ioctl will gain you nothing, nada, zip, zero... If you need to do what you say, and there are no means to set to set the GPIOs, then you need to get into kernel module programming, which is a pretty steep learning curve.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

(Somewhat sarcastically), have you tried installing Linux on the system? :-) Sorry, but I couldn't help myself! I think Win7 was the last decent Windows distribution.

gyno commented: will be interested in the world of Linux,so help me wit info or links +2
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Other comments. The signature of fun() is this: int16_t fun(char* iaddr); However, you never return anything from the function, which is what the int rc is intended for. Also, you should initialize rc to a sane value when you declare it. Next, the iaddr argument should be a const char* and not a char*. Finally, you can use strdup() instead of malloc()+strcpy() which will take care of the terminating null properly for you.

Moschops is 100% in that once you change the pointer p with p++ it is no longer pointing at an address that free will work with. You need to assign p to another pointer first, and then free that one. To avoid all of this, you can use alloca() + strcpy() which will allocate your memory on the stack, which will automatically cleaned up when the function terminates and the stack unwinds. One major advantage of that is that you don't need to use free().

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

If the argument to Fun ()is a reference and not a copy, then that should also work.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

It depends. Some seem to indicate the percentage of the CPU that the process is using. Others will indicate what percentage of cache hits don't find the data needed in the cache and so require reloading the data from memory (ram). You might want to read the man page for perf-stat for more information.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

A USB cable that is more than 10 feet long (3+ meters) is going to be dicey at best. The fact that it worked with your old WiFi gear was luck. 5 meters (15 feet) is already getting to the limits of the tech for unaugmented (non-active) cables.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Lots of good answers here! In this particular example, const is not required, but may, as indicated by others, allow the compiler to utilize some optimizations which may (or may not) help performance.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming perf top is single threaded, then it has to go through the process table linearly, and it may have then found that ComputeDotProduct_ref had reduced its CPU load in the interim, hence listing it again. These tools aren't "exact science", but are for general monitoring purposes. IE, the results will change significantly (usually) from run to run.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Have you tried this and seen what it does? That will likely give you a clue.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Are you sure you are adding the .jar file to a directory where Eclipse can find it? Have you tried using the precise location in the Eclipse configuration for the ODCB file?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Lines 9 and 10 essentially have the same function signatures, which is why you are getting this error. You need to remove line 9 which is friend void fun (int a, int b, int c);. In line 10, the default value for c should be OK. If not for your use, you need to explain your usage further.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Respect your app users. They are paying for bandwidth, so if you store videos and photos in the "cloud", they pay for it! Let them store these on their system unless THEY decide to upload to the cloud! Anyway, you don't need to pay for a server, but you WILL piss of your users if they suddenly discover they have huge bills to pay to their cell providers!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Without details about your application stack, this would be impossible to estimate. Each Heroku application is run in a dyno, which is essentially a Linux container. You really need to read the Heroku reference documentation on their web site: https://devcenter.heroku.com/articles/how-heroku-works

skanagaraju commented: Thank you.,..will read about it... +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Is this a school exercise, or a work-related issue?

Manikanta Sharma commented: Work Realted +0
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Don't throw exceptions from a constructor.
  2. See #1.

If you do have an exeptional condition inside a constructor, then you need to set a member variable indicating that the construction failed. Remember, your object may be the base of another that will naturally call your constructor. If you throw an exception, the derived class object will never see it, though the constructing code should be able to catch the exception, but it can also check the base class exception variable to determine that the object construction failed at some level.

  1. Test, test, test!
  2. See above.

Make sure your unit tests force such conditions to see how well they are handled and that you can handle them sanely. Is your code running a nuclear power plant? A plane in flight? Don't let "good enough" be your philosophy!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Good post "Geek"... :-) Done right, steganography is hard to detect, especially if the code is encrypted first, and then if the embedding is also ramdomized.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

The names pretty much say it all: ARP == Address Resolution Protocol. RARP == Reverse Address Resolution Protocol.

This should help: http://www.differencebetween.com/difference-between-arp-and-vs-rarp/

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Using Windows? ASP.net is ok. Want something more neutral? Use PHP.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think your use of a double-quoted string is the problem. IE, the order_type in (:dest), should be order_type in ('30','31','32'). The double quotes are likely the cause of your issue. Your string "dest[20]" can't be used this way. Try using this: dest[3][3] = {"30","31","32"}. Also, how are you binding the data to the placeholder :dest?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Since the DDR3-1600 CAS 11 worked, my guess is that it is compatible with the DDR-3 1066/1333, but it will only run at the 1066 speed of the memory bus that the computer provides. IE, you can use a faster RAM, but it won't run any faster than the computer does.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Sorry. We don't do your homework for you. Show the work, and we will help. No work - no help...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As per Moschops. In my opinion, this is a textbook exercise to teach you the perils in performing evaluations (functions) on arguments in another function. This problem, caused by others, has caused me many sleepless nights living inside a debugger!

In any case, some compilers will evaluate arguments left-to-right, and others right-to-left. IE, this is one of those "we left it up to the compiler writers to decide" things that the C/C++ standards committees agreed on. IE, they couldn't decide to agree, so they left it up to someone else! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I will always be suspicious of vendor-written and distrubted programming languages. Lock-in is the least of the issues. Open standards exist for a reason. This is why I don't like Java - it isn't open, and sucks for a variety of reasons!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I switched to Linux exclusively a long time ago (about 10 years) and have not regretted it in the least! I still run WinXP and Win7 in virtual machines, and they do catch viruses occasionally. Linux? Never a problem.

Tcll commented: just be careful not to elude people into thinking linux can't get viruses ;) +4
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is this search engine called Google that can help you find out this sort of information, and in depth...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Any recent system will have USB 2.0 and/or 3.0 connections. What is your motherboard? If it is old, then you may be able to purchase a PCI usb hub to plug into the backplane. Until I know exactly what MB you have, then I cannot help any further than this general info.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Most WiFi networks are secured. Are you sure you are using the correct passphrase or password? FWIW, if a WiFi access point (AP) is using WEP, then you may need the entire 48 hex-digit key and not a passphrase. If WPA, then a passphrase should work. I have an android mobile as well (Samsung Galaxy S5) and have no problems, other than needing upon occasion a full 48 digit key for WEP-encoded connections. Most AP's these days use WPA, but there are still some WEP configured devices out there. My wife's old AP was WEP, and I had to use the 48 hex-digit key for that. She switched to a new device (the old one finally died) and is now using WPA, so the simpler passphrase works nicely.