Go to advanced search

by khh
Sat Aug 04, 2012 12:24 pm
Forum: Networking and servers
Topic: Raspcontrol - A Web Control Centre for the Pi
Replies: 180
Views: 43895

Re: Raspcontrol - A Web Control Centre for the Pi

minimattapps wrote:I was hoping to just make calls via your web interface but have a native app to do it.
Data mining is of course all right, but I don't think Raspcontrol has an API for external application, so there's no guarantee your app will work with future revisions of Raspcontrol.
by khh
Tue Jul 31, 2012 10:31 pm
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2365

Re: Could someone run through this code with me?

@antiloquax: Sorry, I misunderstood you then. With your quote and the "You were right the first time", it seemed to me like that was what you were implying. Also what I said wasn't meant as criticism to the writer of the program or the MagPi, just as a tip to OP on a simple way of identifying what's...
by khh
Tue Jul 31, 2012 10:22 pm
Forum: General programming discussion
Topic: Best first language choice
Replies: 140
Views: 26900

Re: Best first language choice

jackokring wrote:More interesting, but sometimes hard to grasp languages include J, forth and VHDL.
This might be a bit nit-picky, but VHDL isn't a programming language, it's hardware descriptive language. When you "compile" VHDL you don't get a program, you get a logical circuit.
by khh
Mon Jul 30, 2012 8:45 pm
Forum: Networking and servers
Topic: php zlib compression & apache
Replies: 1
Views: 1040

Re: php zlib compression & apache

The raspberry pi has pretty limited memory, so I'm not sure if RAM cache would be a good idea. With lighttpd you configure a directory for cached compressed files. That's how I've set up mine and that seems to work fine, though it's only for static files.
by khh
Mon Jul 30, 2012 12:13 pm
Forum: General discussion
Topic: SecuriPi
Replies: 106
Views: 11528

Re: SecuriPi

Actually, your skin is salty enough that just wetting your fingers will make them more conductive. Try this. Hold the two probes of an ohm meter and check the resistance. Then wet your finger and try it again. Big difference. I know, I've done exactly that. But the resulting resistance is still to ...
by khh
Sun Jul 29, 2012 10:45 pm
Forum: General discussion
Topic: SecuriPi
Replies: 106
Views: 11528

Re: SecuriPi

It's not the voltage, it's the current flow that matters. Well.. "Voltage hurts, but current kills". If you want to very effectively kill yourself in a rapid fashion, wet your hands and grab the terminals of a 6 or 12 volt vehicle battery - I guarantee that if your fingers don't spasm off the termi...
by khh
Sun Jul 29, 2012 10:35 pm
Forum: General discussion
Topic: "Thanks" Thread
Replies: 4
Views: 608

Re: "Thanks" Thread

This is a good thread. I got my Raspberry Pi a few days ago, and it's quite an exciting little thing. I've started thinking of how to build two custom circuits to wire to it (I've even drawn up some diagrams) - with more to come I am sure. I feel really good about this, because I've been wanting to ...
by khh
Sun Jul 29, 2012 8:06 pm
Forum: Beginners
Topic: Help - for a complete, total novice
Replies: 5
Views: 1153

Re: Help - for a complete, total novice

Hi. I "stick" when trying to extract the wheezy-raspbian files. My PC simply goes into "Not Responding mode and stalls. Simple as that. Any suggestions? That's very strange. Either the download got corrupted, in which case you can download it again, or there's a bug with the windows zip extraction....
by khh
Sun Jul 29, 2012 9:15 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2365

Re: Could someone run through this code with me?

You were right this time. The first time through the loop, it takes the starting point as (82, 125). From there it draws one black square (76 x 76 pixels). Then it draws 4 white squares (each 22 x 22 pixels). The "12"s and "42"s make it draw them within the black square. So the first is offset 12 p...
by khh
Sun Jul 29, 2012 8:46 am
Forum: General discussion
Topic: The Raspberry Pi Backup Thread
Replies: 80
Views: 69908

Re: The Raspberry Pi Backup Thread

After a quick glance at the dd documentation, I can't see it guaranteed it'll fail with an exit code of 1. I'd change the last to # If command has completed successfully, delete previous backups and exit if [ $result=0 ]; then rm -f /mnt/usb/backup_*.img; mv $ofile $ofilefinal; exit 0; # Else remove...
by khh
Sat Jul 28, 2012 2:11 pm
Forum: Beginners
Topic: Raspbian Wheezy auto startx
Replies: 3
Views: 3413

Re: Raspbian Wheezy auto startx

Probably a power problem, so check that first.

If not, SSH is enabled by default on the raspbian so unless you've changed that you can get access to the shell remotely. If you're on Windows download putty to connect over SSH.
by khh
Sat Jul 28, 2012 12:09 pm
Forum: Automation, sensing and robotics
Topic: RF question
Replies: 15
Views: 3530

Re: RF question

so now my question is, how can i 'close circuit' with raspi pin ? Connect the two wires to drain and source on a MOSFET transistor, and connect the GPIO pin to gate and the GPIO ground to the drain. If it's an n-type MOSFET it'll not conduct when GPIO is high, but will conduct when GPIO is low. edi...
by khh
Sat Jul 28, 2012 11:54 am
Forum: Bare metal, Assembly language
Topic: Programming in Basic on Bare Metal Tutorial 1
Replies: 50
Views: 13737

Re: Programming in Basic on Bare Metal Tutorial 1

Actually, given enough investigation, you can tell exactly what code a compiler will produce. It is, after all, a totally deterministic computer program. Yes, you can disassemble the code the compiler produced, so in that sense you can "tell what it produced ". Most if not all c-compilers support o...
by khh
Sat Jul 28, 2012 11:32 am
Forum: Advanced users
Topic: GL over X
Replies: 3
Views: 1338

Re: GL over X

http://stackoverflow.com/questions/11334807/forwarding-accelerated-opengl-glx-via-ssh seems to be asking exactly the same question :) Note that the Raspi natively uses OpenGLES, whereas your network-connected desktop will be using OpenGL, so to do what you'd want optimally I guess you'd need the pr...
by khh
Sat Jul 28, 2012 11:28 am
Forum: Troubleshooting
Topic: HDD recovery after DD mistake
Replies: 3
Views: 1446

Re: HDD recovery after DD mistake

Try the trial version of this http://www.diskinternals.com/ntfs-recovery/ If it works, torrent or pay, depending. If you have to recover the files by themselves, rather than the partition, you should copy them to another harddrive.
by khh
Sat Jul 28, 2012 11:16 am
Forum: Off topic discussion
Topic: What are your Other Hobbies / Interests??
Replies: 72
Views: 8068

Re: What are your Other Hobbies / Interests??

Hmm, what do I do with my time? Well, I guess you could answer internet, torrented TV series, reading (mostly fantasy), gaming, programming, alcohol, drugs and studying. Pretty much in that order. I'm interested in psychology and medicine and read a bit about that on my spare time, and I study elect...
by khh
Sat Jul 28, 2012 10:44 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2365

Re: Could someone run through this code with me?

D.E.L.B. wrote:Thanks.

So what about this one?

Code: Select all

   d.rect(screen, black, (window[0], window[1], 76, 76) )
You can lookup what functions mean in the pygame reference.
This one draws a rectangle in black on surface 'screen'. The rectangle has coordinates (window[0], window[1]) and is 76x76 pixles big.
by khh
Sat Jul 28, 2012 10:22 am
Forum: Beginners
Topic: Clean installation
Replies: 2
Views: 493

Re: Clean installation

If it still boots XBMC you've either not deleted the partitions properly or you've mistakenly written the XBMC image. Probably the latter, as I don't really think you have to do the former. Try again and make doubly certain.
by khh
Sat Jul 28, 2012 10:09 am
Forum: Beginners
Topic: Help - for a complete, total novice
Replies: 5
Views: 1153

Re: Help - for a complete, total novice

Insert the SD card (looks something like this, color, logo text and numbers may differ) you're using into the SD-card reader (the slot on your computer where it fits). Windows XP should recognize it pop up an alert or something. Note what letter it has (D:\, E:\, F:\ etc), but you can otherwise igno...
by khh
Sat Jul 28, 2012 9:44 am
Forum: General discussion
Topic: An nbench challenge
Replies: 32
Views: 9966

Re: An nbench challenge

by khh
Sat Jul 28, 2012 9:03 am
Forum: Media centres
Topic: Very disappointed. Lovefilm, iPlayer, 4od etc
Replies: 16
Views: 13812

Re: Very disappointed

Ive got it hooked up to the tv fine now, managed to find all the relevant cables. what i meant was the reason for getting the pi was because it would connect to my old CRT TV when no other computer will. Well, that's something. However what I wanted to do with it on my old tv was to be able to watc...
by khh
Sat Jul 28, 2012 8:15 am
Forum: Media centres
Topic: Very disappointed. Lovefilm, iPlayer, 4od etc
Replies: 16
Views: 13812

Re: Very disappinted

Most old CRT TVs have either a Composite Video or SCART plug, both of which the Raspberry support (the latter with a converter). Otherwise there are numerous things you could have your Pi do, everything from acting as a server in your home network to controlling a robot. It's perfect for learning to...
by khh
Sat Jul 28, 2012 7:51 am
Forum: General discussion
Topic: SecuriPi
Replies: 106
Views: 11528

Re: SecuriPi

For the heartbeat solution I think I'd do something like this: Central Server: - Listen to UDP port for keep-alive - Listen to TCP port (with SSL) for association - Broadcast UPD every x seconds with updated randomly generated, time restricted string (TID) - on keep-alive, validate and update intern...
by khh
Sat Jul 28, 2012 5:31 am
Forum: Python
Topic: Could someone run through this code with me?
Replies: 23
Views: 2365

Re: Could someone run through this code with me?

See this here: for window in windows: d.rect(screen, black, (window[0], window[1], 76, 76) ) d.rect(screen, white, (window[0] + 12, window[1] + 12, 22, 22) ) #tl d.rect(screen, white, (window[0] + 42, window[1] + 12, 22, 22) ) #tr d.rect(screen, white, (window[0] + 12, window[1] + 42, 22, 22) ) #bl...
by khh
Sat Jul 28, 2012 3:19 am
Forum: Python
Topic: Python 2.7.3
Replies: 3
Views: 962

Re: Python 2.7.3

In all likelihood assignment fails. This is because the length of argv is dependant on how many arguments are defined at the command line, and touple assignment (that's the "script, first, second, third = argv" line) requires that you have an equal number of items on both sides of the '='. Thus your...

Go to advanced search