first off thanks pablo and pimppapy for the monies. as everyone knows tan runs out of money at xmas, so now it's janurary thanks to these guys.

so the reason for this fourm is to say that i was gonna make the lotto thing, but i can't be arsed so much that i've been putting it off like mad. so anyway i've put a pin in that for the time being, i'll do it later.
so for now im starting work on the mobile site, dunno how long it'll take, prob not too long, so you's can look forward to that. also there's going to be a server upgrade some time soonish (within a month or so) that will mean downtime for a day or so. just a heads up.
so yeah mobile site is coming, if you have any requests for it or design ideas etc holla at me.
[/quote]
just find a free IRC chat program and enter #thisaintnews as your chat room.
doophus. thems be fightin' werds btw
just find a free IRC chat program and enter #thisaintnews as your chat room.
doophus. thems be fightin' werds btw
[/quote]
AndroIRC works fine for me.
AndroIRC works fine for me.
I don't see it. I already put my bet money in advance to TAN. Win or lose. I'm overdue anyways.
btw. biggles. I was thinking adding something to your lotto thing. 2nd and 3rd place get TAN caps from me. except here's the catch. we're going to have to work something out on the shipping. whatever the post office charges exactly (no handling charge or hidden fee etc. I'll provide receipts) or If i can secure an even cheaper method. The Flexfit hat, embroidery, labor, handling all on me.
2nd place gets an TAN hat with custom message or logo the rear of the cap.
3rd just a plain TAN hat.
I don't see it. I already put my bet money in advance to TAN. Win or lose. I'm overdue anyways.
btw. biggles. I was thinking adding something to your lotto thing. 2nd and 3rd place get TAN caps from me. except here's the catch. we're going to have to work something out on the shipping. whatever the post office charges exactly (no handling charge or hidden fee etc. I'll provide receipts) or If i can secure an even cheaper method. The Flexfit hat, embroidery, labor, handling all on me.
2nd place gets an TAN hat with custom message or logo the rear of the cap.
3rd just a plain TAN hat.
Good shit on the mobile version.
Good shit on the mobile version.
[/quote]
You dont know how to install a mobile app? sheesh. End users in this decade, I swear are just getting noobier each passing year
You dont know how to install a mobile app? sheesh. End users in this decade, I swear are just getting noobier each passing year
You dont know how to install a mobile app? sheesh. End users in this decade, I swear are just getting noobier each passing year
[/quote]
the only reason i got this fancy phone was so when i'm out working i don't need to bring my computer with me to check my email, and watch movies and shit..........its far fancier than i deserve, but it was free with my contract so i just pulled the trigger.......its not like there's a pre-requisite for purchasing new technology lol
You dont know how to install a mobile app? sheesh. End users in this decade, I swear are just getting noobier each passing year
the only reason i got this fancy phone was so when i'm out working i don't need to bring my computer with me to check my email, and watch movies and shit..........its far fancier than i deserve, but it was free with my contract so i just pulled the trigger.......its not like there's a pre-requisite for purchasing new technology lol
I don't see it. I already put my bet money in advance to TAN. Win or lose. I'm overdue anyways.
btw. biggles. I was thinking adding something to your lotto thing. 2nd and 3rd place get TAN caps from me. except here's the catch. we're going to have to work something out on the shipping. whatever the post office charges exactly (no handling charge or hidden fee etc. I'll provide receipts) or If i can secure an even cheaper method. The Flexfit hat, embroidery, labor, handling all on me.
2nd place gets an TAN hat with custom message or logo the rear of the cap.
3rd just a plain TAN hat.
[/quote]
I was just waiting for you to accept it.......
Bet is posted.
I'll kick some greenbacks down soon......
I don't see it. I already put my bet money in advance to TAN. Win or lose. I'm overdue anyways.
btw. biggles. I was thinking adding something to your lotto thing. 2nd and 3rd place get TAN caps from me. except here's the catch. we're going to have to work something out on the shipping. whatever the post office charges exactly (no handling charge or hidden fee etc. I'll provide receipts) or If i can secure an even cheaper method. The Flexfit hat, embroidery, labor, handling all on me.
2nd place gets an TAN hat with custom message or logo the rear of the cap.
3rd just a plain TAN hat.
I was just waiting for you to accept it.......
Bet is posted.
I'll kick some greenbacks down soon......
its not like there's a pre-requisite for purchasing new technology lol
[/quote]
There should be, because....
its not like there's a pre-requisite for purchasing new technology lol
There should be, because....
[/quote]
dunno, but tan bets are never good news lol
dunno, but tan bets are never good news lol
[/quote]
i donated 50 bucks to tan, ain't not giving no more than that
i donated 50 bucks to tan, ain't not giving no more than that
I did this:
and the opposite on the mobile version of the site (which is just basically a folder to direct to that includes the same shit, different template) when desktop is detected which will redirect away from the mobile version to the desktop version.
I did this:
and the opposite on the mobile version of the site (which is just basically a folder to direct to that includes the same shit, different template) when desktop is detected which will redirect away from the mobile version to the desktop version.
here's some background music
[video]https://www.youtube.com/watch?v=1cYQV62WhkM[/video]
every page load runs cache_check which checks if a user gets a cached page or not, in this sub i check if the user has a mobile cookie, if not then run detect_mobile.
in cache_key, which generates the cache key of a page append if the user is a mobile or not, so there's seperate cached pages for mobile and none mobile users.
crafted a $c->mobile function that checks if a user is a mobile user and if a page can be mobile by checking an attribute in the controller
overwrote view->proccess so that if a user is a mobile user on a mobile page then they get the mobile theme
mobile detection stuff is stolen code that i wrote back when i worked at the MEN.
#### cacheing shit sub check_cache{ my $c = shift; if ( !$c->req->cookie('mobile') ){ $c->forward('/mobile/detect_mobile'); } #edited } __PACKAGE__->config( name => 'TAN', 'Plugin::PageCache' => { 'cache_hook' => 'check_cache', 'disable_index' => 0, 'key_maker' => sub { my $c = shift; my $path = $c->req->path || 'index'; return "/${path}" . $c->nsfw . $c->mobile; }, 'no_expire' => 0, } ); #### user is a mobile user on a mobile page sub mobile{ my ( $c ) = @_; my $action = $c->action; my $mobile_allowed; if ( $c->controller( $action->namespace )->can('_mobile') ){ $mobile_allowed = $c->controller( $action->namespace )->_mobile->{ $action->name }; } if ( !$mobile_allowed ){ return 0; } my $mobile_user = $c->stash->{'mobile_switch'} || ( $c->req->cookie('mobile') && $c->req->cookie('mobile')->value == 1 ); return $mobile_user; } #### controller example package TAN::Controller::Index; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } #this is the atribute has '_mobile' => ( 'is' => 'ro', 'isa' => 'HashRef', 'default' => sub{ return {'index' => 1}; }, ); sub index :Path Args(2) { #edited } __PACKAGE__->meta->make_immutable; #### end controller #### view stuff sub process{ my ( $self, $c ) = @_; #set this here and not in config so we can use correct theme $self->include_path( [ $c->path_to( 'root', 'templates', 'shared' ), $c->path_to( 'root', 'templates', $c->stash->{'theme_settings'}->{'name'} ), ] ); $self->next::method( $c ); } #### mobile detection package TAN::Controller::Mobile; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } my @mobile_uas = ( "midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem","sony", "alcatel", "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\\d\\d\\di", "moto" ); my @patterns = map {qr/$_/i} @mobile_uas; my $r2 = qr/(iPad|MSIE(?!.*(IEMobile|Windows\ CE|symbian|smartphone)\b))/i; sub detect_mobile: Private{ my( $self, $c ) = @_; my $ua = $c->req->user_agent; #return if this has already ran return if ( defined( $c->stash->{'mobile_switch'} ) ); #set this so set_mobile doesn't redirect us anywhere $c->stash->{'mobile_return'} = 1; if ( defined($ua) && $ua !~ /$r2/ ) { foreach my $pattern (@patterns) { if ($ua =~ /$pattern/) { $c->forward('set_mobile', [1]); return; } } } $c->forward('set_mobile', [0]); return; } sub set_mobile: Local{ my( $self, $c, $value) = @_; if ( defined($value) ) { #if we have a value, set the cookie to this value $c->res->cookies->{'mobile'} = {value => $value}; $c->stash->{'mobile_switch'} = $value; } else { #else force mobile cookie $c->res->cookies->{'mobile'} = {value => 1}; $c->stash->{'mobile_switch'} = 1; } # if we're called from detect_mobile return here if ( defined($c->stash->{'mobile_return'}) ){ # if you come direct to this sub with no cookies # then mobile_return is still in the stash from the detection (ran in auto) # and you end up on this page with a no template found error # lets unset this here $c->stash->{'mobile_return'} = undef; return; } my $redirect_to = $c->req->referer || '/'; $c->res->redirect($redirect_to); $c->detach(); } __PACKAGE__->meta->make_immutable;here's some background music
every page load runs cache_check which checks if a user gets a cached page or not, in this sub i check if the user has a mobile cookie, if not then run detect_mobile.
in cache_key, which generates the cache key of a page append if the user is a mobile or not, so there's seperate cached pages for mobile and none mobile users.
crafted a $c->mobile function that checks if a user is a mobile user and if a page can be mobile by checking an attribute in the controller
overwrote view->proccess so that if a user is a mobile user on a mobile page then they get the mobile theme
mobile detection stuff is stolen code that i wrote back when i worked at the MEN.
#### cacheing shit sub check_cache{ my $c = shift; if ( !$c->req->cookie('mobile') ){ $c->forward('/mobile/detect_mobile'); } #edited } __PACKAGE__->config( name => 'TAN', 'Plugin::PageCache' => { 'cache_hook' => 'check_cache', 'disable_index' => 0, 'key_maker' => sub { my $c = shift; my $path = $c->req->path || 'index'; return "/${path}" . $c->nsfw . $c->mobile; }, 'no_expire' => 0, } ); #### user is a mobile user on a mobile page sub mobile{ my ( $c ) = @_; my $action = $c->action; my $mobile_allowed; if ( $c->controller( $action->namespace )->can('_mobile') ){ $mobile_allowed = $c->controller( $action->namespace )->_mobile->{ $action->name }; } if ( !$mobile_allowed ){ return 0; } my $mobile_user = $c->stash->{'mobile_switch'} || ( $c->req->cookie('mobile') && $c->req->cookie('mobile')->value == 1 ); return $mobile_user; } #### controller example package TAN::Controller::Index; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } #this is the atribute has '_mobile' => ( 'is' => 'ro', 'isa' => 'HashRef', 'default' => sub{ return {'index' => 1}; }, ); sub index :Path Args(2) { #edited } __PACKAGE__->meta->make_immutable; #### end controller #### view stuff sub process{ my ( $self, $c ) = @_; #set this here and not in config so we can use correct theme $self->include_path( [ $c->path_to( 'root', 'templates', 'shared' ), $c->path_to( 'root', 'templates', $c->stash->{'theme_settings'}->{'name'} ), ] ); $self->next::method( $c ); } #### mobile detection package TAN::Controller::Mobile; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } my @mobile_uas = ( "midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem","sony", "alcatel", "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\\d\\d\\di", "moto" ); my @patterns = map {qr/$_/i} @mobile_uas; my $r2 = qr/(iPad|MSIE(?!.*(IEMobile|Windows\ CE|symbian|smartphone)\b))/i; sub detect_mobile: Private{ my( $self, $c ) = @_; my $ua = $c->req->user_agent; #return if this has already ran return if ( defined( $c->stash->{'mobile_switch'} ) ); #set this so set_mobile doesn't redirect us anywhere $c->stash->{'mobile_return'} = 1; if ( defined($ua) && $ua !~ /$r2/ ) { foreach my $pattern (@patterns) { if ($ua =~ /$pattern/) { $c->forward('set_mobile', [1]); return; } } } $c->forward('set_mobile', [0]); return; } sub set_mobile: Local{ my( $self, $c, $value) = @_; if ( defined($value) ) { #if we have a value, set the cookie to this value $c->res->cookies->{'mobile'} = {value => $value}; $c->stash->{'mobile_switch'} = $value; } else { #else force mobile cookie $c->res->cookies->{'mobile'} = {value => 1}; $c->stash->{'mobile_switch'} = 1; } # if we're called from detect_mobile return here if ( defined($c->stash->{'mobile_return'}) ){ # if you come direct to this sub with no cookies # then mobile_return is still in the stash from the detection (ran in auto) # and you end up on this page with a no template found error # lets unset this here $c->stash->{'mobile_return'} = undef; return; } my $redirect_to = $c->req->referer || '/'; $c->res->redirect($redirect_to); $c->detach(); } __PACKAGE__->meta->make_immutable;[/quote]
safe as fuck. i think there's loads of money now, i'll check
safe as fuck. i think there's loads of money now, i'll check
[/quote]
safe, there's 94.73gbp in the bank, plus another 50gbp from me and a massive 7.73usd from the ads. so we should be good till april.
safe, there's 94.73gbp in the bank, plus another 50gbp from me and a massive 7.73usd from the ads. so we should be good till april.