Posts by jpklzm • 2,973 points
54 posts
-
1
votes1
answer80
viewsQ: Specific url in Django
I’m rewriting a website using Django. This is a blog and I need the urls to be the same as the old site so that the site does not lose ranking in the search engines. What would be the best way to…
-
1
votes1
answer140
viewsA: Improving Script Performance
So, guys, I made it through the challenge. I made a cache to store the data of operations that had already been done for other numbers and with that I was able to reduce the execution of the code to…
-
1
votes1
answer140
viewsQ: Improving Script Performance
Guys, I’m doing the following challenge: The following iterative sequence is defined by the set of integers positive where: n -> n/2 (if n is even) n -> 3n + 1 (if n is odd) Using the rules…
-
1
votes1
answer111
viewsQ: Filtering json data with schema attribute
I have a JSON in this format: { "1": { "cidade":"cidade1", "name":"nome1" }, "2": { "cidade":"cidade2", "name":"nome2" } } and I need to filter the data of this json. For this I made a model.js var…
-
10
votes1
answer812
viewsQ: Failed propType: Invalid prop `Children` supplied to`Router`
I created a project to study React and I’m trying to uncouple my Header from the app by creating a component for it. I created a file Header.jsx and passed the code there but I’m getting the…
-
7
votes2
answers666
viewsQ: Check file extension in template - Django
I have a Django application where in the template I need to validate a file extension coming from filefield. <div class="row"> <p class="anexos"> {% trans 'Anexos' %} </p> #if .jpg…
-
1
votes1
answer779
viewsA: Library for the issuance of electronic fiscal notes
You can use the Pysped ### Exemplo ### from pysped.nfe.manual_401 import * n = NFe_200() # Com este método você carrega o xml dentro do Objeto NFe_200 e a partir disto você pode acessar qualquer…
-
3
votes1
answer101
viewsA: C# Opening Files
Use the class Process: System.Diagnostics.Process.Start("myFile.xls");…
-
1
votes1
answer993
viewsA: Mysql does not connect to server
Open phpmyadmin and Store as root. Create a database called phpmyadmin Create a user named pma and set the "host" for your web server’s hostname or IP (if your web server and Mysql are on the same…
-
1
votes2
answers111
viewsA: I’m not getting wheel the first animation of my game
The error is in your project and not in the code. He is complaining that you have not assigned any value to the variable player. Within your project, drag the Asset you want to grab the property…
-
2
votes1
answer122
viewsQ: AWS S3 Disabling Sslv3 Support
I received an email from AWS that basically says S3 will no longer support Sslv3. Then they listed the list of Buckets that are receiving requests on Sslv3 and one of my Buckets is production. The…
-
3
votes2
answers2492
viewsA: What’s the difference between SOME, IN and ANY?
ANY and SOME are synonyms. Simply correlating, both work as a command EXISTS. That: SELECT * FROM mytable WHERE x <= ANY ( SELECT y FROM othertable ) It’s the same as that: SELECT * FROM mytable…
-
4
votes1
answer9724
viewsA: How to access webcam and photo with HTML5 and Javascript?
You can work with the Scriptcam, a Jquery plugin for webcam use. Follow code example to take photos with webcam: <!DOCTYPE html> <html> <head> <script language="JavaScript"…
-
2
votes2
answers162
viewsA: Semantically, should I choose ul or article when displaying products?
"The tag <article> specifies an independent content, self-sufficient. An article should make sense and be distributed independent of the rest of the site." W3schools Considering that your…
-
4
votes1
answer606
viewsQ: Single email field on Django User model
I have a system that has a user register and I’m using the lib django.contrib.auth.models to make this registration. However I I need this model’s email field to be unique. from django.db import…
-
1
votes2
answers1232
viewsQ: Nav-bar multicolored Bootstrap
I have to leave my multicolored Nav-bar? For example, half one color, half another? I want to do something in that style but I don’t want those degrade marks.…
-
1
votes1
answer65
viewsQ: Python Open-ID Framework
Guys, I got a problem. I don’t think the stack is the best place to ask but I don’t know exactly where to ask this. As you all know, Openid 2.0 will no longer be supported by google, which forces us…
-
3
votes1
answer2527
viewsQ: Remove local tag in Git
How do I delete a tag that was created locally in my git repository and has not yet been "pushada" Example: I created the tag v1.4.9, but I noticed I was in the wrong branch before I did git push. I…
-
5
votes1
answer63
viewsQ: Code is not executed on command line
I have a file teste.php with the following code. <? echo "teste"; ?> When I run the command on the terminal php -f teste.php I receive as output my code: <? echo "teste"; ?> instead of:…
-
1
votes1
answer40
viewsQ: Problems with . htaccess on Lampstack
I have the following problem. I have a website that uses htaccess. I work locally on the website and it works normally, all redirects work perfectly. When I went up my application to the…
-
7
votes2
answers2420
viewsQ: Checking nearest branch of a zip code
I am working on a course system that has several branches. Within the register I have a zip code field and I would like him, through this zip code, to find the nearest branch. Is there an API or…
-
1
votes1
answer62
viewsQ: Reusing forms in php
I’m working on a PHP site where I have about 20 different pages that have the same form. Currently this site has in the 20 pages the same code for the form (Ctrl+c/Ctrl+v). Is there a way to use the…
-
1
votes3
answers222
viewsQ: Removing characters from a string - Python
Guys, I have the following problem. I have a function that returns me the following output: "Address:58.200.133.200" I would like to save this value in a variable ip, but I only want the part of ip…
-
0
votes1
answer74
viewsA: Save Cloudwatch logs to my Personal Bucket - AWS
I contacted Amazon and they confirmed that unfortunately it is not yet possible to save Cloudwatch logs in a specific Bucket. Any new information I notice here.
-
1
votes1
answer74
viewsQ: Save Cloudwatch logs to my Personal Bucket - AWS
Fala galera, I would like to save my Cloudwatch logs inside my personal Bucket and not in the standard Amazon Bucket so I can download these logs more easily. Has anyone ever done it or knows if…
-
3
votes1
answer151
viewsA: Enable click on Listview
Unfortunately, android:focusable="false" android:focusableInTouchMode="false" does not work for ImageButton. I found the solution here. In your xml layout for these add items…
-
2
votes3
answers474
viewsQ: Getting Output Terminal History on Ubuntu
Is there any way to get Output History from the Ubuntu terminal? Like a log of everything that rolled into a terminal?
-
2
votes1
answer120
viewsQ: Can you format a Python Traceback?
Is there any way to format Python Traceback to get a better reading of the error request? For example, I received the following request on my traceback:…
-
2
votes1
answer37
viewsQ: Catching Event Detail from Elastic Beanstalk with Python and Boto
I have a script to deploy made with Fabric and Boto to deploy applications to AWS Beanstalk and would like to print the Event Details generated on beanstalk in the terminal during deploy. Does…
-
1
votes1
answer129
viewsA: Search ignoring accent on AWS Cloudsearch
You need to set up Cloudsearch. Take a look at stemming options and check the language options. If everything is correct, you are probably not logged in with the access token.
-
1
votes2
answers1078
viewsA: Pagination of Divs
You can use the Quick Pagination Example <ul class="pagination1"> <li>1 - Item 1 de 25</li> <li>2 - Item 2 de 25</li> <li>3 - Item 3 de 25</li> <li>4…
-
0
votes2
answers172
viewsA: Pull in Heroku database to local
You can migrate to the database with Active Record to replicate your settings and then make a dump of the data to climb the records.…
-
4
votes3
answers8272
viewsQ: How to call external command with Python?
How can I call an external command in Python, as if it ran in the Unix shell or Windows prompt?
-
3
votes2
answers123
viewsQ: How to use two Python text decorators?
How can I make to use two decorators in python, as in the example below: @makebold @makeitalic def say(): return "Hello" returning: <b><i>Hello</i></b> I’m not trying to make…
-
1
votes2
answers1038
viewsA: Java Timestamp and Mysql Timestamp
In the MySQL 5.6 you’d already get millisecond accuracy. try select sysdate(6) will return 2013-04-16 13:47:56.273434 and select sysdate(3) will return 2013-04-16 13:47:56.273 But in case you don’t…
-
5
votes1
answer11438
viewsA: User root mysql without permission
Stop mysql and restart with the option --skip-grant-tables. Connect to mysql only with the command mysql (without the -p, it should not ask user) Insert the following command into the sql client:…
-
3
votes1
answer329
viewsA: Convert to String number with scientific format
NumberFormat formatter = new DecimalFormat("###.#####"); String f = formatter.format(d); You can explore the class NumberFormat for more details
-
2
votes2
answers363
viewsA: Problems with session_start() in Safari browser
Sessions in php use a Session Cookie, so check the following: Is your Safari allowing cookies? by default the Session Cookie is called "phpsessionid" Are you sure you used the session_start()? (it…
-
3
votes3
answers17687
viewsA: Get HTML and JS database connection
You shouldn’t use Javascript to access databases for many reasons, but if you really want to do this, here’s an example: var connection = new ActiveXObject("ADODB.Connection") ; var…
-
4
votes2
answers756
viewsA: setInterval 5 seconds locking browser
Try changing your role setInterval() by function setTimeout recursively. For example: $(MeuAjax); // Inicia seu ajax no DOM function MeuAjax() { $.ajax({ complete: function() { // Sua lógica…
-
12
votes2
answers10072
viewsQ: How to rename a local branch in Git?
How do I rename my local Git branch? I don’t want to rename a remote branch, I want a simple way to rename my local branch.
-
2
votes1
answer78
viewsA: How It Fires Vibration in My Device
You can use the command VibrateController as in the example below: import Microsoft.Devices VibrateController testVibrateController = VibrateController.Default; if(Vibrar = true) {…
-
1
votes1
answer1783
viewsA: Format cell in Datagrid at runtime C#
Try using this: dataGridViewCellStyle.Format = "hh:mm"; //mudei para facilitar o entendimento this.date.DefaultCellStyle = dataGridViewCellStyle; I made a small example here: using System; using…
-
1
votes1
answer87
viewsA: python font error 2x
The error is happening because the system is searching for the variable 'font1' which in your case was never declared. You can do the following: py. import tkfont def fontes(self): arial =…
-
0
votes2
answers899
views -
3
votes2
answers3712
viewsQ: Preventing data forwarding when updating page (F5) in ASP.NET
Guys, I have the following problem: I have a web application made with ASP.NET and C#. In this application I have a simple entry registration system. After I register an item in the application, if…
-
0
votes1
answer267
viewsQ: Generating fields by ASP.NET code
I’m making a web application with ASP.NET and C#. In this application I can register several items of the same type, so it has a text field and a button on the side to create new text boxes. I’ve…
-
19
votes2
answers12657
viewsA: How does the site take off.com perform the search for ticket prices?
There are several companies that offer Webservice: Gol, Tourico, Webjet, Tam and others. To answer your question, the site takes off.com uses the system Amadeus to make your inquiries. One solution…
web-serviceanswered jpklzm 2,973 -
123
votes9
answers13997
viewsQ: How to create a website without reloading every click on a link?
I’m looking to develop a site that runs all in the same file, but I’m not sure how to look for study material for this. Thus: Normal site->I’m on the Index.php page. When I click on the…
-
0
votes3
answers737
viewsA: Large variation relative margin between browsers
You can try to give a Global CSS Reset, all browser has priorities to define a page’s CSS. The order is: CSS inline Through the use of the attribute style which I do not recommend: <div…