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?
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
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?
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?
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)
Should I use ISO 639-1 (2-letter abbreviation) or ISO 639-2 (3 letter abbrv) to store the user's language? Both are official standards, but which is the de facto standard in the development community? I think ISO 639-1 would be easier to remember, and is probably more popular for that reason, but thats just a guess.
The site I'm building will have a separate site for the US, Brazil, Russia, China, & the UK.
http://en.wikipedia.org/wiki/ISO_639
After upgrading to the latest Rails version the path used by the image_tag helper is messed up with these characters: /%5C%22 \%22
http://localhost:3000/%5C%22/uploads/f0b07364-90bb-11/de-a278-0019dbf8d19d/Neues_LOGO_unten_mini.JPG?1275396335\%22
RAILSENV is development.
Anyone having the same problem?
Simple question. Many consider "The C++ Programming Language" by Bjarne Stroustrup to be the de facto for learning advanced C++. What is the equivilent book for learning C# to the most advanced level?
I know there is the perl regex that is sort of a minor de facto standard, but why hasn't anyone come up with a universal set of standard symbols, syntax and behaviors?
I started with the standard scriptaculous drag and drop tree, and that all works fine.
Then started implementing this:
http://www.artweb-design.de/2008/5/30/scriptaculous-sortabletree
which gives a good drag and drop tree
Where I am stuck is how to get serialize the tree (unordered list)? It's not in a form, and I can't find a way to serialize it to move onto setting up the AJAX update.
Hi all,
Assume I have the following style table, col1 col2 and col3 have same value scopes, I want to select the records when two of the 3 columns have a value combination such as ('ab' and 'bc'), in the following example, the first 3 records should be selected. Any good way to do this? I am using Sybase.
| id | col1 | col2 | col3 |
1 ab bc null
2 null ab bc
3 ab ab bc
4 de ab xy
Thanks.
I have a client server application in which I need to transmit a user defined object from Client to Server using TCP connection. My object is of the following structure:
class Conversation
{
private string convName, convOwner;
public ArrayList convUsers;
public string getConvName()
{
return this.convName;
}
public string getConvOwner()
{
return this.convOwner;
}
}
Please help me how to transmit this object at from client and again de-serialize it into appropriate object at server side.