Daily Archives

Articles indexed Thursday March 11 2010

Page 24/97 | < Previous Page | 20 21 22 23 24 25 26 27 28 29 30 31  | Next Page >

  • preg_match_all image source

    - by David
    I have the following regex expression which is to extract the source of any img tag in HTML. /(<img).*(src\s*=\s*"([a-zA-Z0-9\.;:\/\?&=\-_|\r|\n]{1,})")/isxmU However, it doesn't appear to be matching the following: <IMG SRC='http://www.mysite.com/pix/lens/mtf/CAEF8512L.gif'> How can I build it to match this as well?

    Read the article

  • Optimizing a bin-placement algorithm

    - by user258651
    Alright, I've got two collections, and I need to place elements from collection1 into the bins (elements) of collection2, based on whether their value falls within a given bin's range. For a concrete example, assume I have a sorted collection objects (bins) which have an int range ([1...4], [5..10], etc). I need to determine the range an int falls in, and place it in the appropriate bin. foreach(element n in collection1) { foreach(bin m in collection2) { if (m.inRange(n)) { m.add(n); break; } } } So the obvious NxM complexity algorithm is there, but I really would like to see Nxlog(M). To do this I'd like to use BinarySearch in place of the inner foreach loop. To use BinarySearch, I need to implement an IComparer class to do the searching for me. The problem I'm running into is this approach would require me to make an IComparer.Compare function that compares two different types of objects (an element to its bin), and that doesn't seem possible or correct. So I'm asking, how should I write this algorithm?

    Read the article

  • Does Your Browser Behave?

    Last June, we launched the Sputnik JavaScript conformance test suite, a comprehensive set of more than 5000 tests. Today we're releasing a test runner for Sputnik, that allows...

    Read the article

  • Survey of MySQL Storage Engines

    MySQL has an interesting architecture that sets it apart from some other enterprise database systems. It allows you to plug in different modules to handle storage. What that means to end users is that it is quite flexible, offering an interesting array of different storage engines with different features, strengths, and tradeoffs.

    Read the article

  • Survey of MySQL Storage Engines

    MySQL has an interesting architecture that sets it apart from some other enterprise database systems. It allows you to plug in different modules to handle storage. What that means to end users is that it is quite flexible, offering an interesting array of different storage engines with different features, strengths, and tradeoffs.

    Read the article

  • Using the Windows 7 Sensor and Location Platform from C#

    Windows 7 contains many exciting new features for developers and the great thing is that C# and .NET developers are no exception. One of the new features is the support for sensor devices that can be programmed effortlessly. Read on to learn about the Sensor and Location Platform in Windows 7.

    Read the article

  • Tutorial: Why Use GRUB2? Good Question! (part 3)

    As we come to the end of Akkana Peck's excellent series on mastering GRUB2, it's not clear what advantages it has over legacy GRUB, or even good old LILO. It seems it's gone backwards. In today's installment we learn how to translate some common and mysterious error messages, and how to manage a multi-boot system with GRUB2.

    Read the article

  • Virtual Linux

    Virtual Linux has many desktop uses, yet it&#146;s really enterprises that are most actively driving virtual Linux&#146;s development.

    Read the article

  • Get started with Omnis Studio

    <b>Linux User and Developer:</b> "Omnis Studio is a cross-platform (Windows, Mac and Linux) Rapid Application Development tool. It allows you to quickly build applications using a combination of graphical elements as well as a code editor."

    Read the article

  • 16 things that could be improved in Ubuntu 10.04

    <b>OMG Ubuntu:</b> "In this post I'm going to list 16 things that I think could be improved in Lucid. I'm going to try my best to address the issues in detail and offer solutions. Of course, all of this is also a matter of opinion too. The object of this post is to make you think about ways we could improve each one."

    Read the article

  • Google's Slow March Toward World Domination

    <b>Daniweb:</b> "Google does a lot of things well, maybe too well, and it's adding to its portfolio of tools on a weekly basis. At some point you have to look at the number of pies in which Google has its fingers and start to get a little frightened of this company."

    Read the article

  • Linux Arpeggiators, Part 1

    <b>Linux Journal:</b> "In my last article I looked at performance loopers for Linux. This week I begin a 2-part review of similar applications called arpeggiators."

    Read the article

< Previous Page | 20 21 22 23 24 25 26 27 28 29 30 31  | Next Page >