Trying to find a way to trim spaces from the start and end of the string. I was using this, but it dont seem to be working:
title = title.replace(/(^[\s]+|[\s]+$)/g, '');
Any ideas?
Hi all,
simple question regarding property value inheritance in UserControls.
If i create a UserControl, it has some standard properties like Background, BorderBrush and BorderThickness.
Within that UserControl i have a border. I want to know, if idont specify any set value or binding for the property BorderBrush of that border, will it automatically inherit the value of BorderBrush from the parent control?
Thanks!
I need to share a huge dictionary (around 1 gb in size) between multiple processs, however since all processes will always read from it. Idont need locking.
Is there any way to share a dictionary without locking?
The multiprocessing module in python provides an Array class which allows sharing without locking by setting
lock=false
however There is no such option for Dictionary provided by manager in multiprocessing module.
Hi,
Is there any function to replace the special characters by null in informatica
if we used replacestr function, i think we should specify all special characters
as follows replacestr(input,'!','~','@','#','$','%','^','&','*',null)
But we dontknow what are teh special characters will be coming as input.
can u please let me know that which function will be suitable.
Hi,
I've created reports in Adboe that have checkobxes and set then to required fields.
But when i click the submit button all fields but the check boxes are validated.
I.e
If idont complete the required textbox field the report will not submit, but when i do and the required checkbox fields are not checked it still submits.
This only appears to be happening on Adobe 9
Any ideas?
Thanks
Sp
here is the code:
cmd1.setCommandText("select * from lp.human_tb_meta_sex");
cmd1.Execute();
while (cmd1.FetchNext())
{
SAString sas=cmd1.Field("id").asString();
cout<<"sas id:"<
it gave me ORA-00932 error...Idontknow why..?
Im on a not so great shared hosting plan. I cant get file privileges for mysql so i cant do SELECT INTO outfile, and idont have command line access so I cant use mysqldump.
What can I do to get a decent table backup?
i am trying to show/hide a flash object based on click of button, but the code is not working
//to hide
$('object').css({visibility: 'hidden'});
//to show
$('object').css({visibility: 'visible'});
idont want to use .show() and .hide() as they will also remove the area of flash content.
$('#columnList').append("<li>" + $(colInProcID) + "</li>");
Obviously, Im doing something wrong...not sure how to say the above so that Idont get [object object] in my list.
**Sorry, let me clarify ... the $(colInProcID) is a DIV that I want inserted into the list. (sorry)
I dontknow anything about Ienumerable object.what is the role of Ienumarble interface in .net ? Please tell me whether it is in built? Is every class in .net automatically implements the Ienumarable interface ? why there is need to implement the ienumerable interface? what are the methods it contains & what roles they plays. Please explain in detail.
echo date( "F jS, Y" , strtotime("now +3 weeks") );
It gives the result as July 2nd, 2010 .
Fine.Now I want to pass the argument like this.
The original print_r($originalamount)
give the result like this
Array ( [0] = 4 Months [1] = 3500 )
My code
$text=trim($originalamount[0]);
$text1="now +".$text;
echo date( "F jS, Y" , strtotime($text1)) ;
The out put come like this
December 31st, 1969
Idontknow why?
I have a display object container and I am trying to add a paste event to it. But the event is not being registered. The documentation at liveDocs mentions that classes that derive from Interactive objects can dispatch paste event but Idont understand why it wouldnt work for me.
My app is not an AIR app, could it be a reason ?
I want to develop an silverlight application which plays youtube videos. Idont want to let users install my silverlight application on thri PCs, so I would need to play the videos in browser. Is there anyway we can achieve this?
Hello ...
I´m new to ORMs and I have a new project I´ll do in .Net MVC.
In the Model Layer I´ll create my classes: Videos and I´ll work with APIs as a DataLayer (BrightCove & YouTube APIs).
So, Idont have a Relational Database as a Data Layer. Is it possible to work with an ORM (as Subsonic)?
Thanks!
Hello All,
I would like to brighten an image on my webpage on mouseover using css or javascript.
Ive seen some examples using opacity and filters in styles but they dont seem to work for me.
Thanks in advance
CP
I dont think this is possible, but I have been using:
Process p = Runtime.getRuntime().exec(command);
to run commands on the command line, but now I have come accross a situation where the command I am running part way through will ask for some user input, for example a username.
This can not be resolved by a argument to the command that is being exec, is there any way I can pass the username to the same command line instance and continue?
Thanks in advance.
I want to create a simple animation, that can only show in a specific area, such as triange. I already have the animation, a rotating picture. but Idontknow how to put it into the triangle. the function texture() can only apply images into a specific area. is there other ways to do that? thx!
DO they use a php page to analyze the link, and return all of the images as josn?
Is there a way to do this with just javascript, so you dont have to go to the server to analyze the page?
This overlay seems to be the only overlay plugin that works within my schools wonky template... but the problem is that when the browser is resized the shadowbox resizes too, clipping the contents inside. I want it so the box stats fixed and if the browser does get smaller the browser will have scrollbars.
Iknow it's been modified before, but idontknow where to start. I cant even find an unminified version of the .js file.
Thanks
As you know, the @ characters before a php istruction suppress every eventual warning, error or notice from being raised.
Personally, idont like this tecnique, becose i prefer to handle those errors, and in a real life, the error must no happen or have to be managed.
By the way, i find this tecnique to be applied in many scripts (cms plugins, open-source classes).
So, could the @ really be usefull (in this case, an example would be appreciated), or is just for lazy developers?
i am working on a application where i have image onwhich when u click it gets navigated to browser with a link but it dont display web page. now i need a code for just displaying a simple web page in blackberry.. is it something to do with simulator and device as i am working with simulator.So kindly help me with it....I am newbie to blackberry.. thank you in advance for help..
Hi all,,,
I am trying to do a small thing, any 1 help me, I really appricciate...
I have a drop down menu,I want when I select the value, it will call the related data, which I am access with php+mysql, Idont want to jump to other page and show
Hi,
I have created a big C++ class. I need to give it to another person.
Idont want him to see the function implementations but he should be able to use it as a class.
(for example: he can inherit this class, use its full functionality in his code but can not see or change function implementations etc)
How can i do this.
thanking you..
I'm doing a C# project and I want to call next_permutation from the algorithm library in C++. I found the way to call c++ functions in c# but idontknow how to get vectors from c++ and use it in c# (cause next_permutation require a int vector...)
this is what I'm trying at the moment:
extern void NextPermutation(vector<int>& permutation)
{
next_permutation (permutation.begin(),permutation.end());
}
[DllImport("PEDLL.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern void NextPermutation(IntPtr test);