Posts Tagged With ‘Linux&8217

Go Language on OpenWRT – Carambola2

I’m playing with interesting go language which is built for system programming however, golang has been using to solve variety problems. For me, the most important aspect of the language is it is compiled and cross platform . Its simple, easy to learn and solves resource problems efficiently.

For test purposes, I wrote a simple hello world application, which dumps  struct as hex string on Carambola2 (MIP32 arch.). To be able compile go source code on OpenWRT gccgo is required. There are OpenWRT repos adds go lang support to gcc for MIPS32 architecture.

If target environment doesn’t contain go library ( , source code should be compiled with “-static-libgo” flag. In my case;

mips-openwrt-linux-gccgo -g -static-libgo hello.go -o hello2

Output ;

root@Carambola2:~# ls -lah
drwxr-xr-x 1 root root 0 Aug 18 18:09 .
drwxr-xr-x 1 root root 0 Aug 18 17:58 ..
-rwxr-xr-x 1 root root 16.5K Aug 18 2016 hello
-rwxr-xr-x 1 root root 2.8M Aug 18 18:09 hello2
root@Carambola2:~# ./hello2
00000000 01 02 |..|



package main

import (

type Data struct {
       X uint8
       y uint8

func main() {
       var buf bytes.Buffer
       dt := Data{1, 2}

       binary.Write(&buf, binary.BigEndian, dt)


Also see this blog post further information.


Is Microsoft Still Evil?

Microsoft is known as being an evil company. Isn’t it? During the past few years Microsoft used to be dominant in the market with its products and services like; operation systems, office programs and development tools by following unethical methods. So, something happened and all went wrong for them.

In my opinion, change was technology itself nothing else. Linux, Web, Web 2.0, mobile devices, platform independent tools, Web 3.0 … etc. Microsoft has followed same strategies over the years and succeeded but it didn’t work for this time. Microsoft may be an evil or not but, now, they are not acting like an evil.

There has been significant changes at Microsoft’s product strategy, like; considering other browsers, cross platform products (silverlight), contributing to open source ( MVC) …etc. They are not ignoring now, they are considering options different than Microsoft.

I’m not sure about Microsoft’s being evil or good but I’m sure one thing; they imitate not innovate. That’s why I’m not a Microsoft guy.

A Real Django Application On A Shared Hosting

I got working a simple django application on a shared hosting before but never tried a real application till to night. I was developing a project for fun nothing much and it is about to finish and ready for a real time test. After struggling with .haccess mod_rewrite issues1 (mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use ‘RewriteOptions MaxRedirects’ to increase the limit if neccessary) my application is deployed and first http request is called. No, as you guess it didn’t work. My hosting provider uses an old version of mysql driver for python which is MySQLdb-1.2.0 but django 1.0 requires MySQLdb-1.2.1p2 or newer. So, planning to email and ask them if it is possible to upgrade driver if not I’m going to use my friends home servers to host it.

1 To fix this issue add your domain name to rewrite condition like
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST}
RewriteCond %{REQUEST_URI} !
RewriteRule ^(.*)$ cgi/yoursite.cgi/$1 [QSA,L]

Linux vs. Windows Conflict

Since we moved to our new office with new company and additional staff, we’ve switched our platform from JEE on Linux to on Windows because D&D is easy to use which I completely disagree. Today one of the developers in the office noticed that our .net development server is down. It is used for development and test purposes (manual tests). It is crashed despite having better hardware when compared our old servers which is not a server (we build it with oem products) and it is running Fedora and still up and serves well. Windows box is broken, having power issues but Linux box is still up for 408 days. What a conflict!!! Linux box with poor hardware having better performance and robust when compared better windows box with better hardware (designed for servers).

Man, .net really sucks … I already know it but .Net developers prove it.

Android is Getting Polular

Motorola moving from linux based mobile phone stack to Google’s Android. It seems there would be big compitition between iPhone & Android in the future. Today,  I think iPhone ahead of others