Borderless Word Doc in PDF Creator

February 6th, 2010 | Posted by pftq in Blabberbox

     I recently ran into an issue where PDF Creator was cutting off the top of my documents that were too close to the edge.  It’s strange because the sides and bottom of the pages were okay, so it didn’t seem like a border-issue (and PDF Creator isn’t a real printer anyways).

      To fix it, go to Print Options for Microsoft Word and make sure “A4/Letter Resizing” is turned off.

I am guessing if you set the correct paper size in PDF Creator’s options, this would fix it as well.  Usually however, I just print straight to PDF without changing any settings, so this is the preferred method for me.

Embedding Stock Charts on SMF Forums

December 28th, 2009 | Posted by pftq in Blabberbox

     So I was looking for a way to embed stock charts into posts for SMF Forums, probably via bbcode or tags.  I checked Google all morning and couldn’t find it though.  If it exists, please redirect me because I’m sure it’ll be much better than my makeshift solution. :P

     In the meantime, I modified my forums to use a tag called [schart].  When someone types [schart]SYMBOL[/schart], it shows the stock chart in its place.
The editing isn’t complicated, but you need another site to embed from.  Right now, I’m using Wikinvest, but it’s a bit slow and heavy (it’s interactive and flash, fancy stuff).  If anyone knows a good, fast-loading static one, it’d be nice to know. :D

For the code, go to Sources/Subs.php and find “function parse_bbc”.
At the end of the $codes array, or after:

array(
 ’tag’ => ‘white’,
 ’before’ => ‘<span style=”color: white;”>’,
 ’after’ => ‘</span>’,
),

Insert:

//Moddie Stock Charts
   array(
    ’tag’ => ’schart’,
    ’type’ => ‘unparsed_content’,
    ’content’ => ‘<script src=”
http://charts.wikinvest.com/wikinvest/wikichart/javascript/scripts.php” type=”text/javascript”></script><div id=”wikichartContainer_645B01FB-’.($srand=rand(1000,9999).’-’.rand(1000,9999)).’-$1-D729C4917DE2″><div style=”width: 390px; text-align: center; vertical-align: center; margin-top: 22px;”><a href=”http://get.adobe.com/flashplayer/”><img src=”http://cdn.wikinvest.com/wikinvest/images/adobe_flash_logo.gif” alt=”Flash” style=”border-width: 0px;”/><br/>Flash Player 9 or higher is required to view the chart<br/><strong>Click here to download Flash Player now</strong></a></div></div><script type=”text/javascript”>if (typeof(embedWikichart) != “undefined”) {embedWikichart(”http://charts.wikinvest.com/WikiChartMini.swf”,”wikichartContainer_645B01FB-’.$srand.’-$1-D729C4917DE2″,”390″,”245″,{”ticker”:”$1″,”liveQuote”:”true”,”showAnnotations”:”false”,”rollingDate”:”6 months”});}</script>’
   ),

     Usually the chart ID (container) is set so that you can save changes to the chart, but I’m really just looking for the chart display alone.  The ID is randomized so that you don’t have to create a new chart at Wikinvest each time.  The problem might be that you accidentally use the ID of an existing chart, but the chance of that should be relatively small (and even so, you’re not making changes to the saved chart).

     Of course, if anyone knows a chart that doesn’t need an ID or settings to be saved, that’d be even better.  I’m still looking for one right now, but this is what I’m using in the mean time. :)

Update 20100112:
Found a few other sources for charts.  This one loads quickly as an image: http://www.profitspi.com/

Just replace the content code with:

‘content’ => ‘<img src=”http://www.profitspi.com/stock-chart-str.aspx?id=$1&amp;ca=24062939″ alt=”$1″ />’

Flying with Hunger

December 12th, 2009 | Posted by pftq in Story Ideas

     This one’s a fun one… a bit on the goofy side and that no one dies in it at least (though that can always change).  Imagine if your uncle was a mad scientist living in a creepy castle next door (yes, complete with lightning, the moat, and everything while your house is just the typical suburban plot).  Your uncle invites you in one day to test out his new experiment which could enable you to fly… and it works! The only thing is every time you fly, you get hungry.  Very hungry.

     The story starts with James in his class on a typical day.  The lesson is on how birds fly.  The teacher emphasizes that the bird is small but requires a lot of energy to stay afloat, its heart beating up to 6 times faster than ours.  James daydreams that he could fly like a bird, flapping his arms like a bird.

     James is the average 12-year-old kid with a mad-scientist uncle.  His uncle puts him in an experiment that allows him to fly (arm-flapping).  At first, he can only go short distances and not very high.  It gets him very tired and very hungry.

     Later, however, he tries to fly even higher, up to the sky, only to run out of energy and become very fatigued.  Fortunately, his uncle saves him before he falls to the ground.  His uncle doesn’t dare try the experiment on himself to but has a remote-controlled hovering device that catches James (we learn gradually that his uncle doesn’t dare endanger his own life in any way or manner).

     James eventually makes a celebrity out of himself by flying for show.  However, his appetite grows more and more.  Eventually, even short glides make him hungry enough to eat several plates (is he gaining weight maybe?).  His parents refuse to let him fly any longer.  They say they cannot afford the food.  James complains that he makes millions from flying, but his parents reveal that the money just barely covers the amount of food he eats, that his parents had to pull money from their own pockets to keep him fed as well.

     Obviously James cannot resist still flying once in a while, although he has quit all the press-related activities.  His uncle is a bit grumpy that no one came to him to ask how he did it (it turns out his castle scared everyone away).

     To be continued? Probably.  This was just what came to me during the few minutes I thought about it. :P

Immortality

December 11th, 2009 | Posted by pftq in Story Ideas

     You often see movies or books about people who can never die, but usually they also heal super fast from any wound or injury.  Just a thought on my end, but what if you can never die, but you heal at a normal rate?

     The scary part about this is that the normal person can relate since no fast healing is involved.  The person in the character is essentially still conscious no matter what happens.  What’s to say this doesn’t occur in real life? Obviously you can’t heal from everything or live forever, but what’s to say your consciousness doesn’t continue drift along out there?

     It probably wouldn’t work that well as a film because you can’t show the inside of someone’s mind (supposing you take a first person perspective).  From an outside observer though, that might work.  Ideally, a book would work better so you can see the main character’s thoughts.

     The story would probably go something like this:

     An ordinary everyday person, Tom, is involved in a freak accident (sky diving?) in which he is the lone survivor.  Tom is confused about why he is the only one to survive and is left in a crippled state.  Over a few years, however, he begins to recover and regain full functions of his body.  He considers himself lucky and the media calls it a miracle recovery.
     Tom meets new friends and associates, but he also makes new enemies.  He eventually incurs the jealousy of one fellow, Jacob, who sets out to ruin him.  A staged accident is set up in which Tom and his new friends are fatally hit by an automobile.  Tom is again the lone survivor and remains conscious long enough to see Jacob at the scene.  When Tom wakes up, he is in a body bag and apparently everyone thinks he’s dead.  It isn’t until they are preparing him for his funeral that someone realizes he is still alive.  They check his pulse and say they must have missed it when they checked during the accident.  Tom is not as badly injured as during the beginning of the story and recovers fully within the year.
     At this point, Tom tries to take revenge on Jacob (to which no one believes is the murderer).  One night, Tom stages a trap at Jacob’s home (Jacob lives alone) and meets Jacob face-to-face.  Jacob tries to explain that he was jealous of Tom but not enough to commit murder.  There is a moment where even the audience wonders whether Tom imagined the whole issue and whether it was just another freak accident.  Tom doesn’t believe him and is about to attack him, but Jacob pulls out a gun from behind his back and shoots Tom in the heart.  Tom collapses and Jacob panics at what he’s done (perhaps he was telling the truth about not being a murderer).  Tom, however, realizes he can still think and rationalize, although his body cannot move.
     Everyone thinks he’s dead until the bullet is extracted from his heart and it starts beating again, despite being wounded.  They keep him alive, thinking he’s in a vegetable state, but Tom recovers after a while.  Jacob is still around and had claimed self-defense, that Tom was crazy.  Tom sets out to kill Jacob again and finally succeeds by killing Jacob with the same gun used on him.  Tom himself becomes freaked out over what he’s done.  He tries to remove the bullet from Jacob, thinking Jacob would recover the same way, but Jacob is dead.
     Over time, Tom realizes he cannot die, although he can be hurt.  He becomes very influential and wealthy but also corrupt over the illusion that he is all-powerful.  The point-of-view of the story then shifts to an outsider victimized by Tom’s schemes (family cheated or reduced to financial ruin).  The outsider we see is very innocent in nearly every way, trying to negotiate at first with Tom to no effect.  Tom’s schemes get worse and worse, causing the outsider to lose loved ones, to which the outsider snaps and sets out for revenge.  The outsider eventually tries to kill Tom, cornering Tom alone in his office.  Tom laughs it off, thinking he cannot die.  The outsider impales Tom with a knife, thinking Tom is fatally wounded.  Tom collapses on the floor and begs the outsider to call an ambulence, claiming he is sorry for everything; the outsider regrets the act but claims Tom brought this on himself.  However, we see the outsider beginning to lose confidence and regret killing Tom.
     At this point, it appears that Tom has figured out how to move no matter how injured his body is.  Tom removes the knife from his chest, and still bleeding, he tries to kill the outsider, who panics.   Tom appears deranged as he pursues the outsider, and the outsider does everything to try and immobilize Tom.  Yet, Tom keeps pursuing the outsider no matter how injured he gets.  Tom nearly resembles a zombie at one point, in that he continues to move despite being heavily injured.  The outsider has clearly gone crazy and attacks Tom in more and more over-the-top fashions.  When Tom loses most of his limbs and the outsider continues to attack him, Tom begins to realize he isn’t invincible afterall, but it is too late and Tom loses his head after it is crushed, and his remains are disposed at a waste site never to be found.
     Yet, Tom is still conscious and even he doesn’t understand how.  He is still alive despite being virtually crushed to bits.  It takes him centuries to recover but he does eventually regenerate his entire body.  Over this agonizingly long period of time, he starts out loathing everyone else but eventually misses the old life he had towards the beginning of the story.  He starts regretting everything he’s done and all that’s happened to him.  Once he fully recovers, he essentially tries to start a new, virtuous life.

     The story could continue with him trying to avoid the temptations for power that he experienced in his past and the effects of him outliving all his friends and family.  However, maybe that can play in as a sequel or something - who knows? I think the story before that is interesting enough on its own. :P

Undo

November 6th, 2009 | Posted by pftq in Story Ideas

This is an idea that came to me for possibly a short video ad of some sort.  Promotes safer driving I guess, but really.. change the ending and it could promote a lot of things.

     Scroll through a series of scenes showing every day life.  Closer shots show they are actually running backwards.  Over time, we see that these are all mistakes that people make (spilling coffee, breaking tables, etc) that are fixed by going backwards in time.

     Eventually we come to the scene of a car accident with a car pinning a helpless victim to a tree.  The scene running backwards, however, does not solve the issue.  The car pulls away and the victim slides to the ground.  The car is intact - in fact, it’s brand new - but the person spends his life scarred.