Posts by Piupz • 136 points
30 posts
-
0
votes0
answers204
viewsQ: Upload files to Sharepoint in a specific folder using Python
I am uploading file from my machine to Sharepoint using python with lib Office-REST-Python-Client, but I can only upload the file to the Sharepoint root and not to a certain folder. Code I’m using…
-
0
votes1
answer146
viewsQ: Serialize in flask-marshmallow with relationship
I’m using the flask-marshmallow to make the serialize in my project. Along with it I am using flask-sqlalchemy for mapping my tables. Follows the structure: models/Area.py: config.database import db…
-
1
votes0
answers90
viewsQ: Separate related models in Sqlalchemy
I have a model of relational tables: models/Base.py from collections import OrderedDict from src.config.database import db class Base(db.Model): __abstract__ = True models/Model.py from .Base import…
-
1
votes1
answer500
viewsQ: Multiple connections via rtsp using Opencv and Python
I recently made a basic Python script using the Opencv library for recognition using security cameras, but I realized that for some reason, I can’t open two or more connections on the same camera,…
-
1
votes1
answer1073
viewsQ: Slim Framework 4 with Eloquent ORM
I am using the Slim-Framework in version 4 for api creation and would like to use together Eloquent to facilitate manipulation with the database. But I couldn’t find any material/example of how to…
-
1
votes1
answer309
viewsQ: Hide scroll from an iframe
I have an iframe element on my site but it’s showing the vertical scroll. How to hide it? Sample code: <html> <style> .container { width: 300px; overflow: hidden; } .child { width: 200%;…
-
0
votes1
answer187
viewsQ: Lines cards with large text on the same line
I have a screen that makes a user card listing, but depending on the size of the text that will go on the card, it loses orientation and ends up "popping" the line. Example: How I need: How can I do…
-
0
votes1
answer475
viewsQ: Group javascript object by category
I have an object in JS with information of places (Cinema, Museum, etc.) that I will use to popular in my system. Example: var places = { "type": "ABC", "features": [ { "type": "AB", "properties": {…
-
0
votes2
answers2088
viewsQ: Group repeated records into an array in javascript
I have a JS array with only two attributes, a state name and a city name. Example: var variavel = [{estado: 'São Paulo', cidade: 'Campinas'}, {estado: 'São Paulo', cidade: 'Santos'}, {estado: 'São…
-
1
votes5
answers459
viewsQ: Concatenate id by description into an array in javascript
I have an array in js with only an id and a description, example: var variavel = [{id: 1, descrição: 'Brasil'}, {id: 2, descrição: 'Brasil'}, {id: 3, descrição: 'Chile'}, {id: 4, descrição:…
-
0
votes1
answer283
viewsQ: Work with BLOB field on ORACLE using Codeigniter
I have a system where will store certain files in a BLOB type column in my ORACLE database, but I did not find anything about it in the documentation of Codeigniter itself of how to do this, how can…
-
1
votes1
answer187
viewsQ: Align lists of different sizes in Bootstrap div
I have some lists that are fed through a query to the database, IE, the amount that will show is uncertain, but I limit show up to 5 records per category. How are you: One list is occupying the…
-
0
votes1
answer144
viewsA: Multiple Applications with shared settings in Codeigniter
To solve it, I created another application and the project was like this: applications/gerencia/ applications/gerencia/config/ applications/gerencia/controllers/ applications/gerencia/libraries/…
-
0
votes1
answer144
viewsQ: Multiple Applications with shared settings in Codeigniter
I have multiple applications in codeigniter where I configured based on that tutorial. Now my briefcase applications is like this: applications/gerencia/ applications/gerencia/config/…
-
0
votes1
answer765
viewsQ: Return label chosen when clicking on some column of the chart - Chart.Js
I have a Dashboard made in PHP and use the library Chart js.. In Dashboard, I have some graphics that are fed in PHP, as in this example: And I have a question, when I click on some column of the…
-
3
votes1
answer776
viewsA: Open modal window according to customer id
Basically, you will request via AJAX by clicking on button of Details. On your view, it will look like this: <div class="row"> <div class="col-md-12 col-xs-12"> <div…
-
1
votes0
answers138
viewsQ: html dropdown treatment for many options
I have a dropdown that is fed in PHP by consulting an Oracle database. It is working normally, but the amount it returns is 15,000 records and each record is an option in the dropdown. It makes the…
-
0
votes0
answers260
viewsQ: Create routes with multiple parameters in Codeigniter
I have a project developed in Codeigniter and I’m setting up some routes to get some nice Urls, but I found a problem. In a given route, I don’t know how many parameters it will come with, you can…
-
0
votes1
answer109
viewsA: Error trying to use mysqli_fetch()
As commented, the function mysqli_fetch is obsolete and has been removed since PHP version 5.4. The function can be used for this mysqli_fetch_array. Example: $row = mysqli_fetch_array($result,…
-
3
votes1
answer559
viewsA: Slide with thumbnail using Owl Carrousel 2
There is a that plugin to create thumbnail in Owl-Carrousel. Basically, you add it to the Owl call: $(document).ready(function(){ $('.owl-carousel').owlCarousel({ thumbs: true, thumbsPrerendered:…
-
0
votes1
answer277
viewsA: Doubt about highcharts and php
You can do so to show a chart with the categories as it is in the database. Records in the Database: php code to feed the chart: $mysqli = new mysqli('servidor', 'usuario', 'senha', 'banco'); //…
-
1
votes0
answers50
viewsQ: What’s the difference between Phonegap and Ionic?
I was reviewing some Cross-Platform frameworks and discovered Ionic, which uses Html, Javascript and CSS for hybrid application development. So what’s the difference between Ionic and Phonegap? Why…
-
0
votes1
answer36
viewsA: JS plugin to create presentations with graphics
I found a great framework for creating Javascript presentations, it’s easy to understand and simple to develop. He calls himself Reveal.js and has integration with the Chart.js, which in my case was…
-
2
votes1
answer151
viewsQ: Upload files working with PHP sockets
A little while ago, I decided to explore and study some sockets to be worked in PHP. So I took a good tutorial on the internet and decided to create a very simple chat where I connect the server and…
-
0
votes1
answer119
viewsA: View available disk space in PHP on a web server
Try creating a function to transform the byte value returned by disk_free_space and display on screen. Would look like this: <?php function formatBytes($bytes, $precision = 2) { $base =…
-
1
votes1
answer257
viewsQ: Run shell_exec with UTF-8 in PHP
I am developing a system in PHP language and use the command shell_exec, but when I return some message with accentuation, it does not show the character. Example: Commando:…
-
1
votes2
answers174
viewsQ: Get type of user connection in javascript
how can I get the type of user connection in javascript? I want to know if it is accessing my site via wireless, 4G, wired internet... All this in javascript
-
0
votes0
answers664
viewsQ: How to create cron Jobs via php
I’m developing a system where he sends programmed emails using PHP. Then you will have a managerial interface that the user will be able to choose in how many days you want to send the emails. Now…
-
0
votes1
answer364
viewsQ: Improve visual information on Chart.js
I am developing a system and I use Chart.js to generate my graphics. However, at the level of usability, it is bad, because it does not show all the information of the columns. Looking at the above…
-
1
votes1
answer36
viewsQ: JS plugin to create presentations with graphics
I need to develop a monitoring page where will have graphics to present information in the form of slide, IE, practically would be a "Carousel" taking the whole screen, where each slide would have a…