- create the java project in eclipse
- open eclipse.
- click file, new, project...
- choose java project.
- type a project name
- un-check use default location and click browse to find the root of your java project which contains your makefile
- click finish
- add make as a builder
- click on the project in the package explorer.
- click project, and then click properties.
- click builders, and then click new.
- choose program and click ok.
- in the location textbox, type "/usr/bin/make" (w/o quotes).
- warning: if this is not the location of the "make" program on your computer, determine the location by typing "whereis make" in a terminal window.
- in the working directory section choose browse workspace.
- choose your project, and click ok.
- under arguments, type "all", or the appropriate label in your makefile, plus any other arguments you wish to pass to make.
alexsapps.com programming blog
every programmer should have a blog. here is what i have to contribute to the blogosphere which makes coding 10x easier for me.
2012-04-28
using a makefile in an eclipse java project
if you have java code and rely on a makefile to compile, you can configure eclipse to build your project using your makefile as follows:
2012-04-15
visual studio 2010 "copy web site" tool is slow; solution: web site publisher
scenario #1) you don't mind publishing your source code, and you need to publish you aps.net web site via ftp to your host. visual studio's built in "copy web site" tool is prohibitively slow because it scans the server for changes, and your website has many folders and files. (your host may even throttle your ftp connections after visual studio scans a few directories.) analyzing the ftp server is unnecessary because you are the only person who updates your website. you only want to do a one-way sync to the ftp server without scanning the server. your hosting company does not support svn.
scenario #2) you use, microsoft expression web, and want to publish only changes to the server. the problem is that their "publish changed files" option does not propagate deletions. to propagate deletions in expression web, you must use the "publish all files" function, which is much too slow when the remote copy is accessible over only ftp.
solution: web site publisher, the simplest and most genius program ever. it took me many hours to find it, which is why i felt the need to share it. you can configure it to scan only your hard drive for new/changed files and deletions, and then publish the changes since you last published to the ftp server. my solution won't work for *pre-compiled* asp.net web applications.
download it here: http://www.cryer.co.uk/downloads/websitepublisher/
you must enable the turbo optimization so that it does not scan the server. click "config", "optimisations", and then check "turbo".
scenario #2) you use, microsoft expression web, and want to publish only changes to the server. the problem is that their "publish changed files" option does not propagate deletions. to propagate deletions in expression web, you must use the "publish all files" function, which is much too slow when the remote copy is accessible over only ftp.
solution: web site publisher, the simplest and most genius program ever. it took me many hours to find it, which is why i felt the need to share it. you can configure it to scan only your hard drive for new/changed files and deletions, and then publish the changes since you last published to the ftp server. my solution won't work for *pre-compiled* asp.net web applications.
download it here: http://www.cryer.co.uk/downloads/websitepublisher/
you must enable the turbo optimization so that it does not scan the server. click "config", "optimisations", and then check "turbo".
2012-04-04
kindle "show display options" menu is disabled
i am trying out kindle for pc and am reading a textbook. i found reading to be rather difficult on kindle for pc because of it's jagged scrolling (please complain here). while looking to add a smooth scrolling option i noticed the view / show display options menu was disabled.
problem: not all books support changing settings like font size and background color. for example, my textbook has pictures and stuff written in the margins of pages. if i changed the "words per line" setting, the words would overlap on the pictures or problems would arise from trying to apply features that aren't defined for a textbook.
there is no easy solution. author's of textbooks need to make books in a e-reading friendly format, which they will have little incentive to do until physical books phase out and e-books really start to catch on.
if you want to know what the dialog box looks like, this is what you're missing out on:
problem: not all books support changing settings like font size and background color. for example, my textbook has pictures and stuff written in the margins of pages. if i changed the "words per line" setting, the words would overlap on the pictures or problems would arise from trying to apply features that aren't defined for a textbook.
there is no easy solution. author's of textbooks need to make books in a e-reading friendly format, which they will have little incentive to do until physical books phase out and e-books really start to catch on.
if you want to know what the dialog box looks like, this is what you're missing out on:
2012-03-06
latex error "image failed (no JPEG header found)"
i use texmaker to write latex documents on windows. i wanted to insert a graphic using the directions on this page. i got these errors:
the solution is to open the jpg file in paint, save it as a .png file and then use the png file.
no need to change the latex code if it doesn't include a file extension. e.g.
\includegraphics{dog.jpg}
to
\includegraphics{dog.png}
!pdfTeX error: pdflatex (file C:/.../dog.jpg): reading JPEGimage failed (no JPEG header found)==> Fatal error occurred, no output PDF file produced!i created the jpg file in microsoft paint. perhaps if i used a different jpeg, it would've worked.
the solution is to open the jpg file in paint, save it as a .png file and then use the png file.
no need to change the latex code if it doesn't include a file extension. e.g.
\includegraphics{dog}otherwise, just change the filename. change
\includegraphics{dog.jpg}
to
\includegraphics{dog.png}
2012-03-05
securely send passwords over email
i've been sending passwords to people over email for years and just realized how bad it would be if someone hacked into my own email account and searched for "password". this is why we should never send non-temporary passwords over email. i used to type "delete this email" in the subject line, but this is a better solution.
http://timebomb.it/
timebomb.it lets you send login credentials to people via a link that expires after an hour, day or month. that way, if a hacker gets into your friend's or co-worker's email and searches for "password", they will only find expired links and no passwords.
just go to timebomb.it and type in the username and password you want to send.
then you'll see the page with the url. copy the url...
and email it securely!
then, if someone searches for "password" in the recipient's gmail a year later, they get this!
i was going to use kl1p.com, an online clipboard, to send passwords, but they got rid of the option to make the clipboard contents expire after a certain amount of time. timebomb.it is a good alternative for sending sensitive information that you want to be available for a limited amount of time.
http://timebomb.it/
timebomb.it lets you send login credentials to people via a link that expires after an hour, day or month. that way, if a hacker gets into your friend's or co-worker's email and searches for "password", they will only find expired links and no passwords.
just go to timebomb.it and type in the username and password you want to send.
then you'll see the page with the url. copy the url...
and email it securely!
then, if someone searches for "password" in the recipient's gmail a year later, they get this!
i was going to use kl1p.com, an online clipboard, to send passwords, but they got rid of the option to make the clipboard contents expire after a certain amount of time. timebomb.it is a good alternative for sending sensitive information that you want to be available for a limited amount of time.
2011-12-14
solution to windows 7 "open with" browse button not working
problem:
i was trying to open an iif file in excel by right clicking the file, clicking "open with..." and clicking "choose default program." excel wasn't in the list, so i clicked, "browse..." and navigated to excel in my program files folder. when i clicked "ok," excel was not added to the list and i could not choose to open the file with excel. of course i could've opened the file in excel by opening excel and clicking file/open, but there is an actual solution. this is what worked for me:
solution
warning! these directions instruct you to modify your computer's registry. if you mess up these directions, you can seriously mess up your computer. if you don't know what you're doing, just use the workaround i mentioned above.
i was trying to open an iif file in excel by right clicking the file, clicking "open with..." and clicking "choose default program." excel wasn't in the list, so i clicked, "browse..." and navigated to excel in my program files folder. when i clicked "ok," excel was not added to the list and i could not choose to open the file with excel. of course i could've opened the file in excel by opening excel and clicking file/open, but there is an actual solution. this is what worked for me:
solution
warning! these directions instruct you to modify your computer's registry. if you mess up these directions, you can seriously mess up your computer. if you don't know what you're doing, just use the workaround i mentioned above.
- click start and then click run.
- type "regedit" and then click ok.
- navigate to the key "HKEY_CURRENT_USER\Software\Classes\Applications\"
- right click the key and click delete.
2011-10-14
windows 7 virtual pc fails (dddgraphics - vmware wins
windows 7 virtual pc shows weird lines on the screen then crashes when i try to install ubuntu. when i try to install cent os 5 the and the text is barely readable and stretched out with many black lines going through it. i've discerned it to be a problem with virtual pc. i tried using vmware's viewer and i didn't have any trouble. download here: http://www.vmware.com/products/player/.
Subscribe to:
Posts (Atom)





