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.

Topics - nend
Off-topic / Women in the Workplace/Life
« on March 11th, 2013, 07:51 PM »
Maybe get on a few nerves here, but this is my opinion.

I don't mind women in the workplace, but there are certain things that bother me.

One situation I can think of happen recently, well it happens quite often, but I will speak of a certain instance. One day there was a box that needed to be put up. Not really a heavy box maybe around 5 to 10lbs. Will a young lady asked me to pick it up because in her old words "I am too much of a girly girl.". I am thinking to myself then why are you even working here and why should I be making the same amount as her when I have to exert more energy on the job. Like I said this wouldn't bother me too much but it is a constant thing. You know if she asked once in a long while to pick up something that is actually heavy.

Don't get me wrong there are plenty of women that pull their weight around but ones like the one who should be nameless above really @#$% me off.

Another thing not so bad though but the door thing. You know how it is polite to hold open a door for a lady. This don't bother me but don't take advantage of it ladies. When I am about to enter a convince store, hold the door open for my wife and child and here comes a line who also wants the door open, well true story. I actually held the door open for so long that my wife was already waiting for me at the checkout.

Enough rant, but it does get on my nerves and figured I would vent it here.
Off-topic / RegEx get id from Aeva Embed
« on August 2nd, 2012, 03:25 AM »

I am wondering how to get an id from a Aeva BBC. I just need the id and nothing more. What I want to do is pull the id from the first BBC only in a post.

Here is what I have, it works prefect but it only does ids with 3 digits, if I switch the number to 2 then two digits.
Code: [Select]
if (preg_match('[smg id=([0-9]{3})(.+)]', $row['first_body'], $match)) {
$row['aeva_thumb'] = $scripturl . '?action=media;sa=media;in='.$match[1].';thumb';

RegEx has always thrown me off. I can usually get by trying to make an expression, but I am no expert in this area.
Off-topic / Getting Old
« on July 18th, 2012, 05:51 PM »

I am not too old yet but starting to feel like it every month or so. Last year I had to have two molars pulled due to abscesses.

This year I was diagnosed with de-quervain disease which is curable but in my case may come back. The disease was caused to extra flexibility in my joints, which may sometimes strain tendons. So now on I have to take precautions to prevent any strains.

Lately have been feeling more tired than usual and I guess I hit my mid life crisis at 29, early though. I am constantly thinking if the career path I have chosen is the right one. Lately I have been thinking about getting into politics to at least try to make a difference in the wrong I see in the world today.

I don't know, I see my age is young but I just don't feel like I used to. I have to limit my activities in fear of hurting myself. -_-
Other software / Aeva custom URL's
« on June 8th, 2012, 10:58 PM »
I have a question, I want a certain formatting in Aeva custom sites list but when I do it it doesn't work.

Here is the working.
Code: [Select]
$sites[] = array(
'id' => 'ytsp',
'title' => 'YouTube Series & Playlist',
'website' => '',
'type' => 'custom',
'plugin' => 'other',
'pattern' => 'http://(?:www\.)?youtube\.com/embed/videoseries\?list=([0-9a-z]{18})',
'movie' => '<iframe width="853" height="480" src="$2" frameborder="0" allowfullscreen></iframe>',

This one doesn't work.
Code: [Select]
$sites[] = array(
'id' => 'ytsp',
'title' => 'YouTube Series & Playlist',
'website' => '',
'type' => 'custom',
'pattern' => 'http://(?:www\.)?youtube\.com/embed/videoseries\?list=([0-9a-z]{18})',
'movie' => '$2',
'fix-html-pattern' => '<iframe width="853" height="480" src="$1" frameborder="0" allowfullscreen></iframe>',

I may be missing something, the first one works but I rather have the movie defined as a url and not code because I output these in a open graph hack I made.

No big deal if Aeva wasn't designed to do this, I can just regex the url from the html iframe code. -_-
Off-topic / Function Time Limit
« on May 29th, 2012, 06:11 AM »
I was wondering is there any way in PHP to set a time limit on a PHP function. Say if the function is not done in a certain amount of time the function execution is cancelled and the function returns nothing.

What I want to do is start a heavy query and if the query doesn't finish in a certain amount of time have the query stop and the function exited.
Other software / Has SMF Gotten Slower?
« on May 14th, 2012, 06:33 AM »
Will I was visiting a old forum I have, a 1.1.x branch forum. This forum is packed with tons of data and modifications but for some reason it seems to be outperforming a newly installed 2.0.x branch with light modifications.

It has been a while though since I dabbed into a 1.1.x source code, but what has changed to make SMF 2.0.x slower than its predecessors? Is SMF 2.0.x database layer the source? :whistle:
Other software / Shutdown Functions
« on May 10th, 2012, 06:30 PM »
I know you guys been remolding SMF so by now you have to be familiar with all the SMF code base.

Is there any registered shutdown functions in SMF? If so where are they located and do they do anything with the output buffer?
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>
<script type="text/javascript">
function sendForm(form) {
var fd = new FormData(form);
var xhr = new XMLHttpRequest();
xhr.upload.addEventListener("progress", uploadProgress, false);"POST", form.action, true);
function uploadProgress(evt) {
var percentComplete = Math.round(evt.loaded * 100 /;
document.getElementById('prog').value = percentComplete;
<form action="" 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);" />
<progress id="prog" value="0" max="100.0"></progress>

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. -_-
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.
The Pub / Nice work
« on March 21st, 2012, 04:23 AM »
I actually didn't think that you guys would come so far, sorry for doubting but I honestly didn't believe it. However you guys did make it this far and it is starting to look nice.

That is all I wanted to register to say that.
Nice Job. :cool:
Archived fixes / Captcha doesn't work in Chrome
« on March 21st, 2012, 04:19 AM »
Since I had a difficult time registering and had to open Firefox to register, I am going to pester you with a bug report. I thought it was a clever scheme of showing a blank box, which meant don't type anything in.

I don't know about other webkit browsers, but the captcha does not work in Chrome because of the lack of APNG support. The main reason I believe though is because of the Portable Network Graphics group never accepted the proposed animated PNG and truthfully their isn't really one standard for it. Mozilla however has a definition of the standard which is widely accepted, but it isn't a real standard and isn't set in stone.

So basically what I am getting at, is APNG's don't work on all browsers. ;)