Posts

command - How can I run outstanding migrations in laravel4? -

this problem. i have migration 2013_08_25_220444_create_modules_table.php within path : app/modules/user/migrations/ i have created custom artisan command: <?php use illuminate\console\command; use symfony\component\console\input\inputoption; use symfony\component\console\input\inputargument; class usersmodulecommand extends command { /** * console command name. * * @var string */ protected $name = 'users:install'; /** * console command description. * * @var string */ protected $description = 'instala el modulo de usuarios.'; /** * create new command instance. * * @return void */ public function __construct() { parent::__construct(); } /** * execute console command. * * @return void */ public function fire() { echo 'instalando migraciones de usuario...'.php_eol; $this->call('migrate', array('--path' => app_path() . '/modules/user/migrations')); echo 'done.'.php_eol; }...

Error: no receivers for action com.google.android.c2dm.intent.registration -

i using following code in manifest <receiver android:name="com.google.android.gcm.gcmbroadcastreceiver" android:permission="com.google.android.c2dm.permission.send" > <intent-filter> <action android:name="com.google.android.c2dm.intent.receive" /> <action android:name="com.google.android.c2dm.intent.registration" /> <category android:name="com.moosejawford.activities" /> </intent-filter> </receiver> <service android:name=".gcmintentservice" /> it worked before, today getting error, did google changed anything. please me in solving issue. have not found correct answers in google.i likes know why happening this. error report: 08-26 11:30:18.031: e/androidruntime(32283): @ android.app.activitythread.performlaunchactivity(activitythread.java:2180) 08-26 11:30:18.031: e/androidruntime(32283): @ android.app.ac...

jquery - Validation for select box -

i doing form validation using jquery. not getting how validate select list menu. could please me out this. here code , fiddle $.validator.setdefaults({ submithandler: function() { alert("submitted!"); } }); $().ready(function() { // validate comment form when submitted $("#commentform").validate(); // validate signup form on keyup , submit $("#signupform").validate({ rules: { firstname: "required", lastname: "required", email: { required: true, email: true }, topic: { required: "#newsletter:checked", minlength: 2 }, agree: "required" }, messages: { firstname: "please enter firstname", lastname: "please enter lastname", username: { requ...

java - ON/OFF flip button in Swing -

i wish create button same this (from ios5) . in swing, there jtogglebutton can have 2 status. however, if want button of same shape , same visual effect, should implement it.

Why do I get [...] when I append a list to the same list in python? -

the following code tried in python 2.7.1 interpreter. >>> = [1, 2, 3] >>> a.append(a) >>> [1, 2, 3, [...]] >>> == a[-1] true >>> print a[-1] [1, 2, 3, [...]] can please explain python trying here? you have created infinite nested list inside list. can not represented, [...] appears. take @ happens if try print each value: >>> item in a: ... print item ... 1 2 3 [1, 2, 3, [...]] # whole list iterated on :) refer here further reading.

ios - Jump to View Controller after Login using Facebook SDK -

- (void)viewdidload { delegate = (appdelegate*)[[uiapplication sharedapplication]delegate]; birthdaylist=[[birthdaylist alloc]initwithnibname:@"birthdaylist" bundle:nil]; spinner=[[uiactivityindicatorview alloc]initwithactivityindicatorstyle:uiactivityindicatorviewstylegray]; spinner.alpha=1.0; spinner.center=cgpointmake(130, 150); [spinner sethidden:yes]; uibutton *pickfriendsbutton=[[uibutton alloc]init]; [pickfriendsbutton setframe:(cgrectmake(100, 200, 150, 33))]; [pickfriendsbutton setbackgroundimage:[uiimage imagenamed:@"share_bg.png"] forstate:uicontrolstatenormal]; [pickfriendsbutton settitle:@"pick friends" forstate:uicontrolstatenormal]; [pickfriendsbutton settitlecolor:[uicolor whitecolor] forstate:uicontrolstatenormal]; [pickfriendsbutton.titlelabel setfont:[uifont fontwithname:@"politica" size:15]]; [pickfriendsbutton addtarget:self action:@selector(pickfriends:) forcontro...

ubuntu 12.04 - Vagrant Apache2 http/https port forwarding -

i using vagrant manage ubuntu instance testing web application. having trouble setting login page on https. application using apache2+php5+mysql. have setup port forwarding sth access application host machine . config.vm.network :forwarded_port, guest: 80, host: 8080 when try access guest using http://localhost:8080 , redirect https://localhost:8080 seams reasonable ,but 8080 port forwarded http:80 guest port not https:43. url https://localhost:8080 half true half lie . don't know how forward https port guest https port wonder happen of https://localhost:8080 redirect since not valid url should ( think ) sth https://localhost:4343 , if https:4343 forwarded guest:43. application not aware of ports , changes http https (forgive me gibberish ) how setup vagrant network setting access guest apache http:80 , https:43 ports. can assigned static ip guest instance , use pleasantly . regards using: vagrant version 1.1.5 ubuntu precise64.box for use cas...