Simultaneous dasboards running on Rpi (Dashing.io)? - dashing

I have Dashing.io running on my Rpi and would like to know if it's possible to run simultaneous dashboards at same time and switch between?
Can't found any information about...
Thanks,

You could have all the dashboards in one place, but cycle through them.
https://gist.github.com/jwalton/6670630

Related

RPi Pyaudio/Portaudio + ALSA: How to select/change mux inputs

I'm working on a project that is using a Raspberry Pi with Raspbian and an SGTL5000 based sound card (FePi.) I have no problem selecting the card and getting samples in both directions - once I have configured the multiplexer to properly select line In/Out. I did this with Alsamixer. I want to automate the process so that the only step required is to run the application.
I don't see a way to do this using PyAudio/PortAudio. Is my only option the ALSA API or is there a way to do this with PyAudio (or PortAudio) that I'm not spotting?
Thanks in advance for any insight you can provide.
Oz (in DFW)
I ran into a similar problem, I wanted to automate changing mux settings but I wanted to adjust inputs not exposed by alsamixer too.
To deal with the limitations of the driver I ended up porting over the Teensy 3.x sgtl5000 control software to the pi yesterday
https://github.com/Swap-File/pi-sgtl5000
You could force feed the same commands via i2c via python.
The only downside is, once you start force feeding the sound card i2c commands, you break alsamixer (and anything else that might try to adjust it's own volume settings).

LWIP lockup on STM32

I have been having an issue in my project with LWIP. I am using a ST32F4 MCU and running with no OS. The network seems to run fine, the protocols all work, but then (usually a day or two later) the stack just stops running. It seems to happen when trying to make a new connection, but I can't confirm that because I haven't been able to locate what is causing it in the code.
Has anyone else come across this issue? I think it may be the same as this guy.
Do you call any LwIP functions from any interrupt-handlers, like UART etc?
How do you feed packets in/out of LwIP? Directly via interrupt handlers, or do you push them in from your "main-loop" ?
Lock-ups can also be signs of double free, or use-after-free of pbufs.
I also experiences that one project was unstable with wierd random locks-ups when running at the top-rated frequency of the STM32. If I clocked my STM32 at 100MHz instead of 120MHz, all my problems went away....

starting/stopping Instruments from code on iPhone (iOS)

I don't see any way to start/stop profiling in Instruments from code, which kinda kills its usefulness for me in a large number of situations.. Am I missing something? Does anyone know of a way to do this?
The fallback approach is to grab performance data on my own, without Instruments. Has anyone tried to do this before? By "performance data" I mean counts of events like cache misses, fills, missed branches, etc.
Thanks!
Update:
I looked into operating the performance monitor hw directly from code, but, unsurprisingly, it appears to be a no-go. USEREN, the "user enable register" controls access to perfmon registers but is not enabled. It might be possible to run privileged or enable user access with a jailbroken phone, but that's a lot of work for some basic profiling.. ugh.

simultaeous programs

I see that advantages or running programs simultaeously are that the user can run multiple programs and it offers better CPU usage, can any one give me an example of when it actually saves CPU time? eg busy waiting?
Not sure if I understand right, but when your emacs is waiting for you to type, you save time by scheduling another application while waiting for keyboard inputs.

How do I simulate a slow internet connection (Edge/3g) on a mac. Is there a Firefox plugin?

Exact Duplicate: https://stackoverflow.com/questions/473465/firefox-plugin-to-simulate-slow-internet-connection
How do I simulate a slow internet connection (Edge/3g) on a Mac? Is there a Firefox plugin?
On a Mac or BSD, use:
sudo ipfw pipe 1 config bw 350kbit/s plr 0.05 delay 500ms
sudo ipfw add pipe 1 dst-port http
And to reset to your initial settings:
sudo ipfw flush
Apple now have an official developer tool called Network Link Conditioner which simulates different network conditions. It has some more powerful features that alternatives like SpeedLimit and Charlie — for example it can simulate packet loss and DNS delays as well as bandwidth and latency — and it is free.
Network Link Conditioner is provided with Xcode, with is a free download but is also a very large download!
Ref: https://apple.stackexchange.com/questions/24066/how-to-simulate-slow-internet-connections-on-the-mac
SpeedLimit does the trick for me.
Charles and Fiddler are HTTP proxies that can throttle your speed, among other things. You can even tell your iPod or iPhone to use them, and capture all the traffic coming & going.
When I was evaluating how a piece of software would work with a bad cell-card connection, I wrapped some tin foil around the antenna. It sounds dumb, but it worked really well; the signal dropped down to a single bar but was not gone completely.
I also tried putting the laptop in a microwave which ended up being not nearly as effective.
Not that I know of. If you want to see how things look when they're loading you can use firebug and set breakpoints in the javascript, or breakpoints on your server. I always use this technique to see how things look when they're loading.
Another option is NetLimiter, I've heard it works but haven't tried it myself
http://www.netlimiter.com/