Most voted "script" questions
Scripts are "scripts" followed by computer systems and bring information that is processed and transformed into actions performed by a main program. Sounds complicated, but it’s not.
Learn more…372 questions
Sort by count of
-
18
votes1
answer2413
viewsHow to generate a pdf file containing the digital certificate information?
I have a PHP system that generates a pdf, and I need to use the client’s Digital Certificate to sign this document. I’ve been reading documents, and I saw that the FPDF that I use does not yet…
-
13
votes4
answers3721
viewsList files by name (containing date), but filter the 5 days prior to the current date with . bat?
I’m trying to do something that maybe it’s not even possible to do in bat but specific using findstr? I have a dozen files in that layout: filename So, date as day and month content two digits and…
-
12
votes1
answer3813
viewsWhat is the "application/Ld+json" type for in a <script> tag?
I was looking at the source code of the Kickass page and this excerpt caught my eye: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url":…
-
11
votes4
answers1313
viewsCapture user-typed input with PHP Shell
How can I redeem input data. Example: > Qual seu nome? ...Usuário digita o seu nome... > Olá, $nome-digitado How can I do that Shell Script in PHP.…
-
7
votes2
answers623
viewsScript to find and replace words in multiple files
I need to make a command that finds and replaces a directory path by another path, in several HTML files, example of part of the HTML file: <DIV STYLE="margin-top:6pt;margin-left:36pt;" ><…
-
7
votes3
answers490
viewsDisplays and hides contents in list form. with Javascript
I’m trying to make a list of Youtube videos as follows. (ps:Eu sei que o Youtube ja tem uma playlist dele.) Example: List with video names. 1 - Trailer Reaction: Star Wars: Episode VII - The Force…
-
6
votes1
answer361
viewsHow to Run Javascript in Java 8’s Nashorn Engine Programmatically
From Java 8 we have a new engine for Javascript execution, this is Nashorn. Which Java SE platform classes are involved in engine discovery and script execution? How to run Javascript through the…
-
6
votes3
answers1943
viewsRun Python and C# together
How can I in C# import, ie, execute some script in another language (Python)? Example: If you write "R" in a C#program, it executes a file if called ApertouR.py.
-
5
votes1
answer1588
viewsCalling Asp.net application via HTML page
I have an app that I can’t change the source code that generates purchase orders. For each request an html is stored with the request data. I want to implement this html with the following: When…
-
5
votes2
answers941
viewsScript or command to sum all directories and show full size
I am developing a script where from a text list where will have the name of directories, the script take the name of each directory, show the size of each directory and then the total. Example: I…
-
5
votes3
answers5900
viewsHow do I make a program written in python open with two click’s made one executable?
An example: #!/usr/bin/python3 # coding: utf-8 # window.py from gi.repository import Gtk class App(Gtk.Window): def __init__(self): super(Gtk.Window, self).__init__(title='Hello World')…
-
5
votes1
answer1929
viewsImacro how to restart or continue the script
I have used the immaculate in these sites of bicoins, and it works perfectly the process. however it is not 100%. I need a code to put at the end of the script process that makes it search the word…
-
5
votes1
answer476
viewsUnsafe script
I am developing a website with 2 scripts. However when sending the site to the test area, the scripts do not load, as in the image below. What should I do to be automatically executed and recognized…
-
5
votes2
answers214
viewsHow to get the result of the gdialog menu selection in the Shell Script variable?
I’m creating a script simple learning where the user should: Enter number that will be saved in the NUM1 variable Enter a second number that will be saved in the NUM2 variable Choose from the menu…
-
5
votes1
answer2046
viewsAccess the camera of the mobile phone in a Webview in Android Studio
I am creating a QR code reader on a website and now I need to use this site in a mobile version, for this I am creating a Webview that is opening the site. In any browser the QR Code reader works,…
-
4
votes1
answer5739
viewsIs it possible to generate a table script from an SQL command?
I would like to generate a table creation script, from an SQL command so I could build a program that was able to clone tables. I am using SQL Server 2008 R2 and need to implement a table cloning…
-
4
votes1
answer1711
views -
4
votes2
answers1551
viewsHow to group data by an id in R
I have the following database: id x 1 2 1 3 2 3 3 3 3 3 3 3 I wanted to create a new database without repeating the field value id, to solve this I can average the field values x that belongs to the…
-
4
votes1
answer442
viewsHow to use acute accent inside a string in a bash script?
I use the script below to download Audios from google translator to use in a personal program that narrates codes and quantities of my stock. The problem is that the high-pitched "oh" accent of the…
-
4
votes3
answers11070
viewsBATCH SCRIPT - Automating website login
I have the goal to create a file . bat that automates my login on a given site. I can open the site with . bat through the start Chrome.exe command "meusite.com", and would like to know how to…
-
4
votes2
answers3259
viewsWeather to include on the site
Someone would know me informs me where could find an xml or some script to insert the forecast of the beach Climatempo tidal tablet on my website? I need something like this site:…
-
4
votes1
answer495
viewsChange script to show video in Html5
How do I make this script shows an HTML5 video instead of Flash Player? My script looks like this: In this script he injects the video link into the flash player, I would like to replace this with…
-
4
votes1
answer279
viewsDo not let user have access to script data
I have a script generated in python and calls functions in R. At first it was developed for internal use, but now they are thinking of releasing for customer use. However, they do not want users to…
-
4
votes1
answer1645
viewsMalicious code on all pages
Hi, I went to cPanel and saw by browser that some script was being loaded from another site. Upon seeing the source code, I came across the following code: <script…
-
4
votes1
answer986
viewsHow to create runtime formulas in C#?
There are many advantages when things change for the better, so were the changes from the Clipper to Delphi and C#, actually only in the visual part. There was in the Clipper a fantastic feature…
-
4
votes2
answers1010
views -
4
votes2
answers7992
viewsFind and Replace Multiple Words Inside a File
I want to develop a script which will replace any words in filing cabinet. I know what I can do with the command(s) below: $ tr 'ABC' '123' < arquivo.txt > novo-arquivo.txt or $ sed…
-
4
votes1
answer1738
viewsCreate txt with Default name Printer in VBS
Good morning, I have the following script. Set oShell = CreateObject("WScript.Shell") strValue = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device" strPrinter =…
-
4
votes3
answers2432
viewsHow to speed up a script to full speed in python?
I was playing with a method to approximate the PI number and I realized that the code runs very slowly in the Python 3.6 interpreter, and the process is only using 30% of the processor. There would…
-
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,…
-
4
votes1
answer893
viewsSum of the regression square of R models
The models presented are different in only one additional coefficient (f), which multiplies the independent variable (x), allowing the calculation of the increase of the sum of the square of the…
-
4
votes1
answer65
viewsHow do I make a script work in a specific browser?
How do I make a script work only in a specific browser, for example: that works only in Chrome? And the opposite: block the script from working in a specific browser? What do I have to add to the…
-
4
votes2
answers4989
viewsHow to run scripts in powershell
I have an extract.sh script that does some things. I have another powershell.sh script that makes the powershell call only. And inside the powershell.sh I pull the extract.sh to run the script…
-
4
votes1
answer61
viewsHow to copy the script by running to another folder in Python?
I made a script in Python that runs some commands in the terminal, and I want it to move to another folder. I tried to use the cp teste.py minha_pasta/teste.py, but it doesn’t work. This is my code:…
-
3
votes1
answer534
viewsHow to call a Python script in a C++ code in Qt Creator?
How do I call a Python script in a C++ code in Qt Creator?
-
3
votes0
answers889
viewsLinux Script - Find, Copy, Paste and Change Text Files
I have these 3 files: Access.txt: Large text file with row records and columns separated by " ; ". NewAcess.txt: List of new accesses to add. NewUsers.txt: List of new users to add. File Example:…
-
3
votes1
answer302
views"Run/Fly" Image by Site
How do I make a "Fly" or "Run" image by myself through my website? I’d like to put on my website a kind of "Puzzle", a Mystery. I will want to put a link in the Image. It has to be a little quick to…
-
3
votes2
answers573
viewsScript to remove GOOD signature from UTF-8 files
I have several file problems in UTF-8 with BOM, several tokens are being generated at the beginning of the pages, this causes several problems in the reading of json files and desindentation of HTML…
-
3
votes1
answer2027
viewsSave PDF file from a certain range of Spreadsheet
My first question here, a little laborious, but it is that I can not solve at all. Problem: I need to save a pdf file of a particular Spreadsheet in Google drive. This file (pdf) has to cover a…
-
3
votes0
answers2038
viewsAllow a script to access a google spreadsheet and return a JSON without authentication
I was thinking of using a google Docs spreadsheet as persistence of a little application that I will develop. To do so, I made the following script in the google script editor function doGet(e) {…
-
3
votes1
answer1026
viewsTxt file directory with VBS
My VBS code is like this: Dim oShell Set oShell = Wscript.CreateObject("WScript.Shell") filename = "C:\Users\Public\Documents\Copy_File.txt" oShell.Run(filename) Is there any way I can leave this…
-
3
votes1
answer790
viewsHow to change time, read and chart in MATLAB?
I am a meteorological student and analyze data from micrometeorological towers. On each line of my file, .csv has tower code, year, day and minute hour. 110,2015,005,2359 1º I would like to know how…
-
3
votes1
answer179
viewsProblems with setInterval
Next, my problem is like this, I’m making an Inbox, so I need to update every 5s the messages. So far so good. In the div that loads the messages I put the following script: function loadInbox1(id)…
-
3
votes1
answer94
viewsCompare performance of two PHP scripts
I worked on a script PHP, later I found it too complex and heavy and felt the need to simplify it. eliminated some unnecessary functions; simplified some parts of repeated code into functions; I…
-
3
votes1
answer35
viewsControl daily image views
I don’t want the script ready, just know the best strategy. Guys, I’m having a hard time figuring out how best to control the amount of daily banner views. For example: I have a comic with 500…
-
3
votes2
answers103
viewsDoubt with Script - Show image according to Selection
I am trying to make a select that changes the image according to the selected one, but I have two types of select with their respective images that should appear according to the selection. The…
-
3
votes1
answer139
viewsProblem with mask in form
I’m using the plugin Masked Input Digitalbrush to format my phone field in the form, I tried this way and it didn’t work, someone can help me? <head> <script…
-
3
votes0
answers319
viewsPython ticket control script
What would be a more appropriate solution to this problem? The purpose of this Python script is to process possible ticket sales, analyzing each of them, indicating whether it is possible to SELL or…
-
3
votes1
answer178
viewsBug script to delete entire SQL SERVER database
I have the script below to drop EVERYTHING from the database, but in one of the database I have the processing that needs this script happens a bug, for some reason it can not run the first time I…
-
3
votes2
answers4279
viewsCan setting run-time to infinity affect server performance?
Generally, I see many people (including myself) have run-time problems with a PHP script. This is because, by default, PHP sets a deadline for running a script in 30 seconds. These problems usually…