How do I find if a string contains html data or not? (note: user provides input via rich:editor and its quite possible he could have used either a simple text or used html formatting)
I am curious? What high fundu logic goes behind not implementing:
result+=vector1;
where both result and vector1 are stl vectors.
Note: i know how to implement that bit, but i need to know what logic, the sages who designed STL were using when they chose not to implement this feature?
Hi!
What's the way to create a listview with images on the left side and text right after it?
(Note: the images were previously downloaded from the Net)
Thanks in advance!
I'm using Computed Columns to provide me with the following information:
Hours, Minutes, and Seconds between a Start DateTime and Finish DateTime (Where Minutes and Seconds are between 0 and 59 and Hours can be any value 0 or greater)
Computed Column for Seconds:
datediff(second,[Start],[Finish]) % 60
Computed Column for Minutes:
…
I've found that Linq2Sql doesn't (Rhino) mock well, as the interfaces I need aren't there. Does EF generate code that's more mockable?
NOTE: I'm not mocking, yet, without interfaces, the next reader of this question may not have my bias.
EDIT: VS2008 / 3.5 for now.
I'm dying to know how I can make a GUI for ffmpeg and jhead in OSX. I've been looking for a solution for a while and thought you, stackoverflow's users, could help me. Maybe you know some document I haven't come across of or, better, a tutorial to make a GUI.
I love those two tools but I like the simplicity of drag/drop operations.
…
I want to pass an object array to the setTimer function in Javascript.
setTimer("foo(object_array)",1000);
am getting error on this code.
Note:Sorry ! some correction in my question : Is it possible in setInterval() function.
Hello,
I have a String with this content:
href="http://www.website.com/" /> [...] [...]
I just want to get the central part of the string. How is it possible to get the part between @"href="" and @"" /"
Note: Even if it looks like xml-code, it is inside of a NSString.
Just found the MIG Base 64 utility but its over 6 years old since its last release. It would appear to be quicker than the Apache commons equivalent but I have yet to confirm by writing up an actual test. Has anyone verified its correctness which is always a worry. If someone takes a look at the methods, please note i a referring to…
I have window XP 2003 server, which is placed in a room where no one can enter to logon it.
for monitoring some applications
I created a consol application myServer.exe, which dont have any UI,
I want that this application (e.g., myServer.exe) start automatically as window bootup (e.g., before window logon)
and I need to do this…
Hello,
I am not developer so I need help from you guys.
My Problem is simple.
I just want javascript to hide word before "."
Example :
say for google.com
I just want word ".com" tobe print.
Please note that my content is dynamic so google.com will keep changing everytime to google.net or yahoo.com...... so on..
Thanx in…
I'm trying to get a picture like the following:
http://upload.wikimedia.org/wikipedia/en/e/e6/Airy-3d.svg
What am I doing wrong?
[x,y]=meshgrid(-1:.1:1,-1:.1:1);
surf(x,y,(2*besselj(1,2*pi*sqrt(x.^2+ y.^2)/sqrt(x.^2+ y.^2)).^2)
Also... kind of a side note, but if I used ndgrid instead of meshgrid here my x's and y's would…
I am using pdf2swf (http://www.swftools.org/) to convert PDF's to .swf. I have written a flex application that loads the swf generated by pdf2swf. I want to enable select , copy and paste functions on the loaded swf. Is there a way to do this.
Please note I am able to extract the text from the loaded swf using textSnapshot,…
I have written this script to move files to the destination folder. Looks like I am missing something here because when I run the script, it is only looking for .zqx files in current directory and not all the drives. Please note that the ( dir $paths..) part is returning the list of .zqx files promptly.
Paths.txt has drive…
I am working in drupal 6 And I want that in particaular menu it show only 3 item whenever new item is added earliest must be disable.And it show only latest 3 item like in news only it show only latest news and last one is removed.note: It does not apply on all menu.
please help me out.
My code looks like:
Entity e = new Entity();
e.name = "...";
e.blah = 234;
MyDb.UpdateEntity(e);
public static void UpdateEntity(Entity e)
{
using(MyDatacontext dc = new MyDataContext())
{
dc. ?????????
}
}
So what do I do here to update the entity?
note: i just called it entity here, its…
hi i want to find how to find no of weeks and each mondays date between 2 dates. for ex 10-07-2009 to today .
Note :consider leap year and other date related constrains also.
Here's the scenario:
You have a Windows server that users remotely connect to via RDP. You want your program (which runs as a service) to know who is currently connected. This may or may not include an interactive console session.
Please note that this is the not the same as just retrieving the current interactive…
Everyone has been telling me to learn C++. Without bashing languages right and left, can someone please state some relevant reasons as to why I should learn C++ today?
Note that in no way am I saying anything harsh about C++. I just want to know why I should master it as a programmer instead of the other powerful…
I have a page that Google Chrome insists on thinking is in French.
Here's a snapshot of it:
http://yootles.com/outbox/overcleverchrome.html
Note that I'm including a meta http-equiv tag to tell it that it's in fact in English:
<meta http-equiv="Content-language" content="en">
But it doesn't help.
Is…
Hi!
I'm configuring a DRUPAL site web (that it was previously created) and I'm testing the diferent options.
When I create a new content or edit a old content and change anything and then I click on 'Preview' doesn't appear the recent changes (just appear the old values), I have to save it before.
NOTE: I…
symbol.h:179: note: expected ‘uintptr_t *’ but argument is of type ‘PRECEDENCE’
The corresponding code is :
176 void symbol_SetCount(SYMBOL, unsigned long);
177 unsigned long symbol_GetCount(SYMBOL);
178
179 size_t symbol_Ordering(uintptr_t*, SYMBOL);
180
181 void …
I've never seen a good list of free Java libraries.
What are some of your can't-live-without Java libraries?
Note: to keep this poll as useful as possible, please remember:
Post only one library per answer
We don't want duplicate answers, so before posting check if the library has been mentioned…
Hey guys..
Lets say I have an array like
int arr[10][10];
Now i want to initialize all elements of this array to 0. How can I do this without loops or specifying each element?
Please note that this question if for C
Say I have a text area, user enters information exactly like styled below:
Ice cream
Chocolate
then submits this information, I want to retrieve the information EXACTLY like so:
Ice cream, Chocolate
Is this the best way to do it:
$arr = explode("\n", $var);
$arr = implode(",", $arr);
When…