What is the preferred method of altering a layer's symbology dynamically? My web app consumes a map service via the REST API, but I don't mind using the SOAP API or ArcObjects (.NET).
Hello,
I'm researching which linux distro would be the best for a software development environment. The technology stack we are using includes Grails/Groovy, Java, JBoss, Git, Eclipse, Oracle. Any thoughts from the stackoverflow mind share?
Thanks!
Steve
Is there a way to disable "eager" validation using the jquery.validate plugin? Either through an option in the script or as a hack? "Eager" validation kicks in once the form has been validated once - after that, invalid fields are validated onfocusout. I want to disable this behavior, and change my forms to only be validated when the submit button is pressed.
I don't mind hacking through the validate script itself also, so if that's what the solution requires that's acceptable.
In Java, what's generally the most accepted way to organize a class in terms of the order in which declared data members and methods should be listed in the class file, keeping in mind the following and anything else you can think of for each one:
its visibility
whether it's a constructor, method, or member
if it's a method, does it overload, or override other method(s)?
Hey everyone,
I am currently trying to create a subclass of UIImageView in order to make it download its image from server asynchronously ;)
I tried to do it by myself but I haven't gone very far yet :D
Anyway, I looked around here and found this :
AsyncImageDownload
I had a look at the code and the first which springs to mind is : why subclassing a UIView and not a UIImageView ?!?
Any thoughts ?
Cheers mates,
Gotye.
I have a C# system using 160 bit numbers, stored in a BigInteger. I want to display these things on a circle, which means mapping the 0-2^160 range into the 0-2Pi range. How would I do this?
The approach that jumps instantly to mind is
angle = (number / pow(2, 160)) * TwoPi;
However, that has complexities because the division will truncate the result into an integer.
Due to a Hard disk problem I am trying to shift a partition from one hard disk to another. I am following http://www.ibm.com/developerworks/library/l-partplan.html article to do that. In the copying part I would like to ignore one particular sub directory. How can I accomplish that keeping in mind when copying I have to preserve my owner group and time stamp. There is around 700 GB of data that needs to be copied if I do not ignore a particular subdirectory.
I have an idea for an Eclipse plugin which I've been toying with. I need to be able to extend the Eclipse Java Editor component and add coloured overlays to the code based on pluggable external metrics. Unfortunately there doesn't appear to be any kind of syntax highlighting extension point.
Does anyone know how I might be able to extend the exisitng eclipse Java Editor to add custom highlighting rules?
Bear in mind I'm new to Eclipse plugin programming so please give as much detail as possible.
..
.box_content ::selection {
background:#CCCC33; /* Safari */
}
.box_content ::-moz-selection {
background:#CCCC33; /* Firefox */
}
Anyone know if I can combine those like this?
.box_content ::selection .box_content ::-moz-selection {
background:#CCCC33;
}
Or maybe like:
.box_content ::selection, .box_content ::-moz-selection {
background:#CCCC33;
}
Honestly my mind is not there today.
Given a series of points, how could I calculate the vector for that line 5 pixels away? Ex:
Given:
\
\
\
How could I find the vector for
\ \
\ \
\ \
The ones on the right. But bear in mind that it may not always be a nice straight line.
I'm trying to figure out how programs like Flash can make thick outlines.
Thanks
Hi,
Would it be theoretically possible to make BackgroundWorker in a class to periodically refresh existing splash screen form, or is that impossible? (I know that it's probably bad design, but currently I do not see any better way.)
Please keep in mind that:
I do not want the background worker to do the loading as it would be terribly hard to implement.
I can't use the inbuilt splash screen support
I'm aware of DoEvents alternative but I do not want to go this path, it would very hard to implement as well, and not reliable.
Hi all,
I have a rather large database that has alot of decimal columns in alot of tables, the customer has now changed their mind and wants all the numbers (decimals) to have a precision of 3 d.p. instead of the original two. Is there any quick way of going through all the tables in a database and changing any decimal column in that table to have 3.d.p instead of 2 d.p?
The db is on sql 2005.
Any help would be great.
Hello everyone,
Kindly point towards theory/material to read for understanding colors and what makes a good color combinations. Mind it that I am not interested in say "Color combinations for web application" etc. More of the lines of say "Colors and humans".
Material free to read is what i am looking for.
Thanks
I recently read the Mono C# compiler is able to compile itself using the C# language. Cool. In the past I've heard of other languages doing the same. It twists my mind - at inception seems like a chicken and egg problem: syntax vs compiler. What comes first, second and third, etc?...
I'm looking for the BEST asp.net calendar/schedule component that it out there.
I like the look of google calendar, and it absolutely needs to be a native .net component, which can be customized.
I don't mind if it is part of a bigger framework (like telerik, for example).
Links to samples would be great.
I'm wondering - what i should keep in mind when trying to apply domain driven design on CMS app that has quite complex business logic? Aren't those beasts mutually exclusive?
Here's article to show what i mean.
Will calling
$ httpd graceful
clear out the APC cache, or do I have to do a full-blown
$ httpd restart
to do it? (Keeping in mind that I know there are better ways to do it, like calling apc_clear_cache() programmatically).
Hello people,
I have three images,and , they are not square or rectangular in shape. They are just like face of anyone.
So, basically, my images are in the size 196x196 or anything like that, but complete square or rectangle with the face in the middle and transperant background in the rest of the portion.
Now, I want to remove the transperant background too and just keep the faces.
Don't know if this is possible and mind you, this isn't a programming question.
I would like to use the jquery slideUp effect when the user navigates away from the page just to make the page look cool as it closes.
I assume that I should use the onunload event but how can I delay the page closing long enough for the effect to run to completion.
One of the options that came to mind is effectively hijacking the page closing function, storing it in some variable and then executing it once I had run my effect but I have no idea how I would do that.
Any suggestions or alternative ideas are more than welcome
I'd like to be able to add a class to images that adds a border that makes them look like a stack of photos. Anyone know how to do this?
Clarifications: Ideally something like the stack shown here but it doesn't need to be interactive and only needs to work for a single photo. I also don't mind using javascript if needed (jQuery would be preferred though).
It seems that JNI methods need to be written with the Java class signature built in to them. I want to call a JNI method that I didn't write. Can I call a native method on a library that was not written with my class in mind?
If I wanted to learn about pattern recognition in general what would be a good place to start (recommend a book)?
Also, does anybody have any experience/knowledge on how to go about applying these algorithms to find abstraction patterns in programs? (repeated code, chunks of code that do the same thing, but in slightly different ways, etc.)
Thanks
Edit: I don't mind mathematically intensive books. In fact, that would be a good thing.
This great SO answer points to a good sparse solver, but I've got constraints on x (for Ax = b) such that each element in x is >=0 an <=N. The first thing which comes to mind is an QP solver for large sparse matrices.
Also, A is huge (around 2e6x2e6) but very sparse with <=4 elements per row.
Any ideas/recommendations?
I don't mind most of the way that VS2005 auto-indents (or auto-formats) my C++ code, but certain items I don't want it to automatically indent. Like #define statements for example. It takes them and shoves them all the way to the left side of the screen, no matter how deep into my scope I type them. That's really really annoying.
Is there someway to alter this behavior, besides completely disabling auto-indent/format?
In the many search functions of C (bsearch comes to mind) if a result is found, a pointer to the spot in the array is returned. How can I convert this pointer to the index in the array that was searched (using pointer arithmetic, i assume).