• Member Avatar for sneekula
    sneekula

    Created Permission to read a file

    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 …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in PriceLess malware

    Can you run Linux on a Windows machine? Would that solve the problem?
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in PriceLess malware

    Since the file manager that comes with Windows7 does not even show folder ProgramData, I used used this little Python program to poke around: ''' file_get_full_path2.py list file names with …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in PriceLess malware

    See also my previous efforts that ultimately did not pan out: https://www.daniweb.com/software-development/python/threads/488454/raspberry-pi-snake#post2140739 I think Windows7 is swiss cheese when it comes to security holes! A friend told me that Windows …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Jokes

    Why Did the Chicken Cross the Road? KINDERGARTEN TEACHER: To get to the other side PLATO: For the greater good. ARISTOTLE: It is the nature of chickens to cross roads. …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Isaac Newtons theory about the earth falling to the sun.

    According to Einstein the Sun uses up more and more matter, its gravitational pull should lessen and the Earth should move further away.
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Archer

    I wonder if they ever come back with a good old Western?
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in No module named PySide

    Looking at main.py this program is a nightmare of imports. https://github.com/PicciMario/iPhone-Backup-Analyzer-2/blob/master/main.py
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in PriceLess malware

    @RobertHDD I tried all your suggestions, but to no avail. PriceLess keeps popping up in the Chrome browser extensions. I took XFind.exe and searched for the string PriceLess and found …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in PriceLess malware

    Junkware Removsl Tool found a few things and removed them, but PriceLess popped up again.
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in software devolopment

    If you use Windows OS, read this: http://www.cprogramming.com/tutorial/game_programming/same_game_part1.html
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Graphics

    What is your operating system?
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in asking question about c++

    Can you give an example.
  • Member Avatar for sneekula
    sneekula

    Created PriceLess malware

    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 …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in isprime function (Python)

    Just a little faster than isprime2(): def isprime5(n): if n == 2 or n == 3: return True if n < 2 or n%2 == 0: return False if n …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Star with 6 points (Python/Turtle)

    What does tu.done() do?
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in IndexError: list index out of range

    You may want to add a temporay `print(self.rows, len(self.add_programs))` just before line 28 to see if self.rows exceeds length - 1 It alsmost looks like self.add_programs is an empty list …
  • Member Avatar for sneekula
    sneekula

    Edited PIL and matplotlib for Linux

    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 …
  • Member Avatar for sneekula
    sneekula

    Created PIL and matplotlib for Linux

    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 …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in looking for random image generator PIL script

    Also take a look at the turtle demo files in C:\Python34\Lib\turtledemo for instance
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in IDE

    PyCharm is nice. You can tell it which Python version to use. There is a free community edition.
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Access the clipboard via Tkinter

    I wonder how many different Linux distributions there are? It would be nice to replace the Windows OS. Appearently only the Windows machines at SONY got hacked. The finance department …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in raspberry pi snake

    Good news, I was able to remove the malware that seems to have come in on a Adobe or Java update. First go to http://downloads.malwarebytes.org/file/mbam_clean this downloads mbam-clean-2.1.1.1001.exe close all …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Create a password you can remember

    Advice from Microsoft: Strong passwords are phrases (or sentences) at least eight characters long, longer is better, that include at least three of the following: uppercase and lowercase letters, numerals, …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in raspberry pi snake

    Aside: My Windows7 computer got hit by "Browser Hijacker Malware". Google Chrome shows an extension called "PriceLess" that comes back after it has been removed. One of the more obvious …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Random Facts

    The average American gains about 4 to 7 pounds between Thanksgiving and Christmas. http://www.huffingtonpost.com/
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in raspberry pi snake

    Okay, I got my Raspberry Pi B+ and have the Linux installed and running. Even wrote a few Python programs on the included Idle IDE. I tried to write a …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Help with programm

    To keep the image from being garbage-collected within the function scope, put this line `canv2.image = bg_fon2` right after line 22
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in help in string combinations

    For example: import itertools s = "a1 a2 a3 a4 a5 a6" seq = s.split() print(seq) # test for e in itertools.permutations(seq): print(" ".join(e))
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in good form

    The shebang line is of course very useful when you write cross-platform code or in case of `if __name__ == "__main__":` when you write a module and a test for …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Python program for prime numbers. can you help me out with continue loop?

    Generally: # show prime numbers # prime numbers are only divisible by unity and themselves # (1 is not considered a prime number) for n in range(2, 100): for x …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Enum Help

    According to your traceback you are using Python2.7 Why not use just constants: WHITE = (255,255,255) BLACK = (0,0,0) RED = (215,45,45) BLUE = (45,87,214) YELLOW = (230,223,48) GREEN = …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Python dictionary.

    One possibility: def translate(text, e_s_dict): swed = "" space = " " for word in text.split(): swed += e_s_dict[word] + space return swed # english:swedish dictionary e_s_dict = {"merry":"god", "christmas":"jul", …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in learning algebra:graphs:

    What computer language and operating system are you using?
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in returning a string that's 'n' characters long

    You can use a while loop (stops/breaks when n is zero): def generate_n_chars(n, ch): s = "" # start with an empty string while n: s += ch # build …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Jokes

    Knock knock! Who's there? "I am the beginning of the end and the end of space and time" Who are you? "e"
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in raspberry pi snake

    I had some loose change in my pocket so I ordered myself a Raspberry Pi B+ Ultimate Starter Kit from Amazon.com. I was reading up on the Raspberry Pi, an …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in not using len() to get length

    Hint: mystring = "briyani" for c in mystring: print(c) # then this should give you the length length = sum(1 for c in mystring) print(length)
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in raspberry pi snake

    The raspberry pi sounds interesting. Could you tell us a little bit more about your personal experience with the device?
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Approximation of Pi (Python)

    Reminds me a little bit of the algorithm that appears in the Python manual for the decimal module. Check the recipes.
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Different Version of Python

    If you use an IDE like Ninja, then you can switch beteeen different versions of Python by following the tabs: Edit Preferences Execution then simply edit the Python Path field. …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in Different Version of Python

    Write these two batch files and put a shortcut of each on your desk top: rem save as idle27.bat rem run the IDLE IDE with Python27 C:\Python27\pythonw.exe -u C:\Python27\Lib\idlelib\idle.pyw and …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in How to calculate PI...

    Looks like you use the Gregory–Leibniz series which converges rather slowly. A much faster series is given in the Python manual under the decimal module recipes: import decimal def pi_decimal(prec): …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in What is the best language to learn?

    Here is a nice C# tutorial: http://zetcode.com/lang/csharp/ The Python tutorial: http://zetcode.com/lang/python/ Might as well look at the Java tutorial too: http://zetcode.com/lang/java/
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in What is the best language to learn?

    There is also IronPython that has the look of C# but the easier syntax of Python. http://www.zetcode.com/tutorials/ironpythontutorial/ Free IronPython download from: http://ironpython.codeplex.com/ There is a free studio like IDE at: …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in What is the best language to learn?

    C# has the best integrated/unified system. However, you will be married to Windows and the NET. Let's not forget that 90% of PCs and laptops in the world are Windows …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in The Internet of Things

    I am not a Twitterer since I don't want them to violate the privacy of my e-mail contact list.
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in SENTENCE GENERATOR

    Here is an example to get you started: ''' random_sentences101.py # use this template to add more data adjectives.append('') subjects.append('') verbs.append('') objects.append('') ''' import random # create lists adjectives = …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in three button monte

    In other words: b1 = Button(win, Point(3, 5), 5, 2, "Door 1") b1.activate() b2 = Button(win, Point(10, 5), 5, 2, "Door 2") b2.activate() b3 = Button(win, Point(17, 5), 5, 2, …
  • Member Avatar for sneekula
    sneekula

    Replied To a Post in The Internet of Things

    Twitter Inc will begin tracking what third-party apps are installed on users' mobile devices so the social media company can deliver more tailored content, including ads. Source: http://news.yahoo.com/twitter-start-tracking-users-mobile-apps-163828964--finance.html

The End.