Tuesday, June 09, 2015
Use Xamarin tools for coding Android and iOS apps in C#
UserGroup.tv has lots of tech videos.
Chander had no powerpoint, just raw code.
Angularjs is having problems, so reactive is getting some traction to replace angular.
The answer is IIFE.
I tried to go to the control panel and modify the P4V installation to remove it, but windows whined about not being able to find a log file. No dice.
So I did the next best thing. I renamed the actual program from P4EXP.dll to something else in C:\Program Files\Perforce\P4EXP. My context menu now appears in under a second.
I'll let you know if this causes downstream perforce weirdness, like files with two heads or three arms.
Wednesday, May 20, 2015
I got to work early today, ready to get to work, and was greeted with this cheery note from my Windows 7 box when opening Outlook:
"The file C:\Users\username\AppData\Local\Microsoft\Outlook\username.ost is in use and cannot be accessed. Close any application that is using this file, and then try again. You might need to restart your computer."
Restarting the box did not help. I had to open the "Windows Task Manager" (Ctrl-Shift-Esc), select "Lync.exe" and kill it (you might also need to kill "Communicator", "ucmapi", or "Outlook" itself). Then Outlook was happy and I could start my day.
This morning's ambush reminds me of Cato hiding in wait for Inspector Clouseau to return so Cato can attack him, just to keep Clouseau sharp.
Friday, May 15, 2015
1. When you create your controller, set a value for it's "Request" object.
2. When retrieving an object use the TryGetContentValue() method to extract the returned value as a C# object. Notice on line 18 we free the C# object from the clutches of the evil HttpResponseMessage object.
This is the code for the api GET.
Special thanks to the folks at hilite.me for their awesome code highlighter site.
Tuesday, April 21, 2015
One of the most interesting parts was an interview with an older Soviet women. She could not understand why all the world wanted to destroy her beloved Russia which was only trying to bring a better way of life to the oppressed.
Here was a women living in the "Evil Empire", an empire that invaded countries without provocation, routinely used torture, had a vast surveillance state, had secret courts with secret trials, overthrew democratically elected governments, and was run by an elite for the elite.
Yet since she had grown up with the state education, watched the national news and was surrounded by her culture, she thought Russia was the "Good Empire".
Friday, March 13, 2015
One of the issues in starting a Mars colony that hasn't had a lot of press is this: "Can humans survive in 38% of earth's gravity?" Astronauts staying aloft in the International Space Station for extended periods have many physical issues like eye problems.
We spend a lot of time and money planning on sending people to Mars to preserve our species without thinking if humans could even survive there for a few years.
But for the long term survival on Mars, the big question is whether a human fetus can develop normally in 38% gravity to maturity. I doubt it. Many, many questions need to be answered, like "Since Martians would probably be taller with thinner bones, would the volume of marrow make the appropriate amount of blood?"
We need to fund something like the Mars Gravity Biosatellite before spending any more money on a manned trip to mars. We put mice with food and water in a 55 gallon drum, set it in low earth orbit and set the drum spinning so the mice experience .38% earth gravity. Have a live video cam to watch their progress and let's see if the mice can reproduce two generations.
This needs to be done before spending any more effort on a manned Mars expedition. I personally would rather NASA be spending our precious dollars on sending robotic space craft to all the moons in our solar system instead of a project which may be doomed from the start. (see Scotland's failed colonization of Panama for an example of spending a fortune without proper planning).
"Could not create an instance of type IAmAnInterface. Type is an interface or abstract class and cannot be instantiated. "
Fortunately Json.NET has a very easy way around this by telling it to save the type metadata in the output. To serialize the dictionary:
static readonly Object Locker = new object();
public void Save()
JsonConvert.SerializeObject(_dictionary, Formatting.Indented, new JsonSerializerSettings
TypeNameHandling = TypeNameHandling.Objects,
TypeNameAssemblyFormat = System.Runtime.Serialization.Formatters.FormatterAssemblyStyle.Simple
To bring the objects back:
public void Load()
_dictionary = JsonConvert.DeserializeObject
TypeNameHandling = TypeNameHandling.Objects
This does make the json file larger, but for us, it's well worth the price.