Interesting questions
-
0
votes1
answer248
viewsUpload with jQuery
I have this code: $(document).ready(function(e) { $("form").on("submit", function() { $.post ("upload.php", { fotos : $("input[type=file]") }, function(retorno){ alert(retorno) } ); return false;…
-
1
votes2
answers775
viewsGenerate random numbers
I have the following problem: I need to generate a random number between 1 and 6 Assign to a array of numbers if this new number is not contained in array If contained, generate again. Do this…
-
-1
votes1
answer492
viewsChange content according to select option
Someone could assist me on how I can change the information that is in blue in the image below, according to the selection of the select (monthly, quarterly, semi-annual and annual). I need you to…
-
32
votes7
answers58283
viewsRegular expression for e-mail validation
I am trying to create a regular expression to validate any e-mail, I wrote the expression below, but it is not working as expected: var parse_email = /^[a-z0-9.]+@[a-z0-9]+\.[a-z]+\.([a-z]+)?$/i;…
-
0
votes0
answers55
viewsView directory files - PHP
Good afternoon, I have a monthly file registration system, currently the files are displayed through a href redirecting to the file path (directory), giving to download them. I want to view/open…
phpasked 6 years, 9 months ago user175046 -
1
votes2
answers544
viewsSend an array of objects in an ng-click?
I have the following doubt in this code. <table class="table table-bordered table-hover"> <thead> <tr class="bg-info table-responsive table-bordered table-striped">…
-
34
votes7
answers14277
viewsWhat can C++ do that C# can’t?
Being a programmer . Net but with an old passion for C++ (which has grown since C++11), I was with this curiosity. I know . Net can be "extended" with C++/CLI, but I would like to know what C# pure…
-
0
votes0
answers39
viewsI cannot return data from the firebase user to display in edittext, how do I?
The Code I’m using is this: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_cotacao); mTextView = (TextView)…
-
0
votes0
answers354
viewsMy mobile menu is fixed at the top, but the dropdown follows his scroll, what to do?
I am creating a responsive site manually, so I created 2 menus, one to appear on the desktop and another for mobile version. These menus are not at the top, but about 150 pixels away. I decided to…
-
-1
votes2
answers876
viewsHow to take out the Title Bar and adjust the screen size in Python Tkinter?
Hello! I would like to know how to put the screen in a smaller size on Python Tkinter. The program below leaves in full screen. So far I can not change the size. from tkinter import * janela = Tk()…
tkinterasked 7 years, 1 month ago Sandro Ganske 21 -
14
votes4
answers1643
viewsIs it really necessary to define constraints in the database?
Ruby on Rails seems to have been thought of considering that it is not necessary to define constraints (as Foreign Keys) in the database, just define them via application. Usually the only…
-
0
votes1
answer160
viewsTwo javascript functions on the same page
good morning! I have a little problem in my code and I am new in the programming area, I do not know if my doubt is this well, but, I will show you the code and describe how I want to reach my goal:…
-
1
votes0
answers42
views -
-1
votes1
answer24
viewsDo dates search using MVC5
Good afternoon, guys, okay? I hope so. I’m having doubts about ordering the database data in ascending order of dates. var result = from r in context.name Where r.numero == 2 orderby r.datacadastro…
-
-1
votes1
answer54
viewsDoubt in the use of the for
I need to make a code to solve the following question: I have a basket with capacity C, I have 3 types of fruit, I will receive the amount one per line, to put all of them in the basket, the…
-
2
votes2
answers1260
viewsCapture Json (Array) data and put into HTML
Guys, I’m having a hard time capturing the items inside an object on Json. Follow the code below to illustrate. var tipos = [ { "code": "258", "label": "Sapatos" }, { "code": "547", "label": "Kits"…
javascriptasked 8 years, 5 months ago Thiago Maia 121 -
1
votes4
answers1845
viewsHow to identify Focus in a div?
Galera mounted an input system with the same layout of android. Everything works perfectly on input but the input supplier stays within a div, because I have to add a button instead of x. The…
-
0
votes1
answer42
viewsError adding items to a file. txt Python3
I’m trying to read a file . txt (currently empty) to check if chat_id already exists, if it already exists, it ends right there. If it doesn’t exist... Add the new chat_id in the last line, but when…
-
6
votes3
answers7489
viewsHow do I make a Delphi application run as an administrator?
I’m using Delphi XE4 and have no idea how to get an application to ask administrative permission for Windows 7 to run, I searched websites and bolgs, but I couldn’t find the answer! Help me please!…
-
1
votes0
answers71
viewsWYSIHTML5 - Text area is not being populated by the API
I have a data editing modal with a text area that is populated by API response. It works perfectly - without WYSIHTML5. When active, the textarea does not display the API response. I have tried…