4,901 Posted Topics

Member Avatar for karansuthar

Mostly interacting in a way that doesn't put others, or ourselves, at risk. And perhaps answering a question or two and helping out. Or were you asking in a more philosophical sense?

Member Avatar for Reverend Jim
0
24
Member Avatar for Carsten_1

The first obvious steps: 1. reboot 1. try a different cable 1. try a different USB port 1. try a different computer

Member Avatar for Reverend Jim
0
371
Member Avatar for ymh07900
Member Avatar for Onion13

Is there perhaps a visible property you could set to false?You could use a timer to set it to true after 10 seconds.

Member Avatar for Onion13
0
155
Member Avatar for emamothelegend

Well, there is this... ![How_to_Fix_Any_Computer.jpg](https://static.daniweb.com/attachments/3/9d020003edbbb59fa6ebf94ed196dc11.jpg)

Member Avatar for Reverend Jim
0
223
Member Avatar for gudromarti
Member Avatar for manjeeta
Member Avatar for samiouwll222

Or the ever popular meth lab ![-Grin_Dogs_06.jpg](https://static.daniweb.com/attachments/3/a20469084bd5a9e358932c8d1131469c.jpg)

Member Avatar for Reverend Jim
0
85
Member Avatar for rafyemokna

Helloooo. I see you tagged this with "python". I'm looking forward to some interesting questions.

Member Avatar for Reverend Jim
0
12
Member Avatar for rproffitt

I haven't been following this but it seems to me (uninformed opinion coming) that the powers that be like to rant about free speech. These rants seem to take two forms. 1. They are for it when they can spout their own lies and propoganda. 1. They are against it …

Member Avatar for rproffitt
0
80
Member Avatar for Donald_18

Depressed? Or sad? If the former, and it's been going on a while (and is not due to the recent troubles) then please talk to someone. Most people who say "I am depressed" really have no idea what it means to be clinically depressed. I've been there and it can …

Member Avatar for Reverend Jim
0
21
Member Avatar for zedekiahtha

Would you prefer "I used to be from there?" We still have plenty of room up here in Canada. ?

Member Avatar for Reverend Jim
0
19
Member Avatar for veli can
Member Avatar for pwolf

The problem with learning a new language is that you tend to thing in your previous language. In this case you used 8 lines when you should be thinking in Python and using list(range(start,stop+1,step))

Member Avatar for Reverend Jim
1
1K
Member Avatar for Arnold Christian

The way it works is you show us what you have done so far and where you are stuck. Then, if you have given us enough details we will try to help. The more effort you put into asking your question the more likely you are to get a useful …

Member Avatar for JamesCherrill
0
78
Member Avatar for davindasingh74
Member Avatar for roxexe3827
Member Avatar for Reverend Jim
-1
27
Member Avatar for davindasingh74

I have had little success with connecting devices with Bluetooth. Connections, when they work, are unreliable. In many cases devices are just not recognized or fail to connect. I suggest using either an HDMI connection or Chromecast depending on how you intend to use the device.

Member Avatar for Reverend Jim
0
25
Member Avatar for Michael_125

I can't say whether or not this is illegal (I suspect it is) but I **do** think it is highly unethical.

Member Avatar for Reverend Jim
0
709
Member Avatar for Reverend Jim

I just bought a Figo Nitro 4X cell phone (Android 8.1) phone for my son. When I connect my cell phone (Figo Android 6) to my Windows 10 laptop it displays in file manager with an icon that I can open to see all the folders on my phone. From …

Member Avatar for Reverend Jim
0
418
Member Avatar for santonu98

It may be urgent for you but I don't consider doing someone else's homework for them urgent at all.

Member Avatar for Dani
0
104
Member Avatar for riyadhar
Member Avatar for Reverend Jim

Sometimes you want to ensure that only one copy of a script can be run at time. Windows provides a facility called a mutex and you can use it to prevent multiple instances. To create the mutex, all I have to do is varname = GetMutex() If the mutex already …

1
2K
Member Avatar for Dani

We drove home from camp today. Seven hours (and no bathroom break). In the next day or so when I start posting you'll see what I've been doing to keep boredom at bay.

Member Avatar for Reverend Jim
0
152
Member Avatar for vishwas_1

A more concise (and still clear) version of that would be def fac(n): return 1 if n <= 1 else n * fac(n-1)

Member Avatar for Reverend Jim
0
716
Member Avatar for pritaeas

Before I start thinking about this (whoops, it's already too late) do you have any initial ideas on how to map the hierarchical structure of XML onto a relational structure (SQLite)? Are there any restrictions on the level of nesting of the XML source?

Member Avatar for pritaeas
0
370
Member Avatar for Reverend Jim

###Subclassing python objects Sometimes you want to add just a little more functionality to an existing python object. You can do that by subclassing it and adding on the missing parts. This example is based on a really mindless game of solitaire I used to play as a kid. In …

2
223
Member Avatar for Dani

We've had one or more dogs since 1981. Most of the dogs were Irish Setters and mostly they just needed lots of exercise. Fortunately we are at the very edge of the city. There are literally (in the actual definition of the word) no houses once you go out our …

Member Avatar for Dani
3
2K
Member Avatar for Xozz

srand ([ int $seed ] ) : void Seeds the random number generator with seed or with a random value if no seed is given.

Member Avatar for Reverend Jim
0
28
Member Avatar for Reverend Jim

##This project implements a multiple timer application. It was written in 1. Python 3.8.2 2. wxPython 4.1.0 Feel free to experiment. Here are some possible enhancements: 1. Add the ability to run a program when the timer expires. With a little scripting you could, for example, schedule the sending of …

2
2K
Member Avatar for bprosic

I don't think a regex will do what you want. I don't see how you can define a pattern, based on your example, that could distinguish things you want to `<p></p>`ify and things you do not. How would you determine that you want to modify `basket`, `PVC thing`, and `Trash`, …

Member Avatar for Diafol_2
1
1K
Member Avatar for robinlrandall

Make the move to 3.0. The biggest problem is going to be modifying all your print statements but a simple Python script with a regex would handle that. The longer you stay with a defunct 2.x the harder it will be to change down the road. Do it now.

Member Avatar for Reverend Jim
0
63
Member Avatar for Reverend Jim

Python-wxPython Tutorial This tutorial will take you through the basics of wxPython. ##Introduction: Let's face it. I am a dinosaur. I got my computer science degree in the mid 70s. And it won't be long before **I** am in **my** mid 70s. So why am I trying to learn Python? …

Member Avatar for Reverend Jim
10
12K
Member Avatar for Dani

I'm always coding from home. But for fun, not profit (retired). My younger son (in Winnipeg) is still going to the office but they are considering splitting the work week into two three-day shifts to minimize contact. One shift would be Mon-Wed-Fri and the other Tue-Thu-Sat. They have also been …

Member Avatar for Reverend Jim
1
1K
Member Avatar for SpiffyCS

You might try [Everything Indexer](https://www.voidtools.com/support/everything/) by VoidTools. It's free and awesome.

Member Avatar for pritaeas
3
438
Member Avatar for Dani

I posted a suggestion but after I got the exact definition of a php variable and fired up my regexptester it didn't pan out. I'll play with it and hopefully have something for you in a bit.

Member Avatar for Reverend Jim
0
398
Member Avatar for muhammadnasiri

No one here is going to do your work for you. If you want it in Python you'll have to put in the work yourself.

Member Avatar for J_7
0
22K
Member Avatar for davy_yg
Member Avatar for Sarala_1

A good first step would be to tell us what the code is supposed to do. A good second step would be to tell us how familiar you are with Python. And a good third step would be to tell us how much you are willing to pay to have …

Member Avatar for Reverend Jim
0
18
Member Avatar for kevinzaco

Can't you select a USB device as your first boot option in your BIOS/EUFI settings? Do you need to boot from external so frequently that just pressing the `boot options` key when you boot is not an option?

Member Avatar for Yusuf_13
2
857
Member Avatar for Kaaviya_1

In your example for record 3 you want (1550+1540+1542) // 3, but what would you do if record 4 was also NULL? Assuming no consecutive NULLS you can do import os import sys import sqlite3 def Average(records, row, column): sum = records[row+1][column] for r in range(0,row): sum += records[r][column] return …

Member Avatar for Reverend Jim
0
27
Member Avatar for pritaeas

I just created a folder on my bookmarks bar for `Daniweb` with a link (filters disabled) to each forum. ![2020-05-07_110401.jpg](/attachments/large/3/103326cb19ebca063f7e5d792419607c.jpg)

Member Avatar for Dani
0
622
Member Avatar for sharmaavesh

Buying Instagram followers is pretty much the same unethical tactic as buying up copies of your own book to get on the best seller's list. It's dodgy at best and contemptible at worst. At least The Times identifies (although not obviously) best sellers that resulted from bulk sales. Too bad …

Member Avatar for jhakasseo
2
573
Member Avatar for Dani

Not a problem for me. My problem is that everyone seems to assume we all have unlimited usage so the sites I go to regularly (weather, covid-19 updates, etc) like to load me up with "content" whether I want to see it or not. Just checking the weather chews up …

Member Avatar for Reverend Jim
2
51
Member Avatar for Gabriel9999

Not familiar with java but your thread title says python so at the command line just type `python` and the version will be displayed before the prompt. I'm curious as to why you included bash, linux, and mint as tags but not python or java.

Member Avatar for AlVest
0
98
Member Avatar for Reverend Jim

I have a Chromecast that I use to stream video from my laptop to our TV. It works great, however, until VLC (Videolan) releases their promised upgrade with Chromecase support, I am limited to streaming files in the mp4 format. Fortunately, ffmpeg allows me to convert other formats to mp4. …

Member Avatar for gladisfogson
1
2K
Member Avatar for Atharva_2

What have you tried so far? What you have to keep in mind is that if the number of months you are subtracting is greater than the number of months in the given date you will have to subtract from the given year. For example, if your tuple is (2020, …

Member Avatar for Reverend Jim
0
129
Member Avatar for nevin6969

datetime.date.today() - datetime.timedelta(days=100) gives you the date - 100 days. >>> import datetime >>> datetime.date.today() datetime.date(2020, 4, 24) >>> datetime.date.today() - datetime.timedelta(days=100) datetime.date(2020, 1, 15) You can see the month is `1`.

Member Avatar for amazingadmin
0
230
Member Avatar for tian_1

I know what AI is, and I know what a calculator is. But I'm at a loss as to what an AI calculator is unless it's a voice actuated calculator that recognizes (since this is an English language forum) spoken English. Can you please elaborate?

Member Avatar for rproffitt
0
106
Member Avatar for DeForseti

Welcome to Daniweb. Quick movie reference - is it pronounced ee-gore, or eye-gore? Bonus points if you get the movie.

Member Avatar for Dani
0
29

The End.