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

So you could go to the effort of typing "what are the different relational operators in python" into Daniweb but you couldn't be bothered to google "what are the different relational operators in python" and get the results instantly?

Unbelievable.

rproffitt commented: I'm running into grads that were forbidden in school to google it. Either that or they think this is Quora.com. +15
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

If this be the whole fruit of victory, we say: if the generations of mankind suffered and laid down their lives; if prophets and martyrs sang in the fire, and all the sacred tears were shed for no other end than that a race of creatures of such unexampled insipidity should succeed, to protract in saecula saeculorum their contented and inoffensive lives—why, at such a rate, better lose than win the battle, or at all events better ring down the curtain before the last act of the play, so that a business that began so importantly may be saved from so singularly flat a winding-up.

  • William James - The Will to Believe (1897)
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

if you remove this, the program may work

No. It won't. Not even close.

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

I've always found the easy way is to create the control manually, then look at the Form1.Designer.vb code to see what the code looks like. Then you can adapt it to what you want. For example, using the auto generated code I got

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

        Dim dgv As New ClsDgvJournal
        dgv.Location = New Point(10, 10)
        Me.Controls.Add(dgv)

    End Sub
End Class

Public Class ClsDgvJournal
    Inherits DataGridView

    Public Sub New()

        Me.Size = New Size(500, 200)

        For Each ch In {"A", "B", "C", "D", "E"}
            Dim col As New System.Windows.Forms.DataGridViewTextBoxColumn()
            col.Name = ch
            col.HeaderText = ch & ch & ch
            col.Width = IIf(ch = "B", 200, 100)
            Me.Columns.Add(col)
        Next

    End Sub

End Class
PM312 commented: Datagrid is generated at run time, how to name and write codes for it +3
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I’m not going to censor myself to comfort your ignorance.

  • Jon Stewart
rproffitt commented: There, there.... +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You are not even close to being done.

  1. You only get input from the user once instead of within a loop
  2. You do not need both number and figure according to your spec
  3. Why are you doing a div and a mod?

You should be doing

do {
    show prompt
    get input

    process even or odd

} while not zero

Using proper indentation will help you to see part of the problem.

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

The problems just kept piling up. Calibre kept reporting a communication error and nothing was showing up in Explorer so I reset to factory and started from scratch. Everything is working as expected. Of course I now know how to open txt files as html.

Sigh.

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

As a closing gripe, when I cable to the phone I can open Explorer to the SD card. Even though I have copied several files to the card and can open them on the phone, the Explorer window shows no files present.

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

Figures. Android comes with a file explorer but I have to install another one. With all the crap that came bundled I am getting "low storage" notifications. I installed a 32 gig SD card but apparently I have only two options

  1. Install it as secondary storage
  2. Install and format as extended internal storage

Option 2 takes care of the low storage warnings but I lose access when I cable to my laptop USB. I'll leave it as secondary storage and just copy my docs to the SD card. Now that I can open them as html that is no longer a problem. I guess this thread is as solved as it's going to get. Thanks for the feedback.

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

And what are you willing to pay to have someone do your homework for you?

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

OK. I have a workaround. If I

  1. Press menu
  2. swipe left
  3. press Settings
  4. Scroll down
  5. Press Storage & USB
  6. Scroll down
  7. Press Explore
  8. Select Docs
  9. Press medical history.txt
  10. Press Open with HTML Viewer

The file opens and displays properly. And now I can get the same option directly through File Explorer.

This is just fucking nuts.

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

No. It's more like being dropped into a foreign land without a phrasebook and no way to speak the language. The biggest hurdle is not learning a new way to do things, it's trying to get the information on how to do things a new way. None of this shit appears to be written down anywhere.

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

Doesn't really help. Somehow a simple operation like

  1. Copy my file to my phone
  2. Look at it

has become a technical nightmare. In any case, using the complicated procedure, I still end up with a file on my phone that I can't look at offline. Am I the only one who sees the problem here?

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

I connected the phone via USB then browsed to Internal Storage and created the folder Docs. I then copied medical history.txt to that folder. When I use the phone's file manager to open the file it says saving, then Upload/Conversion Error. An error has occurred while trying to upload and convert your document.

I tried File Manager -> Copy then Monospace -> Paste resulting in a Monospce document of length 0.

I tried File Manager -> Send to -> Monospace

I tried File manager -> Copy to clipboard then Monospace -> Paste

All result in a 0 length document.

Is this really the best modern tech can offer?

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

Believing is seeing.

  • Offiicial motto of Trump's base.
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

How did it hppen that I can't look at a file on my phone unless I am online?

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

After saying for the last 10 years that I would never own a cell phone (I had enough of that spending many years on call), I finally broke down and got one. It is a Figo (Speak Out) Android (Marshmallow) phone that allows me to buy a block of minutes without having to pay monthly fees. Basically I can use it as much or as little as I want and just pay for what I use.

My first complaint was the almost complete lack of documentation. It is a royal pain in the ass figuring out what every little (microscopic, actually) icon means.

My second complaint is how piss poor bluetooth seems to work. I don't know if it's a problem with Windows 10 or the phone but it seems that every attempt to transfer a file requires 20-20 minutes of fighting, removing, recreating bluetooth connections, and reconnecting again and again.

But a major complaint is for a problem that shouldn't be problem. I have been under the care of the good doctors for some years now for chronic cancer and I have decided that it would be a good idea to keep a medical history summary on my phone and carry it with me to all my appointments. Apparently the doctors here do not understand that that's what my medical file is for. In any case, after fighting with bluetooth (see above) Ii got the file "medical history.txt" transferred to my phone. Unfortunately, every attempt to access this file …

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

I wasn't trying to overly complicate things. I assumed this is for an assignment and I've lost points because the marker said "you didn't consider...". I suppose the easiest thing would be to use a regular expression that matches only words that start with an upper case letter. Then all you have to do is process them two at a time. The regex for that is \b[A-Z][a-z]+\b. That would reduce

Jack Jones, Gracie Burns and George Burns have three days in...

to a collection consisting of

Jack
Jones
Gracie Burns
George Burns

or you could use the regexp \b[A-Z][a-z]+ [A-Z][a-z]+\b which would give you full names collected as

Jack Jones
Gracie Burns
George Burns
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

You can start by googling how to convert node js script to exe

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

All of the strings have the names at the start of the line:

That may be the case but how do you know where the name(s) end. For example:

  1. Joe Smith will be attending.
  2. Joe Smith and family will be attending.

How do you determine whether or not and denotes the end of a name or separates two names?

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

While it's easy for a human to pick out the names by context, it's not so easy for code. How can you determine where the names end and the rest of the sentece begins? What constitutes a name? Is a name always a first name and a last name where both are single words? Without knowing the parameters you won't be able to parse the names.

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

I would rather have questions that can’t be answered than answers that can’t be questioned.

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

The OP replied by PM (a no no) that he had mistyped the table name.

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

As a first attempt I suggest one loop that steps through the original string char by char as well as a boolean that you can set to true or false depending on whether or not you are within a word. Set it to true if the char is a letter and false if it is not. While the switch is true you collect each letter in the new word. When it gets set to false you print the just completed word.

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

Are you sure you don't want 'sadasdsad','4' instead of 'sadasdsad''4'?

Sebas_1 commented: yeah, it's like that on the code but still failing +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

The easiest way would be to remove a question once it has been asked.

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

Probably because you have your preferences set to automatically watch articles you've posted in.

Actually, I don't.

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

OK. Still confused (my new default state). I downvoted this thread but it still shows up when I enable the "recommended" filter. What exactly does this filter do? I thought the entire point of it was to NOT display low quality threads.

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

And you posted this because....

Usually when someone is having a problem with their code they go to the trouble of describing the problem, including any error messages, etc., in other words, putting in a little effort.

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

Having just said that, I'd like to toss out the idea that the "latest posts" page you linked to above NOT display deleted posts.

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

Some of you guys have asked why the change doesn't stick

I could ask that you make this an option for mods but since I just added a folder to my bookmark bar with direct links to my "stuff" it isn't really an issue for me. The links to the forums are for "no filters".

alan.davies commented: Nice for desktop +1. But I'm on android and getting bookmarks is about as handy as de-filtering. Pah! +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Reminds me of my experience with the 2017 fall update which refused to install until I uninstalled software which had never been put on my computer.

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

That's a real UI blunder - a button is an action control and should be labelled ...

That could be clarified by changing the text from Filter by to Filtered by

JamesCherrill commented: Yes, exactly. That's the kind of thing that UI testing is for. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Agreed. But I still don't see that that has anything to do with giving the user the option to set a preferred default filter state. If the initial default filter is "don't show me crap posts" (what it is currently) then new users will get the current filter. What is the problem, then, with allowing me to select "no filter" as the default? How does this negatively impact anyone else?

rproffitt commented: Exactly. Give the member/user control here. Set the default as you wish. Problem solved. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I wish that were true for TV. It matured and we ended up with Real Housewives, Jerry Springer, Duck Dynasty and Honey Boo Boo.

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

My favourite was "Gall pechod mawr ddyfod trwy ddrws bychan." Even if I can't imagine that "ddrws" is actually a word.

alan.davies commented: Glad you liked them! Ddrws mutated form of drws (door) from Romans' doras. Pr. throos with soft th as in the. +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

Yeah. Everything served up on a platter requiring no effort except reading.

But I'm not bitter ^_^

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

Like a wind crying endlessly through the universe, Time carries away the names and the deeds of conquerors and commoners alike. And all that we were, all that remains, is in the memories of those who cared we came this way for a brief moment.

  • Closing narration from Paladin of the Lost Hour (Twilight Zone episode written by Harlan Ellison)
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

What messages/feedback are you getting to tell you what failed?

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

So when I am combing through the fluff and I come across a legit question and upvote it, even anonymously, it helps everyone else?

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

Yeah. The old "when they go low, we go high" just wasn't working. Someone suggested "when they go low, we go hard" as an alternative. When Obama won his forst term he wanted to reach across the aisle so both sides could work together. I hope that from the way that all worked out the Dems have learned their lesson but I am reminded of the followinig...

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

use the Latest Posts feed in the sidebar

Well sure. If I'd thought of doing that (DOH!)

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

You'll have to create a list to hold all five numbers so that you can iterate over the list after the numbers have all been read in. When you iterate over the list you can, at that point, calculate and display how much each score differs from the average.

Mike_63 commented: Can you please give me some idea on how to start to get the difference of each score from average. thanks +0
Reverend Jim 5,225 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster

I second what Alan said. Complaining about the number of low quality posts is not the same thing as wanting them hidden. I just want people to stop posting them, so as I moderator I find it necessary to take people to task for making these posts. Obviously I can't do that if I can't see them. It's easy enough to sort them out visually when they have titles that are taken directly from assignments.

Having said that, I don't see why there can't be a user setting for a default filetr state of on or off.

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

So it looks like brakes.

I see that some voting machines in predominantly black precincts could not be powered on because somehow they forgot to include power cords.

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

I have a folder on my bookmark bar with shortcuts (filters disabled) to the main forums. Just disable the filter and save the URL.

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

There are utilities available that will recover your product key from the registry. It is encrypted so you can't read it directly. Have a look here for details.

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

I could see the possibility of a Windows setting that would allow administrators to prevent F8 safe boot on high security PCs but I would hazard a guess that most home users don't (in fact, cannot) use bitlocker. For most home users, the F8 options was an easy way to get access to a system that may be otherwise bricked. Removeing the F8 functionality for Windows Home Edition was, IMO, a huge mistake.

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

Remember when once upon a time all you had to do to start Windows in safe mode was go all Woody Woodpecker on the F8 key during boot? Well in Windows 10 it seems you have to do just a little more...

  1. On the login screen click on the power icon (lower right) then hold the shift key while clicking "Restart" from the popup menu.
  2. During the reboot you will get a "Choose an option" menu. Click on "Troubleshoot".
  3. On the next menu click on "Advanced options".
  4. On the next menu click on "Startup Settings".
  5. On the next screen click "Restart".

When the system restarts you should get a numbered menu where pressing "4" will enable safe mode.

See how Microsoft has made vast improvements to the way you use your computer (heavy sarcasm)?

A simpler way, but one that requires you to make a change that you must later undo, is

  1. Run msconfig.exe
  2. select the "Boot" tab.
  3. Select "Safe Boot"
  4. Click "OK"

Every boot after that will be a boot into safe mode until you undo the changes in msconfig.

So what exactly was wrong with F8?

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

How does your thread title in any way relate to your question?