replacement

Replacement for ViewBox in free for commercial use framework under Windows

Hello, I want to develop windows C/C++ program, but i need in it functionality like a Viewbox from .NET WPF. But i don't want buying Visual Studio platform because it has this control. Can anyone tell me something replacment for this? I want to do window, which after resizing, resizes its contents with good proportion (images buttons ...

Multiple character replace with python

I need to replace some characters as follows : & -> \&, # -> \#, ... I coded as follows, but I guess there should be a much better way. Any hints? strs = strs.replace('&', '\&') strs = strs.replace('#', '\#') ... ...

CSS image overlay for image hyperlinks

Hello, I have a menu made up of images and on a:hover I want to add a background image rather than simply doing image replacements (all in CSS, no JavaScript). However, if I simply change the background image, while transparency and horizontal alignment are fine, it's just at the wrong vertical placement. No matter what I try the backg...

PHP Find All Combinations

Hi all, I'm trying to find all possible combinations of a word, and have certain letters replaced. So, I have the following code: <form name="search" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <input type="text" name="searchterm" /> <input type="submit" value="Submit"/> </form> <?php function pset($array) { $re...

Replacing native VS 2010 (VC10) tr1 libraries with Boost.TR1

I have been using VS 2005 (VC8) with Boost.TR1 in the std::tr1 namespace by setting the Include Directories of VS to prioritize the boost tr1 headers as described here. Now I am moving over to VS 2010 (VC10) and I seem to be getting compilation errors using the same include method. The Include Directories are set to: [boost-root]\boo...

Java Replacement

I may be posting a premature question, and maybe I'm just freaking out for no reason, but the way Oracle is handling Java is not very promising. I am a nerd who fell in love with Java from the first sight... and use it all the time in my personal/freelance projects but now I am thinking of a replacement. I am fluent in C#/VB.NET too but ...

String replacement in latex

Hi, I'd like to know how to replace parts of a string in latex. Specifically I'm given a measurement (like 3pt, 10mm, etc) and I'd like to remove the units of that measurement (so 3pt-->3, 10mm-->10, etc). The reason why I'd like a command to do this is in the following piece of code: \newsavebox{\mybox} \sbox{\mybox}{Hello World!} \n...

How to create an android home screen launcher?

I had a great idea for a home screen launcher so is there any tutorials on how to create one? ...

How to create a custom home-screen replacement application on Android?

Can anybody tell me where to find information about how to write a custom home-screen replacement application? Can any application be a home-screen by just registering it with a CATEGORY_HOME intent? ...

Putting forward a solution to replace Typed datasets

Hi all, A project I am currently employed with will have some time soon to improve and specialise a product that is currently in use. We may have about 4 man weeks spare in which we could replace the typed datasets that are in use. The project is currently written in Vb.Net and we will definitely not have time to replace this code with...

Inserting multiple links into text, ignoring matches that happen to be inserted

The site I'm working on has a database table filled with glossary terms. I am building a function that will take some HTML and replace the first instances of the glossary terms with tooltip links. I am running into a problem though. Since it's not just one replace, the function is replacing text that has been inserted in previous itera...

A univsersal createPopup() replacement?

Currently createPopup() is only supported in IE (See http://help.dottoro.com/ljsxcrhv.php). Is there a univsersal createPopup() replacement? Or is conditional code required based on browser detection? Hopefully, I am looking for something that 1. not only provides the same functionality, but 2. has the same interface or at least cou...

javascript pattern replacement using backreference is not working

string.replace(/([\t])/g,"\\$1") is working fine where string.replace(/([\n])/g,"\\$1") is not working!!! any idea please??? N.B. string.replace(/\n/g,"\\n") is also working fine ...

Is Application.DoEvents() my only choice (in this case)?

I have some commercial equipment that I can connect to with a .Net library supplied by the equipment manufacturer - so I have no control over the library or the equipment, only my code. The manufacturer has set their system up so that if you are not connected to the equipment via their library then it works fine. However, when you do c...

Client Script Replace Problem with .NET 4.0 ScriptManager

Hello, I want to replace the WebUIValidation.js client script (located in System.Web assembly) with my own custom script using the new script replacement features in .NET 4.0. The replacement works fine in a simple sample form I created, but in my much more complicated wizard form it fails. On partial post-back the ScriptManager writes...

JavaScript for replacing text in the body tag of pages loaded into an open source browser for Android

I'm writing a JavaScript for an open source browser available for Android to replace the text in the body tag of the pages loaded into the browser with some different text. This should be worked in away that once a page get loaded into the browser, this JavaScript executes & the replacements take place & finally the page with replaced ...

Look Around does not deliver expected result with .net

I want to use a look-ahead regex for replacement with the System.Text.RegularExpression.Replace(...) method. Now I am wondering what's wrong. Look at this example code: string input = "stackoverflow"; string replacement = "#"; var pattern1 = "(?=[a-z])o"; var result1 = Regex.Replace(input, pattern1, rep...

Image replacement in jQuery

I can't get this to do what I want it to do! I'm trying to replace large images with smaller ones for mobile browsers. Here is the code: function js_imgs() { if (document.documentElement.clientWidth <= 600) { $("img").each(function(){ if ($(this).hasClass('big')) { var preSrc = $(this).attr('src'...