Go to advanced search

by schollz
Thu Feb 18, 2016 1:25 pm
Forum: General programming discussion
Topic: Discussion: optimizing code for web apps?
Replies: 2
Views: 470

Re: Discussion: optimizing code for web apps?

Awesome! This is great, thanks
r3d4 wrote:
schollz wrote:CLI utility alternatives
..
grep for searching, agrep for fuzzy searching
see also : http://beyondgrep.com/more-tools/
by schollz
Thu Feb 18, 2016 11:32 am
Forum: General programming discussion
Topic: Discussion: optimizing code for web apps?
Replies: 2
Views: 470

Discussion: optimizing code for web apps?

I like to write web apps and host them myself on the pi. I'm no code ninja. I write in Python which is a great language, but not the fastest or memory efficient. To overcome liabilities I've found some tricks. I'm sure these are probably obvious to most people so I'd love thoughts about other ideas ...
by schollz
Thu Feb 18, 2016 11:03 am
Forum: General programming discussion
Topic: Bash script for running multiple python scripts
Replies: 1
Views: 942

Re: Bash script for running multiple python scripts

The following should work for you:

Code: Select all

#!/bin/bash

python 1.py
python 2.py
or

Code: Select all

#!/bin/bash

python 1.py && python 2.py
Make sure to make the bash file executable by running

Code: Select all

chmod +x mybashfile
by schollz
Fri Dec 18, 2015 12:49 pm
Forum: Graphics, sound and multimedia
Topic: Playing music in sync on multiple Pis
Replies: 0
Views: 1027

Playing music in sync on multiple Pis

I made a simple Python script to allow multiple Raspberry Pi's to play music in sync (ideal for cheap Wifi-based multi-room audio). I've tested it on Raspberry B and B+, and it works pretty well (sometimes the sound will cut out if they get out of sync). The tricky part in synchronization was accoun...
by schollz
Fri Nov 20, 2015 5:44 pm
Forum: Automation, sensing and robotics
Topic: Open-source internal positioning system for tracking indoors
Replies: 5
Views: 7274

Re: Open-source internal positioning system for tracking ind

This will definitely work with the Raspberry Pi as the client (using our demo server), or you can run it as the server AND client. You can simply run the accompanying script: https://github.com/schollz/find/blob/master/computer/fingerprinting.py after you pick a group name and use the demo server ht...
by schollz
Thu Nov 19, 2015 10:11 pm
Forum: Automation, sensing and robotics
Topic: Open-source internal positioning system for tracking indoors
Replies: 5
Views: 7274

Open-source internal positioning system for tracking indoors

We have developed a new, open-source framework for internal positioning. https://github.com/schollz/find What is internal positioning? It's the ability to monitor your location within a home/office/business to resolution within a single room (or better). Typically that is done using motion sensors, ...
by schollz
Sat Apr 25, 2015 9:45 pm
Forum: Other projects
Topic: 1st completed app - music recommendation + playlists
Replies: 0
Views: 293

1st completed app - music recommendation + playlists

So I thought I would share my first completed app: a music recommendation service that can also generated playlists of the recommendations - http://www.musicsuggestions.ninja/ . It was long and arduous road to get to the current state, so please let me know if you have ways to improve it. The basic ...
by schollz
Thu Feb 26, 2015 1:18 pm
Forum: Troubleshooting
Topic: Mochad problem - libusb_open_device_with_vid_pid failed
Replies: 9
Views: 5638

Re: Mochad problem - libusb_open_device_with_vid_pid failed

Solved! Is the Mochad application (service?) running as "root" ? Turns out, it works if I started in manually using: sudo mochad -d Now it activates and is working. Found this: http://sourceforge.net/p/mochad/discussion/1320003/thread/1c193f01/ which was helpful. I never had to start mochad manually...
by schollz
Thu Feb 26, 2015 1:01 pm
Forum: Troubleshooting
Topic: Mochad problem - libusb_open_device_with_vid_pid failed
Replies: 9
Views: 5638

Re: Mochad problem - libusb_open_device_with_vid_pid failed

Thanks for the quick reply! I'm still stuck... $ lsusb Bus 001 Device 009: ID 0bc7:0002 X10 Wireless Technology, Inc. Firecracker Interface ( ACPI-compliant) Bus 001 Device 004: ID 0781:5575 SanDisk Corp. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethern et Adapt...
by schollz
Thu Feb 26, 2015 12:18 pm
Forum: Troubleshooting
Topic: Mochad problem - libusb_open_device_with_vid_pid failed
Replies: 9
Views: 5638

Mochad problem - libusb_open_device_with_vid_pid failed

I've been using the CM19A - http://www.thex10shop.com/product/x10-usb-wireless-transceiver-computer-interface-cm19a on my Raspberry Pi for over a year, and had no problems. Just today it stopped working, suddenly. When I run mochad I get $ mochad Message from syslogd@raspberrypi at Feb 26 07:14:39 ....
by schollz
Tue May 13, 2014 3:13 am
Forum: Automation, sensing and robotics
Topic: Whats the best low pressure solenoid valve for fluid control
Replies: 3
Views: 2312

Re: Whats the best low pressure solenoid valve for fluid con

Solved. I used a 12 3/4" Motorized Ball Valve:
http://www.ebay.com/itm/121055299303?ss ... 1439.l2649
with a relay and it works great!
by schollz
Thu May 08, 2014 1:13 am
Forum: Automation, sensing and robotics
Topic: Whats the best low pressure solenoid valve for fluid control
Replies: 3
Views: 2312

Whats the best low pressure solenoid valve for fluid control

I have a 5 gallon bucket of water suspended 5 feet in the air and I want to use an RPi to control the water coming out of a hole in the bottom of the bucket (it goes to a drip irrigation system). This is about 2 psi of pressure. I've tried two kinds of solenoid valves attached to the bottom of the b...
by schollz
Mon Mar 17, 2014 2:13 am
Forum: Automation, sensing and robotics
Topic: raspberry-pi AI chatbot
Replies: 5
Views: 9354

Re: raspberry-pi AI chatbot

There is a great Chatbot API for Python made by Pierre Belanger: https://code.google.com/p/chatter-bot-api/ I would also suggest looking into combining APIs from Wikipedia and Wolfram to make your chatter AI "smarter". Check out http://www.pythonapi.com/ for these APIs and other great ones. I used t...
by schollz
Fri Mar 07, 2014 1:52 pm
Forum: Other projects
Topic: Is there a good online repository of Eagle board schematics?
Replies: 1
Views: 608

Is there a good online repository of Eagle board schematics?

I know lots of people have designed their own circuit boards and printed them via a DIY method. I'm wondering if there is a good online repository where people like to submit their designs (i.e. the Eagle Board and Schematic files)? I know that there is one at the Eagle website: http://www.cadsoftus...
by schollz
Thu Mar 06, 2014 12:25 am
Forum: Wolfram Language
Topic: How do I use graphics in Wolfram?
Replies: 2
Views: 12666

Re: How do I use graphics in Wolfram?

Thanks, that's the trick! I ran "mathematica" from the console and it loads up the front-end. Just so people know, I tried some of these commands from Stephen Wolfram's video: http://www.wimp.com/programminglanguage/ It works, but it is very, very slow. (And I didn't get some things to work in any a...
by schollz
Wed Mar 05, 2014 1:07 pm
Forum: Wolfram Language
Topic: How do I use graphics in Wolfram?
Replies: 2
Views: 12666

How do I use graphics in Wolfram?

When I open wolfram (double clicking on "Wolfram") it opens up in xterm so that if I plot something I can't get a graphics window to come up: In[1] := Plot[Sin[x],{x,-2,2}] Out[1]= -Graphics- If I try to do other things that involve graphics (like the Facebook graph) it says there is no front-end. H...
by schollz
Mon Mar 03, 2014 2:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Where to get mission control style buttons?
Replies: 5
Views: 1010

Re: Where to get mission control style buttons?

Sorry to answer my own question but you can find the light-up buttons on Digi-key to by filtering "illuminating buttons" with nominal operating voltages of 1-6V. Here it is, sorted by price: http://www.digikey.com/product-search/en?FV=fff40011%2Cfff80061%2C8300018%2C830001a%2C830001b%2C830001c%2C830...
by schollz
Mon Mar 03, 2014 1:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Where to get mission control style buttons?
Replies: 5
Views: 1010

Where to get mission control style buttons?

I'm sure many have seen this, but if you haven't check out this fantastic mission control setup: http://makezine.com/video/making-fun-mission-control-desk/ . Does anyone know where one can get similar buttons at cheap prices? It's maybe possible to find the covered toggle-switches in thrown away tra...
by schollz
Thu Feb 13, 2014 4:31 pm
Forum: Python
Topic: Raspberry Pi Artificial Intelligence - Life Assistant
Replies: 8
Views: 25251

Re: Raspberry Pi Artificial Intelligence - Life Assistant

voice recognition is a problem. It has improved but some of the problems I have seen are: Me: Turn on south lights It: Tossed salad, light? Me: You stink It: Yellow sInk? Yes I had the same problems with any onboard STT that I tried (pocketsphinx, etc.). However, a beautiful solution was shown by a...
by schollz
Thu Feb 13, 2014 2:01 pm
Forum: Python
Topic: Raspberry Pi Artificial Intelligence - Life Assistant
Replies: 8
Views: 25251

Re: Raspberry Pi Artificial Intelligence - Life Assistant

It has been a long time ambition of mine to emulate a, JARVIS like AI. That will do the following simple tasks: Answer questions such as, "how many legs does a caterpillar have." Or, "what is the weather like now?" Possible future expansion onto voice commands and x10 automated devices. The ability...

Go to advanced search