Interesting questions
-
2
votes4
answers3995
viewsHow to make a link button in Angularjs
How to make a link/redirect button in Angularjs? html <button class="btn btn-success" href="go('/cadastro.html')">Cadastra-se</button> config app.config(function($routeProvider,…
angularjsasked 9 years, 11 months ago GustavoSevero 2,567 -
6
votes3
answers229
viewsForeach returning unconverted array
I’m using this little code to capture words with minimum 2 characters, but it returns me: Notice: Array to string Conversion in echo $word; preg_match_all("/[a-z0-9\-]{2,}/i", "oi voce tem problema…
phpasked 11 years, 9 months ago Vinícius Lara 3,750 -
2
votes1
answer464
viewsHow to change the color of the Ios navbar
I am developing an application, I would like the navigation bar to have the same color as the body of the project, I am trying with the following code UINavigationBar.appearance().barTintColor =…
-
1
votes1
answer139
viewsRecover Select from Any Trigger
How can I get one back select of a trigger? Example: CREATE TABLE PESSOA2 ( ID INTEGER IDENTITY NOT NULL, NOME VARCHAR(250) ) CREATE TRIGGER SELECIONAR_NOME2 ON DBO.PESSOA2 AFTER UPDATE AS BEGIN…
-
4
votes1
answer616
viewsThread problem
public class ThreadTest implements Runnable { private String word; private long time; public ThreadTest(String word,long time){ this.word = word; this.time = time; } public void run() { try {…
-
-1
votes1
answer140
viewsExtreme difficulty generating PDF with PHP or Javascript
Extreme difficulty generating PDF with PHP or Javascript I’m here at the attempt of generate PDF file for HTML. I made 3 attempts. The HTML and the CSS are the same to the 3 attempts. Try 1 ->…
-
1
votes1
answer20
viewsFunction error not set when working with Ecmascript modules in the browser
I am trying to work with modules in Javascript and came across a problem when calling a function that is in the file main.js for index.html. <!doctype html> <html lang="en"> <head>…
-
2
votes1
answer2120
viewsPrevent from closing modal window
I would like to know if it is possible to prevent closing the modal window of Bootstrap when updating the page. As we deal with several types of users, I need this to happen so that I can change the…
twitter-bootstrapasked 11 years, 5 months ago user24136 -
0
votes1
answer709
viewsStart a Windows 10 service by Java code
In Windows 7 I used the following method to start a Windows service in Java: static final String CMD_START = "cmd /c net start \""; public static int startService(String serviceName) throws…
javaasked 11 years, 2 months ago Renato Pereira 9 -
1
votes1
answer459
viewsProperly manage database connections using Hibernate
What would be the best standard for connections, I thought of two modes : Mode 1 : Each function creates and closes its own connection Insert function' EntityManagerFactory factory =…
-
0
votes2
answers845
viewsHTML & PHP -Make a log in button log out
I have my PHP code created for both log in and log out, I confess that I have read several articles on google how to turn a log in button into log out but I confess that the read did not help at…
-
0
votes1
answer224
viewsLogin from an external system using ASP.NET MVC
I need to implement a form of my system (written in ASP.NET MVC) to log in from an external system to which I do not have the source code. This external system uses the same users of my system. How…
-
4
votes1
answer63
viewsWhat is the code convention name for variables that use _?
If variables declared as such: var camelCase = ""; follow the pattern camelCase, what is the default name for variables that use the _, as below? ruby_var = "a questão vale 10 pontos =)"…
-
3
votes2
answers6293
viewsHow to properly deploy the user after a downtime?
REPLY Below is the answer for those who have been going through something similar. I first created an extra field in my table called Tempoative where I store the team() as soon as the user logs in.…
phpasked 11 years, 5 months ago user24136 -
1
votes1
answer39
viewsEC2 instance not loading Apache envvars file
Today at dawn I had a small problem with one of the instances of my application. I saw that the Apache was using a lot of memory, and I decided to restart it with a /etc/init.d/apache2 restart.…
apacheasked 12 years, 1 month ago Rodrigo Rigotti 12,139 -
3
votes1
answer108
viewsjQuery Reverse conflict
I’m working on a website that I want it to change the order of the read when the window is < 800px, and I implemented the code below. The problem is that it seems to be failing at random and…
-
2
votes2
answers795
viewsasynchronous foreach in javascript
Good morning! After breaking my head and not finding the solution, I came to ask Sopt’s friends. It is possible to create an asynchronous foreach? 'Cause the next thing, look at my code: async…
-
2
votes2
answers832
viewsLoad JS on mouse Hover
What technique did this widget use on blogger(?): http://tecplate.blogspot.pt/ When placing the cursor over the author’s name of the post, it loads a js with a popup. The idea is to use this to…
javascriptasked 12 years, 4 months ago Vinny Oliveira 77 -
3
votes3
answers8039
viewsSearch field inside select box how to do?
I would like to know if there is any way to put a search field inside a select box, because for example...I have a selectbox with +3000 thousand registered items, there arises my need to have a…
-
0
votes1
answer1354
viewsConvert Json to Array with Jquery
I’m making an ajax request with jquery and Php like this: // arquivo php $json = array( "status"=>"true", "message"=>"inserido com sucesso" ); echo json_encode($json); . // arquivo js $.ajax({…