Hi
I know Visual Studio 2010's STL has been rewritten to support rvalue reference to boost its performance a lot.
I am curious that STL of gcc 4.4 (and above) does support it?
Thanks.
I don't know too much about encryption, I just want to ask, which method can get me the shortest result message ?
For instance, the message looks like this : "This is the secret input message", I wonder if the encrypted message can be shorter then theabove 32 characters long ? Maybe something like "dfkfjkvf12".
Frank
I have a dropdown list (FK) which I would like to set and display a default value based on a login userid. Can you please tell me how to do it? I only want to affect the dropdown filter that appear at the top abovethe Gridview.
Thanks
Nikos
Is this possible using only C#? I want to be able to detect audio from: a stream, microphone or soundcard and begin recording if audio level is above a settable threshold.
Thanks :-)
Hi,
I am doing a lot of image processing in C and I need a good, reasonably lightweight, and above all FAST matrix manipulation library. I am mostly focussing on affine transformations and matrix inversions, so i do not need anything too sophisticated or bloated.
Primarily I would like something that is very fast (using SSE perhaps?), with a clean API and (hopefully) prepackaged by many of the unix package management systems.
Note this is for C not for C++.
Thanks
:)
The user can enter a math problem like 5 + 654, 6 ^ 24, 2!, sqrt(543), log(54), sin 5, sin(50). After some reformatting (e.g. change sin 5 into sin(5)), and doing an eval, PHP gives me the right result. However, this is quite unsafe. Can anyone point me in the right direction parsing and solving a math question like the examples above, which is safe? Thanks.
What should i do to prevent users from running scanners or auto posting robots against my site that would slow down the site processing?
Is it sufficient to timestamp each post a user makes and create a posting delay? How long of an interval should there be?
What else can I do besides te above and captchas on form posts?
thanks
Given a character array:
In [21]: x = np.array(['a ','bb ','cccc '])
One can remove the whitespace using:
In [22]: np.char.strip(x)
Out[22]:
array(['a', 'bb', 'cccc'],
dtype='|S8')
but is there a way to also shrink the width of the column to the minimum required size, in theabove case |S4?
This seemed to me like the easiest thing to find, a simple way to display my classes as UML in eclipse
But except this: http://java2uml.gforge.enseeiht.fr/ and this http://sourceforge.jp/projects/amateras/releases/ I haven't found any new, maintained and "good" implementation (with all due respect to theabove two)
Anything else I've missed?
When I do:
less /usr/include/stdio.h (which is only a C library - nothing to do with C++)
I see __THROW after quite a few function declarations.
Also, comments above a few functions say that 'This function is a possible cancellation point and therefore not marked with __THROW'
What is all this for?
THROW is meant to be for exception handling.. but as far as I know, C doesn't provide any support for it...
Plz explain.
I have a Ruby on Rails app running on 12001. I am currently redirecting a subdomain to 127.0.0.1:12001 using some ReWriteCond detection.
Now I want to redirect my subdirectory to that rails app.
http[s]://domain.com/redmine
to
127.0.0.1:12001
The current rules apply REQUEST_URI to theabove rails path, but I need to strip "/redmine" from the front of REQUEST_URI...
Any ideas?
I have a string in following format
"TestString 1 <^ TestString 2 <^ Test String3
Which i want to split by "<^" string.
Using following statement it gives the output i want
"TestString 1 <^> TestString 2 <^> Test String3"
.Split("<^>".ToCharArray(), StringSplitOptions.RemoveEmptyEntries)
But if my string contains "<" , "" or "^" anywhere in the text then above split statement will consider that as well
Any idea how to split only for "<^" string ?
I have started to look into Hadoop. If my understanding is right i could process a very big file and it would get split over different nodes, however if the file is compressed then the file could not be split and wold need to be processed by a single node (effectively destroying the advantage of running a mapreduce ver a cluster of parallel machines).
My question is, assuming theabove is correct, is it possible to split a large file manually in fixed-size chunks, or daily chunks, compress them and then pass a list of compressed input files to perform a mapreduce?
Consider the following snippet:
puts 'hello'.gsub(/.+/, '\0 \\0 \\\0 \\\\0')
This prints (as seen on ideone.com):
hello hello \0 \0
This was very surprising, because I'd expect to see something like this instead:
hello \0 \hello \\0
My argument is that \ is an escape character, so you write \\ to get a literal backslash, thus \\0 is a literal backslash \ followed by 0, etc. Obviously this is not how gsub is interpreting it, so can someone explain what's going on?
And what do I have to do to get the replacement I want above?
Refer to: http://stackoverflow.com/questions/1613454/retrieving-one-element-and-filter-by-another
In theabove linked posting, I don't understand why the two template blocks don't get executed upon in the incoming XML at the same time. As far I can can see, the XSL risks the second template executing for every Document element whether it is called with apply-templates or not.
Could someone explain this to my stifled brain, please?
Thanks,
Matt.
I have this script that I am currently running that works great for all instances but one:
#!/bin/sh
pdfopt test.pdf test.opt.pdf &>/dev/null
pdf2swf test.opt.pdf test.swf
[ "$?" -ne 0 ] && exit 2
More lines to execute follow theabove code ...
How would I go about changing this script to run "pdf2swf test.pdf test.swf" if "pdf2swf test.opt.pdf test.swf" fails? If the second attempt fails, then I would "exit 2".
Thanks
I am trying to write a LINQ query which will return true if there are multiple objects which have a property with the same value.
Here is what I have come up with so far:
Formatters.Where(Function(f As DataModel.Formatter) _
Formatters.Select(Function(f2 As DataModel.Formatter) f2.Name.ToLower()).Contains(f.Name.ToLower())).Count > 1
However theabove always returns true as long as their are more then 1 elements in the list, can someone please give me a hand with this?
Thanks,
Alex.
While debating which platform to use for what applications (specifically we debated c++, java, c# and f#) we tried finding scientific quality research on productivity (cost of ownership really) of similar applications build on various platforms/using theabove mentioned languages. Any one know of such research?
I have a Ubuntu Server.
From the terminal, how should I install JDK?
In this guide it says to use this command:
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
But on Suns website, it says JDK includes the JRE, so why the JRE in the line above?
Anybody know how to actually install Java?
Every guide and every forum shows different ways of doing it.
BTW: It is a VPS (virtual private server)
Thanks
Hi,
I want to use a protocol, how can we implement it in iPhone.
@protocol BasicAPI
-(NSString*)hello;
@end
// In Some method
NSURL* url = [NSURL URLWithString@"http://www.caucho.com/hessian/test/basic"];
id<BasicAPI> proxy = (id<BasicApi>)[CWHessianConnection proxyWithURL:url protocol:@protocol(basicAPI)];
NSLog(@"hello: %@", [proxy hello]);
Please help me how I can implement above code?
Assume I have a point at the following location:
Latitude: 47°36'N
Longitude: 122°19'W
Around theabove point, I draw a 35Km radius. I have another point now or several and I want to see if they fall within the 35Km radius? How can I do this? Is it possible with Linq given the coordinates (lat, long) of both points?
I have a class like this
class GUI : public QWidget, public QThread
When I do theabove i get errors about connect signals. The error says "Reference to "connect" is ambiguous". Is there a way to inherit from both?
Thank you
-edit- example: http://jsfiddle.net/AXCap/
i want the three links to be on the same line but the 3rd must be a block to take up remaining space in the li so that it is clickable. I tried a number of things and the example linked above is my closest result. How do i make the 3rd link share the same line and a block so the resut of the line is clickable?
I tried float left and that does not allow the third link to take up remaining space.
have a look at the top menu on these two pages on Firefox:
http://outsidemma.com/2010/100031-bj-penn-the-prodigy-jay-dee.php
http://outsidemma.com/index.php
On the first page for some reason there is some extra spacing above it.
This only happens on Firefox. I am using Firefox 3.6.