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

Could this be a one liner?

numbers.sort()

From https://wiki.python.org/moin/HowTo/Sorting

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

A few issues here.

  1. If you are trying to buy the code, be sure to tell how much you are paying. That is, this is not a "gimme the code" site.
  2. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

Especially the before you ask section. I'm sure folk don't mind you hiring others here.

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

I'm sorry I didn't directly address the login issue. My thought is you would NEVER do that since it can be boobytrapped.

At least I warned you (nod to Tim the Enchanter.)

If you can't use NTPASSWD (see google) then pay up at www.lostpassword.com since it's cheap.

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

I see no open tickets at https://sourceforge.net/p/fbcim/tickets/?source=navbar

If you don't file a ticket, they don't know it's broken.

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

Remember we don't have to login. Besides, running this infected machine can lead to further damage.

It's like you are fire and insist on running. I read above advice about getting your files out. This is a standard routine. You get the drive over to some Linux box to copy out your files. If you know they can be decrypted, then you have your files and head to your decryption methods.

Remember you write it is decryptable so that means you know how. What you don't know is how to get the files out.

That would be the old standard routine. Remove drive from infected PC, boot Linux and get the files copied out to where you can work on them.

I think at this point we are going in circles. I get it that folk want a choice of the red or blue pill that will just fix it but this is mildly complicated work. Not impossible, just complicated. It might be scary to those that never booted Linux or moved drives around.

Glad to read you haven't taken to drink yet.

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

Would be possible to loss data when you decrypt files that are affected by ransomware?

Absolutely. Yes. Yup. No question. Take it to the bank.

In other words, this is why you read folk talk and write so much about backups. Let me quote my friends here:

We only lose what we don't backup.

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

@J

We have to tackle this step by step. Remember that ransomware does not always encode files. It appears that recent ransomware is just wiping out files and hope you pay. They keep the money and have no decoder.

-> You have now stepped into the disaster plan with both feet. That is, you know you need to obtain your OS DVD, go get a Linux (too easy, I hope anyone that runs Windows Server knows how to go get this) and most of all, backups. If these files are irreplaceable then they are on backups. If not, they weren't worth backing up?

Some folk lash out over such events. I feel for them but for many that don't backup, don't have a disaster plan and run a loose ship that ransomware was installed by the user/owner/someone (so far I have yet to find an instance of a drive by ransonware.) Let's call it their Waterloo. They get soundly trounced and if they survive, they become a steadfast believer in backups and disaster plans.

I think about 2 or 3 out of 100 swear off Windows forever and 1 will toss the entire system in the bin and hide out on their smart phone.

BACK TO DECRYPTING. Since we have the new ransomware and a few you can decode the problem now is:

What Ransomware is it?

That's the big question since if you don't know the name of the daemon you can't be sure how to decrypt it.

cereal commented: " they become a steadfast believer in backups and disaster plans." lol +15
rproffitt 2,701 https://5calls.org Moderator

You raised a lot of issues here. It's unclear why there is no installation CD (it's more likely to be a DVD) since well, it's one of the things you need to fix issues from time to time. I know with all the natural disasters there's a reason to be in such a pickle but I'd take the owner of such a server to task about being lax in regards to the company disaster plan.

But here we are. My bet is you'll have to remove drives so you can on a machine running Linux which as write by cereal will not execute any code but allow full access to backup what you want if the backups were not done. Linux will also let me copy in a file, edit if need be. But this is your support staff skills and not something you may find on the web as a step by step. In short, get the drives out and backup, then attempt a fix from another OS. That OS will likely be Linux.

Microsoft still sells Server 2012 media if you can't find a copy on the web. Once in a while I find an IT staffer flailing about, unwilling to pay the man for the media. I can't imagine why they delay.

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

The site is too nichey (not mainstream but serving a narrow market or audience.)

There's nothing inherently wrong with that but the product line is what it is. I think to get what sales there are you would never try to move the product on your site alone but get it on Amazon.

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

Thanks JamesCherrill. My question is more to D since I've run into specs that call out "between 0 and 10" and the author really meant from 0 to 10. It's just one of those recurring spec vs. mindreading things you run into from time to time.

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

Time to find that author. A lot has changed in browsers over the years. Find them and ask if there are other changes required. All I found so far is you jumped in, and well, not my code so I can only point out obvious omissions.

Read the rest of the replies at the link given.

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

You may want to read the notes again. I didn't read it as "remove" but edit/change.

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

It appears that is Chrome only and 3 years ago. In a reply at your YouTube link you find:

PROBLEM: Be aware that this code in video will only work in chrome. (even in 2014!) BUT I have managed to make this work in firefox also:
You need to modify the
"context = new webkitAudioContext();" to:

I think you need to read what they changed in the replies there.

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

Two comments.

  1. I look at your title then your code and back to the title and don't see any sign of what database you want to use as well as #2.
  2. In short, "Code Incomplete." Let me pick on line 6. What is x? I don't see it. It's like someone through some random lines together and well, I don't want to upset you here.

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

Now fill in those blanks.

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

I checked your old posts so you did Adsense and https://support.google.com/youtube/answer/72857?hl=en and from the sounds of it, there is no money here.

Let's say these are YOUR VIDEOs. I'm hearing folk put their works on Amazon Video for say a dollar for a series. It appears they make a lot more than 18 bucks.

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

Be sure to clarify this. a <= N <= b or a < N < b?

Between or inclusive?

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

At the link given it has a section titled "### Installation" and "### Usage".

If this won't suffice, maybe you need to find a friendlier app?

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

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

My comment about changing from if to a switch is about readability. You have so many if and else's that I didn't see why at the first reading.
To me it's time to clean this up.

I supplied a tutorial for you to take if you haven't used switch before.

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

Now is the time to use the Java switch and case to clean up that code. You've if'd your way into a hole. Switch that to readable code now.

Tutorial at https://www.tutorialspoint.com/java/switch_statement_in_java.htm

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

Should I tell? OK, I will.

For AssertNull.

It happened. A good client came up with the impossible to meet the deadline project. Since I know their thoughts on timelines I decided to dodge the bullet. How did I do that?

I don't recall my exact words but it went something like "That's a big project. I'll ask around if any of my contacts will take it on." Those were not the exact words but no one would go near the project due to the deadline. I had to find an out because I didn't want to take a reputation hit.

What happened? The project deadline came and went without any company or person accepting the job. A few months later the client brought it up again (lesson here, don't bring up projects that are an embarassment to your clients) and we chatted a bit then they revealed no one could meet the deadline and wondered if I was interested. I got the job and many months later it was delivered.

How long did they give in the first schedule? Two weeks. (Anyone remember The Money Pit?)

Sometimes it's best for take a vacation.

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

How much am I being paid?

There it is. I'm sure we have stories about features that were not in the spec and so on.

Right or wrong, the client's payment as well as their ATTITUDE really sets whether the feature or issue is going to be addressed.
Some will exlaim Heresy! Then tell us we should implement this or that because we know how.

I deal with custom designs (hardware, firmware, apps and what else?) and the more I do this the more I want to see it in the spec.

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

The absolute worst case scenario was time scheduling in Jordan. Same city but depending on your religious persuasion, the time differs.

Skip to about the 5 minute mark at https://www.youtube.com/watch?v=-5wpm-gesOY

So how will you deal with time without going mad?

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

Why isn't the memset a simple length of 1? C style strings end with zero so why fill the entire space?

Seems like this sort of programming is the reason code today is often slower than what we wrote decades ago. That is, coders today do the damndest things.

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

Pretty easy. Set the array to a nul string and deal with it in your code.

BTW, this is usually done in a linked list or say, a string library function but for me, I've used the old nul means no string here method for a very very long time.

So I'm going with:

  1. Use a linked list. (Sorry but you can google this.)
  2. Use my old nul method and deal with it when printing, searching, etc.
  3. Use your method but speed can take a huge hit as you may have thousands of strings to move.
rproffitt 2,701 https://5calls.org Moderator

@C

While we can go over C and if's, the code isn't clear to me. I continue to think of 3 blind men describing the elephant.

What if adding_to_member_flag is 1? Nothing will print. Maybe that flag is retrieved from the database? I can't know that.

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

As to the question of unlock and fix, there should be spammers here with the usual filerepair.com and other sites. Since many of these are spammers I won't mention them.

My thought is as a programmer you find where in your code you can reduce the opportunity for failures or revamp, migrate to a solid system. For example I found Access to do exactly what you noted and not much you could do about it. This meant the classic SQL (MySQL and others) with some user frontend in whatever language was the solid replacement for shaky Access.

There are some that use Access and demand it work right. You can imagine how others think about that.

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

@James,
No I get that. We may be missing the whole animal. Nod to blind men and the elephant.

Can you find docs about what happens if the expression on the left changes the value that is on the right? For me I found that to fail decades ago so I never code a line like that. I'll break it up like I did above or go ahead and perform the action so when I if, the values under test are known.

As to counting on correct C compilers, you are right but then again I was never given a choice long ago. If we found a problem, we would test to see what's up, then code so it works. Some would get upset about that.

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

I don't know the full code base but let's check a thing. In your reply above "Like this?" tell me if the mysql_fetch_row supplies or changes the value adding_to_member_flag. Why it matters is that your compiler may do that test first as it is low cost.

If you want to assure that mysql_fetch_row executes before the test of adding_to_member_flag, be sure each test is on it's own if. Like this:
`

  if(!(row1 = mysql_fetch_row(result1)))
        if (adding_to_member_flag != 1)
        {
        }`
rproffitt 2,701 https://5calls.org Moderator

C, even better. I see you cleaned up the code to clearly state what you mean.

Now it's time to print those tests to the screen (debugging HO!)

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

Try again but clarify the second half of the if. What if your compiler thinks you mean "!(row1 = mysql_fetch_row(result1)) && adding_to_member_flag" is not equal to 1?

Don't be afraid to clearly state what you meant.

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

You may want to reduce the error count. Currently at 108 errors and warnings at
https://validator.w3.org/nu/?doc=http%3A%2F%2Flandbankrealestate.com%2Fen%2Fproperties%2Flote-en-condominio-las-vueltas%2F
one of those could be what's going on.

Given the high error count, I suggest a chat with this site's web master.

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

Try again. Show your work and avoid pasting homework instructions as that sounds demanding.

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

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

@over. That clarifies this for me. And now my comment about investing too much in obfustication.

Let's start with this statement after reading https://en.wikipedia.org/wiki/Obfuscation

Obfustication does not secure applications from reverse engineering.

At best you only made it harder but didn't gain much. This is why I don't bother with obfuscation beyond a check box and let it do its thing.

Why do we do this at our shop? Simple reasons. Mostly to do with costs and being able to maintain the code or in some cases, getting the app delivered. If obfustication COSTS us anything, it is dismissed quickly. Remember it's not giving us much if any security which of course those that sell it will disagree.

So like "cake or death" my choice as to "deliver or not."

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

Read your code, Now look at what you did there. You never altered the magicians list (or array.)

You use for magician in magicians_to_change: so you get a copy back of the element and not the array item itself. Then you change your copy then never use it.

Next time just use the old school index method. Example. You fix if borked.

for index, item in enumerate(magicians):
    magicians[index] = "Bullwinkle and " magicians[index]
rproffitt 2,701 https://5calls.org Moderator

I have a question. You claim this is a web app. I looked over what https://www.preemptive.com/ offers and found no web obsfucation offering.

So let me guess your app runs on the server and not the web browser.

My question is then: How would the web user gain access to your executables?

By placing them on your server, they run there and are not exposed unless you left out some detail.

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

Not too bad. I usually see a lot more errors on sites like that.

Read https://validator.w3.org/nu/?doc=http%3A%2F%2Fkodibeginner.com%2F and a few should be easy to clean up.

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

I'm reading

Opening Your Access 2000, Access 2002, or Access 2003 Application in Access 2007

From https://msdn.microsoft.com/en-us/library/bb203849(v=office.12).aspx

Why the claim you can't change to a current version?
Also, at only 36 meagerbytes why isn't the backup hourly?

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

@C. Then state so in your while condition. Never rely on the compiler to read our minds. Spell it out with a few more parentheses.

I know folk that want to debate the too many parantheses but they are here to debate, not solve it.

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

Let's try the old user account issue/problem. Since you don't use a Microsoft Server and such my bet is you forgot to add that user and password to the faux Windows machine that hosts the database and serves up this access file.

That is, if I'm John, John will have an account on both machines.

Also, you have to deal with shares.

-> Frankly I found all this to be utter carp. Over a decade ago I dumped all that and went over to the dark side with MySQL. Never looked back.

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

Sorry no. I'm more of a VNC and telnet over ssh type person.

rubberman commented: Likewise. +14
rproffitt 2,701 https://5calls.org Moderator

Wait, didn't I read in SEO circles to not bother with Alexa ranking? Why bother?

gentlemedia commented: Indeed! Being busy with Alexa ranking is a waste of time! +7
happygeek commented: Spot on. +16
rproffitt 2,701 https://5calls.org Moderator

Look carefully at your use of left and right parentheses on line 1.

Did you mean to compare gets(line, sizeof line, stdin) && sscanf_counter to not be equal to 2?
Or did you mean gets(line, sizeof line, stdin) then and the next condition.

Be clear about that. Don't rely on "a C compiler works like this."

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

I think you need to read the tutorial again. You have a while() and no check for break, etc.

Remember I do not know what you want to happen but the code you supplied would behave as you said.

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

From the docs:

The C library function char fgets(char str, int n, FILE *stream) reads a line from the specified stream and stores it into the string pointed to by str. It stops when either (n-1) characters are read, the newline character is read, or the end-of-file is reached, whichever comes first.

-> https://www.tutorialspoint.com/c_standard_library/c_function_fgets.htm

So it stops under those conditions. If you want to reveal why you want it to stop or have a C code sample, add that here.

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

There's a problem with your request. You didn't define the parameters for performance so without that, what you think is best is not known.

If you just need a handle on performance testing you can research that with google. I like to check sites with the W3C checks.

Let's see how you did.

Over 400 errors at https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.sellist.com%2F

I can see why you think there are performance issues. You may want to have a talk with your web master.

ddanbe commented: Nice,(best is not known) +15
rproffitt 2,701 https://5calls.org Moderator

That page is by just one person and it appears you can contact him to ask if he has built it on your selection of OS, VS and more.
In this case, a fine reason to ask the author.

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

I went back to the pages and areas do look dated. Especially the references to Android 4.x. which is about 4 years ago.

I didn't want to upset you but the docs definitely have the feel that those that run this project may have moved on.

Here's my advice. Hunt down who runs this project and try to contact them directly about where to get support.

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

I think your question needs clarifying. As it stands I read your question then look over the code and can't find upload2 in the code. So I thought, forget the code, read what they wrote. That didn't help either.

Try again and state what you were trying to accomplish. Also read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

If you did find a solution, just add that here.

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

That's amazing. I've yet to take a class where there was a quiz on subject matter that was not covered.

Now I did take a class where you were given assignments that required research beyond the supplied text but today that's not a big deal and I think this is maybe what happened to you.

That is, the teacher may not have taught you how to use the internet. If I were to use google I bet I could find a programming example from vb.net to excel. So your question isn't about how to code vb.net to do this but how to research so you can find this on your own.

-> Think about your topic and craft the words for your search. Here's that I thought to try:
https://www.google.com/search?q=vb.net+example+to+read+and+write+excel+files

And there it is. Examples for you to look over to see how it was done.