Clonezilla Alternative Interfaces The LLVM Compiler Infrastructure Project Linear Programming In my last post on game theory, I said that you could find an optimal probabilistic grand strategy for any two-player, simultaneous move, zero-sum game. It’s done through something called linear programming. But linear programming is useful for a whole lot more than just game theory. Linear programming is a general technique for solving a huge family of optimization problems. The basic idea of it is that you have a linear function, called an objective function, which describes what you’d like to maximize. For example, imagine that you run a widget factory, which can produce a maximum of W widgets per day. You can reduce this to the following: You want to maximize the objective function p1x1 + p2x2, where x1 is the number of type 1 widgets you’ll produce, and x2 is the number of type 2 widgets. x1 + x2 ≤ W. The fourth one is easy to overlook, but it’s really important. Maximize: where Once you’ve got the constraints worked out, you need to do something called adding slack.
Free or Cheap on-line Fax Service? Dear Lazyweb, I seem to find myself needing to send (and occasionally receive) faxes now and then. When I'm at work, this is no big deal. Can you recommend a free or cheap (maybe one that accepts PayPal) service that takes documents (TIFF or PDF) via web form and will fax them to the number of my choice? I keep thinking that the fax will die off, but it continues to add work to my life. Thanks! Posted by jzawodn at September 06, 2007 12:37 PM Disclaimer: The opinions expressed here are mine and mine alone. Privacy: I do not share or publish the email addresses or IP addresses of anyone posting a comment here without consent.
The Ultimate Wget Download Guide With 15 Awesome Examples wget utility is the best option to download files from internet. wget can pretty much handle all complex download situations including large file downloads, recursive downloads, non-interactive downloads, multiple file downloads etc., In this article let us review how to use wget for various download scenarios using 15 awesome wget examples. 1. Download Single File with wget The following example downloads a single file from internet and stores in the current directory. $ wget While downloading it will show a progress bar with the following information: %age of download completion (for e.g. 31% as shown below)Total amount of bytes downloaded so far (for e.g. 1,213,592 bytes as shown below)Current download speed (for e.g. 68.2K/s as shown below)Remaining time to download (for e.g. eta 34 seconds as shown below) Download in progress: Download completed: 2. $ wget $ ls download_script.php?
Débuguer facilement avec Valgrind Version en ligne Table des matières Débuguer facilement avec Valgrind Valgrind est un programme créé en 2000 par Julian Seward qui a depuis été rejoint par d'autres programmeurs. Il a été conçu principalement pour les programmes écrits en C et C++ et ne fonctionne pas sur Windows. Valgrind possède plusieurs outils dont memcheck qui permet de : vérifier les accès en lecture et en écriture ;contrôler les fuites de mémoire ;vérifier que l'on n'utilise aucune variable non initialisée. Tout ceci permet notamment de débusquer très facilement les fameuses erreurs de segmentation qui en ont terrorisés plus d'un. Valgrind permet aussi de faire du profilage de code (callgrind), du cache (cachegrind) et du tas (massif), ainsi que du débugage d'application multi-threadée (helgrind). Comment utiliser valgrind ? Comme je l'ai dit en introduction, valgrind a été principalement conçu pour les programmes écrits en C ou en C++. Hello, world ! #include<stdio.h> int main(void) { printf("Hello, world ! valgrind .
Stefanie Posavec "On the Map" *notcot in design , 23:52 NOTCOT Note: Here is another post continuing on Justine’s (aka RUGenius’) adventures in Sheffield, it took a bit of researching, but she’s come back to me with some MIND BLOWING infographics from Stephanie Posavec, you definitely need to click on the images after the jump to see them in full resolution where you can see what every curve and color represents. I kid you not, you will not see Kerouac’s On The Road the same again… During my recent trip up to Sheffield, I was fortunate enough to be staying next door to the Millennium Galleries, who hosted a portion of the citywide Art Sheffield event. Among the exhibits, was one called “On the Map” (more info here as well), which uses craft and design to understand the symbolic and representative nature of maps. Works included a dress made of maps, numerous old maps of London, a gorgeous Kerr | Noble representation of the River Thames through graphic design and the words of the John Banck’s Description of London.
XML+Java - WSDL viewer WSDL has its constructive logic, but it is hard to read / understand the content by business professionals (mostly non-programmers). Here is a small tool to visualize the web-service in a more intuitive way. I developed this transformation for WSDL interface analysis (to understand the service business functionality). The version 3.1.xx has experimental support for WSDL 2.0 and modularization for better development / maintenance. Please enter into the following input field the URL address of a WSDL and click on Submit. Downloads: You can download the XSLT transformation. The modularized development package can be downloaded in zip or tar.gz format. WSDL-viewer was contributed into Apache Woden project. Usage A set of WSDL-s can be converted into web pages (HTML) in a batch process (i.e. an ANT script, that has native XSLT support). Another elegant option is to add the userfriendly face directly into the WSDL. The WSDL is just an XML. I hope you will find the transformation useful.
For Your Script Loading Needs As JavaScript usage has skyrocketed over the last few years, so has the sheer number of scripts that are being loaded in an average web page. With these script tags comes a lot of baggage, such as blocking and lack of dependency management. Today, I'd like to bring your attention to a number of JavaScript loaders, which are mini toolkits that significantly simplify how you add and load scripts. The Problem with Simple Script Tags They Block the Page The page stops 'happening' while the script is downloaded. JavaScript files loaded using the script tag are blocking by nature. No Easy Way to Manage Dependencies Lack of dependency management is a big drawback. Next up comes the issue of handling dependencies. Available Choices The initial idea for this round up was sparked by a post over at Hacker News about making a list of JavaScript script loaders, roughly a month ago. Now that sufficient time has passed, I think that list is going to be quite massive. HeadJS Author: Tero Piirainen Size: 6.3 KB
USBHID C bindings - Cookbook USBHID C/C++ interface for mbed-based HID devices¶ There appear to exist two libraries that claim to support cross-platform HID device development for C/C++: HID API (tested on Linux, Windows and Mac OS X - shouldn't need a Windows driver) libhid (tested on Linux only, not in Ubuntu packages anymore - needs the libusb driver) Both will be discussed in this cookbook entry. mbed code¶ We'll run the USBHID_TestCase program on the mbed, to check that the bindings work, as suggested on the USBHID bindings cookbook page :) This will simply send some random data to the PC and display any received data through the USB serial port. I recommend clicking on the m0-beta and the USBDevice libraries and updating them to the latest version, using the button on the right hand side. This is common to both libraries. mbed wiring¶ We'll be using an "external" USB connector, connected to D+, D-, GND and optionally Vin, as shown on the USBDevice page. Linux / Mac OS X (using gcc/g++)¶ Windows (using Visual Studio)¶