All Questions

1
answer

How to create a module in npm?

The idea is to be able to download this module by npm install and be able to execute this package: npm install nome-do-modulo --save Once downloading could run on my project as follows: nomeDoModulo = require('nome-do-modulo')    ...
asked on 02.09.2016 / 18:32
2
answers

Change the Context according to the application

I need the web part to point out which context the system will use. My project is divided as follows: AftercompletingitIhadto"replica it", but using another bank. The tables are the same does not change anything, but it is in another bank...
asked on 02.07.2014 / 17:22
2
answers

How to check the number of users who accepted an event on facebook using the Graph API

I'm developing a website where it should show the number of people who have confirmed their presence at an existing facebook event. According to the Graph API documentation, so I can check this data I should use the following code: function ge...
asked on 25.07.2014 / 07:49
1
answer

Set a default comment for every new project

I need to set a default comment, so that in every project that is created it appears, without typing it every time. Ex: \ Author: Peter H.     
asked on 27.08.2016 / 23:27
1
answer

How to install Python 3

I'm new to Ubuntu and I'm learning Python. I have installed Pyhton 2.7.12 on my pc and would like to know how I can upgrade to version 3. I'm doing a course where I need to make use of a lib. import urllib.request But the following er...
asked on 02.09.2016 / 12:44
2
answers

Is it possible to pass a method as a parameter to run in a thread?

I have an application where each process is called by a single method and this process needs to be executed on a thread. The threads code is identical in all, changing only the content of the run () method. I would not want to be copying and p...
asked on 31.08.2016 / 08:09
1
answer

What are the differences between the following casts and when to use each one?

   Casting   [...] process where one type of object is explicitly converted to another type, if conversion is allowed. Source: > Stack overflow in Portuguese Assuming the following situation: var i = 10 What are the di...
asked on 09.09.2016 / 00:51
1
answer

Silent installation of Postgres and creation of the base in installer

How can I embed the PostgreSQL database in my WinForms system installer? I can even put it as a prerequisite to install before the system binaries, however, I wanted to do a silent installation. I would also like to know how to create the ban...
asked on 22.09.2016 / 14:54
3
answers

How to compare MySQL with an array?

I have to make a MySQL comparison with an array of numbers. For example: I have array of integers asm: $inteiros = array(); And I have to return the ids of my class table with this array , like this: SELECT *...
asked on 10.10.2016 / 14:47
3
answers

What are [] in bash?

I'm starting in shell script now, and often reading other people's programs, I see the use of [] associated with if . For example: if [condition]; then fi I have also often seen use as follows: if [[condition]]; then fi...
asked on 30.08.2016 / 21:49