Author Archives: scienceasm

The Alert Tube

Originally posted on mikegwatson:
The Alert Tube is an open source information appliance that connects wirelessly to the Internet of Things in the cloud. The user interface is dead simple, it communicates data via customized colored light sequences, sounds and…

Posted in Uncategorized | Leave a comment

Raspian tips

Setup date pi@raspberrypi:~$ date Fri Jun 1 09:49:25 BST 2012 If you wish to change the date/time to June 21 13:45, you could use any of the following commands (whichever is more suitable for you) pi@raspberrypi:~$ sudo date 06211345 pi@raspberrypi:~$ … Continue reading

Posted in Uncategorized | Leave a comment

Unix useful tips

1. search specific word in all files in the system grep -lir “something”  /path/to/dir 2. find and delete specific file in system { 1. find an save paths to the text file  —–> find  ./ -name “*.exe” > filestodelete.t 2. delete … Continue reading

Posted in Unix | Leave a comment

Install python on ubuntu

1) download python stable from http://www.python.org/download/ 2) extract from archive 3) open terminal and go to extracted file directory and simply type ./configure it will configure your environment for python. 4) after configuration, type “make” on terminal and hit enter … Continue reading

Posted in Ubuntu | Tagged , | Leave a comment

How does it work in C#? – Part 1

Posted in Uncategorized | Leave a comment

C# Portable Exe File

Introduction One of the disadvantages of C# is that when you want to run it, the computer must have .NET Framework installed on it. After this article, you will be able to make it runnable from any Windows without the must of … Continue reading

Posted in C# Programming, Links | Leave a comment

Invoking WPF Control for Thread-Safe Call

if(!timerBox.CheckAccess()) {                   Dispatcher.Invoke(                                                                             DispatcherPriority.Send,(Action)delegate {    //********Your Code goes Here*********                   });                                                                                                                                                                         } ////////////////////////////////////////////////////////// //********* this mathod does not need new Thread ******** Main_grid.Dispatcher.Invoke(                                               DispatcherPriority.Background, new Action(() =>{  Main_grid.Children.Add(el);                                                                                                            }));  

Posted in Snippets, Wpf | Leave a comment