Like dude wtf I'm learning WPF and LINQ and all this cool crap but it's all 3.0+ stuff is that pretty widespread deployed by now these days?
Also let's say it can't run but they got like 1.1 or 2.0... will it auto-say "Click here to upgrade to latest .NET!"?
I would like to do this because i have half installed service because of installation failure which is just there non functioning.
How can we remove the windows service using the command line ?
I get this error
All the emails are in a queue
Message 1Nzpy9-0005pH-JI is not frozen
delivering 1Nzpy9-0005pH-JI
LOG: MAIN
== [email protected] R=lookuphost defer (-1): host lookup did not complete
According to this python page, oursql looks very cool.
oursql has real parameterization.
oursql allows text or binary data to be streamed into the database and streamed out of the database, instead of requiring everything to be buffered in the client.
oursql can both insert rows lazily and fetch rows lazily.
oursql has unicode support on by default.
So, Anyone start using it in the live projects and could share pros and cons over it?
help! my boyfriend's birthday is next month. since he is a programmer, I'd love to make him a cake with the code for "happy birthday" (and perhaps something awesome) written in icing on top. not being a programmer myself, i have no idea where to begin. any suggestions would be greatly appreciated!
I do not understand why people choose C++ over Smalltalk in past and why Java over Python or Ruby. What is it that ties people so much to the procedural programming and makes it so difficult to go "all the way" to object oriented programming? What makes OOP hard? Should not objects be an abstraction which is easier to grasp for people, i.e. a more natural one than procedures? Is education the problem (because people tend to learn procedural programming before object oriented)?
Hi All,
RAID6 is intended to provide fault tolerance in the event 2 disks fail.
What is the minimum number of disks required to implement RAID6?
thanks
I'm using Windows 7 64bit (RTM version).
I bought myself a new Brother MFC6490CW but I'm having troubles with installing the drivers.
When I set compatibility to Windows Vista Service Pack 2 I can only install the scanner functionality from the Brother Solution Center and not the printer driver:
Printer (driver) FAILED FAILED
Scanner (driver) Installed Connected
PC-FAX send FAILED FAILED
PC-FAX receive Installed Connected
Remote Setup Installed Connected
Anybody who was a fix for this? The brother drivers for windows 7 will be released at the end of October and I can't wait so long. Need my printer..
Tnx in advance.
Possible Duplicate:
PHP Regular express to remove <h1> tags (and their content)
I have some HTML that looks like this:
<h2>
Fund Management</h2>
<p>
The majority of property investments are now made via our Funds.</p>
Trying to use a regular expression to strip h2 tags but doesn't work because of the space between the opening and closing h2 tags.
preg_replace('/<h2>(.+?)<\/h2>/', '', $content);
Any ideas on how to make this work?
Also I would ideally like it to replace h1-h6 tags so maybe it needs [1-6] or something?
hi...does anyone know the "best" Ubuntu version to choose for a VPS host? i'm after stability and scalability. Slicehost offers Hardy, Intrepid, Jaunty and Kramic. any ideas?
A jury consists of 12 persons each of which has, before the trial started, a probability of 0.4 to vote in favor of the defendant's innocence. During the trial, the lawyer has a probability of 0.6 to change the mind of each juror who was biased against the accused. How likely is the defendant to be acquitted if he needs 10 votes in favor?
Hi all,
Wheter or not the meta keywords are very usefull i'm still tobbing with this issue:
I have some standard keywords to describe my site: tv,webtv,radio,watch,listen,live.
Now those keywords are shown on every of my 600+ pages as base-keywords, and then
I append page specific keywords after them. Is this right or wrong?
So should i have this:
tv,webtv,radio,watch,listen,live,cnn,international,stream
or
cnn,international,stream
For live example see seetor.com
Kind regards
Mark
It's well know that
1) the way computers actually work
2) the way computers are protrayed in movies
are not the same. In particular (2) looks much much cooler than (1). Where can I learn more about making flashy, superficially useful but deepdown useless fancy graphics UIs like that?
It's almost in the realm of "hollywood special effects" -- like fire/smoke/fire, but I don't want natural phenomenon; I want user interfaces.
Concrete question: where can I learn about creating flashy, cool looking (though not necessairly useful) user interfaces? [Perferably in OpenGL]
C program that accepts three integer values from the user representing the three sides of a triangle.
echo whether the 3 numbers makes a equilateral, scalene or isosceles triangle.
My miniproject is based on C. My application written in C accepts a keyboard input as scancodes(for example b=48,n=49...like that)
Can anybody pls let me know,what scancodes are, briefly...
Dear All
While having tea with one of my colleague at evening time yesterday. He asked me one puzzle related to cake.
The puzzle goes this way:
Suppose i have a circular cake.
And to that cake, I have to cut three times anywhere
with maximum number of pieces without bothering abt the equal segment
So how many maximum number of pieces it will make?
A/c to me, the maximum number of
pieces will be 7. But i am not sure.
So please can u all tell me how many maximum number of pieces it will make & how?
Please answer one at a time.....
Thanks in advance...
I have a requirement for developing a black hole generator. They say that this may allow time travel and getting rich...
whatever...what do you think it's the best approach for black hole generator
a) Infinite loop
while (1==1) blackHole++;
b) Division by 0
try
{
6/0
}
catch
{
//blackHoleGenerated
}
Given a string, "ABC", print all permutations
Given a dollar bill, fill out possible ways it can summed up using .25, .10, .5, etc.
Given a phone number (123-456), print out all it's word counter parters like (ADG-XYZ)
A B C D
E F G H
I J K L
M N O P
In the above 2D matrix, print all possible words (just literally all words, and sure we could check if it's exists in a dictionary). The base case is I think here is that reaching the same i, j positions.
Any others you can think of?
hi im new android developer
i am trying to login to my asterisk server passing my username and password it works good
but when i am trying to request anther url to the server after login i get access denied
and i now the problem because the login connection has disconnected
so i want a way to request to urls the first one is login to the server and the second is to do something else after login
please help and thx anyway
this is a part of my code
i want to request this 2 url
url1="http://192.168.1.7:8088/rawman?action=login&username=admin&secret=admin"
url2="http://192.168.1.5:8088/rawman?action=updateconfig&reload=yes&srcfilename=users.conf&dstfilename=users.conf&Action-000000=newcat&Cat-000000=6001&Var-000000=&Value-000000="
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tv1 = (TextView) this.findViewById(R.id.display);
ed1 = (EditText) this.findViewById(R.id.editText);
bt1 = (Button) this.findViewById(R.id.submit);
bt1.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
{
try{
ServerRequest(url1);
ServerRequest(url2);
} catch(Exception e) {
Log.v("Exception",
"Exception:"+e.getMessage());
}
}
}
});
}
public String ServerRequest(String serverString)
throws MalformedURLException, IOException {
String newFeed=serverString;
StringBuilder response = new StringBuilder();
Log.v("server","server url:"+newFeed);
URL url = new URL(newFeed);
HttpURLConnection httpconn
= (HttpURLConnection) url.openConnection();
if(httpconn.getResponseCode()==HttpURLConnection.HTTP_OK) {
BufferedReader input = new BufferedReader(
new InputStreamReader(httpconn.getInputStream()),
8192);
String strLine = null;
while ((strLine = input.readLine()) != null) {
response.append(strLine);
}
input.close();
}
tv1.settext(response);
return response.toString();
}
I am working with USB device on Windows that is seen as a virtual serial port. I can communicate with the device using CreateFile and ReadFile functions, but in some cases my application does not call CloseHandle (when my application in development crashes). After that all calls to CreateFile fail (ERROR_ACCESS_DENIED), and the only solution is to log in to my computer again. Is there any way to force closing the open handle (or reopening) programmatically?
So I know there are a lot of questions on getters and setters in general, but I couldn't find something exactly like my question. I was wondering if people change the use of get/set depending on different languages. I started learning with C++ and was taught to use getters and setters. This is what I understand:
In C++ (and Java?), a variable can either be public or private, but we cannot have a mix. For example, I can't have a read-only variable that can still be changed inside the class. It's either all public (can read and change it), or all private (can't read and can only change inside the class). Because of this (and possibly other reasons), we use getters and setters.
In MATLAB, I can control the "setaccess" and "getaccess" properties of variables, so that I can make things read-only (can directly access the property, but can't overwrite it). In this case, I don't feel like I need a getter because I can just do class.property.
Also, in Python it is considered "Pythonic" to not use getters/setters and to only put things into properties if needed. I don't really understand why its OK to have all public variables in Python, because that's opposite of what I learned when I started with C++.
I'm just curious what other people's thoughts are on this. Would you use getters and setters for all languages? Would you only use it for C++/Java and do direct access in MATLAB and Python (which is what I am currently doing)? Is the second option considered bad? For my purposes, I am only referring to simple getters and setters (just return/set the value and do not do anything else).
Thanks!