Reading a post about redis I saw this word: REPL.
Can someone tell me what It is and how It comes into play during programming maybe adding some simple practical example or scenario?
As for C programming, one of the rules when we create new version of existing shared library is that we can't decrease the size of struct defined in that library.
Why does this have to be obeyed?
Hi, looking at a database dump file, and I see many records in various tables with their version number set in values other than 0 (even 94 in one case). I understand it has to do with hibernate locking strategy, but my concern is that today is Sunday, and the site has almost no visitors so is: is this normal ? Or is there a known hibernate bug or even some programming malpractice producing this ?
Thanks in advance.
In Chapter 3 of Programming Scala, the author gives two examples of for loops / for comprehensions, but switches between using ()'s and {}'s. Why is this the case, as these inherently look like they're doing the same thing? Is there a reason breed <- dogBreeds is on the 2nd line in example #2?
// #1 ()'s
for (breed <- dogBreeds
if breed.contains("Terrier");
if !breed.startsWith("Yorkshire")
) println(breed)
// #2 {}'s
for {
breed <- dogBreeds
upcasedBreed = breed.toUpperCase()
} println(upcasedBreed)
I am converting a PHP MySQL web application written for English language into a Multi-Language site. Do you know any vulnerabilities that affect web applications in another language? Or perhaps vulnerabilities that could be introduced in the conversion of code base to support multiple languages. (If you know any vulnerabilities of this type in another programming language I'll give you a +1)
I am not sure if you can post revision programming questions in here but i am stuck with some algorithms revision
If an algorithm is quadratic it takes time proportional to the number of n^2 ?
So if the slides say its almost 1/2 the square of n records is this the same as saying (n^2 * 0.5)
Thanks
In traditional embedded programming, we will give a delay function like so:
for(i=0;i<255;i++)
for(j=0;j<255;j++);
In the microprocessor's view, is this how the sleep() function works?
Is there an alternative for the sleep() function in C?
Hello, i am new in programming under linux and trying to get working this code:
http://scaryreasoner.wordpress.com/2007/11/17/using-ld_preload-libraries-and-glibc-backtrace-function-for-debugging/
but getting error: "ERROR: ld.so: object 'libwrap_ioctl.so' from LD_PRELOAD cannot be preloaded: ignored."
what can cause it?
system - Archlinux, kernel 2.6.32
thank you for answers
upd1:
"Check with ldd libwrap_ioctl.so if some dependency of this library is missing."
checked. no, i have all needed libraries
Of course, except technology stack. I'm asking about more fundamental skills such as design patterns or math.
POSSIBLE DUPLICATES:
http://stackoverflow.com/questions/76364/what-is-the-single-most-effective-thing-you-did-to-improve-your-programming-skill
http://stackoverflow.com/questions/132798/what-should-every-programmer-know
http://stackoverflow.com/questions/1177724/what-soft-skills-make-a-great-programmer
Hi, I would like to include (and by include I mean put in resources folder for viewing, not #include) apple's headers in my iPad programming app, can I do this or would this be against the rules?
Hi all:
I'm looking for an accurate way to measure memory usage of a C# program under Windows operating system. I'm using Visual Studio for programming my code and I want to know its time consuming for performance. Really, I tried to use the Task Manager, but I do not get an accurate measurment.
Please, if any one know an accurate way to measure the memory consumption, please help me and thanks alot
Hi i am fairly new to objective c and have been doing some iphone programming.
Is it possible to look up the value of a variable in a different class?
Basically what i am doing is running a function that exists in my app delegate from a view controller, but the app delegate needs to use a variable stored in the view controller from which the app delegate function was called. Make sense???
Any help would be grateful.
James
Hi!
I would like to use Oblique projection for menus and perspective projection for the 3d-scene. is there a way to combine between this two projections ?
In general I'm asking how can I create menus in opengl for my 3d scene.
Programming using the c++ language.
Thanks!
I really want to know popular opinion on controversial programming topics. Questions like:
Why do some people prefer vi over emacs (or vice versa)?
Is Java faster than C++?
Is Intel faster than AMD?
It seems SO discourages such conversions because of potential flamewars. So where do people go to discuss such matters? I'm especially interested in venues where people can "up vote" good comments and good questions.
The Core Data Programming Guide talks a lot about what not to overwrite. So the question is: What is good to overwrite?
Like I see it, I can't overwrite -init or -initWithEntity:insertIntoManagedObjectContext:
So where else would be a good overwrite point to set up some basic stuff? Or is it generally not needed to do custom initialization? Does the whole thing rely only on accessing properties which then start to do fancy things? So no custom initializations?
Lets say you have decided to join company A. During interview you got feedback on what technology you would be working on(C# win app) and other details( sketchy).Now you have decided to join the company. Is it ok to ask via mail for further information and also ask to specify certain topics to brush up so that one can be better prepared for next job? Of course i know this question is not programming related.
Hai,
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
This error is occur while creating a new template in google sites using java programming.
It's probably a hardware issue, but I was hoping that someone might know of other options to try. My iMac G5 (the revision just before the built-in iSight was introduced) has developed an annoying pattern of short/wide rectangles in a pinkish hue across the screen. I've followed Apple's instructions to ensure that the logic board hasn't failed (by resetting the SMU and watching the internal LEDs light-up). I suspect either the LCD or video card has failed. Below are two screen shots, one taken by my iPhone which exhibits the problem and a snapshot taking from the faulty iMac which looks fine.
I'm programming a function for a ti-nspire, so I can't use the builtins from inside a function. what is the most generally efficient algorithm for sorting a list of numbers without modifying the list itself? (recursion and list-splitting are fair game, as is general use of math.)
I know that everything we do in programming can be described as design pattern(even abstract method has design pattern called template method)
public class Guicer extends AbstractModule {
private static Injector injector = Guice.createInjector(new Guicer());
public static void setInjector(Injector injector) {
Guicer.injector = injector;
}
public static T getInstance(Class c) {
return injector.getInstance(c);
}
@Override
protected void configure() {
}
}
What design patterns are used in this code?
Hi all,
I am new to this kind of application and looking for some sample code how to connect to remote server using SSH , execute commands and get output back using java as programming language.
Thanks in advance.....
Regards,
Devayani
I'm an experienced developer, but most of my OO programming experience has been with C++ (and a little Delphi). I'm considering doing some Android work, hence Java.
Coming from the C++ background, what areas of Java are most likely to surprise/annoy/delight me?
I felt sure this would already have been asked, but my searches haven't turned up a similar question.
CW, of course.
I read the O'Really Book: Programming Flex 3 and I thought it was awesome. I am now migrating to Flex 4 and wanted to read a great book for Flex 4. There are many Flex 4 books out there and I really just want to read 1 to get me up and running fast. So if anyone can share/recommend some books that would be great!
Java is not my main programming language so I might be asking the obvious.
But is there a simple file-handling library in Java, like in python?
For example I just want to say:
File f = Open('file.txt', 'w')
for(String line:f){
//do something with the line from file
}
Thanks!