rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Just remember that the mysql... code in PHP has been deprecated in favor of mysqli... Eventually, the older stuff will not be supported, and possibly not available.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, without any error or other output, there isn't much we can do, other than analyze your code. Also, why are you using pascal? That is just such a dead language (no disrespect to Niklas Wirth intended).

And FWIW, I haven't used Pascal in about 35 years...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, why are you using mysql arguments (deprecated) instead of mysqli? Also, your argument to mysql_select() is incorrect. I think you should be using $dbcnx instead of $db_database. $db_database is only a name, not a database connection. Also, you are not capturing any database errors that mysql is generating as far as I can see.

So, go back to the documentation on php.net for more study...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, the partition that you are going to load the OS on has to be flagged as bootable (using fdisk). Next you need to install a bootable OS on that partition. See the source code for unetbootin for some good illustrations on how to do that. It will happily create a bootable USB stick from most any Linux live cd/dvd ISO file.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, erase the boot/partition sector - with linux: dd if=/dev/zero of=/dev/sdX count=1
This will erase the boot/partition sector. Then use fdisk to create a new partition for whatever file system type you want. Then format that with the file system desired as in: mkfs -t fs-type /dev/sdX1
The fs-type option can be vfat, ntfs, ext2, ext3, ext4, etc. For current Windows systems, ntfs is a good option. The vfat (fat32) is not really a good idea other than being more universally usable.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

As per andy1973's question, there is no ssh in the provided code. The wget command has nothing to do with ssh.

JeoSaurus commented: I think by "SSH" basketmen just means "shell" +5
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming you don't need anything on the device, just reformat it as a raw drive. Then, add a partition, and format that with the file system you want to use. Simple with Linux. More complex (more steps) with Windows.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I haven't gotten that far into your code yet, but WHY are you writing those silly temp_sqrt(int) and similar functions? That just so unnecessary. If you need to compute the square root or a power of some integers, just cast the numbers to floats/doubles as appropriate and do it directly! In C/C++ programming, the less code the better, and the easier it is to debug!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You probably need single quotes around $userid like what you did with main_image. Next question. What is the definition of this table. IE, what types are user_id and main_image?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Anyway, that's what IBM, Zenith, HP, and Apple taught back when I was managing a tech consulting firm that sold that gear, and I still have the certs/diplomas to prove it! :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, don't blow the dust out. Use a vacuum instead. Blowing puts the dust in places where you don't want it, causing problems like this. After vacuuming, then plow with dry air (compressed air cans for this can be found at Office Depot et al, Best Buy, and such), and vacuum again.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
  1. Don't hijack a 6 year old (or someone else's) thread.
  2. See #1.
  3. Don't point to a web site to show your code. Post it in a code block here instead.
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I've purchased refurbs from Dell in the past and had no problems with them. You might want to check what is available on their web site. They come with factory warranty and support, or at least they used to.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

So, have you tried it? Did it work? If not, let us know. Please test these snippits before posting here. If it works, then you are wasting a lot of time. If not, then someone can help you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Except on my work Win7 machine, I ONLY run Windoze in a Linux virtual machine! Fortunately, there are few programs I use (and those rarely these days since most vendors are getting pretty savvy about supporting Linux) that require Windows. The one Windows software I can't live without, Sparx Enterprise Architect, runs flawlessly in Wine on Linux. They have spent a lot of cycles making sure of that, because they cannot afford a cross-platform port.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I find that embedding php inside javascript or html to be very problematic and difficult to debug. I prefer to build up my javascript and html inside of php where adding the variables is trivial. Then the javascript or html that is sent to the client is clean, and performs better.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

@AndrisP is correct. If you use prepared statements with placeholders you are much safer from SQL injection attacks for one thing.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Contact HP tech support. They will probably have you send it in for repair.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What was the site? It could be that Google really has no information about the site. This can easily happen with new sites I would think.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Agree 110% with @David_W. I get cranky when someones wants me to find a needle in a 1000 line haystack of crufty code. Remember the KISS principle! I have to deal with stuff like this at work, and if the perpetrators of the outrage were still working there, I'd hang them with their own shoelaces!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Or a light-weight Linux system, which is basically what a Chromebook is. In any case, they are also much less likely to become infected with malware than a Windows system, plus they are free!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Things that take up ram in an otherwise under-utilized Windows system:

  1. Too many unneeded services or background applications running.
  2. File system indexing.
  3. Related to #1, too much factory installed cruft that you don't want or need. Included with this is anti-malware software (needed) that has on-access scanning turned on (not usually needed). Disable that if you can.

In any case, how much RAM do you have, and how much is being used?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This auto-update to Win10 almost fubar'd my brother-in-law's computer. He called me for tech support, and we were able to restore his Win7 system, and save his data... Bad Microsoft! Bad Kitty! Stop pooping on the keyboard!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You probably need to add a "-L <boost-library-path>" and "-l boost_system-mt" to your make file linkage (usually LFLAGS). FWIW, you are also looking for a statically linked boost library. Most are shared libraries, which you should use unless you REALLY need static linkage. Since the library is in your build area, my guess is that you did not run "make install" as root after you build the libraries. You CAN add /home/myname/Desktop/MyProject/build/lib to your LD_LIBRARY_PATH environment variable... May or may not work.

BTW, have you ever built/installed 3rd party libraries on Linux/Unix before?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok... Not much help here. There a ton of API's that will do that. Please be more specific about what your needs are.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Until you do simplify it, I am not looking any further to help you, and if anyone else does, they deserve all the pain they will definitely suffer!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

When people start using 3 pointer redirections in a function (as you do with your read() function) my eyes roll back in my head and I tell the developer to KISS my ass! That's KISS in Keep It Simple, Stupid!

I see that DaniWeb's sanitization software has turned my reference to a donkey into a ### string... :-)

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Probably not. Windows doesn't play nice with anyone else, even itself. You could install a Linux OS, and it will allow you to do that, boot any OS on the system drives. There may be a means to do what you want, but I don't know how myself. Anyone else here have better advice?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Try a cold reboot (not a warm restart) and hold down the F2 or Esc key immediately after hitting the power switch/button.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

You are passing 5 arguments instead of the 4 that the procedure is defined to use. It looks like the 5th argument is the @studID you are declaring later in the procedure. Why not place that in the argument list?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This may help: http://stackoverflow.com/questions/7917905/how-to-use-vlc-live-streams-with-html5-video#7955331

Not a simple solution, but it may work for you.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Line 41 is incorrect. It should be scanf("%d", *n);. Go from there, and review all your code for incorrect usage of pointers, etc. Another mistake is on line 44. You are allocating n number of movies. I don't think that was your intention (or was it?). Anyway, there are a LOT of this sort of mistake in your code. Fix it and post your corrections for further comment.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

FWIW, these days, it is better for more processing to be run on the client rather than the server? Why you may ask? Because servers have to server possibly thousands or millions of users over a short period, so reducing the processing load there allows a better interactive experience, especially given the powerful processors and adequate memory most current user-facing systems possess.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Javascript can be used for either client or server-side usage, but it is most commonly used for client side stuff, especially graphics-intensive stuff that should most appropriately be run on the client. Other than that, it is a general-purpose web programming language. PHP really is designed for server-side programming, and can send html or javascript code the the client for processing and display there. It (PHP) is commonly misused and that leads to insecure web applications. Properly used, it is a very good OOP (object-oriented programming) language with a lot of C++ flavor. I actually used it at Nokia to write a web-based cell-phone emulator!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

What rproffit said. In places where I worked that had/have guess access points, the router that the guest AP's are connected with are NOT connected to the corporate network, but directly to the internet. If they require access to the corporate network, and are given the means to do so (VPN access), then they can use that to get into the corporate network, but that is not normal. Generally, only company computers that are appropriately screened and scanned for malware are allowed on the corporate network. IE, even remotely, I can ONLY use the corporate laptop to access corporate resources, with some exceptions.

rproffitt commented: That's how it's done. +8
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Everyone was a noob once. I won't say in which century I was, but let's just say that Fortran IV was a newish thing then... :-)

And folks, why was @adele downvoted? I've giving her an upvote. Just stating she is a noob to the forums and programming isn't cause (IMO) to dis her!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, I would construct a simple string variable with the entire SQL statement, and output that to see what it actually generated.

The next thing to realize is that the mysqli...error() functions require an argument which points to the link, such as in your case $insert. IE, the or die (mysqli_connect_error()) should probably be or die (mysqli_error($insert)) or or die (mysqli_connect_error($insert)). Personally, I'd use mysqli_error($insert) since there could be an error that is not related to the connection, but with the statement itself.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Looking for a friend, or help with something?

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

There is also the possibility that the network card has been disabled in the OS - this can be done in Windows or Linux both. Go to the networking page in the OS and disable the network card, reboot, and re-enable it again. I've seen this work on either type of system. Often the rebooting part is not needed, especially for Windows.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, please don't ask us to do your work or homework for you without making an honest effort to solve the problem first. @rproffitt was being nice in providing a couple of relevant links for you to review. In any case, these are very simple problems. The math is well-known. You just need to apply that to some simple (very simple) computer code.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Well, since an external display has no problem, I don't think it is the video adapter or chip set. It may be a problem with the connection between the adapter and the screen. Usually on a laptop that is a ribbon cable. It may have a bad or loose connector, or the solder connections for the connector are faulty. Dell usually fixes this stuff PDQ, so if you can live without your laptop for up to a week, then send it in for factory repair. If it is still under warranty, then they will send you a replacement with a factory-paid return box. You switch out your hard drive (simple to do) and send back the old system. They did that for me a number of times over the years, which is one reason I usually get the extended (3+ year) warranty.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

This, malloc(sizeof *new); should be malloc(sizeof(Node)). You are only allocating a chunk of memory the size of a pointer - not the size of the Node structure. Fix that and we will go from there.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Assuming you are running a 64-bit version of Windows, then remove the 32bit version of the Oracle data access libraries. On Linux, this would not be a problem, but Windows is much more restrictive.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think this is simple math. If the amount available - the cost is less-than zero, then you gray the option out, and don't let them choose it. Also, give them the option to insert more coin to make the desired purchase.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Also, that should have been Niklas Wirth, not Worth... Doh! And to think, I have a couple of his books on my shelf! Stupid keyboard!

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I think it was meant to be "additive" not "addictive" operation.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

I can send you a copy of Bruce's IEEE article (published in 1970) "Toward a Pascal Standard", but it is over 4MB so I will need a real email address for you, which you can send me via Daniweb in-mail.

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

First, write out the solution (as you understand it) in pseudo-code. IE, plain language describing the problem and solution. Then, we may be able to help you put it into code. Do bear in mind that Pascal is an ANTIQUE language (Niklas Worth wrote it in the 1960's or 70's as a teaching language). He went on to write Modula, a much more complete programming language. FWI, my good friend Bruce Ravenel was a graduate student of Worth back when before Bruce went to work for Intel and became one of the 2 principal designers of the 8086/8087 processor families...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Usually, formatting wipes the drive completely and makes recovery very difficult, if not impossible. :-( Sorry, but you may be SOL...

rubberman 1,355 Nearly a Posting Virtuoso Featured Poster

Ok. You said you were on El Capitan - I assumed you meant the huge rock in Yosemite? Macs are difficult to disassemble in order to clean them of dust and other detritis. You may need to take it in to be serviced by Apple-certified techs.

Quick internet search told me that El Capitan is the latest Apple OSX version. :-) Sorry. Didn't know that! If you were on top of El Capitan in Yosemite, that would have been awesome!