4,901 Posted Topics

Member Avatar for Raviteja_1

I do this so frequently that I created a bit of library code. It's so short that it should need no explanation. import subprocess def execCmd(cmd=""): return subprocess.check_output(cmd, shell=True).decode().splitlines() if __name__ == "__main__": for line in execCmd(r"dir d:\temp"): print(line) For your specific example just use cmd = "Merge -i file1.txt …

Member Avatar for woooee
0
108
Member Avatar for Cargen
Member Avatar for IQBAL_13
Member Avatar for Dani
0
290
Member Avatar for Thao_14

The comment tool should be used to add a brief comment to a post. If you are asked to provide further details or code you should add a new post to the thread. In your case in particular, posting code in a comment results in truncated and unformatted code.

Member Avatar for Reverend Jim
0
70
Member Avatar for Reverend Jim

## Introduction I have a pile of home movie videos created over more than seventy years. As with my many photos (all in digital form) they require some effort to find particular ones of interest. Typically, I name my videos (and photos) with tags. A file might look like 2013-10-29 …

Member Avatar for Reverend Jim
3
7K
Member Avatar for borobhaisab

>#1142 - DELETE command denied to user 'pma'@'localhost' for table 'pma__column_info'** I've done very little SQL since I retired so my skills are quite rusty but it just sounds like a permissions problem. >I am trying to delete two cols in my mysql tbl: Actually, you are trying to delete …

Member Avatar for Reverend Jim
0
133
Member Avatar for rproffitt

>Python is a C framework Can you please explain what that statement means. It just sounds like yet another buzzword that people like to bandy around to sound like they know stuff. In an episode of Mork and Mindy from too many years ago (sigh) David Letterman played a new-age …

Member Avatar for Dani
3
415
Member Avatar for onurs

If you are too lazy to do a simple google on the subject then I suspect you are too lazy to put in the effort to learn it.

Member Avatar for Dani
0
623
Member Avatar for Fian_1

It would help if we could see what type of object `api` is. I'm assuming it was created by some assignment in which case we would (like always) need to see the code. I find a good way to narrow down a problem like this is to use an interactive …

Member Avatar for Reverend Jim
0
201
Member Avatar for Fian_1

Definitely a case problem. Use `csv.writer` (lowercase). You'd have seen this if you were using an intellisense capable editor. Even `idle` would have pointed this out.

Member Avatar for Reverend Jim
1
244
Member Avatar for borobhaisab

>Are these MySql queries (with Php) correct ? Correct what? The syntax **may** be correct, but that depends on what values you substitute for `?`. As to whether it will do what you want, that depends on what it is you want it to do (which you really haven't said).

Member Avatar for borobhaisab
0
350
Member Avatar for Reverend Jim

I don't often rave about software (ok, other than my own), but I have to give two big thumbs up to the latest release by [Topaz Photo AI](https://www.topazlabs.com/?attribution=true). I have a very large collection of family photos reaching back to the turn of the last century. I long ago converted …

2
115
Member Avatar for fouad_4

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). Please be advised that we are not a homework assignment service. You should not expect to learn anything if we do your work any more than you would expect to get fit if someone else exercises for you.

Member Avatar for JamesCherrill
0
55
Member Avatar for Thao_14

Assuming this is assignment, as a former marker I would deduct points because of a complete lack of useful comments. You should get into the habit of providing a blurb for each function/method. Even if it's only for yourself, future you will thank present you for going to the effort.

Member Avatar for Reverend Jim
0
92
Member Avatar for David_270
Member Avatar for lawalishaq204

I don't know about vb.NET but I do know that there is a python library available to create & decode qr codes so I would imagine it is doable (probably not as easily) through vb.NET.

Member Avatar for Reverend Jim
0
112
Member Avatar for Aqib_5
Member Avatar for nouraaaaa
Member Avatar for Reverend Jim
0
12
Member Avatar for riccardo.farabi

To illustrate in Python >>> a = 15638.3627834621516782673486583 >>> b = 15638.3627834621516782672736583 >>> a - b 0.0 >>> a == b True >>> a 15638.362783462151 You can see that Python does not keep all the digits.

Member Avatar for riccardo.farabi
0
170
Member Avatar for ethelglover

>I, Dani, singlehandedly have 100% final say over what content I allow to exist and what content gets removed. Of course, if you were as popular as Facebook or Twitter that would be impossible. The more eyes you can attract the more likely you will be targeted by the same …

Member Avatar for Frenco
2
262
Member Avatar for Verlaine
Member Avatar for merryestifanos

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 rproffitt
-1
81
Member Avatar for sachitha_1
Re: java

The question was never answered because a question was never asked. The OP just posted a homework assignment. That's basically saying "Here's my homework. Do it for me." That never goes well.

Member Avatar for JamesCherrill
0
319
Member Avatar for ___150

If `exit` does what I think it does then aren't you still short-circuiting by wrapping it in another function?

Member Avatar for Reverend Jim
0
153
Member Avatar for Jack Moore
Member Avatar for Aizoh1219

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 Reverend Jim
-1
31
Member Avatar for Denji

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 Reverend Jim
0
16
Member Avatar for Husnain_6
Member Avatar for Williams Brown

If you put a little more effort into clarifying what you are looking for you might find people willing to put in some effort in answering it.

Member Avatar for Dani
0
76
Member Avatar for carolwangu2002

That's about as useful as saying **How to build a car. It should have:** - tires - a body - an engine It is also common practise to not post in all caps. To do so is considered rude.

Member Avatar for Dani
-1
97
Member Avatar for Yaw_905

Welcome to Daniweb. While I am far from being an expert, I will certainly help to the extent I am able. Feel free to post any questions you have and I'll be happy to answer them if I can. In the mean time please read [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). The …

Member Avatar for CodeWorked
0
81
Member Avatar for Dreamer_1

I'm assuming ordering is important. If not you could just copy the last element to the nth (deleted) position and decrease the number of items by one. If ordering IS important then why bother to loop over the entire array? All you need to do is loop from the nth …

Member Avatar for Reverend Jim
0
26
Member Avatar for xyzwd

Show us what you have so far and where you are stuck. Also, because of the ambiguity of the spec, please state what output you expect.

Member Avatar for CodeWorked
0
66
Member Avatar for hapiscrap

Both of my feet bend as I walk. Please read [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question).

Member Avatar for hapiscrap
0
108
Member Avatar for trevalen02

Please read the Daniweb [Posting Rules](https://www.daniweb.com/welcome/rules). Pay particular attention to the sections about posting in old threads and posting in all caps.

Member Avatar for Al-Fareed
1
154K
Member Avatar for Reverend Jim

In the last two weeks I renewed my cable package (TV/internet/phone) and in the process got upgraded to a new, faster modem. Three months ago I bought a new ChromeCast device and was able to connect it to my old modem/network using my existing Android 6 cell phone. Today I …

Member Avatar for Reverend Jim
3
158
Member Avatar for Uzo J

I wouldn't. I'd write the pseudo-code first, then make it into comments, **then** write the code.

Member Avatar for Reverend Jim
1
79
Member Avatar for sylvia.roymccormick

I've been using only the Microsoft Defender software for years on a dozen or so computers and not one virus yet.

Member Avatar for Reverend Jim
0
660
Member Avatar for fschild22

First of all, you don't need a `to_numerical` function. Instead of doing for char in string: do for char in string.lower(): and if you have a const string `'abcdefghijklmnopqrstuvwxyz'` you can find the one-relative value of the char by doing `'abcdefghijklmnopqrstuvwxyz'.find(char) + 1`. That expression will evaluate to zero if …

Member Avatar for Reverend Jim
1
153
Member Avatar for Bryce_Icky310

Welcome to Daniweb. What is you preferred starting language, and what are you interested in learning?

Member Avatar for Reverend Jim
0
8
Member Avatar for Silly_2

I tried to run this locally but I do not have the package `graphics` and `pip` couldn't find it either. So I found something that said `graphics.py` had to be in the same folder as your app. I found a copy of it on my computer and copied it over. …

Member Avatar for Reverend Jim
0
71
Member Avatar for Reverend Jim

While going through new posts this morning I noticed a change in behaviour. Yesterday, if I clicked on the sprocket to the right of a thread title I got a pop-up menu (mark as read, etc.). Today the menu pops up briefly before I get taken to the thread. There …

Member Avatar for Dani
1
127
Member Avatar for williamnoah2022

Just a thought - have you ever considered googling "how to license a vehicle in Canada"? Near the top is a link to [this guide](https://blog.clutch.ca/posts/motor-vehicle-registration). If, instead, you are referring to getting a driver's licence, then you should have been clearer with your question.

Member Avatar for odeskavita
0
39
Member Avatar for aibreansiyue

I find it useful to debug queries in an interactive DB session before writing the code. For MySql you can use [MySQL Workbench](https://www.mysql.com/products/workbench/). For sqlite you can use [sqlite Spy](https://www.yunqa.de/delphi/apps/sqlitespy/index). Run your query against a test version of your database. If it works then print the query your code is …

Member Avatar for gce517
0
134
Member Avatar for xw1yana

It would help to see the code but that error usually happens when you try to use a variable that has not been assigned a value. For example, you will get the error if you do x = y + 5 but not if you do y = 9 x …

Member Avatar for Reverend Jim
0
25
Member Avatar for Williams Brown
Member Avatar for Reverend Jim

It used to be that google maps satellite images had pretty good resolution, at least over cities. I haven't checked in some time, but today I noticed that the resolution is barely equivalent to Donkey Kong when it first came out. When did it get so bad?

Member Avatar for Reverend Jim
0
115
Member Avatar for Brandlogies

### Annotate your sources Provide links so the reader can check your sources for themselves to ensure you are properly representing the cited material. Are you providing the proper context for a quote? Are you selectively editing material to make it say something that it is not? ### Provide qualifications …

Member Avatar for JamesCherrill
0
105
Member Avatar for Lester_4

Sometimes the LED will blink to tell you the computer is sleeping. If there is a serious hardware problem that keeps your computer from starting up the blink code could indicate what the problem is. You'll have to check your particular user guide to see.

Member Avatar for Reverend Jim
0
13
Member Avatar for Aarya_1

Check out [Rosetta Code](https://rosettacode.org/wiki/Sorting_algorithms/Bubble_sort#Java)

Member Avatar for Reverend Jim
0
21

The End.