Questions tagged as 'script'

2
answers

Script to remove BOM signature from UTF-8 file

I have several problems with UTF-8 files with BOM, several tokens are being generated at the beginning of the pages, this causes several problems in json file reads and de-emphasis of HTML components. Almost impossible to discover because the to...
asked by 26.05.2015 / 17:32
1
answer

Problems with setInterval

Next, my problem is like this, I'm doing an inbox, so I need to update every 5 seconds of the messages. So far so good. In the div that loads the messages I put the following script: function loadInbox1(id) { $("#load-inbox-1").html("<i cl...
asked by 16.12.2015 / 20:21
1
answer

Problem with mask on form

I'm using the Masked Input Digitalbrush plugin to format my phone field in the form, so I tried this did not work, can anyone help me? <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></s...
asked by 16.06.2016 / 21:23
1
answer

How 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?     
asked by 11.02.2015 / 18:18
1
answer

How to change time, read and graph in MATLAB?

I am a student of meteorology and analyze data from micrometeorological towers. In each line of my file, .csv has tower code, year, julian day, and minute time. 110.2015,005.2359 1st I would like to know how to set my schedule from 2359 to...
asked by 17.02.2016 / 19:07
2
answers

Script or command to add all directories and show the total size

My question is as follows, I am developing a script where from a text list where you will have the name of the directories, the script pick up the name of each directory, show the size of each directory and then the total. Example: I need to...
asked by 31.07.2015 / 01:07
1
answer

Bypassing the primary key duplication error

Hello, I have the following script, .sql, to create a table and also create a trigger. SET client_encoding TO 'LATIN1'; CREATE OR REPLACE FUNCTION before_insert() RETURNS trigger AS ' DECLARE n integer; BEGIN IF tg_op = ''INSERT'...
asked by 19.01.2018 / 18:41
1
answer

Control daily image views [closed]

   I do not want the script ready, just know the best strategy. Personally, I'm having a hard time figuring out how best to control the amount of daily views of a banner. For example: I have a BD with 500 banners (name, link, image, days...
asked by 03.02.2017 / 02:16
2
answers

Doubt with Script - Display image according to Selection

I'm trying to make a select that changes the image according to the selected one, however I have two select types with their respective images that should appear according to the selection. The problem is that either I have both select to exchan...
asked by 03.05.2016 / 13:22
1
answer

Bug script to delete the entire SQL SERVER database

I have the following script to drop EVERYTHING from the database, but in one of the database I have the processing that needs this script a bug happens, for some reason it can not run the first time I run, but in second wheel without any hindran...
asked by 19.12.2016 / 16:54