4,901 Posted Topics
Re: 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 … | |
Re: >How to explode data array using MYSQL and using NOT IN What does that mean? | |
Re: 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. | |
## 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 … | |
Re: >#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 … | |
Re: >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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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. | |
Re: >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). | |
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 … | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: What are the symptoms? Maybe you just have a defective mouse or USB port. | |
Re: 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. | |
Re: >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 … | |
Re: I would suggest, at a minimum, that you try sqlite. | |
Re: 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). | |
Re: 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. | |
![]() | Re: If `exit` does what I think it does then aren't you still short-circuiting by wrapping it in another function? |
Re: 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). | |
Re: 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). | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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). | |
Re: 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. | |
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 … | |
Re: I wouldn't. I'd write the pseudo-code first, then make it into comments, **then** write the code. | |
Re: I've been using only the Microsoft Defender software for years on a dozen or so computers and not one virus yet. | |
![]() | Re: 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 … |
Re: Welcome to Daniweb. What is you preferred starting language, and what are you interested in learning? | |
Re: 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. … | |
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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: On time Good tasting Nutritious | |
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? | |
Re: ### 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 … | |
Re: 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. | |
Re: Check out [Rosetta Code](https://rosettacode.org/wiki/Sorting_algorithms/Bubble_sort#Java) |
The End.