Posts by saidmrn • 543 points
24 posts
-
2
votes3
answers6001
viewsQ: Regex returns False when validating card
I’m trying to validate a car plate in the format : ABC1234 3 letters and 4 numbers. let regex = new RegExp("/[a-zA-Z]{3}[0-9]{4}/"); let isvalid = regex.test('abc1234'); When I put it on other…
-
-1
votes1
answer63
viewsA: With what web language could I develop something similar to this image?
To make a system like this you will need: PHP: Will be used to store user options in a data and generate price calculation based on which options he chose CSS: to style the page according to its…
-
2
votes1
answer513
viewsQ: Grouping Data Preferably-MYSQL
I’m trying to group equal lines, but based on a value. I know it’s possible through a sub-query, but how I’m using inner join I couldn’t apply. SELECT * FROM Concessionarias C inner join…
-
3
votes1
answer137
viewsQ: Protect the server from "false requests"
I’m having second thoughts about security. When I want to add date or receive, I make an HTTP POST or GET request to my server, which returns the JSON response. Assuming it is an application that…
-
1
votes1
answer235
viewsA: How to receive notifications within an Activity
First you have to go in your Androidmanifest.xml and add an action to your Activity. Example: <activity android:name=".ActivityPrincipal"> <intent-filter> <action…
-
2
votes2
answers604
viewsQ: How does firebase work for sending notifications?
This question is not about codes but understanding the functioning of firebase. I want to build a system that notifies the user in an Android app through a PHP web service. For what I researched,…
-
1
votes1
answer40
viewsA: Return "Alert" if an IF is not executed
if ($newtime!=0) { $qryupd = "update registration set dados=" . $dadosnew . " where id=$id"; $result2 = mysqli_query($db, $qryupd); if (!$result2) { rollback(); echo…
-
1
votes1
answer42
viewsA: Android Webservice Error while using Android 4.2
I managed to solve. I switched from the GET method to the POST method public JSONObject performPostCall(String requestURL,String parametro) throws JSONException { URL url; String response = ""; try…
-
0
votes1
answer42
viewsQ: Android Webservice Error while using Android 4.2
Hello ,I am developing a project where I need to pick up and send values to a server. I did everything and worked perfectly in the version 7.0 of android, but when going to 4.2,begins to give error.…
-
4
votes1
answer361
viewsQ: Change button color at runtime
I asked for help on how to paint a button with 3 different colors: You can put 3 colors on a button? But I’m trying to change his color at runtime and I can’t. Even instantiating a new and…
-
8
votes1
answer176
viewsQ: Is it possible to put 3 colors on a button?
I need to divide the button into 3 "equal pieces" and each piece has a different color. For example, a button with the colors Blue, Green and Red, each occupying 33.3% space. How to do this?…
-
-1
votes2
answers299
viewsQ: Exercise in C returns wrong value
I am trying to do an exercise in C that does not generate any syntax error,I have searched and can not find the error,it simply reads or returns the wrong values. #include <stdio.h> #include…
-
1
votes1
answer201
viewsA: How to implement my java program to be Multithread?
I tested your code, String host = args[0]; To: String host ="localhost"; Console: Conectado a localhost na porta4444 EchoServer > Digite 'sair' para desconectar Message > oi servidor…
-
0
votes2
answers77
viewsA: Framework Laravel
Go to the file containing the routes: application/Routes.php and set the controller to redirect to your view Route::get('/', function() { // controller para seu template });…
-
0
votes2
answers93
viewsA: Problem with Asynctask
I think the problem must be here: protected Meteo doInBackground(Meteo... params) { Meteo meteo = new Meteo(); String weather = "UNDEFINED"; try { URL url = new URL(params[0]); the right one should…
-
0
votes1
answer62
viewsQ: Method being called several times
I have a little problem. The method of adding Message is being called several times and keeps adding messages until the app is closed.I have no idea what’s causing this,! Fragment containing the…
-
1
votes1
answer57
viewsQ: Doubt About Socket logic
I have a question regarding identifying socket. Let’s assume I have 2 "socket types", a customer and an attendant. Where the 2 chat is done, I can have several clients and several attendants, but my…
-
0
votes1
answer1110
viewsQ: Div Fill blank space
Hello, I need a help to line up div. As you can see in the image: The div does not occupy this blank space, but wanted it to occupy this space,. The tables are distributed this way: Thank you in…
-
1
votes2
answers136
viewsQ: How to generate a unique code for each device?
I need to do a draw and for that a unique code has to be generated for each device. Even uninstalling and reinstalling the app, the generated code has to be always the same. How to solve this?…
-
1
votes1
answer101
viewsQ: Icon gets small in notification
I have a simple notification, but the icon does not fill the whole part. I generated it through Android Asset and put each resolution in its respective folder in mipmap. Notification Android 4.1…
-
0
votes1
answer541
viewsQ: Broadcastreceiver gives error with BOOT_COMPLETED
I need to update every 1h the information and I’m using a BroadCastReceiver. If the user opens the APP, it works properly doing everything every 1h. But I need it to do with the phone boot and not…
-
1
votes1
answer4431
viewsQ: Add text under images using table
I’m using a table to align images and text. However, when the resolution is low, it gets very unpleasant and I wanted to put the text down in low resolutions. How to do this, being within a table?…
-
2
votes2
answers115
viewsQ: Security MYSQL Android
I’m doing a login system. But I’m in doubt: I connect to the database through PHP? I mean I would just open the link and the Server would execute the procedure? or do it directly from the app via…
-
0
votes1
answer708
viewsQ: Subtract MYSQL Dates
I want to delete from the table users with the same name, but only those that the difference of the database date and the current date (at the time of select) are for example, less than 5 minutes.…