How do you run Scheme programs from the terminal in linux(ubuntu)? Also how to accept arguments from the command-line in a Scheme program?
Edit: Im using the DrScheme implementation.
Hi! My program file is encoded in utf-8 so "abc".length==3 but "åäö".length==6. I realize that å,ä,ö, are stored as two bytes in utf-8, and that a ruby String is a sequence of bytes (not characters), but it is annoying! Is there a best practice to work around this problem?
I am trying to plot the following !
from numpy import *
from pylab import *
import random
for x in range(1,500):
y = random.randint(1,25000)
print(x,y)
plot(x,y)
show()
However, I keep getting a blank graph (?). Just to make sure that the program logic is correct I added the code print(x,y), just the confirm that (x,y) pairs are being generated.
(x,y) pairs are being generated, but there is no plot, I keep getting a blank graph.
Any help ?
I am searching any way for embedding Weblogic server in Java , I know its possible because we have maven plugins for Weblogic which embeds Weblogic in maven, But googling for it did'nt gave me useful output, Does anybody know how can we embed wemlogic in java program ?
File "/usr/local/lib/python2.5/site-packages/libxml2.py", line 1, in <module>
import libxml2mod
ImportError: /usr/local/lib/python2.5/site-packages/libxml2mod.so:
undefined symbol:xmlTextReaderSetup
>>> import libxml2mod
>>> import libxml2
>>>
on Python Prompt it works fine !!
can anyone has idea why my program is not working from .py file as import is working perfect from python prompt.
i have sqlCE DataBase, i have Tdate field (datetime)
i notice that his format is: MM/DD/YYYY
in my C# program i work with date in: DD/MM/YYYY format.
how i can insert to my sqlCE data base my C# format ?
i have C# program that works with Oracle 11g
when it works on my computer all works excellent
but when its run on the customer computer - the connection to Oracle work good
but when i try to run any Crystal-Report i get this error:
Could not load file or assembly
CrystalDecisions.windows.forms.version = 10.5.3700.0.
culture = neutral.publicKey Token = 69fbea5521e1304 or one of its dependencies.
The system cannot find the specified
thank's for any help
I'd like to detemine the amount of time it takes for my ASP.Net program to generate certain sql queries using linq.... note - I want the query generation time, not the query execution time. Is this possible, or even feasable (if its usually fast)?
My website has some heavy traffic and I want to cover all of my bases.
I had problem with my client program when I run my client in eclipse or netbeans, I get a runtime error java.lang.RuntimeException: Spurious serialisation error. But when i use command prompt I have no errors.
Here is my client code
http://pastebin.com/jUkw7F7k
I'm trying to program a Hebrew site with a search option.
I am using php 5 with Apache 2.2, on a Debian 5 (Lenny) with
appropriate code pages enabled.
I am using _POST to pass arguments to a script. If I pass
English word to the script everything works, but when I use Hebrew
nothing is passed through the POST function. When I use ECHO
to show _POST, the variable is empty.
What might be the problem?
I'm looking for a virtual webcam driver to use in a .NET project, this project will be GPL, and have no idea how many installations there will be
The idea is that the application is using the webcam without locking the device.
Found a couple of programs that do the job, but either in application and/or too expensive:
* http://www.softservice.org/products_camsplitter.html (9.99$/installation)
* splitcamera.com (program, no SDK available)
All idea's are welcome
Hi,
I need to limit the entries that appear in my list control since two much entries make my MFC program slow. Is there a way to show only the last few entries (say for an example the most recent 100 entries) in a list control???
Thank You!!!
I get the following errors:
error: missing terminating " character
and
error: stray `\' in program
In this line of C code:
system("sqlite3 -html /home/user/.rtcom-eventlogger/el.db \"SELECT service_id, event_type_id,free_text, remote_uid FROM Events WHERE remote_uid=\'%d\' ORDER BY start_time DESC;\" > lol.html", nr);
"nr" is a integer variable.
I have gone over this so many times but are totally stuck of finding a solution.
EDIT: The errors is the ouput while compiling with gcc if I didn't make that clear.
Can you tell me where to store application specific data on a Win Mobile phone.
Let's say my app is named MyApp and I install it in the program files folder. I have two initial files in My Documents that it uses with no problems. But what is the correct destination on the device?
Also, when I do an uninstall, do I leave the modified app data?
Can't find a generic topic about this but what do you guys recommend for an application that creates a simple installer? Just need something that places it into an appropriate folder in Program Files, adds shortcuts to the StartMenu.
My professor recommend Superpimp but that seems like overkill. :P
Thanks SO!
Hello
We have 2 languages which are (informally) semantically equivalent but syntactically different. One is xml and another is script based. How can I go about formally proving that both languages are in fact equivalent. Script approach is just a convenient way to write a same program that would be tedious to write in xml.
Thanks
Ketan
Is there a way to allow an HTML file to open an application on the local computer and send that application arguments?
We have an application that allows a user to set a link to an external application. We also provide a summary page in HTML (they usually interact with the application from outside the browser) with the link in HTML as well. We can get applications to launch if the program exists, but cant seem to send arguments through the HTML link.
Is this even possible?
There are two Image files in my folder which I have to call in my program. I have used:
AppDomain.curentDomain.baseDirectory + "Path and file name";
But this goes into my bin directory which I don't want; I want to read the folder from root directory where my folder name as resource I have saved my file there and call the image so please what's the code for that?
How do I read from root directory in a Windows Form Application?
I have a function:
char *make_text(void)
{
char txt[MAXLEN];
//make something
return txt;
}
Thats my main program:
int main(void)
{
char *s = make_text();
puts(s);
getch();
return 0;
}
puts(s) returns 0 and its nothing printed. Whats happened?
Lots of developers I know were self taught programmers including me.
I was wondering how much of the developer community learned programming by taking a course in school or by experimenting, asking questions on forums, reading online articles, and just making it up as you go along? Post whether you were self taught or took classes, what language you program in, and anything else that may be interesting.
P.S. Books count as self taught.
Hi all i have developed a some graphic programs in desktop system. Bu when i tried to run it in the hp compaq lap top its not getting executed. I developed it using turbo c. Then i tried writing a simple graphic program in turbo c in laptop, but the problem i am getting is in 'initgraph' statement it is unable to detect the driver. Can you please tell me what might be the problem.
Hi,
I have create a socket with CFSocket.
My program is correct but now i wanna close the socket (client side).
There is a istruction?
Thanks and sorry for my English XP
My code:
CFSocketRef s;
s = CFSocketCreate(
NULL,
PF_INET,
SOCK_STREAM,
IPPROTO_TCP,
kCFSocketDataCallBack,
AcceptDataCallback,
&context);
...
CFSocketConnectToAddress(s, address, 0);
...
//here i wanna close the socket
I have an owner-drawn list control in my Windows program. I use CListCtrl::GetBkColor to get the background color, and for a selected item I use GetSysColor(COLOR_HIGHLIGHT). This matches what Windows uses for non owner drawn list controls, except for the case where the control doesn't have focus - then the background is replaced with gray.
Does Windows use one of the GetSysColor constants for the selected but unfocused background? If so, which one?
I have write a small helloworld program that needs cocoa framework. I'd like to know how to add framework in cmake. All the information I have found is out-of-date. I have cmake 2.8.1 on snow leopard.