[01:03] <[Ratten]> FrostyX nevis jak zjistim kdo je prave navebu ?
[01:03] <[Ratten]> krom toho ze bych si psal cas nacteni kazde stranky ?
[02:39] <ZOMBitch> copy & paste -> Google :D
[11:08] <FrostyX> [Ratten]: neco malo se da zjistit z $_SERVER ... http://php.net/manual/en/reserved.variables.server.php
[12:47] <SquirrelCZE> hosi
[12:47] <SquirrelCZE> nevite nekdo o tom jak funguje ta technologie
[12:48] <SquirrelCZE> ze klicknu na webu na odkaz, v tom se mi otevre okno ze "bla bla bla, spousti na vasme pocitac" a spusti to prikaz v terminalu?
[12:55] <SquirrelCZE> jakoze, jde mi o to ze chci mit vlastni web aplikaci ktera pri kliknuti na odkaz spusti VLC
[12:55] <SquirrelCZE> http://www.techdrivein.com/2011/11/20-most-highly-rated-applications-to.html tady ma odkazy pomoci ktereho se otevre Ubuntu Software Center...
[12:57] <Chinese_soup> no, tady to resi ten protokol apt:
[12:57] <Chinese_soup> ktery ocividne ubuntu ma
[12:57] <Chinese_soup> (mně to na debianu zahlasí, že takový protokol nemá nic přiřazenýho)
[12:58] <Chinese_soup> a řekl bych, že to prostě nijak neuděláš bez pomoci nejakeho addonu, upravy nastaveni a tak ..
[12:58] <Chinese_soup> pridani protokolu, etc.
[13:22] <SquirrelCZE> hmm
[13:23] <SquirrelCZE> will be funny :D
[13:23] <SquirrelCZE> tak v nejhorsim phpscripty umi spouste linux prikazy
[13:23] <SquirrelCZE> a ajax...
[13:28] <SquirrelCZE> Chinese_soup: bych si chtel totiz udelat multimedialni knihovnu pres web :-)
[13:40] <Chinese_soup> no, tak kddz to chces na localhost, tak pohoda
[13:40] <Chinese_soup> :)
[13:41] <SquirrelCZE> jj
[13:41] <SquirrelCZE> akorat
[13:41] <SquirrelCZE> Chinese_soup: premyslim jak pustit httpd do me slozky s filmy
[13:41] <SquirrelCZE> kterou mam /home/squirrel/Videos
[13:41] <Chinese_soup> virtualhost?
[13:42] <SquirrelCZE> virtualhost?
[13:42] <Chinese_soup> jinak vlc ma i httpd
[13:42] <SquirrelCZE> to je spis otazka prav
[13:42] <Chinese_soup> no, vsak
[13:42] <Chinese_soup> virtualhost + chmod
[13:42] <SquirrelCZE> hmm
[13:43]  * SquirrelCZE by spis chtel at k te slozce muze jen httpd a ja
[13:43] <SquirrelCZE> takze jedine udelat skupinu kde budu ja a httpd
[13:43] <Chinese_soup> a chown
[13:43] <Chinese_soup> ano
[13:50] <SquirrelCZE> nejde
[13:50] <Chinese_soup> you're doing it wrong!
[13:50] <Chinese_soup> :D
[13:52] <SquirrelCZE> njn
[13:53] <SquirrelCZE> hmm
[13:54] <SquirrelCZE> difny
[13:55] <SquirrelCZE> http je v group multimedia
[13:55] <SquirrelCZE> a presto do te slozky nemuze
[13:56] <FrostyX> ukaz prava te slozky
[13:57] <SquirrelCZE> drwxrwx---  6 squirrel multimedia    4096 Dec 25 23:10 Videos
[13:57] <SquirrelCZE> drwxr-x--x 48 squirrel multimedia  4096 Dec 29 12:33 squirrel | je nadrazena slozka
[13:57] <SquirrelCZE> a tu uz v /home vidi...
[13:58] <SquirrelCZE> multimedia:x:1000:http,squirrel
[13:58] <SquirrelCZE> je zaznam v /etc/group
[13:59] <FrostyX> mam takovou divnou zkusenost, ze mi nesli sambou sdilet soubory v /home ... nakonec jsem ty adresare namountoval do /mnt a najednou to sdili v pohode. Nemuze tam byt treba podobny problem ?
[14:00] <Chinese_soup> kdyz tomu Videos hodis 777 tak to jde urcite
[14:01] <Chinese_soup> nevim, jestli vam to k necemu pomuze :-)
[14:01] <SquirrelCZE> jezis, to jsou rady :D
[14:01] <Chinese_soup> to bylo na Frostyho jinak
[14:03] <SquirrelCZE> hmm
[14:03] <SquirrelCZE> apach to nema rad
[14:03] <SquirrelCZE> *apache
[14:03] <FrostyX> Chinese_soup: no ja tam tenkrat narval i 777 a proste to neslo ... fakt nevim proc .. 
[14:03] <SquirrelCZE> FrostyX: mas pravdu
[14:03] <Chinese_soup> FrostyX: no, u apache to jde
[14:03] <SquirrelCZE> apache ma zamezeni na to aby chodil do /home/
[14:03] <Chinese_soup> a sambu nepouzivam, takze nevim :)
[14:03] <SquirrelCZE> teda, php :D
[14:03] <FrostyX> :)
[14:05] <Chinese_soup> proste nahod vlc httpd + nejaky playlist a problem solved :D
[14:05] <Chinese_soup> sice neprehrajes video..
[14:05] <Chinese_soup> :D
[14:05] <Chinese_soup> ale na to ti staci nejaky embedded srac
[14:05] <SquirrelCZE> ...
[14:05] <SquirrelCZE> :-P
[14:05] <Chinese_soup> ...............................................
[14:06] <Chinese_soup> :-PPPPPPPPP
[14:06]  * SquirrelCZE nejdriv potrebuje v php vypsat obsah slozky
[14:06] <Chinese_soup> nepotrebuje, kdyz udela to co jsem mu rekl :-P
[14:06] <Chinese_soup> :D
[14:06] <SquirrelCZE> :-P
[14:07] <FrostyX> na php.net je funkcni priklad vypisu adresare, tak bud linej a nevymyslej to :-D
[14:07] <SquirrelCZE> omfg
[14:07] <SquirrelCZE> ja ho mam
[14:07] <SquirrelCZE> ale nechce mi to vypsat....
[14:07] <SquirrelCZE> aaaa :D
[14:08] <FrostyX> :D
[14:08] <SquirrelCZE> /srv/http vypise
[14:08] <SquirrelCZE>  /home tkay
[14:08] <SquirrelCZE> taky
[14:08] <SquirrelCZE> ale /home/squirrel/Videos nechce pritom tam http ma prava na pristup
[14:08] <SquirrelCZE> a /srv/http/Videos coz je nl -s na /home/squirrel/Videos to taky nema rado
[14:09] <Chinese_soup> find ~/. -exec chmod 7777 '{}' \;
[14:09] <Chinese_soup> problem solved
[14:09] <Chinese_soup> :D
[14:09] <SquirrelCZE> ...
[14:09] <Chinese_soup> nebrec furt s tema teckama
[14:10] <SquirrelCZE> chjo
[14:10] <SquirrelCZE> pritom apache ma nastavene follow symlinks
[14:11] <SquirrelCZE> aha
[14:11] <SquirrelCZE> restartovat apache :-(
[14:54] <SquirrelCZE> gksudo like1
[14:54] <SquirrelCZE> !
[14:56] <Chinese_soup> like a boss
[15:27] <SquirrelCZE> lidi
[15:28] <SquirrelCZE> kdo by mi napsal phpfunkci na zjisteni jestli to je obrazek nebo ne?
[15:28]  * SquirrelCZE byl na tohle vzdy levej
[15:30] <SquirrelCZE> rekneme ze mam filename
[15:31] <sniperCZE> getimageinfo() - pokud to neni obrazek, vraci false, jinak array
[15:31] <SquirrelCZE> thanks
[15:38] <FrostyX> SquirrelCZE: nepomuze http://www.php.net/manual/en/function.finfo-file.php ?
[15:47] <SquirrelCZE> FrostyX: zkusim
[15:57] <SquirrelCZE> mne spis napadlo
[15:57] <SquirrelCZE> preg_match("*.jpg",$file);
[15:58] <SquirrelCZE> preg_match("*.(jpg|jpeg|gif|png)",$file);
[15:58] <SquirrelCZE> ?
[16:00] <FrostyX> podle koncovek by taky slo ...
[16:01] <sniperCZE> koncovkam se neda verit
[16:02] <FrostyX> je fakt ze si muzu udelat script, pojmenovat ho obrazek.png a asi ses nahranej no
[16:03] <SquirrelCZE> sranda je ze mi to nefunguje...
[16:04] <FrostyX> co nefunguje
[16:05] <SquirrelCZE> ten regexp :D
[16:08] <SquirrelCZE> if(preg_match("*.(jpg|jpeg|gif|png)",$file['name'])){ neprochazi
[16:08] <SquirrelCZE> ikdyz tam je jasne soubor s .jpg
[16:10] <SquirrelCZE> if(preg_match(".*\.(jpg|jpeg|gif|png)",$file['name'])){ 
[16:10] <SquirrelCZE> tak je to spravne, ale porad nefunugje
[16:10] <FrostyX> s tim ti neporadim. Regularni vyrazy jsem nebyl schopen se naucit
[16:13] <FrostyX> ale jestli si dokazes zjistit koncovku toho souboru, tak potom bych nahazel povolene koncovky do pole a dal if(in_array(..))
[16:35] <Chinese_soup> a nebo to resil pres mime-type :)
[16:39] <SquirrelCZE> hm
[18:26] <[Ratten]> FrostyX prosimte kdys mam takovej cyklus http://pastebin.com/9jD7wDjP jak udelam aby se mi $char_time2 ['onlinetime']  pri kazdem projeti secet ?
[18:27] <SquirrelCZE1> end(explode('.',$file['name'])
[18:27] <SquirrelCZE1> nejlepsi zpusob na zjisteni koncovky souboru jaky jsem nasel
[19:08] <FrostyX> SquirrelCZE1: jestli funguje, tak dobry ne ?
[19:09] <SquirrelCZE1> jj
[19:09] <SquirrelCZE1> ale hlavne tomuhle rozumim
[19:09] <SquirrelCZE1> regexp pro mne bylo: ??? :D
[19:09] <SquirrelCZE1> FrostyX: http://89.102.105.218
[19:12] <FrostyX> v regexpech taky vidim jen rozsypane pismenka .. 
[19:12] <FrostyX> bohuzel :(
[19:13] <SquirrelCZE1> :D
[19:14] <FrostyX> [Ratten]: A kde konkretne tam vidis nejaky problem ?
[19:15] <[Ratten]> mmnt rozjimam nadtim :D
[19:24] <[Ratten]> a uz jsem to vyresil :)
[19:25] <[Ratten]> ale trvaloto :D
[19:26] <FrostyX> :)
[20:21] <Rattten> jak se jmnuje takovej ten program na konzoli kde muzu prepinat aplikace ? scren nebo tak neco
[20:21] <Rattten> tak uz nic
[20:23] <FrostyX> no screen je no
[20:31] <SquirrelCZE1> hosi
[20:31] <SquirrelCZE1> znate neco ve stylu preloadu? :D
[20:32] <SquirrelCZE1> ci jiny "tuning" systemu :D
[20:32] <SquirrelCZE1> pro system kde mate zatizeni 5% a chcete vse udelat jeste plynulejsi
[20:36] <FrostyX> preload jsem zkousel. Akorat problemy s tim byly
[20:40] <FrostyX> SquirrelCZE1: ja ubuntu moc neladil, ale mam tu ulozeny https://wiki.archlinux.org/index.php/Maximizing_Performance ... rek bych ze to bude vsude stejny
[21:02] <SquirrelCZE1> FrostyX: mam archa :D
[22:14] <SquirrelCZE1> tvl
[22:14] <SquirrelCZE1> a pak proc mi blbne net
[22:14] <SquirrelCZE1> chjo
[22:14] <Chinese_soup> protoze neblbne? :)
[22:15] <SquirrelCZE1> neblbne
[22:15] <SquirrelCZE1> ale kdyz pres torrenty sdilis distribuci ;-)
[22:29] <Chinese_soup> ;-)