Posts by Tiago Martins Peres 李大仁 • 236 points
8 posts
-
1
votes1
answer34
viewsA: Laravel int to 32-bit binary (and vice versa)
According to apokryphos What you’re seeing is the number being encoded in base 8, because you’re prefixing it with a 0 (followed by more 0s) which makes 010 base 8 == 8 base 10. In PHP to indicate…
-
0
votes1
answer34
viewsQ: Laravel int to 32-bit binary (and vice versa)
In an attempt to create a column with binary 32-bit numbers /** * Run the migrations. * * @return void */ public function up() { Schema::create('teams', function (Blueprint $table) {…
-
0
votes1
answer33
viewsA: Selection-based field options update with Laravel
On the controller instead of $data = view('rooms.ajax-select',$campusorganizations)->render(); you should name the variable this way $data =…
-
-2
votes1
answer33
viewsQ: Selection-based field options update with Laravel
From of this article I found an interesting way to create dynamic checkboxes. I was able to adapt it to my case by adding to/web.php routes Route::post('select-ajax',…
-
4
votes1
answer76
viewsQ: Creation of objects in Javascript
Let’s say we want to create an object called Retângulo (if desired, with properties such as length, width, perimeter and area). As shown in the next diagram (created based on the information present…
-
5
votes2
answers237
viewsQ: Access Javascript properties: point notation or square brackets?
Let’s say we have an object called rectangulo and a property called area. We can access this property in the following ways: Point notation: rectangulo.area. Bracket notation: rectangulo['area']. I…
-
0
votes1
answer192
viewsA: AJAX request works on all browsers except Firefox
Use the following code, where I edited "method" for "type": $.ajax({ type: "POST", url: "url.php", data: dados, success: function(data){ $("#mensagem").append(data); } });…
-
-2
votes1
answer345
viewsA: Installing Django with Python3
Daniel on my Github I share the procedures for doing this setup. I suggest that you use virtual environments for development because it allows you to use different versions of Django on the same…