4,901 Posted Topics

Member Avatar for Braven

It should work as written. For example, to toggle between two strings you could code Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click If Button1.Text = "On" Then Button1.Text = "Off" Else Button1.Text = "On" End If End Sub or more concisely Private Sub Button1_Click(sender As Object, e …

Member Avatar for Reverend Jim
0
529
Member Avatar for agrbinoo.albaker

Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). We don't do your homework for you, but we will help **if** you show what you have done so far and where you are having a problem.

Member Avatar for braian44
0
726
Member Avatar for ShishiLearn
Member Avatar for Keep_2

>Then write everything as if it's going to be you who will have to maintain it in 10 years time. I always overestimate my ability to understand code I wrote even a few months back so I assume that my code will be maintained by a psychotic programmer who knows …

Member Avatar for Reverend Jim
0
80
Member Avatar for JNSS

Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question).

Member Avatar for Rahul_53
0
65
Member Avatar for simon_24

It's like asking "what's the best tool I need to learn to be a carpenter". It depends what you want to build. Different languages excel in different areas. As in most disciplines, there are fundamentals than need to be learned and these can be learned regardless of the language. However, …

Member Avatar for Reverend Jim
0
46
Member Avatar for Muhammad_263

We are happy to help if you are stuck with a particular problem but we don't do homework. Please post what you have done so far and where you are having problems.

Member Avatar for Reverend Jim
0
58
Member Avatar for Huzaifa Ehsan

If you are going to calculate pi as the sum of a series then you should sum from the smallest term to the largest to avoid losing small values due to the limitations of your storage type. While this will not matter if you are using a small number of …

Member Avatar for Reverend Jim
0
508
Member Avatar for Papa_Don

You seem to have created this thread twice. I left something in the other thread.

Member Avatar for Reverend Jim
1
160
Member Avatar for markusd5454

Typically you would create a dictionary where the username is the key and the password is the value (hopefully, encrypted).

Member Avatar for Reverend Jim
0
86K
Member Avatar for aditya_#2
Member Avatar for Papa_Don

Since `split` already returns an array of strings, why would you want to use individual variables? Surely it is easier to use an array of any length rather than scalars where you will eventually have one more string than you have variables. `Split` splits by default on blanks so you …

Member Avatar for Reverend Jim
0
92
Member Avatar for Ô±Õ¶Õ«

Whatever basic you are using I suggest using a regular expression. The following expression will match any word of more than one letter (no apostrophes) as long as you use the ignore case option. ([a-z])[a-z]*\1 The first `[a-z]` matches the first letter in a word. Putting it in parentheses allows …

Member Avatar for Reverend Jim
0
53
Member Avatar for 1427_Sharupya

You have to learn the idioms. >You need to return a list that consists of the elements that are common to the two lists. Who can tell? list(set(a) & set(b))

Member Avatar for Reverend Jim
0
120
Member Avatar for THEDJ300

Suggestions: 1. Store all values as cents (integers) to avoid conversion/rounding problems. 1. Create a list of change denominations from largest to smallest 1. Use a loop with that list

Member Avatar for Reverend Jim
0
121
Member Avatar for Xozz

I've been usiing calibre for years and have had no trouble using "send to device" with my Android phone.

Member Avatar for rproffitt
0
125
Member Avatar for Reverend Jim

I've been following the latest efforts (in the US) of the GOP to unfairly redraw electoral boundaries and was considering how simple a law could be worded to ensure a more fair allocation of electoral districts. What I came up with is: 1. All boundary lines must consist of straight …

Member Avatar for Reverend Jim
0
1K
Member Avatar for Peter.W

Is there a reason you need to run the scripts from within idle as opposed to just running the scripts directly? If so then I suggest you look at [AutoItX](https://www.autoitscript.com/site/). I've been using AutoIt for years in both a corporate and home environments, originally from vbScript but now from Python. …

Member Avatar for Peter.W
0
353
Member Avatar for happygeek

When I hear "hacker" I think of someone who is doing "seat of the pants" computer work, whether legal or not. I've had to do a fair bit of this in my years of being on call for our System Control Centre. At 3:00 when the system is in the …

Member Avatar for Naheedmir
1
4K
Member Avatar for Angel_19

You sound like a Jordan Peterson clone or someone who has stumbled across the [BS Generator](http://sebpearce.com/bullshit/) site. If you are trying to make a point you have totally obscured it with meaningless jargon. Instead of trying to impress us with your mastery of buzzwords why don't you try again in …

Member Avatar for Reverend Jim
-1
69
Member Avatar for pippy729

Typically you'd want to give as few of each unit of change as possible. Start with a list of denominations from largest to smallest and cycle through them in turn, extracting as many of each denomination as possible. Stop when there is no more change to give. For extra credit …

Member Avatar for rproffitt
0
153
Member Avatar for Dani

We've been keeping busy doing a renovation on my father-in-law's old house. He moved out in January. So far we have ripped out the carpets on the upper two levels (it's a three level back split) and put in laminate, retiled the upstairs bathroom, replaced the tub/shower with a new …

Member Avatar for Naheedmir
5
941
Member Avatar for Reverend Jim

This thread is a continuation of a conversation that I started [here](https://www.daniweb.com/digital-media/digital-marketing/threads/522661/where-to-buy-instagram-followers#post2261270). As Dani correctly pointed out, the discussion belonged in its own thread and should not have taken over the thread in which it started. It wasn't my intention to hijack that thread (and I apologize) but that's what …

Member Avatar for Naheedmir
1
496
Member Avatar for Ding_1

I can only offer generic advice but I would recommend wxPython over tkinter. There is excellent help available through many wxPython books and a [user forum](https://discuss.wxpython.org/). I've also posted several step by step wxPython projects on Daniweb.

Member Avatar for Reverend Jim
0
50
Member Avatar for rex_2
Member Avatar for Reverend Jim
0
250
Member Avatar for Donna_9
Member Avatar for Tombezlar

If you already know how to program well in another language then learning to program in java should be "easier". However, learning any new skill takes time and effort in spite of all the "Learn X in 21 days" books available. If you don't already know how to program then …

Member Avatar for Reverend Jim
0
130
Member Avatar for Dani

Adam (the son you met in NY) ordered us a Quest 2 and it should arriving any day now. He just got his and he says it is awesome. I'll let you know what we find out. So how you doin'?

Member Avatar for Reverend Jim
0
633
Member Avatar for pratikmishra22@yahoo.com

Best game in 2018? Canasta. And what's wrong with a good old-fashioned card game? It involves interacting with actual people in actual reality. It involves thinking instead of just frantically reacting. And there is lots of interesting conversation. You also don't have to pay for downloadable content and there are …

Member Avatar for ElenaCora
6
5K
Member Avatar for Nether_1

You should never (ever) have an unqualified `except`. Doing so masks errors. Remove the `try/except` and let the error crash your code so you can see what the problem is.

Member Avatar for Reverend Jim
0
75
Member Avatar for Crionly

Price and functionality. I'm more interested in how other people look to me than how I look to other people.

Member Avatar for jamilalam
0
174
Member Avatar for mangle200
Member Avatar for Suzie999

An easy way to enable/disable the admin account is to open a command shell as admin (press WINKEY+X and select Command Prompt (Admin)) then type either of net user administrator /active:yes net user administrator /active:no

Member Avatar for parreirae1
1
930
Member Avatar for Gabriel9999

Still probably better to put it in a script file even if you only have to do it once. That way you can check for typos. The more file names you type the higher the chances of typing one incorrectly. Type - proof read - execute.

Member Avatar for AndrisP
2
402
Member Avatar for Dani

Unfortunately my father-in-law's senior's block is in lockdown, and Adam is stuck in Cambridge so it will be a quiet Christmas with just me, my wife, and number 2 son who lives four houses down. He has been working from home since March and we are the only people he …

Member Avatar for Reverend Jim
1
39
Member Avatar for jordan8452
Member Avatar for sandySuper

>When I access an api. it returns data in below format >n2035014,25 N2035014,25 B2035014,2944.40,250,3787.30,2400 o24,22971.20 h24,23064.15 l24,22641.40 c24,22945.05 i24,22744.40 I have my doubts as to the format of the returned data. Can you please be specific? For example, is the data returned as a blank-delimited string or as a series …

Member Avatar for JeanMilburn
0
68
Member Avatar for danialvin
Member Avatar for streamvn
1
1K
Member Avatar for Muhammet

There are a couple of problems. The spec says to run for xl=2 xu=6 es=0.001 imax=1000 iter=1 ea=0.0001. The problem is that `iter` is not a parameter. Should this be `xr=1`? You don't need to import numpy. Remove it. You have to define the function `f(x)`, likely as def f(x): …

Member Avatar for Muhammet
0
873
Member Avatar for Reverend Jim

I've been a member of Daniweb since 2010 and a moderator for most of the last ten years. I had the great pleasure of meeting our illustrious founder and leader in 2015. I've enjoyed many interesting discussions, particularly the ones which caused me to re-evaluate some of my own opinions. …

Member Avatar for Naheedmir
1
206
Member Avatar for Vajclav

Please read the [Daniweb Posting Rules](https://www.daniweb.com/welcome/rules) and [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). You have to show proof of effort to get help.

Member Avatar for topikkus
0
127
Member Avatar for Reverend Jim

I think I finally understand why Trump is doing so well (he recently pulled even with Hillary Clinton). It's only after years of shows like American Idol and America's Got Talent that his rise is possible. These shows got Americans used to the idea that they could vote with no …

Member Avatar for rproffitt
1
22K
Member Avatar for Jen Larosa

I've been using Brave rather than Chrome although I still keep Chrome (and Firefox) around. I don't even care to try Edge.

Member Avatar for Reverend Jim
0
87
Member Avatar for JonathanSimon

I'll take a crack at this even thouh my c is a tad rusty. If you are storing references to strings in your stack then the struct should look like struct stack { char *data; struct stack *next; } otherwise all you will be able to store is a single …

Member Avatar for Reverend Jim
0
165
Member Avatar for taceg30003

I think your problem can safely be narrowed down to: 1. A hardware problem 1. A software problem 1. An earthquake depending on what you mean by "keels over" You do realize, I hope, that nobody can diagnose your problem without details.

Member Avatar for Reverend Jim
0
23
Member Avatar for mavtcr

How hard is it to type **how to add a menu in vb.net** into google? It took me a lot less time to do that than it probably took you to post that question.

Member Avatar for mavtcr
-1
72
Member Avatar for Reverend Jim

Can anyone recommend a free flv to avi converter? There is a lot of free software out there so I have choices but can anyone recommend one that is free of trojans, viruses, malware, etc.? I've already got the DivX codec and converter but the DivX converter will not do …

Member Avatar for Reverend Jim
2
1K
Member Avatar for Ellalucky

It would help if you told us what OS you are running. Assuming you are running Windows, I have never found it necessary to use anything other than the anti-virus that comes with WIndows 10. In fact, on the computers I service for friends and family I frequently remove third …

Member Avatar for Reverend Jim
0
160
Member Avatar for iRoddu
Member Avatar for jkoski1996

For starters the line cout << "Welcome " << name << " You can come into the bar!" << is incomplete. And char answer, is also invalid. Your compiler would have complained about this. Fix your syntax errors (there are many others) and get back to us if you still …

Member Avatar for Reverend Jim
0
44

The End.