I'm curious about why early versions of the BASIC programming language had line numbering like in:
42 PRINT "Hello world!"
The text editors back then had no line numbering?
Attended an interesting demo on REST today, however, I couldn't think of a single reason (nor was one presented) why REST is in anyway better or simpler to use and implement than a Web Services stack.
What are some of the reasons Why anyone in the "real world" use REST instead of the Web Services?
Hello,
I am a computer science Student Second year ,and i know good deal about c++,Data Structure, File Structure,OOP etc.
I decided to learn java i have read couple of books but i know u need practice to master any Programming language so i wonder if anyone could give me the assignments"only the questions not the solution" so that i could solve them as i am getting bored of "hello world"s and "3+2=5"s kinda stuff
thanks,
~HW
I'm currently using the following code to output text in green to the terminal:
printf("%c[1;32mHello, world!\n", 27);
However, I want more shades of green. What's the easiest way to accomplish this?
I'm using django and realized that when the filename that the user wants to access (let's say a photo) has the pound sign, the entry in the url.py does not match.
Any ideas?
url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root':
MEDIA_ROOT},
it just says:
"/home/user/project/static/upload/images/hello" does not exist
when actually the name of the file is:
hello#world.jpg
Thanks,
Nico
The Singleton pattern is a fully paid up member of the GoF Patterns Book but lately seems rather orphaned by the developer world. I still use quite a lot of singletons, especially for Factory classes, and while you have to be a bit careful about multithreading issues (like any class actually) fail to see why they are so awful.
This site especially seems to assume that everyone agrees that Singletons are evil. Why?
I am writing an iPad application that uses the MapKit control.
How do I get all my content into Google Maps. i.e. I have a bunch of locations along with photos, video, audio and various other information.
So when the iPad user loads my App and zooms into a certain place in the world I want my Annotations to be visible and when they touch the pins they get access to more information etc.
Do you know any open software projects that had particularly interesting / well written unit tests ?
Writing unit tests often feels odd to me, because it seems either too random, too dense, to sparse, .. It would be great to read some real world examples (rather than books, library example code etc)..
Hi can someone point me to some Good Open Source Code to learn Web Programming (Language doesn't matter).
i'm looking for source code of web-applications not frameworks
I'm not a beginner, I can code to some extent. I want to know how stuffs are done in real world applications.
I'm unable to get this script to work as an extension in google chrome. No alert shows up. normal javascript alerts work.
// ==UserScript==
// @name voip
// @namespace 1
// @description voip
// @include *
// @require http://jquery.com/src/jquery-latest.js
// ==/UserScript==
$(document).ready(function() {
alert("Hello world!");
});
// When I Run The Following Two Lines, I Get The Error Shown Below
var B:Button=new Button();
var lineMetrics:TextLineMetrics=B.measureText('Hello World');
// TypeError: Error #2007: Parameter antiAliasType must be non-null.
From My Point Of View, As Useless Errors Go, This One Is Unsurpassed.
Can anyone point me in the right direction?
I am building an Android hello world application in Netbeans. It's building properly and I am to run in the emulator also.
But when creating and running the Junit test and running the test I get a java.lang.NoClassDefFoundError.
How can I fix this problem?
I'm toying around with OCaml. The first thing I want to know how to do is build an OCaml project. Right now, I just want something stupidly simple since I'm just learning. Could anyone point me towards a build system along with a "hello world" type example for using that build system?
I am looking for a small linux tool that would be able to extract text from odt file.
It just needs to be human-readable and it can have problems with complicated objects etc.
It's almost a duplicate of this question but I need it to be small and have no dependencies on OpenOffice or X server
I remember having a 1MB MS-DOS program that could render .doc files quite readibly (with some weird markup getting through from time to time), so i expect it to be possible in the linux world too ;)
void foo() {
struct Foo { .. };
std::vector<foo> vec; // why is this illegal?
}
I'm not returning foo to the outside world. It's just a temporary type that I use within the function.
Hi,
Im trying to find a way to plot a truss in matlab, i can do it by using an adjacancy matrix and the gplot function, but its very long winded approach especially if there are a lot of nodes connected to one another. Is there a faster way to do this?
I'm new to matlab and the programming world any help would be really appreciated.
JC
Is it possible to use Xcode using iPhone 3.1.3 SDK to compile a standard C program that will work on the iphone? I'm trying to use xcode to compile a basic 'hello world' but to no avail. Do I need to obtain an additional application template or am I just missing something?
Within the @Controller of a search engine:
@RequestMapping(value = "/search/{query}", method = RequestMethod.GET)
public String search(@PathVariable String query) {}
If a user wants to search /search/w?rld (wich should match world, warld, whrld, etc.), the variable query equals w, because of the question mark which indicated a GET var.
I tried "/search/{query:.+}", but still doesn't work.
Any idea how to solve that problem?
This site drives me crazy! I'm a web developer. I understand technology, I understand OpenID, but I don't have a clue how to login to this site with the username I created whilst asking another question unless I ask yet another question?
Sure, this is a techie site but if I can't work out how to log in then what hope is OpenID to the rest of the non technical world?
In a Unix world I've been happily using gdb for debugging and valgrind for memory analyzation.
Are there open-source quality alternatives for Windows?
I'm looking for lightweight pieces of software that do what you need, and never get in your way (just like gdb and valgrind).
I'm looking at maybe moving from an older AMD64 to a new Intel dual-core which is 32 bit. Installation isn't a problem but can I transfer all the installed apps? I haven't been
able to find anything so far on Google except where the migration is to a similar platform and file-system. I won't change the filesystem but the platform will be different. Is there something on the lines of the "World" file in Gentoo?
Why do browser vendors make their own
css properties, even they know these
will not pass the w3c validation?
What is the purpose? Is for their own
testing, or for web developers, or to
demonstrate browser capabilities
to the world and to the W3C organizations
and to CSS development team of W3C?
is it like a beta version of
demonstration?
if i use any browser specific for now
can they remove that property's
support from future versions.will i have to edit my css in future
For example:
https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions
If I call the killSwitch() outside the onkeypress, I'll cause an error.
But inside the onkeypress function, I worked just fine.
Why?
// this works fine
var ClassA = function()
{
var doc = document;
// killSwitch();
doc.onkeypress = function(e){ killSwitch(); }
this.killSwitch = function(){ alert('hello world'); }
}
var myClass = new ClassA();