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

That CommandText, is it what you expected when you single stepped your code?

If single stepping doesn't show it, put your CommandText into a string so you can examine it and see what's up.

And let's hope others chime in about allowing text input like that. It can be as funny as Johnny Drop Tables. Longer explanation at https://www.explainxkcd.com/wiki/index.php/Little_Bobby_Tables

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

That looks like code you found on the web. I think it's also at http://cboard.cprogramming.com/cplusplus-programming/170525-help-would-appreciated.html so found code may not help you get to your goal.

Think over your problem and break it down to steps you can write in code. Even a beginner coder has to break it down to such steps and if a step can't be coded then you break that step down further.

Lifting code off the web may only lead to you being more confused as you don't know what that code does.

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

At first glance this sounds like our old friend date format is in play. I can't know your Windows or Access data time format but 10/05/2016 in say Britain is May 10.

Tracking it down in your system is sadly up to you but it's not a new find. https://www.google.com/#q=access+swap+day+and+month

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

In my opinion the changes to the client will go much smoother than what you are trying to do now. I think your current path won't scale and if that's your other post you will always be fighting connection counts.

I suggest you dive into MySQL. All my apps that I used it made coding a joy compared to days before that. I get to do more design than actual code of the client app now.

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

This sounds like a carry over from your other discussion thread. Even if we use MySQL you don't hold the connection open for longer than you need it. Yes you may incur some overhead from this but if you want to support hundreds of clients you have to keep it cleaned up.

Another thought is that you are polling rather than updating on change. This creates a lot of needless work all around. Yes, it's fine for your first efforts but later you need to change your designs away from polling.

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

I think you'll do fine given the back and forth here.

About rooting. About the only time I was about to root was a rather cr***y Sprint phone with apps that had to go away. About the time I was going to do that, I told Sprint goodbye and moved to an unlocked GSM phone. Much better.

Now I can install my apps once I enable third party sources and never looked into rooting again.

A parting tip. Use good USB cables. I had some trouble with cheap USB cables during debugging and while these cables would sync they would drop connection during Android Studio debug sessions. Not cool and learned what cables I have were good and not so good.

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

All this and you are repeating why folk move to a real SQL. The move was not painful for me the first time and you'll also get a server that will support many open sockets at once. Your current system will not scale and to fix it means you have to redesign it to never hold a connection open for more than a few milliseconds since it's not made for more than one user. With MySQL I had dozens of clients and never had to work hard to support them.

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

Yes but you left out the host machine details. Maybe it's a short card in a SFF PC or there is not power available for a new card. The 8350 was a 20 or 30 Watt card (from memory, you can recheck that.)

You lead with asking for a 2GB 8350 and now that you want to change to something else, the other details matter. Also, most apps work fine with 1GB VRAM so what's driving this increase? I can't see why the change so advice can't be spot on due to missing detail along with the goal.

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

Maybe you could but all signs point to all 8350's being made with 1GB. A vague reference seems to say the 8350 only had that much address space on this chip. I'm sure you googled this as well and found nothing but 1GB cards so why stick with such and see what's next in the family tree?

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

http://gpuboss.com/graphics-card/Radeon-HD-8350 and other readings point this to be only in the 1GB design.

It ranks very poorly in benchmarks so it must be for low power applications but still better than many Intel offerings.

I can't guess why such a restriction. Usually I toss in those other cards without much to do.

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

Just my thoughts here. Your approach is what we use when there is no source. Android has a lot of its basic apps open for perusal.

This way you can work on the white box approach rather than a black box. (Sorry if I use terminology that is new or rare. Just ask if you must.)

I do believe there are open source apps to read the databases you are poking around in too.

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

Glad you're not doing the life to death tracing.

But rather than looking at it via a blackbox approach why not grab the source for each app in question and see what files they use and how they add, create or destroy them?

Example? https://www.google.com/#q=google+android+contacts+source+code finds the source is there.

AssertNull commented: Good link +3
rproffitt 2,701 https://5calls.org Moderator

Odd nearly the same post at http://qa.geeksforgeeks.org/7685/c-stack-with-bst but without the allocation error?

Anyhow, why not use a C debugger to single step your code to see where it runs off the rails?

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

You covered a lot of area in your post so next time try to keep the topic to one topic.

  1. Exploring the file system has lots of priors like https://www.google.com/#q=exploring+the+android+file+system

  2. It's not Linux as you had before so when you get past that you may make some real headway.

That said, not one app I've written so far needs to know the file system. I do have a good friend that after 2 years is still exploring Android. He's trying to understand it from top to bottom and may be doing that for years to come.

That said, I think the other approach is to stand on top of these OSes and write our apps. We know that we have OS services and such so it's rare I need to dive into how the OS in question delivered the service. This is however incompatible with my close friend. He wants to trace the life and death of the thread all the way through. Well, that's one way to spend your days.

Make your choices as to what level you need to dive to and the deeper you go the longer it will take to get there.

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

I meant your code. And SQL is SQL. I learned that years ago. Once I have a SQL app, it's pretty easy to migrate to another SQL server. Now is a good time for you to learn SQL on MySQL.

So in short you install a SQL server (many use MySQL since it's free to use like this) then write your client app as you wish.

Since SQL systems have user logins that's less code for you to write.

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

Another read of your code seems to tell my you are implementing your own username and password system. But it looks flawed from here. Hey, I only read it twice but it looks like it supports only one connection at a time. Moving to a classic MySQL server and a client app which you already are working on would put you into a very scaleable system.

You wrote you never used SQL but in your code, I see SQL.

The second and subsequent hanging seems to be built into your design. I offer only how I'd exit, not to redesign this one.

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

As I read https://msdn.microsoft.com/en-us/library/system.net.sockets.networkstream.flush%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396 I wonder why you bothered to make that call.

I looked at this as a design and don't see why I would design this like this. That is, I could use MySQL as the server and usernames would be in the database and no backend to write at all. Why are you using Jet here? Haven't enough folk crashed on MS Access yet?

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

I see same error as you had 22 hours ago. You never fixed that.

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

Share that error. Otherwise you are asking others to debug. I see folk will read a few lines but let's here what line blew up and then backtrack from there.

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

That's a Widget. Other ideas are at https://www.google.com/search?q=Animate+icons+on+home+screen&ie=utf-8&oe=utf-8#q=animate+icons+on+home+screen+android

I guess you could create a launcher and then you would control it all. I'm unsure if many would invest that much time but sure, possible. Figure an average Android programmer a few months for a new launcher.

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

I see this is your first post. Remember that most agree this is not for others to write your code for you so try again and show what you tried, and then where you think it failed.

You won't learn by having others write your code.

PS: Try to be more creative about your post title.

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

Something's off here. Red Hat has been mounting NTFS for years. https://access.redhat.com/solutions/23993 for example.

Maybe you left out detail like your Red Hat is way out of date?

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

Sorry but this is for you to fix. I can't maintain your code. If this is all new, then learn more about coding or hire someone. If I touched your code, you may expect me to fix it again and again.

Instead I point out where the error lines are and you get to fix them.

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

Looks incomplete.

  1. The mysqli_select_db() function is used to change the default database for the connection.
  2. $myconnection looks undefined at line 8.

Read the example on how to use mysqli_select_db() at http://www.w3schools.com/php/func_mysqli_select_db.asp

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

It won't fix the problem but would let us test and know if the WiFi hardware is working. It gives us a direction.

Also, you didn't write why you were fixing the items in the device manager. Long ago I learned to not fix these entries unless I was having a hardware or driver failure.

You may have fixed it good and now may be looking at a Windows 8 Repair or factory restore.

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

Added question. About thate "miniports" issue. As was said in some old movie.

"Ray, what did you do?"

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

Try this with an alternative OS like a Live Linux OS. No install required. Run it off some USB or DVD.

I don't see a model number so try the usual and use the Fn key to turn the WiFi off and back on. Do you see the notification when you do that?

Gribouillis commented: agree on the live linux trick +14
rproffitt 2,701 https://5calls.org Moderator

The link would have me join and log into another forum. Try Imgur or other picture sharing site?

Maybe your laptop is indeed in Airplane mode. Do you know your laptop well enough to try the Fn key to get out of that mode?

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

Your code at lines 15 and 16 in the function switchImage. That's why it be so.

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

And why does it look like posts from years ago? You should understand your code even if you lifted it off the web. Then you work it line by line and then, when asking for help, make a good post with a title that makes sense along with what line of code is failing.

No one knows your SQL server setup either. You never told if the file made it into your system. I read it but you could echo/print (use what PHP uses) about line 9 all those items to see if they look good at that point.

Are you debugging your code? It doesn't look like it yet. That is, I'm seeing a lot of new programmers that forget basic debugging.

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

I gave this a -1. You dumped code without crafting a nice post title as well as left this to imagination what help is required.

Try harder next time.

PS. Why does this look like code from 2013 posts like http://stackoverflow.com/questions/27591379/cant-upload-and-store-the-image-to-the-database-by-using-php ?

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

Perils of using document.write. That queues up that to be done after your javascipt exits (well at least here.)

You may want to use other than document.write. Or change the alert to your document.open code.

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

Line 23 looks off. randImg are numeric so without me testing it, try

if (randImg1 == randImg2 == randImg3 && images[randImg3] == "strawberry.jpg") {
rproffitt 2,701 https://5calls.org Moderator

When I encounter some assignment like that I'm off to google like this: https://www.google.com/search?q=Dapfor+grid+control+display&ie=utf-8&oe=utf-8

I see tutorials, code and such. What more could I want?

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

I forgot to add what I do to reach inside the usual VirtualBox drive. Here it is:
https://www.google.com/#q=mount+virtualbox+as+drive

But you'll need that internet connection to download a tool or read more.

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

The other solution requires a download so without an internet connection for this PC you just wiped out my other solutions. When you get your internet back, we can try again.

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

Remember these are strings, not words. While I can guess what you mean, I have an edge here but your computer without a lot of work will not know that dogfishmonky when split up is dog fish monky or dogfish monky and so on.

Where is the spec for this app? Let's read it again.

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

I looked at that link on my Android phone and on a W8 Firefox laptop and they were identical. Maybe a bum link?

Nope. Finally saw it. The "MENU" with the hamburger to the right? That's not in the page source so check your includes.

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

Small world. I decided to work around this and used a network share one time and the next time DropBox.

One file? Email it to yourself with say Gmail?

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

You omitted the make and model of this PC. But the error looks to be common when the BIOS is set to secure boot. I can't be specific as there is no PC detail so go find out how to change the BIOS to CSM or Legacy (look, this is not a standard and why make, model is required.)

Now you may be able to boot your W7 DVD and then fail as the HDD needs to be erased. Do not format that HDD, just remove all partitions. For that I use GPARTED.

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

A quick read says line 15 and 16 would indeed set both to the same image.

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

About the single IP. There are not enough IP addresses for the world in IPv4 so no, that's not an issue today as routers share the internet to the PCs on the other side. How this works is on the web so moving on.

As to the verification, Facebook has their system so just verify and move forward.

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

Just to check this out I used the return from your first and second lints and put the results in http://jsonlint.com/

Both passed so the JSON is (again) valid from both sources.

Now you need to look past the http.get and see what your JSON reader is complaining about.

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

So how about the old web ticker solutions? https://www.google.com/#q=web+ticker+example Your Pi implements something like that and as the item rolls by it reacts.

Or you have a listening UDP port that you send a packet to to tell the Pi to do something.

There are many designs to choose from. Your choice at the end of the day.

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

That's the spec of your application. But you didn't show the code you've made so far and tell what's not working for you.

I'm guessing you only asked for the answer, rather than for help with solving a problem. Giving the completed code is not going to advance your coding skills.

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

Try what another owner did at http://www.amazon.com/review/R3AP89L8G0CEZM/ref=cm_cr_dp_title?ie=UTF8&ASIN=B001EW5YQS&channel=detail-glance&nodeID=11091801&store=musical-instruments

I don't own this so all I can do is nod that drivers are the bane of Windows PCs.

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

You should refine your question. You asked "Would i be able to do all this from the login page?" which must be yes. But this means you'll have to code it up on the back and frontend to do as you wish.

In short yes to the question. But the question was not about your code.

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

You may want to start again and build on a working example like http://www.tutorialrepublic.com/codelab.php?topic=bootstrap&file=typeahead-with-local-dataset

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

Line 28 looks suspect to me.

https://msdn.microsoft.com/en-us/library/system.io.file.appendalltext%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396 writes:
"Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file."

That's not what your comment on line 27 says you want to do in line 28.

That word, it doesn't appear to mean what you think it means.