background preloader

Dev

Facebook Twitter

Plus.google. ShiftEdit. How-To Geek » How to Hide Zip Files Inside a Picture Without any Extra Software. Since images are read from the header down, and zip files are read from the footer up, you can easily merge them as one single file , and no one will ever know. Read on to find out how. Embedding Zip Files Inside GIF Files Note: During tests GIF images were the only image type to give consistent results, therefore we recommend you use them as well. The first thing you will need to do is drill down into the directory that’s holding both your GIF image as well as your zip file, so press the Win + R keyboard combination, type cmd into the run box and hit enter.

When the command prompt opens you can use the cd command to change directories. All it takes to merge the files is one simple copy command, the trick is to use the /B switch like so: copy /B picture.gif+YourMenu.zip newfile.gif This assumes: The original image is named picture.gifThe zip file you want to hide in your image is called YourMenu.zipThe combined file will be called newfile.gif That’s all there is to it. How to Create a Secretly Disguised Folder Without Extra Software.

Almost anyone knows how to make a “hidden” folder in Windows, most people also know how to make Explorer show hidden folders. Instead, if your folder looked like an innocent shortcut no one would know you have data in there. Using Command Prompt to Disguise a Folder In this example I have an ordinary folder on the root of my drive called How-To-Geek. To disguise it, I need to open a command prompt and navigate to the directory where its resides, since it is on the root of my drive I can use: Now all I need to do is rename it and include the CLSID for Computer: ren How-To-Geek How-To-Geek.{20d04fe0-3aea-1069-a2d8-08002b30309d} Now if I go back to my folder it looks like a link to Computer, and if I click on it, it even opens Computer.

Using Command Prompt to Reveal Your Folder You will need to navigate to the directory where the disguised folder resides. Then all you need to do to unhide a folder is rename the folder back to what it was before: Using Batch Files. Cachea tus páginas en 5 pasos (PHP) Cachear tus páginas puede ser algo realmente útil y más aún si tus paginas usan muchas conexiones a la base de datos y están generados con un lenguaje cómo Php, sobre todo cuando hablamos de hostings compartidos en los que el número de peticiones a las bases de datos esta limitado. Cuando tus páginas son cacheadas el servidor no perderá ni tiempo ni recursos en regenerar una y otra vez estas, unicmanete las cargará de la cache. Vamos a ver cómo podríamos cachear nuestras páginas con Php en tan sólo 5 minutos.

Necesitaremos saber tres cosas antes de comenzar: Primero si nuestro sitio esta desarrollado en PHP, segundo deberemos saber dar permiso 777 a una carpeta de nuestro directorio (en esta carpeta se albergarán las páginas cacheadas), si no sabes hacerlo pregunta a Google que seguro que resuevle tu duda y por último necesitaremos saber la ruta completa del directorio en cuestión, esto quiere decir ruta física (/home/pepito/public_html/) . … y esto es todo amigos. Via: Ibzi (Inglés) How to Install KVM and Create Virtual Machines on Ubuntu. If you’re using Linux, you don’t need VirtualBox or VMware to create virtual machines. You can use KVM – the kernel-based virtual machine – to run both Windows and Linux in virtual machines.

You can use KVM directly or with other command-line tools, but the graphical Virtual Machine Manager (Virt-Manager) application will feel most familiar to people that have used other virtual machine programs. Installing KVM KVM only works if your CPU has hardware virtualization support – either Intel VT-x or AMD-V. Egrep -c ‘(svm|vmx)’ /proc/cpuinfo A 0 indicates that your CPU doesn’t support hardware virtualization, while a 1 or more indicates that it does. Use the following command to install KVM and supporting packages. Sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager Only the root user and users in the libvirtd group have permission to use KVM virtual machines. Sudo adduser name libvirtd After running this command, log out and log back in. Virsh -c list.

Haskell

Flash. Css. QR code. Flash to ipad. Cache. Vi Complete Key Binding List. This is not intended as a tutorial. It is a reference on what every vi key binding does, followed by some useful vi tricks and tips. An expert will probably know most of these already, but an intermediate vi user will find valuable information, and even an expert may learn a thing or two. complete key binding reference Definitions UNBOUND - this key is not normally bound to any vi commandword - a lower-case word ("w", "b", "e" commands) is defined by a consecutive string of letters, numbers, or underscore, or a consecutive string of characters that is not any of {letters, numbers, underscore, whitespace} Word - an upper-case word ("W", "B", "E" commands) is a consecutive sequence of non-whitespace. sentenceparagraphcursor motion command - any command which positions the cursor is ok here, including the use of numeric prefixes.

In addition, a repeat of the edit command usually means to apply to the entire current line. Key Bindings in Editing Modes Repitition Counts Multibuffer :map v :! Tags.

DRM

Quick and simple image placeholders. A Smarter Way to Serve High-Resolution Images. Given enough time, all simple, already solved problems of the web eventually rear their ugly heads again. Remember when limited bandwidth was a huge problem? Then bandwidth was infinite. Now it’s a problem again. And that means serving up images is once again a complex problem with no elegant solution. Arguably the best solution right now is to send low-res images to every device. While that’s the safest solution for now, the web doesn’t get better if no one takes any risks. The latest image cleverness we’ve seen is Adam Bradley’s Foresight.js. Part of what makes Foresight.js appealing is its use of the proposed CSS image-set() function, one possible solution to the problem of serving up the right image at the right time. Foresight.js takes the image-set() proposal and uses an ingenious hack to make it work in other browsers: the font-family property.

It’s a hack to be sure, but it’s our favorite kind of hack: clever and functional. Ffmpeg audio/video manipulation. How To Force File Download With PHP. HOWTO: quick reference on audio & video encoding with ffmpeg. The purpose of this article is to serve as a quick reference on how to use ffmpeg for audio and video encoding. Boy can these ffmpeg flags be tricky to remember, especially codec names: they can really drive me crazy :) Let's cover audio encoding first (MPEG, MP3, AAC, 3GPP AMR, OGG, FLAC & WMA). Then, we'll talk about video (MPEG, FLV, XVID, MP4, Theora, WMV, H.264 & MKV), with a tiny bit of benchmarking as well. Finally, we'll try some heavy duty video compression for mobile devices.

BTW, all these examples work (!) With the latest ffmpeg and all output files have been successfully tested with VLC 0.9.8a. 1) Audio encoding The audio.wav sample file is PCM audio (pcm_sb16le) inside a WAV container. Some generic audio options: AAC audio, Constant Bit Rate (CBR)% ffmpeg -i audio.wav -f adts -acodec libfaac -ab 192k audio.aacAAC audio, Variable Bit Rate (VBR)% ffmpeg -i audio.wav -f adts -acodec libfaac -aq [0-255] audio.aac0:lowest quality, 255:highest quality Some generic video options: 19 ffmpeg commands for all needs. Getting infos from a video file ffmpeg -i video.avi Turn X images to a video sequence ffmpeg -f image2 -i image%d.jpg video.mpg This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg. Turn a video to X images ffmpeg -i video.mpg image%d.jpg This command will generate the files named image1.jpg, image2.jpg, … The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI.

Encode a video sequence for the iPpod/iPhone ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4 Explanations : Source : source_video.aviAudio codec : aacAudio bitrate : 128kb/sVideo codec : mpeg4Video bitrate : 1200kb/sVideo size : 320px par 180pxGenerated video : final_video.mp4 Encode video for the PSP Extracting sound from a video, and save it as Mp3 Convert a wav file to Mp3 Convert .avi video to .mpg. MP4Box 0.4.6 rev2735. OMA DRM | GPAC.

In order to encrypt a 3GP/MP4 file into a PDCF file, MP4Box uses the same process as ISMA encryption, only the drm file syntax changes. Just like any XML file, the file must begin with the usual xml header. The file encoding SHALL BE UTF-8. The file is then a collection of OMATrack elements placed under an OMADRM document root (currently ignored).

Each element describes all OMA DRM information needed to encrypt a given track. An OMATrack element may have children describing the optional textual headers defined in OMA DRM 2.0. Each textual header is inserted as is during OMA encryption, so be carefull not to specify twice the same header. XML Syntax Semantics trackID : specifies the track ID to encrypt. The following example shows how to encrypt a file with one track, using selective encryption of RAP samples, embedded keys and no IPMP signaling. The following example shows how to encrypt a file with one track, without slective encryption, a KMS URI and no IPMP signaling.

Mobile detection

Char0n/ffmpeg-php. CodeScale PEAR channel. EaselJS: A Javascript Library for Working with the HTML5 Canvas Element. Recent Updates Follow @CreateJS November 2014 Updates in preparation for next release (coming soon).New class model, with big performance increases October 2014 Lots of bug fixes and pull requests.New 'Extras' folder in GitHub with useful tools and classes July 2014 Major overhaul of Graphics to include a useful command pattern, and a big performance increase.Added Graphics.store() / unstore() The Story Why we built EaselJS About EaselJS EaselJS provides straight forward solutions for working with rich graphics and interactivity with HTML5 Canvas.

Featured Projects Community Show & Tell. Ion Drift A port of the Flash game Ion Drift, b10b was able to build a CreateJS version in less than a day that hit target framerates on even the lowest devices, and outperformed ports to other libraries. By b10b b10b.

Node.js

PHP :: Convert 3gp Using Ffmpeg? Jul 24, 2007 I'm relatively new to PHP and am creating a website which will take uploaded files and convert them to FLV files for quick viewing using an FLV player. It is similar to YouTube. After a successful upload I hope to first convert the video file to FLV, and then create a thumbnail from the FLV file. In my upload script, the two commands follow eachother: exec("Video to FLV Conversion");exec("Thumbnail creation"); The video converts always, and on very small videos (below 500k) the thumbnail creation works as well... but for larger files, the thumbnail creation does not execute. But if I run only the "exec('Thumbnail creation');" after the FLV has already been converted, it creates the thumbnail.

My thoughts are that the Thumbnail exec() starts before the FLV Conversion exec() is completed. View 1 Replies View Related. Installing FFMPEG and FFMPEG-PHP on CentOS | Nazly [Web Log] Last few weeks couple of my colleagues were working on a website that required converting videos to FLV format which is much similar to what youtube does. Inorder to do this they were using ffmpeg which does all the video conversion. He also used ffmpeg-php which is an extension for PHP that allows to retrieve information regarding a video file. So I had to get a local development environment working for this particular project. I had an Ubuntu 7.04 box and found this tutorial for installing ffmpeg and ffmpeg-php. I was successfully able to get it working and my colleagues built the site and it was working very smoothly.

Now when we got to the stage of launching the site, I had to repeat all the installation on a live server as they don't come with ffmpeg or ffmpeg-php pre installed. Switch to working directory Download the source files needed Extract the Source files Create a directory for codecs & import them Install SVN/Ruby Get the latest FFMPEG/MPlayer from the subversion then run. What FFMPEG-PHP can do and how to use the most out of it. Need help using specific FFMPEG-PHP functions or some programming help? Let our experienced technicians help you debug your problem for FREE. Sign up today and post at our online community: FFMPEG-PHP Help Forums You’ve probably heard of ffmpeg-php and it’s wide usability mostly in sites that involve with videos such as YouTube or any other similar site. Here’s a bit of an introduction to it and how to use it. First thing, you’ve got to check that your web hosting provider actually has ffmpeg & ffmpeg-php extension installed on your account and then you could get started with ffmpeg.

Extension_loaded('ffmpeg') or die("ffmpeg extension not loaded"); If you get “ffmpeg extension not loaded” then your web hosting provider does not have ffmpeg installed, if you get nothing, then you’re one the good track! Ffmpeg-php is very simple to learn, what it is pretty much is an interface that works with the ffmpeg software to make it easier for PHP developers to access. 6.5. Encoding to MPEG format. MEncoder can create MPEG (MPEG-PS) format output files. Usually, when you are using MPEG-1 or MPEG-2 video, it is because you are encoding for a constrained format such as SVCD, VCD, or DVD.

The specific requirements for these formats are explained in the VCD and DVD creation guide section. To change MEncoder's output file format, use the -of mpeg option. Example: mencoder input.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video \ -oac copy other_options -o output.mpg Creating an MPEG-1 file suitable to be played on systems with minimal multimedia support, such as default Windows installs: mencoder input.avi -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \ -o output.mpg -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \ -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 Same, but using libavformat MPEG muxer: Hint: Ffmpeg-php.