Interesting questions
-
1
votes1
answer88
viewsPython script that generates a main diagonal character square
I am trying to make a program that given a value, generates a "square" of n rows and n columns that has characters : in the main diagonal positions and the characters + in other positions. For…
-
1
votes2
answers15896
viewsHow to stop an execution in Python?
I’m starting programming in Python and would like to know how to stop the program execution? In the language C for example, there is the equivalent command system("pause"). If I open IDLE, more…
-
-4
votes1
answer77
viewsPython - I would like some examples of using "APLICATION/LD+JSON"
I’ve always worked with REST for integrations, now I’m using a new system where I can’t use only pure JSON, they use LD Json, and I still don’t quite understand this concept and I’m having some…
-
0
votes1
answer65
viewsEdit . txt using stream and a button
I have a form in c# and winforms, and I need that, when I click a button, it edits a . txt and add a line of text. Follow the commented code: using System; using System.Collections.Generic; using…
-
0
votes2
answers189
viewsIs dynamic HTML via BD bad practice in PHP?
I’m creating a platform where I need to change elements of the site by a control panel, and for example, it would be something very bad way insert into BD and pull via PHP? Let’s say I have a menu…
-
0
votes0
answers119
viewsPull logged in user information without using Auth::user()
I have an application developed with Laravel that has some small. php files in the public folder that are loaded in a certain view. I need to pull user information logged in in these files, but I…
-
0
votes0
answers40
viewsLoop process error using for
Hello I would like the help of you, to try to solve the following problem, I created a script that allows to take the direct link of an online video upload host, the process works, but I do not know…
-
0
votes1
answer36
viewsHelp with project code organization
I joined a project written in php that at first had no idea of the proportion it would take. So I’ve written so much code that even I’m a little lost to locate some problems. To do the project, as I…
-
0
votes0
answers734
viewsCreate search box in modal Bootstrap
I wonder if it is possible to create a modal window to search for information and select it for a form. For example, when you click on the magnifying glass open a modal with all the individuals…
-
0
votes1
answer1815
viewsStatic method has no access to class variable
Hello, I have the following problem: I have a static method that uses a class variable, but Unity gives me the following error: \Assets Scripts Gamecontrol.Cs(3,3): Error CS0120: An object reference…
-
3
votes2
answers4079
viewsJavascript required HTML attribute
I’d like to know how to do that, when the activeBtn were checked, the ordenadorBanners win the attribute required, I tried the model below but it didn’t work, I would like to know how to do it, and…
-
0
votes1
answer1013
viewsHow to search for users in the database without select option
Good staff always found bad a method I use to search users in the database in a select option, when I have many records the page takes to load and only tends to get worse, someone has some idea of…
phpasked 11 years, 8 months ago Rafael Assmann 381 -
1
votes3
answers399
viewsTransforming DD/MM/YY into PHP timestamp
I need the user to enter a date and this date is sent to the database as timestamp, example Insert: 25/12/17 in the field I want it to reach the database as 1514160000 which means "Mon, 25 Dec 2017…
-
4
votes2
answers171
viewsIdentify cases with multiple conditions in multiple columns in R
I have a dataframe with 20 students and I need to identify the students who attended stage 43 for two years or more. aluno <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,…
-
-1
votes1
answer28
views2 Apaches running Mac
I’m lost in setting up my local development environment. I have 2 Apaches running on my machine and would like only one, also want to leave running PHP 7. these are the two places:…
-
6
votes3
answers62099
viewszero to left (LPAD) in Sql Server
How is done in Sqlserver so that the result comes with zero left ? in mysql would look like this: select lpad(mes,2,0 ) as 'mes', ano from tab_qualquer; How does something equivalent in Sql Server?…
sql-serverasked 10 years, 3 months ago SneepS NinjA 7,691 -
6
votes1
answer407
viewsPhoto taken by my app does not appear in Gallery
When generating the photo through my app it correctly creates the folder and saves the photos taken there, but when I go in the Mobile Gallery is as if the photos did not exist, the default Android…
-
4
votes1
answer1394
viewsRemove and replace vowels in any sentence, C
Context: I’m trying to develop a code that will be able to remove all vowels aeiou of any sentence and save the position that the vowel was in the sentence, so that it is possible to reconstruct the…
casked 9 years ago Vinicius Lara 53 -
3
votes2
answers97
viewsWhat does the expression "for x in *" do?
I saw this expression in a SOEN question, but I did not understand very well what it does for x in *; do echo $x; done This printed the folder list of the directory I was in. That’s what that…
bashasked 10 years, 9 months ago Wallace Maxters 102,340 -
1
votes0
answers56
viewsWhy doesn’t my switch generate the right results?
I’m using a condition and a switch to determine some values for some variables, but I’m not getting the expected results. When the link <a href="index.php?post=myFile"></a> is clicked, I…