I use multiple components that has a border painted. Is there any easy way to add a margin to the component so that the borders aren't painted so close to eachother?
I have a java project (not using groovy) but I'd like to interactively play with my java classes within groovysh. Is there an easy way to use the pom from my project to set the classpath of groovysh?
Is there an easy way in Magento to display individual products in a cms page without copying and pasting the code from the catalog pages?
I have a blog on my magento store and sometimes I'd like to drop the listing for individual products into the posts.
I understand this is a subjective question, so I apologize if it needs to be closed, but I feel like it comes up often enough for me to wonder if there is a general preference for one form over the other.
Obviously, the best answer is "refactor the code so you don't need to test for falsehood" but sometimes there's no easy way to do so and the "else" branch is simply to continue processing. So when you must have an "if not false" construct, which is the preferred standard:
The not operator
if(!value)
Or the test for false
if(value == false)
I'm trying to implement sub surface scattering at isosurfaces and looked up how a BSDF works mathematically.
Implementing the reflective and diffuse part seems to be quite easy as i just have to evaluate phong at the isosurface intersection, but how do you I apply the transmissive part of the BSDF? In what way do i have to modify the ray direction.
Any pointers to a practical implementation are welcome.
Thanks and So long!
hi,
I need to place my drop down menus at the same position (and same width) like in this website:
http://lancelmaat.nl/index.php?option=com_content&view=article&id=98&Itemid=79
Furthermore I want to change the content of some items, by placing some html (like in "Contact" item in the reference page).
Is this easy to do with Nice Menus ?
Thanks
Hi, I've looked around, but don't see this question - maybe its too easy, but I don't have it.
If I have file containing color values like:
255,
65535,
65280 ( I think this is green)
is there a way to either:
convert these to a System.Drawing.Color type or....better yet..
have .NET accept them as is to represent the color?
thanks,
I have a ASP.NET application I've inherited from the person who did my job previously, when I try to debug the program I get the error below.
"A project with an output type of class librart cannot be started directly"
I'm familiar with desktop programs but I'm new to working with ASP.NET, the code is easy enough to understand but I can't get my head around how to successfully debug it.
PS VS 2008 if that helps.
Thanks
Jim
Everytime I load my model into XNA, I can usually see it far off in the distance. When I change some parameters and make it zoom up close, 10/10 times it's rotated funny and I'm set with the task of rotating it. Is there any easy way to do it except by experimenting? Or am I exporting it wrong (using Blender)? Is there any value I should set the objects in my 3d scene to be before exporting it so they appear 'upright'?
I'm working my way through the NotePad tutorial, and that's all fine - I'm not a Java programmer but it's close enough to C# (or vice versa) to make it easy to pick up. I'm surprised that there aren't any RAD tools for Android apart from Mobiforms. Is there anyone out there with experience of Mobiforms ?
Hello, everyone!
Is there are an easy way to store some of entitie's properties in a column as a bulk, as XML or something? Querieng by those properties of course is not an option, but it still'd be valuble to be able to extend data model without database migration.
I was reading this great article about Base SDK and Deployment targets and decided to try it out myself. The Deployment target seems to be buried in the Build settings, and not that easy to access compared to the Base SDK target (which is right there in the General tab of the project settings). To get to the Deployment settings now I have to Get Info, go to the Build tab, then search for "Deployment".
Is there a quick way to check and access the Deployment target in Xcode that I'm missing?
Ok, I have a flowchart definition (basically, array of nodes and edges for each node).
Now I want to calculate coordinates for every task in the flow,
preferably hierarchycal style.
I need something like Graph::Easy::Layout
but I have no idea how to get nodes coordinates: I render nodes myself and I only want to retrieve box coordinates/size. Any suggestions?
What I need is a CPAN module available even in Debian repository.
By security I mean that encoded string is indistinguishable from random noise and is different on every encryption of the same text so it is impossible to make a guess on encryption algorithm used or do any dictionary attack on the encoded text.
Second: output string length does not correspond to the input string length in easy way, so it is not possible of make guessing on that account.
Third: it is possible to verify that the provided password is incorrect so the decoding function could return false instead of supposedly decoded random string.
Unfortunately, Java has no syntax for multi-line string literals. No problem if the IDE makes it easy to work with constructs like
String x = "CREATE TABLE TEST ( \n"
+ "A INTEGER NOT NULL PRIMARY KEY, \n"
...
What is the fastest way to paste a multi-line String from the clipboard into Java source using Eclipse (in a way that it automagically creates code like the above).
Using Python I need to insert a newline character into a string every 64 characters. In Perl it's easy:
s/(.{64})/$1\n/
How could this be done using regular expressions in Python?
Is there a more pythonic way to do it?
For the love of God I am not getting this easy code to work! It is always alerting out "null" which means that the string does not match the expression.
var pattern = "^\w+@[a-zA-Z_]+?\.[a-zA-Z]{2,3}$";
function isEmailAddress(str) {
str = "[email protected]";
alert(str.match(pattern));
return str.match(pattern);
}
Alright, this is an easy one:
What's the difference between Application.ThreadException and AppDomain.CurrentDomain.UnhandledException and do I need to handle both?
Thanks!
While working with ActiveRecord I have a table which stores a serialized array of participant usernames for each row. Is there an easy way to search for all rows who contain a specific user?
I realise I could just make a new linked table for the participants, but I feel like that would increase my overhead unnecessarily -- what do you think?
We have an existing PHP page (from an earlier project) which could be described as cryptic and ancient. It basically displays a form, catches the input and runs an external application to process the input and then pipes the output to the user.
I would really like not to modify this file any more than is required. Would there be an easy way to just make this file magically work by copying it to some location in the CakePHP's directory and have it receive $POST etc. as usual?
I'm just learning Sphinx, and I need to edit ReST files. Is there an intelligent editor for it? Like, an editor that gives me code coloration, easy indentation, code completion (hopefully), etc.
I have an Access database and the source of data comes from generated CSV files. I'd like to have an easy way for the users to simply select the data file and import it. Import should append the existing data to the data already in the data table. Is there a way in Access to create a file selector and import using saved CSV import settings that are already in the file?
hi, i have to work on skin in flex, but this time , i have to use vector images from adobe illustrator, this is very easy in case of adobe photoshop, as we have .png files, just import them in flash and make them a movie clip, and u r done with the skinnning
but i m facing problem when i m copying images from adobe illustrator in to the flash, actually i have a hslider and i have to put vector skin, but when images copied on adobe flash, they lost their corners, so skinning is not perfect,
i hope u got it, plzz tell me the solution of making vector skinning
thanx in advance
Hi,
Is there an easy way to have the complete code in a lstlisting environment underlined?
My current solution looks like this, but I'm not really happy with it.
\begin{lstlisting}[mathescape]
$\ul{if(gt(x1, 0)) then} $
...
\end{lstlisting}
Thx for any tips.
I am looking for a easy to use library in java that can convert a video into arrays(corresponding to frames). Arrays will be used for frame processing with standard algos like GMM