I need a similar function in PHP for this JavaScript function
text = text.replace(/ffc/g, "Hello");
I think preg_replace will do, but i'm not sure how to write the expression..
Hello, I have a written a game that works fine on the 'normal' 320x480 screen of my G1.
I tried it on a friends Xperia x10 and it leaves a large blank section on the right hand side of the screen.
How do I fix this? I've read that I need to include an extra directory in res/drawable for different densities. How do I do this?
Thanks for any help
Caroline
hello...
im trying to redirect "search.php?q=somethinghere" to "search/somethinghere/" but I can't do it! I'm trying to send form "<form action="search/" method="get" name="search">" like this but url goes to "search/?q=somethinghere"
RedirectMatch 301 ^/search.php?q=(.*)$ http://domain.com/search/$1/ this is also not working. whats the problem?
I don't want "?q=" in URL.
Hello,
After using stackoverflow for weeks i am just addicted by its system and the "badges" system. Is it possible to create a simple Q&A board with this concept or is there any tutorials ?
Hello, I am making a twitter application for iPhone, I am trying to add a button which will open Safari, and take the user to their twitter homepage. I have a textfield called username, so the following code does not work, hopefully someone will be able to help me out.
-(IBAction)viewAccount {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.twitter.com/", username.text]];
}
Any help is appreciated! Thank you!
Hello. Does anyone know how to remove the "click" sound you get when navigating to another page, when using a WebBrowser on a WinForm? I would have thought they would have included an option to choose weither you want it enabled, but they didn't. Thanks for the help!
Hello,
How to store pdf,png file in sqlite.
is this possible to store pdf and png file?
Please help me out.
if you have any idea please share with me.
Thanks you,
Hello, I am looking to integrate an existing product with Hawk (http://www.hawkms.com/), which our application support team uses to keep an eye on operations. I've never used the product so I was wondering if anyone could point me to some resources about how to expose performance data so that it can be monitored with Hawk.
Specifically, the technologies we're using is asp.net and wcf ... but resources on other technology stacks would still be useful if they are available.
Thanks!
Hello
I have 2 string arrays, and I would like to return if any of them exists in _authRole array. How is that done?
string[] _userRoles = userdata.Split(',');
string[] _authRoles = AuthRoles.Split(',');
bool isAuthorized = _authRoles.Any(_userRoles ??);
/M
hello.
somebody today showed me this curious ill conditioned problem (apparently pretty famous), which looks relatively simple
ƒ = (333.75 - a^2)b^6 + a^2 (11a^2 b^2 - 121b^4 - 2) + 5.5b^8 + a/(2^b)
where a = 77617 and b = 33096
can you determine correct answer?
Hello,
i am running eCos with the FreeBSD TCP/IP-stack. Is it safe to have two threads running one to read from a socket and one to write to the same socket?
Well i guess since its the FreeBSD stack the operating system does not matter.
Best regards,
Friedrich
Hello,
As I know Android Froyo will support Flash 10.1.
I just wonder how Flash apps could be distributed on Froyo based device.
Will Google allows distribute Flash apps by Android Market?
Or, any other ways for it?
Regards,
Wonil.
Hello,
I found great explanation about the new RTTI in Delphi,but I don't understand one important thing about all I have read so far - Where can I use that?
What is it supposed to replace?
Thanks in advance.
Hello,
I'm stuck with "Programming Clojure" on page 37 on a Windows 7
machine. After downloading the "examples" dir into "C:/clojure", I
typed:
user (require 'examples.introduction)
and I got
; Evaluation aborted.
java.io.FileNotFoundException: Could not locate examples/
introduction__init.class or examples/introduction.clj on classpath:
(NO_SOURCE_FILE:0)
My .emacs file looks like this:
(setq swank-clojure-extra-classpaths
(list "C:/Clojure"))
The files in C:/Clojure are there (I triplechecked)
Any help will be appreciated.
Hello,
i got a server running windows server 2008, and i got a user which everyone can connect to via Remote desktop!
when 2 users a are logged to the user, it's fine.
but when the 3 is logged on, it says one of the other 2 should loggoff!
my question is, how i disable the limitation of concurrent logons to a single users?
Thank you, i must say this is a great site.
hello, i'd like to know if there is an editor that has php code completion and has a fullscreen (not the way komodo edit or notepad++ have) like gedit. I've been searching for some but couldn't find any :/
thanks
Hello - I am using the IBM RAD IDE and building a dynamic web project. When I build the project and attempt to add it to the server by selecting 'add or remove projects' I get the response that there are no projects to add or remove.
Does this mean I will have to create a EAR file (J2EE Project) and add my web project to it in order to deploy to the local WAS? Might I be missing some essential configuration?
Hello,
Im astonished. Im trying this simple calculation in a Java application:
System.out.println("b=" + (1
- 7/10));
Obviously Im wainting for "b=0.3" in the output but here's what I get:
b=1
What?! Why this happens?
If I make:
System.out.println("b=" + (1-0.7));
I get the right result which is "b=0.3".
What's going wrong here?
Thanks!
hello
I have complete code for implemention for facebook in my application But the problem arises as follow :
Firstly whenever i import FBConnect\FBConnect.h the error will show that it doesn't "NO such file or direectory"
secondly due to this error i have 182 error in my application..
Thanks
Hello everyone,
I found an awesome tags plugin on cakedc site. This plugin makes your tagging concerns very easy and is able to make anything taggable.
Has anyone used it? I find it a bit difficult to understand few things listed below:
difference between the name and keyname columns of the tags table.
the use of columns 'identifier', 'weight' in tags table
Thanks
Hello. I've been looking online unsuccessfully for a comprehensive list of unsafe (dangerous) functions in C (see here for a few). When I say "dangerous" I mean functions like gets or strcopy, but I was wondering if someone has actually compiled a comprehensive list.
Thank you.
PD: Neil Butterworth, you should abstain from answering my posts. You're seldom helpful.
Hi
I am setting the toolTip to button dynamically using :
ToolTipService.SetToolTip(btnhello, "Hello World !");
I need to add additional some data dynamically in this tooltip with xaml control.
Please help me on this issue.
Waiting for your valuable thought.
Thanking You.
Hello,
I'd like to rewrite:
www.example.com/file.html?username=john&number=1234
To:
www.example.com/users/john
But I can't figure out how to extract the "username" value from the query string. I've been Googling this all morning and reading the official docs but no luck. I need to solve this problem with a rewrite, rather than changing the application.
Any help much appreciated!
Rangi
Hello,
I requested a feature on Delphi's uservoice(link) ,but I didn't understood the answer of Nick Hodges.
What version of Delphi supports SmartLinking?
How do I enable this option in Delphi 2009/Delphi 2010?
Thanks in advance.
Hello everybody,
I accidentally changed owner of all files on my plone site to plone, and I don't know how to fix this without reinstalling site, which won't be acceptable.
I have backup version which keeps default owners but it's changed in the meanwhile on the dafault site. Maybe rsync can sync only ownerships between these copies???
Any idea would be precious.
Cheers