Posts by AlfredBaudisch • 991 points
22 posts
-
2
votes1
answer50
viewsA: Protect script with user data?
No Authentication - Quick Fix The user id can be a UUID, which is an identifier with almost zero chances of being duplicated or guessed manually. Equivalent to the odds of Creating a few tens of…
-
3
votes1
answer246
viewsA: What kind of conversion does the pre-compiler of a DBMS with the SQL language?
Postgresql describes the internal process in the documentation, in the chapter 47 - Internal Process Overview. Practical information can be found on Official Postgresql Wiki. The source code parser…
-
5
votes1
answer150
viewsA: error here in my script to make the character give respawn (load.level)
You need to add to Scene level1 at Build Settings, so the game knows about it. When you call Loadlevel, Unity doesn’t know that the level1 file is a part of the game. "But Sam’s in the game folder".…
-
8
votes3
answers660
viewsA: LINQ corresponding to SQL with clause LIKE 'XXX%'
You can use Endswith (only names that end with Maria) or Startswith (starting with Maria). var filtrados = usuarios.Where(c => c.Nome.EndsWith("Maria")) .OrderBy(c => c.Nome) .ToList();…
-
1
votes1
answer1100
viewsA: How can I generate a delay while running an application in Unity?
For asynchronous execution as well as delay, there are Co-routines in Unity: using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Start() { print("Iniciando…
-
3
votes2
answers253
viewsA: Display different objects with equal groups
1) To get the result you expect purely with SQL, you can use UNION. However, this option does not work if you increase the number of objects. It responds to your need with 2 objects: SELECT grupo,…
-
2
votes1
answer182
viewsA: Upload. mp3 file to PHP server in Objective-C
Change the image encoding from the top: NSData *imageData = UIImageJPEGRepresentation(imgFoto.image, 90); For generic data, in this case audio: NSString *audioFilePath = @""; // caminho local de…
-
1
votes2
answers6461
viewsA: Error opening emulator in Android Studio
As the message says, you need to install the HAXM module. Open the SDK Manager Go to SDK Tools Check the HAXM Installer option. Go to the pointed folder on your Android SDK Location and run…
-
1
votes4
answers93
viewsA: Help with programming logic
The best way is to create a table to add the pieces of each order, and get them with a JOIN when calling the request. However, to stay within the scope of your problem, keeping everything in one…
phpanswered AlfredBaudisch 991 -
5
votes1
answer931
viewsA: Layout Template and Routes
1° - It is possible to create a Laravel Blade template using HTML/JS/CSS only? Yes, there are several libraries for this, but the most famous, and most complete is Handlebars.js:…
-
3
votes1
answer344
viewsA: Add values from an Inner Join to 2 variables
Give an alias (nickname) to your columns using AS. This is not PHP, but standard SQL. See more: http://www.w3schools.com/sql/sql_alias.asp SELECT tt.ds_nome AS ds_nome1, tti.ds_nome AS ds_nome2 FROM…
-
1
votes1
answer91
viewsA: How to perform the Submit of a form with Onsenui and Angularjs?
Onsenui doesn’t have a Ubmit button, but you can mask that: Add a name to your form: <form action="@Url.Action("Login", "Account")" method="post" id="loginForm" class="login-form"…
-
1
votes1
answer1194
viewsA: Create Mysql Trigger increment/decrement attribute
You can use this pair of TRIGGERS: CREATE TRIGGER `count_apps_insert` AFTER INSERT ON `app_category` FOR EACH ROW UPDATE category SET total_apps = total_apps + 1 WHERE id_category =…
-
2
votes3
answers775
viewsA: Is it possible to mount a server that works from my computer?
It is possible yes, but not recommended for obvious reasons: 24h operation, security, stability, guarantee and quality of connection, performance, energy, etc. Nowadays it is so cheap a lodging or a…
-
4
votes1
answer1892
viewsA: write json file to database
Not only can it, it’s a common and recommended practice for this type of situation. In addition, saved data can be used by any language and framework, since JSON is universally understood. For…
-
4
votes1
answer787
viewsA: pass a JQUERY value to window.open() function
Since you want to attach the value in the URL, which is just a string, do a simple concatenation: var url = 'http://www.exemplo.com?n=' + key; window.open(url) The part of the url to pass parameters…
jqueryanswered AlfredBaudisch 991 -
1
votes1
answer117
viewsA: Problems cloning a checkbox (bootstrap plugin)
When you use Bootstrap and other components that transform HTML inputs, they modify your DOM by adding several other elements. With Bootstrap Switch you no longer only have a checkbox, you have Divs…
-
2
votes1
answer42
viewsA: Append Infinite arrays returned from PHP to AJAX
The name couldn’t be more inviting: jQuery.append. // Como você utilizará #resultados infinitas vezes, // coloque-o em cache, assim a busca no DOM ocorre apenas uma vez var $resultados =…
-
4
votes1
answer5409
viewsA: How to save data coming from the facebook SDK login in the database?
Since you are using PHP, why not use PHP Facebook SDK? It will become much easier to get and save user data as you just want it. When the person clicks on the button you put in to login with…
-
1
votes1
answer39
viewsA: Sending a photo with public privacy
The privacy level (SDK Android) is set when the user authorizes your app with write permission and cannot be changed by your app. When you request permission to write, you can set the desired…
-
3
votes3
answers115
viewsA: Multiple callbacks with Javascript
Your code does not show full details of what you wrote after that snippet of code, but the FB.api calls are not synchronous, so when you call console.log, communication with the Facebook API is…
-
3
votes2
answers301
viewsA: Doubt regarding permanent links to posts
What you are trying to do is called "slugify", which is to create a Slug, as a unique identifier for a resource (the post, in this case). A good example is the URL for your question here in…