I want to send a datetime.datetime object in serialized form from Python using JSON and de-serialize in JavaScript using JSON. What is the best way to do this?
Is there any way to edit list of cultures supported by a SL project in Visual Studio 2008 using GUI?
Currently I'm doing this by changing content of <SupportedCultures> node in the .cproj file manually. For example:
<SupportedCultures>
en, de, es, fr, ja, zh-CN
</SupportedCultures>
Thank you.
Hi,
I'm developing an app with SDK 3.1.2 and it runs in the simulator, but when I try to deploy it in the device it arise de following error:
2010-06-17 17:40:39.592 MyApp[2143:207] *** -[__NSCFDate dateInformation]: unrecognized selector sent to instance 0x21e6a0
2010-06-17 17:40:39.608 MyApp[2143:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSCFDate dateInformation]:
Why this doesn't happen for the simulator?
Thanks in advanced for your help.
How do I go about providing localised text for items in a custom web control? I had thought that I just need to add meta.resourcekey tags to the control items and then define and fill some resource files called mycontrol.ascx.[lang].resx but that doesn't seem to work.
e.g.
MyControl.ascx
<asp:Label ID="Label1" meta:resourcekey="Label1" runat="server" Text="Oops!"></asp:Label>
MyControl.ascx.de.resx
Label1.Text Donner und Blitzen!
This question is related to Tools for matching name/address data. There is a number commercial tools provided by SAS, Oracle, Microsoft, etc., that allow to de-duplicate or merging names of individuals or companies coming from multiple sources.
However, after reading the answers to the question mentioned before, I wondered why a seemingly interesting problem didn't receive any answers mentioning open source projects that could tackle the problem.
Are you aware of any open source projects or algorithms to implement the so called "record linking", "record merging", or "clustering"?
One thing that I've always noticed with my unit tests is that they get to be kind of verbose; seeing as they could also be not verbose enough, how do you get a sense of when your unit tests are the right size?
I know of a good quote for this and it's:
"Perfection is achieved, not when
there is nothing left to add, but when
there is nothing left to remove."
- Antoine de Saint-Exupery.
Hi all, my question is simple but i cant fin de answer. Is there a way to set in Lucene to retrieve an amount of results higher than 100 in a query?
Im using lucene 2.4.0 now.
Thanks all.
Hi,
i got the svn checkout path for the KDESVN. I wish to compile it in ubuntu.
http://www.alwins-world.de/repos/kdesvn/trunk/
Please tell me how to compile and run in ubuntu.
what are the requirements..
I want to collapse or expand sub-sequences of a list
e.g. ['A', 'B', 'D', 'E', 'H'] -> ['AB', 'DE', 'H'] and vice versa
currently I wrote some ugly code like:
while True:
for i, x in enumerate(s):
if x == 'A' and s[i+1] == 'B':
s[i:i+2] = 'AB'
break
else:
break
For people who asking 'why do that thing':
Actually I'm working on a optimizing compiler and this is the peephole part.
Writing pattern matching is a little annoying.
I've seen a few examples defining choice fields like so:
COUNTRIES = (
('fr', _('France')),
('de', _('Germany')),
...
)
(source: http://code.djangoproject.com/ticket/5446
Also see: http://djangosnippets.org/snippets/494/)
What is the meaning of the leading underscores? And why is the second value in the tuple even parenthesized?
There seems to be a plethora of documentation tools for Python. Another one that I've run across is epydoc. It seems like Sphinx is the de facto standard, because it's used to generate the official Python docs. Can someone please sort out the current state of Python's documentation tools for me?
Hi,
Purify is pointing memory leak in ole32.dll while returning a Variant with VT set to VT_RECORD as OUT parameter. I am using User Marshalling by generating proxy/stub dll from IDL.
Can you suggest how to avoid this memory leak?
Thanks
Picaro De Vosio
I looked through ApplicationListener, and they don't have it in there. On a Mac, it's when that application has the equivalent of focus; its menu is in the top menu bar.
Also, if you know this, could you tell me how my application can request to de-focus itself?
Hello,
I know how to generate rounded corners using images. But please have a look at the link :-
http://roundedbox.andreas-kalt.de/
The rounded corners on all four corners are all images, but my question is how are those borders in the middle done? Those green color borders that surround the whole div.
The tutorial is given but it is German :(. Also i don't want to use Css3 like -webkit-border-radius etc as they are not yet supported in IE
Thanks in advance :)
I have the following snippet of code:
setlocale(LC_ALL, "de");
print(strftime("%A %e %B %Y", time()));
and it's printing
Tuesday 4 May 2010
instead of
Dienstag 4. Mai 2010
Any ideas why? How to fix?
Hi, I've been using JPA for some time now and been in projects where we've used both Hibernate Annotations and Toplink Essentials.
AFAIK the project leader chose Toplink because Netbeans had it integrated and seemed to be the easy thing to do.
However when looking for help, most of the literature seemed to assume that you are using Hibernate as the JPA provider, so, the question is, is have you found any advantage, performance or otherwise for not using the de-facto standard for JPA, Hibernate?
The TouchUtils class in the android documentation has functions like drag() [http://developer.android.com/intl/de/reference/android/test/TouchUtils.html#drag(android.test.InstrumentationTestCase,%20float,%20float,%20float,%20float,%20int)], but they do not support multi touch gestures, like a two finger swipe.
Looking at the MotionEvent.obtain() methods, there does not seem to be any way of invoking a "virtual" multi touch event from a testcase.
Anyone has got it working?
I'm interested in the history of distributed, collaborative, cross-organisational programming paradigms - web services and SOA are de-facto now, but what came before? What models have been superceded by SOA?
Thanks
Hello,
what I have is the currencyIsoCode "EUR". This Property can also be found in the
RegionInfo class = ri.ISOCurrencySymbol. But the RegionInfo class depends on the current logged in user.
What I want is to get the NativeEnglishName like "Euro" even when the user is from en-De, en-Us, cn-CN etc...
How can I do that?
Hi folks,
I need to perform a lot of serializing and de-serializing in an application.
The data is POST parameters and Cookie headers.
Does anyone have any fast libraries to suggest or efficient ways to perform these operations?
I have a sample Solr schema as follows
isPublic = boolean
source = facebook| twitter | wordpress
I want to write a query which returns all documents from the index which matches either the isPublic = true or isPublic is false and source= facebook. Something like this
solrUrl/?q=blah&fq=(isPublic:true OR (isPublic:false AND source:facebook))
Is such a thing possible or should I search the index two times with each of these conditions and then combine + de-duplicate the results?
Hi all !
My doubt is about OR and ORELSE. There is any situation where OR is better to use than ORELSE ? And if not, why they don't just "upgrade" de internal code ?
Cheers !!
Hi
I have been trying to localize my iPhone app in two languages - english and german
I have created two folders en.lproj and de.lproj each containing Localizable.strings file for respective language. I have included these files in my resources folder, changed the encoding of these files to UTF-16.
I have tried cleaning the project and building it again, deleting folder at path: Library/Application Support/iPhone Simulator/User
But the problem is still there. Anybody having an idea please help.
mov dl,00h
mov ah,08h
int 13h
this is code showing normal parameters of floppy disk.
mov dl,80h
mov ah,08h
int 13h
this is code, showing not valid parameters of hard disk(may be, my hard disk space is big (LBA)),
And I've written this code:
mov dl,80h
mov ah,48h
int 13h
it is code doing cf = 1(error). How fix it? I want learn parameters of my hard disk.
(http://lrs.uni-passau.de/support/doc/interrupt-57/RB-0677.HTM)