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

I think we need to talk about how most forums work. This link: https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question covers a lot so you can get going in the right direction.

Now if you need to hire a programmer, that's covered too as you would post in the for hire section:
https://www.daniweb.com/community-center/for-hire-hiring/52

The concept of these forums vary. In this forum you would read the first link and share an error and maybe a cutdown version of where the error happened.

But if you need someone to take on your entire development, then you may be looking to hire someone. Or take on an intern. Many lecture schedules I ran into were for schools so as the teacher you can find a way to give course credits in lieu of pay.

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

It looks to me that this project is abandoned. Why do I write this? Reading many pages at the site have outdated references like Android 4.x at http://taco.visualstudio.com/en-us/docs/get-started-first-mobile-app/#run-your-app-in-an-emulator and many other pages there.

To me this and more would have me never start such an endeavor on this platform.

SimonIoa commented: No it's not abandoned. And there is nothing about any outdated refference +0
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

I let a link checker look it over which looks OK. It was https://validator.w3.org/checklink?uri=http%3A%2F%2Fgalleryautomo.com&hide_type=all&depth=&check=Check#results1

But the HTML and CSS checks spewed a lot of errors. I'd work those as robots often fail when the pages are not clean.

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

My brother uses Constant Contact and MailChimp. Keep in mind he's not a spammer and sometimes when folk ask about a campaign, they mean spam. Don't try to hide it when you want to spam since how to spam is well, you can google how today.

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

Sadly this seems to never have a short answer. Read https://forum.ionicframework.com/t/cant-run-npm-install/103573/22 where they go round and round and a short explainer at the end.

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

The short answer is it appears you are capturing Ethernet packets. I am a poor substitute for all the good docs on the web about how this works but the IP work is done elsewhere as in the ARP protocol.

Video at https://www.youtube.com/watch?v=OZi3tVrpI6U which looks good.

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

Now you get to look at the MAC addresses as well to see it all.

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

I put this into https://www.gasmi.net/hpd/ and those addresses look like MAC addresses.

As you learn IP you learn about how packets on a LAN often go from one place to another using this rather than the IP address.
Decode these with tools until you complete your IP lessons.

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

That code doesn't run here on W10 either. Is there more code? That is, it looks to be an incomplete code dump.

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

When this question comes up, I reply with "never store passwords in a database." You can store the names but never the passwords.

So you may wonder how to verify that password? We store the one way encrypted password and then encrypt the offered password and then compare.

This way if your database is leaked they don't get the passwords that as you know folk tend to use the same all over.

More at https://www.google.com/search?q=never+store+passwords

rubberman commented: This is the approach I used when developing FACTORYworks back in the 1990's. Doubly encrypted passwords are pretty hard to crack. +14
rproffitt 2,701 https://5calls.org Moderator

What I wonder if you are actually clubling the most common reason for serial woes is the setting of the baud rates on the terminal to match your transmit speed. This is the usual the trial by fire for the new embedded programmer.

clubling (plural clublings) (rare) One who frequents or belongs to a club; club attender or member

I usualy see code to set the clock rate but haven't written code on the PIC for about a decade. Be sure to post in their forums:
http://www.microchip.com/forums/f165.aspx

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

@Charles.

Just a few weeks ago I had to update a factory app I wrote years ago that leverages CPUs and threads (I have to write both since some machines have so many cores and some cores have more than one thread available.)

It was nearly impossible to scale the app as a single app but when I used a system to launch copies that dealt with each update, then it started to, in non computer terms, "hum."

For each OS, the method you use to "spread the load" can vary but once you see the power (of the dark side?) you can't ignore it and will look like a powerful dark lord to some. (all puns and refs to today's lore intended.)

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

Doesn't look odd to me at all. 10 10010 should be 00010 10010 as that's the same value. If you are implementing a protocol, your protocol will implement a short frame message as well. Again, it's your protocol. Add to it if it's coming up short.

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

This is likely to not fix it but I had it happen and it did. Mind you that the code looked right but I had to use the Clean then Rebuild options in the menu of Visual Studio. Remember I don't claim this will fix it as folk have a lot of bugs on their new app but this one did happen to me and it helped.

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

I think if this is some assignment you posted about before. Not everyone may notice that. But to make a new post leaves you with both posts lacking all the facts. Or questions.

Did you read the link I supplied? Here it is again.

-> Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

Also, if I were to name the DB areas, input and output are names I'd avoid in most any language today because they are often reserved words. It's a lesson you learn over time. Name your items well and avoid names that could be reserved or too easily confused with words in the language you are programming in.

So down to business. Line 18 looks to read MOV SI, BX but that should spit out an error.

Is your paste job here changing the line numbers that you see and use in your editor?

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

Welcome. You need to show your work so far. This is more about you sharing what stopped you than members writing your code for you.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question where this is explained in detail.

Let's dissect step 1. That could be in simple .DB statements or the assignment asked you to get these from the user. You'll have to decide how this is done. If it's just in the DB statement why didn't you write that line of code?

Primers are plentiful such as http://www.shsu.edu/~csc_tjm/spring2005/cs272/intro_to_asm.html and also your class textbooks.

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

Not the wrong place but it appears you can pick over priors for the basics such as https://www.google.com/search?q=java+source+to+take+words+from+a+list+(or+three)+to+create+a+random+sentence

This still means you get to deal with the Android front end to your app but the sentence, random and more is out there for you to re-use.

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

@S.

The best tools are what you can wield and create results. Now I'm not an expert on Android Studio but I will share that I'm up to my neck using AS.

Let me share the story as much as I can due to client agreements. The client is one of my oldest and they tried outsourcing and they ended up with a collection of tools like Eclipse and all the other parts in order to make an Android developer system. So setting up is a PITR. After they called it quits with a few outsource places they can back to me with a problem/bug that needing fixing. For some reason I didn't get into the Eclipse setup they told me just wouldn't compile their project. Given the 30 day deadline I went back to AS and the project loaded and compiled. I was then able to address the issues.

So my thought is you have to choose the tools that work for you. In the case of Android work, AS is my go to solution since I need it to just work. I do not want to be mired in "production hell." (thanks Tesla.)

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

@Catherine. Great idea but what if I want to automate this? Does GS Richcopy 360 offer a command line version?

Reverend Jim commented: Well, if you want a command line option you can always use robocopy ^_^ +14
rproffitt 2,701 https://5calls.org Moderator

@C. Ahh, threads from the command line is interesting. I don't have an Apple here so you may have to do some testing but...

On Linux you just type in the command and then add the ampersand to detach and let it run.
Example: https://www.tecmint.com/run-linux-command-process-in-background-detach-process/

On Windows it's nutty. You use the START command then your command.

On Apple? I think they are BSDish so try the same ampersand. Read https://www.cyberciti.biz/tips/freebsd-job-management.html
Another at http://commandlinemac.blogspot.com/2008/12/bash-job-control-fg-bg-jobs-and-ctrl-z.html but not as succinct.

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

@Charles. It was just one of those no-code ideas. The problem is that to benchmark this you have to run it twice and take the second time runs to even out caching effects. Same for the PHP test.

Anyhow, if I had to do this, the commands would be my first release so the job is up and running. If it's just a matter of 5 minutes vs 10 minutes then you have to think about ROI. That is, to code it up to go faster, how much time will your programmer be using up?

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

I wonder if this is just something we can use Linux, UNIX or your OS's command lines to get done.
Be aware that your top post wrote one way but in a later post you write:

So every file is formatted one serial number per line like below:

For example "uniq" has a method to not only strip repeats but count them. See the -c option at https://www.computerhope.com/unix/uuniq.htm

OK, so let's say I run this file through uniq with the -c. Now I can strip that to the 1's and the 3's with any number of methods or commands.
Why code this?

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

That's an odd question since when a CPU gets sick, you see all sorts of problems from The Dead PC to BSODs and corrupted drives.

But that aside, how about https://downloadcenter.intel.com/download/19792/Intel-Processor-Diagnostic-Tool
You can google one for AMD, others.

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

This looks oddly similar to what we read at https://msdn.microsoft.com/en-us/library/system.diagnostics.process.machinename(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1

But today's SECURITY MODELS should cause this to fail. That's vaguely hinted at the link with this line:

for full trust for the immediate caller. This member cannot be used by partially trusted code.

So my bet is this used to work, or only works on a stock clean OS.

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

I was going to look at this but the code looks incomplete. Or I just missed where the socket is opened. I wanted to see if you used TCP or UDP. If UDP your code won't handle a lost packet so there's that. A lot more code on both end is needed to make a reliable transfer.

So https://stackoverflow.com/questions/19727606/how-to-differentiate-tcp-udp-when-programming-sockets for reference so you can learn why I asked about TCP or UDP.

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

To abubaker+2.

It appears you didn't read the second link I supplied.

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

To abubaker+2.

I took a quick look at http://php.net/manual/en/function.mysql-connect.php and find it's deprecated. While you are working your site and code, read what this means.

And about injection to this, don't pass up prior discussions like https://stackoverflow.com/questions/15024222/php-how-to-prevent-sql-injection-for-this-code

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

As to obstinate. "stubbornly refusing to change one's opinion or chosen course of action, despite attempts to persuade one to do so."

I had hoped you would restate your question along with necessary details so everyone can have a chance at helping you out.

My view here is you can easily make a new post and ask the question you meant to ask.

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

So I took an extra step to check out the downloads page for TinyMCE and found 3 installers. I am left to wonder what you used here on what target system.

Also, it appears to be trial ware. I see that in your error message and at their site. But didn't read more about how long the trial is and well, it sounds like they are pushing you to buy it from the error message or activate it.

-> That out of the way, one of the downloads was "full source" which could let you get around any trial ware?

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

I know stuff but if you won't make a post with a clear request along with details about the host, what script languages and servers (web, SQL, etc.) then who can offer a script you might be able to use?

Also, you may be done with me since our SQL of choice at office and field is MySQL. You appear to be on a MSFT SQL so you'll want to chat with folk that run that system.

It's like you asking me for a tire for your car but you won't reveal the old tire size or make, model and if stock.

Example:
Q. Can my tire be replaced?
A. Yes.

Now if we discover you have a Ford Model T from 1908, then I was indeed wrong and should have answered maybe.

Why not make a clear post about what you want along with information so others can answer?

rproffitt 2,701 https://5calls.org Moderator
  1. About login to Google accounts. Chrome only uses the one you choose. This is detailed on the web so I must be short except to clear up something like this. So when I log in with Chrome, it syncs with the other Chrome's I've logged in with.
    Side note. Chrome the browser is actually an OS wrapped in a browser. Press Shift+Esc to see it.

  2. Is it sufficient to log into the phone's Gmail app? No. That only is part of the process to get sync to work.

  3. (the second #2 in your reply.) As it's your system and I don't know how you run your gear, I can't tell you what happens. I do know folk that dispise the Apple, Google and Microsoft ecosystems and in doing so unintentional break what's neat about them. If you don't use these sync systems you have to develop your own methods.

  4. XP. Sorry but I can't answer. We moved the office, home and lab off that long ago. I do know that our Linux, ChromeBooks, Windows and Apple machine sync Chrome just fine. XP? Sorry, can't test, don't know.

  5. OPEN TABS as a means to organize. This seems fraught with peril and blackness. I suggest you think about saving that set instead.
    Example: https://lifehacker.com/save-sets-of-multiple-tabs-to-launch-later-in-the-bookm-1453967463
    Team that up with Chrome sync and a lot of the grief I think you are seeing goes away.
rproffitt 2,701 https://5calls.org Moderator

Yes. Again. I guess you need to post a clear question next time. You asked is it possible. To that, it's simply yes.

I wonder if you are fishing for code and how to implement. But since implementation depends on all the moving parts, plus you didn't ask how, but if it was possible, you should create a complete new thread with what you need to do, along with what you tried.

This will take a bit of work on your part unless you go out and buy some Micrososft Server backup system. Backing up that server should include all that is on it.

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

Just a thought. Isn't this a little wordy? For example the if statement
if(gasInTank == gasNeeded)
and such. Couldn't that be a one liner like:
return (gasInTank == gasNeeded);

I could be wrong but I am working an android app that went to China, India and back home that is full of oddities and long passages that go on and on that could be stated simply in one line of code.

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

Since such would be specific to the SQL you elected to use, I hope you can see the answer to be mired in simple yes/no's till you know your backend OS, what SQL and what script systems you can deploy there.

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

There's a lot of options here but your tags don't really narrow down what you are after. That's why I had to write a simple yes.

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

I'm going with yes but stop short of writing the dissertaion and all that would have to be installed, configured to make this as easy as you appear to want it. So, sure, yes.

You have quite the work ahead of you to do this. Or maybe you need more team members to get this done.

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

Sorry if I didn't state it well. Your choice to empty the folder to some other place for testing. It's a very very old issue.

As to formatting the SD card, THAT'S A VERY GOOD THING TO DO. As you're never sure of the integrity of the file system, this usually removes all doubt.

-> I'm just an older programmer, started back in the early teletype days and let's hope your Google engineer shows up.

But as to tabs, on Chrome? I thought tabs come and go as I use the browser. And tabs on Android Chrome doesn't look the same until I get to the 10 inch Android tablet.

BOOKMARKS ON CHROME. Here, since I sign in on Chrome this synced. Now there are folk that refuse to use Chrome like that and they usually have a dead horse that is very beat up as well. I can't comment about that.

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

Let's chat about TWO THINGS. I'm going to condense the long post into 2 areas.

  1. iterates through the contents of a media folder. (and crash.)
  2. Transfers to your new phone.

On item 1, this issue is not new. We saw that for decades on Windows where Windows File Explorer and/or the Windows OS would crash on certain images or videos. This issue is still present today so go ahead and tell me I'm not helping. Moving forward. Just like in Windows the OS maker or distributor isn't going to fix this one. Microsoft didn't for decades and maybe not today for another long reason. But let's skip to how I work item 1. I clean out the media folder and usually that's the end of that. We can put in half of the content at a time to see where or what it blows up on but good luck on convincing the makers to fix this one.

On item 2. I agree that's a pain. But just like in Windows we get to work to transfer to the new device. There are long discussions about backup and restore. That said I use Google's Sync feature and moved phones last month. But I did have to manually install the few apps I used and for reasons that only a lawyer can explain, had to look at how to transfer SMS messages.

That's the short answer.

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

While you have your code, to print labels usually has us installing a printer driver and helper API from the printer maker.
Example: https://blog.jayway.com/2013/03/11/label-printing-in-your-net-application-with-a-dymo-labelwriter-450/

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

By Google do you mean Gmail? Why not us Thunderbird to go get all those emails and then export to CSV and then write your own parser?

Remember this is a coding forum so programmers may think like that.

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

So what happens when... You put that file on some FAT32 formatted memory stick. There are no permissions in that file system.

Sorry if I don't get into file permissions here. Sort of a well done topic so let's find a quick fix.

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

@Deamanjoe. I took a stab at your assignment googling the your top question. Now while that finds the assignment completed on a few sites, that's going to not get you there as far as what happens next. What happens next is the next assignment may be building on what you learn here.

There are free courses in Java such as https://www.google.com/search?q=online+java+courses
And there is plenty of discussion, docs and books online. But here's the hard part. You have to research, read and build your skills. Anyone that writes the code for you deprives you of learning not only how to code this assignment but how to do research today.

JamesCherrill commented: Absolutely right +14
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

While I don't see the end of the while loop, it appears to me it will do one last print before exit. You could fix that and move on.

Such as line 16 change it to
if (active) print .....

Seems easy to polish up.

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

@JameCherrill. I think they crossposted elsewhere and the mods there locked it due to forum rules there.

@Deamanjoe. The reason for you coding this for your assignment is simple. It shows you have learned what was taught to this point. It's OK to fail here since if you did supply code from the web such as what is at chegg.com then you may not have learned what is needed to pass the course. This is fine since without the failure the teacher won't know that you needed more instruction or help.

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

I think a lot of this will depend on the size of your new job/ad/biz content company. If you look at your competitors like Monster, LinkedIn and so on, they have invested a lot of time in their product (their web site, apps and sales force.)

I'm going to give a nod to Dazah here. I wonder if you could use that. I'm sure Dani would love to talk about it. Just ask her.