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 ?
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...
write a function to get most popular car that accepts a car detail as input and returns the most popular car name along with its average rating .Each element of car details list is a sublist that provides the below information about a car (a)name of a car(b)car price (c) list of ratings obtained by car from various agencies.Incase two cars have the same average rating then the car with the lesser price qualifies as most popular car?
here's my solution-:
(define-struct cardetails ("name" price list of '(ratings))
(define car1 (make-cardetails "toyota" 123 '( 1 2 3)))
(define car2 (make-cardetails "santro" 321 '( 2 2 3)))
(define car3 (make-cardetails "toyota" 100 '( 1 2 3)))
(define cardetailslist(list(car1) (car2)(car 3)))
(let loop ((count 0))
(let (len (length cardetailslist))
(if(< count len)
(string-ref (string-ref n)0)
now please tell me how to find maximum average and display car name.it's not a homework question tomorrow is my test and we have not been taught this concept in class although it is very important from test point of view
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.
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
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...
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
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
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?
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)?
How would you fix this code?
template <typename T> void closed_range(T begin, T end)
{
for (T i = begin; i <= end; ++i) {
// do something
}
}
T is constrained to be an integer type, can be the wider of such types and can be signed or unsigned
begin can be numeric_limits<T>::min()
end can be numeric_limits<T>::max() (in which case ++i will overflow in the above code)
I've several ways, but none I really like.
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?
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]
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();
}
Hi everyone...
I'm doing some research on Simple Look Up Tables.
I have :
been thru wikipedia.
Googled Look-up tables
Browsed thedailywtf.com
Been thru several websites illustrating/documenting look-up table code.
Currently i am looking for any insight anyone can throw on the topic (LuTs).
Also, I am specifically looking for any anecdotes one would like to share (again on LuTs).
All content will be adequately acknowledge (or anonymised, if requested) in the article.
Thank You
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
}
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.
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?
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?