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

It's old enough to have failed (2005 laptop) but did you replace the CMOS battery and give it another reset?
I've noted the routine at my sticky in another forum. Link follows.
http://www.cnet.com/forums/post/30c241c5-dd8b-4d73-b08d-c6e15897fe5f/

Many laptops have a reset feature. Some don't but as not all machines have it, here's something to try when a laptop won't start. Remember this is generic, doesn't apply to all machines but when faced with a non-starter dead laptop, why not try this?

Ready?

  1. Remove all connections to the laptop. (USB, power, etc.)
  2. Remove the battery.
  3. Press and hold the power on button for 1 full minute.
    -> Explainer. Yes, many machines only require 10 or 15 seconds but this reset instruction is generic and I've found people hold the button for 9 or 14 seconds so let's write the full minute.
  4. Let go of the power on button.
  5. Slip in the battery pack.
  6. Plug in the power to the laptop and to the wall.
  7. Do not plug in any other devices.

Try the power on button!

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

For this you would break down the design you want then code it step by step. However this is your first post so read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question

I don't see any code so you must be asking the more generic how do I write code when I have a blank sheet of paper?
Answer: You don't. Design first then code. And then if need be, redesign, recode.

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

Remember I will take your word this is a dial up modem and not some internet dongle.

The code would try opening com 0 to 255 and send out the old AT command and see if "OK" comes back. That's your basic scan and I should not have to code this for you.

But later in your post you have this USB 3G Modem and that's an entirely different kettle of fish. Those require setup and not scanning and dialing! If the setup is the same each time, most of the time you have a checkbox to "connect automatically."

On Cellular 3G connections, we don't dial.

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

There are tomes about table designs and there are even more folk to call a design good or bad. For me, I only balk when it doesn't work, breaks easily, is a security issue and other items.

I don't see a problem with 4 tables in a design. Being difficult to do a few reports or queries is fine when the design works. Revamping a working design just to make a few reports or queries easy seems to never pay off.

And with that, I'll share a cheat I used long ago. It's probably heresy in some academic circles but here goes. I was stumped on how to make a report on a multiple table database. So I cheated (?) and made a temporary table with what I needed then ran the report off the temp table which I dropped when done.

Question: Was there a way to do what I wanted without that temp table?
Answer: Yes. But it eluded me for more than a few days and there are schedules to keep and it had to get done.
Answer a decade later: Looking back I just needed more SQL foo. The system runs as I made it in 2005 so maybe it wasn't that bad a decision as an academic may have thought of it.

savedlema commented: Thanks again. I also used temp tables on the other system which I also dropped after report generation, still works! +2
rproffitt 2,701 https://5calls.org Moderator

While I can research like this: https://www.google.com/search?q=seo+path+analysis I usually find such an opening question to be a shill question and non-genuine.

Why ask such an opened ended question?

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

That's the beginning of your spec for the app you want to write.

The next step is to break it down to smaller steps as well as get an overall design to the app.

Once the steps are small enough you write the code for the step and then work on another step. When you get all the steps done then you test this app.

-> I see new folk post like this and expect others to respond with code and a finished app. At least you didn't ask for that.

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

@Dani. Maybe it's time to make a break for it? That is, rather than stick with a model you write is not a good business, just head straight up to your new world?

I can't see what that is yet and I'm guessing it's a LinkedIn spin but I haven't read enough of what the new ideas are yet. The changes so far are leading up to something. I can feel it.

AssertNull commented: Interesting guess. We'll see if you are right. +0
rproffitt 2,701 https://5calls.org Moderator

So why not use minDate and maxDate?
Example: http://jsfiddle.net/8w8v9/1748/

I did not tailor it to exactly your needs. But you can do that.

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

The thing is, this Dell can be configured to have a bios password so it's not broken. Google up this.
Dell Optiplex 780 Documents.

In the manuals should be instructions on how to use your PC and how to reset this machine/bios password.

Nothing needs fixing. It only needs to be configured to your desires.

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

That's all well and good but how about making it modern? That is, why must it have a convert button at all? If one were to respond to changes in the entry boxes then it would be instant conversion from F to C and so on.

Think mobile, phone users.

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

That code is just that. It does not mean "it's the second memory chip in slot 2" or much else. You can google that code and see if anything matches. But here's the thing. I see a lot of folk share that code, or maybe a dump. Sad news is that it's rarely if ever helped me fix their PC.

I always have to get into what their PC is made of and then, maybe I can guess what it is.

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

Actually that sounds right. The Desktop folder should be protected for many reasons. One example I gave Microosft years ago was how to lock out an user by placing a corrupt jpeg on the Desktop. Maybe they finally got around to fixing that in the usual way.

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

Share the PHP that has the "Chris & Army" text string in it so folk can see what's going on.

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

I think this is how most folk learn that backups are not optional.

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

I meant to write "learn them all" which is like "catch them all" as the Pokemon Go craze is in full swing here.

As to the two weeks, I kid you not. And yes I've been in many engineering positions and the only old new thing is that some think apps will only take two weeks given all the advancements over the years. The consultant label is tossed at me when they want to well, I would be guessing it has to do with health insurance and the ability to tell me goodbye at any time.

That goodbye is something you have to be at ease with. There have been so many projects over the years.

AssertNull commented: +Rep for Pokemon Go +5
rproffitt 2,701 https://5calls.org Moderator

Actually I did nothing of the sort in my app since I had no files or devices open so I had no work to do on a pause or resume. BUT I get it you may need to respond to such events. For this I think we need to open the big book about this. I'd start at this chapter:
https://developer.android.com/training/basics/activity-lifecycle/pausing.html

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

First, don't spam. Next there are sites that cater to this sort of thing and I found them with this google.
https://www.google.com/search?q=officiant

So have you signed up with those?

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

The thing is, all you listed do exist. Folk have been creating apps with VB for decades now. 25 years in fact https://en.wikipedia.org/wiki/Visual_Basic

So it's your thesis, you may have to forget that it's entirely new and create yet another such thing but with your new ideas on the subject.

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

This has been kicked around a lot. So I'll end my answer with "Clonezilla."

Still want to work hard at this? Read priors like http://askubuntu.com/questions/426507/how-to-i-copy-bootable-usb-flash-drive-to-larger-drive

Gribouillis commented: I would try something similar +14
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

That's a vague question. But the file was sent as it was uploaded so all that's there is there. That is, the old meta data in files have been a curse to some. Example:

Your electronic files may include "metadata"—previous drafts, revisions, and even comments meant for exclusively internal use. The metadata associated with your documents may contain confidential or privileged information. It may also include information damaging to your position in the matter at hand.

In addition to basic information such as your name, initials, firm name, names of previous authors, and where the file was saved, the metadata may include "redline" revisions in the document, hidden text, and comments. This article tells you how you can protect yourself from metadata issues in Microsoft Word and WordPerfect.
http://www.americanbar.org/newsletter/publications/gp_solo_magazine_home/gp_solo_magazine_index/june01_07.html

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

I'd stop crossposting on the web if you can't correct your spelling errors. It shows you can't be bothered to fix your spelling or worse when you do that.

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

I defer to http://php.net/manual/en/language.operators.precedence.php as you did ask it to concatenate " AS " to $index.
Sorry if you feel shortchanged here. It's one of those questions that pop up a lot.

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

While I find it odd you tagged your post with c++, again you should try working at your google foo. I took your post and here's a fairly good search.

https://www.google.com/search?q=I%27m+interested+in+CPA+Certification+and+need+Free+and+paid+web+based+tutorials%2CStudy+Guides+.Please+reply+with+accurate+instructions+and+materials.&ie=utf-8&oe=utf-8#q=CPA+Certification+and+need+Free+and+paid+web+based+tutorials%2CStudy+Guides+.Please+reply+with+accurate+instructions+and+materials.

OK, the second hit here is 10 Places to Learn Accounting for Free - Examined Existence

Not that will replace your need to take the usual college courses in Accounting.

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

Are you seeing the new 0/1 count at https://www.daniweb.com/members/1130851/assertnull/posts/6 ?
http://i.imgur.com/MquR55d.png

I went through 9 pages and didn't find a single downvote. "How you do that?"

AssertNull commented: For your diligence +0
rproffitt 2,701 https://5calls.org Moderator

I'll do that if you share the results so far. If you don't share, why should I participate?

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

@E, your question is too broad and has been asked before. You usually don't get an answer or just spam replies. Are you so new that you didn't notice this question when you googled it? Why not make your question a great one?

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

First it's great to have an edit feature so that's good.

What I notice after the last big change is that if I edit that works but the Save Changes button when clicked doesn't seem to work.

Well, it does work but you must be patient and know not to click it again or else you get more than one entry in the activity stream.

Since it works, it's hard to ask for a fix but if possible, grey it out on click or ignore more than the first click?

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

Your question has been kicked around for over a decade so my thoughts is either you didn't know how to research or was hoping for magic.

Tell more about how and why you came to ask this question. Folk would like to know why folk post this question.

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

Looks like this was kicked around at http://stackoverflow.com/questions/14735262/jquery-remove-and-detach-method

One destroys, the other does not remove internal data.

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

So you have the string name of the object but want to use that to find the object?

There are many priors to that. Example: http://www.vbforums.com/showthread.php?688283-RESOLVED-Changing-a-single-property-of-multiple-objects-having-simillar-name

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

OK, your tag is PHP but you didn't specify that this was in a browser. As you know you may not take over the screen like that. You could if you had the user run some app. There are plenty of prior discussions about this but for now, you can't violate what the user wants to see in their browser view.

cereal commented: ops, I missed that _automatically_ thanks :D +14
rproffitt 2,701 https://5calls.org Moderator

That question on google finds such things. However this would require the same support staff to install, configure and manage as most such systems.

Remember this is something you do your research, then make your report to the committee so learn to do such research. That is, I'm starting to see posts like this where folk want others to google it for them and write the report as well!

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

For me, I wrap my queries in another language so for me it's possible to write code that sorts finely. Your post reminded my of the priority options in MySQL so I thought I'd share the relevant document.

So for me, I'd make the solution in my app and would not find it to be a problem to use more than one query. But that's me.

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

I'm back!

Will have to log in as Its_1 to mark this answered.

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

rproffitt sent me his credentials and it took less than 2 minutes to figure out what the problem was! Whew!! Sorryyyyyyyyyyyyyyyyyyy everyone.

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

The error message you supplied is only slightly off what I read at http://www-01.ibm.com/support/docview.wss?uid=swg21201020

A second problem is that support ended about 5 years ago. I'd think long and hard about moving off this software.

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

Over the years, well, yes.

I LIKE the "twice the wattage" but have to write that sometimes that's not enough. (say what?) There are some Quad rail PSUs that have awfully low amperage ratings on the +12V. To avoid this my generic PSU spec is "twice the wattage" and a single +12V rail.

That seems to keep folk out of trouble.

Now you might ask why double. My answer is that the PSU rating is for a new PSU. Since some 99% of PSUs for PCs use Electrolytic Capacitors which age quickly, you need the spare capacity to avoid short life spans and to accomodate an extra drive or changes later.

And I'm going to upset some folk here. I see this issue with more AMD than other CPU based PCs. Don't know why but it's out there.

Itsdigger commented: Good info ! +0
rproffitt 2,701 https://5calls.org Moderator

When I start a new direction, I often find there were others before me on that road. I didn't even know there was a road!

Example: https://www.google.com/search?q=first+person+shooter+in+python finds folk have gone down that road.
Read what they did and see if you can re-use or learn from prior experiences.

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

Wait, did you post that 4 times?

Reverend Jim commented: Yes, but I just deleted 3 of them. +14
rproffitt 2,701 https://5calls.org Moderator

I've heard of this before. The person who claimed this would not take action to get off the internet, would not stop using Facebook and did not move to a simple flip phone. No one could help them.

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

Remember to check priors on this one. I read http://stackoverflow.com/questions/14115904/post-not-working-notice-undefined-index-username and find I'd add more checks.

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

This looks to me to be another "Pretty Printer" or code beautifier. There are now many old discussions about this plus open source efforts.

Sometimes it's best to use a wheel than create a new one?

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

You didn't state your problem but well, read what you wrote and it's going to get downvoted.

Maybe this is some homework assignment but you left out all the details so you left folk guessing what the issue is here.

As to not so good with C, you practice and get better. You won't get better if folk write code for you.

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

Actually most I know have code that fires on click, get the coords with pygame.mouse.get_pos() and then you can do what you will with that info.

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

Matthew,

If that's it, what I call such lookovers is "fresh eyes." There's nothing that looks blatently wrong with the code itself. So I had to step back and look at it for what seems odd. As I don't know your folder structure, I had to guess.

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

Let me start reading at line 10. OK, line 10 has this path of "/images/" and then in line 13 you write path + "images/black_menu2.jpg"
So that strikes me as an odd path. Are you sure you have /images/images/black_menu2.jpg ?

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

I see prior discussions. Find the word "fixed" in them. Example?
https://social.msdn.microsoft.com/Forums/en-US/08764ba0-a2e2-4a86-89e6-da5d0fe0339a/format-year-and-datetime-function-not-recognized?forum=vblanguage

This one has priors back to 2009 and maybe earlier.

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

Wow, one of my old favorite topics. This reminds of the queuing theory class days. But before I comment I think this is pretty well discussed:
https://www.google.com/search?q=simulate+the+Shortest+Job+First+algorithm+in+CPU+scheduling&ie=utf-8&oe=utf-8

Videos and more are out there.

Now if you want to discuss your code, you omitted what issue you have with it. Very few folk will deflea code today. If you have errors, share them since to find it, you are asking folk to guess what compiler, IDE and OS you are on and more.

With that out of the way, I may be outdated but my results for maximum throughput was longest job first. The example was 1 or more machines, then start the longest job and then prepare the rest of the jobs sorted by how long they take. In the real world this worked great plus one modifcation. We would start the work just like queuing theory said then go back and see if any job had priority.