-
Install XQuartz
-
Install meld with brew
brew install meld -
Copy PYTHONPATH
| // | |
| // AppDelegate.m | |
| #import "AppDelegate.h" | |
| #import "GoogleOpenSource/GTMOAuth2Authentication.h" | |
| #import "MainViewController.h" | |
| #import "SignInViewController.h" | |
| @implementation AppDelegate |
| Protocol | |
| ------------ | |
| Protocol in Objective-C is like interface in Java | |
| Apple tends to favor using subclasses than protocol | |
| NSObject is a class but also a protocol | |
| Category | |
| ------------ |
| What is a Relational Database? | |
| ------------------------------ | |
| A set of true propositions | |
| Every row in a table is the statement about the truth related to the table | |
| Enforces logical integrity (business rules) | |
| Application independent store (this is the reason why relational database was created) | |
| Why Normalize? | |
| -------------- |
| # Change this: | |
| ... | |
| #!/usr/bin/ruby | |
| require 'osx/cocoa' | |
| # My Script… |
| Write a program that does what it’s supposed to do | |
| Write idiomatic code | |
| Debug a program that you wrote | |
| Debug a program someone else wrote | |
| Debug the interaction between a system you wrote and one you didn’t | |
| File a good bug report | |
| Modify a program you didn’t write | |
| Test a program you wrote | |
| Test a program you didn’t write | |
| Learn a new programming language |
Slow HTTP attacks are denial-of-service (DoS) attacks in which the attacker sends HTTP requests in pieces slowly, one at a time to a Web server. If an HTTP request is not complete, or if the transfer rate is very low, the server keeps its resources busy waiting for the rest of the data. When the server’s concurrent connection pool reaches its maximum, this creates a DoS. Slow HTTP attacks are easy to execute because they require only minimal resources from the attacker.
Attack exploits the fact that most of modern web servers are not limiting the connection duration if there is a data flow going on, and with possiblity to prolong TCP connection virtually forever with zero or minimal data flow by manipulating TCP receive window size value, it is possible to acquire concurent connections pool of the application. Possibility to prolong TCP connection is described in several vulnerability reports: MS09-048, CVE-2008-4609, CVE-2009-1925, CVE-2009-1926 .
Prerequisites for the successful attack are: - victim serve
| /** @jsx React.DOM */ | |
| var STATES = [ | |
| 'AL', 'AK', 'AS', 'AZ', 'AR', 'CA', 'CO', 'CT', 'DE', 'DC', 'FL', 'GA', 'HI', | |
| 'ID', 'IL', 'IN', 'IA', 'KS', 'KY', 'LA', 'ME', 'MD', 'MA', 'MI', 'MN', 'MS', | |
| 'MO', 'MT', 'NE', 'NV', 'NH', 'NJ', 'NM', 'NY', 'NC', 'ND', 'OH', 'OK', 'OR', | |
| 'PA', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VT', 'VA', 'WA', 'WV', 'WI', 'WY' | |
| ] | |
| var Example = React.createClass({ |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
Using Ruby on Rails we would like you to create a simple expert search tool. The application should fulfill the requirements below. The source code must be placed in a public repo on GitHub. The application should be deployable on Heroku.
- I enter a name and a personal website address and a member is created.
- When a member is created, all the heading (h1-h3) values are pulled in from the website to that members profile.
- The website url is shortened (e.g. using http://goo.gl)
- After the member has been added, I can define their friendships with other existing members. Friendships are bi-directional i.e. If David is a friend of Oliver, Oliver is always a friend of David as well.
- The interface should list all members with their name, short url and the number of friends e.g. Alan http://goo.gl/3io1P (3)