Q1. Which of the following have true values in Ruby? (Choose two.)
- (a)
""
- (b)
0
- (c)
false
- (d)
nil
#!/bin/bash | |
### Install PHP 7.1 on OPenSUSE 42.2 64Bits | |
### https://build.opensuse.org/package/view_file/devel:languages:php/php7/php7.spec?expand=1 | |
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/ | |
### http://www.shaunfreeman.name/compiling-php-7-on-centos/ | |
zypper in openssl-devel | |
zypper in gcc gcc-c++ libxml2-devel pkgconfig libbz2-devel curl-devel libwebp-devel |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32:
adapted from the article "Crawling anonymously with Tor in Python" by S. Acharya, Nov 2, 2013.
The most common use-case is to be able to hide one's identity using TOR or being able to change identities programmatically, for example when you are crawling a website like Google and you don’t want to be rate-limited or blocked via IP address.
Install Tor.
This installation is going to require 2 servers one acts as kerberos KDC server
and the other machine is going to be client. Lets assume the FQDN's are (here
cw.com
is the domain name, make a note of the domain name here):
Important: Make sure that both systems have their hostnames properly set and both systems have the hostnames and IP addresses of both systems in
package crappyBird; | |
import java.awt.Graphics; | |
import java.awt.Rectangle; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.image.BufferedImage; | |
import java.io.IOException; | |
import java.net.URL; |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.0.0/js/bootstrap.min.css"> | |
<style> | |
.well { | |
box-sizing: border-box | |
width: 100% | |
height: 40em | |
} |