Hello !
I'm trying to ressurrect UnderC C/C++ interpreter https://code.google.com/p/underc-fltk/ and I got it to compile with modern mingw compilers 3.4.5 and up, I need some experts advice on some topics:
-Yacc/Bison grammar (example some problems with recognizing "unsigned" alone and "friend class")
-ARM assembler only one function to call native os functions (X86 already there for windows and linux)
-General improvements
I expect it to work on WINCE, IPHONE, SYMBIAN in the near future.
Thanks in advance for your expertize, time and attention !
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'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?
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
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...
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.
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
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...
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.
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
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,
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?
Hello All,
I have made a program which is fetching data from server to and game to server. I want to keep these record in my file. But my problem is this is not in good format that i can read easily. I am reading all data as "Byte" (from java). Can anybody explain header or data info of packet. so I can read it in human manner Huh
thanks.
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?
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]
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?
I'm not too certain this is a SO question, but I didn't think it belonged in meta either.
Long story short, I am bioinformatics researcher. I like to code, it's my favourite part of the job. I have been thinking for a while that if academia is not kind to me, I might seek a career in software development. My current contract is for three years and I would like to spend some time over the next 3 three years learning and practicing software development as possible.
Python seems like a popular language and it what I mostly use to do things for me, but I am also in heavy use of R.
So my main question is:
Are python and R good things to be learning with a sotfware dev goal in mind, and if so, is there any particular type of programming or software that might be useful to have experience with.
Hard questions to answer I know, but I thought I would get the answer from people who are in the know.
Cheers,
Davy.
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();
}
Possible Duplicate:
The written versions of the logical operators.
I notice that C++ define keyword and, or, not, xor, and_eq, or_eq, not_eq and xor_eq as an alternative to &&, ||, !, ^, &=, |=, != and |=. and they're rarely used! What's wrong? Are they not portable?