ZZEE PHPExe compiles PHP, HTML, Javascript and other web files into Windows GUI exes. You can rapidly develop Windows GUI applications by employing the familiar PHP web paradigm. You can use the same code for online and Windows applications with little or no modification.
http://www.zzee.com/phpexe/
Vezani blogovi:
No related posts
Was this article helful to you? If so, please click on the (+) [plus] sign below! It's Croatian digg ;-) Tnx!
Probao ga… hm, ima par zgodnih rjesenja, posebno mi se svidja sve ono under-the-hood, bolji memory i process management. Ali, daleko je to od proizvoda koji bi me natjerao da se preko noci odreknem komocije Firefoxa. No, jos je rano. Chome je tek propupao, ovo vise slici alpha verziji, tako da treba pustiti vremenu da kaze svoje.
Zanima me kako ce se Chrome nositi u integraciji s postojecim Google aplikacijama, a vjerujem da bi tu mogao puno toga napraviti - time mozda i pridobiti moju paznju. Chrome cu za sada koristiti kao skladiste tabova “za citanje” (odlican memory i process management ce tu jako dobro doci) i tako si rasteretiti Firefox koji uvijek grca u 80+ otvorenih tabova.
Nakon nekog vremena koristenja, YouTube filmici u Firefoxu se znaju smrzavati nakon prvih par odgledanih sekundi, bez obzira koristio se native Mozilla rendering engine, ili onaj IE-tab. Dakle, problem ocito nije u rendering enginu, nego negdje u ljusturi… kako god, problem je dosadan kao ush i random se javlja kod svih kombinacija Flash playera v 9.0.115.0 (na nizim verzijama se problem ne javlja) i Firefoxa (od verzije 2, do 3.04b - za koju kazu da rjesava problem).
Firefox: 2, 3 < 3.0b4
Flash: 9.0.115.0
Flash have admitted there is a bug which causes this and reverting to a previous version will fix it, while the bug will be resolved in the next flash update.
1. Browse to C:\Documents and Settings\ u s e r n a m e \Application Data\Macromedia\Flash Player\#SharedObjects\GVP00001
2. Delete all the files and folders in this folder
3. Browse to C:\Documents and Settings\ … \Application Data\Macromedia\Flash Player \ macromedia.com \ support \ flashplayer \ sys
4. Delete all the files and folders in the directory
5. Restart Firefox
Once you have your rough draft laid out in CSS, and you need to start adding style, Rounded Cornr can save you a lot of time. Rounded Cornr quickly and easily creates images and CSS code for different box styles in an easy to use interface. It also offers an option to code it using only one image for all four corners, saving a minimal amount of bandwidth.
Amazon S3 down vec nekoliko sati. EU S3, US S3 serveri, Amazon Elastic Compute Cloud (API). Buduci da su mi do sada sluzili samo kao redundantna-podrska u kriticnim peak-situacijama, ovaj outage sam lako zaobisao jednostavnim uklanjanjem redirecta. Ja sam sitna riba i servis mi ne ovisi o S3. Ali, ali… postoje mnogo vece ribe, postoje ribe koje su poslusale Bezosova nagovaranja da svoje servise TEMELJE na pouzdanoj, sigurnoj, scalable, blah-blah tehnologiji. Njih je ovaj outage kostao ne samo zivaca, vec sasvim konkretnih i opipljivih megabucksa!
Amazon S3 je vec bio down par sati u veljaci 2008. Znatno kraci pad i s manjim opsegom nego ovaj.
Prije kojih godinu dana bio sam pogodjen iGoogleovom greskom koja je rezultirala visednevnom nemogucnoscu koristenja servisa odredjenom broju korisnika. Opet me nije previse pogodilo, jer sam onaj najvazniji gadget (GoogleReader) pratio na njegovim izvornim stranicama. Ali opet se postavlja pitanje - sto ako jednog dana rikne Gmail, a bas tih dana mi dodju vrlo vazni mailovi? Sto ako jednog dana rikne Google tutto-completo (nemojte se smijati, ni dot-com-boom nitko nije predvidio) i svi njegovi servisi?!
No, bit ce zanimljivo pratiti kakve ce ovo imati posljedice po SaaS filozofiju i smjer u kojem su se razmisljanja o buducoj infrastrukturi Interneta pocele odvijati… Dobro je sto se ovo dogodilo u trenutku kada cloud-computing ("oblacno racunarstvo"(?)) nije toliko rasirilo i cini samo manji dio online infrastrukture.
Nisu ovdje u igri samo Google i Amazon, koji jos i imaju snage za amortizaciju i sigurno trostruke disaster recovery scenarije. Ovo je pitanje koje se vise tice svih onih koji ce se u ovoj “oblacnoj” atmosferi tek pojaviti, nudeci “sigurne” i “skalabilne” usluge, trzisno se nadmecuci s vise-za-manje (para). Ovo se tice svih onih koji ce takve udice progutati i mozda jednog dana skupa sa svojim domadarom nestati s lica zemlje - kao da nikada nisu ni postojali.
Za CDN (Content Distributed Network) se jos i mogu napraviti redundantna rjesenja, ali sto hostanim aplikacijama, iznajmljenim procesorskim snagama, bazama?!
Predvidjam da ce se u buducnosti sve vise poceti govoriti o CDN failover scenarijima. Predvidjam i standarde za migraciju, replikaciju i redundancy management medju CDN-ovima.
Svidja vam se neka mjuza na necijoj MySpace stranici, ali ne postoji opcija za download pjesmice? Umjesto tuge, jada, cemera i kuknjave predlazem jedan od ova dva nacina…
1. Posjetite: http://file2hd.com/
- upisete URL stranice i pri dnu imate spremne MP3ice za download i to u 96kbps i original_bitrate verzijama
2. Pronadjite na torrentima programcic MySpace mp3 Gopher. Ili klinite na link ispod [ova verzija radi na dan 2008 07 20]: http://www.torrentz.com/f2d3b81d414c16e05368f567f6857f262e07de5e
Lik je patentirao napravu koja projicira fotku iz fotoaparata (s filma) na objekte u koje se usmjeri “fotic". Ali, nije dumina u tome, nego u cinjenici da se slika projicira u trenutku kad okine flashe s tudjeg fotoaparata. Foto-uzurpator!
Npr. lik fotka ribu na ulici, a foto-uzurpator se nalazi u blizini i usmjeri svoju napravu (fulgurator) prema ribi. Lik okine fotku (s flashom) i u tom trenutku se na ribu iz fulguratora projicira golo tijelo npr. Lare Flynn Boyle… ili necije jetrve…
http://www.juliusvonbismarck.com/fulgurator/
Julius von Bismarck’s ‘Image Fulgurator’ projects stealth images into the photographs of strangers, while keeping those images invisible to human eyes. Depending on whom you ask, it’s either a clever hack or an obnoxious intrusion. Naturally, we had to find out more.
Yesterday, von Bismarck’s device made its premature debut on the internet. Today we met him in his hometown, Berlin, to talk about the device, the thinking behind it and the inevitable deluge of e-mails from viral marketers wanting use it to smash their way further into our brains.
But first, about that name: According to von Bismarck, ‘Image Fulgurator’ comes from the Latin for ‘lightning’ (fulgur) and means ‘Flash Thrower’.
First, let us make clear that von Bismarck has applied for a patent for the Fulgurator. He stressed this point. Of course, anyone with the requisite skills can make one of their own, but Julius wants to keep some degree of control over commercial use.
To see why, consider how it works. The device is a modified camera – in this case, an old manual Minolta SLR. A flashgun fires through the camera in reverse, from the back. The flash picks up the image of a slide inside and projects it out through the lens and onto any surface.
The trick is in the triggering. The Fulgurator lies in wait until an unsuspecting photographer takes a picture using a flash. When the device’s sensor sees this flash, it fires its own unit, throwing up an image which is captured by the hapless photographer’s camera while remaining unseen by the naked eye.
Now, imagine for a moment that an ad agency gets hold of this. You couldn’t take a photograph of a tourist attraction ever again without worrying that some marketing crap would be pushed into your camera. As Julius told me, "I see it as a piece of media art. It could be a dangerous attack on media. [But] if people do shit with it, I feel bad."
This is the reason for the patent, and although he doesn’t have an army of lawyers behind him, Julius seems to be on top of the legal side of things. He’s also moving fast. This Fulgurator is the first prototype, and the most primitive. "It works, but it’s not practical," he says. "In a few years time, huge companies will use it for shit," but by then, Julius will be at the next stage. He already has more working models (which I wasn’t allowed to see) which are refinements of this one.
At its simplest, the Fulgurator is a very easy hack. A hole has been cut in the back of the camera and a piece of clear, roughened acrylic put in its place. A rear tube allows the flashgun to slide in. Everything else remains intact. The slides themselves are just rolls of processed film (the pictures are snapped from Julius’ computer monitor) returned to their canisters and then loaded up as if a normal film. Any image on the reel can be selected by turning the rewind crank. When you hold the Fulgurator up, you can see the subject on the acrylic screen and line it with the image on the slide. You can also focus, to ensure the final projection ends up sharp.
But the magic happens inside the flash sensor on the top. Ordinary slave flashes (which fire whenever they detect another flash going off) aren’t reliable enough, so von Bismarck built his own circuitry. The original was based on the Arduino platform but has evolved into a custom-made circuit. The knobs were for tweaking the settings on the prototype, stuff which is all now taken care of by software.
Julius had ripped the guts out of the box for a newer version, so we couldn’t see it in action, but we know what it does. Modern digicams flash for all kinds of reasons, such as red-eye reduction and focus assistance. What Julius’ circuit does is to ignore all of these false strobes and fire only when the photo itself is taken. This is the secret sauce of the Fulgurator.
Clearly, this is a prankster’s dream. But Julius thinks it has a serious side, too, which is why it looks like a gun. "It’s important that people know it’s not just a funny idea," he told me, "it can also do negative stuff."
It seems that the "negative stuff" consists mainly of pissing people off, like the aforementioned marketing uses. We’re looking forward to seeing what the next gen hardware can do, though. Take a look at this picture:
The message is ‘Fulgurated’ onto a black laptop bag. Turning black to white is powerful stuff, but it’s not just slogans that can be fired. Although Julius frames his nerdery in an artistic context (he’s studying a German Diploma called "Digital Class" at UDK, Berlin’s art school) he clearly has a soft spot for tomfoolery. In the image below, you see an image of a naked body which can be projected onto a clothed person.
The possibilities are endless, but Julius is just getting started. When I suggested that he put his own URL on the images, so victims could later check to see just what had happened to their pictures, he seemed surprised (later I learned that he does plan to include it later, to promote his own work). In fact, the whole thing has happened a little too quickly.
Yesterday’s ‘leak’ onto the internet was intended as a place holder for an entry into Ars Electronica’s Cyber Arts exhibition in September. Instead, it catapulted him into internet fame and he has already received high-priced offers for his work. If he manages to keep on top of things, this little hack could make him some big money.
Nedavno sam se nasao u situaciji da sam zbog ogromne navale (unmetered, ali ogranicen bw) morao naci hitno rjesenje, ili trpiti bujicu prigovora korisnika, ostrice tomahawka i voodoo kletve. Uglavnom, sadrzajno se radilo o fotkama, ali kad je pipa uska, a potraznaj velika -> sve steka. Srecom, trazeni materijal se mogao tocno odrediti i to je uvelike olaksalo rjesavanje problema.
Dakle, trebalo je neko brzo i handy rjesenje, bez previse kodiranja i drkanja -> i tu se sjetih S3!
U vrlo, vrlo kratkom vremenu (kojih 15tak minuta efektivno), uz malu pomoc kolege Kukija (rewrite rule), moze se:
- regati S3 account
- prilagoditi posluzivanje na serveru (redirect na S3 za trazenim sadrzajima pomocu .htaccesa) - ovo je jednostavan file requst rule za sve fileove u odredjenom direktoriju
RewriteEngine on
RewriteCond ^/%{REQUEST_FILENAME} !-f
RewriteRule ^(.+) http://bucket.s3.amazonaws.com/dir/$1
- pronaci optimalno rjesenje za upload sadrzaja na S3 i uploadati fileove na S3 (pomocu odlicnog S3fox plugina za Firefox, vrijeme uploada nije uracunato u onih 45 minuta ) et voila - trazeni materijal se posluzuje po relativno jeftinim tarifama.
30tak GB, koliko je taj peak pojeo - nesto sitno iznad 5$. Very nice!
Kako je peak trajao svega dan-dva i promet se vratio u normalu, ali S3 ostaje kao jocker u rukavu za sve prometno zahtjevne situacije. Ovaj put ga imam u vidu i pri planiranju i razvoju, a ne samo kao vatrogasnu mjeru.
Evo par handy sitnica za PHP za streamanje (korisno kod velikih datoteka) na S3 server.
http://www.ogleearth.com/2007/07/kmls_region_ama.html
http://neurofuzzy.net/index.php?s=s3 + http://www.neurofuzzy.net/2006/08/26/amazon-s3-php-class-update/
http://www.missiondata.com/blog/linux/49/s3-streaming-with-php/
http://cesarodas.com/2007/09/php-amazon-s3-stream-wrapper.html
http://www.phpclasses.org/browse/package/4144.html
Odlican primjer .htaccess-a koji bi trebao odbiti dobar dio napada se moze naci ovdje: My Webapplication Firewall Tutorial. Najbolja preporuka za ovaj vid zastite lezi u cinjenici da je pravila sastavila osoba kojoj je domena securitya web aplikacija dobro poznata.
ovakav ili slican .htaccess + ModSecurity + dobro definirana pravila na HW/SW firewallu (block all, allow only necessary na ogranicenim IP rangeovima) i server bi mogao biti poprilicno siguran…
Youtube has slowly started to create better quality versions of many videos, adding links that say, “Watch this video in higher quality.” See this High Quality example and compare it to Youtube’s Normal Quality.
Comparison of Normal Youtube vs Youtube High Quality
-
Normal Youtube
High Quality Youtube
Screen Res.
320 x 240
480 x 360
Bitrate
≅ 200 kbps
≅ 900 kbps
Audio
22KHz 64 kbps Mono ABR
44.1KHz 96 kbps Mono CBR
Frame Rate
30
30
Video Codec
Flash Sorenson
Flash Sorenson
Audio Codec
Mp3
Mp3
Getting iPod compatible mp4s!
Adding &fmt=6 to the end of any youtube video’s url will give you Youtube’s new high quality setting. Changing the number from 6 to something else yields different formats though it’s not obvious which numbers work. Format 18 generates an mp4 using h264 with AAC stereo, which is compatible with video iPods. This is way better than using a service like vixy.net, which transcodes the crappy quality youtube vid into an mp4. Using fmt=18, you get a video transcoded from the original clip the user uploaded. The bitrate is lower on the mp4 version, but since the resolution is smaller it compensates. The h.264 codec has better looking videos at lower bitrates anyway. We finally see stereo on youtube with the mp4 version! It has a widescreen 16/9 aspect ratio rather than 4/3.
Correction:
Previously I thought the mp4 screen resolution was 480 x 270, but it’s also 480x360. It could be that both formats have the possibility to be 480x270 if their aspect ratio is close to 16/9 width/height. The mp4 version may add an additional small audio gain and a small sharpening effect.
Video downloaders like keepvid still work. Enter the url, click download, now grab the link and add &fmt=6 or &fmt=18 (for mp4) to the end. The good people at lifehacker created an easy to use firefox extension that will put a download link under each vid. You can also get the download url if you follow my wireshark tutorial but the process is pretty tedious.
You can do it manually too, but it’s annoying. Go to any video on youtube, right click then click view source. Click ctrl+F, which will open a searchbox and type &t=. Next copy the value after the t= but before any “&” characters. Grab that and the video_id and your set. The vid id is the v=something part of the url. Just copy the variables into the url below.
www.youtube.com/get_video?video_id=&t=&fmt=18
Example Vid URL: http://www.youtube.com/watch?v=pVYp2sgA9M0 Output: right click - save as
You may want to pass it to a download manager like wget. If you load it in the browser it will display a bunch of gibberish while it loads the entire video’s ASCII representation into your browser.
Howto Get Videos to Play HQ by Default
This option has not been implemented on many accounts but the howto is already present in the youtube help pages. You need a youtube account to be able to do this.
Go to your Account page.
Under “Manage My Videos” click the “HQ Video Playback Setting” link.
Select the playback setting that makes sense for you.
Click the “Save” button.
Criteria for a Video to Become HQ
The exact settings aren’t know yet for the video to become high quality. We could assume that the exact minimum settings are the same as encoded format listed above, however youtube has changed their “