Overclocking gone wrong

Brief description is that I run raspi-config and change the overclocking for something more fast. The choice I selected was not the right one and I end up with a black screen for an OS.

The solution: modify the config.txt file that is on the boot partition, this partition can be easily access via widows and edited with any text editor. The thing that you must edit is anything that has to say something about the overclocking.

And that is all.

C# using the camera and storing it in a folder

Actually, this part of the post as most of my posts are just storing links and making comments for a future development of the real post…. Yeah, twitter and G+ are not receiving my stuff anymore, they say they are social media, no storage for links….so, here come some links for this Camera and storage program.

BTW, this is temporal, unless I die or I never find a real answer, usually happens the second one.




Enlace 1

Basic description about the GUI for the camera, it is the first program to make in order to understand how is going to work.

Enlace 2

At this point, I’ve not read it in all, but it appears to say something about the basic, the video and the storage, but it doesn’t say about how we should really store the data.

Enlace 3

This link is about auto uploading the photos taken.

Enlace 4

In this one we see how the files can be retrieved with ease.

Enlace 5

The best tutorial, actually, this is THE tutorial. I hope to see more about this author.

Enlace 6

Well this one and the next 3 are about storage, just storage. We need time to see what is all about, so I’m just storing for now.

Enlace 7


Enlace 8


Enlace 9

Recollection of several projects of UWP

Enlace 10

With this link we can save with a file picket

Enlace 11

With this we do it without a new interface asking shit about where to save it.





<Grid Background=”{ThemeResource ApplicationPageBackgroundThemeBrush}”>

<Button Name=”Capture” Content=”Capture” HorizontalAlignment=”Left” Margin=”151,300,0,0″ VerticalAlignment=”Top” Height=”81″ Width=”159″ Click=”Capture_Click”/>


<Image Name=”image” HorizontalAlignment=”Left” Height=”503″ Margin=”523,106,0,0″ VerticalAlignment=”Top” Width=”634″/>


<Button x:Name=”Save” Content=”Save” HorizontalAlignment=”Left” Margin=”151,477,0,0″ VerticalAlignment=”Top” Height=”81″ Width=”159″ Click=”Save_Click”/>






MainPage : Page


StorageFile sf;

IRandomAccessStream rs;


public MainPage()






void Capture_Click(object sender, RoutedEventArgs e)



// Using the CameraCaptureUI object to invoke webcam and capture the image.

CameraCaptureUI cc = new

cc.PhotoSettings.Format = CameraCaptureUIPhotoFormat.Jpeg; // Added support for Jpeg format, you can use any as you like.

cc.PhotoSettings.CroppedAspectRatio = new
Size(3, 4);

cc.PhotoSettings.MaxResolution = CameraCaptureUIMaxPhotoResolution.HighestAvailable;


// saving captured file in the StorageFile object, so that it can be later used to save the file in the specified location.

sf = await cc.CaptureFileAsync(CameraCaptureUIMode.Photo);

if (sf != null)


BitmapImage bmp = new

rs = await sf.OpenAsync(FileAccessMode.Read);


image.Source = bmp;




void Save_Click(object sender, RoutedEventArgs e)


// Adding try catch block in case of occurence of an exception



// Creating object of FileSavePicker and adding few values to the properties of the object.

FileSavePicker fs = new

fs.FileTypeChoices.Add(“Image”, new
List<string>() { “.jpeg” });

fs.DefaultFileExtension = “.jpeg”;

fs.SuggestedFileName = “Image” + DateTime.Today.ToString();

fs.SuggestedStartLocation = PickerLocationId.PicturesLibrary;


// Using storagefile object defined earlier in above method to save the file using filesavepicker.

fs.SuggestedSaveFile = sf;


// Saving the file

// var s = await fs.PickSaveFileAsync();


StorageFile mediafile = await Windows.Storage.KnownFolders.PicturesLibrary.CreateFileAsync(“fail.jpg”, Windows.Storage.CreationCollisionOption.ReplaceExisting);



//if (s != null)


using (var dataReader = new


await dataReader.LoadAsync((uint)rs.Size);

byte[] buffer = new


FileIO.WriteBytesAsync(mediafile, buffer);




catch (Exception ex)


var messageDialog = new
MessageDialog(“Something went wrong.”);

await messageDialog.ShowAsync();





SQL Server and Python (from a RaspBerry PI)


The version of the OS of the Raspberry for this particular case is Raspbian Jessi, but it appears to work with the NOOBS version. Also, this tutorial is taken from tutorials of another UNIX based OS, like Mac and another versions of Linux. So, if you can search for the equivalents of the modules or services on your OS version, then, I think it may work well.

First we need to set something, I really (at this point) don’t understand the real interaction between all the modules, but I can make some graphic explanations on how the connections are working, and what type of data it must contain.

Python <—–> pyodbc<—->Driver<—->MS SQL

The Driver is actually made of two parts, UnixODBC and the TDS driver, but for show we encapsulate it in a single package.

The unixODBC is like a service in what we make references. Is a file that we edit in order to make the reference in whatever Plugin or language we are using, usually the plugins make reference to this file. If you don’t make a good reference, they are going to be throwing errors like ‘Driver not found’.

TDS is the driver witch we make reference to in the unixODBC file. This driver allow us to communicate to the MS SQL databases. This is the software that makes the connection, so, if you don’t have this is not going to work. If you don’t configure this software, it’s going to make a mess too, and is going to say something about ‘Can’t get access’ or ‘Can’t get connection’, this two problems are way too common if is not installed the driver or configured correctly.

Installation and configuration

As a summary of the previous section. We need at least 3 things, a module that can talk to MSSQL (Microsoft SQL), a local module in with witch we are making references unixODBC, and the plugin of our language that is calling the local module that make the link to MS. In this case we are using Python and pyodcb.

Installing pyodbc

There are two ways of doing this, we can either use pip to install it, or we can go directly to apt-get install or whatever command your version of linux uses to install repositories.

sudo apt-get install python-pyodbc


pip install pyodbc

once installed we can check if is installed by writing our first part of the program.

import pyodbc

We save the file, and on the terminal we run python Conection.py

It should not give us any error, if some error appears…well google it or ask for help in here.




JSON on Windows Phone

Well, I’m woking now on Windows phone, and the first thing that I’ve found hard is the JSON….

This is a step by step of how to mannage and use this kind of data.

Reading a stream

Creating classes

To write…..

First we have to read the stream


In this link it’s explained of how to do it..

we also need to add the next lines to our project

using System.Net.Http;
using System.Diagnostics;



I don’t have a response of how can I delete this trojan JET. So this is what I’m doing till I find out.


Actualizacion 30/10/2014

I’ve found a program called “Autoruns” that shows me the full list of executables on my computer. This should work for now.



I need to tipe this for the future me:

Future me, aparently the virus has changed his way to operate, till know we know this:

Create a folder named $Recycle.bin and one named System Volume Information, this two folders have something to be with the desktop.ini file that appers in almost all my folders…. once the main desktop.ini file was removed from privilegies  the other files come to apper in a globlal search in the C folder.

Till now I’m analazyng the data of the main desktop.ini.

After the complete defeat of this virus I tried to optimize my computer, because was running low. Withe the next 3 links I’ve got a faster computer




Maybe une day I will destroy that virus. But, till now he defeat me u.u

The next is to search in the regedit and in the services.msc for things that doesn’t suppose to be there.

The computer is running faster once I deactivated some programs of intel and icon trays in the services.msc

The name of the virus is e621ca05.exe, and creates a folder named $Recycler.bin, not $Recycle.bin