C language allows jumping inside loop. What would be the use of doing so?
if(n > 3) {
i = 2;
goto inner;
}
/* a lot of code */
for(i = 0; i < limit ;i ++) {
inner:
/* ... */
}
I am using the YUI Rich Editor (SimpleEditor) which gives an editor that has a heading that says "Text Editing Tools" and a +/- button that shows/hides the editing tools. I don't need this, how can I hide them or disable these features?
Thanks!
One of the new features of Scala 2.8 are context bounds. What is a context bound and where is it useful?
Of course I searched first (and found for example this) but I couldn't find any really clear and detailed information.
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.
I am trying to upload a pdf file using webservice api. But this api doesnot work for pdf file. it works fine for text file.when i try to upload a pdf file it give error as
Client-SOAP-ERROR: Encoding: string '%PDF-1.4 %\xc7...' is not a valid utf-8 string
So can we convert this pdf file into utf8 string.
i am using php as a scripting language.
Not sure about you guys, but I detest working in CSS. Not that it is a bad language/markup, don't get me wrong. I just hate spending hours figuring out how to get 5 pixels to show on every browser, and getting fonts to look like a PSD counterpart.
So a question (or two) for programmers out there. How much time (%) do you spend on web markup? Do you tend to do this type of tweaking, or do your designers?
This probably is one of the easiest questions ever in C programming language...
I have the following code:
typedef struct node
{
int data;
struct node * after;
struct node * before;
}node;
struct node head = {10,&head,&head};
Is there a way I can make head to be *head [make it a pointer] and still have the availability to use '{ }' [{10,&head,&head}] to declare an instance of head?
Hello,
I would like to know if there are some libraries/algorithms/techniques (python, if at all possible) that help to extract features from accelerometer data (extracted from and android phone, btw), like periodicity of movements, energy of acceleration and the like. Has anyone done this kind of task before?
Thank you very much in advance :)
I've Googled and poked around the Go website, but I can't seem to find an explanation for Go's extraordinary build times. Are they products of the languagefeatures (or lack thereof), a highly optimized compiler, or something else? I'm not trying to promote Go; I'm just curious.
Does anyone know how to change these length parameters in the middle of a latex document?
\paperwidth
\paperheight
I would like to define a page size for a single page (possibly two or three). I tried v5.3 of the geometry package, which just added some new features; like \newgeometry. Unfortunately \newgeometry cannot be used to redefine \paperheight and \paperwidth.
Any help would be very appreciated.
Hi,
I'm trying to find a way to get some weather information with Yahoo Weather using Yahoo Query Language.
As i'm living in France, in a city called Nice, the following query returns an error:
select * from weather.forecast where location='Nice'
And as I have the latitude and longitude coordinated, how can I give them to the YQL to return the weather info? Is this service worldwide or just for USA?
Thank you,
Regards.
It is said that Ruby is a metaprogramming language. I wonder if the first 3 lines can be made less verbose using metaprogramming?
RUBY_VERSION ||= "unknown version"
RUBY_PATCHLEVEL ||= "unknown patchlevel"
RUBY_PLATFORM ||= "unknown platform"
print "Ruby ", RUBY_VERSION, " patch ", RUBY_PATCHLEVEL, " on ", RUBY_PLATFORM
When i am using mysql_real_escape_string on my unescaped strings the data in the database is storing with the backslashes which should not happen.
I have magic_quotes_gpc OFF not sure why this is happening. Any idea ?
Is there any setting in the mysql database which needs to be modified.
I am not using addslashes any where in the code. PHP language.
Please help.
The C# Language Reference on MSDN defines that protected internal as "Access is limited to the current assembly or types derived from the containing class". But from the semantic point of protected internal" sounds to me like both protected and internal which means the member will accessible only to those derived classes with in the same assembly. Is there any access modified that has a meaning to the same effect?
Right now I have a very high volume of requests coming to my webserver which execute a PHP CGI script.
Every one of these scripts opens up a config file that I have created to load options of how the script should run.
Doing a file I/O operation everytime a request comes in seems very resource intensive to me. I'm not too familiar with the advanced features of PHP, are there any alternatives to achieve what I'm doing?
i am unable to open some attachments which is in russian language using microsoft outlook 2003. this problem is with my 2-3 staffs. and i am able to open these mails in outlook express in same computer. what is the problem?
I'm looking for a proper C# immutable dictionary, with fast update methods (that create a partial copy of the dictionary with slight changes). I've implemented one myself, using zippers to update a red-black tree, but it's not particularly fast.
By 'immutable dictionary' I don't just mean readonly or const. I want something that has reasonably fast 'With' and 'Without', or equivalent, methods that return a thing with slight modifications without modifying the original.
An example from another language is map in Scala
Is there any really low level programming language that can get access the memory variable directly? For example, if I have a programme have a variable i. Can anyone access the memory to change my programme variable i to another value?
I have set the header as c.setRequestProperty("Content-Language", "en-US"); in BB app and
i am reading it on server as Request.ServerVariables("HTTP_ACCEPT_LANGUAGE").
But i am getting a null value.
What may be wrong?
Hi,
I need to build a component which would take a few XML documents in input and check the following kind of rules:
XML1:/bookstore/book[price>35.00] != null
and (XML2:/city/name = 'Montreal'
or XML3://customer[@language] contains 'en')
Basically my component should be able to:
substitute the XML tokens with the corresponding XML document(before colon)
apply xpath query on this XML document
check the xpath output against expected result ("=", "!=", "contains")
follow the basic syntax ("and", "or" and parentheses)
tell if the rule is true or false
Do you know any library which could help me? maybe JavaCC?
Thanks
Hello.
I need to read sound stream sent by flash audio in my C++ application (C++ is not a real limitation, it may be C# or any other desktop language).
Now flash app sends audio to another flash app but I need to receive the same audio by desktop application.
So, is there a standard or best way how to do it?
Thank you for your answers.
I would like to make a function IsWordPronounceable(SomeWord:String): boolean;
i am working with SAPI and i need this function. I use delphi compiler, C/C#/C++ or any language is ok.. please help. i dont know how to start...
By textbook based i mean the author asks the reader questions/mini projects after every section/chapter of the book. And the book includes background info on php 5, like what kind of language, its use, syntax/semantix/structure etc. Any suggestions?
After I have the initial ASP.NET MVC 2 website and the default Membership provider up, how do I start adding features specific to an user? Like, say, we want to let users choose their favorite products and we want to remember these choices somehow or add a favorite color property to an user?
Where should these customizations go and how should they be associated with the out-of-the-box membership system?