irom's Blog

Archive for the ‘Programming’ Category

There are proofs based on subtle and powerful Godel’s theorem that  human mind is not computer program. This is because formal and consistent systems according to Godel lead to statements which are neither provable nor disprovable by systems itself, but which are nevertheless true statements. So if human mind was acting as computer program it would contradict itself creating statements which are provable.. and not provable to be true. See below picture from Alan McKenzie page.

Is that why we stopped to work on human-computer ? This proof is 80 years old.

Read the rest of this entry »

Advertisements

Arduino is simple and cheap open hardware board. The hardware reference designs (CAD files) are available under an open-source license. The microcontroller on the board is programmed from PC connected thru USB. Arduino projects can be standalone, receive  input from  a variety of sensors and can control actuators like  lights, motors, and others.

Read the rest of this entry »

I have fun using various Cloud application providers to refresh my programming skills. It took me 15 minutes to deploy PHP script from Larry Ullman book (Chapter 9) in the Orchestra.io cloud , see result. I started from  installing Git program version control on my PC (I’m not any kind programmer or developer) which allowed to store my sample script on Git Hub repository and deliver my files (no more need for ftp;). I linked Git Hub repository to my Orchestra free application. Then modified script (great Notepead++) connection parameters to connect to right MySQL database provided by Orchestra.

Read the rest of this entry »

I was using  VBScript to automate  downloading of  web reports for a sample of servers.  I mean type of reports where server name is part of URL (‘get’ method), for example Mircosft SMS reports. The VBScript below reads server names from text file, and save SMS web report ID 200 in separate html files named after server names

Const ForWriting = 2
Const ForReading = 1
Const ReportID = “http://xxx/SMSReporting/Report.asp?ReportID=200&name=”

Read the rest of this entry »

Using Powershell and sometimes C#(CSharp) I can observe many similarities in syntax. For example look at the script displaying basic Windows OS version information. In C# (source osver.cs compiled into osver.exe):

using System;

class Program
{
public static void Main()
{
OperatingSystem osObj = System.Environment.OSVersion;
Console.WriteLine(“Platform is: {0}”, osObj.Platform);
Console.WriteLine(“Service Pack is: {0}”, osObj.ServicePack);
Console.WriteLine(“Version is: {0}”, osObj.Version);
Console.WriteLine(“VersionString is: {0}”, osObj.VersionString);
Console.WriteLine(“CLR Version is: {0}”, System.Environment.Version);
}
}

PS>csc /nologo /out:osver.exe osver.cs

PS> .\osver.exe
Platform is: Win32NT
Service Pack is: Service Pack 3
Version is: 5.1.2600.196608
VersionString is: Microsoft Windows NT 5.1.2600 Service Pack 3
CLR Version is: 2.0.50727.3615

Read the rest of this entry »


Twitter Updates

Blogs I Follow