SailNet Community - Reply to Topic

   Search Sailnet:

 forums  store  


Quick Menu
Forums           
Articles          
Galleries        
Boat Reviews  
Classifieds     
Search SailNet 
Boat Search (new)

Shop the
SailNet Store
Anchor Locker
Boatbuilding & Repair
Charts
Clothing
Electrical
Electronics
Engine
Hatches and Portlights
Interior And Galley
Maintenance
Marine Electronics
Navigation
Other Items
Plumbing and Pumps
Rigging
Safety
Sailing Hardware
Trailer & Watersports
Clearance Items

Advertise Here






Go Back   SailNet Community > Welcome to Sailnet > Announcements and Suggestions Box > Sailnet way Slooooooooow
 Not a Member? 


Thread: Sailnet way Slooooooooow Reply to Thread
Title:
  

By choosing to post the reply below you agree to the rules you agreed to when joining Sailnet.
Click Here to view those rules.

Message:
Trackback:
Send Trackbacks to (Separate multiple URLs with spaces) :
Post Icons
You may choose an icon for your message from the following list:
 

Register Now

In order to be able to post messages on the SailNet Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
Please note: After entering 3 characters a list of Usernames already in use will appear and the list will disappear once a valid Username is entered.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in

Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Click here to view the posting rules you are bound to when clicking the
'Submit Reply' button below


Additional Options
Miscellaneous Options

Click here to view the posting rules you are bound to when clicking the
'Submit Reply' button below


Topic Review (Newest First)
06-02-2008 02:39 PM
justmike
Mac OS X workaround

Quote:
Originally Posted by bestfriend View Post
NOPE! BACK UP TO 15 SECONDS. Mike, can you explain the fix to me? Where is the host file and what do I post to it?
OK, but first I need to state that this is not a fix, this is a hacky workaround. When this problem is resolved, this hack should be undone. Honestly, I would recommend that folks give SailNet a couple of days to see if the real problem is resolved before going this route, unless you're already comfortable doing this kind of thing.

Second, it's possible to mess stuff up doing this, so be careful, make backups before you attempt it, wear a Nomex suit, etc. Third, it's a pain to do on a Mac, mainly because you have to work around the Mac's security (IMO, it's a very good thing that this is hard to do).

The easiest, least nerdy way I can think to do this is to get a text editor that can deal with the Mac security system, such as BBEdit (commercial) or its free (and very capable) sibling TextWrangler. I'm sure there are other editors that will work; these are what I use (old habits die hard).
  1. You need to be a user with admin privileges (if you have only one user on your Mac, you should be OK).
  2. Launch TextWrangler, choose File->Open Hidden.... Click on your hard drive icon, then navigate to the "etc" folder. At the bottom of the dialog, choose "All Files" from the "Enable:" menu. Open the "hosts" file.
  3. You should asked to verify that you want to open a file owned by the user named "root". Confirm.
  4. Add this line to the hosts file:
    127.0.0.1 www.youchoose.net
  5. Save the file. Enter will be prompted for your password (this is your giving the system permission to override the security to modify a system file).
No reboot is required. To reverse this, reopen /etc/hosts and delete the line (again, no reboot will be required).
06-02-2008 12:47 PM
hphoen Firefox has an add-in called NoScript. It prevents Javascripts and other applets from running unless you specifically agree to allow them. I have everything on this site blocked except sailnet.com itself. Sailnet loads in a reasonable amount of time for me. A little bit slower than some similar sites, but fast enough.
06-02-2008 12:44 PM
bestfriend NOPE! BACK UP TO 15 SECONDS. Mike, can you explain the fix to me? Where is the host file and what do I post to it?
06-02-2008 11:53 AM
justmike
Much improved here too

Much better, and the widget-remote-script.js file that was taking > 30 seconds to load last night is now loading in ~2 seconds.
06-02-2008 11:01 AM
Freesail99 Yes, it seems faster.
06-02-2008 11:00 AM
teshannon It's been almost unusable but seemed ok just now.
06-02-2008 10:38 AM
arf145 For those who want to apply justmike's excellent fix and want instructions that are more spelled out (though this might still be hard for some):

Goal: Add a line to a file called "hosts" on your computer. The file is called simply "hosts" with no extension.

1. Find the file. On the Mac: justmike says it's in a folder called "etc". On Windows: go to the folder C:\Windows\system32\drivers\etc. You may need to choose "Show hidden files and folders" in the Folder Options menus to see this. OR on Mac or Windows, search for the file (Windows: ignore the hosts file in the I386 folder--that's not it).

2. Open "hosts" in a text editor. Sorry, Macs, I don't know what yours is called, but I bet if you doubleclick on the file the Mac will open it. Windows: use Notepad by doubleclicking on the file and choosing Notepad from the list.

3. Go down to a line below all the lines that begin with "#". Type this in starting at the left:

127.0.0.1 w w w.youchoose.net

Don't put the spaces between "w w w"--I had to put those there so it wouldn't get turned into a link here. You do need at least one space between127.0.0.1 and www.

4. Save the file.

5. Restart your machine (I believe Windows requires this--don't know about the Mac.

That's it.

Tom
06-02-2008 01:35 AM
justmike
Some detail for the admins

(This isn't anything that will help an end user, but perhaps might help the admin(s) get to the bottom of this.)

Specifically, the biggest lag is in the retrieval of a customized Javascript script called "widget-remote-script.js" which is retrieved with every page. Here's a retrieval for that file, which, you can see in this case, took about 34 seconds.

jmike@sigh % time wget http://www.youchoose.net/widgets/wid...mote-script.js
--2008-06-01 23:30:54-- http://www.youchoose.net/widgets/wid...mote-script.js
Resolving www.youchoose.net... 76.12.118.35
Connecting to www.youchoose.net|76.12.118.35|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/javascript]
Saving to: `widget-remote-script.js.1'

[ <=> ] 37,303 --.-K/s in 0.03s

2008-06-01 23:31:29 (1.06 MB/s) - `widget-remote-script.js.1' saved [37303]


real 0m34.421s
user 0m0.005s
sys 0m0.010s


Also, the time taken to perform this was almost entirely after the resolution of the host name, so it wouldn't appear to be a DNS problem:

jmike@sigh % time host www.youchoose.net
www.youchoose.net has address 76.12.118.35

real 0m0.014s
user 0m0.002s
sys 0m0.005s


In case there was any doubt, yes, I'm a big ol' nerd.

Please ping me directly if I can help in any way.
06-02-2008 12:52 AM
bestfriend I checked Firefox just to see, same problem. Its been this way for several days. I won't be back until they get it fixed or I post an update for Simon.
06-02-2008 12:29 AM
justmike
Quote:
Originally Posted by therapy23 View Post
Can't you just hack the site and take it out for us?
Sorry, white hat here. :-)

IMO, a good short-term solution for non-technical users would be to use Firefox, as it's reported to work well with this widget.

Long-term, getting a fix from the developers for the problem (I'll volunteer to beta-test/debug, if that will help), or just remove it if it's not worth the effort.
This thread has more than 10 replies. Click here to review the whole thread.

 
Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On


All times are GMT -4. The time now is 06:49 PM.

Add to My Yahoo!         
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1
(c) Marine.com LLC 2000-2012

The SailNet.com store is owned and operated by a company independent of the SailNet.com forum. You are now leaving the SailNet forum. Click OK to continue or Cancel to return to the SailNet forum.