Criar projeto web com Maven
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.mobwink -DartifactId=mobtasks

No title available

tannertan36
Game of Thrones Daily
occasionally subtle
Fai_Ryy

Kiana Khansmith
art blog(derogatory)
Mike Driver
Stranger Things

roma★
🪼
Peter Solarz
Monterey Bay Aquarium
untitled
Cosmic Funnies
KIROKAZE
Jules of Nature
Sade Olutola
2025 on Tumblr: Trends That Defined the Year
Lint Roller? I Barely Know Her
seen from United States

seen from Türkiye
seen from Russia

seen from Malaysia

seen from Austria

seen from Malaysia
seen from New Zealand

seen from United States

seen from United States
seen from Germany
seen from United States

seen from Pakistan
seen from Saudi Arabia

seen from Malaysia
seen from United States
seen from United States
seen from Japan
seen from United States

seen from Türkiye

seen from Germany
@maiconkeller-blog
Criar projeto web com Maven
mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DgroupId=com.mobwink -DartifactId=mobtasks
Scrum Basics (por Örjan Hillbom)
Curtindo o frio em Jundiaí (Publicado com o Instagram)
Come esta ferramenta fica mais simples a geração de gradient com css3.
Pessoal, lembra o trabalho para deixar as imagens com cantos arredondados no HTML?
Então, veja como está simples!!
Veja o site http://border-radius.com/ e faça a borda de sua preferência!!
Olá!!
Segue uma dica de como deixar um link decente para o seu usuário do google+. Primeiramente você deve adicionar o nick do seu gosto e em seguida adicione o código google+. Clique em "Add" e pronto! você já tem o seu link.
Eu prefiro a forma que o facebook e o twitter faz. Mas, enfim!! está ai!!
O meu ficou assim: http://gplus.to/maiconkeller
[Simples Assim]: Como resolver “Could not find a JavaScript runtime" em aplicações Ruby on Rails
Olá pessoal, hoje estou postando um problema que tive após criar uma aplicação Rails.
Após executar o comando "rails server" o qual inicia a aplicação, apresentou o seguinte mensagem de erro:
maicon@maicon-pc:~/development/maiconkeller$ rails server /usr/lib/ruby/gems/1.8/gems/execjs-1.3.1/lib/execjs/runtimes.rb:50:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable) from /usr/lib/ruby/gems/1.8/gems/execjs-1.3.1/lib/execjs.rb:5 from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require' from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee_script.rb:1 from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require' from /usr/lib/ruby/gems/1.8/gems/coffee-script-2.2.0/lib/coffee-script.rb:1 from /usr/lib/ruby/gems/1.8/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require' from /usr/lib/ruby/gems/1.8/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1 from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require' from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:68:in `require' from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `each' from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:66:in `require' from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each' from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require' from /usr/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:119:in `require' from /home/maicon/development/maiconkeller/config/application.rb:7 from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:53 from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap' from /usr/lib/ruby/gems/1.8/gems/railties-3.2.3/lib/rails/commands.rb:50 from script/rails:6:in `require' from script/rails:6
Veja abaixo que este problema pode ser resolvido no Ubuntu instalando o node.js:
sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs sudo apt-get install nodejs-dev
Pronto!! agora está funcionando normalmente.
maicon@maicon-pc:~/development/maiconkeller$ rails s => Booting WEBrick => Rails 3.2.3 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2012-04-30 13:51:30] INFO WEBrick 1.3.1 [2012-04-30 13:51:30] INFO ruby 1.8.7 (2011-06-30) [i686-linux] [2012-04-30 13:51:35] INFO WEBrick::HTTPServer#start: pid=11871 port=3000
[Simples Assim]: Como debugar SmartFoxServer 1x
Veja como é simples iniciar o SmartFoxServer em modo debug.
1) Abra com editor de texto de sua preferencia o arquivo wrapper.conf. (C:\ambiente-java\SmartFoxServerPRO_1.6.6\Server\conf);
2) Procure por
# runtimedebug
wrapper.java.additional.3=-Xdebug
wrapper.java.additional.4=-Xnoagent
wrapper.java.additional.5=-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n# Java Additional Parameters wrapper.java.additional.1=-Dfile.encoding=UTF-8 wrapper.java.additional.2=-Djava.util.logging.config.file=logging.properties
"pode ter mais linhas"
acrescente as seguintes linhas:
# runtimedebug wrapper.java.additional.3=-Xdebug wrapper.java.additional.4=-Xnoagent wrapper.java.additional.5=-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
3) Crie um arquivo startDebug.bat para iniciar em modo debug. O mesmo deverá ser criado dentro da seguinte pasta: "C:\ambiente-java\SmartFoxServerPRO_1.6.6\Server"
a) Crie um arquivo chamado startDebug.bat;
b) adicione no arquivo: wrapper.exe -c "C:\ambiente-java\SmartFoxServerPRO_1.6.6\Server\conf\wrapper.conf";
Pronto agora é só executar o SFS pelo startDebug.bat e o mesmo funcionará em Debug na Porta 8787.
[SIMPLES ASSIM]: Comandos básicos do Git
Abaixo podemos ver os comandos básicos para manipular o Git.
Global setup:
Download and install Git git config --global user.name "Maicon Rodrigo Keller" git config --global user.email [email protected]
Next steps:
mkdir PROJECT_NAME cd PROJECT_NAME git init touch README git add README git commit -m 'first commit' git remote add origin [email protected]:USER_NAME/PROJECT_NAME.git git push -u origin master
Existing Git Repo?
cd existing_git_repo git remote add origin [email protected]:USER_NAME/PROJECT_NAME.git git push -u origin master
[SIMPLES ASSIM]: COMO CHECAR SE DOMÍNIO É VÁLIDO - JAVA
O método abaixo mostra como checar se um domínio de um e-mail é valido.
public Boolean existDNS(String email) {
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
env.put("com.sun.jndi.dns.timeout.initial", "2000");
env.put("com.sun.jndi.dns.timeout.retries", "3");
try {
String dominio[] = email.split("@");
InitialDirContext ctx = new InitialDirContext(env);
Attributes res;
res = ctx.getAttributes(dominio[1], new String[]{"MX"});
if (res.size() != 0){
return true;
} else {
return false;
}
} catch (NamingException ex) {
return false;
}
}
[SIMPLES ASSIM]: CONFIGURAR NOVO REPOSITORIO SVN
1 - criar repositório: svnadmin create --fs-type fsfs /disco/svn/<nome_do_projeto>
2 - liberar permissões de gravação:
chown -R www-data:www-data /disco/svn/<nome_do_projeto>/
chmod -R g+ws /disco/svn/<nome_do_projeto>/
3 - acessar o apache2: cd /etc/apache2/
4 - editar o arquivo: vi authz_svn.access
5 - dar permissões para os usuários:
[gestorCopas:/]
<nome_do_usuario> = rw
6 - reiniciar o apache2: /etc/init.d/apache2 force-reload