98 Discussion / Question Topics

Remove Filter
Member Avatar for sneekula

In the last couple of threads people have used the Python class, but really don't seem to know how to use them properly, or why to use them. Hence my question: "Why would you use a class in Python?" I though only Java forces you to use OOP.

Member Avatar for Vineetha_1
0
4K
Member Avatar for sneekula

I got infected right after a Java and Adobe update on my Windows7 machine. folder \jnihmpibahpjjmcodbopcpdaelkbpjnc is most likely a random generated folder. Note on malware **PriceLess** (pops up as Chrome extension, highlights strings for ads): PriceLess is in folders: C:\Users\HomeGroupUser$\AppData\Local\Chromatic Browser\User Data\Default\Extensions\jnihmpibahpjjmcodbopcpdaelkbpjnc\5.2 C:\Users\HomeGroupUser$\AppData\Local\Comodo\Dragon\User Data\Default\Extensions\jnihmpibahpjjmcodbopcpdaelkbpjnc\5.2 C:\Users\HomeGroupUser$\AppData\Local\Google\Chrome\User Data\Default\Extensions\jnihmpibahpjjmcodbopcpdaelkbpjnc\5.2 C:\Users\HomeGroupUser$\AppData\Local\Google\Chrome SxS\User Data\Default\Extensions\jnihmpibahpjjmcodbopcpdaelkbpjnc\5.2 …

Member Avatar for henri2398
1
653
Member Avatar for sneekula

I have a Toshiba Satellite notebook with Windows7 OS. How would I go about it to replace Windows7 with Kubuntu?

Member Avatar for RobertHDD
0
166
Member Avatar for sneekula

On Windows7 I am trying to read file C:\programdata\microsoft\application virtualization client\SoftGrid Client\sftfs.fsd using a Python program, but I get a PermissionError. How do I get permission? Why does folder programdata not show in the Microsoft file manager/explorer?

Member Avatar for RobertHDD
0
256
Member Avatar for sneekula

On my Raspberry Pi computer I did a search for PIL and matplotlib with apt-cache search python but could not find anything close in the list. Is PIL/Pillow and matplotlib available for Linux and what is it called? The Raspberry Pi has Python27 and Python32 installed.

Member Avatar for vegaseat
0
394
Member Avatar for sneekula

I have a tkinter program like the one below (for example) and want to create an executable file using module cx_freeze. I am using Python33 and Windows7. # Tk_circle2.py # draw a circle with given center (x,y) and radius # tkinter normally needs a specified square try: # Python2 import …

Member Avatar for vegaseat
0
2K
Member Avatar for sneekula

There used to be a Python module called pyglet that allowed graphics and sound. I can't find it anywhere.

Member Avatar for sneekula
0
256
Member Avatar for sneekula

I would like to break up a list into sublists of 3 elements each. I have this code, but it will give an index error when the length of the list is not divisible by 3. mylist = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11] …

Member Avatar for sneekula
0
260
Member Avatar for sneekula

I asked that in another thread, but it got lost: [QUOTE]When do you use root.quit() and when do you use root.destroy() to exit a Tkinter program?[/QUOTE] Also, can you intercept an exit when you use the little x in the title bar, just to affirm that you really want to …

Member Avatar for entropicII
0
45K
Member Avatar for sneekula

Just wondered which computer language is best suited for preteen students. Any ideas or experiences?

Member Avatar for Sanchixx
0
482
Member Avatar for sneekula

I need a function that returns True or False if an integer n is a prime. Any 'high speed' thoughts?

Member Avatar for wallars
0
1K
Member Avatar for sneekula

... this is your favorite pickup line: "Hey sweets, does this rag smell like chloroform? "

Member Avatar for Netcode
0
674
Member Avatar for sneekula
Member Avatar for sneekula

I need to read in a text file, replace selected words and write the changed text back out to a file. Is there an easy way with Python?

Member Avatar for halamas
0
20K
Member Avatar for sneekula

It's time again to poll the well educated folks at DaniWeb about the possible cause of the end of humanity on earth.

Member Avatar for bumsfeld
2
935
Member Avatar for sneekula
Member Avatar for TrustyTony
0
6K
Member Avatar for sneekula

In the Netherlands many schools have adopted graves of Allied servicemen killed in action during WW2, keeping those graves in excellent condition.

Member Avatar for Biker920
0
86
Member Avatar for sneekula

I have a text I want to search for all it's upper case letters, then present these letters unique and sorted. I welcome any suggestions.

Member Avatar for twekberg
0
325
Member Avatar for sneekula

How would you make a simple bar graph from a list of data? [code]data = [20, 15, 10, 7, 5, 4, 3, 2, 1, 1, 0] [/code]

Member Avatar for Stefano Mtangoo
0
562
Member Avatar for sneekula
Member Avatar for gelgin2k
3
593
Member Avatar for sneekula

I was trying to create a 3x3 list of lists, and came up with this surprising behaviour: [code]# creating a 2D list with an overloaded * operator mlist3 = [[0]*3]*3 print mlist3 # [[0, 0, 0], [0, 0, 0], [0, 0, 0]] mlist3[0][0] = 1 print mlist3 # [[1, 0, …

Member Avatar for Mathhax0r
0
1K
Member Avatar for sneekula

A mother and son were walking through a cemetery, and passed by a headstone inscribed "Here lies a good lawyer and an honest man." The little boy read the headstone, looked up at his mother, and asked "Mommy, why did they bury two men there?"

Member Avatar for vegaseat
1
495
Member Avatar for sneekula

I am still rather new to the Linux OS and need some detailed advice on the installation of Python3.1 on my Ubuntu machine. Python3.1 is not in the Ubuntu package repository yet.

Member Avatar for pdxwebdev
0
1K
Member Avatar for sneekula

Does anyone know a good internet site where I can 'park' my Python code? Easy download, upload, and search.

Member Avatar for zachabesh
0
203
Member Avatar for sneekula

Ever since I got my Ubuntu notebook computer, I can't fail to notice how fast it starts up (and shuts down) compared to my Windows Vista notebook. Other than the system itself, the virus program seems to take more and more time as it checks for seemingly millions of possible …

Member Avatar for vegaseat
0
230
Member Avatar for sneekula

I have an HP DV9000 notebook with Vista, and created a Knoppix 6.1 live Linux Flashcard. I can boot it up and select Linux, but the 'wirless' switch will not activate, even so physically it is in the on position. It almost looks like there is a software( HP Wireless …

Member Avatar for Xlphos
0
184
Member Avatar for sneekula

I just bought an inexpensive used Dell notebook that has Ubuntu/Linux as an operating system. Compared to Vista this is sweet. It came with Python25 installed, but it was easy to use the Add/Remove application feature to get open source software from the Ubuntu site. I downloaded/installed Stani's Python Editor …

Member Avatar for MaxVK
0
332
Member Avatar for sneekula

Every now and then Vista comes up with a "Program Compatability Assistant" popup window (see image) when you want to run a .exe file. If you make the mistake, like I did, and agree with the Administrator option, then from hence foreward everytime you want to run this particular executable …

Member Avatar for sneekula
0
151
Member Avatar for sneekula

What do you think about bailing out the top slime at the banks, so they can carry home their million dollar bonuses at taxpayer's expense?

Member Avatar for vegaseat
0
255
Member Avatar for sneekula

In the US unemployment numbers are blatantly underestimated. The governmant just released a sugarcoated number (U-3) of 8.5%, being months behind, leaving out many folks. A more honest number (U-6) at least considers the folks who have been unemployed long enough to drop out of official unemployment support, this number …

Member Avatar for GrimJack
0
478
Member Avatar for sneekula

(牛 Ox 丑 Chou) should start on January 26, 2009 Not completely sure.

Member Avatar for debasisdas
0
75
Member Avatar for sneekula

Since anyone of us main street beings knows more about the real economy than 400 Wall Street kissing economy professors combined, here is a look how to present the state of the economy: [url]http://www.thedailyshow.com/video/index.jhtml?videoId=186052&title=clusterf#@k-to-the-poor-house[/url]

Member Avatar for GrimJack
0
369
Member Avatar for sneekula

Just an accumulation of foolish things said by important folks on the merits of war. I am quoting the Iraq war here, but it can be contributions to any war. [QUOTE]There is a lot of money to pay for the Iraq war that doesn't have to be US taxpayer money, …

Member Avatar for Ene Uran
1
498
Member Avatar for sneekula

Everybody tells me that Republicans don't have a sense of humor. If you are a Republican, here is your chance to disprove this offending assumption. I am a Republican, and I can't think of anything related to humor, but I am working on it.

Member Avatar for Ene Uran
0
1K
Member Avatar for sneekula

Well, we have a thread on North American Thoughts, but DaniWeb is an international community. So I put up this thread to ask for the thoughts, any thoughts, from our international friends. Any thoughts about their country's leadership, politics, economy, education, beauty, worries, weather ..... We are all curious to …

Member Avatar for lllllIllIlllI
0
330
Member Avatar for sneekula

These are all innocent clean web sites, but their URLs make you wonder: [url]http://www.whorepresents.com/[/url] [url]http://www.expertsexchange.com/[/url] [url]http://www.penisland.net/[/url] [url]http://www.therapistfinder.com/[/url] [url]http://www.molestationnursery.com/[/url] Know any more, post them here!

Member Avatar for sneekula
0
103
Member Avatar for sneekula

Take the test at: [url]http://www.blogthings.com/howrepublicanareyouquiz/[/url]

Member Avatar for Aia
0
129
Member Avatar for sneekula

This thread includes thoughts from and about our Canadian friends too. US Elections: Too much Pluribus, not enough Unum.

Member Avatar for Ene Uran
0
249
Member Avatar for sneekula

Yup, here are the hypocrites! [url]http://www.youtube.com/watch?v=wQK1al91drs[/url]

Member Avatar for Dave Sinkula
0
67
Member Avatar for sneekula
Member Avatar for Ancient Dragon
0
104
Member Avatar for sneekula

Hallelujah! I made it past the first 1000 posts! This calls for a celebration this evening.

Member Avatar for sittas87
0
52
Member Avatar for sneekula

What are the most annoying things people around you do? One of my pet peeves: Some "know it all" old timer treats you like a little kid, just because you are young and he/she is not too bright.

Member Avatar for reddawg
0
1K
Member Avatar for sneekula

Transportation uses a lot of energy, so when you talk about alternate energy then alternate transportation becomes an important issue. What forms of transportation would you consider in your situation to minimize energy consumption? Would it be a petrol saving minicar? Just in the news, Tata, an Indian carmaker just …

Member Avatar for GrimJack
0
677
Member Avatar for sneekula

Let the rest of us know what your dreams are about. One of my reoccuring dreams is a trip to somewhere important, but I get stopped by a flooded river. The water is fast flowing but absolutely clear, so I can see the depth of the flood waters. In the …

Member Avatar for GrimJack
0
504
Member Avatar for sneekula
Member Avatar for bumsfeld
0
267
Member Avatar for sneekula

I have a dictionary of chemical symbols and names, to look up the symbol and get the name is easy, but to find the symbol of a given chemical name seems to be more akward. Am I missing something here? [code=python]# small dictionary of chemical symbols symbol_dic = { 'C': …

Member Avatar for jrcagle
1
245
Member Avatar for sneekula

A bromide is a platitude that is especially banal, something like: Let's leave no stone unturned. Be as busy as a bee! This is the only candidate that represents Family Values. I am sure you'll give 110% in your effort! We need to think outside the box. (from post that …

Member Avatar for Ene Uran
0
121
Member Avatar for sneekula

In the US most TV programs are supported by advertisements commonly called ads. If you don't want to fork over hard earned money for paid TV, you simply learn to live with those ads. At times they are better then the program anyway. Later in the Chistmas season, after most …

Member Avatar for Serunson
0
153
Member Avatar for sneekula

I want to make a small Molecular Weight calculator. If the user for instance enters the molecular formula for dichloro-benzoic acid as "C6H3Cl2COOH", I would like to split it into a list like ['C6', 'H3', 'Cl2', 'C', 'O', 'O', 'H'] so I can then combine all the carbons, chlorines, oxygens …

Member Avatar for sneekula
0
118
Member Avatar for sneekula

Do you consider yourself skinny, normal or fat? Let's be as honest as possible.

Member Avatar for twomers
0
272

The End.