Hello, i have a list like this
["peter","1000","michell","2000","kelly","3000"]
and i would like to convert to
[("peter",1000),("michell", 2000),("kelly",3000)]
Please help.
Thanks.
Hello all,
I'm trying to initialize an unsigned long long int type. But the compiler is throwing an error "error: integer constant is too large for "long" type ".
The initialization is shown below :
unsigned long long temp = 1298307964911120440;
Can anybody please let me know what the problem is and suggest a solution for the same.
With Regards
Sujay
From the O'Reilly book "Android Application Development " by Rick Rogers, John Lombardo, Zigurd Mednieks & Blake Meike:
page 23:
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello"
/>
page 44:
<application android:icon="@drawable/icon2">
What is the meaning of the "@" in each of the above fragments?
Hello all,
I am trying to import NLTK in my python code and I get this error:
Traceback (most recent call last):
File "/home/afs/NetBeansProjects/NER/getNE_followers.py", line 7, in
import nltk
ImportError: No module named nltk
I am using NetBeans: 6.7.1, Python 2.6 NLTK.
My NLTK module is installed in /usr/local/lib/python2.6/dist-packages/nltk/ and I have added this in Python paths in Netbeans.
What am I missing here?
Thanks in advance.
Hello everyone.
In a Latex Report I am making I have to write a regex. There is only one in the whole report, so I don't really want to use packages and so on.
This is the regex I am talking about:
^\"((\w|\s)+)\"$
I came up with this for Latex:
\grave{ }\backslash\"'((\backslash w\| \backslash s)+)\backslash \"' \backslash \$
This gives me like 10 errors, and I can't really see what is wrong. Okay, it looks pretty bad but all the commands should work..
Thanks in advance,
Harm
Hello,
I'm required to write a JCE provider. I have learned that I need to use bouncy castle clean room implementation. Could you please tell me what does Clean room implementation mean in our my contest.
Hello,
I'm trying to create a stacked bar graph with variable coloring in each stacked bar; that is, one bar has say blue on top of red, the next one red on top of purple, etc. I also wanted to preserve the ability to stack graphs. Thank you so much guys.
Adam
Hello...
Fortunately our first application is in App Store now..
And in my itunesconnect account some of the fields are editable like screenshots, support url etc..
So, my question is if I update some of my screenshots or if I update the support url field when it will be reflects to itunes ?
Or it will directly reflects once I update my current application ?
Thanks in advance...
Hello,
I was wondering if there exists some kind of indexer (in python language for exemple) that would take a bunch of html files and create an index in javascript.
In the solution, these javascript files would then be used to create a pure browser search engine.
Jerome
Hello, I have a table A where I put many image resources with a daily frequence.
Every record of table A references another table B in which there are only fixed records.
My doubt is the following, better to clean all records in A and then inserting new images or
updating only the binary column of all records.
What your advice?
Hello all,
I am looking for good example code for using delegate and events in objective c?
i am familiar with delegate and events in C#.
so if someone can help me with few lines of code it will be very helpful.
Hello,
I'm writing a standalone application and I thought using Entity Framework to store my data.
At the moment the application is small so I can use a local database file to get started.
The thing is that the local database file doesn't have the ability to auto generate integer primary keys as SQL Server does.
Any suggestions how to manage primary keys for entities in a local database file that will be compatible with SQL Server in the future?
Thanks,
Ronny
Hello,
I have the following code:
@interface AddResident : UIViewController
{
IBOutlet UITextField *FirstName;
IBOutlet UISegmentedControl *Gender;
}
I can see both of these outlets in interface builder but can only connect the UISegmented control... the other one will not connect to my UITextField on the form.
Any help is much appreciated.
Hello,
I'm searching for a screen capturing tool which captures areas of an website/web-application based on the url. The very best for me would be an firefox/ie addon with an API accessible via javascript.
Example:
URL, Coordinates, Filename
http://foo.com/project/show/33; rectangle:10,10,50,50; myapp-area1.jpg
http://foo.com/project/show/33; rectangle:100,100,150,150; myapp-area2.jpg
Hello
I am wondering how agile (fast to develop yet stable) asp.net MVC compared to frameworks using dynamic languages such as Django or Ruby on Rails.
I will be happy if you share you experiance in the name of development speed (assuming each language/framework is known at a similar level)
Things I love about Django
Fast model design thanks to ORM
Good template system
Not too hard to deploy
Easy to extend
Lots of free apps to plugin and great documentation
Thanks
hello,
i want a mysql connection with c++ to my db ofcourse :P, i downloaded the files here:
http://tangentsoft.net/mysql++/
But im not succesfull to install it and get the librarys in the c:/mysql++ folder.
can somebody help / do it for me and upload it :).
THNX!
greetz
stefan
Hello All,
I'm not able to get the below code to work.
$("#grid_table td:nth-child(10) input").live("onchange",function () {
alert("changed");
});
am I missing something here? Thanks.
Ravi
Hello all,
I was wondering if EF4 support cross-databse relationships? For instance:
db1
Author
Id
Name
db2
Posts
Id
Content
db1.Author.Id
What ideally I need to do to get this relation in my ef4 model?
Do you guys have any idea?
Thanks
Hello Everyone,
I am interested in reading ONLY the TEXT content of a UIWebView. How do I do this? I found lots of help on the web about reading the HTML content but I want ONLY the Text. Any suggestions?
Thanks
Hello,
How do I remove the oldItems from the newItems string? (remove Blue and Green) newItems is generated from jQuery autocomplete and I would like to remove already selected items from the select list.
newItems = Blue \n Red \n Black \n Yellow \n Green \n
oldItems = Blue,Yellow,Orange,Green
Best regards.
Asbjørn Morell.
Hello,
What is the best way for me to add my own properties to an existing Silverlight control? For example I would like to associate a custom class with the DataGrid and be able to set the properties of this custom class in Expression Blend?
Is this an easy thing to do?
Thanks,
AJ
Hello!
Avoiding having to create a whole camera app myself, I am calling up:
Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
this.startActivityForResult(camera, PICTURE_RESULT);
However, the camera is very advanced and beautiful :) but not for my purposes. :(
Is there a way to restrict the camera to control size, resolution, disable setup button, flash, face recognition, etc...?
Hello; I'd like to upgrade the Hibernate installation that ships as part of JBoss 5.1.x to Hibernate 3.5.x.
Is there an "approved" recipe for doing this?
Hello. I know we have ILdasm, but is there any tool out there that will let me edit .exe or .dll files without having to go through all the rigmarole of having to convert it to IL code, with resources includeded, etc etc, manually edit, then recompile again?
Hello,
how to center a div across all browsers and behind this div there should be a transparent background layer covering entire screen of browser like lightbox.
Thanks