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

I read what looks like your other post at https://www.daniweb.com/digital-media/digital-marketing/search-engine-strategies/threads/506136/seeking-seo-advice#post2210328

Are you not already doing this? Or are you a shill setting up to spam your services?

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

I can sort of answer that. That 2006 Dell E1505 was a return from my son from his college days. It only had 1GB RAM but a bad HDD.

The 120GB SSD was all of 30 bucks on a door buster sale so that went in. The boot time was about 45 seconds with just 1GB RAM on W10. Since it was looking good at this point I found a 2GB memory upgrade kit for 15 bucks on Amazon. That helped boot time fall to under 30 seconds. So yes, more RAM is a good thing. I quote the 33 seconds because it shows just how much time you can save with SSD.

The 33 second is from a cold boot (not sleep) and launching Firefox, typing test into the google search box, press enter and getting a result.

Let's hope your laptop is better than this 2006 E1505.

I'm unclear on your "what to look for" question. I get memory from crucial.com and sometimes from Amazon. I only look to see if they mention my model or if I'm chancing it, I look to DDR type, voltage, and the 20 other items that DDR specs can have. I don't like doing that work so often it's Crucial or Amazon items that mention the target machine.

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

Just a tip. Always add the model number so folk don't have to sleuth out what model this was.

Laptop CPUs are rarely changeable and sourcing is a pain too. Forget all that and pop in the SSD now. The speed gain I'm seeing is phenomenal.

Example. Dell E1505 2006 Inspiron with 2GB RAM 120GB SSD boots W10 in 33 second from cold to a Google web result. That's one old laptop yet it's very usable. With the old HDD it took 5+ minutes to do that.

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

How about using an OS that ignores Windows permissions on the file copies? I wrote about it a few years back. Nothing new to learn it seems except to learn other ways. Read http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm

rubberman commented: Linux works great for this. +14
rproffitt 2,701 https://5calls.org Moderator

Sorry but no. You left out full model numbers as well as a product page so it's a stretch using the provided information. Also, unless I own your exact model and reinstall the same OS taking notes along the way of what worked, I can't be sure of my advice.

I am sure of the following. For most I use the maker's web pages for the product model and install in this order. A. Motherboard and chipset drivers. B. all other drivers. C. Apps that control the machine. Item C seems to elude many but it can be important as some PCs don't turn on the WiFi or other items without it. A few laptops would run the display at max brightness without that app.

It's not a new issue and one the industry didn't address but fear is your biggest issue beyond what you noted. Get past that, use the drivers from Asus for your laptop. If you get the wrong one, usually nothing happens.

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

@cereal, I'm using the Google DNS and Ublock Origin so I wonder. Nope, that's not it.
The bit.ly in the top post lands me at http://0391909013800000_pro_flt_frt_01_1108_1528.jpg/ which fails.

Anyhow, now that there's working links, we can get back on topic.

PS. Added with edit. I can't see an issue with the site. The images are IMO "heavy" in size so that may cause it to feel like the image load is taking so long. Also, smoking is rarely seen in modern sites today. You can debate that all you want but adverts with smokers unless you are selling smokes is best avoided.

diafol commented: Smoking image caused me to sit up too. Don't bother me, but just so unused to seeing them +14
rproffitt 2,701 https://5calls.org Moderator

Just tried it and it seemed smooth to my. It's the office laptop with is the usual i7 16GB SSD thing.

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

@rubberman. Me, overseas at a supplier and this gem.

"Errors and warnings are costly to fix so we just test our software more."

Yup, big savings. We had a dozen folk from our company travel 6 thousand miles for this. My favorite was uninitilized variables. Found way too many of that one. Since when was that OK?

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

Here's what I do to prototype such a search. I usually have an example output (report) that I am attempting to achieve. Then I manually craft a SQL command using the command line that gives me the dataset I need for the report.

After that, that SQL command is re-used in the PHP to create the desired output.

I'm finding folk I am running into today are heading straight to code rather than sketching out what they want, building the SQL command line and sometimes skipping the design stage. What happens is they often feel lost.

cereal commented: +1 +14
rproffitt 2,701 https://5calls.org Moderator

So let's check where you are now. Did you take it back to where it worked? Does it work there? If not, time to downsize.

Here, things don't unplug so easy BUT I find many first time builders put in "all the motherboard standoffs."
Now let's let that sink in. They didn't put in only the required mounting posts but all of them. It's one of the most common gaffes I encounter. To help me understand your skill level, tell me what's wrong with putting all the mounting posts in a case.

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

I'd forget the HDD. On Newegg that was 125 bucks and last wek I picked up a 480GB SSD for 99 bucks. This alone can give your machine an overall speed boost. I'm not using as many HDDs as I used to.

But that ship has sailed so to troubleshoot your new build, make it as small as possible after you check all jumpers and pull off ALL motherboard connections save the power on one.

Move just the motherboard, CPU+HSF and PSU to cardboard and test it with as few parts as you can. We don't need all the RAM, and no HDD or such. Keep it small.

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

You're right. If they are doing things right, they can't send you your old password.

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

If some site actually sent you an email with the password that is indeed not a good thing since they should not have the in the clear password according to current thinking. Current thinking is to use one way encryption and compare the results. If they have your password in a database, "that's not good."

What has been acceptable is to send you a password that is good for only a few minutes. Current thinking on this is fluid.

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

Some ISPs block inbound ports so it's up to you to figure out what ports are open and closed. No one but you and your ISP can tell what's blocked.

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

I love this topic. Random number generation is not only well discussed but then you have dozens of different kinds of random.

Are you aware of TRNGs and PRNGs?
https://en.wikipedia.org/wiki/List_of_random_number_generators

One of my tasks long ago involved a Gaussian random number generator. Some may call that OTR (other than random) and here's why it was needed. In production the spread was Gaussian so to simulate what would happen in real life, this was part of the simulation.

There are many fine off the shelf generators on the web, why do you need to create another?
Also, you have to define what efficient is. That can be the number of machine cycles or a statisical "correctness." You didn't say!

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

I'm going to add something we use before we begin testing. It's https://validator.w3.org/ which is not good enough for dynamic content but we can catch basic flaws before we spend more time on testing.

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

This is tantamount to asking others to code for you. Please read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question then try again. Show your work so far and tell what stopped you.

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

I got you beat. My oldest laptop in the quarry is the 2006 Dell Inspiron E1505 which started with a failed HDD. So for 30 bucks we put in the 120GB SSD. Now it did take W10 so we did that. With just 1GB RAM it would boot in 45 seconds and we found a 2GB upgrade. How about 33 seconds from power on (not sleeping) and getting a google search result?

OK, your machine is old enough to need the usual canned air cleaning plus fresh heatsink compound. At that age the compound can dry and crack. When you do this work you can check if the fan is seized up.

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

I'd read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question before you reply.

You accidentally put your entire post in a code block so that's OK. You can try harder from now on.
You wrote there are errors but didn't call out what the error was or what line it happens on. Add that next.

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

I'm not there to see what's in what variable to craft your if statements. This is basic stuff but I can't write the if statement for you. But you can break on the line and look at the variables to see what's there then think about how you would write a statement to not add or add if this or that.

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

You are using Visual Studio. Set line 3 to break and examine what's in the variables. Note what you want and what you don't want. Code your if statement accordingly.

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

Sounds like you need to make it smarter.

As in after line 2 have some tests to see IF you want to add that element.

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

I think I gave you my current thought on this. There are books on Linux and sometime about 2010 I stopped buying books since I was getting what I needed from Google. We also have Google Scholar if you want another way to search.

There are also "Docs" for most major Linux systems. Example: https://help.ubuntu.com/
I see the PDF and more there.

The reason you won't find a book (at least none I'd buy) is that for each distro, and then for major versions it may not apply and send you down the sewer or rabbit hole.

But let's see what you can get besides that. Here's a sip from the firehose: http://www.tldp.org/guides.html

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

The thing is, here's the thing. https://en.wikipedia.org/wiki/Pseudocode tells me that for each target language, the format of the psuedocode changes.

HOWEVER for what you wrote, and the tag is "problem" I think what you posted is indeed a form of psuedocode. You could hand that to a few year in the making programmer, tell them the target system (not language today, long story) and they could write your app. So in my mind you have psuedocode.

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

That's not python. I dumped it into http://pythonfiddle.com/pysomething and it looks like you have a lot of work ahead.

You didn't post much detail. Just a post title and code. Don't be shy. If you want members to write your code, just ask. But read this first.
https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question

While I port code I have two methods I've used over the years. One is to line by line, the other is consider what it did and then code anew to give the same result or what I feel I need it to do.

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

@Dani, I'm going to ask a few I know to try joining and doing a test post here and there. Just in case.

And thanks again for not telling me I was crazy about my login issues. It's working now but I wonder if the sign up and login has lead to silence. We can't know since many, when faced with trouble like I had may just think the site went down.

I'll ask a few I know to try joining and logging in.

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

OK, I'll ask you directly. Are you using https or not?

I think the secure http discussion ship sailed a few years back but I guess we can go over that again.

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

I think I want to ask you why do all that if you are on a https connection. Yes, we know that certain governments have cracked https but for the rest of us it's good enough. Unless you want to launch yet another https "is it secure" discussion.

Maybe you are overthinking this?

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

Read https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question again. Your post is too short and if I were to guess you are asking for folk to write this for you or maybe you lost your books on the said products.

ddanbe commented: Nice answer! +15
rproffitt 2,701 https://5calls.org Moderator

Tell more. For example some models do not beep but hold in reset when the CMOS battery is too low.

Tell more. As a PC Tech I expect you to have a Volt meter at the very least to measure and check things. If not, just pop in new batteries as they are cheap in bulk.

And again, tell more. I see nothing about the PC and why you replaced the PSU. Did you measure it? What told you to replace that part?

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

Malwarebytes should be offering removal. I did find some that scan but didn't remove items found. Be sure to remove if the tool offers or has a removal tool.

-> And here's a thing. Some items you must take care of on your own. For example if the home page is set to a bad place, no scanners change that. You must do that on your own. There have been users that don't get this and are looking for scanners that fix it for them.

If the set of tools and your work can't get it gone, sign up for bleepingcomputer.com, read their rules then post as they ask you to. It's a bit of a wait but there are so many that need help. It's a specialized site for such work.

Finally, you can reset a browser to toss out add ons. I don't want to be Captain Obvious and tell you to google "How to reset Chrome."

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

Your code can fail. Why not use sizeof()? It's standard and while I can't guess why your setup doesn't have uint16_t and I can't find what compiler you are using (hint!) there is a standard way to check.

AssertNull commented: One of these days I'll start making my posts as short and to the point as yours. +5
rproffitt 2,701 https://5calls.org Moderator

Keep in mind you posted 100 lines of code but didn't point out the line that failed.

However, if you know it fails on empty cells, add code to handle that. As this is your first post, be sure to read the sticky about making a good post at https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question

Tell us which line number fails if you want to drill down on that line.

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

Just a guess. Maybe it's the missing or extra comma's?

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

Code looks incomplete. (it is) Without the rest not much to work with.

Try putting it in a fiddle if you can, like http://pythonfiddle.com/

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

On Linux, Windows and other OSes I can do that sort with the sort commandline. No code required.

Why would a business code this when it's just a command away?

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

@cereal. My thought was "how strange to ask to use a daemon and as cron was such a thing, well, may as well point that out."

It should be interesting which solutions they chose at the end.

cereal commented: oh! ok, I've got it +14
rproffitt 2,701 https://5calls.org Moderator

Why does this look just like http://www.cppforschool.com/project/banking-system-project.html ?
I think you need to consider wholesale copies of code that you didn't claim as your own creation to not be such a good idea.

A second issue is your first post sounds like you want others to do your homework. There's a forum sticky at https://www.daniweb.com/programming/web-development/threads/435023/read-this-before-posting-a-question that needs to be read as you think about your next post.

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

There are many priors on this and most if not all solutions involve more than a line of code. For my app that starts up many threads and even new instances of the app, I used a message file to get it done. This, for that app was not a problem. That is, I wasn't going to get fancy so a file with the answer was my answer.

OK, priors. Hans and Justin at http://stackoverflow.com/questions/2214002/how-to-get-return-value-when-begininvoke-invoke-is-called-in-c-sharp go over invoke, and how to return a value. As you see, it's more than a few lines of code.

Suzie999 commented: Thanks +8
rproffitt 2,701 https://5calls.org Moderator

The WNR614 I looked up does not have the DSL modem in it so let's hear about the old Dlink Router. Model number please and let's see if it's one of those Modem and Router combinations.

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

My son decided to not do ANY community service and is now paying the price. No prior experience.

As to up to date knowledge, the field is always in motion (nod to the green guy) so I'd rather see folk keep the basics in view. That is, one of the companies I work with lost a year battling bugs for very simple and what I call basic reasons. While we can debate if outsourcing is good or bad, the coders ignored all compiler warnings and under their leader's guidance turned it off because "it's a distraction." That is, it worked in test so it's OK.

If there were canaries in this coal mine, they would have caused the canary to go extinct.

I'd consider heading back to your schools job office for any work. Even as a TA or volunteer.

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

Nice enough PC. For this one you plug it in and the battery charges up and you use the laptop. All battery operations are fully automatic and can really upset folk that want to control it all. It's just another Lithium battery, not subject to the issues of NiCAD and NiMH.

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

If you want to get into it read http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries

There's a lot of myths out there, including that idea you gave about break in.

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

192.168.8.100 is non-routable and not an internet IP address. The client would not use this as the server IP.

There are a few ISPs that do something strange and your "internet" IP can be 192 or 10 based (non routeable) but I guess this all new to you.

https://www.google.com/search?q=what+is+my+internet+ip+address&ie=utf-8&oe=utf-8 should show your internet IP address. This for most is what the SERVER IP address would be. After that, the router would be configured so your server gets the messages.

Mr.M commented: Clear enough. Great +5
rproffitt 2,701 https://5calls.org Moderator

That's why I took a side trip to that link to double check if the LAMP stacks included Python. It looks like they can.

So it's entirely your choice of what to run on the backend, http://1stwebdesigner.com/php-vs-ruby-vs-python/ is inline with my thoughts it's well accepted language but not as much as PHP. Why not stick with PHP for now?

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

While I can't find where you populated your database the answer to secure is maybe not.

I can't see where you sanitized the user input. That is, what if they put in SQL code in the user name. Do you remember Bobby Drop Tables?
https://www.explainxkcd.com/wiki/index.php/Little_Bobby_Tables explains it.

I worry about SQL injections on this one.

As to why it doesn't work I don't see the rest of the system but for now why not echo whether it's the password or the name failure?

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

I know there are members that abhor just a link but here's a good example where if you know the right words, it might be easy to find the answer on your own.

To me this sounds like "Splash screen" and sure enough there's such in Pygame (or looks to be there.)
Try https://www.google.com/search?q=splash+screen+pygame

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

As I read http://forum.arduino.cc/index.php?topic=42835.0 I think that's the quick fix. Make a function prototype in your code.

I think you're a C coder so I'll pause here.

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

Lots of thought here. I think folk must not lean on cloud storage too hard. Here's a fellow you may know and his view.
http://www.cnet.com/news/woz-the-cloud-is-a-nightmare/

It's an OK thing but the space is not yours to control and is subject to outages, leaks, limits and rule changes out of your control.

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

A few things. Very few folk write code or your site for you so with that out of the way, you may have reveal more about your web hosting. What database is available as well. To be sure you will learn to code as time passes but if this is to be written by others post this in the for hire or hiring area along with the renumeration for the job.

If I were to tackle this I'd put the details into a database then the PHP would be to query the database to create the view based on today's date.

-> One big deal is that today() could be variable depending on the user's timezone so going in you have to get the user's timezone so you can factor that into your query.