Go to advanced search

by Sleep Mode zZ
Fri Apr 03, 2015 3:10 am
Forum: Beginners
Topic: Windows 10 GUI on Raspberry Pi 2
Replies: 20
Views: 32626

Re: Windows 10 GUI on Raspberry Pi 2

It could very well have graphical output. According to The Register : “It is a headed device, HDMI primarily at the moment but then LCD panels in due course.” On the other hand, it probably will not have any kind of shell. Think of a Raspberry Pi with Windows 10 IoT more like a dedicated device, run...
by Sleep Mode zZ
Fri Mar 20, 2015 1:27 pm
Forum: Python
Topic: Python "Inkey$" equivalent?
Replies: 5
Views: 2876

Re: Python "Inkey$" equivalent?

I think the curses module (which comes with Python) might have something able to do what you want. http://www.raspberrypi.org/forums/viewt ... 13#p293687
by Sleep Mode zZ
Thu Mar 19, 2015 3:49 pm
Forum: Python
Topic: time.sleep() is too sleepy
Replies: 13
Views: 1841

Re: time.sleep() is too sleepy

There was a bug with the Pi 2 that affected system time but it was fixed very fast. It is only a possible explanation if you have not upgraded your image in many weeks.
by Sleep Mode zZ
Tue Mar 17, 2015 5:46 pm
Forum: Python
Topic: Default python
Replies: 2
Views: 568

Re: Default python

I think that croston's instructions worked for me the last time I installed pygame for python3:
http://www.raspberrypi.org/forums/viewt ... 57#p284266
by Sleep Mode zZ
Sun Mar 08, 2015 11:27 pm
Forum: Python
Topic: open text file refuses to open
Replies: 2
Views: 606

Re: open text file refuses to open

The problem probably is that the current working directory is not the same as the directory where the file is. So, basically Python looks for the file in a different directory and does not find it there. You could check what the current working directory is it by importing the os module and: print(o...
by Sleep Mode zZ
Sat Mar 07, 2015 7:50 pm
Forum: Other
Topic: Windows 10 on Pi
Replies: 36
Views: 5640

Re: Windows 10 on Pi

That's the whole point this OS can and that can't, it's not like that with Windows . Any windows version will play what ever . And ok so you say OpenElec can but what can't OpenElec not do or KODI not do ? The list mind bogging with Linux , this one does that and that one does this , why can't you ...
by Sleep Mode zZ
Sat Mar 07, 2015 6:28 pm
Forum: Other
Topic: Windows 10 on Pi
Replies: 36
Views: 5640

Re: Windows 10 on Pi

And please if you people here are saying its hard to install windows with Microsoft update site , come on who lying now, it can't get any easier by clicking on windows update, afterwards you have a system up and running, not so with linux. I'm not sure I follow what you are saying. How can you inst...
by Sleep Mode zZ
Sat Mar 07, 2015 5:53 pm
Forum: Other
Topic: Windows 10 on Pi
Replies: 36
Views: 5640

Re: Windows 10 on Pi

First off I never said linux wasn't good . I'm saying Windows is much easier to understand and again I really don't have all the time to learn it, from what I gather I have to learn command lines after command lines and then looking at the packages seem to be a nightmare . I'm a total newbie and th...
by Sleep Mode zZ
Wed Mar 04, 2015 1:26 pm
Forum: General discussion
Topic: RPI2 stability issues
Replies: 46
Views: 9709

Re: RPI2 stability issues

RPI2 boots runs raspbian fine runs X nice, but locks up after 4-6 hours running. Normally the lockup will occur during largish compile jobs, I guessed maybe a memory, SD or USB issue there is no corruption of screen but nothing from input devices works unplugging/repluging usb mouse/keyboard does n...
by Sleep Mode zZ
Sun Mar 01, 2015 2:55 pm
Forum: General discussion
Topic: SD Card Benchmarks
Replies: 301
Views: 310734

Re: SD Card Benchmarks

But other users also reported problems with that card and therefore i ordered a Samsung Pro 32GB (MB-MG32DAEU), i hope this card will work without problems. Are there any long-term experiences with it? No, I have used it only for an hour or two - without any problems. Here are its (Samsung MB-MG32D...
by Sleep Mode zZ
Sun Feb 22, 2015 7:36 pm
Forum: Python
Topic: A better way?
Replies: 4
Views: 867

Re: A better way?

I'm not familiar with the libraries that you use, but I would guess that you won't save any memory by putting them on one line. It depends on how Python releases resources. You could make a test program to find out. Clarity of the code is important also, and putting it all on one line would certainl...
by Sleep Mode zZ
Sun Feb 22, 2015 6:09 am
Forum: Python
Topic: Tkinter Issue
Replies: 13
Views: 2247

Re: Tkinter Issue

One way would be to use a global variable. Set the variable's value in the skip_input function, so when the execution returns to the guest_book function, you can check the value and act accordingly. If the variable is True: return. The return statement in a function returns execution to the point wh...
by Sleep Mode zZ
Sun Feb 22, 2015 1:59 am
Forum: Python
Topic: Raspberry pi 2 - can't time.sleep() for a millisecond
Replies: 2
Views: 3922

Re: Raspberry pi 2 - can't time.sleep() for a millisecond

I tried your example on my Pi (1). The result was 1.12 and something. So, the problem must be in the Pi 2 and not in Python or Linux in general. Edit: There was a bug that is causing this: http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=98367&start=125#p684221 Edit_2: Should be fixed already....
by Sleep Mode zZ
Sat Feb 21, 2015 10:30 pm
Forum: Python
Topic: Tkinter Issue
Replies: 13
Views: 2247

Re: Tkinter Issue

I don't know anything about tkinter but it seems that your code is different in the case of the 'master' and the 'parent'. Both seems to be similar objects and you use them in a similar way. So, maybe, it makes sense to handle the object that do not behave like you want similarly to the object that ...
by Sleep Mode zZ
Sat Feb 21, 2015 9:13 pm
Forum: Bare metal, Assembly language
Topic: BCM 2836 and the RPi 2 ?
Replies: 95
Views: 32620

Re: BCM 2836 and the RPi 2 ?

And yet they're still in business, 10 years on. Seems like a joke to compare Smart Projects Snc with Broadcom and suggest that what works for the first must work for the latter. In 2009 Smart Projects Snc employed two persons, who described the monetary compensation they got for the time they used ...
by Sleep Mode zZ
Sat Feb 21, 2015 4:30 pm
Forum: Python
Topic: Could somebody help a Python amateur out here, please?
Replies: 9
Views: 2105

Re: Could somebody help a Python amateur out here, please?

Your code example in the second code box ran fine on my computer. It used spaces for indentation. It seems that you now are using both spaces and tabs for indentation, and Python wants you to choose one or another and use it consistently. There might be tools for fixing these problems but your code ...
by Sleep Mode zZ
Sat Feb 21, 2015 4:04 pm
Forum: Python
Topic: Could somebody help a Python amateur out here, please?
Replies: 9
Views: 2105

Re: Could somebody help a Python amateur out here, please?

The code in your second code box runs fine in Python 3 but gives the error in Python 2. The syntax used in the print statement must be something that is not supported by Python 2.

Edit: To run it with Python 3, type:

Code: Select all

python3 factors.py
by Sleep Mode zZ
Thu Feb 19, 2015 6:20 pm
Forum: General programming discussion
Topic: Pygame fps speed.
Replies: 7
Views: 3547

Re: Pygame fps speed.

Solarwolf by Pete Shinners is often presented as an advanced example of what is possible to do with Pygame. (Pete Shinners started the Pygame project years ago.) It is available on the Pi. I just tried it on a Pi 2 and it ran fine*. I don't think that it can use more than 1 core so it should run dec...
by Sleep Mode zZ
Thu Feb 19, 2015 6:01 pm
Forum: General programming discussion
Topic: Pygame fps speed.
Replies: 7
Views: 3547

Re: Pygame fps speed.

Updating only some parts means that instead of using pygame.display.flip() you use pygame.display.update() and give as an argument a list of rectangles. Only the screen inside the rectangles will be updated and not the whole screen. It can be a bit complicated but if the area is significantly less t...
by Sleep Mode zZ
Thu Feb 19, 2015 4:16 pm
Forum: General programming discussion
Topic: Pygame fps speed.
Replies: 7
Views: 3547

Re: Pygame fps speed.

The newbie guide mentions a second possible issue. Images used for sprites might have to be converted after they are loaded. Otherwise blitting can be unnecessarily expensive. instead of: surface = pygame.image.load('foo.png') use: surface = pygame.image.load('foo.png').convert() http://www.pygame.o...
by Sleep Mode zZ
Thu Feb 19, 2015 4:03 pm
Forum: General programming discussion
Topic: Pygame fps speed.
Replies: 7
Views: 3547

Re: Pygame fps speed.

Hi, Hope this make sense, I'm new and I'm trying to learn python with the Raspberry Pi, via pygame so I've written a Tetris game. I've got the basic game running, but I have a issue with the game performance in the later stages of the game. I using a 2D array(16*10), with a number inside to represe...
by Sleep Mode zZ
Thu Feb 19, 2015 2:40 pm
Forum: General discussion
Topic: Windows 10 commercial usage license
Replies: 15
Views: 5241

Re: Windows 10 commercial usage license

There may not even be a display mode. According to Eben, there should be. “It is a headed device, HDMI primarily at the moment but then LCD panels in due course.” Not a full desktop though. http://www.theregister.co.uk/2015/02/02/windows_10_raspberry_pi_2_eben_upton_interview/ I can't see that in t...
by Sleep Mode zZ
Thu Feb 19, 2015 2:27 pm
Forum: General discussion
Topic: Windows 10 commercial usage license
Replies: 15
Views: 5241

Re: Windows 10 commercial usage license

Ravenous wrote: There may not even be a display mode.
According to Eben, there should be. “It is a headed device, HDMI primarily at the moment but then LCD panels in due course.” Not a full desktop though.

http://www.theregister.co.uk/2015/02/02 ... interview/
by Sleep Mode zZ
Thu Feb 19, 2015 12:50 pm
Forum: Python
Topic: keyboard recognition by pygame
Replies: 16
Views: 3194

Re: keyboard recognition by pygame

One old post of mine: Some posts indicate that the keyboard events won't work with the dummy driver: http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=46096#p363390 http://www.raspberrypi.org/forums/viewtopic.php?t=45498&p=359897 http://www.raspberrypi.org/forums/viewtopic.php?f=32&t=67218#p491...
by Sleep Mode zZ
Mon Feb 16, 2015 6:00 pm
Forum: Beginners
Topic: What is Raspbian's default graphic desktop? Is it openbox?
Replies: 5
Views: 3947

Re: What is Raspbian's default graphic desktop? Is it openbo

If you have Raspbian, it comes with LXDE installed and configured. With other distributions the situation is similar: The choice of a desktop environment is so much a defining feature of the distribution that if you decided to go with the distribution, you will know what is the default DE. If you in...

Go to advanced search