Hi all,
I was curious to know how I can round a number to the nearest tenth. For instance If I had
int a = 59 / 4 /* which would be 14.75 and how can i Store the number as 15 in "a"*/
Thanks,
Dave
Recently, I've been exploring Java space, and came across Spring Framework.
Is this a web app framework like CodeIgniter or Rails ?
If so, is Springs used for developing enterprise web applications that runs on Java EE technology ?
I am curious, why Spring is getting lot of attention. Isn't it a lot cheaper to simply use LAMP + CI or Rails to develop web application ?
Can Spring be used to develop desktop applications ?
Im currently an E.E. under grad. and i was curious about matlab, I am now on break and i want to take my matlab a step beyond what i know (which is beginner to intermediate). For an example, i heard about a student doing a project that involved matlab controlling sensors to detect sunlight (solar panel related) and I am not sure how he did it?
Hi Folks,
I'm curious what would be the best practice to extend the Date constructor.
The problem I'm facing is, that the Internet Explorer (< 7+8) can't parse a date like
new Date('2010-05-11');
I have to admit that this is not a standard method to parse, anyways FireFox and Chrome perform well on that kind of date string.
Now I'm wondering, should I just split/parse/rebuild the string before calling new Date() or is there a more elegant solution ?
I know this is completely subjective, but I'm curious: do you use separate filters for headers and source files in your Visual Studio solutions? Visual Studio creates "Header Files" and "Source Files" filters by default. To me, this dichotomy causes more annoyance than anything else.
What's your take on this?
Hi! Got the following warning output when using GCC 4.5.0 & MinGW.
Warning: .drectve `-aligncomm:___CTOR_LIST__,2 ' unrecognized
Warning: .drectve `-aligncomm:___DTOR_LIST__,2' unrecognized
What does it mean? I guess it's version-specific, because GCC 4.3.4 under cygwin didn't give that warning on the same project.
If anyone had the following output (just curious that's that about), please advise me what to do.
Just curious to find out exactly what problems I'll cause myself if I include multiple elements in my web-page with the same id?
for example:
<div id='someID'>Some Content</div>
<div id='someID'>Some Other Content</div>
Hi!,
I have setup svnserve server (1.6.5,plain, without apache) on Fedora.
I start the svnserve with the command
'svnserve -d --foreground --listen-port=3690 -r /usr/local/svn-repos/proj-test'
When user trying to checkout working copy from the local machine with command
'svn checkout svn://127.0.0.1/proj-test' gets following error
svn: URL 'svn://127.0.0.1/proj-test' doesn't exists
but, 'svn checkout svn://localhost/proj-test' works.
I am curious to know why using 127.0.0.1 with svn:// fails?
Thanks.
Banani
I was looking through the docs and stumbled onto mysql_real_escape_string() and I'm not understanding why it's useful when you can just addslashes(). Can someone show me a scenario as to why it's useful?
I'm also curious why it requires a database connection.... that seems like a lot of overhead.
I'm building a PHP-based web app for the first time and I haven't found anything to pattern it after. At this point I'm mostly curious about how the files should be arranged into directories so that development of the website can be manageable. This includes javascript scripts, images, stylesheets, cgi scripts, html files, pure php files that define common functions, etc.
Question: Can someone point me to an explanation about how such a website is typically organized on the server?
Who here is both a musician and a programmer?
I would also be curious to know which instruments you play, the ages at which you started programming and playing music, your personal experiences, etc. Perhaps we can find a relationship between these two things.
I'll begin:
Piano since 10, Computer since 12, I am 21.
Note: Question originally from pheze.myopenid.com.
Related: Jazz Programmer
I'm curious if anyone has seen an Open Source radio automation package (I found one in Russian on CodePlex) built on .NET
In addition if I wanted to build something like this in a client server environment is WCF and WPF the best way to do it? Is it fast enough to trigger songs to play/encode on the server from a remote WPF client?
Sort of vague questions but I wanted to get some community feedback.
I understand that an id must be unique within an HTML/XHTML page.
My question is, for a given element, can I assign multiple ids to it?
<div id="nested_element_123 task_123"></div>
I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner.
Hi,
I have a question about how to store the assembly language in memory,when I compile the C-code in assembly, and run by "step", I can see the address of each instruction, but is there a way to change the start address of the code in the memory?
Second question is, can I break the assembly code into two?
I am curious about how the machine store the assembly code.
BTW, I am working on a MACBOOK Pro, duo core.
Thank you.
-da
I'm using Ninject (1.5 ... soon to be 2) and I'm curious how other people use Ninject or other IoC containers to help wire up events to objects? It seems to me in my code that I'm doing it herky-jerky all over the place and would love some advice on how to clean it up a bit.
What are people doing out there to manage this?
While studying C# I found it really strange, that dynamically typed Python will rise an error in the following code:
i = 5
print i + " "
whereas statically typed C# will normally proceed the similar code:
int i = 5;
Console.Write(i + " ");
I would expect other way around (in python I would be able to do this without any casting, but C# would require me to cast int to string or string to int).
Just to highlight, I am not asking what language is better, I am curious what was the reason behind implementing the language this way.
Just curious,
Is there any difference between calling len([1,2,3]) or [1,2,3].__len__() ? If there is no apparent difference, what is done differently behind the scenes?
Thanks
I'm using MiGLayout and being the freak i am, i was thinking if it's possible to create a single instance of the layout and use it for all my panels? Just curious...
I am curious? What high fundu logic goes behind not implementing:
result+=vector1;
where both result and vector1 are stl vectors.
Note: i know how to implement that bit, but i need to know what logic, the sages who designed STL were using when they chose not to implement this feature?
i have this python script where i need to run 'gdal_retile.py'
but i get this an exception on this line:
if Verbose:
print(Building internam Index for %d tile(s) ..." % len(inputTiles), end=' ')
the end='' is invalid syntax just curious as to why.. and what the author probably meant to do.
I'm new to python if you haven't already guessed.
i'm just curious. so i ask this particular question about SQLite. I haven't use this type of database extensively. but care to explain what is the basic different between SQLite and Mysql ?
The reason behind all of this is i just want to know whether it possible to use it to store wordpress data and act as a database ?
im curious as to know, why tests are written? why would bother writing it ? why not just compile and run the code or view it in your browser, click around and test out stuff.
i mean i can understand, a crawler that checks your web app's functions....but why is tests written, maintained and treated as important as the main feature codes ? is it crucial to always write and use tests ?
I've found this in the CGPath.h header file. I'm curious what this const thing does?
typedef struct CGPath *CGMutablePathRef;
typedef const struct CGPath *CGPathRef;
My guess: If I typedef something as const, it's constant so immutable and can't be changed in any way. Does that make sense?
I'm just curious...on the status bar on the home screen and the lock screen, is there a way to change the time that is displayed??? I've been trying to find things on this both in SDK 3.2 and 4 but with no luck.
Thanks for any responses! I really appreciate them :)
i have seen a lot of coders choosing this filename convention:
file.class.php.
is this a standard of naming class files?
just curious. so i know if i should follow it for all class files in the future.
thanks