Hi,
I am very new in Linq, I want to select two coloum of table. so tell me how can i write query for that .
I want to fill dropdown list .
Thanks
Manoj
I'm wondering about Nvidia's CUBLAS Library. Does anybody have experience with it? For example if I write a C program using BLAS will I be able to replace the calls to BLAS with calls to CUBLAS? Or even better implement a mechanism which let's the user choose at runtime?
What about if I use the BLAS Library provided by Boost with C++?
Basically i want to output a div with all the ids in it. I know how to do that especially with jquery but collecting the ids is the problem not the list. I failed at regex although i know how to use it in .NET. How do i write this regex properly? so i can get a list of ids and display it as i want. http://jsfiddle.net/NgmGf/
File json:
{"maps":[{"id":"blabla","iscategorical":"0"},{"id":"blabla","iscategorical":"0"}],
"masks":["id":"valore"],
"om_points":"value",
"parameters":["id":"valore"]
}
I write this script but it only print all the text.
json_data=open(file_directory).read()
data = json.loads(json_data)
pprint(data)
How can I parse the file and extract single values?
Thanks in advance.
It seems that lazy loading is enabled by default in EF4. At least, in my project, I can see that the value of
dataContext.ContextOptions.LazyLoadingEnabled
is true by default. I don't want lazy loading and I don't want to have to write:
dataContext.ContextOptions.LazyLoadingEnabled = false;
each time I get a new context. So is there a way to turn it off by default, say, across the whole project?
Hello, in my frontend application I'm using my own login form (just email and password fields) and in the login action I'm trying to check whether the user was logged in successfuly or not.
My question is: If the user wasn't logged in successfuly is there a simple way how can I add an error message to my login form?
Do I have to write my own validator?
As the title says, I'm not clear on when such a subroutine will be called. From the require page at perldoc one can write:
push @INC, \&my_sub;
sub my_sub {
my ($coderef, $filename) = @_; # $coderef is \&my_sub
...
}
but where does this go exactly? The required package or the requiring script (or package)? I've tried both with some sentinel print statements but neither worked so clearly there is something I'm not getting.
I'm a writing a program that will determine the number of lines, characters, and average word length for a text file. For the program, the specifications say that the file or files will be entered as a command line argument and that we should make a TestStatistic object for each file entered. I don't understand how to write the code for making the TestStatistic objects if the user enters more than one file.
There are many activities on an application that need things like:
Send email, Post to twitter
thumbnail an image, into several sizes
call a cron to find connected relationships
A good way to do these tasks is to write into an asynchronous queue on which operations are performed.
What django application can be used to implement such functionality, as the one Amazon Simple Queue service offers, locally?
I have come across celery. Right thing? Anything else that exists, like this?
How do i write a event listener for a Flex chart (Bubble-Series), tried itemClick on Chart and click on BubbleSeries. I can see the events. but how do i get the series item which is under the mouse click.
Hi,
I am using Boto library to write scripts for automating our jobs on AWS. My script actually starts a hadoop cluster using cloudera scripts and then does some customization. I am having a problem with retries. Seems like very command in my script fails once couple of days. I started adding retry to all the commands, but then the code is very clumsy and difficult to maintain. what do people do in general.
Thank you
Bala
I have a WinForms app that I recently re-wrote in WPF and I need to release to my end users. I'd like to be able to have the users go to the ClickOnce install point for the WPF application and have their WinForm application removed so they don't have both on their machine
What's the best way (read: easiest for users) of accomplishing this?
I have thought about creating an prereq command line app to detect the old version and uninstall, but would like to avoid having to write an something like that where it only get's run once.
I hava the sql as below:
select a.dept, a.name
from students a
group by dept, name
order by dept, name
And get the result:
dept name
-----+---------
CS | Aarthi
CS | Hansan
EE | S.F
EE | Nikke2
I want to summary the num of students for each dept as below:
dept name count
-----+-----------+------
CS | Aarthi | 2
CS | Hansan | 2
EE | S.F | 2
EE | Nikke2 | 2
Math | Joel | 1
How shall I to write the sql?
Hi All,
I write a mysql query
select * from table where name like '%salil%'
which works fine but it will no return records with name 'sal-il', 'sa@lil'.
So i want a query something like below
select * from table where remove_special_character_from(name) like '%salil%'
remove_special_character_from(name) is a mysql method or a regular expression which remove all the special characters from name before like executed.
How can I write and validate my XML schema and documents according to XML 1.1 specifications, by using Eclipse IDE.
Probably by using latest Apache xerces parser (that is perhaps the only parser to date, implementing XML 1.1 recommendations)? If yes then how can I replace Eclipse system XML parser to xerces 2.9 or add/configure a new one?
I am trying to use regex.replace to strip out unwanted characters, but I need to account for spaces:
string asdf = "doésn't work?";
string regie = @"([{}\(\)\^$&._%#!@=<>:;,~`'\’ \*\?\/\+\|\[\\\\]|\]|\-)";
Response.Write(Regex.Replace(asdf,regie,"").Replace(" ","-"));
returns doésntwork instead of doésnt-work
Ideas?
Thanks!
I need to delete a huge chunk of my data in my production database, which runs about 100GB in size. If possible, i would like to minimize my downtime.
My selection criteria for deleting is likely to be
DELETE * FROM POSTING WHERE USER.ID=5 AND UPDATED_AT<100
What is the best way to delete it?
Build an index?
Write a sequential script that deletes via paginating through the rows 1000 at a time?
hi
I know about the built-in I18n in Rails, but how can I select a database field per locale?
My model structure is something like this:
title #default (englisch)
title_de #(german)
title_it #(italian)
In my template I want to be able to write only
<%= @model.title %>
and should get the value in the right language.
Is there a plugin or a solution to use different fields per different locale settings with a structure like mine?
Is there any protection provided by kernel? Because when we tried to allocate memory using an
malloc(), the kernel allowed to allocated around 124
MB of memory, and when we try to write into it, the kernel crashed. If there
was protection of kernel memory area, this wouldn't have happened, I guess.
hi im working on an window application form in which i have to save the data in text file which should contains the data the user would write in the richtextbox in that form......
Lets say i have a reference to a TabControl is there any way to get the height of the headers?
The reason for this is the following i have one tabcontrol and one image above it and i want the headers to be on the image.. so my idear was to write a value converter that can convert a tabcontrol to a Thickness.. and by using this i would be able to place the headers on top of the image...
I'm trying to validate that a user only enters a long value as input (long bigger than 0 actually).
Compare and Range validator has DataTypeCheck for int values only. I was planning on using this class in a CustomValidator but then I would need to write both, client and server side validation code.
Do you know of any other good way of doing this? Thanks!
I want to have to occasionally insert text into the UITextView text object. For example, if the user presses the "New Paragraph" button I would like to insert a double newline instead of just the standard single newline.
How can I go about such? Do i have to read the string from UITextView, mutate it, and write it back? Then how would I know where the pointer was?
Thanks
Hi,
I have written a library for I-phone which is based upon some object models(whose definitions I get via XML). Now I have one implementation for a sample model ready but to make the code library generic I want to write an application where I can templatize the code and provide placeholders for data model specific points.
Is there any tool available for Xcode to enable me do this. In java "Velocity" does this job for me.
Regards,
Vikas