Sevki

Setting GCC version to 4.6.x for compiling C++11 on Lion

No Comment Retweeted 2 times 0 people liked this
posted @ March 7th, 2012 by Sevki under Programming

Firstly head over to MacPorts and download the .dmg that corresponds to your system.

After installing MacPorts fire up a terminal and if you haven’t installed emacs earlier doing a

$ sudo port install gcc46

this will take about 11 hours or some ridiculous amount like that…

When gcc46 is installed and compiled head over to /usr/bin/ and remove the gcc, c++, g++ and cc links, i cannot stress enough how important it is for you to take backups of these files…

$ sudo rm gcc c++ g++ cc
$ sudo ln -s /opt/local/bin/gcc-mp-4.6 cc
$ sudo ln -s /opt/local/bin/gcc-mp-4.6 gcc
$ sudo ln -s /opt/local/bin/g++-mp-4.6 g++
$ sudo ln -s /opt/local/bin/c++-mp-4.6 c++

and a final

$ gcc --version

will tell us that everything is in fact going good with a

gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

assuming that you have followed the steps correctly

Sevki

Company-mode on OS X

No Comment Retweeted 3 times 0 people liked this
posted @ February 26th, 2012 by Sevki under Programming

Company-mode on emacs is a helpful mode that does auto completion for c, c++ and so-on. It works with CEDET Semantic backend. It works with others like PySmell or Xcode, however we will use the CEDET’s Semantic.

Assuming that you have emacs installed, I will move on to installing CEDET.

head over to MacPorts and download the .dmg that corresponds to your system.

After installing macports fire up a terminal and if you haven’t installed emacs earlier doing a

$ sudo port install emacs22

if you haven’t done have wget installed do so by

$ sudo port install wget

now its time to tell ports to download and install cedet

$ sudo port install cedet

moving right along to the init (aka ~/.emacs) file it should be wire these up

(add-to-list 'load-path "/opt/local/share/emacs/23.4/lisp/cedet")
(load "cedet")

which will load the CEDET extension…
navigate to the ~/.emacs.d folder where we will run

$ wget http://www.emacswiki.org/emacs/download/init-company-mode.el

if you haven’t installed wget, just download the file and place it in ~/.emacs.d/
go back to editing the init file and stick this:

(load "~/.emacs.d/init-company-mode.el")
(require 'init-company-mode)
(add-to-list 'load-path "~/path/to/company")
(autoload 'company-mode "company" nil t)

and bobs your uncle…

Peace love and good happiness stuff…

Sevki

The iPad app to have for devs

No Comment Retweeted 2 times 0 people liked this
posted @ October 27th, 2011 by Sevki under General, Programming

A while back i posted this touch studio video which is now called touch develop (I’m assuming it has something to do with marketing people getting involved) and said that it would be the killer app for the windows phone platform which obviously it wasn’t, i have been using a windows phone for quite a while now and it not that app so that should say something. but today i have found a app on hacker news which allows you to program things on your iPad here is a short video of it… Continue reading

Sevki

If Microsoft had bought HP’s pc business

No Comment Retweeted 2 times 0 people liked this
posted @ August 23rd, 2011 by Sevki under General

Here are some quotes from the Windows Partner Ecosystem in an alternate universe

“We welcome today’s news, which demonstrates Microsoft’s deep commitment to defending Windows, its partners, and the ecosystem.”

– J.K. Shin
President, Samsung

“I welcome Microsoft‘s commitment to defending Windows and its partners.”

– Bert Nordberg
President & CEO, Sony

“We welcome the news of today‘s acquisition, which demonstrates that Microsoft is deeply committed to defending Windows, its partners, and the entire ecosystem.”

– Michael Dell
CEO, Dell.

“We welcome Microsoft‘s commitment to defending Windows and its partners.”

– Jong-Seok Park, Ph.D
President & CEO, LG Electronics Mobile Communications Company

“We are positive towards Microsoft’s continued commitment and investment in an open Windows for the benefit of all players in the ecosystem.”

– Weili Dai
Co-founder, Marvell Technology Group

“Best Buy has worked closely with both Microsoft and Motorola to bring great solutions to our customers. Now, with today’s news, we are excited to see what we can do together to serve consumers. Both companies have been tremendous partners to Best Buy and we expect that connection to get even stronger in the future.”

– Brian J. Dunn
CEO, Best Buy

“We are pleased to know that Microsoft is making a move to strengthen Microsoft’s (and thereby Windows’s) patent portfolio. ZTE welcomes this step from Microsoft to protect the value of Windows ecosystem and the benefit of Windows partners.”

– He Shiyou
EVP of ZTE Corporation and Board Directors, President of ZTE Mobile Devices Division

“ASUS is a strong supporter of Windows and we firmly believe in Microsoft’s recent strategy. Their continued investment in innovation allows leading companies like ASUS to deliver superior user experiences.”

– Jonney Shih
CEO, ASUS

“We are supportive of Microsoft’s strategy to continue investing in and innovating with Windows.”

– George He
SVP & CTO, Lenovo

“Acer is a leading Windows partner and we agree with Microsoft’s strategy to ensure Windows’s continued growth.”

– J.T. Wang
CEO, Acer

Sevki

Touch Studio: Killer app for WP7

No Comment Retweeted 3 times 0 people liked this
posted @ April 12th, 2011 by Sevki under Programming

As a developer how would you like to have Visual Studio on your phone? Intrigued?

Well we are not quite there yet, but Nikolai Tillmann and Michal Moskal, from the Research in Software Engineering group (RiSE) at Microsoft Research made a great app called Touch Studio.

TouchStudio is a radically new Windows Phone software development environment, bringing the excitement of the first programmable personal computers to the phone. Now you can write code for your phone on your phone!

This is hands down the most impressive mobile application I have ever seen, not in terms of coding skills, but the ammount of effort and tought that has been put in to the usability and UX of this is very visible. Kudos to the guys who did this app, very nicely done. Continue reading

Sevki

Learn Ruby On Rails

No Comment Retweeted 2 times 0 people liked this
posted @ January 5th, 2011 by Sevki under Programming

I was planning to learn ruby on rails for a long time and given that I have some experience with the MVC arcitechture I thought I wouldn’t have any problems learning it and hell maybe do a couple of webcasts about it… but then I found out about this site called rails for zombies, which is a fun and interactive way of teaching rails to people.

You could argue about what development platform rocks your world, ASP.net or Rails and I am very much so a .net person, but there is no question that there is a very cool community that has gathered around the rails platform. So go ahead and try ruby and ruby on rails and see what these kids have to offer… Continue reading