Posts by PululuK • 1,110 points
48 posts
-
0
votes3
answers379
viewsA: How to take a value among many keys, but ignoring the keys, except the most internal?
A quick fix could be : ({[^{}]+}) Capture all that lies between {} except { or }. I grouped the result, maybe you need to reuse the captured data. https://regex101.com/r/DRA2bD/2/…
-
3
votes2
answers410
viewsQ: How to validate the structure of a text file in PHP?
I created a space admin in which users deposit type files .txt in my FTP. I would like to impose a format. Example the whole file should contain two three columns separated by a dot and comma.…
-
0
votes1
answer403
viewsQ: Compare values of several arrays contained in a PHP array
<?php $productos = array( 'producto1' => array( 'preco'=> 25, 'quantidade' => 5 ), 'producto2' => array( 'preco'=> 20, 'quantidade' => 50 ), 'producto3' => array(…
-
-3
votes1
answer280
viewsQ: Music recognition API (php)
I am working on a mini project, and I would like to know if there is an API (php) that can receive a piece of music and return the title of the same. A concrete example is the site :…
-
1
votes1
answer138
viewsQ: Image Upload Does Not Work
I’m using cordova in order to pass my application WEB for Android. In my application Web upload images using basic HTML tags <ipnut type='file' >. when I install the application on Android can…
-
1
votes1
answer528
viewsQ: Possible to create an application with Angularjs without Nodejs?
I am interested in Angularjs, after having seen some examples of its use. I would like to explore this framework. In most of the tutorials I’m following it all starts with the installation of…
-
1
votes3
answers2919
viewsQ: Define multiple "id" in an HTML tag
HTML allows to define several class in a single goal. Interestingly I tried to do the same, trying to define several id in a tag : <div id="id1 id2 id3">Tester plusieurs id</div> Didn’t…
-
5
votes1
answer743
viewsQ: What is namespace really for?
I would like to understand the great need and usefulness of namespaces in MVC architecture. In what circumstances the use of namespaces becomes indispensable? Give an example of a specific case if…
-
1
votes1
answer129
viewsQ: Identify website pages with broken HTTPS padlock
I’m working on an e-commerce site and I noticed that some pages are padlocked https and I could fix them. But nothing guarantees me whether there are other pages with the same problem. There’s a…
-
2
votes0
answers74
viewsQ: What is the difference between PDO and Mysqli_?
I have been densevolving applications in PHP Mysql for a long time, and for norlamente I use the object PDO to connect with the base de dados and everything works perfectly. But today I decided to…
-
1
votes2
answers4724
viewsQ: search text in all files of a library
There is a way to search for a certain text in all files in a repertoire using editors such as : Dreamweaver sublime-text-2 or Notepad++ ?
-
2
votes3
answers937
viewsA: How to add a div or <p> inside a table
Consider the observations as simple span contained in the td of your table. Use the bleat br to break the line between data and observation : <td class="observacao">HUGO…
-
2
votes1
answer84
viewsA: Opening a full size Table
If you’re using the bootsrap 3maybe this will help : DEMO .modal-dialog { width: 100%; height: 100%; margin: 0; padding: 0; } .modal-content { height: auto; min-height: 100%; border-radius: 0; }…
-
1
votes3
answers133
viewsA: Update in database not working
SUGGESTION : First : The ID is an integer value ... Check if '$pegaid' return a character or an integer value here : "... WHERE ID = '$pegaid'". Second : Its connection to the BD is well made ?…
-
20
votes3
answers46967
viewsQ: What is the difference between col-lg-* , col-Md-* and col-Sm-* in Bootstrap?
It’s been a long time since I’ve used the Bootstrap I have worked with almost all versions. Normally to structure my applications I use the grid bootstrap, row to create lines and col- for columns.…
-
0
votes1
answer214
viewsQ: How to set toggleClass (jquery) speed?
I would like to define the animation speed of toggleClass but it didn’t work. I solved the problem with CSS: -webkit-transition: all .5s ease; transition: all .5s ease; But still, I’d like to know…
-
-1
votes1
answer227
viewsQ: Exchange the position of HTML Ivs
How the image shows. I have a div mother containing 5 div vertically aligned. How do I change the position of the last div contact positioning it between home and services without having to change…
-
0
votes0
answers244
viewsQ: Fix overlay of HTML elements?
I would like to add content to a platform block (how it shows red text capture). When adding an element by default it is at the end of the block ( below the image visa). I’d like my div to stay…
-
0
votes1
answer770
viewsQ: Store HTML code in the database?
I’m developing a script retrieving codes HTML from a form, and then store in the database. However I would like to store the code in the base as it was inserted into the form, with the tags, style,…
-
1
votes2
answers202
viewsQ: Change the position of a word in the text (Javascript)
I would like to change the position of a word inside a text using javascript. <form> <p> Este é o paragrafo, esta é <strong>palavra</strong> a ser movida </p>…
-
0
votes1
answer2181
viewsQ: Unable to find the wrapper "https" - Did you Forget to enable it when you configured PHP?
When launching a script PHP I had a nice surprise : Warning: file_get_contents(): Unable to find the wrapper "https" - Did you Forget to enable it when you configured PHP? Here’s an excerpt from my…
-
3
votes3
answers152
views -
1
votes1
answer108
views -
5
votes4
answers8175
viewsQ: What is the opposite of the "None display"?
Before I did some research on the properties of "display". I intend to hide some div and used display:None. To show off the div what ownership of display should wear ? (I am working with Javascript)…
-
2
votes1
answer92
viewsQ: How to make a "link format" (a system that reads the content of other Webs sites)?
I would like to integrate a system similar to Facebook for reading external links in my project. Like when posting a "www.un-site-any.com" link on my website would like to get a result like the…
-
3
votes3
answers998
viewsA: Responsive font according to text size
I tried to analyze your case using the javascript. You can adapt it according to your project using other languages if possible. First choose a limit to the size of song titles Restore the song…
-
3
votes2
answers106
viewsQ: Attribute href exclusively for goal <a></a>?
It is correct to put the attribute href in a mark other than a. Example: <ul> <li href="#page1">Page1</li> <li href="#page2">Page2</li> <li…
-
-1
votes2
answers2105
viewsA: How to recover all URL from any site?
After some research I found an alternative. I installed Xenu a free solution that allows you to recover all URL website and more. Another method would be the use of PHP using the Curl of the page !…
-
0
votes2
answers2105
viewsQ: How to recover all URL from any site?
I’m doing a specific densification, and I’d like to collect all the URL from any website. On my website for example I can do this using the google Analytics, to other sites I can’t because I don’t…
-
1
votes2
answers1809
viewsQ: How to create a fixed column (col-Md) in bootstrap?
I’d like to keep the left column fixed, and the right one mobile. There is a bootstrap class or another technique to solve this ? I tried it this way : <div class="row"> <div…
-
9
votes2
answers1142
viewsQ: Undefined index: PATH_INFO
I would like to recover the URL using $_SERVER['PATH_INFO'] and I had a nice surprise : Undefined index: PATH_INFO On the contrary, using the $_SERVER['REQUEST_URI'] everything works perfectly. What…
-
10
votes1
answer1465
viewsQ: What is "Extract" in PHP?
I was running a code analysis PHP, and in a script used Extract. I looked in some PHP documents and the examples are kind of abstract and unfortunately I didn’t notice much. I would like to know in…
-
1
votes1
answer63
viewsQ: How to make modification records in a Mysql Table (without using triggers )?
I wonder if there is another technique to make records of modifications in the tables without going through triggers ?
-
0
votes1
answer1652
viewsQ: How to create a Trigger for a specific column of a table?
I created a Trigger to my table X, with the purpose of making a record of update that run you in this table. For each update on the table X, modified (old) values are stored in the table Z.…
-
3
votes1
answer94
viewsQ: Compare performance of two PHP scripts
I worked on a script PHP, later I found it too complex and heavy and felt the need to simplify it. eliminated some unnecessary functions; simplified some parts of repeated code into functions; I…
-
0
votes1
answer655
viewsQ: How to verify if a Trigger exists or not before creating it?
I intend to create a Trigger in table but first I would like to check if it already exists in my base .... how do I do ? CREATE TRIGGER IF NOT EXISTS before_update_tableX ... ect…
-
0
votes2
answers1381
viewsQ: How to create a Rigger to save updates from two tables?
I have two tables : Tabela1 : three-column id_product, product name, product price; table 2 : four-column id_brand, id_product, tag, price_tag; I created a new Tabela3 : three-column id_product,…
-
2
votes2
answers3819
viewsQ: How to create "Banner" with css?
I’d like to produce a Banner similar to the photo using css. I tried using characters UTF-8 and the result was almost perfect, but I would like to do with css to avoid some problems of…
-
1
votes3
answers922
viewsQ: How to create a table (empty) from a selection of other tables?
EXAMPLE: I have two tables : Tabela1 : two-column id_product, product name; table 2 : three-column id_brand, id_product, tag I would like to create a Tabela3 from a selection of the Tabela1 and…
-
2
votes2
answers828
viewsQ: How to differentiate data from two tables with columns of equal names in an SQL request with JOIN?
I combined record of two tables using JOIN, the two tables have some columns with equal names... When extracting data with PHP how will I differentiate ? Example : foreach($dados as $values){ echo…
-
0
votes3
answers2196
viewsQ: Check that the values of an array are all the same PHP?
I would like to check that all values in my array are equal and I did so : $minha_lista = array('a','a','a'); if(!empty($minha_lista)) { if(count(array_unique($minha_lista))===1){ return true; }…
-
0
votes0
answers142
viewsQ: How to convert a date into a cron expression?
I am developing an application in PHP and Javascript to schedule some tasks. The user will have the possibility to configure from a graphical interface the date of execution of the task (with the…
-
0
votes1
answer362
viewsQ: How to schedule time-based tasks (Cron) using PHP ?
I am developing a module in the shop, and need to schedule some tasks based on time. For example : On day X perform the function Y of my module. Is there a way to interact with the prestashhop…
-
2
votes2
answers1027
viewsQ: How to activate 24 hours in Datapicker Bootstrap?
<script type="text/javascript"> $(function () { $('#datetimepicker1').datetimepicker({ format: 'YYYY-MM-DD hh:mm:ss', locale: 'fr, use24hours: true }); }); </script>…
-
0
votes0
answers102
viewsQ: M command "/usr/bin/nodejs" "/usr/bin/npm" "install" "Forever" "-g"
I tried to install a module and found some irregularities. I would like it to be precisely. I thought it was a conflict between directories /usr/bin/nodejs and usr/bin/npm. I tried to install…
-
0
votes1
answer113
viewsQ: Node.js Conflicts: /sbin/Node vs /usr/bin/Node
Good morning, everyone ! I would like someone to exclaim very well this conflict that arises in the installation of the nodejs ? Thanks!
-
0
votes0
answers389
viewsQ: Typeerror: Cannot read Property '1' of Undefined
Good morning, I need your help. I am receiving data from the serial port "/dev/ttyUSB0", my goal" is to recover some information ( temperature and humidity ) and replace in the object…
-
1
votes0
answers76
viewsQ: Typeerror: Object [Object Object] has no method 'Listen'
const DEFAULT_SERIAL_PORT = "/dev/ttyUSB0"; // Dependancies var fs = require('fs'); var vm = require('vm'); var events = require('events'); var cache = require('./plugins_cache.js'); var util =…