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

What is geche()?

Reverend Jim commented: A typo? +15
rproffitt 2,701 https://5calls.org Moderator

Next time, use the code formatting feature of the forum.

As it stands I can't guess your database design. What if there is no ref_no,name, address,zipcode in the columns?

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

This had me check out if such an app has been written before in C. This lead me to the linux and other OSes "tac" command.

The source code weighs in at about 700 lines so I won't post it here but just a link.
https://github.com/coreutils/coreutils/blob/master/src/tac.c

No conversion required at all. Use the source Dawit.

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

Let's see code and that error message in its entirety. Be aware that you have a lot of steps to get this to work from screen shot to the upload to some place. As to "it" being a server you also have to reveal detail here. Example: You are serving up content via IIS (or what?) and this screen does not exist on the server.

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

Above I wrote about adding debug code and testing to see if your header() lines of code work. I can not do this for you as I do not have your database, web server etc. But you are there so you have to do the debug.

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

Welcome to DANIWEB. I took a look at your profile and that data is missing. Also, talking about yourself like this reminds me of Jimmy. Read https://en.wikipedia.org/wiki/The_Jimmy

PS. I see The Jimmy video is at https://www.youtube.com/watch?v=Apa0nG1OfUc

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

I don't see any log or debug statements in that code. Is it working now? Why?

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

You wrote CLI which in my world means Command Line Interface. "This just in" (town crier voice) and something I want to try out this week.

Read https://www.howtogeek.com/428654/how-to-monitor-the-progress-of-linux-commands-with-pv-and-progress/

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

There are two reasons this code might not do what you expect.

  1. The switch/case test fails in some way. What if the string you have in the code is not the string that is in the database?
    You won't know unless you debug this code.
  2. The header() function isn't working. This one is a bit easier to test. Hardcode it one way and then the other. Does it work? Then the issue is likely to be in the switch/case code. Which I can't test for you as I do not have your database or system.
rproffitt 2,701 https://5calls.org Moderator

To find out where it went wrong, echo or log those variables and results as your code runs. I run into a lot of programmers that forget they can echo or log to see why their code isn't working. As there is no error message shared and we don't know the database and more, more debugging information could crack this case.

For example, are you sure that $role matches or not?

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

That's good but encryption is one of the steps. Needs to be salted as well. This is covered widely.

I can't tell if you solved the above. My apologies but I didn't find you writing it was broken in the top post. (no problem statement.)

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

PS. There's another problem if the above code is what you use. The name and passwords appear to be "in plain text" in some database. This is a bad idea that was taught for years and folk are having to unlearn that. There are many articles about that issue. Here's a few from google: https://www.google.com/search?q=Never+store+passwords+in+your+database&gl=US

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

@Speed, I read your top post and couldn't find any problem statement. So my read was just to look over the logic and wonder about why the else statement. So my reply covers only that as I could not guess what issues you had since those were not shared or I missed it.

Since the switch didn't appear to work, be sure to echo or log the variables used after say line 20 so you can debug it.

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

Looks good to me. Good to see you try to cover the condition when there is no user role. But maybe you didn't need that line 29 else.

Why not use default ? Read how at https://www.w3schools.com/php/php_switch.asp

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

I took a look into this with https://www.google.com/search?q=dropbox+api+progressbar+%22Python%22&gl=US and it appears to not be exposed in the Python API. You do find folk that created a "chunked" uploader to workaround this omission.

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

As to LIMIT, I use SQL so my thoughts are there. If TOP is the keyword you can try TOP 1 on line 3 after the FROM keyword. The Access syntax is not one I work with so you have to work that out. Example: https://stackoverflow.com/questions/4551112/access-database-limit-keyword

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

I see you have development companies on your tagline. Why not use them?

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

Since the list can be done in a few ways, let's see the code so far.

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

Few will guess why you can't do this. Supply a minimal viable example.

shanahunts commented: for ex. select * from tblmasterlist where re_order_level = '-1', interval (30) " +0
rproffitt 2,701 https://5calls.org Moderator

Steve, are you telling us that linked product FAILED BIG TIME to answer your questions? That's good to know as no one wants that to happen and nice for you to share who to avoid in their searches.

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

The best project is the one you need. And what you can do today in Python is well, just about everything that you may want to consider a tutorial system found with say https://www.google.com/search?q=python+step+by+step&gl=US

Most are free.

Another idea is to get onto the Rasberry Pi system and learn more there https://www.google.com/search?q=python+on+rasberry+pi&gl=US

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

I think you are close to the answer. My thought is to use your SELECT and a LIMIT 1 with the ORDER BY date with the DESC or ASC keyword as you see fit. Light reading at https://www.1keydata.com/sql/sqlorderby.html

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

I see the short answer but this would be after a few chapters in a book or later in your school coursework. No book or class has you write this without building up to this assignment. So tell more about how you arrived at having to do this without the precedind work or chapters.

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

To add to my reply about a team. There are teams that you don't hire. Look here and DANIWEB has folk that team up to help out.

The story of software apps and games where there is a team that is unpaid repeats quite often.

As to myself, I've been on both types of development and can share my preference for a solid team. Doesn't matter if they are paid at first or not, it's the people and skills of the team that can really make it work.

That said, I've also seen the lone developer struggle, not add anyone to their team and years later still struggling.

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

To me that's team building. You need people to join your endeavor that have background in those areas or a "product manager" that sources what you need. If you go it alone, you may take longer as you learn how to develop products. Teams make it possible to reduce that time. And if you don't want to be a product manager then you get one of those too.

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

While you would need an attorney to weigh in I think https://github.com/PhilJay/MPAndroidChart/blob/master/LICENSE covers the licensed use very well as it looks to be the bog standard Apache 2.0 license.

Lines 123 to 128 are interesting as it may impact what you write in your own license agreement. Remember that I did not read all 201 lines but you should.

PS. As to your top question I could spend a day going over that question but given no one can code it all, you should use code and content so you can build your apps. Imagine trying to start over from say a single board computer, assembly language to OS to apps written all by you. While I applaud such efforts, at some point we have to move beyond "I wrote every line of code."

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

My thought is one leaves space in the form and the other does not.

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

This could be done by putting the ROWNUMBER into your SELECT statement. As a clue consider:
WHERE RowNumber % 2 = 0 --Even
WHERE RowNumber % 2 = 1 --Odd

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

Thanks for pointing that out. As to the desktop and mobile views, all the developers I know test on at least the desktop plus iphone, ipad, android phone and android tablet. For a time the developer I worked with would test on a Chromebook but between finding nothing over a year and so few Chromebook users (one hit a month) we agreed we could stop that.

The Chromebook at the office found a good home.

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

Let's not forget the dark side of Captcha where it was used as a game to automate site hacking. Folk were playing a game and unknowingly helping bypass legitimate Captha systems.

Also https://anti-captcha.com/mainpage

I'm sure it was a great idea and folk want some way to monetize and not feed the beast but stepping back to view how broken this is, any re-do is just that. But hey, it's not nearly as scary as the SIM SWAP exploit.

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

https://www.google.com/search?q=Using+captcha+to+classify+photos&gl=US shows this idea has been around for quite some time. What we tend to worry about today is data leaks. What other data is being collected?

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

Good to know. Most of the folk I work with are more concerned with usability so no one makes text tiny or huge. As such we don't get a penalty and it's not an effect we see.

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

Not by spamming. This is too much like https://www.daniweb.com/programming/mobile-development/threads/520202/how-to-get-more-app-downloads#post2252839 where you have an open discussion. Post there to continue.

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

You can read what folk think about that and I will agree with https://www.google.com/search?q=font+size+helps+seo.&gl=US

  1. No.
  2. Yes, it makes a non-SEO difference as it's just good design that helps you get folk to come back.
Dani commented: Incorrect, font size is an SEO factor -4
rproffitt 2,701 https://5calls.org Moderator

@Ant, I looked at your top post and saw nothing about Section C and D. What you might be trying to do is to extend your discussion to include NEW QUESTIONS. Sorry but I won't do that. If you have new questions those are in new discussions. Otherwise you have discussions that never end.

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

@aaron. It's blatently false you have to take their course. There's w3schools and other such free courses online so how much you learn is up to you.

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

I have a few thoughts about this.

  1. Kind of spammy. So I'll share a few more things.
  2. I haven't had to root for years. You didn't tell us why we want to root out Android phone. Big omission there.
  3. The times I did root it was to disable apps that were locked down by the carrier (Sprint) and even then I found zero difference before and after save a little more free space which in the end wasn't worth the effort.
  4. To root I went to XDA Forums. Much better source than your link.
rproffitt 2,701 https://5calls.org Moderator

PS. Why is your website in your profile dead?

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

I have to write that site is underwhelming. You really need to do the usual trials with some users but if I landed there I would not be back. Get together a focus group, make up some questions as well as one blank box for your test subjects to tell you what they think. As it stands it lacks what draws folk in.

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

Let's say your code is 100% valid, what are you doing about say Chrome and pop-up settings?
https://support.google.com/chrome/answer/95472 tells us that Chrome (and most other browsers) block sites from starting anther instance and automatically showing up on your screen.

Just another thing to consider.

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

Put your site in your profile so members can comment why. Also beware that you are competing with a few million others for the prized top 100. That is, is your site that compelling? Or just another coupon site?

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

Just thoughts, you have to verify and get the syntax down pat.

  1. uname.
  2. cat (where ever the hosts file is)
  3. route or netstat
  4. w
  5. display used AFAIK is not simple. Try https://superuser.com/questions/647464/how-to-get-the-display-number-i-was-assigned-by-x
    5a. free
  6. Non-standard AFAIK. Read https://www.ostechnix.com/check-linux-system-physical-virtual-machine/
rproffitt 2,701 https://5calls.org Moderator

I hope you realize this is a prime example of a bad login system. It's a fairly safe bet the data is in the clear.

Never teach this old method ever again.

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

Knockout for quick low complexity work, Angular for large systems. I don't know who your clients are so just like a car you get the SUV if you get only one choice of vehicle. Nod to Angular.

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

Kind of vague there. English being what it is, I could read that as your app needs to download more or you want more folk to download and use your app.

I checked your profile and see no mention of an app so I'll write that there is a problem in the app world which is being covered in some media. Folk are resistant to installing more and more apps so your app has to be really compelling or necessary.

Too many apps have built in ads which create troubles like lower battery times to just plain annoying. This is why I have so few apps on my phone.

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

Think about your post and supplied information. How can anyone guess here? You are a developer so you know how important the details are.

That said I did have a spat of students that could not install. Turns out they were trying on Windows Limited Accounts (not administrator) and some had overreaching antivirus suites installed.

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

Which is why we use conversion functions like https://www.w3schools.com/python/ref_func_int.asp

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

Did you notice you are not comparing numbers? Read https://www.google.com/search?q=python+single+quote+use&gl=US

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

I strongly advise against this as you would be exposing your Windows Server to the Internet and not the usual office scenario. I think a beginner might be able to do this in an office setting but you are asking for a lot more security than I will write here.

Also is that your real goal? I mean since such a login requires the Pro or better versions of Windows or Apple OS then did your company pay for those user's PCs and OS upgrades? If not, you are talking a big chunk of change to get each user from Home to Pro and then the support each user will demand.

If you are asking your first qestion above I worry you are not ready as a company to do any of this work. Before you do this consider taking more courses in Windows Server (latest version) setup and administration. During your course you can pick your teacher's mind about deploying on the Internet.

No company I know will do this as there are big security issues and can royally F-U the company as the employee productivity tanks as they can't login over the Internet.

-> If you want "terminals" why not research Terminal Server solutions instead?