Why do I never see the prototype property in JavaScript code I edit, from books and documentation I've read, it seems to be a cornerstone of the language.
In Visual Studio, editing a C# file, when I type in three slashes in succession, it auto-generates a template for XML code documentation.
Can I get emacs to do something similar?
Im creating a custom control. I have common code for WPF and XBAP application. I have some different calculation/work to do if it’s a XBAP application. How to detect whether it’s an xbap application or a WPF application?
I need to bind width property of the GridView column that is created dynamically in code.
Since GridViewColumn object has no SetBinding method, how should I do this?
Thanks in advance.
Example: I want to do this:
METHODNAME(5) {
// do something
}
which results in:
- (void)animationStep5 {
// do something
}
Is there any way to do this? Basically, what I need is a way to generate a real source code string before the program is compiled, so the compiler does see - (void)animationStep5...
Or maybe there's something different than a macro, which can help here to auto-generate method names (not at run-time)?
I realize this sounds a little crazy, but I'm working on a project for which I need a server to run user-provided Ruby code and return the result.
I'm looking to prevent something like this:
system("rm -rf /")
eval("something_evil")
# etc...
I'm sure there must be some reasonably safe way to do this, as it already exists at places like tryruby.org. Any help is greatly appreciated, thanks!
A naive question - i am a novice on mac programming.
How to change text color on Macintosh? My code uses TESetText and TEUpdate for drawing.
PS - Mac is really really badly documented.
I've recently read the Yahoo manifesto Best Practices for Speeding Up Your Web Site. They recommend to put the javascript inclusion at the bottom of the HTML code when we can.
But where exactly and when ?
Should we put it before closing </html> or after ? And above all, when should we still put it in the <head> section ?
Hello all,
I am not sure if its possible but I would like to create some sort of function where you pass in a string such as "yellow" or "green" and it returns its hex code or the range of hex codes that greens or yellows fit into.
Is this possible in PHP? If not possible, I am willing to try anything else that can do this!
Thanks all
I'm working with code igniter and for some reason, the url http://mysite.com/account/100 gives me a 404 error. Here's what my controller looks like.
class account extends Controller {
function account()
{
parent::Controller();
}
function index()
{
echo $this->uri->segment(2);
}
Any idea what's wrong?
I'm searching for a console code editor with CUA key bindings (ctrl-x c v etc.)
Right now i'm toying mcedit but i don't really like it. My desired features are:
* be fast
* CUA key bindings (ctrl-x c v etc.)
* toggle show line numbers
* find/replace/goto line
* bind custom keys to action( ctrl-shift-arrowdown to double the curent line etc.)
* nice simple vi-like interface (no pointless menus)
* be able to programatically extend it ...
etc.
i want to develop an application on android phone regarding voice recorder.i have to record a sound for about 30 seconds and then stop and save the recorded sound in gallery.can anyone post the code if you have please?
I was wondering if there is any library that can be used to represent SQL queries as objects in Java.
In the code I have plenty of static variables of type java.lang.String that are hand written SQL queries. I would be looking for library having a nice fluent API that allows me to represent the queries as objects rather than strings.
Example:
Query q = select("DATE", "QUOTE")
.from("STOCKMARKET")
.where(eq("CORP", "?"))
.orderBy("DATE", DESC);
I need to know which version of the report viewer control is used on a web server.
If I can find it without asking it would be nice.
Is there a way, by code, to find out which version of the assembly is used on the server?
I am using an LPC2132 ARM chip to develop a program. However, my program has grown larger than the space on the chip.
How can I connect my chip to some sort of external memory chip to hold additional executable code? Is this possible? If not, what do people normally do when they run out of chip space?
I am interested in the following scenario specifically. Suppose you have team that writes production code and a team that writes automatic tests. The team that writes automatic tests has a dedicated framework intended to write the automatic tests. Should the testing team write unit tests for their framework although the framework is not used in production?
Hello,
I hear 3 years ago problem and apparently have infinity solutions.
I want to find one of this infinity set.
Problem: Write program (have only one file example "selfsource.c") who printing on stdout self source code and exits.
All techniques all alowed. Anyone can help me?
what is the problem of this code ? how to solved it ? parent processes goto in my tag or child process ?
#include <signal.h>
#include <sys/wait.h>
main() {
for (;;) {
if (!fork()) {
exit(0);
}
sleep(1);
}
}
is the code given is executable in Windows system? as it seems to be Linux commands
echo 'create database foo2' | mysql -uroot
mysqldump --skip-triggers -uroot foo | mysql -uroot foo2
At WWDC 09 in Session 304 "Game Development for iPhone, Part 1 (Graphics, Audio)", about 6 minutes after start of the Session, they showed off a small but nice OpenGL ES game demo and repeating over and over again how easy it is to implement. Is that source code of the demo available somewhere for download?