Domain: localhost
Stories and comments across the archive that link to localhost.
Comments · 94
-
Re:This not about security, because it does not he
For that matter, why the heck would you do HTTPS on internal LAN?
Because a growing number of JavaScript APIs specify that they are available on HTTPS origins and http://localhost/ only, and nowhere else. One such API that is both limited to secure contexts and relevant to streaming a video from a home NAS is the Presentation API.
Hell, if you want HTTPS on your LAN addresses, just generate your own certs and install your own root cert on client machines.
Not all client machines make it practical to install a private root certificate, particularly mobile devices or set-top devices. Nor is it advisable to install a private root certificate on devices belonging to visiting friends and relatives if they want to watch a video that's on your NAS.
-
Re:Secure Contexts
W3C maintains a spec called Secure Contexts, which encourages web browsers to completely disable certain sensitive JavaScript features within HTML documents served over a cleartext HTTP connection. Only HTTPS and http://localhost/ are allowed to use Service Workers, Geolocation, Payment Request, Presentation, and several other web platform APIs.
And it's as dumb as early browsers trusting SSL. Seriously. Wayyy before we had certificate pinning, dnssec or hell browsers that even checked the auth chain so long as you served your payload over SSL the browser assumed you were more trust worthy.
There needs to be a "fuck off" option to js. There is absolutely no reason to enable most of the crap we have now by default (battery status, access to gps, usb, vr, etc). TELL me when sites need it don't assume I want you giving it As it stands now you can't even tell when SSL has problems with a request. Try it. Untrust a few CAs and if you're lucky enough to find a site that isn't forcing HSTS (which you can't override), but has requests to other servers (sayy... a.fsdn.com), you'll have no idea why slashdot isn't rendering properly. The only way to tell is either looking at uMatrix/uBO's console or in the rare event it generates an error in the browsers console. You have to visit the site manually to accept the friggin ssl cert which is now temporary by default. Cookies are the same way, you no longer get a prompt
It's nice that Google has their own CA to issue as many certs as the want on the world but in reality there are MANY cases where we simply won't certify products on their browser.
-
Secure Contexts
W3C maintains a spec called Secure Contexts, which encourages web browsers to completely disable certain sensitive JavaScript features within HTML documents served over a cleartext HTTP connection. Only HTTPS and http://localhost/ are allowed to use Service Workers, Geolocation, Payment Request, Presentation, and several other web platform APIs.
-
Re:Easier.debugging is incredibly frustrating and a huge barrier to entry.
Especially when the only error message is:
Syntax error at or near: line 1, column 1
Maybe BASIC is not the best way to go, after all.
I think the real issue is, as was pointed out earlier, it is very easy to create a command line UI after seeing one. However, most kids today have not seen one. It is, however, also very easy to create a web page and not have to worry about "creating the whole GUI" - however, you need a server for your web page, You are probably not going to have access to one without significant effort. Installing and commissioning Apache is hardly "dead easy for a beginner" even on Linux.
Many years ago, in the days of HTML 1.0, I had a web server running, and people who today find it hard to post on Facebook were able to create web pages. (I am not claiming the web pages were any good, but nor would I claim anything on Facebook is much good either).
The ideal learning environment is a system that starts by taking people from dumb terminal interaction on the command line, though the level where you had terminals with programmable fields, that sent the contents when you pressed [RETURN] and then to HTML. I suggest that is one to three hours learning. After that, they need access to a web server where they can put their stuff on their local machine.
I know in theory the default installation of Apache on Linux is supposed to do that, but, as they say:
in theory, theory and practice are the same.
In practice, they are differentYes, I run Nginx on OpenBSD, and my youngest son uses something else on OSX to develop websites professionally. He started by using Apache on FreeBSD hosted by me at the age of fifteen. He had no need to know anything about Apache - just put the stuff in a specific directory on the server - and he has also done the same on "a popular hosting company" which is not exactly expensive. He is now doing Ruby on Rails professionally, but has PHP and C experience.
I think the answer is as simple as preconfiguring Linux installations to serve any directory off user's home directory called www as http://localhost/<user>/ and jailing the directors of browser companies that stick up error messages when serving http.
Any kid who is not inquisitive enough to use the command line interface in Linux will never become a coder, and anyone who does not have access to a PC with Linux is doomed.
I do not recall either of my sons ever asking for help debugging - but we spent many hours playing Commander Keene - which is the ideal tool for teaching persistence. I am not sure Mario Kart has the same benefit. I await a flame war between GTA and Leisure Suit Larry fans with interest.
-
Re:WebDAV
Assuming you already have svn installed and copy of Apache httpd with mod_dav_svn and you are are running on some flavor of *NIX.
Create an svn repository somewhere, eg.
# svnadmin create /opt/svn-repoCreate a password for your repo, replace username and password as appropriate
# htpasswd /opt/svn-repo/conf/htpasswd USERNAME PASSWORD
# chmod 640 /opt/svn-repo/conf/htpasswdFix the permissions of the repo so that the user that httpd runs as can write to the repo database. Replace www with whatever the appropriate user is:
# cd /opt/svn-repo
# chgrp -R www .
# chmod -R g+r .
# chmod -R g+rwX db locks
# find db locks -type d -exec chmod g+s '{}' ';'Open httpd.conf and add/uncomment the following lines in the LoadModule section:
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.soAt the very bottom of your httpd, add a location for your repository:
<Location /repo>
DAV svn
SVNPath /opt/svn-repo
SVNAutoversioning onAuthType Basic
AuthName "Subversion repository"
AuthUserFile /opt/svn-repo/conf/htpasswdRequire valid-user
</Location>Restart apache and then test your config:
# svn ls http://localhost/repo --username USERNAME --password PASSWORD --no-auth-cache
#No errors means everything is working.
See the manual for instructions on mounting the WebDAV share with various clients. Note that Windows is kind of problematic for this out of the box and you may need to use a third party file system driver such as NetDrive.
-
Re:This could be really dangerous!
Sure you can see where it goes, but that does not mean much.
http://s.houghi.org/temp/dbme4p.png
Scan it and it will point to http://s.houghi.org/dbme4p
That is a 302 forwarder to http://localhost/
http://s.houghi.org/dbme4p.png will give all the infoNow imagine that something like this is hanging on highstreet and it is some other (selfmade) forwarder. Even though people are aware that ads are lies, they do somewhat trust that an add for Coca-Cola is placed there by Coca-Cola and the company is responsible for the content.
-
Re:Not even /.ed yet! ;-)
So run Gate One locally: https://localhost/
I use it like that every day!
-
Re:Uh oh...
>2012
>implying anyone is safe from /g/
ISHYGDDT -
Re:Uh oh...
>2012
>implying anyone is safe from /g/
ISHYGDDT -
Re:Flat-Line
And "Desktop" systems seem to be receeding back into the niches that need them... business, developers, gamers, power-users. Casual users will basically abandon them (and already largely have) for laptops, tablets, and portables.
You left out those of us running web sites. Yeah, I have a laptop, and I'm typing this on it. It's handy because it's portable (and I'm typing this on the patio
;-). But the web server on this thing isn't visible online. I could make it so when I'm home, but when I carry it even a hundred meters from home, its address would change or (more likely) disappear from the Internet, and all my sites would be offline.So I keep a home "desktop". I can and do have a web server running on the laptop at http://localhost/, and I do a lot of development and testing on the laptop. Then I rsync it to the "real" server back home when I'm within reach of usable wifi, and it appears online.
If there's a way to make a laptop (or tablet or smartphone) permanently visible online as it wanders, with a reliable FQDN, I'd like to know how to do it. So far, all my comments along these lines have been answered with (1) insults to my intelligence/understanding/hackitude/whatever, and (2) no link to an explanation of how to make it work. I conclude that my detractors don't know, either, and they're just taking the opportunity to insult someone as ignorant as they are.
It's especially curious that Mac and linux users don't seem to be able to answer this problem with anything but insults, since they have the ability to enable a localhost web server by checking a single setting (buried deep in that maze of settings
;-).Of course, I could be missing something. If so, does anyone have a link to the documentation?
Meanwhile, I'll keep my desktop running and connected to the local ISP.
-
Re:As long as they stick with that UI
Me too. I like Firefox UI and I do not like Chrome and IE UIs.
I also do not like that I cannot add an SSL (https://) certificate exception at Chrome and IE.
How can I use a browser for local development, if I cannot add an SSL certificate exception? Even for https://localhost/ .
I hope Google dismiss Chrome UI designers and create a normal convenient browser, where I do not have to search for 20 minutes a menu item.
I guarantee that with the present UI Chrome will never get a considerable market share.
-
keep it simpleI would advise a complete newbie to keep it very simple in the beginning.
- Pick on language and stay with it for a while. I would suggest something like Python, Perl or TCL.
Find some kind of text file to work on. Just about anything will do: an HTML file, contact list,
... Anything that you can view with a simple text editor. (Stay away from doc files or anything with a lot of special formatting commands requiring a word process, like Word, to view.)- Find out how to read lines from this file and write to standard out (stdout) from your chosen language.
Start playing around writing programs to search for text and print things out. Maybe read the file and write it to stdout. Then change some things before writing it back out (like changing all "Bill" to "William"). Just play around and learn how to use the language.
- When you get tired of this, set up (or get someone else to set up for you) a web server that can support CGI (Common Gateway Interface, NOT Computer Generated Imagery). (You can do this on your own computer. Just point your browser at http://localhost/ This will let you generate simple web pages with the kind of programming you just learned. You write little programs, drop them in the right directory and suddenly you can generate dynamic web pages. This is just to keep it fun. Now you can start learning HTML, which can start out really simple using just 5 or 6 lines of HTML.
At this point you will have the basics down and can start doing more complicated things.
Some other suggestions:- Keep away from anything Object Oriented at first. You don't need that complication and will appreciate it more later.
- C is a good language for starting out, but it requires a compile and link step that can confuse some beginners. If this doesn't bother you, C is an excellent foundation for anything that will come later, especially C++ (for the MS/Windows world) or Objective C (for Apple Mac, iPhone, iPad).
-
Re:SSL traffic
Well, not to argue, but this is a test I just did on my desktop at work. I used the 'ab' test program, that comes with Apache (full name is Apache Bench).
800Mhz, 1.7Gb RAM available (256Mb shared to video)
Slackware Linux (x86_64) 13.0.0.0.0
Linux evil2 2.6.31.6 #8 SMP PREEMPT Thu Dec 3 14:44:04 EST 2009 x86_64 AMD Athlon(tm) Processor 2650e AuthenticAMD GNU/Linux
It is running Apache 1.3.41 with mod_ssl
The test was run as:
ab -n 10000 -c 100 http://localhost/
http:
Requests per second: 828.54 [#/sec] (mean)
https:
Requests per second: 56.65 [#/sec] (mean)You could say that it reflects your numbers, but......
I also had top running during the tests. During the http test, the highest %CPU for ab was no more than 15%. During the https test, it took up all the spare CPU time there was (approx 40% steady). It wasn't contending with Apache, but with things like X and Firefox. The web server itself stayed pretty much idle the whole time. This would be an issue with the testing application, not the server being tested. This test would have been better run from another machine, towards a dedicated webserver, but I don't have anything to test on right now.
-
Re:Now explain triple-slashes
^THIS^ There is a reason file:/// urls always have 3 slashes and other protocols use 2. Additionally, http:///file.html should be more or less an alias for http://localhost/file.html in theory. It is also very similar to the \\computer\fileshare syntax Windows uses. Just think of Explorer as assuming the default protocol is smb: instead of how your web browser will assume http: If Explorer used regular slashes, would it too much to type smb://server/share/path/file.doc ?
-
Re:not good?
http://localhost/conf/wifi ?
They could even stick it in a bookmark. -
FIOS VERIZON did this to me too...
I had to put a different Verizon DNS into the Router to get them to stop hijacking my DNS. I was having VPN issues and issues with stuff running as http://localhost/ and then it got my attention... They all seem to monitor as much as they can, Seems like ISP = iSPY4NSA!!!
-
So...
I should be running my own instance of
/. at http://localhost/ ? Then I could patch /. to not have "idle" and editors I don't like. RMS, you're a lifesaver! -
Re:net filters for children
It sounds like it's not parsing the PHP. Probably your 404 page is a htm or html. Change the extension on the 404 page to
.php and you might also have to change the config file for the server to change the 404 page's filename there too.Are you using Apache?
Are you doing local stuff only with the HTTP server? E.g. http://localhost/? Basically the array needs to have an entry for every IP or domain name that you use to access the server. Obviously that includes 127.0.0.1 and localhost; if you're using a dyndns service, you'd put that address in there too...
-
Guess what ISPs pay me for bandwidth?
Zip! Nada! In fact when they send packets over my network connection they pay a *negative* amount! If you want to find the real bandwidth hogs, it is the Telcos.
All those people who browse http://localhost/ at ridiculous speeds without paying a cent are pretty greedy too.
... Back in the real world there is central node called "The Internet" that has to route all traffic. If you want to connect to someones network they may ask for money, if they want to connect to your network, you can ask them for money. How much money is up to you and them.
-
Re:Misleading summary.... it's INTRANET ONLY
Ok, what about http://intranet/ ? Obviously the local domain controller is handling things there; shops with intranets that only work in IE6 are almost certainly using an MS-based server.
I just opened up the IE8 beta in a VM, and went to 192.168.0.11 (my OS X webserver's local address) and it doesn't detect automatically as Intranet. It also misses my router at 192.168.0.1, however it does get the WAMP install at http://localhost/ unsurprisingly. Doubleclicking the internet icon in the bottom to check the sites has:
(X) Automatically detect intranet network
-- (X) Include all local (intranet) sites not listed in other zones
-- (X) Include all sites that bypass the proxy server
-- (X) Include all network paths (UNC)You can also go advanced from there and add in additional sites by address or IP.
So I have no idea how it handles the detection. It doesn't do a great job, but then interestingly enough it doesn't consistently give the option to use the compatibility view either. It doesn't appear to be based off of the doctype, availability of IE-only stylesheets, intra/extra/internet location, or anything else that would make sense from my brief testing.
-
Already slashdotted
The site http://localhost/drupal-5.7/admin/users/roles, is already down and cannot be found.
-
Re:Encryption
I love the fact that you can put http://localhost//.../filename.mp3 into anchor tags in any html page and anyone with offilesystem installed will get the file. Search engines like Google are going to index web pages hosted in the normal way that contain links such as this.
Those files will in turn link to other files on the OFFilesystem-web which will link to others layers and layers down that will contain illegal links. Google will not be able to filter the top level links out, and regular people can not be expected to click on every link of every page they link to examining every file to ensure it does not contain an illegal link to a copyrighted item somewhere buried many levels down.
Google may as well install OFFilesystem and just index everything. How is this different from the rest of the web that may contain illegal pages? If google doesn't know what the urls are, how can they be held responsible for following them to perform indexing? If someone posts some copyrighted image illegally on the regular web, then google doesn't get prosecuted for indexing their page, or for crawling that page to index it, even though the act of indexing the page ( if it is copyrighted ) may mean downloading and reading through copyrighted material in order to index it. If google doesn't know the meaning of the URIs it indexes it should be as off the hook copyright wise as those who host blocks of 'random' data but do not know the uris. It's simply not practical examine all the data the URIs refer to and still index the legitimate stuff. We don't want to throw the baby out with the bathwater do we?
That's another issue - what exactly is the baby if the bathwater is copyright infringement? Sure an artist can use this to post their art if they can't afford bandwidth, but there are other ways for artists to do this that are less - um - complicated. This PROTOCOL may very well be outlawed unless it can show legitimate value that obviously exceeds the 'value' of protecting copyrightholders. (TCP/IP was not outlawed because the internet at large is obviously more valuable to society than the interests of the RIAA for instance )
An important question that will determine whether protocols like these can survive is this: What can they do legitimately that other protocols can not aside from making it easier for people to break the law? I personally suspect that some unique value will probably be found for the logic behind this, probably after the courts and congress have outlawed the fundamental logic ( such as distributed hash tables ) that this relys on.
Another important question for p2p is resource allocation. Why should I let people use my computing resources if I can just leach? You probably won't be able to prevent leaches from leaching unless you require payment for resource use.
One idea I've been mulling is digital currency ala e-cash.
What if everyone minted their own digital currency, acting as their own central bank. They would pay for resources in the currency they mint. They would give value to their currency by accepting it in return for computing resources. ( the US gives value to it's currency by accepting it as payment of taxes ) Then if someone wanted to download something from you, you would accept only your own currency as payment. Perhaps an exchange counter server would operate for a premium so they could buy your currency with theirs. You could devalue your currency as much as you wished by minting it freely when you were broke, but you would increase your currency's buying power by providing computing resources.
You might even be able to pay a service provider ( maybe someone who provides lots of computing resources such as bandwidth or data storage, or even the exchange counter, to buy some amount of your currency by paying them real money. This would have the effect of increasing your purchasing power )
Of course the tax implications are dizzying...
-
http://localhost
Does this mean that http://localhost/ is now a potentially valid domain name?
-
You took the wrong directory!
You took the wrong directory on your system, here I fixed it for you.
Didn't know you like pony's ;) -
Re:I would have read the article before replying
If you have a child under the age of 18 click the link for you (or while you are away), is that still illegal?
Or rather without identifying the actual individual clicking the link, this seems like a fishing expedition without any reasonable restraint placed on the search (i.e. if the search warrant is for an elephant, the authorities have no cause to search through your underwear drawer or safe... Not that *I* would hide anything there...).
It seems this would cause quite an impact on a home-run business as well (such that I have in my spare time), when a third-party could have pasted the same link elsewhere without the identifying marks such as "CLIX HEAR 4 1LLEGUL PR0N!@#", such as the various goatse crap we see here. "Unsuspecting" is a viable defense -- and TFA mentions no one knows if they recorded the Referrer: header from the client in their logs...
Am I responsible for what authorities might find if they click this link on your computer? (BTW - when I hit submit the first time, my network connection went down for 10 minutes... Coincidence?) -
Re:Brrrr...
What is so wrong with the default setup that I experience lag going to http://127.0.0.1:8080/?
eh? more than likely its caused by the crack you are smoking. lets run a few timed tests to see:
me@myhost:~/Desktop/apache-tomcat-6.0.14>./bin/startup.sh
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost:8080/
--12:20:35-- http://localhost:8080/ => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,347 (7.2K) [text/html]
100%[...] 7,347 --.--K/s
12:20:35 (368.85 MB/s) - `index.html' saved [7347/7347]
real 0m0.065s
user 0m0.000s
sys 0m0.010s
then a subsequent ( ie: not the first ) request:
real 0m0.004s
user 0m0.002s
sys 0m0.002s
how bout compared to my apache serving up a static page?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/svnbook/
--12:25:56-- http://localhost/svnbook/ => `index.html.2'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51,155 (50K) [text/html]
100%[...] 51,155 --.--K/s
12:25:56 (243.56 MB/s) - `index.html' saved [51155/51155]
real 0m0.006s
user 0m0.001s
sys 0m0.004s
hmmm not much different eh? in fact, that says the real time to serve up content from apache was .002s slower than tomcat! perhaps we need a php page (yum install squirrelmail...) to really compare apples with apples?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/webmail/src/login.php
--12:32:02-- http://localhost/webmail/src/login.php => `login.php'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,154 (2.1K) [text/html]
100%[...] 2,154 --.--K/s
12:32:02 (222.82 MB/s) - `login.php' saved [2154/2154]
real 0m0.021s
user 0m0.002s
sys 0m0.002s
sorry dude, but you have no leg to stand on here. -
Re:Brrrr...
What is so wrong with the default setup that I experience lag going to http://127.0.0.1:8080/?
eh? more than likely its caused by the crack you are smoking. lets run a few timed tests to see:
me@myhost:~/Desktop/apache-tomcat-6.0.14>./bin/startup.sh
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost:8080/
--12:20:35-- http://localhost:8080/ => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,347 (7.2K) [text/html]
100%[...] 7,347 --.--K/s
12:20:35 (368.85 MB/s) - `index.html' saved [7347/7347]
real 0m0.065s
user 0m0.000s
sys 0m0.010s
then a subsequent ( ie: not the first ) request:
real 0m0.004s
user 0m0.002s
sys 0m0.002s
how bout compared to my apache serving up a static page?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/svnbook/
--12:25:56-- http://localhost/svnbook/ => `index.html.2'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51,155 (50K) [text/html]
100%[...] 51,155 --.--K/s
12:25:56 (243.56 MB/s) - `index.html' saved [51155/51155]
real 0m0.006s
user 0m0.001s
sys 0m0.004s
hmmm not much different eh? in fact, that says the real time to serve up content from apache was .002s slower than tomcat! perhaps we need a php page (yum install squirrelmail...) to really compare apples with apples?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/webmail/src/login.php
--12:32:02-- http://localhost/webmail/src/login.php => `login.php'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,154 (2.1K) [text/html]
100%[...] 2,154 --.--K/s
12:32:02 (222.82 MB/s) - `login.php' saved [2154/2154]
real 0m0.021s
user 0m0.002s
sys 0m0.002s
sorry dude, but you have no leg to stand on here. -
Re:Brrrr...
What is so wrong with the default setup that I experience lag going to http://127.0.0.1:8080/?
eh? more than likely its caused by the crack you are smoking. lets run a few timed tests to see:
me@myhost:~/Desktop/apache-tomcat-6.0.14>./bin/startup.sh
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost:8080/
--12:20:35-- http://localhost:8080/ => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,347 (7.2K) [text/html]
100%[...] 7,347 --.--K/s
12:20:35 (368.85 MB/s) - `index.html' saved [7347/7347]
real 0m0.065s
user 0m0.000s
sys 0m0.010s
then a subsequent ( ie: not the first ) request:
real 0m0.004s
user 0m0.002s
sys 0m0.002s
how bout compared to my apache serving up a static page?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/svnbook/
--12:25:56-- http://localhost/svnbook/ => `index.html.2'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51,155 (50K) [text/html]
100%[...] 51,155 --.--K/s
12:25:56 (243.56 MB/s) - `index.html' saved [51155/51155]
real 0m0.006s
user 0m0.001s
sys 0m0.004s
hmmm not much different eh? in fact, that says the real time to serve up content from apache was .002s slower than tomcat! perhaps we need a php page (yum install squirrelmail...) to really compare apples with apples?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/webmail/src/login.php
--12:32:02-- http://localhost/webmail/src/login.php => `login.php'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,154 (2.1K) [text/html]
100%[...] 2,154 --.--K/s
12:32:02 (222.82 MB/s) - `login.php' saved [2154/2154]
real 0m0.021s
user 0m0.002s
sys 0m0.002s
sorry dude, but you have no leg to stand on here. -
Re:Brrrr...
What is so wrong with the default setup that I experience lag going to http://127.0.0.1:8080/?
eh? more than likely its caused by the crack you are smoking. lets run a few timed tests to see:
me@myhost:~/Desktop/apache-tomcat-6.0.14>./bin/startup.sh
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost:8080/
--12:20:35-- http://localhost:8080/ => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7,347 (7.2K) [text/html]
100%[...] 7,347 --.--K/s
12:20:35 (368.85 MB/s) - `index.html' saved [7347/7347]
real 0m0.065s
user 0m0.000s
sys 0m0.010s
then a subsequent ( ie: not the first ) request:
real 0m0.004s
user 0m0.002s
sys 0m0.002s
how bout compared to my apache serving up a static page?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/svnbook/
--12:25:56-- http://localhost/svnbook/ => `index.html.2'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 51,155 (50K) [text/html]
100%[...] 51,155 --.--K/s
12:25:56 (243.56 MB/s) - `index.html' saved [51155/51155]
real 0m0.006s
user 0m0.001s
sys 0m0.004s
hmmm not much different eh? in fact, that says the real time to serve up content from apache was .002s slower than tomcat! perhaps we need a php page (yum install squirrelmail...) to really compare apples with apples?
me@myhost:~/Desktop/apache-tomcat-6.0.14>time wget http://localhost/webmail/src/login.php
--12:32:02-- http://localhost/webmail/src/login.php => `login.php'
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,154 (2.1K) [text/html]
100%[...] 2,154 --.--K/s
12:32:02 (222.82 MB/s) - `login.php' saved [2154/2154]
real 0m0.021s
user 0m0.002s
sys 0m0.002s
sorry dude, but you have no leg to stand on here. -
IIS not installed by default in XP
While you're correct that XP's firewall can block IIS, it isn't even an issue on most machines. The default configuration, even for XP Pro, doesn't install IIS. As with Vista, you much go into the Windows Components section of the (Add/Remove) Programs window and select it. In XP you'll also need the install media; in Vista IIS is part of the installation image (this is part of why Vista's install footprint is so big; every feature, even those you aren't going to use, is copied to the hard drive at install time).
You can test this yourself: Go into Computer Management, then Services, and look for the IIS process (daemon). Generally, it's not even present, let alone enabled. Similarly, ping an XP machine - even one with its firewall off (or inside the firewall - try going to http://localhost - and you probably won't see anything at all (other than a server not found error). Netcraft would have a difficult time even detecting that the machine runs Windows. -
URLs?
So if I have an iPhone, install apache on it, and copy over a few files (is rsync available yet?), what sort of URL to I email around to friends so they can reach the phone?
This isn't a hypothetical problem. Here at home, we have a Mac Powerbook for a few years, and I've had apache running on it from the start. I can access the web site with http://localhost/, and when I'm at home, I can access it from my linux box or my wife's Windoze box (for job-related reasons only ;-), but I've never found a way to access it from the Internet. Yes, I've asked on several fora, but nobody ever answers. Well, OK, I did get a few RTFM replies, but without a clue as to what FM to R, that's not too helpful.
Can an iPhone really run a web server (or any other server) that's accessible via wifi as I wander about the landscape? If so, where's the HOWTO explaining how to do it and figure out what its URL looks like? Without that, it's just a waste of cpu cycles.
(And I'm still trying to find out how to make my PB's web server accessible by friends who aren't on my home LAN. ;-) -
Setting up thunderbird and webdav
Some links here* to get it setup. I just set it up and it's not too bad.
steps:
1) edit httpd.conf and configure webdav (uncomment these):
- LoadModule dav_module modules/mod_dav.so
- LoadModule dav_fs_module modules/mod_dav_fs.so
2) add a location under web server root to save the calendars to.
Replace parenthesis below with arrowheads per usual apache conriguration.
slashdot strips my arrowheads in the post. Define the calendar user
authentication as the 'cal' user:
(Location /calendar)
Dav On
AuthType basic
AuthName cal
AuthUserFile calendar
(LimitExcept GET HEAD OPTIONS)
require user cal
(/LimitExcept)
(/Location)
3) create the calendar directory under the web root with write
access for web server. (note: web servers with write access are
potential security holes to watch your logs). On fedora, apache
is a member of the apache group. I give root ownership of the
directory and give write access to the apache group. Adding the
sticky bit to the directory assures users can only delete files
they own, not someone elses.
- mkdir /var/www/html/calendar
- chown root:apache /var/www/html/calendar
- chmod g+w /var/www/html/calendar
- chmod o+t /var/www/html/calendar
4) create the cal user for httpd and give him a password:
- htpasswd -c /etc/httpd/calendar cal
- New password:
- Re-type new password:
- Adding password for user cal
5) restart httpd and watch httpd message logs for errors or sucess:
- /etc/init.d/httpd restart
- tail -f /var/log/httpd/access_log /var/log/httpd/error_log
6) create new calendar in thunderbird using webdav
- calendars -> new -> on the network
- format == caldav
- location == http://localhost/calendar
- Next
- name == test
- Next
- (Web authorization popup should come up)
- username == cal
- password == see_step_4
You should see something in your apache messages logs similar to this if calendar is working:
127.0.0.1 - - [15/Apr/2007:15:12:26 -0500] "REPORT /calendar/ HTTP/1.1" 401 475 "-" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0"
127.0.0.1 - cal [15/Apr/2007:15:13:08 -0500] "REPORT /calendar/ HTTP/1.1" 405 307 "-" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0"
127.0.0.1 - cal [15/Apr/2007:15:13:19 -0500] "PUT /calendar/17e23dae-dabc-49c6-83f6-322d0bcba25c.ics HTTP/1.1" 201 298 "-" "Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0"
[*] - http://www.twilight-systems.com/flacco/mozcal/inde x.html -
Re:Talk about reinventing the wheel..
I don't think setting up a webserver on their desktop PC and then browsing to http://localhost/ is a good solution for the average user.
-
Re:SCRIPT? Do it in C++!you can write a trivial web server in bash, using inetd to handle the networking side. horrendously inefficient BUT very quick and dirty, and you can do a surprising amount to parse headers using awk and sed!
I used this technique to create a snapshot of a website and add a searchable index using namazu; the web pages are accessed using FILE:///, but the search engine uses http://localhost/namazu. Since you're only doing one cgi invocation on an occasional basis, who needs scalability? you could use djb's tcpserver, which is preferable over inetd. apache 1.3 can read/write stdin/stdout the way you're talking. it is inefficient as each request is another fork(), but for modifying headers in a particular way it's useful. -
Re:SCRIPT? Do it in C++!
you can write a trivial web server in bash, using inetd to handle the networking side. horrendously inefficient BUT very quick and dirty, and you can do a surprising amount to parse headers using awk and sed!
I used this technique to create a snapshot of a website and add a searchable index using namazu; the web pages are accessed using FILE:///, but the search engine uses http://localhost/namazu. Since you're only doing one cgi invocation on an occasional basis, who needs scalability? -
My thoughts
-
Only 5 That Matter
-
I can compress it to about 4.1 gig...
I've managed to get wikipedia to fit on a knoppix ISO image. I started off with the CD iso , turned on mysql and apache , installed mediawiki , and put on the iso a wikipedia database file , which I made from the sql dumps that the wikipedia foundation put out. (although now they don't , its xml only apparently)
So basically you boot the disk , start a web browser , go to http://localhost/wikipedia/index.php , and you can start searching for articles.
That , plus all the images I could fit , is about 4.1G. I've got a first version done , I'm just trying to get the thing uploaded somewhere so people can help with further development. I hope to go to a dual layer dvd , to fit on about 4G more images.
The fact that you have to reboot your machine to use it is a bit of a bummer , hopefully there's some way to run qemu or vmware off the disk , so the disk can boot itself inside a VM.
is anyone interested in this? -
Re:Right
Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
Later that day, the user returns and edits his +5 comment:
This is a very Insightful comment which will soon be modded up. Isn't it great? Huzzah!Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
About GNAA: GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the first organization which gathers GAY NIGGERS from all over America and abroad for one common goal - being GAY NIGGERS. Are you GAY? Are you a NIGGER? Are you a GAY NIGGER? If you answered "Yes" to all of the above questions...[truncated]This issue could be prevented by having moderation points taken back off a comment when it's edited. In this case, people would be discouraged from moderating as their work could be deleted at someone else's whim. Even if you returned their points to them after the fact, this would in turn create issues with newly issued points and metamoderation.
Long story short: you sound like you think that this idea hasn't ocurred to anyone before you. It has, and there are plenty of reasons that you can't edit comments on Slashdot.
-
Re:Right
Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
Later that day, the user returns and edits his +5 comment:
This is a very Insightful comment which will soon be modded up. Isn't it great? Huzzah!Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
About GNAA: GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the first organization which gathers GAY NIGGERS from all over America and abroad for one common goal - being GAY NIGGERS. Are you GAY? Are you a NIGGER? Are you a GAY NIGGER? If you answered "Yes" to all of the above questions...[truncated]This issue could be prevented by having moderation points taken back off a comment when it's edited. In this case, people would be discouraged from moderating as their work could be deleted at someone else's whim. Even if you returned their points to them after the fact, this would in turn create issues with newly issued points and metamoderation.
Long story short: you sound like you think that this idea hasn't ocurred to anyone before you. It has, and there are plenty of reasons that you can't edit comments on Slashdot.
-
Re:Right
Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
Later that day, the user returns and edits his +5 comment:
This is a very Insightful comment which will soon be modded up. Isn't it great? Huzzah!Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
About GNAA: GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the first organization which gathers GAY NIGGERS from all over America and abroad for one common goal - being GAY NIGGERS. Are you GAY? Are you a NIGGER? Are you a GAY NIGGER? If you answered "Yes" to all of the above questions...[truncated]This issue could be prevented by having moderation points taken back off a comment when it's edited. In this case, people would be discouraged from moderating as their work could be deleted at someone else's whim. Even if you returned their points to them after the fact, this would in turn create issues with newly issued points and metamoderation.
Long story short: you sound like you think that this idea hasn't ocurred to anyone before you. It has, and there are plenty of reasons that you can't edit comments on Slashdot.
-
Re:Right
Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
Later that day, the user returns and edits his +5 comment:
This is a very Insightful comment which will soon be modded up. Isn't it great? Huzzah!Insightful Comment by some-user (44522) on 06/06/06 18:10 (#134324) (Score: 5, Insightful)
About GNAA: GNAA (GAY NIGGER ASSOCIATION OF AMERICA) is the first organization which gathers GAY NIGGERS from all over America and abroad for one common goal - being GAY NIGGERS. Are you GAY? Are you a NIGGER? Are you a GAY NIGGER? If you answered "Yes" to all of the above questions...[truncated]This issue could be prevented by having moderation points taken back off a comment when it's edited. In this case, people would be discouraged from moderating as their work could be deleted at someone else's whim. Even if you returned their points to them after the fact, this would in turn create issues with newly issued points and metamoderation.
Long story short: you sound like you think that this idea hasn't ocurred to anyone before you. It has, and there are plenty of reasons that you can't edit comments on Slashdot.
-
OMG, LINUX TORVALDS IS SO CUTE!@!@#!@#)*
*giggle*
[ Reply to This ] -
Re:Browse safely and smarlty!
If you browse smartly, you won't be hit, even when you use IE. I strongly disagree. Microsoft software has been proven to be extremely weak when it comes to security. Even when using the very latest patches (as well as heaps of third-party software to help fill-in the other holes in Microsoft's flawed operating system) you're still going to get infected. Unless when you say You need to be really careful What you mean is "Ensure that the only address you use is http://localhost/". And the computer isn't networked in any way. Some more advice - use a virtual machine to browse.
-
open-xchange
http://www.openxchange.org/ - Open Xchange should make your list of "almost what you need". It has a great interface and excellent functionality. I don't know of any command line tools, but I don't think it would be too difficult to make some. I've never tried $ links http://localhost/ for open-xchange access, but it should give you some decent functionality.
-
Re:localhost?
One step ahead of you, buddy! I already have http://localhost/ registered!
-
Re:localhost?
What happens when someone registers http://localhost/ ?
Argh! And to be caught empty handed
... no mod points to flag this Funny! -
localhost?
What happens when someone registers http://localhost/ ?
-
Your user info
Your "homepage" points at http://localhost/. For most normal network devices, the hostname "localhost" will resolve to the same device, typically using IP address 127.0.0.1. That means that if anyone clicks on your link, they'll be connecting to themselves!
Do you see how explaining at length a readily apparent joke is neither funny nor insightful? That indeed it is scarcely worth the time it takes to type and certainly contributes nothing to the signal-to-noise ratio here? You have a five digit uid, you can do better than this.
You're welcome
-
Re:What's the question?
-without using some crappy 'BabelFish' layer
Ask any government that supports multiple official languages (Canada, Switzerland, ...). You translate into the other language(s) using professional translators. Period. You can give them the most powerful automatic translation tools available, and multiple language dictionarys (e.g. English-French) but in the end you need a human professional translator to make translations worth reading.
-without having to write a complete localized version for each language.
You need to make the content management system (CMS) language aware, and you need to localize all your templates. Then you need to add a key to your article database for language, so the user can retrieve article 101 in either english or french. (think a long the lines of http://localhost/cms/display.php?article=101&lang= en ).
I know nothing about PHP programming, so I cannot comment on that, or MySQL (main gotcha I expect is datatype, UTF-8, iso8859-1, vs. windowspage1574). Two articles I found useful in general about internationalization are
UTF-8 and Unicode FAQ for Unix/Linux by Markus Kahn
How do I have to modify my software?
http://www.cl.cam.ac.uk/~mgk25/unicode.html#mod
The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
http://www.joelonsoftware.com/articles/Unicode.htm l