Uncategorized

Back to homepage

Mac stop responding after log in

Today i made in update for my apple macbook pro retina. After reboot, I entered the passoword and the macbook stoped answering. It was like in a loop. The fix was to delete a file: enter in restore mode –

Read More

SQL change part of a string

  UPDATE Table_Name SET Column_Name = REPLACE(Column_Name, ‘Text_To_Be_Replaced’, ‘New_Text’) WHERE Column_Name LIKE ‘%Text_To_Be_Replaced%’

Read More

Create a shortcut key to submit a form

I want to create a shortcut key(ctrl+s) to submit the form:   so i have the form: <form action=”action_page.php” id=”editForm”> <fieldset> <legend>Personal information:</legend> First name:<br> <input type=”text” name=”firstname” value=”Mickey”><br> Last name:<br> <input type=”text” name=”lastname” value=”Mouse”><br><br> <input type=”submit” value=”Submit”> </fieldset> </form>

Read More

Disable autofocus input

$(function(){ $(‘input’).blur(); });

Read More

Create a controller with populated with all the functions a

#php artisan make:controller FlyersController –resource the result is that you will have a controller with all the functions created: <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Http\Requests; class FlyersController extends Controller { /** * Display a listing of the resource. *

Read More