ut_no2_gc_test
Use synthetic partial columns from GEOS-Chem to obtain cloud-sliced NO2 in the upper troposphere and compare this to UT NO2 obtained if simply average the NO2 mixing ratios from the model over the same pressure range (the “truth”). Both are obtained by Gaussian weighting toward the pressure center.
GEOS-Chem partial columns are obtained over Europe, North America, and China at the GEOS-FP meteorology native resolution (0.25x0.3125) (latxlon) for June-August 2016-2017.
Input options to process the data include the region, the horizontal resolution, and model simulation years.
usage: ut_no2_gc_test.py [-h] [--gc_dir GC_DIR] [--out_dir OUT_DIR]
[--resolution RESOLUTION] [--region REGION]
[--strat_filter_threshold STRAT_FILTER_THRESHOLD]
[--start_date START_DATE]
[--end_date END_DATE] [-p PLOT]
[--do_temp_correct DO_TEMP_CORRECT]
[--apply_cld_frac_filter APPLY_CLD_FRAC_FILTER]
[--do_cld_hght_test DO_CLD_HGHT_TEST]
optional arguments:
-h, --help show this help message and exit
--gc_dir GC_DIR
--out_dir OUT_DIR
--resolution RESOLUTION
Can be 8x10, 4x5, 2x25 or 1x1
--region REGION Can be EU, NA, or CH
--strat_filter_threshold STRAT_FILTER_THRESHOLD
--start_date START_DATE
--end_date END_DATE
-p PLOT, --plot PLOT
--do_temp_correct DO_TEMP_CORRECT
--apply_cld_frac_filter APPLY_CLD_FRAC_FILTER
--do_cld_hght_test DO_CLD_HGHT_TEST
-
class
uptrop.ut_no2_gc_test.
GeosChemDay
(file_path, temperature_correction=False, cloud_height_test=False) A class for reading, preprocessing and accessing Geoschem data on a given day
-
__init__
(file_path, temperature_correction=False, cloud_height_test=False) Reads the data at file_path and returns a GeosChemDay object containing that data
- Parameters
file_path (str) – Path to the netcdf4 file containing the GeosChem data
temperature_correction (bool) – Whether to apply temperature correction
cloud_height_test (bool) – Whether to test effect of systematic underestimate in cloud height
- Returns
A GeosChemDay class
- Return type
-
-
class
uptrop.ut_no2_gc_test.
ProcessedData
(region, str_res, strat_thld, do_temperature_correction=False, do_cld_frac_filter=False, do_cld_hght_test=False) A class for comparing geoschem and tropomi data
-
__init__
(region, str_res, strat_thld, do_temperature_correction=False, do_cld_frac_filter=False, do_cld_hght_test=False) Creates and returns an instance of ProcessedData for a given region
This class aggregates geoschem data over a grid defined by the define_grid method.
- Parameters
region (str) – The region to aggregate geoschem over; can be NA, EU or CH.
str_res (str) – The resolution of the grid around teh region to analyse; can be 8x10, 4x5, 2x25 or 1x1
do_temperature_correction (bool) – Whether to perform the temperature correction step
do_cld_frac_filter (bool) – Whether to perform fractional filtering of clouds
- Returns
A ProcessedData isntance ready to recieve data
- Return type
-
add_slice
(i, j, t_cld, t_col_no2, t_mr_no2, t_fr_c, t_grad_no2, t_o3) - Extracts the upper troposphere gc_data, gc_data error, ozone data, ozone error,
and mean cloud pressure for grid square [i,j]
This method uses the cloud-slicing function uptrop.cloud_slice_ut_no2.cldslice Once calculated, the a weighting is derived from cloud pressure. The weighted upper tropospheric gc_data and error is added to the rolling total for this season. If the cloud slicing fails, then the reason is added to loss_count for the end report.
- Parameters
i (int) – X-index of grid square
j (int) – Y-index of grid square
t_cld (float) – Tropospheric cloud
t_col_no2 (float) – Total (stratosphere+troposphere) column no2
t_mr_no2 (float) – NO2 mixing ratio between pmax and pmin
t_fr_c (float) – Cloud fraction between pmax and pmin
t_grad_no2 (float) – NO2 gradient between pmax and pmin in pptv/hPa
t_o3 (float) – O3 mixing ratio to test influence from stratosphere
-
define_grid
(region, str_res) Defines a grid based on a set of regional bounding boxes and a resolution
- Parameters
region (str) – The region to aggregate geoschem over; can be NA, EU or CH.
str_res (str) – The resolution of the grid around the region to analyse; can be 8x10, 4x5, 2x25 or 1x1
-
process_geoschem_day
(file_path) Aggregates geoschem data into the processing grid for a file on a given day.
Calls regrid_and_process for each pixel in the geoschem file, then calls process_grid_square for each square of the grid
- Parameters
file_path (str) – Path to the geoschem file to load into the processing grid
-
regrid_and_process
(x, y, gc_data) Inserts data from pixel x,y from geoschem data into the appropriate grid cell
- Parameters
x (int) – X index of geoschem grid cell
y (int) – Y index of geoschem grid cell
gc_data (GeosChemDay) – An instance of GeosChemDay data
-


| all_cols | Perform validations on all table columns |
| all_passed | Did all of the validations pass? |
| cols_exist | Do one or more columns actually exist? |
| col_is_character | Do the columns contain character/string data? |
| col_is_date | Do the columns contain R 'Date' objects? |
| col_is_factor | Do the columns contain R 'factor' objects? |
| col_is_integer | Do the columns contain integer values? |
| col_is_logical | Do the columns contain logical values? |
| col_is_numeric | Do the columns contain numeric values? |
| col_is_posix | Do the columns contain 'POSIXct' dates? |
| col_vals_between | Are numerical column data between two specified values? |
| col_vals_equal | Are numerical column data equal to a specific value? |
| col_vals_gt | Are numerical column data greater than a specific value? |
| col_vals_gte | Are numerical column data greater than or equal to a specific value? |
| col_vals_in_set | Are column data part of a specific set of values? |
| col_vals_lt | Are numerical column data less than a specific value? |
| col_vals_lte | Are numerical column data less than or equal to a specific value? |
| col_vals_not_between | Are numerical column data not between two specified values? |
| col_vals_not_equal | Are numerical column data not equal to a specific value? |
| col_vals_not_in_set | Are data not part of a specific set of values? |
| col_vals_not_null | Are column data not 'NULL'? |
| col_vals_null | Are column data 'NULL'? |
| col_vals_regex | Do strings in column data match a regex pattern? |
| create_agent | Create a pointblank agent object |
| create_creds_file | Create a file with DB access credentials |
| create_email_creds_file | Create a file with email access credentials |
| db_creds_env_vars | Bind environment variable names for database access |
| focus_on | Place certain access details more to the fore |
| get_html_summary | Create an HTML summary file for the interrogation |
| get_interrogation_summary | Get a simple summary of the interrogation |
| get_row_sample_data | Get non-passing sample rows from a validation step |
| get_row_sample_info | Get information on sample rows from non-passing validations |
| get_validation_name | Get the pointblank validation name |
| interrogate | Given an agent that is fully loaded with tasks, perform an interrogation |
| is_ptblank_agent | Is the object a pointblank agent? |
| rows_not_duplicated | Verify that row data are not duplicated |
| run_validation_files | Process multiple validation files |
| set_email_prefs | Set email credentials and enable email reporting |
| set_slack_prefs | Set Slack credentials and enable Slack notifications |
| vars | Helper for targeting a series of row labels or columns |


A while back, when Lion was in beta, @fyrabanks provided me with an updated IR_Black theme for Lion's Terminal (original IR_Black article). Because Terminal now lets you change the colors, SIMBL is no longer required.
...art.through(code)
Bashmarks is a simple set of bash functions that allows you to bookmark folders in the command-line.
Example
~ > cd dropbox ~/dropbox > bookmark db Bookmark 'db' saved ~/dropbox > cd Pictures ~/Pictures > bookmark pictures Bookmark 'pictures' saved ~/Pictures > go db ~/dropbox > bookmarksshow /Users/joebloe/dropbox db /Users/joebloe/Pictures pictures ~/dropbox >...
acts_as_boolean is a Ruby on Rails plugin I wrote, that treats a column as a boolean, whether it’s a tinyint, integer, float, string, etc. No matter how true and false are stored in the database.
...This color scheme is based off of my popular IR_Black theme for TextMate.
When thinking of vim or vi, visually appealing UI doesn't normally enter your mind. But that isn't due to a lack of features, because its support for syntax coloring is one the best I've seen; the only thing slightly better is TextMate. It's due to the poor color schemes many people use.
...It's common for artists, such as graphic designers, to keep scrapbooks of designs that catch their eye. This could be a logo, typeface, color scheme, page layout, or whatever else they deem of high quality. They use these scrapbooks (which traditionally were books with scraps of paper in them) to get inspiration, to help them develop their own style (by identifying likes and dislikes), or simply to browse.
Why does this matter to you, a developer?
That's a good question, and at first when I started to keep a scrapbook, I did it mainly for visual designs like web-pages. But once I started I realized it would work really well for diagrams, code, clever UI elements, or really any content that I think is exceptional.
If I'm working on a task, and feel bogged down and un-creative, I'll browse my scrapbook, getting inspiration. I look for little things that make the scraps great. I ask myself, why is this particularly good? This works just as well for a sort routine in code, as it does for logo design.
The main benefits of keeping a scrapbook are:
- creating the habit of looking for, and identifying, content that you like, and
- browsing the scrapbook at a later time to get your creative juices flowing
OS X Leopard was released with an updated Terminal application, which now has tabs, window groups, and many other new features. My excitement to replace the often slow iTerm was quickly extinguished as I realized that the new Terminal.app has some glaring problems:
- The first is the inability to set the title of the tab as you do in iTerm, gnome-terminal, etc. That one I can live with, as there are work-arounds.
- The other major problem is the horrible black themes that come with it (bad and worse). Apple is one of those companies who pay very close attention to visual details such as these, so it's surprising that they gave us such horrible choices.
So I decided to make a new theme, based on a subset of my popular TextMate theme IR_Black. The problem is the new Terminal app provides no way to set the ANSI colors; even though you can create your own themes (Settings), you can't change the colors. Ciarán Walsh provides a great solution to this on his blog, which uses the also great SIMBL.
...To write a command-line application in Ruby is very simple, the following two-line application converts everything in the standard input to upper case and then outputs it:
#!/usr/bin/env ruby
puts STDIN.read.upcase
Although complete, this is hardly a proper application, which should include options, arguments, help, input error trapping, etc. I've created a skeleton for such a command-line application.
...If you've been learning the command-line and you have the basics down (you should be, as the most effective way to use a computer is a combination of a GUI and command-line), the next step is to customize your environment.
The ability to fully customize your shell is one of the most powerful things about the command-line. It's a dry subject, and mastering it won't get you favors from the opposite sex (although it should), but it can be very useful.
There are many ways to customize your shell, but the first one you should learn is modifying your Bash startup files (assuming your shell is Bash, which is the default in OS X, Linux, and many other unices).
When I first learned how to customize bash, I found an overwhelming amount of information and opinion, which made it difficult. This article is intended to give you the fundamental concepts so that you can create your own startup files, and understand how they work. To give you an example, I go through a subset of my own files, section by section.
...Download Theme (once downloaded, simply double click on the file to install) I created the IR_Black theme, and some people asked for a white version of it. So instead of doing it manually I thought a quick Ruby script to make all the colors darker would work well.inf ...
Download Theme (once downloaded, simply double click on the file to install)
This theme is based off of the Succulent and Brilliance Dull themes. I wanted a black theme that had different colors for a wide variety of items, with coordinated colors between like items.
...A fresh install of Mac OS X to Ruby on Rails, the right way, in a 28 minute screencast.
Many tutorials skip the little steps, causing people to get stuck. This screen-cast starts with a fresh install of Mac OS X Tiger (10.4.8), then goes step by step through the process of setting up a complete development environment for Ruby and Ruby on Rails.
I show you how to setup the following:
- XCode
- TextMate
- iTerm
- DarwinPorts/MacPorts Note: the screencast mentiones DarwinPorts, but it is now MacPorts. This link has been updated
- Ruby
- Ruby Gems
- Ruby on Rails


|
VK
|
Iterface used by different types of messages wishing to be sent by TCP Thread. More...
#include <IMessage.h>
Public Member Functions | |
| virtual uint8_t | getSize () = 0 |
| Returns size of the message in bytes. | |
| virtual uint8_t | getPacketId () = 0 |
| returns packet id according to the protocol specification | |
| virtual std::vector< uint8_t > | getFields () = 0 |
| returns byte-wide fields of the message. Includes id. | |
Iterface used by different types of messages wishing to be sent by TCP Thread.


See: Description
| Interface | Description |
|---|---|
| HullGenerator |
Represents an algorithm used to create a convex hull of a given point set.
|
| Class | Description |
|---|---|
| DivideAndConquer |
Implementation of the Divide and Conquer convex hull algorithm.
|
| GiftWrap |
Implementation of the Gift Wrapping convex hull algorithm.
|
| GrahamScan |
Implementation of Graham's Scan convex hull algorithm.
|
| MonotoneChain |
Implementation of the Andrew's Monotone Chain convex hull algorithm.
|
Currently supported algorithms:
All algorithms should produce identical hulls. Some may be faster than others but consume more memory. These classes are intended to be used as a pre-processing step or at runtime.


--- layout: page title: About header-img: "img/about-bg.png" ---
Novice Data Scientist | Genius Baker | Lover of Spas


Advent of Code 2018 -
03p2
03p1
|
index
|
04p1
#1 @ 1,3: 4x4 #2 @ 3,1: 4x4 #3 @ 5,5: 2x2
Solve Puzzle


by Буник Тарас
zope.interface
zope.component
pip install zope.component
operations = { '+': lambda a, b: a + b, '-': lambda a, b: a - b, } def calc(expr): ''' Expressions "parser". Expression is a two arguments and operation between them, separated by whitespace ''' a, op, b = expr.split() return operations[op](eval(a), eval(b))
assert calc('2 + 2') == 4 assert calc('2 - 2') == 0 assert calc('2 - 0.2') == 1.8
operations = { '+': lambda a, b: a + b, '-': lambda a, b: a - b, } def calc(expr): a, op, b = expr.split() return operations[op](eval(a), eval(b)) assert calc('2 * 2') == 4 # ???
Traceback (most recent call last): File "calc1.py", line 17, in <module> assert calc('2 * 2') == 4 File "calc1.py", line 12, in calc return operations[op](eval(a), eval(b)) KeyError: '*'
It is extensible!
import calc1
calc1.operations['*'] = lambda a, b: a * b
assert calc1.calc('2 * 2') == 4
from zope.interface import Interface
class IOperation(Interface):
def __call__(a, b):
''' Performs operation on two operands '''
from zope.interface import Attribute
class IPerson(Interface):
name = Attribute('Name of the person')
from zope.interface import implements
class Plus(object):
implements(IOperation)
def __call__(self, a, b):
return a + b
class Minus(object):
implements(IOperation)
def __call__(self, a, b):
return a - b
class Minus(object):
def __call__(self, a, b):
return a - b
from zope.interface import classImplements
classImplements(Minus, IOperation)
from zope.interface.verify import verifyObject, verifyClass
verifyClass(IOperation, Plus) # true
verifyObject(IOperation, Plus()) # true
zope.interface.exceptions.DoesNotImplement: An object
does not implement interface <InterfaceClass __main__.IOperation>
zope.interface.exceptions.BrokenMethodImplementation:
The implementation of __call__ violates its contract
because implementation doesn't allow enough arguments.
from zope.interface import invariant
def binary_float_operation(obj):
res = obj(2, 2.1)
assert isinstance(res, float), 'Operation should return float'
class IOperation(Interface):
def __call__(a, b):
''' performs operation on two operands '''
invariant(binary_float_operation)
IOperation.validateInvariants(plus_operation)
File "calc.py", line 8, in binary_float_operation
assert isinstance(res, float), 'Operation should return float'
AssertionError: Operation should return float
class ISpecialOperation(Interface):
"""Special operation"""
There are two kinds of components in ZCA:
from zope.component import getGlobalSiteManager
gsm = getGlobalSiteManager()
gsm.registerUtility(Plus(), IOperation, '+')
gsm.registerUtility(Minus(), IOperation, '-')
from zope.component import getUtility
def calc(expr):
a, op, b = expr.split()
res = getUtility(IOperation, op)(eval(a), eval(b))
return res
assert calc('2 + 2') == 4
assert calc('2 - 2') == 0
assert calc('2 - 0.2') == 1.8
assert calc('2 * 2') == 4 # ZCA will not help here. But!
# calc.py
from zope.interface import Interface, implements
class IOperation(Interface):
def __call__(a, b):
''' performs operation on two operands '''
class Plus(object):
implements(IOperation)
def __call__(self, a, b):
return a + b
plus = Plus()
class Minus(object):
implements(IOperation)
def __call__(self, a, b):
return a - b
minus = Minus()
It even not fits in the slide. Why then we use it?
<configure xmlns="http://namespaces.zope.org/zope">
<include package="zope.component" file="meta.zcml" />
<utility
component="calc.plus"
provides="calc.IOperation"
name="+"
/>
<utility
component="calc.minus"
provides="calc.IOperation"
name="-"
/>
<configure>
I hate XML!
# main.py
# We should additionally install zope.configuration
from zope.component import getUtility
from zope.configuration import xmlconfig
def eval(expr):
a, op, b = expr.split()
return getUtility(IOperation, op)(float(a), float(b))
def main():
xmlconfig.file('configure.zcml') # it will import every needed component
assert eval('2 + 2') == 4
assert eval('2 - 2') == 0
if __name__ == '__main__':
main()
plus = Plus() # during module load
<utility
component="calc.plus"
provides="calc.IOperation"
name="+"
/>
plus = Plus()
<utility
factory="calc.Plus"
provides="calc.IOperation"
name="+"
/>
import random
def get_digit():
return random.randint(1, 9)
from zope.component.factory import Factory
factory = Factory(get_digit, 'random_digit', 'Gives a random digit')
from zope.component.interfaces import IFactory
gsm.registerUtility(factory, IFactory, 'random_digit')
print getUtility(IFactory, 'random_digit')() # creates digit
from zope.component import createObject
print createObject('random_digit') # also creates a digit
def d(f):
return 0
@d
def f():
return 'hello world!'
>>> f()
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: 'int' object is not callable
>>> f
0
class IScalaOperation(Interface):
def apply(a, b):
''' performs operation on two operands '''
class Division(object):
implements(IScalaOperation)
def apply(self, x, y):
return x / y
gsm.registerUtility(Division(), IScalaOperation, '/') # instead of zcml
def foldl(op, seq): # aka reduce
op = IOperation(op) # instead of verifyObject, but better
acc = seq[0]
for n in seq[1:]:
acc = op(acc, n)
return acc
"type checking may occur either at compile-time (a static check) or run-time (a dynamic check)"
(wikipedia entry on type systems)
Guido van Rossum, recently sent out a proposal on the python-ideas mailing list for adding type annotations to Python function declarations. The proposal aims at bringing to Python the benefits provided by static typing without changing Python's dynamic typing nature and interpreter behaviour. (some news)
The object-oriented programming languages Smalltalk, Perl, JavaScript, Ruby, Python, and Self are all "strongly typed" in the sense that typing errors are prevented at runtime and they do little implicit type conversion.
File "/home/bunyk/zca/calc.py", line 44, in foldl
op = IOperation(op)
TypeError: ('Could not adapt', <calc.Division object at 0xb70f33ac>,
<InterfaceClass calc.IOperation>)
Division
implements IScalaOperation
not IOperation
from zope.component import adapts
class ScalaOperationAdapter(object):
implements(IOperation)
adapts(IScalaOperation)
def __init__(self, scala_op):
self.scala_op = scala_op
def __call__(self, a, b):
return self.scala_op.apply(a, b)
<adapter
factory="calc.ScalaOperationAdapter"
provides="calc.IOperation"
for="calc.IScalaOperation"
/>
or
gsm.registerAdapter(ScalaOperationAdapter)
op = IOperation(Division())
verifyObject(IOperation, op) # yes it is!
Thank you for your time and attention!
Questions and comments are welcomed.


--- title: Train a model using Cloud ML type: docs repo: https://github.com/rstudio/cloudml menu: main: name: Train a model using Cloud ML - cloudml parent: cloudml-reference aliases: - /reference/cloudml/cloudml_train.html - /cloudml/reference/cloudml_train.html - /guide/cloudml/reference/cloudml_train.html - /tools/tools/cloudml/reference/cloudml_train.html - /installation/cloudml/reference/cloudml_train.html - /tutorials/cloudml/reference/cloudml_train.html - /guide/tools/cloudml/reference/cloudml_train.html - /deploy/cloudml/reference/cloudml_train.html - /tools/cloudml/reference/cloudml_train.html - /tutorials/tools/cloudml/reference/cloudml_train.html ---
Upload a TensorFlow application to Google Cloud, and use that application to train a model.
cloudml_train(file = "train.R", master_type = NULL, flags = NULL,
region = NULL, config = NULL, collect = "ask", dry_run = FALSE)
| file | File to be used as entrypoint for training. |
| master_type | Training master node machine type. "standard" provides a basic machine configuration suitable for training simple models with small to moderate datasets. See the documentation at https://cloud.google.com/ml-engine/docs/tensorflow/machine-types#machine_type_table for details on available machine types. |
| flags | Named list with flag values (see |
| region | The region to be used for training. |
| config | A list, |
| collect | Logical. If TRUE, collect job when training is completed
(blocks waiting for the job to complete). The default ( |
| dry_run | Triggers a local dry run over the deployment phase to validate packages and packing work as expected. |
job_status()
, job_collect()
, job_cancel()
Other CloudML functions: cloudml_deploy
,
cloudml_predict


Home Inventory by Guy Klein
2013, Week 2
Monday, January 7: 8.00 hours
8.00
– Changed CSS to accomodate...
Tuesday, January 8: 8.00 hours
6.00
–
Altered code...
2.00
–
Simplified our approach to...
Wednesday, January 9: 6.00 hours
3.00
– Fixed bug caused by...
3.00
– Comitting latest code to Git...
Wednesday, January 9: 4.00 hours
2.00
– Create component that...
2013, Week 3
Monday, January 14: 8.00 hours
7.75
–
Writing documentation...
0.25
–
Reverting code back to...
Main
Popup
Format:
Today
2009-08-24
Clear
Min date
Selected date is:
{{dt | date:'fullDate' }}
Inline


--- layout: post status: publish published: true title: 'The Evolution of Wrigley Field: 100 Years Young' author: display_name: Luke Jett login: Luke email<EMAIL_ADDRESS>url: '' author_login: Luke author_email<EMAIL_ADDRESS>wordpress_id: 9581 wordpress_url: http://ivyenvy.com/?p=9581 date: '2014-04-04 07:34:16 +0000' date_gmt: '2014-04-04 12:34:16 +0000' categories: - The Cubs - Wrigley Field tags: - Wrigley Field - Wrigley Field 100 years comments: - id: 10538 author: Ivy Envy author_email: '' author_url: '' date: '2014-04-04 07:40:08 +0000' date_gmt: '2014-04-04 12:40:08 +0000' content: I can't help but read that title in a Willard Scott voice. - id: 10539 author: Joshua Waltsak author_email: '' author_url: '' date: '2014-04-04 08:15:50 +0000' date_gmt: '2014-04-04 13:15:50 +0000' content: Who is Willard Scott? - id: 10540 author: Ivy Envy author_email: '' author_url: '' date: '2014-04-04 08:18:51 +0000' date_gmt: '2014-04-04 13:18:51 +0000' content: He reads the old folks' birthdays on the Today show. - id: 10541 author: Joshua Waltsak author_email: '' author_url: '' date: '2014-04-04 08:19:32 +0000' date_gmt: '2014-04-04 13:19:32 +0000' content: Oh yea I thought so ---
As the Cubs embark on their journey through the 2014 season, they will be celebrating the 100th anniversary of Wrigley Field, which has been mentioned quite a bit. Different decade promotions and jerseys scatter the Cubs schedule throughout the summer at the friendly confines.
I thought it would be cool, since it is the day of the home opener and the 100th year of baseball at Clark and Addison, to go through the history of Wrigley Field. I'll mark up some of the most memorable moments at Wrigley, the renovations, the different teams that played there, and all the other quirky pieces of information that we have come to know and love throughout the last century.
Lets begin in 1914. And contrary to popular belief, the Cubs weren't the original team that played at Wrigley. When it was built in the spring of 1914, which construction only lasted a little over 6 weeks, it was home to the Federal League's Chicago Whales. At the time, the name of the park was Weeghman park, and that was the name from 1914 to 1920. The Cubs moved in before the 1916 season and have been there ever since. The name change to Cubs Park in 1920, but has been Wrigley Field since 1926.
Wrigley has been renovated a few time throughout the ballpark's history. The first of which was an upper deck added to the park in 1927. One of the most famous portions of Wrigley was put up as the Cubs team president's son, Bill Veeck, put ivy on the outfield walls in 1937. Also in 1937, Veeck installed the famous scoreboard in center and the bleachers. Three years early, the marquee out in front of Wrigley was built and was painted blue until the 1960's when it was repainted to the familiar red. Another huge portion of renovating that Wrigley did was in 1988, where the Cubs became the last team to install lights in major league baseball.
A few different teams have called the friendly confines home. The Cubs, as mentioned before, have been called Wrigley home since 1916. Also as I mentioned before, the Chicago Whales played at Wrigley from 1914-15. Three NFL teams have played there, including the Chicago Tigers (1920), Chicago Cardinals (1931-39), and most famously the Chicago Bears from 1921 to 1970. Also, as a part of the North American Soccer League, the Chicago Sting had a stint where they called Wrigley home from 1977-1982 and again in 1984.
Wrigley Field has hosted World Series games in 1929, 1932, 1935, 1938, and 1945, playoff games in 1984, 1989, 1998, 2003, 2007, and 2008, but has never witnessed a Cubs championship as the Cubs won their two World Series championships before they moved to Wrigley. Other events that has taken place at Wrigley, besides baseball, are football games, soccer matches (both stated above), the 2009 Winter Classic hockey game, and a number of concerts including Pearl Jam and country singers Jason Aldean and Blake Shelton most recently.
Being built in 1914, Wrigley Field is the second oldest ballpark in the Major Leagues, as Fenway Park in Boston, built in 1912, is the oldest. The manual scoreboard, the marquee, and the ivy on the walls make Wrigley a great tourist destination and a great place to watch a ball game. It will be forever my favorite ballpark (bias included) and is my favorite place to be during the summer.


xdg-desktop-icon - command line tool for (un)installing icons to the desktop
xdg-desktop-icon install [--novendor] FILE
xdg-desktop-icon uninstall FILE
xdg-desktop-icon {--help | --manual | --version}
The xdg-desktop-icon program can be used to install an application launcher or other file on the desktop of the current user.
An application launcher is represented by a *.desktop file. Desktop files are defined by the freedesktop.org Desktop Entry Specification. The most important aspects of *.desktop files are summarized below.
install
Installs FILE to the desktop of the current user. FILE can be a *.desktop file or any other type of file.
uninstall
Removes FILE from the desktop of the current user.
--novendor
Normally, xdg-desktop-icon checks to ensure that a *.desktop file to be installed has a vendor prefix. This option can be used to disable that check.
A vendor prefix consists of alpha characters ([a-zA-Z]) and is terminated with a dash ("-"). Companies and organizations are encouraged to use a word or phrase, preferably the organizations name, for which they hold a trademark as their vendor prefix. The purpose of the vendor prefix is to prevent name conflicts.
--help
Show command synopsis.
--manual
Show this manual page.
--version
Show the xdg-utils version information.
An application launcher can be added to the desktop by installing a *.desktop file. A *.desktop file consists of a [Desktop Entry] header followed by several Key=Value lines.
A *.desktop file can provide a name and description for an application in several different languages. This is done by adding a language code as used by LC_MESSAGES in square brackets behind the Key. This way one can specify different values for the same Key depending on the currently selected language.
The following keys are often used:
Value=1.0
This is a mandatory field to indicate that the *.desktop file follows the 1.0 version of the specification.
Type=Application
This is a mandatory field that indicates that the *.desktop file describes an application launcher.
Name=Application Name
The name of the application. For example Mozilla
GenericName=Generic Name
A generic description of the application. For example Web Browser
Comment=Comment
Optional field to specify a tooltip for the application. For example Visit websites on the Internet
Icon=Icon File
The icon to use for the application. This can either be an absolute path to an image file or an icon-name. If an icon-name is provided an image lookup by name is done in the user*(Aqs current icon theme. The xdg-icon-resource command can be used to install image files into icon themes. The advantage of using an icon-name instead of an absolute path is that with an icon-name the application icon can be provided in several different sizes as well as in several differently themed styles.
Exec=Command Line
The command line to start the application. If the application can open files the %f placeholder should be specified. When a file is dropped on the application launcher the %f is replaced with the file path of the dropped file. If multiple files can be specified on the command line the %F placeholder should be used instead of %f. If the application is able to open URLs in addition to local files then %u or %U can be used instead of %f or %F.
For a complete overview of the *.desktop file format please visit m[blue]%http://www.freedesktop.org/wiki/Specifications/desktop-entry-specm[]
xdg-desktop-icon honours the following environment variables:
XDG_UTILS_DEBUG_LEVEL
Setting this environment variable to a non-zero numerical value makes xdg-desktop-icon do more verbose reporting on stderr. Setting a higher value increases the verbosity.
An exit code of 0 indicates success while a non-zero exit code indicates failure. The following failure codes can be returned:
1
Error in command line syntax.
2
One of the files passed on the command line did not exist.
3
A required tool could not be found.
4
The action failed.
5
No permission to read one of the files passed on the command line.
The company ShinyThings Inc. has developed an application named "WebMirror" and would like to add a launcher for for on the desktop. The company will use "shinythings" as its vendor id. In order to add the application to the desktop there needs to be a .desktop file for the application:
shinythings-webmirror.desktop: [Desktop Entry] Encoding=UTF-8 Type=Application Exec=webmirror Icon=shinythings-webmirror Name=WebMirror Name[nl]=WebSpiegel
Now the xdg-desktop-icon tool can be used to add the webmirror.desktop file to the desktop:
xdg-desktop-icon install ./shinythings-webmirror.desktop
To add a README file to the desktop as well, the following command can be used:
xdg-desktop-icon install ./shinythings-README
Kevin Krammer
Author.
Jeremy White
Author.
Copyright © 2006


October, 2002
mon
tue
wed
thu
fri
sat
sun
Author name
Please, select any available date in the calendar
Thursday, October, 22


This demo uses a neural network to encode left and right images, giving an approximation function f(x, y, z) -> (r, g, b).
Parameters x, y are pixel positions, z is -1 (left) and 1 (right). Use the slider to explore z space. Training may take more than a hour. Refresh for new images.


The contents of this cell are top-aligned.
The contents of this cell are middle-aligned.
The contents of this cell are bottom-aligned.