<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.royland.net/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Oppskrifter og Howto's</title>
        <description></description>
        <link>http://wiki.royland.net/</link>
        <lastBuildDate>Mon, 21 May 2012 09:32:58 +0200</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://wiki.royland.net/lib/images/favicon.ico</url>
            <title>Oppskrifter og Howto's</title>
            <link>http://wiki.royland.net/</link>
        </image>
        <item>
            <title>data:linux:mysql:c</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:mysql:c&amp;rev=1225633404&amp;do=diff</link>
            <description>Purpose

 By the end of this tutorial, you should know:

1. How to link the propery library files to compile your project in Visual C++ 6.0. 2. How to connect to a mySQL database. 3. How to retreive data from it.

Lets get started

 In order to connect to a mySQL database in C/C++, you will have to download and compile the proper library files. These files are called mySQL++, and can be found here. Download the zip file and unzip it to a temporary folder. Open the lib folder and copy the file my…</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:mysql</category>
            <pubDate>Sun, 02 Nov 2008 14:43:24 +0200</pubDate>
        </item>
        <item>
            <title>Fedora Distro opgradering - opprettet</title>
            <link>http://wiki.royland.net/doku.php?id=fedora_upgrade&amp;rev=1224654639&amp;do=diff</link>
            <description>yum -y update

yum install preupgrade

preupgrade</description>
            <author>Alf Ove Røyland</author>
            <pubDate>Wed, 22 Oct 2008 07:50:39 +0200</pubDate>
        </item>
        <item>
            <title>Rettigheter</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:mysql:import&amp;rev=1220259152&amp;do=diff</link>
            <description>Rettigheter

 Først en liten info om hvordan sette rettigheter til databasen så den kan nå's fra en annen maskin:

GRANT ALL PRIVILEGES ON test.* TO 'brukernavn'@'10.0.0.175' IDENTIFIED BY 'passord' WITH GRANT OPTION;

Import av tekstfil til tabell i MySQL

 Filen kan bygges opp i Excel og lagres som semikolon separert CSV fil i ANSI format. Kolonnene må være likt plassert som i den eksisterende tabellen i MySQL.</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:mysql</category>
            <pubDate>Mon, 01 Sep 2008 10:52:32 +0200</pubDate>
        </item>
        <item>
            <title>Enkle Eksempler</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:mysql:enkle_eksempler&amp;rev=1220259080&amp;do=diff</link>
            <description>Først noen eksempler med enkle tabeller, der det ikke er brukt relasjon mellom databaser.

Lage ny tabell



create table kontakt(id INT NOT NULL AUTO_INCREMENT,PRIMARY KEY(id),fname VARCHAR(30),aname VARCHAR(30),tlf INT,mob INT);



eller



create table kontakt_info(id INT NOT NULL AUTO_INCREMENT,bil VARCHAR(30),modell VARCHAR(30),aarsmod INT,hk INT);</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:mysql</category>
            <pubDate>Mon, 01 Sep 2008 10:51:20 +0200</pubDate>
        </item>
        <item>
            <title>Samling av værdata</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:bash:vaergrabbing&amp;rev=1220258780&amp;do=diff</link>
            <description>Tenker å lage et bash scrip som samler værdata i en mysql tabell.

lynx -dump &quot;http://www.hautron.com/Weather/wx2.html&quot; | grep &quot;Effektiv temper&quot; | awk '{print $3}'


Awk plukker ord nr. 3 fra linjen som blir greppet.

(Dette er foreløpig notater underveis)</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:bash</category>
            <pubDate>Mon, 01 Sep 2008 10:46:20 +0200</pubDate>
        </item>
        <item>
            <title>Backup Master Boot Record with dd</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:bash:dd&amp;rev=1220258687&amp;do=diff</link>
            <description>dd if=/dev/hdx of=MBR-backup bs=512 count=1


dd if=MBR-backup of=/dev/hdx bs=512 count=1</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:bash</category>
            <pubDate>Mon, 01 Sep 2008 10:44:47 +0200</pubDate>
        </item>
        <item>
            <title>Bash Backup</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:bash:backup_script&amp;rev=1220258629&amp;do=diff</link>
            <description>Script for Crontab

 Scriptet legges under /etc/cron.daily/, og gis samme tilgang som de andre filene som ligger der(chmod) 

#!/bin/bash
mount -w 10.0.0.5:/data/mxt200/www_backup /mnt/www_backup
mkdir /tmp/www_backup

#Get all files in current directory
originalFiles=$(ls /etc/www_backup/*)

# Loop through all files
for loopFile in $originalFiles
do
  # Run each script, one by one
  sh $loopFile
done

#Get all files in current directory
originalFiles=$(ls /tmp/www_backup/*)

# Loop through all …</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:bash</category>
            <pubDate>Mon, 01 Sep 2008 10:43:49 +0200</pubDate>
        </item>
        <item>
            <title>data:linux:php:combobox</title>
            <link>http://wiki.royland.net/doku.php?id=data:linux:php:combobox&amp;rev=1220252779&amp;do=diff</link>
            <description>in php working with combo boxes are no different than working with simple text boxes. meaning you do pretty much the same to get the values.. hope this example helps you understand how to get on with your script.  your html form: 


&lt;form action=&quot;process.php&quot; method=&quot;POST&quot;&gt; 
Name: &lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;&lt;br /&gt; 
DOB : &lt;input type=&quot;text&quot; name=&quot;dob&quot; /&gt;&lt;br /&gt; 
Gender : &lt;select name=&quot;gender&quot;&gt; 
&lt;option value=&quot;M&quot;&gt;Male&lt;/option&gt; 
&lt;option value=&quot;F&quot;&gt;Female&lt;/option&gt; 
&lt;/select&gt;&lt;br /&gt; 
Country : &lt;se…</description>
            <author>Alf Ove Røyland</author>
            <category>data:linux:php</category>
            <pubDate>Mon, 01 Sep 2008 09:06:19 +0200</pubDate>
        </item>
        <item>
            <title>Rust på framgaffelen - opprettet</title>
            <link>http://wiki.royland.net/doku.php?id=mekanikk:mc:forgaffel&amp;rev=1208765816&amp;do=diff</link>
            <description>Clean it down, Get ALL the rust, muck and loose stuff out of the pits, even if this means picking it out with the tip of a craft knife. 

THOROUGHLY degrease it with a solvent, allow to dry then skim over the pitted area with slow setting epoxy glue (eg araldite 'precision' NOT 'rapide' which apparently absorbs water and swells after a time).</description>
            <author>Alf Ove Røyland</author>
            <category>mekanikk:mc</category>
            <pubDate>Mon, 21 Apr 2008 10:16:56 +0200</pubDate>
        </item>
    </channel>
</rss>

