Posts by brunoelyg • 585 points
27 posts
-
2
votes2
answers163
viewsA: Is there a way to "link" specific content from one repository to another?
I think there’s a way to do what you’re thinking, which is to link a module from another project to your. Navigate to finish to your project directory and type: git submodule add…
-
1
votes1
answer72
viewsA: Atomic Types in C language
There’s a big difference between types primitive and types atomic. Atomic types are free of data breeds and can be modified and/or accessed by two different threads. An atomic data is widely used…
-
0
votes2
answers100
viewsA: Error missing commit in git
The commit actually happened! In this case, there were 20 modified files and more than 970 inserts. Now just give one git push to send modifications to the server.
-
1
votes1
answer12
viewsA: Grab all the product tables and move in just one
You can do this using the command JOIN in SQL as shown in the example: https://www.w3schools.com/sql/sql_join.asp And, if you want to do the same, using PHP, just run a query sql (the Join, in case)…
-
-1
votes2
answers8846
viewsA: Syntaxerror: unindent does not match any Outer indentation level
Indentation error, python for not having keys, is a sensitive language when declaring conditional, functions, among others. So the right way would be: escada = "Sim" if (escada): print("Subir na…
-
1
votes1
answer311
viewsA: Twitter data with python
In this case, the error occurs because you are making a request without having the library requests installed, if you use python3, type this command in the terminal: sudo pip3 install requests…
-
0
votes4
answers13845
viewsA: How to install the Pandas library in Python 3
Every time I use pip3 install pandas should give permission, that is, always use as: sudo pip3 install pandas
-
1
votes2
answers94
viewsA: How to organize multi-level MVC application
To get away from (if/elses) unnecessary by the controller, I’d rather do the way you quoted: view/user_normal view/user_differentiated It’s a matter of good code practice, but in this case, it’s…
-
0
votes2
answers153
viewsA: Doubt about code in C
A tip for you to solve this problem is to determine a variable for unit and price. Example: float quantidade = 0; float preco = 0; So, You take the product code, check the price of the product and…
-
1
votes3
answers3589
viewsQ: How to pick a word within a string (phrase) in Node.JS
I have a doubt, have a string: var frase = "Ola, bruno"; I need to take what is written down to the comma and then take what is written after the comma, for example: var ABC = "Ola"; var EFG =…
-
2
votes1
answer432
viewsQ: How to make paging inside a modal in bootstrap?
I have a modal in bootstrap that opens at the click of a button, inside this modal I want to display 2 contents: 1 form and 1 paragraph. However, I would like to paginate that within the modal, 1…
-
2
votes1
answer426
viewsA: Is php not good for real-time applications?
Yes, you can use PHP to make real-time applications, you can use the http://socketo.me/ which is PHP library for such a function. However, PHP is not a user friendly language with this type of…
-
0
votes2
answers12186
viewsQ: How to send a json via post with PHP?
Good people, need to post a json to an API (URL: https://www.bitcointoyou.com/Payments/) and read what to return? How can I do? I thought of something with Curl. Grateful…
-
0
votes1
answer433
viewsQ: How to get specific information inside a Json with PHP?
I have this code that returns a JSON $json_file = file_get_contents("https://api.blinktrade.com/api/v1/BRL/ticker? crypto_currency=BTC"); $json_str = json_decode($json_file, true);…
-
3
votes2
answers675
views -
0
votes1
answer36
viewsA: Debug PHP’s script
If you insert this excerpt into your code ini_set('display_errors',1); ini_set('display_startup_erros',1); error_reporting(E_ALL); PHP is forced to show system errors, then you can do the analysis.…
-
2
votes1
answer582
views -
0
votes1
answer437
viewsQ: Confirmation of sharing facebook with web API
I have a php code with a facebook button, when clicking the person shares the content, however, on my site has a counter (regressive), every time someone shares, takes 1 of the counter. The button…
-
3
votes1
answer851
viewsQ: How to pick up a specific piece of information within a Json with Node.JS?
{ "pair": "BTCBRL", "bids": [ [2257.89, 0.20752212, 90852987], [2257.88, 1.01201126, 90800395], [2249.98, 0.05052466, 90806289] ], "asks": [ [2272.14, 2.3648572, 90803493], [2279.63, 0.08722052,…
-
9
votes5
answers4393
viewsQ: Transforming a JSON information into a variable
I am calling a function in Node.js and it returns a JSON: { "pair": "BTCBRL", "last": 2280.0, "high": 2306.0, "low": 2205.0, "vol": 113.17267938, "vol_brl": 255658.20705113, "buy": 2263.0, "sell":…
-
0
votes1
answer157
viewsQ: Incremental number in PHP
I have a system that emits an XML. It was done in PHP. XML has a tag which is a random number, but has to be incremental. I mean, in the tag has the number 1000. The next tag has to have the number…
-
9
votes2
answers15933
views -
-2
votes4
answers1152
viewsA: How to transform a string into an object?
The proper thing would be for you to do it this way: $ExpressaoObj->new Expressao(); It’s just that your code is very confused and wrong!
-
-1
votes1
answer559
viewsA: Error 403 - Password validation forbidden access with Mysql in PHP7 code, how to fix?
It could be an error in PHP version, switch to version 5.6 and try to run... But look, I don’t advise you to stay studying old technologies, try to study php7.
-
-2
votes5
answers1534
viewsA: Ionic 2 - Status Bar
Exchange the true for false that will work!
-
0
votes2
answers112
viewsA: Does the back-end language change the way an application is developed?
A tip for you, try using languages that you can work with object orientation. Working with Delphi will give you a headache when it comes to maintenance. Regarding ajax with post and get returning a…
-
1
votes1
answer80
viewsA: Multiple Mysql Banks?
Well, I think you better use several databases, to separate information from each store, in case your system is a "shopping". That is, bank 1 to store 1, bank 2 to store 2 and so on. However if it…