Interesting questions
-
4
votes2
answers213
viewsHow to filter only the last day of each month?
How can I filter a query bringing the result by the last day of each month, in SQL Server 2012? I tried the EOMONTH, I think due to the version. SELECT E8_FILIAL, E8_AGENCIA, E8_CONTA, E8_DTSALAT,…
-
0
votes0
answers941
viewsExport Table in EXCEL with PHP
I am exporting my data to excel format, but when I export the accents do not return correctly, this is my script: <?php include_once "bancodedados.php"; $table="smt_cadastro_sociedades"; $select…
-
1
votes1
answer81
viewsPosition tables with commands in php
I’m doing a program that creates variables, and shows them in two tables with a echo. Together in that echo, i put a table with a style inside. However, when testing the code, the formatting does…
-
2
votes1
answer176
viewsMasking for date field
Who ever used the type="date" HTML5 certainly noted that although the date is visible in the DD/MM/YYYY, when you retrieve the value by Javascript, it is in the format YYYY-MM-DD. What I want is…
-
0
votes1
answer35
viewsSqlite is not creating a table
Screenshots of the ERROR that appears. Sqlite is not creating a table and I can’t fix the error if anyone can help me…
-
2
votes1
answer3726
viewsWhat’s the difference and when to use @mixin and @extend on SASS?
Both the @mixin like the @extend seem to have the same goal: Add a standard code block to a class. But if they have the same purpose, what is the difference between them? And when should I use one…
-
1
votes2
answers1472
viewsOnly get words from A-z and numbers 0-9
How can I remove anything other than a letter and number string, that is to remove (!@#$%^&*():"><?} etc.) and keep only the letters of a-z and numbers of 0-9
-
0
votes1
answer243
viewsHow to insert and restate a list of items in the database
The code below allows the insertion of n items in the array $scope.items[]: var app = angular.module('app', []); app.controller('controlador', function($scope, $http) { $scope.user = {};…
-
1
votes2
answers529
viewsHow to make a minimum ceiling and a maximum ceiling in a random number?
I am developing an application in Java and in my controller I have a function that generates random numbers. Example: In my first column I want you to manage from 0 to 8, so far OK. In the second…
-
0
votes0
answers75
viewsStart reading the beginning of the string list
How do I after adding a string to a list (can be on list A or B), my code goes back and starts reading the beginning of the string list, or the first string? I have a list with 20 strings. But it’s…
-
-1
votes3
answers1280
viewsDevelop a function that concatenates elements of the same position in different arrays according to a given condition
This is my first question here on the site, so sorry if my way of questioning does not follow the expected pattern rs. I’m taking a programming course Javascript for beginners to apply for a…
-
1
votes1
answer54
viewsFix HTML of a page using Ruby/Nokogiri
I’m having a little difficulty consuming an HTML generated by a third party page, where HTML is missing some closing tags. For example: <div> <li> <div> <div>test test…
rubyasked 10 years, 6 months ago Luiz Carvalho 3,644 -
0
votes0
answers23
viewsWhat are "expressions" in javascript?
I would like to know what are "expressions" and "primary expressions" in javascript. The Mozilla as an example of expression x = 7 and 3 + 4, but in the "primary expressions" part it shows the…
-
2
votes2
answers398
viewsHow to use GIT to list the changed files in the branch
How to view the list of all the changed files in one branch without having to inform the commit X until commit Y. I was using the following command below to list the commit’s and get the Hash of…
gitasked 5 years, 7 months ago Mauro Rocha 114 -
1
votes2
answers449
viewsColor Spinner Progressdialog - Android
How do I change the default color of Progressdialog (Spinner) on android? Below is the code I’m using: ProgressDialog progress = new ProgressDialog(this); progress.setTitle("Título);…
-
0
votes3
answers3825
viewsFormat date in SQL SERVER
I need to make a SELECT in my SQL Server 2008 database and I’m not getting it. I need to convert a date to the formatted one yyyy/MM/dd HH:mm:ss, however I need to convert in any way that works in…
-
0
votes1
answer133
viewsHow do I show the randomized quicksort step by step?
How do I show the sort process step by step? Either by showing the state of the vector at each change or by showing a tree. I have tried to print each of the three functions and also tried to create…
-
12
votes4
answers11601
viewsSet constant in Python
How can I declare a constant in Python the same way I do in C with #Define PI 3.1415 or in java public final double PI = 3.1415…
-
3
votes1
answer155
viewsMigration to Heroku
I’m migrating my DB app pro Heroku, the deploy worked: $ git push heroku master When trying to migrate the database according to the command $ heroku run rake db:migrate does not work and returns…
-
3
votes2
answers1028
viewsIn white-space, what is the difference between pre, pre-line and pre-wrap options?
I already know that when using white-space: nowrap, the text does not break when it exceeds the limit of a container. However, I noticed that this property in CSS has the options pre, pre-line and…
cssasked 6 years, 4 months ago Wallace Maxters 102,340