I run into a problem when trying to debug an opensource project,
it requires Visual C++ 2008 Express' sdk to compile successfully,but I'm using cdt.
Is there a way to manually install the sdk for cdt manually?(My disk space and memory are very limited...)
I need a regular expression to validate string with one or more of these characters:
a-z
A-Z
'
àòèéùì
simple white space
FOR EXAMPLE these string are valide:
D' argon calabrò
maryòn l' Ancol
these string are NOT valide:
hello38239
my_house
work [tab] with me
I tryed this:
re.match(r"^[a-zA-Z 'òàèéìù]+$", self.cleaned_data['title'].strip())
It seems to work in my python shell but in Django I get this error:
SyntaxError at /home/
("Non-ASCII character '\\xc3' ...
Why ?
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 doing it like this, it puts the information out like so:
Ice cream , Chocolate
Note the space after cream, will a simple trim() fix this?
Inserting (pasting from clipboard) of text constants in the Delphi code editor requires some manual "postprocessing" ...
split up long text into multiple lines (and insert the string concatenation symbol)
escape quotes (replace single quotes with double quotes)
enclose the string with quotes
keep original white space (leadinng blanks, line feeds)
Is there a IDE plugin available which helps to reduce these manual steps?
Hi,
I want to do grep texts files inside a rar without extracting the rar file to disk, I tried a couple of combinations with pipes however it didnt work i tried for example
unrar e myrar.rar | grep mysearchedline
however it actually opened it to disk, I don't want to open it to disk, I don't have enough space for it to be opened (its real big with real big logs).
Thanks.
I am writing a windows forms application in C# and I create a RichTextBox (via code, not the designer). I am setting the AutoWordSelection property to false, but when I highlight stuff in the box, it still jumps to the boundaries of words, plus a space. Is this a flaw in .NET or am I doing it wrong?
I have a file whose size is about 300mb i want to read the contents line by line and then add it into arraylist. So i have made an object of array list a1 , then reading the file using bufferedreader , after that when i add the lines from file into arraylist it gives an error Exception in thread "main" java.lang.OutOfMemoryError: Java heap space. Please tell me what should be the solution for this.
Hi,
Someday i've downloaded a very nice jquery editor but i lost it and i only have a screenshot of it. You just type a tag and press return or space and it's will be inside a nice box, and you can delete it by only pressing the backspace key or the close icon.
Please don't suggest me That because it's so poor and the tags are inserted outside the input box.
Thanks
I placed some validation controls on my grid view template. The only problem is that it is taking a lot of space vertically. Is there a property to set to solve this problem?
I need to use preg_match to check that only a-z0-9. is used (including full stop(.)). I don't want to replace anything. My problem is that it doesn't notice white space at beginning of a string.
Also, if anyone knows how to check there is no two full stops in a row, I would be very grateful.
What I have so far:
("/[^a-z0-9.]+$/",$request)
Thanks !
The following query won't work, but it should be clear what I'm trying to do: split the value of 't' on space and use the last element in that array in the subquery (as it will match tl). Any ideas how to do this? Thanks!
SELECT t, y, "type",
regexp_split_to_array(t, ' ') as t_array, sum(dr), (
select uz from f.tfa where tl = t_array[-1]
)
as uz,
sc
FROM padres.yd_fld
WHERE y = 2010 AND pos <> 0
GROUP BY t, y, "type", sc;
Are there any real stories about computer crime? I'm talking about stuff like in "Office Space", stealing fractions of pennies a couple of million times... Like that, only actual events. And not Captain Crunch, please, making phone calls for free does not count. No, actual robberies or super smart frauds that depended on computer technology to some extent. Links or books for further reading please.
I have a text file which contains:
Cycle code
Cycle month
Cycle year
Event type ID
Event ID
Network start time
I want to change this text so that when ever there is a space, I want to replace it with a _. And after that, I want the characters to lower case letter like below:
cycle_code
cycle_month
cycle_year
event_type_id
event_id
network_start_time
How could I accomplish this?
I have a server and a client written in C. I try to load a shared library in the server and then pass library function pointers to the client. This way I can change the library without have to compile the client.
Because of every process has its own separate memory space, I wonder if it is possible to load a shared library on a shared memory, pass the function pointers and map the shared memory on the client and then make the client execute the code of the library loaded by the server.
Hey, I'd like to write to a text file to record a set of scores. However, everytime I write to it it overwrites what was originally in the file. Please can someone tell me how to not let it overwrite what is there or how to make it start writing in an empty space. Thank you in advance.
I have a scheduled task that is very IO intensive (deleting hundreds of thousands of files). For disk space reasons, this job has to be performed reasonably quickly. On win2k8, scheduled tasks always have a low IO priority. Raising the priority of the process did not change the IO priority. Is there any way to get a scheduled task to have a normal IO priority?
I need functionality for displaying and allowing selections of tags in SWT. Something that uses space efficiently, and ideally allows scaling of tags.
Is there a tag cloud widget or is there one that is easily available?
Recently, I've been exploring Java space, and came across Spring Framework.
Is this a web app framework like CodeIgniter or Rails ?
If so, is Springs used for developing enterprise web applications that runs on Java EE technology ?
I am curious, why Spring is getting lot of attention. Isn't it a lot cheaper to simply use LAMP + CI or Rails to develop web application ?
Can Spring be used to develop desktop applications ?
How do I tell Eclipse to automatically make suggestions as I type. A Visual Studio Intellisence-like feature with Resharper.
Currently I have to press CTRL+Space each time.
Hi,
Firstable i want to match if a string has the following format: $abc #xyz or $abc .xyz.
The abc and xyz mean only alphanumeric string.
If it's matched then i need to extract the first $abc and the last #xyz, all that using pure javascript and maybe regex.
The pattern is in the following order:
Dollar Sign
Unlimited alphanumeric string
space
a hash or point
Unlimited alphanumeric string
Thanks in advance for any help.
I made a class that represents a composite. I want this composite to take up all available space. How can I do this and have it show up full size in the designer?
How to replace space and dash coming together with only dash in php
e.g below is my url
[url] = http://kjd.case.150/1 BHK+Balcony- 700+ sqft. spacious apartmetn Bandra West
In this I want to replace all special characters with dash in php.In url there is already 1 dash after balcony.If i m replacing dash with special chars then it becomes two dash bcoz already there is 1 dash in url and i want only 1 dash.