4,911 Posted Topics
Re: As a first language I highly recommend Python. It is free and comes with a simple IDE (idle). For something more robust you can use Microsoft vscode (also free) as the Python IDE. Python has a very friendly syntax and there are a large number of free online tutorials. And … | |
Re: Welcome to aniweb. Please take a few moments to 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 trick is to use lazy matching which matches the shortest possible string. html = '<tr align="right"><td>236</td><td>Roy</td><td>Allyson</td>' pat = '<td>(.+?)</td>' then re.split(pat,html) returns ['<tr align="right">', '236', '', 'Roy', '', 'Allyson', ''] and re.split(pat,html)[1::2] returns ['236', 'Roy', 'Allyson'] | |
Re: For html = '<tr align="right"><td>236</td><td>Roy</td><td>Allyson</td>' pat = '<td>(.+?)</td>' then re.split(pat,html) returns ['<tr align="right">', '236', '', 'Roy', '', 'Allyson', ''] and re.split(pat,html)[1::2] will return only ['236', 'Roy', 'Allyson'] The expression `.+?` does a lazy match (returns the shortest possible string that matches the pattern. | |
Re: Why not just load it into paint.exe then save as whatever format you want? Or you could download [ffmpeg](https://ffmpeg.org/) (free) and do ffmpeg -i myfile.ico myfile.jpg (or whatever format you want) ffmpeg can also be used to convert video between any formats. Also subtitle files. ffmpeg is a portable app … | |
Re: Remove the trailing `)` and it should work. | |
Re: Normally I would have just deleted this as spam but I thought it was worth leaving in to make a couple of comments. Firstly, it is not an academic lifesaver. The purpose of a term paper is to teach you how to do research and to help you learn the … | |
Re: I think it is a good idea for the design team to get input from the coders. Let me give you a non-programming example. My brother was a civil engineer in charge of the maintenance of the province's water treatment plants. When the design for a new plant came to … | |
Re: Welcome to Daniweb. Please take a moment to 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: Are you differentiating between design and programming? Some professionals get stuck in their heads. For example, too many surgeons feel that surgery is the first option. My job as a professional programmer was not primarily to write code. My job was to provide solutions to problems. Ideally that meant writing … | |
Re: Can someone please explain the difference between "Increase website traffic" and "Increase website traffic organically"? What, exactly, does organically mean? | |
Re: For what it's worth, when I retired in 2008 and started writing code just for myself, I wrote everythig in vb.net. A few years ago I made the move to Python/wxPython and never looked back. I wanted to refactor/enhance one of my apps and I ended up just redoing it … | |
Re: I have found that the maintainability of an app has a lot more to do with the quality of the developer than the language choice, given that you are choosing a mainstream language. | |
Re: Popular doesn't mean best, and best can depend on many factors: 1. speed of game play and complexity of calculations 2. speed and ease of development 3. available resources 4. skill and number of developers 5. type of game (first person shooter, puzzle, etc.) Years ago I wrote a 3D … | |
Re: Any particular reason why you are also posting as Victor_43? | |
Re: Any particular reason why you are also posting as keziashan? | |
Re: 1. No more Trump(s) 1. Media that doesn't pretend there are two sides to every story for fear of being called biased (as if there is anything wrong with being biased in favour of the facts). 1. Fair elections. 1. Serious consequences when the media or a politician knowingly reports … | |
Re: Since the underlying tool is ffmpeg, why bother with all the code and overhead? You can just use ffmpeg directly with the -r option. Aside from this I enjoyed the article (and the others you have posted). | |
Re: I worked at a desk (computer programmer/maintainerer/etc) for 31 years. For the last ten years as part of a group of hardware/software specialists I was required to attend monthly safety meetings. One particular meeting was all about repetitive stress injuries and how to avoid them. One engineer, whom I thought … | |
Having just acquired a Raspberry Pi Model 3, I am attempting to set it up as an NAS. So far I have set up the Raspberry Pi OS and configured samba. It appears to be working fine except for one minor problem. While I can remote in using TightVNC, I … | |
| |
Re: I don't know what it is you are trying to do but is it possible to use ffmpeg to do the changes? If you can tell us what your intentions are perhaps I can suggest an ffmpeg command line that will do it. | |
Re: Knowing how obtuse some error messages are, could it be referring to one of the URLs in either or both of the xml files? | |
We haven't had any really silly discussions going on here for some time so let me start one with these two items: Is it just me, or does Lauren Boebert (at least in the outrage/rant photos) look like Margaret Hamilton in The Wizard of Oz? and speaking of green things... … | |
Re: >Your designs are safely stored in the Figma cloud, ready to be accessed anytime, anywhere. Except from Google Drive, apparently. | |
Re: Generally speaking, people are less likely to offer help when the request is phrased as a demand. | |
Re: What's with the new trend of adding a "w" to the end of "hello"? Forgive me for being old and cranky but I thought we already had enough words. Also, in spite of the cranky tone above, welcome to Daniweb from a resident curmudgeon. | |
Re: Typing your title into google gives... An interface is the connection between systems or applications, while a protocol defines the rules for data exchange between these systems or applications. | |
Re: Creating exceptional content takes time. You need to take time to organize your thoughts, and you need to take time to express those thoughts concisely and coherently. You also need to take time to proof-read what you have written to make sure it accurately reflects what you want to convey. … | |
Re: Sometimes you have to work to convince the client that what they want isn't necessarily what they need. | |
Re: When I had a bad lower back injury years ago I built a kneeling chair that was very comfortable for working. It looked very similar to [this one](https://www.vevor.ca/ergonomic-kneeling-chair-c_10916/ergonomic-kneeling-chair-rocking-wooden-330lbs-load-posture-correct-office-stool-p_010982123570?adp=gmc&utm_term=) except I built mine for under $10. Please note I am in no way promoting/endorsing the product in the link. | |
| |
Re: Please read [Suggestions For Posting Questions](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). | |
Re: An expression is typically something that reduces to a value (usually a part of a statement). A statement is something that performs an action. For example: x + y * 5 is an expression z = x + y * 5 is a statement that computes a value (from the … | |
Re: Face to face. | |
Re: Hello, and welcome to Daniweb. | |
Re: Welcome to Daniweb. >I offer my sincere apologies for any inadvertent mistakes I may have made thus far. Not even so much as a grammatical error so far. Even meticulous comma placement. Well done ;-) | |
Re: All I get when feeding it an audio file is Traceback (most recent call last): File "D:\Scripts\transcribe.py", line 5, in <module> import openai File "C:\Python\lib\site-packages\openai\__init__.py", line 15, in <module> import aiohttp File "C:\Python\lib\site-packages\aiohttp\__init__.py", line 6, in <module> from .client import ( File "C:\Python\lib\site-packages\aiohttp\client.py", line 36, in <module> from . import … | |
Re: >Here's a general outline of how you can achieve this: I think you left a little bit out of that outline. | |
Re: Where do you draw the line? If I set up parameters for ray-tracing and run them through "generative" software, would I own the rights to the result? Pre AI I believe I would have, but now it could be argued that I would not. Consider a tool like Topaz Photo … | |
Re: Welcome to Daniweb. What are your areas of expertise? | |
Re: A subtle difference, but it makes sense. | |
Re: The only way to get good at something is by doing it. After decades of programming professionally in multiple languages I read several python book but I found that just "dabbling" was not sufficient to become comfortable with the language. I had to jump into the deep end of the … |
The End.