Hi,
I am using ubuntu 9.10 and it comes with gcc 4.4.
How can I install gcc 4.5 without screwing up my gcc 4.4. environment. I just need gcc 4.5 to compile 1 application.
Thank you.
I know there's a way to capture a bitmap of a window in Windows without anything that may be obscuring it (e.g. you have a window with a dialog in front, but the dialog is not captured as it would be if you did a simple pixel grab), but I can't remember how to do so.
Also I believe this is only possible in Windows Vista and above, with the introduction of the compositing window manager?
I wrote a CSharpScriptBinding roughly equivalent to the PyBinding on CodePlex. It uses the C# script engine from http://www.csscript.net.
After I wrote it, I kind of decided it might not really be something good to use. Although it caches the compiled script code as an already compiled Assembly, my concern is that I will have one temporary Assembly created each time I use the binding. Will this add up to a problem in the future? If so, maybe there is a way in the C# script engine that I don't know about to optimize this further...? Any thoughts to confirm my suspicion that this was just a bad idea (but useful excersise in learning more about bindings and converters)?
Hi
I would like to zip a bunch of files (.exe and .dll) before I overwrite them with the new build. Is there a simple way to zip files without using some sort of dll?
Just creating a folder with the build number / date time stamp will also work great. How do I pass parameters from the cruise control build process into my Powershell script that will do the work then?
Is this a sustainable way to do things?
Thanks
I followed the instructions for setting up postgresql from this site
All seems to go fine until I try:
createuser --superuser myname -U
postgres
I get the following exception:
createuser: could not connect to
database postgres: could not connect
to server: No such file or directory
Is the server running locally and
accepting connections on Unix domain
socket "/tmp/.s.PGSQL.5432"?
For the life of me I can't figure out how to resolve this. Any ideas???
JFileChooser looks nothing like the native widget. I seem to remember reading some hack to get it look like the native widget but searching for it know i can't seem to find it again i came across posts that suggest using java.awt.FileChooser but that class does not seem to be in the distribution. How can i make JFileChooser make look like the native widget?
Compiling VIM on Mountain Lion does not work for me. I compile VIM with the following sequence:
hg clone https://vim.googlecode.com/hg/ vim
cd vim
./configure --enable-rubyinterp --with-features=huge -prefix=/usr
make
I then try to start the compiled binary with src/vim, but it crashes like this:
$ src/vim
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault: 11
What am I missing here?
Assuming daily certain up to date database is produced via loading from various sources.
Changes need to be applied to historical database based on uid, new records will added , non existing will be softly deleted , some will be updated. Is Ado.Net and Sql statements the most appropriate technology for the task like this ?
Hello...,
I have little bit confusion regarding apache tomcat installation.
So, I would like to know that whats the difference between the .zip and the .exe tomcat ?
Thanks in advance...
Hey everyone. I am having some issues on my end and hopefully it's just something on my end but, could someone take a look at THIS PAGE in IE and let me know if you can see what is wrong. Please check it out first in FF or Chrome or Safari because it all works fine in those browsers.
The two scripts I am using are a custom-ish dropdown menu and another using jcarousel lite. I can't seem to figure out what the problem is.
Thanks for any help!!!
I'm trying to build with IO for Mac, but I don't seem to have the file with friends installed. When I googled for it, it seemed to me like it was part of, or related to, glut implementation on Mac? Glut is installed. What do I need to do?
I need to determine whether an HTTP request was an HTTP/1.0 or an HTTP/1.1 request in my PHP script, which is running under Apache. Is there a way to query this information?
select count(a),b,c
from APPLE
join MANGO on (APPLE.link=MANGO.link)
join ORANGE on (APPLE.link=ORANGE.link)
where id='camel'
group by b,c;
the column b gives values like
1.0
1.0,R
1.0,B
2.0
2.0,B
2.0,R
3.0,C
3.0,R
is there a way to modify the above quer so that all 1.0 and 1.0,R and 1.0,B are merged as 1.0
and 2.0,2.0,B are merged as 2.0 and same way for 3.0 and 4.0
This problem is not uncommon, but I have not seen a solution that would work for me.
Keyboard mapping is completely screwed up - e.g. typing 'damn it' gives me
'1cxngw'. All machines have QWERTY keyboards and are set up to use US.
[Client] Mac OS version: Version: 10.5.8, Build: 9L30
[Client] Kernel version
uname -a
Darwin <comp name> 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
[Client] FreeNX Client version: 3.4.0-8
[Client] MacPorts version: MacPorts 1.8.2
[Client] The X Windows System: XQuartz 2.5.0 (xorg-server 1.7.6)
[Server] OS: Ubuntu 9.04
[Server] Kernel:
uname -a
Linux <comp.name> 2.6.28-18-generic #60-Ubuntu SMP <date> x86_64 GNU/Linux
[Server] Other info: please ask for it but do tell me how to query/look for it.
Thanks!
Hi Everyone:
I'm wondering if someone could direct me to an article that explains how to access the address book contacts in the form that Address Book on the desktop can read.
Thanks for any help!
We have developers some developers who are developing against a SQL Server 2005 database, while others are using 2008.
We just discovered that generating the edmx against a 2008 database set the ProviderManifestToken to 2008, which means some queries won't work against a 2005 database.
While this is a known issue, is there any way to set this value at run time, based on a config file?
hi
in my application i have 20 icons(bitmap fields) on the home screen
When i click on any icon an HTTP request is made in a separate thread.
I have used invoke later method wherever necessary to take care of multi-threading problems.
But still the number of threads goes beyond 16 and an error pops up indicating too many threads error and applications needs to be restarted!!
can anybody tell me how to destroy these threads when they are no longer in use.
I don't understand why they don't destroy on their own as usually they do.
This may sound like it's not a programming related question, but stick with me here...
My team and I have found that documenting our project (a development platform w/ API) with a wiki is both useful to us and useful to the users. Due to some organizational issues, we're forced to do multi-site development without network connectivity. We've switched to a DVCS (Mercurial) and had great success with this. The wiki documentation proves to be a problem as the central site is setup with MediaWiki. The offsite people have no way to access or edit the wiki.
Is there any sort of wiki-style package which doesn't not require a server/database and will be useable in a DVCS environment?
Update: Should be open-source and cross-platform
I have installed mysql and then mysql-server. Then i start the mysql demon and follow below steps,
# chkconfig --level 2345 mysqld on
# mysqladmin -u root password testpassword
But i can not set the password because it gives me the below error,
Access denied for user root@localhost (using password: no)
I logged in as root user and perform those steps.
I even uninstalled mysql server and reinstalled but same problem occurred.
I got a programm in haskell outputting utf-8 using the package utf8-string and using only the output functions of this package.
I set the encoding of each file I write to this way :
hSetEncoding myFile utf8
{- myFile may be stdout -}
but when I try to output :
alpha = [fromEnum 0x03B1] {- a -}
instead of the nice alpha letter I got on Linux (or in a file on windows), I got the following :
α
The weird thing is even if I try to write the output on a file, I can't read it back with mvim as an utf-8 file. Is there any way to get the correct behaviour
I've inherited an enormous .NET solution of about 200 projects. There are now some developers who wish to start adding their own components into our application, which will require that we begin exposing functionality via an API.
The major problem with that, of course, is that the solution we've got on our hands contains such a spider web of dependencies that we have to be careful to avoid sabotaging the API every time there's a minor change somewhere in the app. We'd also like to be able to incrementally expose new functionality without destroying any previous third party apps.
I have a way to solve this problem, but i'm not sure it's the ideal way - i was looking for other ideas.
My plan would be to essentially have three dlls.
APIServer_1_0.dll - this would be the dll with all of the dependencies.
APIClient_1_0.dll - this would be the dll our developers would actual refer to. No references to any of the mess in our solution.
APISupport_1_0.dll - this would contain the interfaces which would allow the client piece to dynamically load the "server" component and perform whatever functions are required. Both of the above dlls would depend upon this. It would be the only dll that the "client" piece refers to.
I initially arrived at this design, because the way in which we do inter process communication between windows services is sort of similar (except that the client talks to the server via named pipes, rather than dynamically loading dlls).
While i'm fairly certain i can make this work, i'm curious to know if there are better ways to accomplish the same task.
Hi. I am building a 16 bit operating system. But character array does not seem to work.
Here is my example kernel code:
asm(".code16gcc\n");
void putchar(char);
int main()
{
char *str = "hello";
putchar('A');
if(str[0]== 'h')
putchar('h');
return 0;
}
void putchar(char val)
{
asm("movb %0, %%al\n"
"movb $0x0E, %%ah\n"
"int $0x10\n"
:
:"m"(val)
) ;
}
It prints:
A
that means putchar function is working properly but
if(str[0]== 'h')
putchar('h');
is not working.
I am compiling it by:
gcc -fno-toplevel-reorder -nostdinc -fno-builtin -I./include -c -o ./bin/kernel.o ./source/kernel.c
ld -Ttext=0x9000 -o ./bin/kernel.bin ./bin/kernel.o -e 0x0
What should I do?
Hi fellow coders
I'm new at LINQ, searching the net for LINQ samples that mimic SQL's LIKE statement doesn't satisfy myself.
What I want is producing the same query result as this SQL
SELECT * FROM table_1 WHERE column_1 LIKE '__0%'
I want to query from table_1 where column_1's third character is '0'
Is there equivalent statement in LINQ
:D thank you