Not sure this is possible, but Looking to write a script that would return the average hex or rgb value for an image. I know it can be done in AS but looking to do it in JavaScript.
hello!
i have a little problem...
on win xp, if i write on commandline
shutdown -t 00 -r -f
the reboot works fine.
but if i paste it, as is, in a bat file...the prompt show me an infinite loop.
anyone can say me why?
thanks a lot for any suggestion :)
I dont see any direct mention on using multiple slugs (or any behavior for that matter) for single model. Is there a way to use the sluggable behavior to generate two separate slugs for a model?
For example i need to generate two slugs for every record a product_id consisting of a slugified company name and sku and a distributor_id consisting of a different slugified company name.
Obviously i could write this myself fairly easily, im just wondering if this can be done quickly with Sluggable.
I'm trying to write a small script to change the current directory to my project directory:
#!/bin/bash
cd /home/askgelal/projects/java
I saved this file as proj, changed the chmod, copied it to /usr/bin. When I call it by:
proj, it does nothing. What am I doing wrong?
Hi, I inserted some error record to my table, I can query via the sql below and found hundards of record marked with half.
SELECT * FROM `marathon`
WHERE gender = 'male' && distance = 'half';
How to write a SQL then I can modify the result rows distance from 'half' to 'full'.
Thank you.
I just had to write the most redonkulous expression in an SSIS Derived Column to get dates formatted like "01-JAN-2010". It lookes like this:
There's got to be a better way... isn't there?
I need to write a software, which launches DRM jobs in a customer environment and monitors those jobs status.
It should work with various customer environments and DRMs - like LSF, Sun Grid and others.
Can you recommend some 3rd party library, which hides DRM differences from me and has API like "launch job", "get list of jobs", "get job status" etc. ?
Both Java and native libraries are good for me.
CLojure agents is powerful tool. So actions to the agents are asynchronously sent using functions "send" and "send-off". And in theory there couldn't appear something like deadlock.
Is there possible to write some clojure code (for example invoking from some action another action to another agent) using agents in which we have some concurrency problem - it could be deadlock, race condition or anything else.
(guys, i'm very sorry for my english)
I have the requirement of updating an app to use multiple (i.e., two in this case) datasources depending upon the type of query. For instance, use DB1 for reads and DB2 for write operations. How would I approach this?
Hi
I am using visual studios 2010 and created a javascript file(jscript.js) and I saw on one page saying you can make constant variables in javascript like:
const x = 20;
bu to on another page I read it says you can't. So I am confused now what is it now?
Also in Visual studios when I write "const" it underlines it in the javascript file and goes syntax error.
If I forgot to add mappings to a persister object, NHibernate will throw an exception when I'll run the application.
I want to write an integration tests, that test that all mappings are provided to NHibernate.
Hello,
I am writing a piece of code in which i have to find only complete words for example if i have
String str = "today is tuesday";
and i am searching for "t" then i should not find any word.
Can anybody tell how can i write such a program in java?
Hi,
it seems that this question has been asked before, I just would like to know whether there is an update in Android.
I plan to write an audio application involving low delay audio I/O (appr. < 10 ms). It seems not to be possible based on the methods proposed by the SDK, hence is there - in the meantime - a way to achieve this goal using the NDK?
Best regards,
HK
Is there any protection provided by kernel? Because when we tried to allocate memory using an
kmalloc() from user space, the kernel allowed to allocated around 124
MB of memory, and when we try to write into it, the kernel crashed. If there
was protection of kernel memory area, this wouldn't have happened, i guess
I have a html form where visitors can fill and send me some information, as an e-mail. It sends like this:
$body = print_r($_POST, true);
mail ($to, $subject, $body, $headers);
When they write abc'def I get abc\'def
What is this additional \? How I can prevent it?
In Learning WCF, by Michele Bustamante, there is a section that describes a binding called the NetNamedPipes binding. The books says that this binding can only be used for WCF services that will be called exclusively from the same machine.
Under what circumstances would it make sense to use this? Ordinarily, I would write asynchronous code without using WCF... Why would Microsoft provide something for WCF that can only run on the same machine?
hello I think the title says it all. I need to accomplish this result in android but it looks like there is no easy fix to my problem. Just to clarify a bit more: if I had to do it in html css I would write something like
<img src="Image URL" style="float:left; margin-right: 5px;" />
got it? ;)
thanks guyz
Is there a way to give css syntax highlighting to any <textarea> using any bookmarklets, Favlets? I work on CMS where i write and manage CSS in plain <textarea> like notepad? is there a boomarklets to get css syntax highlight in <textarea> temporarily.
In Workflow for reading and writing files the authors use these two lines of code:
var file = air.File.documentsDirectory;
file = file.resolvePath("AIR Test/testFile.txt");
But I think that it's using one variable for two different meanings, isn't it?
Wouldn't it be better to write them as:
var myDocumentsDirectory = air.File.documentsDirectory;
var myTestFile = myDocumentsDirectory.resolvePath("AIR Test/testFile.txt");
Google have just thrown up thousands of errors for duplicate content on my link tracker I am using.
I want to make it so Google & any other search engines do not visit my pages on the link tracker.
I want these pages to disallow these robots, my pages are:
http://www.site.com/page1.html
http://www.site.com/page2.html
How would I write my robots.txt to make all robots not visit these links when they are in my page?
Hi..
i need to know how to create own event handler occurs when we recieve message from keyboard or the button was pressed and then we write output in a textbox...
What I'd like to do is write just Lazy C++ .lzz files and then have lzz run before a build to generate .cpp and .h files that will be built into the final application, sort of like how moc works with Qt.
Is there any way to do this?