Default Green Orange
Marcus Follrud
Wish I had a slogan
RSS
  • Home Page Home
  • Cruel Chipmunk Productions
  • Om
  • Projects

No.. I’m not dead

Privat 0 Comment »

It’s been several weeks since I made a post in my blog.

The reason for me beeing inactive is mainly because I’ve had tons of stuff to do at work, and no real spare time, when it comes to my small projects at home.

8-10 weeks ago, me and my girlfriend Andjelka, started to work out, as we used to do before we met eachother.
Lets just say that we’ve had a little too much tv and potatoe chips, without working out the slightest bit. Which can be seen on my BMI / Weight over all.

So, we came to the conclusion that something needs to be done. And here we are :) . Eight weeks later, we’re working out 3-5 times a week. Which we both find great :)

See my progress on shapelink

Alright. Enough with the private life.
I’ve done a little research on web development. What is better, PHP or Python?

Most people would say PHP as it’s so easy to learn and that it’s so widely used. And say that python is better, since it’s a lot faster than PHP and have tons of complete modules, classes and frameworks.

I tried some of the python projects out. For instance, Django is a really nice python framework. Easy to learn, GREAT setup page and is done with the DRY method. Which keep you as productive as possible :) .

Another one, that doesn’t seem to be as famous is Tornado web server. Which is used by FriendFeed for example. This one seems to be the fastest one around, and it seems quite simple to take in.

The reason for me checking those things out is that I’ve a little projekt (it might not be considered ”little”) that needs a web server for handling data. I’ll get back to you as soon as I have any good information :) .

Yeah.. this was a sloppy blog post. I’m sorry. Cu

la la laaa
  • Facebook
  • Twitter

december 5th, 2009  
Tags: django, python, shapelink, tornado



Say hello to Moblin

Linux, Open source 0 Comment »

Today I downloaded moblin, as it were supposed to be good for netbooks. After I’ve testing it for awhile I can’t do anything but agree. It’s really that great!

It everything that a good os needs, and all the applications seem to be highy integrated in the main interface!

Try it out at: moblin.org!

la la laaa
  • Facebook
  • Twitter

november 9th, 2009  
Tags: Linux, moblin, netbook



Getting Drupal Modules using Python

Linux, Programmering 0 Comment »

A good friend of mine wrote yesterday a small python script that allows the user to search and download Drupal modules directly via the official ftp.
This was made since it is quite boring/irritating to first browse through the module page on drupal.org and then copy the link to a shell where you download the module you want on your web server.

Instead, Jonas (that’s my friends name, btw) wrote this program that directly scans through the drupal module directory on the ftp and returns the output in a shell where the user just enter the choice that he/she wants. Example:

jonas@thinkpad61:~$ ./idm.py hello
Found 32436 files!
[0] hellomobile-5.x-1.0.tar.gz
[1] hellomobile-5.x-1.1.tar.gz
[2] hellomobile-5.x-1.x-dev.tar.gz
[3] hellotxt-6.x-1.x-dev.tar.gz
Which module do you want to download? 1
Ok, lets get hellomobile-5.x-1.1.tar.gz
jonas@thinkpad61:~$ ls -l hellomobile-5.x-1.1.tar.gz
-rw-r--r-- 1 jonas jonas 824473 2009-10-22 22:34 hellomobile-5.x-1.1.tar.gz

I believe that this is quite usefull and interesting. But, as Jonas mentions in this post. It does not contain the functions that you might need, such as: version filter and dev filter. Meaning that you don’t want to see results for drupal 5 if you are running six. Nor do you want to use developer packages when you are in a critical installation.

I had some time so I made some improvements on the original:

tomburk@linux-e9bm:~> python idm-mf.py --help
Usage: idm-mf.py [options]

Options:
-h, --help            show this help message and exit
-f version, --filter=version
Filter the results in version numbers.
-d, --dev             Show developer packages

This allows the user to filter between the version, of course ”all” can be applied, if one wants to show all the results. Plus, It’s possible to toggle between showing the developer packages or not.

Final result:

tomburk@linux-e9bm:~> python idm-mf.py -f 5 hello
Found a total of 32451 files!
Files containing "hello"
 Based on filter: 5
  Not showing developer packages
[0] hellomobile-5.x-1.0.tar.gz
[1] hellomobile-5.x-1.1.tar.gz
Which module do you want to download? 1
Ok, lets get hellomobile-5.x-1.1.tar.gz
tomburk@linux-e9bm:~> ls -s hellomobile-5.x-1.1.tar.gz
812 hellomobile-5.x-1.1.tar.gz

The file is available here: http://marcusfollrud.net/wp-content/idm-mf.py
Or at github: http://github.com/marcusfollrud/idm
See you!

A small update

2009-10-24 – Added support for multiple file download, Available on both github and in wp-content

la la laaa
  • Facebook
  • Twitter

oktober 23rd, 2009  
Tags: drupal, modules, python



Debian in Virtualbox

Linux, Open source 0 Comment »

In the Swedish linux community, it’s quite common to experience linux by:

  1. Install ubuntu/opensuse/mint
  2. Fix the lack of mp3/mkv/h264/xvid blabla support
  3. Install virtualbox
  4. Test distributions
  5. Brag about the ones you installed (especially Debian)

It’s always good to try out different flavors, till you find the one the match your needs and requirements. It is also always good for people that’s creating the different distributions as it often generates feedback. If not directly towards the developers, then at least a comment about it on the web will be made in most cases. This means indirect feedback plus the growth of Linux overall.

When it comes to myself, I’ve never been much of a distribution tester. Sure, I’ve installed quite many over my 6 years running Linux. Such as Ubuntu, OpenSuSE, Fedora, Slackware, Arch, Crux and so on. But I have always tried them out fairly, in the meaning that none of them have been in a Virtualbox just to test the installation and the mp3 support in the chosen distribution. To me, the most importance thing is how productive I am.

Anyways, what I was going to say is that I made my first Virtualbox+Debian installation today (yay, my time to shine!!). To me Debian has always seemed to be this quite advanced installation to get it up and running, according to what Swedish users express on the web. . But today, I realized that it’s just as simple as installing it’s buddy Ubuntu. Why do people brag about this?

The true reason for why I chosed Debian, and more important installing via Virtualbox is because of the recent Appartment change me and my darling made I’ve only set up the MacMini as my working station. The PC is now standing doing nothing, and I’m too lazy to insert all the cables, hehe :) . Also, it’s the recommended distribution by the company that I work for. Therefor it felt naturally to install Debian!

This entry was never to start a Flame war between distributions, they are all good. It all just depends on your needs.

And if any Virtualbox distribution tester feels pointed out or accused inappropriately, then I apologize. I never meant to sound negative, rude or wiseacre.

Best,
Marcus

la la laaa
  • Facebook
  • Twitter

oktober 14th, 2009  
Tags: debian, Linux, virtualbox



#MonoTouch how to – Drag and Drop Image

monotouch, Programmering 4 Comments »

My blog posts are commonly in Swedish, but since this might interest users outside the borders of Sweden I decided to write this post in English.

Today, I’ll show how easy it is to Drag an Image around the screen using MonoTouch. Bear with me though, it’s my first how to :) .

It’s actually really simple, and you won’t need the Interface Builder.

What we need to do is to create an UIImageView class that overrides the functions TouchesBegan, TouchesMoved and TouchesEnded. It’s looking like this:

	public class myDraggableImage : UIImageView {

		//Store locations for remembering the last positions, and counting the future ones.
		PointF Location;
		PointF StartLocation;

		bool haveBeenTouchedOnce = false;

		public myDraggableImage ( RectangleF frame ){

					//Set the position of the frame with RectangleF (Replacement of CGRectangle)
					this.Frame = frame;
					StartLocation = this.Frame.Location;
		}

		//This event occurs when you just touch the object
		public override void TouchesBegan (MonoTouch.Foundation.NSSet touches, MonoTouch.UIKit.UIEvent e)
		{
			Console.WriteLine("Touched the object");
			Location = this.Frame.Location;

			var touch = (UITouch) e.TouchesForView (this).AnyObject;
			var bounds = Bounds;

			StartLocation = touch.LocationInView(this);
			this.Frame = new RectangleF(Location,bounds.Size);

		}
		//This event occurs when you drag it around
		public override void TouchesMoved (MonoTouch.Foundation.NSSet touches, MonoTouch.UIKit.UIEvent e)
		{
			Console.WriteLine("Dragged the object");
			var bounds = Bounds;
			var touch = (UITouch) e.TouchesForView (this).AnyObject;

			//Always refer to the StartLocation of the object that you've been dragging.
			Location.X += touch.LocationInView(this).X - StartLocation.X;
			Location.Y += touch.LocationInView(this).Y - StartLocation.Y;

			this.Frame = new RectangleF(Location,bounds.Size);

			haveBeenTouchedOnce = true;
		}

		public override void TouchesEnded (MonoTouch.Foundation.NSSet touches, MonoTouch.UIKit.UIEvent e)
		{
			StartLocation = Location;
		}

	}

What’s being done here is that as soon as we Touch the object it will run ”TouchesBegan” to start keeping track of the Object. And when we are moving it around, it constantly calls ”TouchesMoved” where we are updating the position of the UIImageView on the screen.

When you’ve implemented the class class in your project, all you need to do is to create the object within ”public override bool FinishedLaunching”.
It can for instance look like this:

myDraggableImage img = new myDraggableImage(new RectangleF(64,64,64,64));
			img.UserInteractionEnabled = true;
			img.BackgroundColor = UIColor.Green;
			img.Hidden = false;

			window.AddSubview(img);

The result will be a UIImageView that can be dragged around the screen.

la la laaa
  • Facebook
  • Twitter

september 23rd, 2009  
Tags: c#, monotouch, UIImageView



Spotify invites

Privat 14 Comments »

Spotify invites

Spotify invites

Jag har fyra spotify invites jag måste bli av med.

Kommentera med din e-postadress så skickar jag.

Först till kvarn! :)

Uppdaterat 16:46 – Mina invites är slut!

la la laaa
  • Facebook
  • Twitter

september 16th, 2009  
Tags: gratis, invite, spotify



MonoTouch trial

Programmering 0 Comment »

MonoTouch

MonoTouch

Ville bara informera för er som missat att MonoTouch numera finns som testversion, för den som vill testa innan köp.

Du kommer att tillåtas att använda MonoTouch fullt ut, och simulera programmet det på din Mac. Vill du däremot testa på din telefon måste du köpa en licens.

Detta är givetvis väldigt bra, för den som vill testa innan köp.

Du laddar ner trial versionen här: http://monotouch.net/DownloadTrial

Detta är perfekt för den som inte har 3010 SEK att spendera på ett projekt man inte är säker på att använda seriöst!

Det känns bra när ett Arbetsteam lyssnar på request de får, och tar till sig det direkt, istället för att komma med en lösning 6 månader senare. Men åandrasidan är det ”open source” människor som skapat det, så man förstår entusiasmen :-)

Härmed avslutas mitt lunchinlägg!

-m

la la laaa
  • Facebook
  • Twitter

september 16th, 2009  
Tags: c#, monotouch, novell, testversion, trial



MonoTouch släppt

Programmering 0 Comment »

MonoTouch Box. (C) Novell

MonoTouch Box. (C) Novell

Idag är det officiellt. MonoTouch, API:et som låter dig programmera .NET-applikationer till din iPhone är släppt.

Inte nog med att du kan använda .NET API:er direkt i ditt program. Där är även Bindings till Objective-C biblioteken, för att kunna maximera din utveckling på iPhone.

Även om jag personligen inte har hunnit programmera något vidare själv har jag följt mailinglistan, och de som testat är mycket nöjda med produkten. De är mer eller mindre nöjda med precis allt, utom prislappen förstås.

Prislappen hamnar på 3010 SEK för enskild användare. Något som förmodligen kommer utesluta de som vill göra alla de populära småprogrammen. Novell verkar ha lagt sitt fokus på seriösa företag som vill åstadkomma mycket med sin kod, och som är beredda att betala för att återanvända den kunskap som redan finns, dvs slippa lära sig Objective-C.

Personligen har jag inte bestämt mig för vad jag tycker om priset. Många har blivit upprörda, medans andra är nöjda med priset och anser att arbetet som utvecklarna har lagt ner på detta projekt gör att prislappen är helt acceptabel.

Jag ser det mer som en positioneringssak. Jag kan tycka att priset är OK för ett företag, men inte för en hobbyutvecklare som vill tjäna lite snabba pengar. Fler kunder, kräver givetvis mer support, vilket är mer utgifter för Novell. Genom att höja priset till vad det är sållar man säkerligen bort de som egentligen inte kan, men tror sig kunna och fokuserar på de personer som verkligen vill. Detta ger givetvis mindre support för Novell, vilket de tjänar pengar på.

Jag tror att om man sänker priset för lågt på ett paket som detta kommer det att kosta mer än vad det kommer gynna, och jag tror Novell är på samma spår de också.
Jag tror med andra ord att det är ett strategiskt beslut, och inte ett pengagirigt.

Nu när jag granskar vad jag själv analyserat fram från texten ovan får jag nog ändå säga att det är ett pris som är helt OK. Jag är nöjd.

Ta en kik på deras hemsida: http://monotouch.net

Beställ här

Tillbaka till min renovering :) .
Cu

la la laaa
  • Facebook
  • Twitter

september 14th, 2009  
Tags: c#, monotouch, novell



Upptagen helg

Privat 2 Comments »

Livet blir aldrig som man tänkt sig.

Denna helg började under kvällen i Fredags att fira Andjelkas moster Ulrica, som fyllde år. Vi firade henne genom att spela bowling. Mycket trevligt!

Lördagen gick åt att hjälpa syrran att flytta och spacka/måla igen hål i lägenheten som vi snart ska lämna..

Och i söndags blev det ingenting gjort, förutom lite packande och inhandlande av tapet med mera för lite förändring i nästa lägenhet.

Jag fick med andra ord inte gjort något på mina projekt, och min datortid var minimal. Tror inte äns att datorerna var igång öht. Nu är det en ny vecka, och jag tror inte jag kommer få tid att  testa MonoTouch denna veckan heller. Lite synd, när man blivit inbjuden till att göra det.

Detta blir ett tråkigt inlägg. Det finns inget jag kan skriva om, så jag låter det vara för idag :) .

Ses!

la la laaa
  • Facebook
  • Twitter

september 7th, 2009  
Tags: inaktivitet



Wie, jag kom med!

Open source, Programmering 0 Comment »

Häromdagen ansökte jag till MonoTouchprojektet eftersom jag fann det väldigt intressant att utveckla med. Och de snälla människorna gav mig beta access till projektet!

Skall genast testa det och ge det kommentarer, när jag har något. Men testning kan nog inte bli förräns på söndag. Om tio minuter ska vi på födelsedagsevenemang och imorgon skall vi hjälpa min syster med fästman att flytta.

Värt att notera är att MonoTouch kommer bli en kommersiell utgåva, enligt Miguel:

Commersial

För mig är detta helt ok, jag kan tänka mig att det måste vara ett kostsamt avtal med apple för att få lov att göra såhär. Mono i sigsjälvt är ju öppet, och det tycker jag är viktigast!

Jag återkommer som sagt, så fort jag har lite kod att bidra med :) .

Tills vidare refererar jag till monotouch.info och detta inlägg:

http://conceptdev.blogspot.com/2009/09/initiate-call-with-monotouch.html

Go kväll!
Marcus

la la laaa
  • Facebook
  • Twitter

september 4th, 2009  
Tags: beta, c#, monotouch



Previous Entries
Next Entries
  • Kategorier

    • Linux
    • monotouch
    • Open source
    • Planet
    • Privat
    • Programmering
    • Spel
  • Arkiv

    • januari 2012
    • september 2011
    • augusti 2011
    • januari 2010
    • december 2009
    • november 2009
    • oktober 2009
    • september 2009
    • augusti 2009
    • juli 2009
  • Etiketter

    2.6.30 16f690 Andjelka ANSI C apparmor apple axis biltema blommor c# curl debian despotify django drupal inaktivitet iphone kde Linux linux mint liseberg mono monotouch novell Open source php pic pic16f690 plasma plasmoid Programmering pump pykde pyqt python qt sdcc sommarstuga spotify spytify vatten vattna blommor virtualbox wordpress youtube
Copyright © 2012 Marcus Follrud Acne treatment
XHTML CSS Logga in