Short question:
Do any operating systems have a maximum time they can stay running?
Are there things like counters increasing all time that can reach a limit?
Which operating sytems?
I know it is kind of subjective, but as I've seen questions around like "How did you land your first job" etc. I thought it might be suitable. With so many technologies coming out these days and employers asking for specialists in those (no one is looking for generalists), I'm wondering how people here managed to pick one technology (or area) and focus on that. If this question is not suitable here, then where can I ask?
I have a clickonce application that is available online or offline. The program takes an argument. When online I pass the argument on the url like so "url?argument" and it works well. Offline i start a process with the startmenu link to the application.
My question is, is it possible to pass an argument to my application via this link? I guess I could somehow work out the location of the application file but is there an alternative?
Hi all.
My question concerns the output of this statement:
for x in range(4), y in range(4):
print x
print y
Results in:
[0, 1, 2, 3]
2
True
2
It seems there is a comparison involved, I just can't figure out why the output is structured like this.
After reading command design pattern, I have a couple of question -
Why we are creating concrete command and receiver object on client. Can't this initialization on invoker class?
I think client should create invoker and pass it's request to invoker. Invoker should take care of all the stuff.
By doing this,
We have less dependency on client.
The design of class diagram is totally different from actual design.
I want to implement greatest integer function.
int x = 5/3;
My question is with greater numbers could there be a loss of precision as 5/3 would produce a double?
Rather a simple question. But the implications are vast.
Over the last few weeks I've been reading a lot of material about n-tier architecture and it's implementation in the .NET world. The problem is I couldn't find a relevant sample for Winforms with Linq (linq is the way to go for BLL right?).
How did you guys manage to grasp the n-tier concept? Books, articles, relevant samples etc.
int 72
It's a question in our discussion in a C# class. I said 2 bytes, others said it uses 32 bits or 4 bytes due to the integer type. Which is correct?
Hello guys.
The topic says it all. In case of my question is not clear enough let me provide you a screenshot ;-)
I am editing ColumnHeadersHeight property. When I finish I want to use some a key to go to ColumnHeadersDefaultCellStyle property or to ColumnHEadersHeightSizeMode property. How to do that without using a mouse?
I was given the following as an interview question:
class A
{
public:
void fun()
{
std::cout << "fun" << std::endl;
}
};
A* a = NULL;
a->fun();
What will happen when this code is executed, and why?
Sounds like a "let me google it for you" question, but somehow I can't find an answer. The Lua # operator only counts entries with integer keys, and so does table.getn:
tbl = {}
tbl["test"] = 47
tbl[1] = 48
print(#tbl, table.getn(tbl)) -- prints "1 1"
count = 0
for _ in pairs(tbl) do count = count + 1 end
print count -- prints "2"
How do I get the number of all entries?
When I have a problem I often search the computing literature.
Some of the resources[*] I use are:
The professional associations?
ACM Digital Library
IEEE Xplore
The scientific publishers?
Lecture Notes in Computer Science
HCI Bibliography
What do you use? What is the best resource source (if there is one) for the working programmer?
[*] after stackoverflow and google of course :)
PS what tags should I use for this question?
Let's say we have an empty bathtub. We've lost the plug, so once water is added it will drain away at a constant rate of 2 liters pr. minute. We add water to the tub in increments. 60 liters at 10:51, 30 liters at 11:54 and 50 liters at 13:18.
So, the question is: How can I find out how much water is in the bathtub at any given time?
kind of a silly question, but ive been seeing things such as tbody and thead/tfood tags in other peoples tables
are these required even if they're empty for good markup? or can i just leave them out?
thanks
Hello all,
I have a simple question:
How do I detect if a parameter passed to my javascript function is an array? I don't believe that I can test:
if (typeof paramThatCouldBeArray == 'array')
So is it possible?
How would I do it?
Thanks in advance.
Hi,
I am using GDB to understand a C++ program. I put a break in the middle of the running which turns to be something like:
break main.cpp:500
and I would like to see which functions have been called before. I tried "backtrace" but it shows only info about main, as previous calls to previous functions have already finished.
My question is how can I get (with GDB or another method) the info about which functions have been called before this point, even if the call has been returned.
Thanks
To narrow down the question, please suggest web-based topics only. To be honest, I'm struggling to find one for myself :)
I'm doing Computer Science and looking for a web-based, individual project.
A suitable topic would have a certain degree of novelty, so while you guys browsing the web everyday, what kind of things you expect but haven't come up before.
Sorry for my lousy English :)
If I have magic_quotes switched on and I use mysql_real_escape_string, will the tring be double escaped? Will it cause problems? I assume so based on the get_magic_quotes() function but just seeking confirmation. (PS it's easier to ask this question than test it in my office with all the security we have in place - It takes me 10-15 to configure everything to get a useable envirnment)
Hello all ,
How to fix the size of the combo box (contents may be larger but the combo size should be fixed).Now my combo size is changed based on the items in the combo.
I'm trying to get something similar to the yahoo sign up page security Question combo:
https://edit.yahoo.com/registration?.src=fpctx&.intl=in&.done=http://in.yahoo.com/
my code:
Text which decides the size of the combo
First of all, here comes the load part.
Structure MainStruct
Dim Ans1 As String
Dim Ans2 As String
End Structure
Dim Build As New List(Of MainStruct)
...
...
...
Session("MyData") = Build
The question is how can i read back the contents of the list, stored in the Session?
I mean something like...
Build = Session("MyData").Ans1
I asked to my friend about this question, he said that it is used for destroying the object created during the exception handling. But in c# GC is there for destroying such kinds of unused objects, then what is the actual use of finally block. Tell me with a scenario related to that.
I am having an issue with a slider (implemented using Prototype) and IE7. Upon the slider value change I update a with the value such as "420,000".
Now on all browsers other than IE7 this is display correctly. But on IE7 it is displayed as "420.000" ..
my question is how did the "," become "."
the page has UTF-8 meta tag.
Any help?
INFORMIX-SQL or any other SQL-based DB:
Suppose I have an app where depending on the value of some columns, example:
company.code char(3) {abc}
company.brach char(2) {01}
Can I construct table name "abc01" for inclusion in SELECT * FROM abc01; ?
In other words, a variable table name.. same question applies for column names.
I'm running a CAKeyframeAnimation in a subclass of UIViewController. I want to pause the animation on pressing a "Pause" button and start back from where it paused on pressing a "Resume" button.
I've come across an answer to a similar question on this site, but it doesn't work for me.
I would appreciate any help.
Can you throw some points on how it is a best way, best practice
to install web application on Unixes?
Like:
where to place app and its bases and so for,
how to configure to be secure and easy to backup,
etc
For example I know such suggestion -- to set uniq user for each app.
App in question is Jira on FreeBSD, but more general suggestions are also welcomed.