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

That depends on your jurisdiction no doubt.

Good point. I think by most standards, Europe is far ahead of Canada and the US on developing policy.

It would be somewhat alleviated by requiring the authorisation to perform the lethal procedure be granted by a professional from another hospital or outside agency

Perhaps it would help if the doctor signing the authorization did not have access to the name of the doctor or facility that would be performing the procedure.

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

What you call "assisted suicide" is what is usually termed euthanasia when done by medical professionals.

That is completely false. If a doctor (or anyone for that matter) kills a person without express consent it is called murder. If it is done with express consent it is called euthanasia. If the doctor provides the method by which the patient terminates his/her own life then that is doctor assisted suicide. Withholding medical treatment (passive ending of a life) is not the same as hastening death by active means (injection, etc).

There have been concerns raised that by legalizing doctor assisted suicide we start on a slippery slope which leads to family members pressuring ma and pa to end their lives so the kids can grab their inheritance or avoid taking care of elderly and troublesome parents. That is exactly the reason that we have to determine (to the best of our ability) that the decision is being taken for acceptable reasons.

when hospitals or insurance companies see it as a cheap way to get rid of expensive to treat (read, non-profitable) patients/customers and try to bully/force them into signing up for being terminated.

One of the ways to guard against that is to ensure that those medical professionals who are assisting with the decision do not have a stake in the outcome.

The "slippery slope" argument has been used by various groups to oppose anything that offends their morals. For example, allowing same sex marriage will eventually …

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

It's already legal. We euthanize animals all the time. Be more specific and show us that you have put some thought into the matter.

Kamal_8 commented: have a case of bone marrow patient who arent able to get donor...... +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I was just in the Hardware & Softwre Chat. Here are a few lines

Mon 1:31  pm savedlema I see Reverend Jim here...you have answered so much of my difficult questions on VB.NET...Thank you so much.
Mon 2:04  pm savedlema nobody is here..time expired?
Mon 11:06 am DaveAmour Hi
Mon 11:25 am Reverend Jim Glad I could help.

Just scanning the log quickly, the eyes see Mon Mon Mon... and it isn't immediately obvious that one or more weeks passed between Mon 2:04 and Mon 11:06. Would it be possible (and reasonably easy) to modifly the chat log display code to add a spacer of some sort to indicate a large gap in time? Perhaps something like

Mon 1:31  pm savedlema I see Reverend Jim here...you have answered so much of my difficult ...
Mon 2:04  pm savedlema nobody is here..time expired?

--- gap of 6 days and 7 hours

Mon 11:06 am DaveAmour Hi
Mon 11:25 am Reverend Jim Glad I could help.

Or possibly a line with the date/time the log resumed if the last displayed entry was on a previous day

Mon 1:31  pm savedlema I see Reverend Jim here...you have answered so much of my difficult ...
Mon 2:04  pm savedlema nobody is here..time expired?

2015-05-18

Mon 11:06 am DaveAmour Hi
Mon 11:25 am Reverend Jim Glad I could help.

I think some indication that the conversation has been paused/interrupted/discontinued for an extended period would help.

dtpp commented: good point +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I'm running Visual Studio 2010 on Windows 7 Home Premium (all updates installed). I created a sample project named 'PerryTest' and copied ID3TagLibrary.dll to the source folder. I added the dll to the References. I added the following code

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load

    Dim mp3 As New ID3TagLibrary.MP3File("D:\My Music\Alice Cooper\Alice Cooper - Schools Out For Summer.mp3")
    Me.Close()

End Sub

then put a breakpoint at Me.Close(). With a Watch on mp3 I saw the expected properties with no errors or warnings.

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

I've Got Tears in My Ears From Lying On My Back In My Bed While Cryin' Over You composed by Harold Barlow.

The version I remember was recorded by Homer and Jethro.

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

In my experience when you do an upgrade install you end up with pieces of both systems scattered about higgledy-piggledy. You'll effectively get a mish mash of both with a lot of wasted disk space. My advice is to take a disk image of your current system then wipe it and do a fresh install of Windows 7. I don't know how your system is partitioned but my suggestion is roughly

70 meg C partition
remainder to D partition

Once you have a base Windows 7 system installed and configured with all Windows 7 updates applied, relocate the following folders from C to D

My Documents
My Music
My Pictures
My Videos
Downloads

Reinstall the disk imaging software (Macrium Reflect has an excellent free edition) and take an image of the C partition. Now install your "must have" applications (I would include cCleaner). When you have your system configured and updated, run cCleaner and take another image (this one will be temporary). The last step will be to do a disk "freeze". One of the many updates you will have installed will be service pack 1. You'll never want to uninstall this so by doing a "freeze" you will clean your system of the uninstall files. To do this, open a CMD shell as Administrator and type

C:
CD \
dir
DISM /online /Cleanup-Image /SpSuperseded
dir

This could take upwards of 30 minutes to run so don't panic. And if you DO panic, that's why you did …

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

No problem. Glad we were finally able to get on the same page. Feel free to post follow-up questions.

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

That's easy enough to do

Private Sub btnSend_Click(sender As System.Object, e As System.EventArgs) Handles btnSend.Click

    ListBox2.Items.Clear()

    For Each item As String In ListBox1.Items
        If item.Contains(TextBox1.Text) Then
            ListBox2.Items.Add(item)
        End If
    Next

End Sub

That will copy all items containing the string in TextBox1 from ListBox1 to ListBox2. If you want an exact match then use

If item = TextBox1.Text Then

If you want a dynamic version (ListBox2 updates while you type) then see this thread

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

There is a manual method for creating a shortcut that will run with Admin access (bypassing the UAC prompt) here.

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

First check that names.txt contains what you think it does (it would help to post the file here).

I suggest you step through the code in the debugger and see if

  1. "names" is actually getting the data
  2. Array.Reverse(names) is doing what you want

Note that Array.Reverse does not do a reverse sort. It reverses the current order. To get a reverse sort you'll have to do

Array.Sort(names)        'sort names in ascending order
Array.Reverse(names)     'reverse the order

You'll have to be more careful with your code. For one thing, you probably meant to use the name "FileName" rather than "FineName". Also, there was not much point in creating that variable if you were just going to hard code the file name in

names = IO.File.ReadAllLines("names.txt")

However, the biggest thing keeping the names from being displayed is that you haven't written any code to display them. If you are using a ListBox then the easiest way is

ListBox1.Items.AddRange(names)
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I've always loved the character, Reverend Jim, from the old TV series, Taxi. His actual name was Jim Ignatowski (he changed it from his real last name because he thought Ignatowski was "Star Child" backwards). He was originally brought in as a one-time guest start to perform Latka's wedding but proved to be so popular that he was added to the regular cast. My avatar is an actual characature of Reverend Jim. It's just a coincidence that The initials, R J, are the same as mine (Richard James).

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

Perhaps programming is more of an addiction to some than an enjoyment. Personally, I can't go more than a few hours without doing a line or two of code.

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

Sorry but this is a modern myth. Russian cosmonauts use pens. The floating bits of graphite and pencil shavings would be extremely hazardous in a weighless environemt packed with sensitive equipment, not to mention lungs.

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

Mark Russinovich (Sysinternals) has an excellent (and free) utility called autoruns that is part of the (also free) Sysinternals suite. It will tell you everything that starts automatically and allows you to disable selectively.

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

This is about an exchange between Shark_1 and me. Upon reviewing what I had posted I want to apologize to Shark_1. I was too hasty in my deletion and I have undeleted the post. I do not agree with his technique (multiple Return statements) but his solution was a valid one nonetheless. As several of the moderators are aware I have had other things on my mind lately and I was not as careful as I should have been on reading what was posted.

Once again, my apologies.

diafol commented: Understandable RJ. But we're all human regardless. Big hand. +0
Santanu.Das commented: I can understand your situations. +0
deceptikon commented: It's hard to admit a mistake. Props. :) +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I enjoy programming because I like to build things but I suck at wood-working. Also I need less room, I don't need as many tools and I have yet to lose a digit to a debugger.

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

The syntax for INSERT is

INSERT INTO tablename (fld1, fld2, ...)
       VALUES(val1, val2, ...)

where you specify the field names by fld1, fld2, etc. and the values by val1, val2, etc.

For a complete example of how to use parameterized queries please see Code Snippets.

Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Dim newline() As String = sr.ReadLine.Replace("""","").Split(",")
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can't concatenate an array. To see how to insert binary data you can look at this code snippet. The example uses a PDF.

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

When Galileu said that the Earth moved arround the sun(and not the other way arround) it was an alternative view

Yes, but one that was supported by direct observation as opposed to church doctrine which was not. Galileo made a hypothesis that agreed with the observed data. The church just dug in its heels, covered its collective ears and said "la la la can't hear you".

it was an alternative view, that got him killed

Now that is not a fact. He recanted then lived the next nine years under house arrest before dying at the ripe old age of 77.

A example about alternative medicine would be Acunpunture: an estern medicine that until today is called as alternative medicine by some people, but there's a lot of scientific studies that prove the healing factor of it.

Actually, double blind studies, where some patients got actual acupuncture and others believed they were getting acupuncture but the needles never penetrated the skin, have shown that the only effect of acupuncture is due to the placebo effect. There are no serious scientific studies that have shown acupuncture to be effective treatment for anything other than the financial woes of the practitioners.

Something, such as a ritual practice or sacred object, believed to control natural or supernatural powers or serve as a preventive or remedy.

Under that definition, waving chicken entrails over your head while speaking in tongues would qualify as medicine. I disagree. I …

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

Any line/paragraph that starts with a ">" is a quote.

As you will see if you follow the link from cereal, DaniWeb uses Markdown formatting. There is an excellent Markdown editor, Markdown Pad that comes in a free edition. I generally use it to create longer posts, then cut and paste into DaniWeb. It displays your text in side-by-side views with raw format on the left and formatted text on the right.

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

There are certain words and phrases that drive me absolutely bat-shit crazy. Some have been around for decades and others are relatively new.

"It is what it is". Not the worst of the bunch but mostly useless.

Any portmanteau beginning with "bro", e.g. "bromance".

"Pre-owned", "pre-loved", etc. Used is still used no matter how you try to pretty it up.

"Staycation". 'Nuf said.

"At the end of the day", unless used literally.

"Literally", when used to mean "figuratively". Sterling Arched consistently gets this right (bless him).

"Encore presentation". Call it what you will, it's still just a bloody rerun.

"Collateral damage". Please use the phrase, "civilian deaths".

"Alternative" anything. Please replace with "junk" as in "junk medicine" or "junk science".

Anything "engineer" that doesn't also include an engineering degree. In spite of some of my earlier comments regarding the coding prowess of some former engineering colleagues I actually do respect the profession and consider it unfair when blue collar workers start calling themselves custodial engineers and sanitation engineers.

"Architechted". We already have a perfectly good word in "designed".

"Mistakes Were Made". These are weasel words intended to prevent anyone from taking responsibility. I want to know who and when.

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

Lighten up. diafol did not out-and-out accuse you of asking us to do your homework. What he did do was take the time to provide information on table relationships, something which you would find useful considering that you do not seem to understand them.

On a related note, having a table with the fields

create_time
update_time

is not going to be much use unless you can relate them to other tables. In any case, you are probably better off storing those values diirectly in whatever table they are to be associated with unless those values relate to creation/modification date/times of entire tables rather than individual records in which case you should have another column which will identify the table.

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

For what it's worth, GOTOs are evil. Before the advent of structured programming constructs like IF-THEN-ELSE, GOTOs were a necessary evil, but used properly they could be tolerated. I, myself, have (on rare occasions) used GOTOs to escape from nested constructs, but I have never had to resort to that since the introduction of TRY-CATCH. I strongly suggest that you rewrite your code to eliminate your GOTOs.

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

Five percent of people surveyed admit to having checked Facebook during sex. Source

Stuugie commented: ouch! At least they weren't taking selfies at that time! +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I strongly suggest you read this. It's titled Please Rest This Before Posting for a reason. Point 2 says, in part

Create a meaningful title for your question.

Your thread titles are

yahoo
mute?
zip
monitor
fb

None of these titles in any way gives any useful information on the nature of the question. I can't speak for anyone else, but I tend to look at the interesting questions first. I figure that if you can't put any effort into asking the question then I can't be bothered to make the effort to answer it. Judging by your geographical location and your previous post I assume that English is your first language. Surely you can take the time to write

  • a meaningful title
  • a coherent question
AleMonteiro commented: you're so paciente and toughtful ^^ +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

What does your output look like with the above code?

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

Sorry about that. My previous post had a typo. Try

For Each row As DataRow In dt.Rows

    Dim line As String = ""

    For Each column As DataColumn In dt.Columns
        'Add the Data rows.
        line += "|" & row(column.ColumnName).ToString()
    Next

    'Add new line
    txt += line.SubString(1) & vbCrLf

Next

If File.Exists(fileloc) Then
    Using sw As StreamWriter = New StreamWriter(fileloc)
        sw.WriteLine(txt)
    End Using
End If
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Anyone can write a story about technology gone bad. There are a lot of stories about things going south when man decides "to play God" and is punished for it. "Playing God" pretty much defines all of modern medicine.

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

@diafol - Superlatively awesome work.

diafol commented: Thanks +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

but most of whats powering this webapp is community.

And I suppose that when you are driving around in your car you think it is powered by your own sense of self-satisfaction and smug superiority rather than by the gas which you didn't discover, drill for and refine, and is being burned in a mechanical marvel which appeared by magic rather than by the hard work and talent of innumerable engineers, technicians and factory workers.

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

You could do

For Each row As DataRow In dt.Rows

    Dim line As String = ""

    For Each column As DataColumn In dt.Columns
        'Add the Data rows.
        line += "|" & row(column.ColumnName).ToString()
    Next

    'Add new line
    txt += line.SubString(1)  vbCr

Next

If File.Exists(fileloc) Then
    Using sw As StreamWriter = New StreamWriter(fileloc)
        sw.WriteLine(txt)
    End Using
End If

That way each new line is built as "|a|b|c". The SubString chops off the leading "|" before it is added to the output buffer. You might want to use StringBuilder instead of String. It's much faster when building strings usinc concatenation.

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

What have you tried so far?

Sequeira commented: please check the below comment.. im sorry im new in diz group... +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Its blind loyalty to its fullest.

I believe it's called standing up for an extremely talented person who has put her heart into Daniweb to provide a forum for the open exchange of ideas (some apparently less popular than others). This support comes (in my case) after seeing how this site has been run, and steadily improved, since I joined in 2010. Loyalty, certainly, but I'd hardly call it blind.

Its like censorship

We are disagreeing with what you say. We are not altering or deleting what you say. That's pretty much the exact opposite of censorship.

Wrong things are not the one that should be discussed publicly. Thats exactly what we strongly fight against. And we will not stop till it disappears totally.

You're talking about tweaking the user interface to a web forum. You're not trying to topple a corrupt government that is oppressing millions, or end world hunger. You need some perspective.

Informative as hell

If you want feedback you are getting plenty of it here. You're just not paying attention to any of it.

RikTelner commented: I believe it's called supporting awesome society of masterminds who will find answer to almost every problem. And help legions of people with IT. +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

We (within Polish webdeveloping society) call person like Dani script-newbie (also script-kiddie) - she is knowledgeable how to code (=write code), but dont understand what many directives do on their own. Im more than sure if she was to take SC exam, she would fail

So now we are at the level of name-calling and insults.

And yet again - lack of proper quoting system makes me not to quote just to write from context - hope its clear

Daniweb uses the (very easy to learn) MarkDown syntax. One of the hallmaks of a good programmer is the ability to learn new technologies quickly. MarkDown syntax shouldn't take you more than 10 minutes. But I guess you'd rather spend your time complaining. Do you see the little question mark in the edit box title bar? Click it. By the way, it does have a tooltip.

RikTelner commented: On first sight you know which button to use to quote, after 5 posts, you know you need empty row between next row of text and the quote. It's SO easy! +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

How about

For Each line As String In lines
    if not line.StartsWith("#") then
        Dim columns() As String = line.Split(" ")
        Dim index = Me.DataGridView1.Rows.Add()
        Me.DataGridView1.Rows(index).SetValues(columns)
    end if
Next
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

For me - its not rude; its just expressing what one thinks.....

  1. That does not appear to be the case.
  2. You are a God Damned liar.

Both of these statements express essentially the same opinion. One is rude and one is not. It is possible to express an opinion without being antagonistic. Please learn the difference. Also, not all thoughts need to be expressed. I'm having one right now.

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

I did see phrases like "stop wasting your time" and "go get a life".

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

"The best database" depends on many factors such as

  1. your level of expertise
  2. the amount of the data to be managed
  3. the type of data to be managed
  4. the number of concurrent users
  5. the OS hosting the database

and "to host the cloud" is so vague as to be essentially meaningless.

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

The last animated gif is cool. The vertical bars look like they are moving from left to right.

zigzag.gif

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

I like this one the best. It's an animated pinwheel. Try to open it in another tab, make the browser full screen and zoom in to make the image as large as will fit on the screen. Start at the centre of the image for 60 seconds, then look at anything else like the back of your hand. My cat freaked when it saw the image on the screen.

pinwheel.gif

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

This one's an animated gif. At first when you stare at the centre you will see the blue dots disappear and reappear in sequence. Then you will see a yellow dot circling the centre. After another few moments the blue dots will disappear completely. If you click on the image below it may open in another tab in your browser and display with animation.

illusion_couleurinv2.gif

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

This one flip flops between front and side views.

untitled.jpg

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

You'll have to open this picture in another tab to get the effect because it is an animated gif. It's a false colour illusion.

CLvcc.gif

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

The point of the voting is to let you know what people think of your post. If you keep getting down-votes then that should tell you something useful regardless of whether or not you know the users who down-voted. The only reason to might want to know who down-voted you is so that you can down-vote them in return. Not that you would, but we have seen cases where a POed user went nuts and combed through the posts to down-vote another user (who did not deserve it) en masse.

Stuugie commented: Exactly +0
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Tab is not necessarily next control. When I am editing text in a multiline edit box I expect certain formatting features to work. Enter should start a new line and Tab should insert a tab. Let's say I have to correct the mis-entry of code for a user (and this happens a lot). I can select one or more lines and press Tab and the selected code is indented. It's certainly easier and more intuitive than selecting code, clicking Code then clicking Insert Code. Can you imagine how much more difficult it would have been otherwise to correct all that code when we edited all those thousands of old posts a while back?

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

Personally, I like it the way it works now.

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

A 70 year old woman is walking through the park one day with no one in sight when she hears a voice saying "You will live to be 100". She says, "who is this?". The voice replies, "This is God. You will live to be 100."

Well, since she is going to live another 30 years she decides that she wants to look her best so she gets a face lift, hair implants, liposuction and her teeth capped. After weeks of recuperation she decides to go for a walk to strut her stuff but while crossing the street she is hit by a car. As she is lying in the street dying she says, "God, you said I'd live to be 100. Why did you have the car hit me?"

God replies, "I didn't recognize you."

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

I'm always in search for new music:

Try "Nothing Above My Shoulders But the Evening" by Ray Lynch and "Waterstation" by Tim Clement.

cereal commented: I will, thank you! +0