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

@tarun, your topic does not match what you ask in your post.

That aside this question has many priors for you to research. Example: https://www.google.com/search?q=How+to+convert+swing+application+to+Android+application

That aside you know your app. You wrote it so why not take what you learned during your first app and use that to write your new Android app?

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

Unused can be an issue. If they are declared in some bum way, well, when the app starts up the allocation can cause a fault.

SUN. Wow, blast from the past. I used those what in 1990? And later wrote install documents (did some tech writing) in the mid 90's.

Anyhow I'm very rusty on SUN OS but even if redirection doesn't work the output should be on the terminal window which you can copy and paste into the document you are using.

Also, isn't there more than > ? What about 2> ?

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

There are prior discussions about this. Example where they went with an in-place upgrade:
https://www.tenforums.com/performance-maintenance/23170-sfc-corrupt-files-2.html

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

Quite the odd duck there. It's a strange one so I'd want to know more about the PC as to make, model, age before I'd guess what it is this time.

HP Pavillions were desktops, laptops, etc. Mostly cheaps so you always consider repair versus replacement costs.

Be sure to try it without any bootable media to see if something bizarre is going on with the installed OS. If the machine is a few years old, pop in a new CMOS battery. Yes you can get out the Volt meter but I find many folk that get into PC repair don't get one right away. The usual CR2032 is a few dimes here so only your newest repair person balks at popping in a new one to remove this as a possible problem source.

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

Since it's legacy code, either I have to dive in to every include to find it or use the old binary search method.

Remember I take it you are a seasoned programmer and just need to chat about how other programmers narrow it down.

If this was mine I'd check the compiler output for warnings and errors. For gcc, I use the -Wall command. It's kicked around at https://stackoverflow.com/questions/11714827/how-to-turn-on-literally-all-of-gccs-warnings for extra switches.

Also, be sure this code is run through LINT.

Once in a while I encounter a programmer that does not believe apps should be warning and error free or pass LINT. They tend to have the most devilish of problems.

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

It's always a choice of how much work you will put in. You can exchange work for dollars as the search I gave appears to have products for sale to help. Most of all, the choice of how to proceed is yours as there are many ways to do this.

Let me be clear. You decide.

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

Read the source Luke (!)

From http://php.net/distributions/php-7.0.21.tar.gz

Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-fopen
allow_url_fopen = On

; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
; http://php.net/allow-url-include
allow_url_include = Off

This means with the bona-fide PHP from the source you would have to do nothing to turn it on as it is already on.

Check your source for your PHP? Read the php.ini-production file.

gentlemedia commented: Yes, the production ini file is the one rhat I edit within WHM +0
rproffitt 2,701 https://5calls.org Moderator

http://php.net/manual/en/filesystem.configuration.php (documentation) says it's enabled since 4.x.

https://stackoverflow.com/questions/43543297/allow-url-fopen-is-on-but-phpinfo-says-off notes same issue but an odd fix at the end. I can't test that.

gentlemedia commented: The second link gave ne the answer +7
rproffitt 2,701 https://5calls.org Moderator

Let's make some other assumption that it is not the line 1 or 2 you supplied.

Did you try to debug the app further? That is, let's just exit on line 3 with exit() for a test.
https://www.tutorialspoint.com/c_standard_library/c_function_exit.htm

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

OK, all this but I never broached the "what is it?" question.

What PHP is this?

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

This is something you do before you display the field. That is "check for a value before displaying it."

Examples at https://www.advancedcustomfields.com/resources/hiding-empty-fields/

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

It's either the php they deployed or a reboot is required. Examples:
https://www.google.com/search?q=when+do+php.ini+changes+take+effect%3F

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

As you read they compile php with it on/off and don't seem to use a php version that allows changing it in php.ini. Yours?

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

The hosting can matter here. I wanted to be sure the php.ini was good before I noted where the host can control/override this with a custom compile. https://www.a2hosting.com/kb/developer-corner/php/using-php.ini-directives/php-allow-url-fopen-directive and links there tell us this can be host dependant.

That is, "Ray, what did you do?"

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

Too little detail. You didn't reveal where this was going to be saved. Be specific. MySQL? DB2? Jersey?

Here's an example: https://www.daniweb.com/programming/web-development/threads/193775/how-to-insert-checkbox-data-into-mysql

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

I think you need to take advantage of the prior answers and finds at https://www.google.com/search?q=How+to+convert+a+swing+based+application+to+Android+application

There appears to be many paths, which will you take?

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

I'll guess PHP or such needs to restart. Look directly into the Sun? (nope, look at the php.ini file to see if the control/ini editor is changing it or not.
http://phpsec.org/projects/phpsecinfo/tests/allow_url_fopen.html

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

This is what we call The Dead PC. I see you removed most things but one part I rarely see folk remove is the case. Be sure to pull out the mainboard onto cardboard and try it without the case using the bare minimum parts. If those parts don't work you are looking at the bad part or parts.

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

A few issues. Read these and show your work so far.

  1. https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question
  2. https://en.wikipedia.org/wiki/Software_design_description

If you are hiring out this app, be sure to supply how much it pays, etc.

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

While I no longer write new apps in VB6, my old apps would poll RS232 connections and do things (doesn't matter what here.)

https://www.google.com/search?q=Zkemkeeper+sdk+real+time finds folk are looking for this for years so you are here and my thought is to forget VB6 since it's long gone and you'll find less and less support there.

If you can read said device at say once per second, is that good enough?

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

Did you post this 3 times? Avoid that. Spamming doesn't get you points or faster replies.

Where is your code? Without it members can look it over. Also, where in the code are you having issues?

Before you reply read this: https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

happygeek commented: Other posts (which were also thread hijacks) now deleted so people can focus on this one +15
rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

If you need an analysis of over 300 lines, consider Jlint first. Get that clean then follow advice about how to narrow down the issues.

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

Tip: Try a few Python tutorials to see if you like programming.

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

Take a moment to clear up what your question is.

If this is the usual iPhone can't connect to your router question, Apple iPhones can forget connections, I mean you use the menu in the setup of the WiFi to forget the old connection and then connect again.

If your name and password fail then on your PC/Apple login to your router to see what the router password is.

But here's where it gets murky. You asked about the name and password. So take some time to clear up what the issues are.

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

I read a few priors with https://www.google.com/search?q=Can't+open+%2Fdev%2Fnull%3A+No+such+file+or+directory. and here the first hit although not Centos did give some other commands to work around it. Specifically try the sudo mdadm at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/575333

Apparently this is a bug. I'd talk to your provider if they have a workaround (Redhat owns this?)

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

There is no line 43 in the supplied code. May want to share more.

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

Still wondering what's in $result from line 34. Or are you writing the connect in the last 9 lines of code fails?

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

One thought.

  1. Line 34 what is in the result?
  2. Answered.
rproffitt 2,701 https://5calls.org Moderator

Two thoughts.

  1. Line 34 what is in the result?
  2. Is this the old deprecated mysql calls? I don't see the full code so it's a little light to me.
rproffitt 2,701 https://5calls.org Moderator

I'm unsure if you get it.

switch (rank)
            {
            case 0:
                if (rank == 1)

There's no reason for the if since the switch already tested the value of rank. Why if?

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

As a programmer you would choose to write from scratch or fork an existing project.

Your post told so little that I would have to guess too much. Try this. Add a programmer to your staff and tell them what you want. They'll make you the app and you can avoid all the work.

PS. Example clone of a well known app is over at https://apporchestra.com/cloneder

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

PS. I wrote to COPY lines 183 to 186 and STARE at them till the lights came up. Once you see it, you will know what to do.

Again. COPY the lines to some text editor ALL on their own. Think about what you wrote.

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

I wanted you to understand your code.

Why would test rank to be 0 on line 185 then to be 1 on line 186? We are not using quantum computers yet.

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

As to the missing output. You should run this in say Visual C++ (there are free versions) and break on the line to examine the values and then you can work backwards to why the value was out of range or not working.

I notice line 183 where you switch (rank) and then on case 0 test if rank == 1, that won't work will it?

In short copy out lines 183 to 186 and stare at it till the lights go on.

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

Look at your use of tabs on output. That won't be consistent from machine to machine. Here's a google about that.
https://www.google.com/search?q=inconsistent+tab+spacing+c%2B%2B

There's nothing really wrong there. Just how tabs work and why you should just build a string to output as you want rather than use tabs.

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

Take time to point out what lines of code for members to focus on. You dumped 300+ lines of code so where to start?

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question to see how to improve your posts and questions.

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

@diafol. For the new to this crowd I agree, but a bona fide papered software engineer?

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

@diafol. I want to address the Minimum setup nonsense concept. While I agree that learning programming can be the goal, learning to setup your tools is still something a complete programmer needs to learn.

Example? We use small microprocessors on boards to hit pricing goals. The tools to program these are not too hard to setup and I make it a point to document the setup in a page or less so the next person doesn't have to discover on their own how to get the compiler and more to work.

We had to let a few programmers go over the years because they were not well rounded. They needed too much support on setup or demanded we setup the programming environment for them.

To be fair we didn't demand they know all this and would show them the first or second time but there is some "entitled" feeling you get from some today and that's not a good thing.

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

I think you need to check spelling too. I used https://www.google.com/search?q=Jquery+slider+for+commercial+use and find there are such offerings.

If you use someone else's code/app/plugin/other then you have to check license/use agreements. If you start with free to use stuff that allows you to re-sell then you are done.

Bottomline? It's work for you but avoids the nasty legal takedown notices.

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

This is something that doesn't have one solution for all answer. https://en.wikipedia.org/wiki/Insomnia and the Prevention paragraph works for me.

I used to be an all hours on call person and it took its toll. About a decade ago I recognized the signs and found that setting limits along with getting to an established schedule did wonders.

It's rough to do for some folk but for me, that was all it took.

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

Very nice and very similar to what we read at https://www.reddit.com/r/PCMasterRace/wiki/builds

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

Hi Mr.M. I checked your prior posts to better understand what the big picture is on your project. Is that unacceptable?

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

@MrM, I checked the prior discussion you had on this and read the document linked and agree that this doesn't do that. On top of that it appears not to track USB stick changes/events.

Why not start a thread telling all your app is trying to accomplish? You had a long series of discussions about how to break MP3s and this sounds as if you are still pursing something down dead ends and blind alleys.

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

Did you fsck all partitions on that drive?

https://www.google.com/search?q=bad+superblock+on+%2Fdev%2Fsdd%2C&ie=utf-8&oe=utf-8#q=bad+superblock+on+/dev/sdb,+site:ubuntuforums.org finds it's not an unknown problem but I can't find one answer to go with but one. Wipe and start over.

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

I can't answer why the W8 note. Might be some UEFI not handled issue. Why not put it on USB?

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

A bit too easy. Look at MessageBox. Examples are plentiful.
https://www.dotnetperls.com/messagebox-show