Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The market doesn't give a shit how hard you worked. Users just want your software to do what they need, and you get a zero otherwise. That is one of the most distinctive differences between school and the real world: there is no reward for putting in a good effort. In fact, the whole concept of a "good effort" is a fake idea adults invented to encourage kids. It is not found in nature.

--Paul Graham

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

We need more information. What are you connecting to? Is it a web service, a database? If database, what kind of database. What is your expertise and what, specifically, do you need help with? What work have you done so far?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

jump around the page trying to find the next lie

This is not a political website. I'll assume you meant line ^_^

In case you haven't yet read it, a great book on the subject is About Face: The Essentials of User Interface Design by Alan Cooper. There is an updated version for the mobile age titled About Face: The Essentials of Interaction Design

Warrens80 commented: thanks for the suggestions +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

yes, and you consider any change to be change for the worse

It's also very easy to put words in my mouth and then dis me for those words that I never said. I consider Windows 7 to be a big improvement over Windows XP. The start menu was much more functional for one thing. Aero was pretty cool and for those users who didn't like it, or were concerned about performance or battery life, Microsoft made it easy to disable. Microsoft is still making many changes to Windows 10 based on the feedback from users (like me) who are part of the tech preview. I'm sure that after the disaster that was Windows 8 they will be looking much more closely at the negative feedback than the positive.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I think Microsoft should have taken a tip from Spinal Tap and called it Windows 11.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Imagine that every time you went to work your spouse rearranged all the drawers and cupboards for no particular reason other than he/she felt that today's system of organization is more optimal than yesterday's (at least that was the reason given). It wouldn't be too long before you urged your partner to go into therapy.

I'll say it one more time - I am not opposed to change as long as it is a change for the better. I complained about the changes from Windows 7 to Windows 8 and was roundly criticized as a Luddite. Apparently there were enough of us Luddites out there to make Windows 8 a spectacular failure. Sure, there are people out there who say Windows 8 is great but there were also people who bought Edsels, Pintos and New Coke.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I've been running Windows 10 in a virtual machine since it was released for preview. They say the Start Menu is back but it isn't really. As for the rest of it, in true Microsoft fashion they've managed to fuck up the interface yet again. Remember when they changed the location of everything from Windows XP to Windows 7 because the new organization was really really the way things should be? Well, now there is a new really really (really) better organization. Bite me.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

But as long as you can leave the Jag in the driveway to impress the neighbours then who cares, right?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Do you have a source for that?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I'm reminded of the following:

"The problem with Internet quotes and statistics is that often times, they’re wrongfully believed to be real."

— Abraham Lincoln

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I thought there would be sources included in each Random Fact

Absolutely correct. I just got lazy. Here is the source for the truth in advertising.

RikTelner commented: Thank you. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You add a timer control and set Interval to 10000 (ten seconds). In the SelectionIndexChanged event handler for the fifth combobox you do

MyTimer.Start

In the MyTimer.Tick event handler you do

MyTimer.Stop
your other code
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Python. And there is even a great support forum for it on Daniweb.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

As for the non-programming posts, I learned a lot from my discussions with Mel on topics where we were diametrically opposed. I'll miss him.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Here in Winnipeg we used to have occasional floods from the Red River. The one in 1950 caused widespread destruction. Since then we built the Floodway which diverts the water around the city. In terms of construction, it was a larger project than the building of the Panama Canal, however, we had the use of heavy machinery as opposed to mules. We had the so-called flood of the century in 1997 which prompted a widening of the entire Floodway to accomodate larger flows. We still get flooding in the rest of the southern basin outside the city (and we still sandbag inside the city in places). Residents on Lake Manitoba have seen their houses destroyed in successive years by both water and ice.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

It seems to me that it's like somebody "flashing" a friend discreetly (if that is possible) in a public place and then complaining because someone else managed to sneak a peak. If you don't want anyone else to see then

  1. don't put it on the web
  2. don't put it on your cell phone
  3. don't email it
  4. just, well ... just don't
Stuugie commented: Right? +6
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Usually when someone posts a question like that they get a "please show proof of your work so far" response or a reminder of the rules (with a link to the rules). If they persist in this behaviour they can get a comment and a downvote (which results in a hit on rep points). If still repeated they can get an infraction. Too many infractions and they get banned automatically. We can't prevent lazy people from posting these types of questions but there are mechanisms available to discourage repeat behaviour. See this thread for example.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You start by writing comments and putting them in your code. The comments should say what the code does, not how it does it. Then you remove the code. What's left is your pseudocode.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Unix was not designed to stop its users from doing stupid things, as that would also stop them from doing clever things.

Doug Gwyn

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

When Hobby Lobby filed their now-famous lawsuit to avoid paying for employees' contraception on the basis of religious freedom, the company 401(k) plan had more than $73 million invested in mutual funds that included the following companies:

  1. Teva Pharmaceutical (manufacturer of morning-after pills and IUDs)
  2. Pfizer and AstraZeneca (manufacturer of drugs that induce abortions)
  3. Aetna and Humana (HMOs that cover costs of abortions)
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I find it easiest to use My.Settings. I don't know if there is an industry standard but I prefer to avoid the registry whenever possible.

J.C. SolvoTerra commented: Valuable Registry Info +3
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

<more misinformation>
Or perhaps there will be a standard version calles Windows 10S which will confuse buyers who think they are buying a computer with IOS ^_^
</misinformation>

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Do you think that is a reflection of the times, or is it to get us used to the idea that abusing/torturing a perp is acceptable because it always leads to good intel and is never (never ever) done to someone innocent?

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Because the action involves making a selection, wouldn't you be better off with either radio buttons or checkboxes instead of buttons?

oussama_1 commented: thumbs up for logic +4
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

We all enjoy an up vote of course,

Well, I did give you an endorsement. That counts for something.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The tech preview of the latest version of Windows (albeit still in flux) is now available for download. True to form, Microsoft assumes that we are idiots. In order to distance themselves from the disaster that was Windows 8, the new version will be called, not Windows 9, but Windows 10. I'm surprised they didn't go all Spinal Tap and call it Windows 11. You can sign up for the preview and download the iso file here.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I think this is a case where you'll find the recursive approach much more clear and concise.

Module Module1

    Sub Main()

        Permute({1, 2, 3, 4})
        Console.ReadLine()

    End Sub

    Sub Permute(nums() As Integer, Optional start As Integer = 0)

        If start = nums.Length Then
            OutputArray(nums)
        Else
            For i As Integer = start To nums.Length - 1
                Swap(nums, start, i)
                Permute(nums, start + 1)
                Swap(nums, start, i)
            Next
        End If

    End Sub

    Sub Swap(ByRef nums() As Integer, i As Integer, j As Integer)

        Dim temp As Integer
        temp = nums(i)
        nums(i) = nums(j)
        nums(j) = temp

    End Sub

    Sub OutputArray(nums() As Integer)

        For Each num As Integer In nums
            Console.Write(num.ToString & " ")
        Next
        Console.WriteLine()

    End Sub

End Module
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I would have to say that your biggest problem is that this isn't vb.net code. I'm guessing it is C#. Please let me know for sure and I'll move it to the correct forum.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Having AOL not run is a feature, not a bug.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I used to enjoy Police Story. It was an anthology series that ran from 1973 to 1978.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I admit that the following

For i = 0 to "4"

is effectively the same as

For i = 0 to 4

however, it requires an implicit conversion from string to integer and is a bad thing to do code wise. It is the equivalent of a farmer counting the feet and dividing by four to get the number of sheep. If it obscures the true intent of the code then it is probably a bad idea.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I think people like the Kasdashians, etc. are the new First Estate (holy class). Unlike professional athletes who at least are skilled at something, these other parasites seem to exist only to accept our money and our adulation.

Slavi commented: lol =D +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The thing is, is that nothing is private any more.

The point is that a lot of this loss of privacy is by your choice. I choose not to post my entire life of Facebook. I do not have a cell phone. People keep telling me that having a cell phone is "so convenient". It's only convenient for people who are trying to get hold of me. I carried one for ten years when I was on call 24x7. It was not a convenience.

The Japanese have developed a toilet that analyzes your pee and poo. I don't think it is necessary for the NSA to know how much fibre I am getting in my diet.

Slavi commented: lol +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Because the question has already been asked, and you are aware of this because you state it in your post, how about we just continue this discussion in the original thread.

Begginnerdev commented: Good eye! +9
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Studies have shown that the easier it is to spend money, the more we tend to spend. If you have to open your wallet and take out actual physical money you tend to spend less because

  1. it's physically more involved than other methods
  2. it more easily reminds you that you have a limited amount of money
  3. once the cash runs out you pretty much have to stop buying stuff

Credit cards made it easier for people to spend money they didn't have because a credit card does not remind you that your cash is dwindling. It always looks the same whether you have a thousand dollars or are a thousand in debt.

But at least with a credit card you still have to take out your wallet (a physical reminder of your finances) and take out the card. With Apple's new Apple Pay you just take out your iPhone and the connection to your actual money is now broken. Supposedly with the SmartWatch you will eventually be able to just wave your watch over a sensor and spending money you don't have will be easier than it's ever been before.

Welcome to the next financial crash.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

it costs about a billion dollars to bring a drug to market

It is a common complaint that the drug companies charge ten dollars for a pill that costs ten cents to make. People forget that it was the second pill that costs ten cents. As you pointed out, it's only the first pill that costs a billion dollars (actual cost may vary). However, the drug companies have a history of inflating the cost long after the development costs have been recovered. In one case, a drug that was used routinely for veterinary purposes for cows that was sold for around ten cents a dose was found to be effective in treating certain forms of cancer in humans. The pill was "re-engineered" (which means the binding agents were modified to allow a new patent to be taken out) and remarketed at 100 times the cost. This is a common practice when patents are about to expire.

So have leeches, and a whole bunch of folk medicine which has been proven to be either useless or harmful.

True, but some of these treatments were based on superstition rather than evidence. Aspirin, for example, was developed as a result of centuries of use (willow bark tea) by native Americans as an effective treatment for pain. It was determined to be an evidence-based rather than anecdotal treatment and the long term effects of its use were easily observable.

taxpayers aren't willing to pay for it

Taxpayers do …

MJSeedsCanada commented: Is medical marijuana available as a prescription medicine? The U.S. Food and Drug Administration (FDA) has approved one cannabis-derived. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

My impression is that people watch that crap so they can feel superior to the train wrecks they recruit to be on those shows. Some people are incapable of feeling good about themselves unless they are looking down on others.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

George Carlin once said that if you nail two things together that have never been nailed together before, some idiot will buy it from you.

LOOK!!! IT'S A WATCH!!! AND IT'S SMART!!!. OOOH. SHINY.

We really need to start teaching people how marketing is making everyone stupid.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Chill. It's just a phone. I refer you to this.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

In the US, forty people die per day on average by overdosing on pain killers. Zero people die from marijuana overdosing.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

He has, however, pointed out that for that to happen would require a super-collider with a diameter larger than the Earth so it's likely such an event will not be man-made.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The following code will allow/prevent the entry of specific keys. Add a Case statement for each key or range of keys you want to allow. Note that you have to add a Case to allow BackSpace but not Left/Right Arrow or Delete.

Public Class Form1

    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Me.KeyPreview = True
    End Sub

    Private Sub TextBox1_KeyPress(sender As System.Object, e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress

        'Remove the following line for production code
        Me.Text = "ASC " & Asc(e.KeyChar) & "    HEX " & Asc(e.KeyChar).ToString("X2")

        Select Case e.KeyChar
            Case "a" To "z"     'lower case letter
            Case "A" To "Z"     'upper case letter
            Case "0" To "9"     'digit
            Case Chr(8)         'backspace
            Case Else:          e.Handled = True
        End Select

    End Sub

End Class
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Why can't you just use TrueCrypt? It still works just fine.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I'm with you except for some big band, some Brubeck and some Mancini. John Coltrane should be considered cruel and unusual punishment akin to waterboarding.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Men in the US receive on average 63% longer sentences than females for the exact same crimes. source

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

"History is becoming more and more a race between education and catastrophe."

H. G. Wells

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Please read through the following suggestions before posting in this forum. Questions in this forum are answered by people who generously volunteer their time. Following these guidelines will increase the chances of getting a quick and accurate answer.

  1. Use Search to see if your question has been asked and answered by another user.
  2. Create a meaningful title for your question. "Help" or "Urgent" are likely to be ignored.
  3. Summarize your question in the first sentence of your post. This is what gets displayed in the pop-up when the cursor is placed over the thread title. This makes it easier for everyone to scan the forum.
  4. Please use clear English. Do not use slang or LEET. This is not twitter or a chat room. If your question is not clear you may not get the help you seek.
  5. Show us that you have made a serious effort (don't expect us to do the work for you).
  6. Explain what your code is supposed to do as well as what it is doing. If appropriate, include some sample input and what you want as output.
  7. Post all relevent code (commented would be preferred). Do not post extraneous code. If possible, strip your code down to that which illustrates the problem.
  8. If you are having a database problem we may need to see your table structure. If so, post that as well. Include field names and types.
  9. Please include any error messages and the place in the code where the error occurs. There are …
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Take a look at Recovering Outlook Files. The only posts in the last five years were two deleted (spam) and one that basically says shoulda made a backup, dude. The suggestion to use some sort of recovery tool is completely useless without a recommendation to a specific tool.

I think the point is just to close them to further posts, not to prevent anyone from accessing them and possibly getting solutions to problems. That shouldn't hurt the ranking in google search.

In the above case, it also doesn't help that the OP hasn't logged into Daniweb in the last four years. Perhaps that could be a parameter in deciding whether or not to close threads.

  1. Has the OP been active in the last # years?
  2. Has the thread been marked as solved?
  3. Has the thread been inactive for the last # years (or months)

I think if all three conditions have been met then the thread could be closed to further posts.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The average salary for NCAA football coaches in the US is $1.64 million. The average salary of US university/college professors is $73,000.

Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The first mistake you made is asking us to tell you the requirements of a system that we know nothing about. What you have to do is meet with the people who are doing the manual process and document that process. The people who maintain the current manual system can tell you

  1. what data needs to be maintained
  2. how that data is inter-related
  3. how the data will be accessed
  4. what reports (if any) need to be generated

Until you understand the system as it is currently you will not be able to replace it with a computer based system.

I suggest that once you understand the current system you create a prototype (mock-up), which is basically a GUI with very little code behind it, and refine that by consulting with the customer(s) until you have something that meets their approval.

When you finally have the requirements from the customer, rewrite those requirements in your own words and verify that what you think they want and what they actually want are in agreement.