Hello,
If I write an application in java, does it use native widgets if run on Mac OS X? Or does it use "lookalike" widgets provided by the java runtime?
Thanks.
I'm fairly new to the C preprocessor. Is it possible to change the case of an argument provided to a function-like #define? For example, I want to write test(size) and then involve "Size" in the resulting replacement.
I'd like two websites to have read/write access to the same user profile database (named "aspnetdb" by default). Presumably this is possible by configuring the websites appropriately in the web.config. Are there any issues I should be wary of?
i have .java file. i need to generate .form file using the java file. when i write a java file then automatically .form file should be created. by using java swings how can we create .form file
Hi,
I want to select the records from a table which are updated or added in the last one month (table doesn’t have any datetime field and I can’t change the table structure).
Is it possible to write a sql query for that? how to fetch those records from table
regards,
kumar
Does anyone know a good way to test if one element, stored in a var, is the child of another, also stored in a var?
I don't need element1.isChildOf('selector'), that's easy.
I need element1.isChildOf(element2)
element2.find(element1).size() > 0 Does not seem to work.
I don't want to have to write a plugin the uses .each to test each child if I can avoid it.
The guys who wrote Bespin (cloud-based canvas-based code editor [and more]) recently spoke about how they re-factored and optimize a portion of the Bespin code because of a misconception that JavaScript was slow. It turned out that when all was said and done, their optimization produced no significant improvements.
I'm sure many of us go out of our way to write "optimized" code based on misconceptions similar to that of the Bespin team.
What are some common performance bottleneck misconceptions developers commonly subscribe to?
Hi guys,
I am trying to write an php twitter script which will be run by crontab, what the script does is to get the tweets from a dedicated twitter account.
I have looked at some of the php twitter oauth libraries, all of them seem to use redirect to a twitter page to get a token, then goes back to a callback link. In my case I don't want to have any user interaction at all.
Could anyone please tell me what I should do?
Regards
James
I'm trying to write a Haskell program which requires the output of external programs (such as lame, the mp3 encoder). While declaring dependency on a library is easy in cabal, how can one declare dependency on an executable?
I want to write a generic function to calculate factorial in C# ... like:
static T Factorial<T>(T n)
{
if (n <= 1)
return 1;
return Factorial<T>(n - 1);
}
but obviously having restriction that we can't perform operations on type 'T'. any alternative?
Not quite sure whether I'm using the right terminology here, but Netbeans has a very nice feature where e.g. if you start typing for it will offer to write a code fragment looping over an array or list, basing it on the name and type of an array or list variable actually in scope.
If more than one such variable is in scope it will guess, sometimes correctly and sometimes not.
Is there a way to aim this feature at the correct array/list variable?
Is there any cost/drawback (apart from typing too much) to adorning a class with System.Runtime.Serialization attributes (like [DataContract]) such that it can be used locally as a direct reference to a desktop Client project or as a type for a WCF service? The goal here is to write a data-tier class that can be used in both rich client (WPF) and Web scenarios. My data classes will be in a project that is separate from Client and WCF (*.svc code-behind) code. Is this a valid attempt to reuse code?
I have heard developers say that people who write code should not be the ones testing it. I am looking for peoples experience in this situation. Many times I have done my share of development, then released to the QA dept and had the code sent back to me becuase some aspect of the application was broken due to my coding, regardless of how much I had tested it prior to QA release.
Does anyone on this board have a process to follow, that enables them to throughly test their code before releasing to QA?
How can I write an efficient SQL query that returns columns form table A plus a bit column that specifies whether the PK of table A exists in table B? I am using MS SQLServer 2005. Thanks.
from ARM DDI 01001, there is a term: process geometry, does it mean the chip size?
Caches and write buffers to improve average system performance are now commonplace in ARM® memory
systems. Core clock rates have increased at a faster rate than memory access times over recent years. This
factor, and smaller process geometries, the economics of on-chip memory, and system power constraints
have encouraged the use of caches to meet growing system demands.
thanks.
Hello.
var date = new Date();//Mon Mar 15 2010 12:40:05 GMT+0300 (MSK)
var omg = date.getDate() + 19;// 34
date.setDate(omg);
document.write(date.toLocaleString()); //Sat 03 Apr 2010 12:43:00 PM MSK
How do I echo the values 3 (ie: day of month), 4 (April) and the current year?
alert(day); // Need 3
alert(month); // Need 4
Thank you
Will you be so kind to tell me why the sysytem can't load POSTGRE extension for PHP?
In php.ini I write:
extension=php_pgsql.dll
But when I reboot, I get this warning:
Unable to load dynamic library: C:/PHP/exe\php_pgsql.dll. There are no problems with other extensions.
Why are there two ways to "declare" constants in CPP?
Which is better, or should I write, which of them should I use when?
#define MYCON 100
const int MYCON=100
I want to write a Python web application that queries RDF triples using Prolog. I found pyswip for interfacing Python with SWI-Prolog, and I am currently looking into SWI-Prolog's RDF capabilities. I am wondering if anyone has tried this before--and if anyone has: what did your setup look like? How do you get pyswip to work with the SWI-Prolog semantic web library? Or is there another Python-Prolog interface that makes this easier?
I just need a php based script for my website where in i have a textbox and a button and whatever i write into it gets posted into my facebooks wall ..
Also prior to this i will be logged into facebook
Is there a Mathematica function like inject in Ruby? For example, if I want the product of the elements in a list, in Ruby I can write:
list.inject(1) { |prod,el| prod * el }
I found I can just use Product in Mathematica:
Apply[Product, list]
However, this isn't general enough for me (like, if I don't just want the product or sum of the numbers). What's the closest equivalent to inject?
I have a httphandler that is fitred for all .png files. I would to be able to rewite the name of the file into the html. Is this possible? So if test.png comes into the handler I want to write test.png?V=1
So far I have found the following:
context.Response.AddHeader("content-disposition", "inline; filename=" + context.Request.FilePath + "?V=1");