Microsoft vízió

Microsoft in 2019
Nincs probléma, minden működik.

Wahorn

Nézem:
Záróra, 2010. március 2. – Vendég: Wahorn András


…ami computeren születik az sosem olyan erős művészet, mint amikor egy darab papírra húzok egy vonalat.
Miért? Mert művészet ott van, ahol valami ütközés van.

TODO: ASP.NET 4 könyvajánló

ASP:NET4 Step by Step könyvet fogom elolvasni, a példákat kipróbálni, végül egy cikket írni róla.

A könyv fő részei:
Alapok,
Konfiguráció, adatkötés, navigáció,
Cache, állapot menedzsment,
Debug,
MVC,AJAX, Silverlight,
Szolgáltatások, telepítés

 

 

A könyvespolcomon megtaláltam a “Tanuljuk meg az ASP.NET 2.0 használatát 24 óra alatt” könyvet.  Ez könyv már múlté. Igaz, akkor sem ajánlottam senkinek. Ebben a kódok Visual Basic-ban voltak, én meg C#-ben programozok .NET-ben.

 

A szerverre installált PEAR csomagok listája

A következő kóddal tudhatjuk meg:

<?php

ini_set(‘display_errors’, 1);

//PEAR csomagok listája
echo “PEAR csomagok listája:<br>”;

if($_SERVER[“HTTP_HOST”]==”szerver neve” ){
ini_set(‘include_path’, ‘utvonal pear’);
include ‘PEAR/Registry.php’;
$reg = new PEAR_Registry(‘/usr/…./pear’); //phpinfo -ból megtudható
} else{
ini_set(‘include_path’, ‘utvonal pear’);
include ‘PEAR/Registry.php’;
$reg = new PEAR_Registry(‘D:serverxamppphppear’);
}

foreach ($reg->listPackages() as $package) {
print “$packagen<br>”;
}
?>

 

PEAR installáció Wamp-ra (II.)

Mail csomag telepítése:
D:server2wampbinphpphp5.2.9>pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE          VERSION STATE
Archive_Tar      1.3.2   stable
Console_Getopt   1.2.3   stable
PEAR             1.7.2   stable
Structures_Graph 1.0.2   stable

D:server2wampbinphpphp5.2.9>pear install Mail-1.2.0
Did not download optional dependencies: pear/Net_SMTP, use –alldeps to download
automatically
pear/Mail can optionally use package “pear/Net_SMTP” (version >= 1.4.1)
downloading Mail-1.2.0.tgz …
Starting to download Mail-1.2.0.tgz (23,214 bytes)
……..done: 23,214 bytes
install ok: channel://pear.php.net/Mail-1.2.0

D:server2wampbinphpphp5.2.9>pear install Mail_Mime
downloading Mail_Mime-1.8.1.tgz …
Starting to download Mail_Mime-1.8.1.tgz (31,530 bytes)
………done: 31,530 bytes
install ok: channel://pear.php.net/Mail_Mime-1.8.1

D:server2wampbinphpphp5.2.9>pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE          VERSION STATE
Archive_Tar      1.3.2   stable
Console_Getopt   1.2.3   stable
Mail             1.2.0   stable
Mail_Mime        1.8.1   stable
PEAR             1.7.2   stable
Structures_Graph 1.0.2   stable

D:server2wampbinphpphp5.2.9>

PEAR intalláció Wamp-ra (I.)

forrás: http://bdhacker.wordpress.com/2012/02/18/installing-pear-in-windows-wamp/

Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>binphpphp5.3.8

We’ll call this path “PHP’s location” throughout this article.

  1. Download “go-pear.phar” from this location: pear.php.net/go-pear.phar
  2. Create a folder “pear” in your PHP’s location
  3. Put the downloaded “go-pear.phar” file in this location.

Open a command prompt with administrative privilege. For this, click on start menu, type “cmd” – you can see the cmd.exe icon. Right-click on this icon and click “Run as administrator”

Cmd.exe will open. Go to the direcotry of your PHP’s location, by typing “cd” command. For example, my wamp is located in “D:wamp”, so I write following command:

1 D:
2 cd wampbinphpphp5.3.8

Now run the downloaded file, by typing:

1 php .peargo-pear.phar

MySQL info – Mysql adatbázis export, import

Mysql adatbázis export, import

Minden. “Tibi mindet visz.”

MySQL adatbázisok mentése, migrációja Xampp, Wamp környezetben:

Adatbázisok mentése, konzolablak nyitása után: mysqldump -u root -p --all-databases > databasebackup.sql

Visszaállítás: mysql -u root -p < databasebackup.sql

How to select the first/least/max row per group in SQL

Using EXPLAIN to Write Better MySQL QueriesUsing EXPLAIN to Write Better MySQL Queries

mysqldump --databases --user=root --password your_db_name > export_into_db.sql

https://stackoverflow.com/questions/3031412/how-to-export-a-mysql-database-using-command-prompt

 

Like a Hobo

I’ve always known since I was a young boy
In this world everything’s as good as bad

Now my father told me always speak a true word
And I have to say that is the best advice I’ve had

Because something burns inside of me
It’s everything I long to be
And lies they only stop me from feelin’ free

Like a hobo from a broken home
Nothing’s going to stop me
Like a hobo from a broken home
Nothing’s going to stop me
Nothing’s going to stop me

Ahhh, aaaaah

I’ve never yearned for anybody’s forture
The less I have the more I am a happy man
Now my mother told me always keep your head up
Because some may graze you
Just to get what they want

And I said, “Mama, I am not afraid,”
“They will take what they will take,”
“And what would life be like,”
“Without a few mistakes?”

Like a hobo from a broken home
Nothing’s going to stop me
Like a hobo from a broken home
Nothing’s going to stop me oooh
Like a hobo from a broken home
Nothing’s going to stop me
Like a hobo from a broken home
Nothing’s going to stop me ooouuh

Aaaaah aaaaaahhhh
Aaaaah aaaaaahhhh
Now, now, now, now

Like a hobo from a broken home
Nothing’s going to stop me
Like a hobo from a broken home
Nothing’s going to stop me, no!
Shut the door!