Hi there, I'm Nalle!
I'm from Stavanger, Norway, if you should wonder.
The dog in my lap is Pelops - He's a four years old Chihuahua, born in Greece.
These are my pages, and I will use them to profile Open Source, share program examples that I make and the solution for a few programming headaces I've been having.
I will also tell you a bit about myself - just a bit, so you'll have a feeling of who I am.
Also have a look at my «Newsflash» -page, where I add news articles about things I find interesting. Usually IT related, but it also cover some science. If I have something I want to write about, about anything really, I also use this space for that.
Fricassé of hen
Created: 2014-12-20 20:01:27.
You'll need (for 4 portions):
For cooking the hen:
The vegatables for the sauce (the...
Recepie: Chili Cream Chicken Filét
Created: 2014-11-30 13:23:37.
You need (for 2 portions):
2 chicken filéts
This is how you do it:
Peal the potatoes and boil them in water with salt added.
Split the chili and remove the seeds as they would make the dish way to hot...
Recepie: Simple Spare Ribs
Created: 2014-11-28 11:40:06.
1 kg of pork rib
The blog-thingy part
Created: 2014-08-27 11:18:53.
I need a place to write, when I have something to say, so I found that I will use this place.
Here I will write about IT related stuff. Some HOWTO-articles, if I do something worth writing about.
I am thinking of learning C# and if I go for it, the story about that will be on this page along with downloadable applcations and t...
Linux Mint 17 Qiana Released
Created: 2014-06-02 09:19:26.
Many people have been eagerly awaiting the final release of Linux Mint 17. This is what the team themselves say about it:
«Linux Mint 17 is a long term support release which will be supported until 2019. It comes with updated software and brings refinements and many new features to make your desktop even more comfortable to use.
|► How to make a simple counter in PHp/MySQL||► Database and session based login in PHP/MYSQL|
|► Thanks to|
To login using a database and session login makes user handeling easy. This version does not have encrypted passwords, but you do need access to the database to find the password.
This login system have no «Forgot passwords?» - part, but I will make one later that can do that. The licence for this one is GPLv2.
This counter uses a database table named «users» and I will not explain that here, but the table is going to have the following caracteristica:
|ID||INT||1||Auto Increment||Primary Key|
|name||VARCHAR||255||No default||So you can get the name of the user and use that in yout app|
For a intermediate PHP programmer, this should be a breeze. Just remember that the code in the yellow box to the right must be in the beginning of every page or handler you make to secure the page.
I have prepared a .zip file to download for you, containing all code you need to make the login system work (well, you will have to create the table).
Yo can download the file here: SessionBasedLogin.zip.
I have also prepared a tiny demo, that you can try out here: SessionBasedLogin Demo.
The file should be quite well documented in the code. It also contains a secure and easy way to open databases.
Hope you enjoy the login-script
This counter uses a database table named «counter» and I will not explain that here, but the table is going to have the following caracteristica:
|ID||INT||1||Auto Increment||Primary Key|
The script assumes that you allready have opened the database.
Download counter-script.zip and use it, change it.
And if you wonder what it looks like - well look below, but I've removed the start date, since that's my start date and it would be wrong for you.
License? I think I'll make it public domain - use it if you need it and have fun!
I am a huge fan of anything open, like open source, open hardware and open standards. Ideas are to be shared, giving incentive to even better ideas that you then would get back as a trade for you sharing your ideas.
I am not agains patent as such, but to patent ideas and thoughts should not be legal. If you got an item in your hand that you have invented, patents will protect you from other selling cheap copies of your invention.
That does not however, translate into patents on software. People that try to solve the same problem, will from time to time find a similar solution. That's not copying! That's good thinking.
Now when it comes to open hardware, thats an entirely other business. Have your patent on the hardware. I endorse that noe houndred percent! But I (or someone else that actually is able to) want to make programs and drivers for that hardware. And it's there the openness comes in. The programmer that makes the driver just want more people to be able to use your unit, and that I mean should be possible at all times. So release the specs and APIs! What have you got to loose? They are (if you look at it that way, and I do) after all working for you - making the driver that make you sell the unit to even more people.
|Program Name||Description||Web Site|
LibreOffice is a powerful office suite; Its clean interface and its powerful tools let you unleash your creativity and grow your productivity.
|The Gimp||GIMP is the GNU Image Manipulation Program. It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages. (more...)||http://www.gimp.org/|
Browsing Made Easy
|Mozilla Thunderbird||Thunderbird is a free email application that's easy to set up and customize - and it's loaded with great features!||https://www.mozilla.org/en-US/thunderbird/|
|FileZilla||FileZilla, the free FTP solution. Both a client and a server are available. FileZilla is open source software distributed free of charge under the terms of the GNU General Public License||https://filezilla-project.org/|
Notepad++ is a free (as in "free speech" and also as in "free beer") source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License.Based on the powerful editing component Scintilla, Notepad++ is written in C++ and uses pure Win32 API and STL which ensures a higher execution speed and smaller program size. By optimizing as many routines as possible without losing user friendliness, Notepad++ is trying to reduce the world carbon dioxide emissions. When using less CPU power, the PC can throttle down and reduce power consumption, resulting in a greener environment.
|CCCP||The Combined Community Codec Pack is a simple playback pack for Windows with the goal of supporting the majority of video formats in use today.||http://www.cccp-project.net/|
Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting capabilities.
Avidemux is available for Linux, BSD, Mac OS X and Microsoft Windows under the GNU GPL license.
|Linux||Linux is a Unix-like and POSIX-compliant computer operating system assembled under the model of free and open source software development and distribution. The defining component of Linux is the Linux kernel, an operating system kernel first released on 5 October 1991 by Linus Torvalds. Read more...||
Distribution of Linux
Before I worked with Computers.
I was born 11th of September 1965. As a pre-school kid I played around the house and my mother was at home, taking care of five children.
Dad was working at a shipyard first, then as a caretaker. He died when I was six.
My mom had to take care of all us five children aged from six to fifteen - not an easy job, but she handled it somehow. Se worked as a waiter, so she often worked evenings, so I was often looked after by my older sisters and brothers.
I startad at school at «Berg barneskole», when I was seven, and when I was 12, I started at «Blussuvoll ungdomsskole», where I was for three years.
Then I went to «Trondheim Kokk og stuertskole», where i trained to be a chef.
Three years later, after working as a chef in Skien, I went to «Sandefjord kokk og stuertskole» to get my diploma as chef.
I got my diploma in June 1985.
I worked as a cook in different kitchens until 1991. Then my shoulders and joints couldn't take it anymore.
I started school again in 1992 and used three years becoming a Nourishment tecnichian.
In 1993 my mum died.
I finished school in 1995 and worked about a year as forman at a tomato and cucumber gardnery.
After I started working with computers:
While working with cleaning of the greenhouses, making them ready to next years crop, a friend of me that knew I was interested and quite good with computers called me and asked if I wantet a job in bubble support, as a company was upgrading from Windows 3.51 to Windows 95 OSR2.
I went to an interview and didn't get the job. However I got called back a few days later, they needed someone anyway, so they asked if I could be to Cristmass. I could.
Then they asked me for 14 days more, since the one they had at one of their ship-building projects had some trouble. I quickly fixed the small problems and it ended with me being there for two years until the project was done.
After completing the project I worked as a SMB (Small Medium Business) consultant. I continued doing that for eight years till 2008, when I worked 1 ½ years at an oil equipment comapny. There I worked with personal client support, something I've found is the thing, part from programming, I do the best.
That project came to an end when the site I worked on got merged into the main company when their new building was done.
After that I ran my own company, doing all types of support maintenance and programming for the SMB segment. I liked working like that.
In 2011 - 30th of July, I was on my way to work, when a car with an intoxicated driver, without drivers licence and with a car he had stolen from his dad, hit me so hard that i got three teeth crushed and a double Spinal disc herniation. After two operations, I am still so full of pain and have so big problems concentrating because of that, that I cannot work anymore.
I have two daughters and a chihuahua. No wife anymore.
I have, however a house in Greece, that you can see to the left here.The house is bordering to a nice little place about as far south as you can get on Pelleponese, close to Koroni. The place is called Vasilitsi (se sign above). I am rebuilding it as fast as I can affoard, and hope to have it ready in two or three years. Well not ready - in a house that's ready, lives a man without imagination. I hope to have it so ready that I can live there. I can't do that yet.
I am an animal friend. I got two guinea pigs and a dog myself and a bird feeder for the little birds outside. You can see my dog Pelops at http://www.pelops.no/ (but the page is Norwegian)