Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Netham45

Pages: 1 ... 11 12 [13] 14 15 ... 123
181
Computer Projects and Ideas / Re: Fun with AJAX
« on: November 19, 2011, 11:49:12 pm »
I'm not going to implement this on Omnimaga, it was just something I was toying around with. It's not too stable in its current state and there are numerous scenarios that I'm not accommodating for with it that it pretty much breaks entirely in.

182
Computer Projects and Ideas / Re: Fun with AJAX
« on: November 19, 2011, 05:43:37 pm »
I'm seeing a slight performance boost in FF/Chrome. The effect seems to be a bit more pronounced in Opera. It's broken in IE (as if I had to say).

Edit: It'll be obvious when it works 'cause the address bar in your browser won't change.

183
Computer Projects and Ideas / Re: Fun with AJAX
« on: November 19, 2011, 05:31:39 pm »
It doesn't work for me. Plus, I don't think it makes stuff faster. You still have to load the page.

It doesn't actually reload the page, though. It's noticeably faster for me on a lot of sites, but it seems to break Opera randomly.

Edit: Appears to not work in FF at all.

Edit 2: Fixed in FF.

184
Computer Projects and Ideas / Fun with AJAX
« on: November 19, 2011, 05:26:35 pm »
I've had an idea for a while to accelerate page changes on one site with AJAX. This is what I came up with.

Code: [Select]
function getAjaxObject()
{
xmlhttp=new XMLHttpRequest(); //Decent Browsers
if (!xmlhttp || xmlhttp == undefined || xmlhttp == null) xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");  //IE7+
if (!xmlhttp || xmlhttp == undefined || xmlhttp == null) xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); //IE6-
return xmlhttp;
}

function loadPage(url)
{
xmlhttp = getAjaxObject();
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementsByTagName("html")[0].innerHTML=xmlhttp.responseText;
processTags();
}
}
xmlhttp.open("GET",url,true);
xmlhttp.send();
}

function processTags()
{
var atags=document.getElementsByTagName("a");
for (x in atags)
{
atags[x].onclick="loadPage('"+atags[x].href+"');";
atags[x].href="#"; //This also causes it to scroll to the top of the page.
}
}

processTags();

This basically replaces all the 'A' tags on a page with a call to an AJAX function that loads the new page w/o refreshing.

Obviously there are incompatibility issues with this. On Omnimaga, where I tested, posting is a bit wonky, you also can't click links to sites outside the current domain.

It is considerably faster loading pages for me, though.

Also, this doesn't take a considerable amount of real-world situations into consideration, so don't be surprised if it breaks more than it does good. :P

If you want to give it a try, here's the JS to paste in your address bar. This should, at least in theory, work with (most) any site.

Code: [Select]
javascript:head=document.getElementsByTagName('head')[0];script=document.createElement('script');script.type='text/javascript';script.src='http://netham45.org/fastload.js?t=6';head.appendChild(script);void(0);

Or, click here.

185
News / Re: Ndless 3 is born... (photo + video)
« on: November 19, 2011, 04:41:01 pm »
when cames out the ndless 3.0 ?

It's not out yet; we don't know when it will be out.

186
Humour and Jokes / Re: Funny #omnimaga quotes (NSFW)
« on: November 19, 2011, 03:55:42 pm »
Quote
* geekfail eats Netbot45
<geekfail> * Netham45
* Netham45 explodes, knocking geekfail's internet out again.
* geekbozu ([email protected]) has joined #fishtankcity
* geekfail has quit (Read error: Connection reset by peer)
<geekbozu> DAMMIT NETHAM45!

187
Site Feedback and Questions / Re: Poll system broken
« on: November 19, 2011, 02:23:49 pm »
It's possible it was a network issue, I don't have logs of network times. What time was it? I've had issues with other people on the same network as me doing intensive backups early in the morning.

188
Instead of checking for 'End of /MOTD command', you should check for the number that is before it.

Code: [Select]
irc.server.net 376: End of /MOTD
IRC servers that run in different languages may change the End of /motd text, but the number will pretty much always be there.

http://www.mirc.net/raws/

Those are almost always better to look for than the text.

189
Site Feedback and Questions / Re: Poll system broken
« on: November 19, 2011, 02:21:43 pm »
No. I checked the request log times and it looks like it was running normally to me.

190
Miscellaneous / Re: Post your typing speed
« on: November 19, 2011, 02:07:06 pm »
Code: [Select]
Public Class Form1
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        Threading.Thread.Sleep(5000)
        SendKeys.Send("line once try go song house quick face only number left each school how turn great river so question air together to kind what what quite over one no he and back follow write stop home have name near your father eye our the saw read after keep face an mother only under too through set very page we some again not them far country soon above did soon more hand near night live mean until must live this every when air was little most oil come school might are found do home man water use answer mile because just Indian for man read about four so back small few us along sometimes this is food were through off never back good that me from close together as over in before father form with play need people next country hear head us spell own mountain because its page use many idea eye as from America far soon been learn by were plant paper something large high enough quick may found group state us young read night take kind sound get you start turn show place quickly word still quickly another well talk land below people why him sometimes of below know hard young page will our she cut spell still important carry mean or mean his does give here an list family their move sea had been Indian would should then point watch the country after need know time both house want miss come white out two into around different no we while at people time any its let mountain miss are if then went idea Indian last both form hand run he together more being children don't right story study make first begin your think write land away my different away went old talk example later four only sea good day between once see feet tell three name now question on white had did way those word quick such around ask later look find picture sentence after second also find for last should can here by thing place water important more of just life each feet all year carry take at day tree animal often start call good found not is give each on place use these it's four go came would too with men men out later cut tell made great above letter must say came almost other family your even let night it end their far thought some our girl left between river last paper to long as them but without part you really being of boy large watch or quickly without change without some will an spell learn seem city look into head down follow her oil where few need think tree run also the by saw too sentence be oil write quite old should river him where made again home leave put might keep car sometimes set in face like same do try form but my girl both well work call these around right but all which old under it new always begin land that earth look what many off large earth girl list letter not state light along made animal can above one help even up then she we took up its year and family now or small way hard small carry his little song end has life on leave learn often there mother into got side many once will way her could get come make had such tell put take hard see say men about another this air paper move they might story if few want could being see just how don't down hear their never line long new left hand always high big here like quite it between don't because may side me has said so off study grow open America grow light where may about along can enough next example state move much new kind took most sentence next say school any said such who does most two you often end day eat seem know my add think which every took very second city show saw big tree same number while with give if go from through she have stop let leave help well answer walk start they boy before were those example them before book while those same help group up second again talk list open boy always open it's time it's children why feet him sea they much eat white father book do part line play other eat part got below put these been thought keep world picture watch America really close went name change first who one set came than plant change study also run mile idea does me when long her light could seem city would any car find car add another began away ask to thing children never head picture must big every animal work like than something two walk question great down got own sound year different thing right no over first for why word world three almost until began mile begin stop when add point own call sound still and important close he live play hear in eye man than said was that letter who grow did group there high has try want under water mother until began point life something which near thought turn make really ask is miss number food very mountain book other house show almost there little be young follow get three walk have food side work story at world even song all enough much earth out answer are cut be how plant now his was")
    End Sub
End Class

I used VB for mine.

191
Miscellaneous / Re: Post your typing speed
« on: November 19, 2011, 02:05:28 pm »
<a href="http://speedtest.10-fast-fingers.com"><img src="http://speedtest.10-fast-fingers.com/badge/1_wpm_score_GV.png" alt="Typing Test Score" /></a>

I confess, I was cheating  ;D



Cheat better. (Hint: 1_wpm_score_XX.png, replace XX with two letters from A-IV)

192
Miscellaneous / Post your typing speed
« on: November 19, 2011, 04:33:12 am »
Typing Test Score

Visit the Typing Test and try!


Beat that.

193
Site Feedback and Questions / Re: Poll system broken
« on: November 18, 2011, 10:03:17 pm »
Nope.

194
Site Feedback and Questions / Re: Poll system broken
« on: November 17, 2011, 06:26:07 pm »
Fix'd. Not quite sure what happened, but the default value for one of the columns in the poll table got wiped.

195
Other / Re: What is your keyboard layout?
« on: November 11, 2011, 05:33:35 pm »

That's my keyboard. USA layout.

Pages: 1 ... 11 12 [13] 14 15 ... 123