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

This may be the same thing as 1Third Step from above (I'm not a PHP user) but if any of your fields contain special characters it could screw up the SQL syntax. For example, if the name you are inserting is something like O'Brian then the embedded apostrophe would be the culprit. That's why you should be using parameterized queries.

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

I don't suppose they had system restore enabled?

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

What may seem easy to you is not necessarily easy to others.

To wit

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

For the record, Resilio Sync works between Long Island and Winnipeg and I did not have to consider firewalls. Traffic is encrypted. Synching that is interrrupted by a disconnect is automatically resumed on reconnect. It's worth checking out.

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

Can the privacy setting be set to "moderators only"?

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

Awesome.

rproffitt commented: Yes, you are. +12
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

There are some members who I would classify as problem users and it would be nice to have a flag or something associated with the name. For example, threads that I have posted in have a little yellow cartouche overlay on the thread summary page. Perhaps users who have active infractions (the problem users would generally have at least one active) could have another type of overlay like a red exclamation mark. This wouldn't even require a memo feature as it would be based on the current infraction system. I find that if there is a problem with a particular user there is usually a thread in the moderators' forum for that user. Instead of comments we have extended discussions. Not only is this more comprehensive, it is also searchable.

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

I can't imagine that I/O wasn't one of the first things covered in whatever programming course you are taking but here is an example

    Dim text() = {"line 1", "line 2", "line 3"}

    Dim sw As New System.IO.StreamWriter("D:\output.txt")

    For Each line As String In text
        sw.WriteLine(line)
    Next

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

Do it by hand and write down every step you had to do in order to get it done. Consider pseudo-code like the step-by-step instructions in a recipe.

One thing to consider for part 1.3 - is the answer to this the average of all the averages, or is it the average of all of the individual grades. It is possible that each student has a different number of grades to average so by averaging the averages you are weighting some students differently than others. I'm assuming there can be a different number of grades because the number of grades is entered at the start of every line rather than just once.

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

If it is unlikely that Dani will implement the memo feature then I don't see an alternative. From my point of view, the memo data would be of interest to, and accessible only by you. When I have data that is of interest only to me I store it on my computer. Even if it is Daniweb related.

One example, I find that I have a small set of canned responses to certain types of posts. I could have asked Dani to implement a feature to allow me to store/edit those responses on the Daniweb servers. Instead I used AutoHotKey to create auto-expanding macros so that I could just type dwr@ (for Daniweb rules) instead of

Judging by your post it is possible that you have not read the Daniweb Posting Rules and Terms of Service. Please give these a read. You might also want to Read This Before Posting a Question to increase your chances of getting a timely (and more useful) response.

Also, as a moderator, I get to see the IP addresses of all posts. I asked for a feature that would get the IP info as a tooltip but it was not deemed to be generally useful so I wrote my own app. I copy the IP address to my clipboard and press a hotkey and 176.58.135.165 gets displayed as

clip-0004.jpg

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

If all else fails there is always the free version of Resilio Sync formerly BitTorrent Sync. I use it to sync a folder on my laptop (Winnipeg) with one in Long Island.

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

It's another Dell. Thanks for the link. I posted my findings as a reply to that user. I guess Intel figures that navigating a series of menus is just as convenient as using a hotkey.

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

Sure thing. Where are you stuck? We will help but we won't do your homework for you. If you don't have any code then I suggest you write pseudo-code and post that.

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

As long as the comments are for you only then you could always create a folder on your computer called Daniweb Comments and create a file for each user you want to comment on. Or even a Daniweb Comment app (on your computer) that would maintain a simple text DB of comments. That should be something you could throw together in a couple of hours.

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

Too little, too late, but I just saw a clip of an interview with Antonio Sabato jr (who wants to run for office). He was asked a Trump question and he immediately pivoted to "if you want to talk about that then what about Hillary who...". The interviewer interrupted him with "We're not talking about her. We're talking about Trump."

Why didn't they do that a year ago?

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

Suggest an edit

I suggest you reword and repost your question. I couldn't make heads or tails out of what you are asking. What is a fine? What is a drawer? What do you mean by the first line of the first line? Examples with an actual array might help.

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

I have been having a problem for a few months with the video driver for my Dell laptop. The hardware/driver are from Intel. The driver from 2016-09-29 works just fine. It has a feature that I use regularly to rotate the display via hotkeys - very convenient for document reading. Unfortunately, all later drivers disable this feature. Also unfortunately, Windows Update keeps downloading and installing the latest driver. This means that I have to repeatedly re-install the old driver. Not a big problem but an unnecessary one in my opinion. After several iterations through Intel Support I was told (in my words), "It's not our problem. Here's the Microsoft Support URL". The Microsoft Support staff was very helpful in telling me how to disable automatic updates although I'll reserve judgment for a few weeks until I see how effective it was. If anyone is interested, here is how to disable auto update in Windows 10.

Go to the services control panel by running

services.msc

Set the Startup Type for Background Intelligent Transfer Service to Disabled then Stop the service.

Set the Startup Type for Windows Search to Manual.

Set the Startup Type for Windows Update to Manual (it may display as Manual (Trigger Start)).

I was told that by doing this I would still be able to get updates, but I would have the option of deciding which ones to apply (like I used to do in XP and W7). I left Intel with the comment:

Here's a novel …

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

That's the plus side, Jim?

Well, it's a plus when I get to camp and have a thousand and one things to take care of that piled up over the winter. It's not a plus when things settle down and I am looking for things to do. All in all, I'd much rather see a lot more posts with interesting question.

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

Looking at your data I interpret it as being lists of lists. Data Set 1 consists of two lists

A    
B C D

Data Set 2 consists of two lists

A Q C
B C D

So break your problem down. Instead of comparing two Data Sets you are comparing lists of lists. In pseudo code

Do until no more lists

    get list from Data Set 1
    get list from Data Set 2
    compare the lists

loop

To compare the lists you just step through both lists together (stopping when one list is exhausted) and compare elements at the same position. You can write a function that returns a list from a data set, or some value that indicates there are no more lists.

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

When a giant woman shoves a fat man up her lady parts and he disappears

I absolutely refuse to ask for an explanation.

I watch almost everything via a recording

Fer sher. Ever since we got our PVR we are effectively commercial free. Unlike a VCR, we can start watching an hour show 20 minutes after it starts recording. We zip through the commercials and catch up to the end of the show at the top of the hour. Gotta love it.

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

You had T-Shirts (and probably coffee mugs) and didn't tell me when I came to visit? Shame on you :-(

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

from the lack of activity on DW these days

On the plus side, I can be offline for several days (got to camp on Thrsday but had to wait until today to go to town and activate my internet & phone for the summer) and still get caught up with the backlog in 5-10 minutes max.

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

You can win up to $55,000 to optimize NASA's Fluid Dynamics code. See the link for details.

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

Turning from scripted to non-scripted...

Why is it that news shows have so many interviews that immediately descend into "everyone talks at the same time and nobody listens"? Especially in the case in which multiple people appear on monitors from remote locations, it would be so easy to just mute everyone but the current speaker.

I like Bill Maher, in spite of the too-frequent crude language, and in spite of some of his more extreme views. Even he occasionally reaches the point where he just has to tell the panel to "shut up". But at least he acknowledges the problem.

It seems that he, too often, will have a Republican talking head on the panel whose idea of reasonable debate consists of "I will start talking over you if I believe you are about to make a valid point". I've seen the other side do this as well, but not to the same extent.

So let's see a little more judicious use of the mute button.

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

Speaking of Crimiinal Minds, why is it that when they finally give the profile to the local authorities, the entire team lines up and gives the profile one sentence at a time with a random person in the team taking each sentence. Of course it is rehearsed (it is a TV show, after all) but the characters within the reality of the show would have had to take the time to memorize each member's line and order of presentation. Seems like an awful waste of time when time is of the essence. And they do this almost every episode.

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

I suspect the problem is with the field named E-mail. Either put delimeters around it like [E-mail] or, better yet, rename the field to email.

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

pls design and develop a basic program dat converts minutes into days

Judging by your post it is possible that you have not read the Daniweb Posting Rules and Terms of Service. Please give these a read. You might also want to Read This Before Posting a Question

Here is a partial list of why I believe you haven't read the rules:

  • You didn't show any effort on your part.
  • You didn't ask for help. You just asked us to do your work for you.
  • You hijacked a 6-year-old thread.
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The advice was given as

Don't use double as Booleans.

Your question was

Why can't you use a double as a boolean ?

You weren't told that you couldn't. You were told, in effect, that you shouldn't. There's a big difference. You shouldn't run with scissors and you shouldn't use GOTOs, but you can if you want to (except for the GOTOs).

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

Folk that were chatting here may never come back to you.

Particularly Ancient Dragon.

We miss you Mel.

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

Only if you respond to it.

rproffitt commented: But you get +1. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The example code here should help. If you are still stuck then post your code here and we'll have a look.

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

If you are going to revive a six-year-old thread at least try to squeeze in a verb.

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

I used to do that all the time. I wrote a large number of command line scripts to simplify network admin tasks. For example, adding a network printer to a workstation took me 15 seconds from the command line. Compare that to navigating through multiple GUI windows.

The only downside was that my boss wasn;t comfortable using the command line and didn't want me to do it. Since I was the only person in the group capable of doing the work I basically just ignored him.

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

i tried. it says runtime error

Then you have your answer. Wouldn't that have been easier than asking us to do your work for you?

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

Why don't you just try it and see for yourself?

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

Show us the code.

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

You could access it by name if a name was specified when the control was created or you could access it by address if a reference to the control was saved when the control was created. Without you being more specific it is hard to give a specific answer. As for the second part of the question - same response.

If you had read the Daniweb Daniweb Posting Rules you would have started a new thread with your question.

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

You google "python convert string to integer" and pick one of the 536,000 results instead of asking someone here to do it for you.

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

Help you with it? yes. But we are not going to do it for you. Show us what you have so far.

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

@Subbu_2 - If you want to know when this issue is sorted out then I suggest you bookmark the thread and check on it periodically instead of putting the onus on the OP to contact you. Or, if you go to the first post in the thread and click on the push-pin (assuming you have email enabled) you will be notified when new posts are made in this thread.

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

Cyberghost comes in a free version.

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

I don't know about in jail. I thought they'd just confiscate the equipment. Be nice to know for my next trip down south.

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

Three steps:

  1. Set the position of the start of the selected text
  2. Set the length of the selected text
  3. Change the font size by specifying a new font with only the size changed

Example - Let's assume a RichTextBox named rtb (for brevity). Let's say you want to change the font size to 20.

rtb.Text = "abcde" & vbCrLf & "fghij" & vbCrLf & "klmno"
rtb.SelectionStart = 6
rtb.SelectionLength = 5
rtb.SelectionFont = New System.Drawing.Font(rtb.SelectionFont.FontFamily.Name, 20.0F, rtb.SelectionFont.Style, System.Drawing.GraphicsUnit.Point)

If you want to let the user select text and make it big then you can just add btnBig with the following code

Private Sub btnBig_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBig.Click
    rtb.SelectionFont = New System.Drawing.Font(rtb.SelectionFont.FontFamily.Name, 20.0F, rtb.SelectionFont.Style, System.Drawing.GraphicsUnit.Point)
End Sub
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
  1. This thread was already marked as solved.
  2. I really doubt that an XP answer needs further updating.
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

In the accounts settings (where you enter the connection info) there should be a Test Connection button. What happens when you click it?

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

I don't use lambdas. THey may be concise but I find them generally cryptic and I value clarity over conciseness.

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

Looks like it's going to be skiing again. Got snow yesterday and more coming on Monday.

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

I find the Tag property to be a handy place to store things. Every control has this property and it is unused (available for custom use). Since it is common to all controls, you could just iterate through all of the controls on a form or in a group and just store your data there. For example

Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click

    For Each ctl As Control In Me.Controls
        ctl.Tag = ctl.Name
    Next

End Sub

Tags are not limited to just strings.

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

Bill Maher had it right. He has decided that the governing principle of the GOP is "What would a dick do?"

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

I have yet to see an eagle cam that made me go "daw". Fortunately this site is in Iceland or I'd be adopting a lot more kitties.