background preloader

Create daemons in PHP

Create daemons in PHP
Everyone knows PHP can be used to create websites. But it can also be used to create desktop applications and commandline tools. And now with a class called System_Daemon, you can even create daemons using nothing but PHP. And did I mention it was easy? Update 4 Dec, 2012: Legacy Warning This class was relevant in 2009, and may still be to some people, but if you want to daemonize a php script nowadays, a 5-line Ubuntu upstart script should suffice. If you're still convinced you need to do this with pure PHP, read on. What is a Daemon? A daemon is a Linux program that run in the background, just like a 'Service' on Windows. You reading this page, would not have been possible without them. Why PHP? Most daemons are written in C. Reuse & connect existing code Think of database connections, classes that create customers from your CRM, etc.Deliver new applications very fast PHP has a lot of build in functions that speed up development greatly.Everyone knows PHP (right?) Possible use cases Beta

Posts Create a Windows 7 Live CD [How To] | Maintenance and System Tools About a year ago I set out to create me a Windows 7 live CD. Finally, I am able to present you with the How-To. But before we get into that, let’s review what a LIVE CD is. A Live CD is an actual Windows Installation that you carry with you on a USB Flash Drive or CD/DVD. The Windows Installation is portable, meaning that you can have your own windows running on any PC you encounter. The Live CDs are most commonly used to repair computers that have crashed or to rescue data from a hard drive before doing a fresh installation. In the Linux World it has been around for years ( and as Windows XP). Enough chit chat, let’s get on with it… The overview In order to create a Live CD from Windows 7, we need to download a utility called WinBuilder (download link at the end of this article). NOTE! Upon first launch, WinBuilder will open the Download Script Page, which allows you to browse through lots of available projects. Running the scripts NOTE! Making it easy Downloads NOTE! Useful Links About Thomas

How To Make Your Own Windows Live CD Live CDs as you know allow you to boot your computer from a CD-ROM and performs various functions on your system. Such Live CDs are excellent for recovering data, fixing problems or to have a custom desktop at your disposal when you are not at your own computer. While the Live CDs are common place in the Linux world, it’s not often that you hear about a Windows Live CD. Here today we are going to show you how to make custom Windows Live CD Tools Required Bart PEYour Windows installation CD Steps Download and install the latest version of Bart PE. All additional functionality that you want to add is done by means of plug-ins. Click ‘add’ and browse to the location where you stored the Windows XPE plug-in to add it. If the build process completes without any errors, you have made yourself a Live CD. Mine completed in just under 2 minutes without any errors and amounted to 270 MB with Windows XPE plug-in and 154 MB without it. Have you ever created a custom Live CD?

New cool list of Windows must have programs Updated: October 17, 2009 Welcome back to another must-have article. Today, I'm going to present a long list of superb Windows programs that should be an inseparable part of your arsenal. Introduction This article continues the legacy of its two-year old predecessor, the more recently published A-Z guide, which lists 26 best Windows programs for 2009, one application per letter, and the new Linux cool list, which, although oriented for the Linux operating system, contains a large number of cross-platform solutions also available for Windows. I sincerely hope you will enjoy this article, as it offers a wealth of useful information of free, robust, stable, productive software that will enhance the quality, efficiency and fun of your work in the Windows environment. Some small reservations ... Since these articles overlap rather heavily and yet each presents a different set of unique tools, your best bet is to start poring through slowly and compile what you find best for your needs. Blender

Web hosting, dedicated hosting, VPS hosting, webhosting by DreamHost A Comparison of Methods for Building Mobile-Optimized Websites There’s a debate over which technique of creating mobile-ready websites is the best. Google advocates creating responsive web designs, while Jakob Nielsen, a renowned usability consultant, endorses the creation of dedicated mobile sites (but he was subsequently slammed by some web designers). A third option is also gaining in popularity, where the web server renders the appropriate HTML and CSS from the same URL depending on the device a web page on the site is being requested from (which has been referred to as responsive design + server side components). This article will discuss each of these methods. Real-world examples of websites using a particular method are provided under each section. The mobile device used to test and gather data for all examples is an iPhone 4 using iOS 5.0. Responsive Web Design (RWD) Responsive web design (RWD) typically uses CSS3 media queries to adjust the layout of a web page based on the size of the user’s viewing area. Advantages of Responsive Web Design eHow

Useful Cheat Sheets for Web Designers By Jacob Gube Cheat sheets (also known as reference cards, reference sheets, etc.) not only helps you remember things quickly, but can also serve as wall decoration for your workspace. In this post, you’ll find 28 excellent, useful cheat sheets in various file formats for Photoshop, Dreamweaver, colors, typography, and other web-design related topics all in one page with pictures of each cheat sheet. If you’re looking for front-end web developer cheat sheets (more CSS, HTML, and JavaScript) check out Cheat Sheets for Front-end Web Developers. Photoshop Photoshop CS3 Keyboard Shortcuts Cheat Sheet Downloads: PDF (Windows), PDF (Mac) Keys for using the Layers palette (HTML) Photoshop Toolbox Reference (HTML) Photoshop Lasso Tool Cheatsheet Download: PDF Photoshop Brush Tool Cheatsheet Download: PDF Color RGB Hex Colour Chart Downloads: PDF, PNG Color Reference Guide (PDF) Web Designer Color Reference Hexagon Mouse Pad Download: GIF Web Safe Color Chart (HTML) Hexidecimal Color Chart (HTML) Typography Browsers

Httpd Wiki This is a wiki containing user-contributed recipes, tips, and tricks for the Apache HTTP Server (aka Apache Web Server or httpd). As this is a public wiki, please remember to consult the official documentation to verify what you read here. (If something here breaks your website, sorry!) Face to Face - Opportunities to meet httpd developers or users. You might want to look at the TitleIndex to view all the pages on this site.

Useful Web Design Proposal Resources, Tools and Apps | Design and UX from speckyboy Lets face it there is no enjoyment in writing a proposals. You became a web designer to build web sites, no one thought to mention anything about the processes you would have to follow to find new contracts and clients. Unfortunately, web design proposals are one of those essential processes you have to learn, and learn well. The biggest question I have asked myself in the past is – “Are they really worth all this hassle?” The answer sadly is YES, they are. A client contacts you regarding a new web site, you will discuss it first, you will then ask him to fill out a project questionnaire, and then they they will no doubt ask “How much will that cost?”. In this post you will find resources to help you write a successful web design proposal, that will help you to win contracts every time…. or at least most of the time! What are your thoughts on web design proposals? Writing a Website Design Proposal A website design proposal is a fancy way of saying quote. Gold Sample Proposal

20 Websites to Help You Master User Interface Design | Design and UX by Jacob Gube As web technologies progress, websites and web applications are becoming more responsive, providing us with more ways and techniques to interact with the users. Form, more than ever, has been superseded by function. The following websites deal with interface design, user experience, user-centered design, usability, and everything in between – all with the goal of enhancing the user’s interface. 1. Boxes and Arrows Boxes and Arrows is a peer-written journal and a premier source for information on interaction design, usability, and information design. 2. UX Magazine deals in the topic of user experience. 3. UXmatters is a non-profit web magazine devoted to sharing information on effective user experience techniques and becoming a leading resource for User Interface (UX) professionals. 4. A List Apart – the leading resource on standards-based design and development articles – has a User Science topic that covers various parts of designing the user’s interface. 5. 6. 7. 8. 9.

45 Incredibly Useful Web Design Checklists and Questionnaires « Keyurkr's Blog Designing websites can be a long and complicated process. Dealing with clients, designing prototypes, coding, programming, and testing – there’s a lot to keep track of and a lot to make sure gets done. That’s where checklists can make your life a whole lot easier. With lists of points covering multiple areas from content to usability to accessibility to standards, you’re a lot less likely to overlook important parts of a site. Below are 45 checklists to make your design process easier and more organized. Consider using these checklists as a jumping off point for creating your own customized list, based on your own needs. Also consider our previous articles: 15 Essential Checks Before Launching Your Website lists some important things to check before you make your sites public.10 Designer’s Checkpoints To Be Aware Of offers a list of things every designers should know about their sites. [By the way, did you know we have a free Email Newsletter? 1. 2. 3. 4. Dr. 5. 6. 7.

Why Every New Website Will Use Bootstrap | minimaxir So, I decided to spruce up the blog a little bit. The old WordPress theme I had used, Graphene, had a lot of useful functionality, such as a featured post slider and a topbar for placing social media buttons, but the theme itself didn’t make the blog look unique. Even with a few CSS tweaks to add custom styling, such as forcing the titles of blog posts to be in all-capital letters, (which makes users more likely to click them!) Therefore, I resolved to develop and design a unique WordPress blog theme effectively from scratch, in order to ensure that my blog had a truly distinctive look and functionality. About Bootstrap Twitter Bootstrap is primarily developed by Twitter employees Mark Otto and Jacob Thorton (you can tell they work for Twitter because they are one of the lucky few with a 3-character Twitter handle), developed primarily to speed up the development of new websites, and is open-sourced on GitHub for anyone to contribute changes to the project. Bootstrap on Minimaxir

Related: