Re: Bouncing Balls: Creating a new ball when two balls collide Programming Software Development by vortex_1 …in a bouncing balls simulation where a new ball is created when two balls collide can add an interesting and …collisions, then adding a feature where a new ball is created upon collision may not be appropriate. However, if the simulation…decision to implement a feature where a new ball is created when two balls collide in a bouncing balls simulation … How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 … print("The object " + obj1 + " was successfully created") except ClientException as e: if e.http_status == '404': print…print("The object " + obj2 + " was successfully created") except ClientException as e: if e.http_status == '404': print… Alteryx Upgrade - No workflow data in Gallery Hardware and Software by saichinnu1852 … Alteryx application as well as the MongoDB version. We have created a non-production environment to test the upgrade. Since the… Re: Redirect non-www to www cons? Digital Media Digital Marketing Search Engine Strategies by Read a Book … noticed weird link structure getting indexed on google after i created the new property with `www` version. Take a look how… Re: Improve HAVING BY performance Programming Databases by Biiim … no indexes on it as it is just a temporarily created result set - but has the benefit of allowing you do… Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem First, let's prepare two tar files using different compression schemes for demo purposes. $ cat foo_1.txt This is file 1 $ cat foo_2.txt This is file 2 This is file two This is file too # Three tar files, two compressed and one uncompressed for reference $ tar -j -c -f foo.tar.bz2 foo_1.txt foo_2.txt… Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Hanginium65 Good day, Salem. My apologies for taking so long to reply to your suggestion. I refactored my code to read the contents of the tar.bz2 file and then pass them as a file-like object to the 'put_object' and also to change the content type for the file transfer to "application/octet-stream". The first was sent through to object storage … Re: How can I upload a tar.bz2 file to openstack swift object storage container Programming Software Development by Salem I don't understand why you need to extract all the files from the compressed `tar.bz2` just to upload to a backup. Also, line 69 is now meaningless having just posted only a snippet of the code. Before the error, what was the last `logger.info` message? Re: 88 Business-Growing Strategies Digital Media Digital Marketing by henrymorgan9522 A growth strategy is an organization's plan for overcoming current and future challenges to realize its goals for expansion. Examples of growth strategy goals include increasing market share and revenue, acquiring assets, and improving the organization's products or services. Re: Things I hate about TV shows Community Center Geeks' Lounge by Dani Currently the thing I hate most about TV shows is how much time elapses between seasons. I feel like I've been waiting for season 2 of Severance on AppleTV for *forever*! (It's been over 2 years already since season 1 debuted.) Speaking of that, is there ever going to be a second season for Squid Game? I can't imagine that Netflix wouldn’t invest … Re: Things I hate about TV shows Community Center Geeks' Lounge by Reverend Jim Fer sher. You pretty much have to watch the previous season again before you start the next one. I'm still waiting for season 2 of The Old Man (Jeff Bridges, John Lithgow). At my age sometimes I lose the thread if two weeks goes by between episodes. Sometimes I'll wait until the end of a season before I watch any of it. I especially hate it when a … Re: Things I hate about TV shows Community Center Geeks' Lounge by pritaeas > is there ever going to be a second season for Squid Game Yes, already announced, available soon. Re: Things I hate about TV shows Community Center Geeks' Lounge by Dani That's my point, though. Gone are the days when a show would break for a summer and the next season would start up again in the fall. Re: Things I hate about TV shows Community Center Geeks' Lounge by Reverend Jim >Gone are the days That's pretty much the case for everything. I remember when TV sucked all through summer vacation and I couldn't wait for the end of September for the new seasons to start. Of course it was bittersweet because September also meant back to school. I'll mention a few more things that may have been mentioned before but I … Re: Things I hate about TV shows Community Center Geeks' Lounge by KomalBhatt You know, there are few things more frustrating than getting interested in a TV show only to find it falling short of expectations. From the overly predictable plotlines to the underdeveloped characters, there's a huge list. But what really get irritated by is when the dialogue feels forced, like the writers are trying too hard to be clever or … Use of the Word ‘Tapestry’ in Web News More Than Doubled Last Year Community Center by Johannes C. … 2010. The obvious reason is that more online content is created today than 10 or 15 years ago, leading to a… Seeking Help for Creating a Circle Generator Tool Programming Game Development by jackwells … eager to create a tool like this https://minecraftcirclegenerate.com/ created using HTML, CSS, and JavaScript. As a beginner, I'm… Re: Seeking Help for Creating a Circle Generator Tool Programming Game Development by jackwells Here is a code i created <!DOCTYPE html> <html lang="en"&… Extracting values from capturing groups in regex Programming Software Development by Tom_45 …;td.*?>([\d+])([.*?])*<\/td>', file) The file is created with a read() statement. The output should look like (236… Extracting values from a regex match Programming Software Development by Tom_45 …;td.?>([\d+])([.?])*<\/td>', file) The file is created with a read() statement. The output should look like (236… ChatGPT ‘Lobotomized’? Performance Crash Sees Users Leaving in Droves Community Center by Johannes C. …, OpenAI just announced plans to **[put watermarks on all pictures created with Dall-e 3](https://www.theverge.com/2024/2… Odoo : report creation from JSON data Programming Web Development by codewasher … instructions of doing this. I have my custom module, I created a model and xml file inside it, thats I have… Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace Programming Computer Science by usmanmalik57 … embeddings. We vectorize our document using this library. We have created our vector embeddings. Let's see an example. In the… Re: A reliable way of detecting AI content? Hardware and Software Cloud-based Apps by Reverend Jim I realize that moderating Facebook posts is an exponentially greater task than moderating Daniweb, but if Facebook is not doing its job now, what happens once the election cycle heats up and untold thousands of AI posts created by bots start flooding the ecosphere? Re: Track Faces from Videos with Margins Using Deep Learning in Python Programming Computer Science by EdwardMatthew It's fantastic, I have read this article and it is super amazing. thankyou for the knowledge. Re: Extracting values from capturing groups in regex Programming Software Development by Reverend Jim 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 … Re: Extracting values from a regex match Programming Software Development by Reverend Jim 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', … Re: Extracting values from capturing groups in regex Programming Software Development by Tom_45 I'm not getting the results you presented, I'm getting the whole file not just the tr tags. The tr tags I used was just a subset of the entire file. Re: Extracting values from capturing groups in regex Programming Software Development by Reverend Jim Just process the file line by line and apply the regular expression to particular lines. I can't give you an expression that matches only the lines you showed me with a guarantee that in matches nothing else without seeing the entire file. Re: Extracting values from capturing groups in regex Programming Software Development by Reverend Jim You can either read the entire file into a list, then filter that list, or you could process it line by line and process each matching line. For example (using my file) for line in open('usblog.txt'): if '2024-01-24' in line: print(line) or text = open('usblog.txt').readlines() for line in [x for x in text if…