How do you choose your colour schemes for your applications and/or web designs?
Is it a gut instinct thing or can logic be applied here too? I have looked at some colour theory but my combinations seemed wrong.
I am looking at a monochrome webpage. Rather than pluck colours out of the air as usual I would like to see if there is a science…
Can someone explain how the RC2 key schedule works (particularly the very beginning of it)? i know it uses little endian, but my implementation is not working for any key except "0000 0000 0000 0000"
Test Vector
Key = 88bc a90e 9087 5a
Plaintext = 0000 0000 0000 0000
Ciphertext = 6ccf 4308 974c 267f
im assuming that the first thing to do…
I have written a parser class for a particular binary format (nfdump if anyone is interested) which uses java.nio's MappedByteBuffer to read through files of a few GB each. The binary format is just a series of headers and mostly fixed-size binary records, which are fed out to the called by calling nextRecord(), which pushes on the state…
I am aware that you can initialize an array during instantiation as follows:
String[] names = new String[] {"Ryan", "Julie", "Bob"};
Is there a way to do the same thing with an ArrayList? Or must I add the contents individually with array.add()?
Thanks,
Jonathan
Hi All,
I build my app with distribution profile. Every thing goes fine except one warning,
warning: 'The Validate Built Product build setting was not enabled when building for Distribution.'
I find it on Google but get nothing.
Is this warning affect my distribution build.?
Can some one explains what that warning means.?
I…
I am using xdebug with eclipse (on OSX). I think I remember reading somewhere that it was possible to link the error output (or the Call Stack) to a text editor (like Textmate). I was wondering if its possible to do the same thing for Eclipse.
Hi
I have a question about the difference between volatile and mutable. I noticed that both of the two means that it could be changed. What else? Are they the same thing? What's the difference? Where are they applicable? Why the two ideas are proposed? How to use them in different way?
Thanks a lot.
This is an age old problem - but now I'm using scriptaculous its come back to haunt me. When dragging a tree node over other tree nodes I want mouseover to fire for each node. So I want to position the dragging thing so that its top-left is slightly offset from the mousepointer
I could reposition constantly in the onDrag handler…
Hi all,
I have the following thing in my bat file. say
set path=c:\temp\test
so basically i want to have an output which would give me the result as c:\temp\
i didnt find any indexof equivalent in bat command.
Thanks.
There are a number of questions about this sort of thing but lets imagine we are targeting a generic Linux system with both getopt and getopts installed (not that we'll use either, but they seem popular)
How do I parse both long (--example | --example simple-option) and short argruments (-e | -esimple-example | -e…
In jQuery, what's the difference between the following two constructions of jQuery.each:
// Given
var arr = [1,2,3,4],
results = [],
foo = function (index, element) {
/* something done to/with each element */
results.push(element * element); // arbitrary thing.
}
// construction #1…
I am working on an iPhone app which is using an external library for which I have the source. During debugging some of the objects are listed as 0x0 in the debugger but the app runs fine. Also, some of the objects addresses point to the wrong thing.
These symbols are in the external library. The addresses are…
I'm writing an Qt application and I go through authorization process and
everything. I'm even able to fetch the @self feed, but for some reason I
get error 404 when trying to do the same thing with @consumption:
"Download of https://www.googleapis.com/buzz/v1/activities/v.kiril/@consumption failed:
Error…
I have a system that sends mail.
I have a system that receives mail.
I need to identify that a received mail correlates with the one the other system sent.
The particular thing here is that either the subject or the body can be modified.
I thought on putting some hash in the header of the sent email,…
Hope someone can advise,
I would like to be able to use google map API to find all Zip codes/cities with x Miles of a point.
Has anyone done such a thing with google map or maybe some other type of service.
Would love to know if so how you have achieved it !
Thank you if you can advise.
Hi ive set up 2 scripts, both communicating back and forth.
One thing id like is for 1 script to post an unknown amount of GETs to the other script.
Id like the other script to some how be able to grab all the GETS and put the values in an array.
I'm playing around trying to write a client for a site which provides data as an HTTP stream (aka HTTP server push). However, urllib2.urlopen() grabs the stream in its current state and then closes the connection. I tried skipping urllib2 and using httplib directly, but this seems to have the same…
Let's say I modified an open source app "XYZ", and decided to release it to the public as an closed source app. Is there any FOSS license that would allow such thing?
How can I specify a cipher suite to use in an SSL Connections?
I know that Mentalis Seclib got this feature however they don't maintain the project as they say .NET Framework 2.0 introduced those features.
However I couldn't find a way to do this in .NET Framework 3.5.
To be more specific I…
I want to build an SQL string to do database manipulation (updates, deletes, inserts, selects, that sort of thing) - instead of the awful string concat method using millions of "+"'s and quotes which is unreadable at best - there must be a better way.
I did think of using MessageFormat - but…
I'm trying to pass a quoted string through BUILD_COMMAND in ExternalProject_Add() and every way I try it's getting mangled. The code is this:
set (mylibs "-lmylib -lmylib2")
ExternalProject_Add(Foo
URL http://foo
BUILD_COMMAND make SOME_LIB=${mylibs}
BUILD_IN_SOURCE…
I'm trying to get a read on the effort level involved in building a barebones virtual instrument host in C++ or C# but I haven't been able to get any hard information. Does anybody know any good starter apps, tutorials, helper libraries for this sort of thing?
If it matters, the goal would be…
Hello everybody I have created a table layout manager by extending a manager. Every thing is working fine but when I tried to create and set rounded border by using BorderFactory it is actually displaying a square instead of rounded square, please help me by send your valuable suggestions.…
Google App Engine has a great XMPP service built in. One of the few limitations it has is that it doesn't support receiving messages from a group chat. That's the one thing I want to do with it. :(
Can I run a 3rd party XMPP/Jabber server on App Engine that supports group chat?
If so,…