| Bottom View | Top View |
|---|---|
|
|
Friday, November 7, 2014
ESP8266 possible breadboard interface
Thursday, October 2, 2014
Adding .gitignore file after first repository commit
git rm --cached `git ls-files -i --exclude-from=.gitignore`
git commit -m 'Removed all files that are in the .gitignore'
git push origin master
Thursday, July 17, 2014
Note to future self
Today is a regular day of July 2014 with the exception that I am writing a few lines for my future self.
These days the technology is moving very fast. Everyone has or want what is called a smart phone. The market is dominated by Apple iPhone and Google Android. In a not so close third place there is Microsoft with the windows phone.
Apart of phones home electronics is getting everyday more strong.
Just wanted to tell myself that no matter how cool technology may be there are other things more important. As am engineer we need to understand that at the other end of any software or hardware there is a person. Is on those humans that we need to think.
When you read this, Samsung may not have any galaxy phone but there will be people and your family will be at your side.
Keep what is worth, there is no undo checkout for missing life moments. Today I am a happy person and for sure in the future will still be.
The crime is worst every day like the economy. We are holding up for better days to come. Always happy and together with the family.
Tuesday, October 1, 2013
Today I got a Beaglebone Black
Update:
Few days with the Beaglebone now. For the wifi tried successfully with debian from the sdcard however not from the eMMC with the Angstrom. On Angstrom I manage to get the usb wifi recognized but not associated with my network. Still not giving up, tried with two different usb dongles. Will continue banging my head with the wifi until success is achieved.
Update:
Finally make it work the wifi on the beaglebone black on Argnstrom. Used the tutorial from adafruit http://learn.adafruit.com/beaglebone/wifi with a modification for my WPA2 network. Just put the Security on the wifi.config as wpa like shown bellow.
[service_home]
Type = wifi
Name = ssid
Security = wpa
Passphrase = my_password
Friday, July 19, 2013
Object seriliazitation with Type attributes in the nodes.
What I needed to do:
I got a service from a vendor. This service is an XML post to a PHP page (btw, I hate these). This vendor provided me with a sample XML that would be the package sent. I need to populate every node with my data and make the call. I would much rather have an object to do this, so I created one. I serialized my object and prepared for the posing of it. When comparing my result with the provided XML I was missing attributes on my object so I started looking on how to add them.
My vendor provided XML was similar to this:
Namespaces:
You need these.
using System.Xml.Serialization; using System.Xml;
//This is like so to remove the System. definition from the Type
The serializer:
If you do not have it, here is how to serialize it.
XmlSerializerNamespaces xns = new XmlSerializerNamespaces(); xns.Add(string.Empty, string.Empty);
//xml format settings XmlWriterSettings xmlSettings = new XmlWriterSettings(); xmlSettings.Indent = true; xmlSettings.NewLineOnAttributes = false; xmlSettings.NamespaceHandling = NamespaceHandling.OmitDuplicates; XmlSerializer mySerializer = new XmlSerializer(typeof(user)); StringWriter ms = new StringWriter(); XmlWriter xw = XmlWriter.Create(ms, xmlSettings); mySerializer.Serialize(xw, test, xns); string serializedString = ms.ToString(); ms.Close();
Would there be other ways of doing this, maybe but I could not find it. Please let me know if you have any improvements.



