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 - nend
106
Archived fixes / Re: Long cache keys make the cache fail.
« on May 2nd, 2012, 12:39 AM »
This cache thing isn't as simple as it looks, long keys pass the file name character limit.

I was thinking though also a while back about a master table which will be loaded once and saved once every load that the cache is used. Each cache file will be saved as say numeric or alpha numeric file name.

The cache table will figure out when a key is requested which file to load. This works differently because the key has nothing to do with the file name.

When a key needs to be saved the key will be added to the cache table array and a numeric file reference will be generated. If a collision occurs then the system just needs to generate a new file name.

Code: [Select]
'some key here' => 'file1.php',
'some other key here' => 'file2'

In a perfect world though this should work fine, but it wouldn't. There are chances the file may not be available when requested. Some system has to be in place to prevent this.
107
Off-topic / Re: HTML5 Upload Progress.
« on May 1st, 2012, 08:47 PM »
Figured it out, it was my button
Code: [Select]
<input type="submit" onclick="sendForm(this.form);" />

Changed to
Code: [Select]
<input type="button" value="submit" onclick="sendForm(this.form);" />
108
Off-topic / HTML5 Upload Progress.
« on May 1st, 2012, 07:36 PM »
I haven't been playing much with HTML5 lately but found a new feature that I really like that I can't seem to get to work. The new feature is the ability to get the file upload progress without having the server tell the script how much it has got. It works off the browser and shows how much has been sent. But in my case it shows nothing, I can't get it to work. Anybody else play around with this new feature?

Source, modified to hide urls
Code: [Select]
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function sendForm(form) {
var fd = new FormData(form);
var xhr = new XMLHttpRequest();
xhr.upload.addEventListener("progress", uploadProgress, false);
xhr.open("POST", form.action, true);
xhr.send(fd);
}
function uploadProgress(evt) {
var percentComplete = Math.round(evt.loaded * 100 / evt.total);
document.getElementById('prog').value = percentComplete;
}
</script>
</head>
<body>
<form action="http://somesite.com/?do=myRecs&sa=sub2" method="post" enctype="multipart/form-data" accept-charset="UTF-8">
<strong>Name:</strong><br /><input type="text" name="name" size="35" /><br />
<strong>File:</strong><br /><input type="file" name="upload" /><br />
<strong>File Name:</strong><br /><input type="text" name="file" size="35" /><br />
<strong>Version:</strong><br /><input type="text" name="ver" size="35" /><br />
<input type="submit" onclick="sendForm(this.form);" />
</form>
<progress id="prog" value="0" max="100.0"></progress>
</body>
</html>

There really isn't much information on it in the web, just that it is a new feature. There is not even a really decent demo script. So forth I built this on the information I gathered, but no go. -_-
109
Bug reports / Re: Pretty URL remarks
« on April 28th, 2012, 05:21 PM »
Quote from Arantor on April 27th, 2012, 07:22 PM
It's not a simple x is faster than y argument, either. If you have stuff in the DB that's being called frequently, assuming you don't have a stupid DB layout and bad queries, there's a reasonable chance that you might be able to get some of that stuff out of the query cache, and if the table isn't too huge, you might even get it entirely into memory anyway, and RAM is faster than HD for things like that ;)
The method in the VB's script is not DB friendly. The URL DB cache for most people out grows everything else in the DB. Before I noticed it, the URL DB cache was taking up at least 3/4 or 75% of my DB. That is when I suggested to VB to use SMF's cache and also give the option to disable, because that is better than the DB option IMHO. Plus who wants 75% of their DB just used for Pretty URL's.
110
Bug reports / Re: Pretty URL remarks
« on April 27th, 2012, 07:19 PM »
Quote from Nao on April 26th, 2012, 05:25 PM
Quote from nend on April 17th, 2012, 08:27 PM
On SMF caching I cache 1 file per page, it would be too much of a waste 1 file per URL. I figured there are only going to be a few pages hit often and allot of pages not so often, so I believe it will even itself out using this method.
I don't know. I'm not sure this is for the best... We're talking about a feature that takes on average a hundredth of a second to execute (it's about half the time of the entire ob_sessrewrite execution time IIRC), perhaps two at the most, and caching this would logically save even less time... Then again, most of the cache calls in Wedge/SMF are done to save a few milliseconds only... But they usually don't have to target a wide range of URLs or anything.
So your saying caching the data takes more time then if I processed all the urls in a page?

I wasn't too sure which would be faster when I made the modification to do file caching instead of db. I know the file caching has to be faster than the db, not only faster but you don't have to worry about the DB being filled with junk that never purges. Both can be turned off easily anyways.

However I know you and Arantor, always bickering over performance and slight gains, which isn't a bad thing. So I am pretty sure your information is correct. Thanks though for the information, I think I am going to disable caching completely in that area.
111
Features / Re: Multiple default skins?
« on April 27th, 2012, 06:49 PM »
You guys are talking about the area on the right of this post right?

IMHO it feels too empty in that area, especially on long post. Maybe reorganize it and when the user scrolls have the bottom part break off and scroll with the page. Like the thought system can scroll down with you so you can have quick access to it at any time. This is just my opinion though.
112
The Pub / Re: Number of 'online users'
« on April 27th, 2012, 06:34 AM »
Quote from Nao on April 26th, 2012, 04:53 PM
Quote from Arantor on April 25th, 2012, 07:05 PM
There isn't at present but I suppose it could be; since you need to be signed in, and they need to be signed in, between them it's fairly trivial to do. It will probably be more useful than seeing what guests are online, actually ;)
Indeed.
Heck, when we implement custom groups, friend lists will suddenly become trendier to use -- if only because you'll be able to specify your own 'custom' colors for them, mesays.
That is what I hope to see in Wedge, a better buddy/friend system. The system in SMF is a joke. First off you don't know when you have been added to someones buddy list, there is no notification saying "So and So has added you, do you accept?". IMHO SMF's friend/buddy system is a broken system.
113
Features: Miscellaneous / Re: Gravatar support
« on April 27th, 2012, 06:30 AM »
Quote from Nao on April 26th, 2012, 04:46 PM
+1 Pete.
Quote from nend on April 25th, 2012, 06:20 PM
I do tend to visit them time to time, but that is usually when a search takes me to one. I just really can't get into visiting a blog over and over again.
You never use RSS feeds..?
I have a couple scripts that pull information from RSS feeds, well it is a media scraper site. :eheh:

I hardly touch them though, wouldn't know what to do with them.
114
Features / Board Icons
« on April 25th, 2012, 07:27 PM »
This will replace the standard board icons with a custom one. A admin can select different board icons for each board if they wanted to.

In the admin panel when managing boards a Admin can upload a board icon. This icon will be shown instead of the default generic one on the board. For when the board has new content in it there can be a box on the bottom right corner of the custom icon that lights up to show if there is anything new in that board.

I have something similar implemented on one of my sites, there I go with that again, lol. Mines is a little different that I show a new icon right by the board title when there is new content in that board. However on mine I have two pictures, one is a big one for inside the board and the other one is a small one for the board index.
115
Features / Re: Board descriptions
« on April 25th, 2012, 07:14 PM »
I rather have it the other way around, just the board title in the board index with no description, on child board have a short description and with a full description in the board. Who says you can't have both though, maybe optional or leaving it up to the theme designer.
116
The Pub / Re: Number of 'online users'
« on April 25th, 2012, 07:04 PM »
Is there going to be a option to see what friends are online? At least this, you can take everything else away. :D
117
The Pub / Re: Number of 'online users'
« on April 25th, 2012, 06:55 PM »
How about where it says "so and so is viewing this topic"?

Doesn't really matter though, I have a board where I removed all that stuff because it didn't really flow with the site. If someone wants it later though maybe a aftermarket plugin or such? You know you are going to get people that still want that feature, I can care less though.

In a way though, are you copying me, lol, jk.
118
Features / Re: Multiple default skins?
« on April 25th, 2012, 06:45 PM »
How about letting the browser cache some php generated content on a mobile theme?

I have done this on one of my mobile templates. You have to have a set of rules, but not that hard. Here is a basic of my rules.

Locked Topic - Cache for a week
Multiple Pages where the current page is not the last one - Cache for a day
All other likely to change - Cache for two minutes

This makes it easier on slow data speeds when you need to navigate back and such and don't want to page loading reloading all the time.

I also turned on compression for most smart devices, since they usually support compression. This is something SMF had turned off by default for all mobile devices.

On my mobile theme I am using jQuery Mobile, works pretty good, don't expect you to do the same just throwing that out there.
119
The Pub / Re: The Cookie Law (in the UK at least)
« on April 25th, 2012, 06:25 PM »
I don't know, too many laws, another straw. I think we are starting to get to a point where we say screw big brother and lets all be pirates. With all the new laws being introduce everyday, we will all be criminals soon. I am not saying go out and distribute illegal media, but heck with all these stupid laws, I am getting tired of it. Every single country every single day moving more and more to communist. I only say that because they make laws where the public doesn't have a voice so they can do whatever they want without a single vote. Even my own country with all their stupid laws, I guess we like electing idiots into office, sad though that is all we got to choose from.
120
Features: Miscellaneous / Re: Gravatar support
« on April 25th, 2012, 06:20 PM »
Blogs are usually one sided. :eheh:

I do tend to visit them time to time, but that is usually when a search takes me to one. I just really can't get into visiting a blog over and over again. I rather have a place where I can really discuss and post my opinions and thoughts also.