Thursday, January 10, 2013

How do I block websites on my computer?

Q. I use Google Chrome. On a linux machine, though I doubt that's relevant.

This ear I am taking 8 different senior highschool courses, and I have a habit of aimlessly looking for funny things on the internet. I need to block my favorite websites until I'm in good habits. Like putting a padlock on the fridge when you know your weakness.

A. First of all âhostsâ is the name of the file not the folder. Please refer to the screenshot above.

Ok, letâs start from the first step. When you typed
notepad %windir%\system32\drivers\etc\hosts in the run command, were you not able to see the file named âhostsâ getting opened in notepad?

If not, then copy the hosts file from other computer to your targeted computer at the location %windir%\system32\drivers\etc

What to do after the program code is finished and ready to be distributed?
Q. As an example, I have finished writing a BASIC or Java code in a text editor such as notepad. However, the only way I could run it is by clicking 'run' in the IDE. This way, it is impossible to distribute an app to public. What happens next, and how can I be able to run it without the IDE and distribute it to everyone else? How do I also upload an HTML file so that it is publicly available (as a website)?

A. compile it (build). you want an .exe file. I didn't think it would make you a web site too. I think that's up to you to make. learn html5 or html 4.01 oif 5 is too intimidating.

open source software projects on sourceforge.net typically use a wiki now, but you can use html if you want. If this is VB and you don't own the $800+ version of Visual Studio, you can't distribute your software under an Open Source License, with the source, or disclose the source code (Express version). Read the License Agreement / EULA where it says Distribution.

the $800 version isn't so hot either, because you must license it so people run it only on windows OS's.
that means no macs or linux or whatever.

How do I run a exec file and let the batch file carry on?
Q. Or in Linux to run xemacs from the terminal, I would do:
xemacs &

This would launch xemacs and return control to the terminal. I want to do similar in XP's cmd.

Thanks in advance!
"call" doesn't work...
Found the answer. It is e.g.:
start "" notepad.exe

A. It works exactly the same way.

For instance if I put notepad.exe into a line in a batch file, notepad would open and the batch file would be halted until notepad was closed at which time the batch file would resume.

If you want to open a program and then continue the batch without exiting that program, use call.

eg. Call notepad.exe




Powered by Yahoo! Answers

No comments:

Post a Comment