Hi!
Is there a maximum number of assembly language instructions to be loaded into the fragment program unit?
I have an algorithm on to port from cpu to gpu and apparently it doesn't fit on the gpu.
This may not be directly related to programming, but I always find it hard to get quality icons that can be used for software.
I currently have the need for some type of "green checkmark image", and I always seem to be looking for print, save, delete types of icons...
Anybody have good resources?
Note: I rather not be stealing someone's intellectual property.
For university, I perform bytecode modifications and analyze their influence on performance of Java programs. Therefore, I need Java programs---in best case used in production---and appropriate benchmarks. For instance, I already got HyperSQL and measure its performance by the benchmark program PolePosition. The Java programs running on a JVM without JIT compiler. Thanks for your help!
P.S.: I cannot use programs to benchmark the performance of the JVM or of the Java language itself (such as Wide Finder).
Since the launch of .net 4.0 a new term that has got into lime light is parallel computing. Does parallel computing provide us some benefits or its just another concept or feature. Further is .net really going to utilize it in applications ?
Further is parallel computing different from parallel programming ?
Kindly throw some light on the issue in perspective of .net and some examples would be helpful.
Thanks...
This question might not be a programming problem, but its been bothering me. There is a lot of free js/css scripts out there for public use. I some times use these scripts. If any, what is the formal and proper way to credit these snippets when all i have is a name of a website and a url.
I understand that a simple comment might get the job done but i wanted to know whether there is a more professional way.
Hi
I'm doing programming with ASP.NET . I have no idea how to use JavaScript in ASP.NET Server Side controls ( Totally uncomfortable with it ) . Do you mind introduce me some resource for folks like my type , please ?
Hey guys I am a COMPLETE beginner to programing and i have 2 questions:
im thinking of learning java is this a good language
2.What are some recommended books/ sites for learning java as a complete noob
thanks guys so much!
Hey,
In MonoRail/Active Record if I want to grab all records that have a certain column equal to null, I can do:
public static Category[] AllParentCategories()
{
return (FindAllByProperty("Parent.Id", null));
}
However, what if I want to grab all records where that column doesn't equal null? I can't figure out how to do that using this FindAllByProperty method, is there another method that is more flexible or a way to grab records using a linq-like querying language?
Thanks,
Justin
I would like to clip an image with path. In the book Programming with Quartz there is an example on how to draw a circle clipped by a rectangular path (p.37), and there is also a chapter on image masking with existing image as stencil (Ch.10). But I'm still not sure about how to clip an existing image using path. Is there any example or pointer?
Is it possible that the iPhone can somehow send data or some control command to the computer's com ports via USB cable? Maybe use inline assembly language for instance? Thanks!
It seems like a no brainer to me. I've heard countless stories about people forgetting the WHERE clause in an UPDATE or DELETE and trashing an entire table. I know that careless people shouldn't be issuing queries directly and all that... and that there are legitimate cases where you want to affect all rows, but wouldn't it make sense to have an option on by default that requires such queries to be written like:
UPDATE MyTable SET MyColumn = 0 WHERE *
Or without changing the language,
UPDATE MyTable SET MyColumn = 0 WHERE 1 = 1 -- tacky, I know
This isn't really a programming question but... Is there any way to draw online a lattice for a material, like a compound? i.e. a 3D gridlike pattern? I know there are some applications for drawing mathematical lattices, but the notation to me is unfamiliar - are there simply programs or applets or something for drawing lattices like in a compound?
how does this work?
in irb:
>> class A
>> b = [1, 2,3]
>> end
=> [1, 2, 3]
Is b an instance variable? class variable? how would I access b from
outside the class? Is it used for meta-programming?
Is this considered good programming practise in C++:
try {
// some code
}
catch(someException) {
// do something
}
catch (...)
{
// left empty <-- Good Practise???
}
How to handle the case where the token 'for' is used in two different situations in the language to parse? Such as statement and as a "parameter" as the following example:
echo for print example
for i in {0..10..2}
do
echo "Welcome $i times"
done
Output:
for print example
Welcome 0 times
Welcome 2 times
Welcome 4 times
Welcome 6 times
Welcome 8 times
Welcome 10 times
Thanks.
Im trying to make a program that captures a video from the webcam and sound from the microphone but im getting stuck at the part where ive try to make a movie out of still images
ive heard you need to use directshow but it doesnt jet work for me
Does someone know a good piece of example code that captures video and sound and can encode it to a file (divx or something like that) ?
or some suggestions where to look so i can build it myself
(if a other programminglanguage is better for this im happy to know it early. )
Hello everybody!
I've been wondering whether is possible or not to pass a function as parameter in PHP; I want something like when you're programming in JS:
object.exampleMethod(function(){
// some stuff to execute
});
What I want is to execute that function somewhere in exampleMethod. Is that possible in PHP?
Thank you so much.
Language : C++
Platform : Windows Server 2003
I have an exe calling a DLL, in which when I allocate (new) the memory for class A (which is in DLL) it returns me a non-local heap pointer.
I try to new other classes which are in DLL and "new" returns a valid heap pointer for them, its only Class A which is not being allocated properly.
I am on windows and validating the heap by this function call :
_CrtIsValidHeapPointer ( (const void *) pPtr )
I am seriously confused why this only happens with new-ing Class A and no other class ?
(All Native Code)
SELECT u.id AS u__id,
u.username AS u__username,
p.id AS p__id,
p.phonenumber AS p__phonenumber,
p.user_id AS p__user_id
FROM user u
INNER JOIN phonenumber p ON u.id = p.user_id
WHERE u.id IN (SELECT DISTINCT u2.id
FROM user u2
INNER JOIN phonenumber p2 ON u2.id = p2.user_id
LIMIT 20)
This query is from here:
http://www.doctrine-project.org/documentation/manual/1_2/en/dql-doctrine-query-language
It's supposed to work on all DBMS ,but not in fact
Whatever it be, caffeine, tobacco, whatever, list your programming performance enhancing drug of choice.
Do you feel like you NEED it to be most effective at your work?
Vote up someone if they answered the same as you.
Hi,
I have some PHP code that sends a section of html code including some inline Javascript code by curl to google. When i get it back from Google translated into the language that i chose, the Javascript code has been translated too.
Any ideas as to how i can stop Google translating my inline JavaScript code?
Thanks,
M
i read this statement from a book i read
The Document Object Model or DOM is really not a part of JavaScript but a separate entity existing outside it. Although you can use JavaScript to manipulate DOM objects, other scripting languages may equally well access them too.
what is the best way to avoid conflict between javascript and other client-siede scripting language when we have to deal with XMLHTTPRequest object
I am not sure what language or how to do this, but I am looking to have a word on a page, and when clicked, it will reveal more underneath. If it is clicked again, that stuff will hide away again? Any ideas?
I want to loop through a Python list and process 2 list items at a time. Something like this in another language:
for(int i = 0; i < list.length(); i+=2)
{
// do something with list[i] and list[i + 1]
}
What's the best way to accomplish this?
I've got several pre-commit hooks that I would like to run before each commit. Right now, they are all just shell-scripts, so I know i could just concatenate them to get them all to run. In the future though, additional scripts may be written in Perl, PHP, or some other language as well.
How can I run several different scripts as part of a single pre-commit hook?