-
How to download Udemy Videos? – Stack Overflow
” git clone https://github.com/r0oth3x49/udemy-dl.git
pip install -r requirements.txt
4) Download as you would normally do (from virtual box):python udemy-dl.py -u user@domain.com -p p4ssw0rd COURSE_URL”
-
windows – Clock time is off on dual boot – Ask Ubuntu
“Make Linux use ‘Local’ time
To tell your Ubuntu system that the hardware clock is set to ‘local’ time:
Pre-Ubuntu 15.04 systems (e.g. Ubuntu 14.04 LTS):
edit /etc/default/rcS
add or change the following section
# Set UTC=yes if your hardware clock is set to UTC (GMT)
UTC=noUbuntu 15.04 systems and above (e.g. Ubuntu 16.04 LTS):
open a terminal and execute the following command
timedatectl set-local-rtc 1
”
Principal
Textos publicados na web.
Update (weekly)
-
Change default code page of Windows console to UTF-8 – Super User
“To change the codepage for the console only, do the following:
Start -> Run -> regedit
Go to [HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\Autorun]
Change the value to chcp 65001″ -
java – Hibernate @ManyToOne “Target Entity is not defined” – Stack Overflow
“This error has nothing to do with your application. It works fine but the error is in Eclipse.
To remove this (and other JPA) error message simply disable the JPA validation under Window -> Preferences -> Validation and here remove the checks from JPA Validator.
Generally most applications can be developed without any validators because bigger projects’ validation slows down compiling in eclipse way too much. In this case click Disable all in the same window below the table of validators.”
-
“You are attempting to update the UI from a background thread. Either move the toast to onPostExecute, which executes on the UI thread (recommended), or call runOnUiThread.”
-
Developing Android Apps – Udacity
“padding and layout_margin are two very similar attributes. Both determine the space around a View. The difference is that padding determines space within the boundaries of the view, and layout_margin determines the space outside the boundaries of the view”
Update (weekly)
-
Chapter 1. Running and Using HyperSQL
” java -cp ../lib/hsqldb.jar org.hsqldb.util.DatabaseManagerSwing”
-
-
usar com argumento -url jdbc:hsqldb:file:/opt/db/testdb após o argumento de java -cp
-
-
jdbc:hsqldb:file:/opt/db/testdb
-
-
“@RequestMapping(value = PATH)
ErrorJson error(HttpServletRequest request, HttpServletResponse response) {
// Appropriate HTTP response code (e.g. 404 or 500) is automatically set by Spring.
// Here we just define response body.
return new ErrorJson(response.getStatus(), getErrorAttributes(request, debug));
}” -
CLI Batch Mode |JBoss Developer
“The batch mode allows one to group commands and operations and execute them together as an atomic unit, i.e., if at least one of the commands or operations fails, all the other successfully executed commands and operations in the batch are rolled back.
Not all of the commands can be added to a batch. E.g. commands like ‘cd’, ‘ls’, ‘help’, etc are not added to the batch since they don’t translate into operation requests. These commands (if entered while in the batch mode) will be executed outside of the batch. Only the commands that translate into operation requests are allowed in the batch. The batch, actually, translates into a ‘composite’ operation request.”
Update (weekly)
-
startup – Cannot run Eclipse; JVM terminated. Exit code=13 – Stack Overflow
“I had the same error when configuring eclipse.ini to use JRE6. Turns out I caused this error by incorrectly configuring eclipse to use the 64 bit JVM while running a 32 bit version of eclipse 3.7.
The correct configuration required the eclipse.ini -vm argumument to use “C:/Program Files (x86)/” instead of “C:/Program Files/”.
Make sure that the JVM version (32/64 bit) you use matches the eclipse version (32/64 bit).”
-
Red Hat JBoss Enterprise Application Platform (EAP) Quickstarts | Red Hat Developers
“If you are a beginner or new to JBoss, start with the quickstarts labeled Beginner, then try those marked as Intermediate. When you are comfortable with those, move on to the Advanced quickstarts”
-
Reduce eclipse tab size with GTK theming – Unix & Linux Stack Exchange
“The default GNOME3 themes are a disaster for tiny screens. However, the Gnome3 crowd seems to be pretty unwilling to listen to their users. They only think of how stuff looks, in particular on a tablet PC or mobile device, it seems. Soon, Gnome3 will require a 4k screen.
Anyway, the best solution I have found is to switch the theme to the XFCE themes. On Ubuntu and Debian you should be able to install them via apt install gtk3-engines-xfce gtk2-engines-xfce. Then you can use the gnome-tweak-tool to change the theme. I’m currently using XFCE-orange theme, and it has much less padding than the default Gnome3 desaster “Adwaita”. Plus, it doesn’t use that depressing black for half of the applications! I think the tooltips in Eclipse were also broken with Adwaita.
I’m slowly switching from Gnome3 to XFCE on my computers, one after another. Because Gnome3 keeps on getting less and less useful for me, as I’m not your average “joe clueless” user that the Gnome3 people consider to be their only audience. I’m fed up with them breaking things for me. Now they’ve just announced to discontinue the panel which I’m using instead of the broken by design gnome-shell.
For eclipse specifically, I suggest to
export SWT_GTK3=0
in your ~/.profile. GTK3 with Eclipse is just a crazy waste of screen space.”
Update (weekly)
-
compiling – How to use ‘apt’ to get source code and then do separate compile – Ask Ubuntu
”
down vote
acceptedFor this example I’ll use icedtea-6-jre-jamvm as the package you want to rebuild.
First install all the dependencies and build essential:
sudo apt-get build-dep icedtea-6-jre-jamvm
sudo apt-get install build-essentialThen grab the source:
apt-get source icedtea-6-jre-jamvm
Then cd in the openjdk directory directory and build the deb, the -us and -uc here skip the GPG checks if you’re just rebuilding it for yourself:
cd openjdk-6-6b24-1.11.5
dpkg-buildpackage -us -ucThen go up a directory and you should have .deb files. ”
-
How to Fix macOS Sierra Screen Resolution on VirtualBox? – wikigain
“
Replace VM Name to macOS Sierra(VM name in VB)
Step #4. Choose the resolution of your screen monitor from the list below, to choose one just clean N and type the number of that resolution size.
Choose your Screen Resolution From the List
Step #5. Press Windows button + X and click on Command Prompt (Admin).
Run CMD as Admin
Step #6. Select the VirtualBox path by the change directory command, so copy & paste the command to Command Prompt(CMD) then hit enter.
Choose VirtualBox Path
Step #7. These time Copy & paste the fix screen resolution code to Command Prompt(CMD) then hit enter.
Note: Be sure that you have selected a fix resolution for your monitor screen and choice the amount of N. after copying the code to virtual-box then close all tabs.
Run the Screen Resolution Code
Step #8. Start the installed macOS Sierra virtual machine from VirtualBox.
Launch the macOS Sierra VM
Step #9. Now log in to your account and check the screen resolution to confirm it has worked or not. So was all”
-
Step #4. Choose the resolution of your screen monitor from the list below, to choose one just clean N and type the number of that resolution size.
-
VBoxManage setextradata “MacOsSierra” “VBoxInternal2/EfiGopMode” 4
-
-
These time Copy & paste the fix screen resolution code to Command Prompt(CMD) then hit enter.
-
Update (weekly)
-
Como Instalar o Mac OS X em VirtualBox no Linux – BR-Linux.org
-
Gato de óculos escuros ‘invade’ reportagem do RJTV
“Um gato usando óculos escuros ‘invadiu’ uma reportagem do RJTV no sábado, 27, e ganhou a internet como o mais novo meme. Enquanto o repórter Pedro Figueiredo falava sobre tiroteios e mais uma pessoa ferida na favela da Rocinha, no Rio de Janeiro, o animal surge “bem pleno” em uma moto, acompanhado do motorista.
Reprodutor de vídeo de: YouTube (Política de Privacidade)
No Twitter, o vídeo viralizou. Alguns internautas comentam a possibilidade de o animal ser o gato Chiquinho, famoso na comunidade da Rocinha por gostar de relaxar e ter pose de motoqueiro tal como seu dono Alexandre.Assista ao momento abaixo, a partir dos 00:56:”
-
Why I Drilled Holes in My MacBook Pro and Put It in the Oven | iFixit
Lembrando que o Titanic foi feito por profissionais e a Arca de Noé por um amador…
-
we decided it was time to break out the bigger guns. That is, we pulled out a drill. With a 1/16” bit, we drilled holes in the bottom case, under the fans (we figured out where the blades of the fan were exposed based on the dust pattern stuck to the inside of the bottom case). The speed holes worked: The boot chime rang. The screen glowed. The fans blew.
These are speed holes. They make the computer go faster.
There’s noticeably increased airflow—when I put a piece of paper on the bottom of the computer, it sticks to the case. Its average temperature is down in the 40s and 50s, lower than it’s been since before March.
It’s a little early for a final verdict, but the computer has now been running without incident for fifteen days. Unconventional electronics repair tools they may be, but that’s how I saved my MacBook Pro with a drill and an oven.
-
Mudança
Devido à questões técnicas, o conteúdo deste blog não será mais atualizado, e o conteúdo antigo passou a ser hospedado neste site.
Atualização (27/02/2009):
Parece que este site está inacessível no Brasil (talvez uma falha de configuração da conta no Freeshell). De qualquer forma estou voltando a postar aqui conteúdos de referência (caso perca todos os dados de um backup mal-feito, ainda posso consultar informações úteis aqui)
Ancient Empires
É um jogo, que joga-se no celular, em resolução de 220*176 pixels, de estratégia, onde se comanda um exército contra as forças anciãs do mal. À medida que se avança nas estratégias e no jogo, ampliam-se as possibilidades de recursos de guerra. Começa-se com o mais básico: soldado: custa $150 em moeda local, é o único tipo além do Rei capaz de ocupar vilas, que depois de ocupadas produzem dinheiro a cada rodada; flecheiro: custa $250 e seu grande em relação aos demais membros do exército é a possibilidade do ataque à distância: exatamente uma quadra (pode ser acima, abaixo, esquerda, direita e nas diagonais), porém ao ser atacado cara-a-cara é menos resistente que o soldado, este é o único capaz de efetuar um ataque eficaz contra dragões, a hierarquia mais alta do jogo; depois temos o elemento do mar, que possui altíssimo poder de ataque/defesa e locomoção rápida quando está na água, custa $300; a fada, com o poder de reanimar os mortos, convertendo-os em soldados zumbis tão poderososos quanto os soldados (só que sem o poder de ocupar vilas); daí temos o Dire Wolf, que se movimenta extremamente rápido, possui um ataque poderoso que deixa as vítimas doentes, com grau de locomoção reduzido; o Golemon, que mais parece uma muralha ambulante, com altíssimo poder de combate/defesa cara-a-cara; ambos custam $600; subindo um pouco mais na hierarquia temos o lança-bombas, com ataque à uma distância uma quadra a mais que os flecheiros em todas as direções, porém caso fiquem isolados tornam-se indefesos no combate cara-a-cara; e no último posto fica o dragão que pode “voar” de entre pontos distantes, possui ataque com poder semelhante ao Golemon, porém é sensível aos ataques dos flecheiros, podendo ser eliminado com as flechadas de 3 flecheiros novatos, por exemplo.
Existem duas versões a 1 mais antiga e a 2 que possui um pouco mais de dificuldades (e inteligência artificial). Continuar lendo