## Mako can find this base file because it's in the settings.py -> MAKO_TEMPLATES_DIRS list
<%inherit file="base.htm" />
<%block name="content">
<% %>
Employee Profile Information
%if user.street2!='':
%endif
%if user.is_superuser==True:
%elif user.is_staff==True:
%else:
%endif
Are you sure you want to delete this account?
%block>


1 Get started
This chapter explains how to get you up and running. It assumes you are working in RStudio.
1.1 Install packages
First, you will need to install a number of R packages that we will use:
install.packages(c(
"devtools", # To install packages from GitHub
"yaml", # To read processing settings
"dplyr", # To process dataframes
"loopr", # To process dataframes with loops
"lubridate", # To process dates
"circular", # To calculate circular means
"bookdown" # To generate this documentation
))
devtools::install_github("adokter/bioRad", ref="master") # To process vp data
1.2 Download code
To run or adapt the code in this document, fork or clone this repository: https://github.com/enram/vp-processing.
1.3 Define processing settings
The processing requires a number of settings we need to define. If you want to run the processing with other data and settings, then this is the only code you need to update (in setup.Rmd
):
# Project name
project_name <- "example"
# Paths
# The paths below are creating by pasting the project_name into a full path string
# All paths are relative to this script (i.e. to the src directory).
# Make sure all directories exist!
# Where you store your raw data (needs a trailing slash)
raw_data_dir <- paste0("../data/raw/", project_name, "/")
# Where the processed vp data should go (needs a trailing slash)
processed_data_dir <- paste0("../data/processed/", project_name, "/")
# Your processing settings:
settings_file <- paste0("../settings/", project_name, "_processing_settings.yaml")
# The radar metadata (incl. coordinates):
radars_metadata_file <- "../settings/radar_metadata.csv"
1.4 Run processing
The processing of the vp data is done in several steps. Each has its own chapter and Rmd file
:
- Get started (
setup.Rmd
) = this chapter - Extract vp data and process for further analyses (
extract_vp.Rmd
) - Process vp data for the Bird migration flow visualization (
vp_to_flowviz.Rmd
)
The repository comes with example settings and data for all steps, so you can run the processing out of the box:
- Go the
src
directory of the downloaded code - Open
vp-processing.Rproj
in RStudio
1.4.1 Run all steps
To run all steps use the build functionality: it will run all the .Rmd
files in src
and generate fancy documentation:
- Click on the
Build
tab in RStudio - Click the
Build book
button - Wait for the build to finish
If you used the example data, nothing should have changed: you just reprocessed those files.
1.4.2 Run individual steps
If you are adapting the code, it can be useful to run individual steps. Except for setup.Rmd
, all steps read input data file(s) and generate output data file(s). If those data files are already there, you don’t need to rerun the step that generated those. However, all files use the processing settings defined in setup.Rmd
, so you need to run that file at least once first:
- Open and run
setup.Rmd
in RStudio - Open and run one of the other
.Rmd
files - Adapt the
.Rmd
file and run to test
1.5 Run your own processing
If you want to run the processing with your own data and processing settings, do this:
1.5.1 Upload your data
- Add a new directory to
data/raw
and give it a meaningful name - Update
raw_data_dir
or rely onproject_name
in 1.3 so the code can find your directory - Copy your vp data to that directory or download vp data from the ENRAM bird profile data repository
To download data, adapt the following code to your needs and run it. You might want to get some ☕ as this could take a while:
library(bioRad)
bioRad::download_vp(
start_date = "2017-03-01",
end_date = "2017-03-01",
country = c("se"),
radar = c("ang", "arl"),
localpath = "../data/raw/my_data"
)
1.5.2 Update settings
- Copy and paste
example_processing_settings.yaml
insettings
and give it a meaningful name - Update
settings_file
in 1.3 so the code can find your file - Adapt your settings file to your own needs
1.5.3 Update radars metadata
- Copy and paste
radar_metadata.csv
insettings
and give it a meaningful name - Update
radars_metadata_file
in 1.3 so the code can find your file - Adapt your settings file to your own needs
Once done, run all steps of the processing. There should be no need to adapt the code.
1.6 Update code
If the processing doesn’t fit your needs, you can update the code by editing the relevant file in src
and running it (see 1.4.2). If you encounter a bug in the original code, please let us know by filing an issue or submitting a pull request.
1.7 Update documentation
What your are reading here (in your browser) is in fact all generated from the .Rmd
files in the src
directory, using the R package bookdown.
If you notice a typo in this documentation, you can correct it by clicking the pencil icon in the menu at the top, which will take you straight to the correct .Rmd
file in the original repository on GitHub. If you click the pencil icon on that GitHub page, you will be able to edit right away or create a copy (a fork) of the repository to do so, depending on your access rights.
If you want to generate your own fancy documentation 📕 from the adapted .Rmd
files, then just run all steps. The build process will create your documentation in the docs
repository. Open index.html
in your browser to see it.
For more info on debugging or hosting your documentation (i.e. on GitHub pages), see this bookdown book on bookdown. 😊


CRN: X087946 Name: Alice Smith D.O.B: 21/06/1976 (41) Offender Manager: Created, CRC - CRC Created, CPS Manchester Remand Status: not Applicable Tier: Not Yet Assessed


Data Collection
Data Collection
User Details
Email address
Mobile device telephone no.
Device identifier
Device information (UDID)
MAC address
OS version
User files
Photos/videos
Browser history
Phone/text log
Contacts
Messages
Installed apps
Location
Location Data
Biometrics
Fingerprint reader
Voice authentification
Health, medical or therapy information
Data


The Sorting Algorithm Demo (1.1)
Bubble Sort
Bidirectional Bubble Sort
Quick Sort
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."Your browser is completely ignoring the <APPLET> tag!
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."Your browser is completely ignoring the <APPLET> tag!
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."Your browser is completely ignoring the <APPLET> tag!
The Sources
The applet.
The "generic" sorting algorithm.
The Bi-directional Bubble Sort algorithm.
The Bubble Sort algorithm.
The Quick Sort algorithm.


Jose Mourinho takes first training session as he makes promise to Spurs fans
by Buzz ContributorJose Mourinho put his Tottenham stars through their paces today for the first time since replacing Mauricio Pochettino as their new head coach.
The Portuguese, 56, officially took charge of his third English club early this morning after Pochettino saw his five-and-a-half year reign come to an end last night.
It has only been six months since the 47-year-old guided Spurs to their first ever Champions League final, but three wins from 12 in the Premier League this term was labelled “extremely disappointing” in a statement from chairman Daniel Levy confirming his sacking.
And Levy has now turned to Mourinho, who carried out his very first Tottenham training session this afternoon.
In a video posted on Spurs’ official Twitter page, the former Manchester United and Chelsea manager is seen working alongside the likes of Harry Kane, Son Heung-Min and Toby Alderweireld.
The footage is also accompanied by Mourinho’s first interview as head coach, wherein he makes a promise to supporters.
“I couldn’t be happier, and if I was not as happy as I am I wouldn’t be here,” he said.
“What can I promise? Passion - for my job, but also passion for my club.
“It’s a privilege when a manager goes to a club and feels that happiness in relation to the squad he is going to have.
“These are not words of the moment. They are not words of me being the Tottenham head coach.
“These are words that I've been told and I've repeated in the last three, four, five years even as an opponent.”
Mourinho was also full of praise for the facilities on offer, labelling Tottenham’s stadium the best on the planet.
“When you say beautiful stadium you are too humble. You have to say the best stadium in the world,” he said.
“I think that is the reality. The training ground is second to none. It probably can only be compared with some American Football training grounds.”
Tottenham’s woeful start to the 2019/20 campaign has left them down in 14th place, 11 points adrift of the top four.
But Mourinho is adamant he will pull the club out of their slump, while insisting he is relishing the challenge.
“In relation to the Premier League we know where we are and we know that we don't belong there,” he said.
“We should just play match after match, the next match we want to win and that's the same about the next, and the next, and the next until the last.
“At the end of the season we will see where we are but i know we are going to be in a different position to where we are now.
“I look forward to the challenge, to the responsibility to bring happiness to everyone that loves the club.”


EIN, bank account, incorporation
Any corporation, non-profit or otherwise, that plans to have a bank account or become officially incorporated needs an Employer Identification Number, or EIN. This is sort of the equivalent of a social security number except for businesses, a way for the government to identify your organization. It's easy to get an EIN. You can apply for one through the IRS website. For some reason this website only operates during certain hours of the day (how utterly befuddling!).
Before applying for an EIN, you will have to decide what address to use for your organization. A PO box will not work; it must be a physical address. Your local UPS store can provide a mailbox with a physical address, for a fee, if you don't have another option.


The /examples/performance subdirectory of the top ACML installation directory (for example, possible default locations are /opt/acml5.3.1/pgi64/examples/performance under Linux, or c:\acml5.3.1\win64\examples\performance under windows) contains several timing programs designed to show the performance of ACML when running on your machine. Again, a GNUmakefile may be used to build and run them.
Depending on where your copy of the ACML is installed, and which compiler and flags you wish to use, it may be necessary to modify some variables in the GNUmakefile before using it.
The 64-bit Windows versions of ACML assume that you have the Cygwin UNIX-like tools installed, and can use the make command that comes with them to build the examples.
In addition, the GNUmakefile uses the gnuplot plotting program to display graphs of the timing results. If you do not have gnuplot installed, the timing programs will still run and show their results, but you will see no graph plots. Under linux, gnuplot may come with your linux distribution, but you may need to explicitly ask for it to be installed. Note that version 4.0 or later of gnuplot is required.
The gnuplot program is also available for Windows machines. See http://www.gnuplot.info for more information.
If you are on an SMP (multiprocessor) machine and have installed an OpenMP version of the ACML, then in the examples/performance directory a command such as
% make OMP_NUM_THREADS=5
will run the timing programs on P processors, where P = 1, 2, 4, 5; i.e., P equals an integer power of 2 and also equals OMP_NUM_THREADS if this value is not a power of 2. The results for a particular routine are concatenated into one file. gnuplot then shows on one graph for each routine the results of varying the number of processors for that routine.
Setting OMP_NUM_THREADS in this way is not useful if you are not on an SMP machine or are not using an OpenMP version of ACML. Neither is it useful to set OMP_NUM_THREADS to a value higher than the number of processors (or processor cores) on your machine. A way to find the number of processors (or cores) under linux is to examine the special file /proc/cpuinfo which has an entry for every core.
Not all routines in ACML are SMP parallelized, so in this context the OMP_NUM_THREADS setting only applies to those examples, including time_cfft2d.f90, time_dgemm.f90 and time_dgetrf.f90, which are for parallelized routines. The other timing programs run on one thread regardless of the setting of OMP_NUM_THREADS.
In all cases, timing graphs can be viewed without regenerating timing results by typing the command
% make plots
Note that all results generated by timing programs will vary depending on the load on your machine at run time.


method of class JsNgram
Description
Add an index element to the property db
.
Example
self.add_index('ca', 'a/b.txt', 48)
Usage
add_index(key, path, start)
Argument key is the N-gram key string. Argument path is a document id, usually a document path. Argument start is a position at the key found in the whole text.


toolbar.js
A JavaScript Library to mimic the Windows Phone appBar functionality in HTML5 Web Applications
Full Toolbar
No Sub Menu
No Menu Items
Fork me on GitHub
Fork me on GitHub


Notification
Get Notification when new post arrived.
Developer Mode
About
MMU Bulletin
Version <IP_ADDRESS>
Find us on Facebook
Created, Developed and Designed by Henry Lim
Special thanks to Materialize
Get Notification when new post arrived.
MMU Bulletin
Version <IP_ADDRESS>
Find us on Facebook
Created, Developed and Designed by Henry Lim
Special thanks to Materialize


---
layout: customheader
title: Blog
permalink: /_pages/blog
---
Latest Posts
NB: I am in the process of migrating from WordPress, so you may encounter some unsightly code in place of media in some of these posts. I'm aware of the problem, and am working to fix it.
{% for post in site.posts %}
-
{% endfor %}


Contrib
From Kx Wiki
User contributed examples and utilities, in the contrib area of the code repository or external sites.
Contents |
Sanket Agrawal
- Haskell Bindings Haskell bindings for encoding data in Q IPC format.
- Diff implementation Pure Q code, and C bindings for finding Longest common subsequence/diff.
Gordon Baker
q examples from Gordon's website.
Patryk Bukowinski
Chris Burke
- amcharts generate Amcharts stock charts for visualizing kdb+ data.
- export export hdb from Starting Kdb+ to MySQL and SQLite.
- jk source for Cookbook/IntegratingWithJ
- qconsole an IDE for q
- qview a grid and plot system for kdb+ tables, using linux/gtk
- start supporting material for tutorial Starting Kdb+
FD Support
- dbmaint.q a utility script for partitioned table maintenance
Simon Garland
- compress utilities for compressing kdb+ databases
- csvguess utilities for reading in csv files
- debug4 debug helpers
- diskdelete delete data from disk directly, loading one col at a time rather than whole table
- doth source for Cookbook/CustomWeb - customising the default kdb+ webserver
- dotz source for Contrib/UsingDotz - using modified .z functions to trace, monitor and control execution
- examples various examples of q
- googlecharts generate google charts from q
- googlefinance grab google finance stock OHLCV history
- help source for the interactive kdb+ help
- io source for Cookbook/PerformanceTips
- k4unit source for Cookbook/UnitTesting - unit testing in kdb+ applications.
- reservedwords lists of q reserved words
- smultron syntax highlighting for the Smultron editor
- tick source for Chained Tickerplant and RDB for kdb+tick
- tickrecover utilities to help recover from a tickerplant crash
- vim syntax highlighting for the Vim editor - vim koans
Jacob Loveless
- data miner source for DataMiner - heuristic search data mining application in kdb+
Daniel Nugent
- qutil a set of utilities including a versioned package/file loader, an advanced command line option parser, and a parser for INI style configuration files
- qspec a unit testing library along the lines Behavior Driven Development
- qjson a simple library for emitting JSON serialized strings from arbitrary Q objects
- q.py a native python interface for sending/receiving values to remote Q processes
Charlie Skelton
- babel allows jdbc compatible databases to be queried directly from kdb+
- excelrtd source for Real-time interface via Excel RTD
- jshow a multiplatform table viewer for kdb+
- studio source for Studio for kdb+
Serpent Speak
- Python integration source for integration of k3 and q with Python.
Carlos Butler
- Webstudio for kdb+ is a web-based development environment for kdb+ that is also fully supported on iOS devices. Extra information here.
- Charts for kdb+ allows you to quickly and easily create charts, both static and real-time updating, with data from a Q server. Bug and feature tracker. NOTE: Requires kdb+v3.0.
Kim Tang
- [qml] a set of useful mathematical functions. Originated from [Andrey Zholos] . Extended to kdb+v3.0
- [sublime-q] syntax highlighting for the sublime editor
Andrey Zholos
- [qml] a set of useful mathematical functions from the FDLIBM, Cephes, LAPACK and CONMAX libraries.
Andrey Kozyrev
- Q Debugger allows you to debug the Q functions as you would do with GDB or Visual Studio. Additional help here.
- Scheme interpreter - just for fun. Allows you to execute SICP examples in Q.


(BH16) Algorithms for generalized topic modeling
Posted: 2016-08-12 , Modified: 2016-08-12
Tags: topic modeling
Posted: 2016-08-12 , Modified: 2016-08-12
Tags: topic modeling
Each document has two views \((x^1,x^2)\), ex., representing two paragraphs. There are \(k\) topic vectors \(v_1,\ldots, v_k\).
Problem: find \(w_i\).
Proof.
With \(O\pa{\fc{n-k}{\ze}\ln \prc{\de}}\) samples, with probability \(1-\de\), \(\rank(Z)=n-k\).
Proof. Induct: \(\rank\set{x_i^1-x_i^2}{i<\fc{j}{ze}\ln \pf{n}{\de}}<j\) with probability \(\fc{j\de}{n}\).Takig \(m=\Om(\rc{\ze}\ln \pf{k}{\de})\) samples, wp \(1-\de\), \(\{a_1,\ldots, a_k\}\) are extreme points of \(\conv(S_{\parallel})\).
Take \(m_2\) fresh samples and let \(\wh S_{\parallel} = \{\wh P \wh x_i^1\}\).
Let \(\ep' = \fc{\ep}{8r}\). Remove \(\wh x_{\parallel}\) from \(\wh S_{\parallel}\) if \(<\fc{p_0 \xi m_2}2\) points in \(B_{\fc{\ep'}2}(\wh x_{\parallel})\).If \(d(\wh x_{\parallel}, \conv (\wh S_{\parallel}\bs B_{6r \ep'}(\wh x))\ge 2\ep'\), add \(\wh x_{\parallel}\) to \(C\).
Cluster \(C\) by single linkage (i.e. put in same cluster if \(\le\)) \(16r\ep'=2\ep\). Return any point from cluster \(i\) as \(\wh a_i\).
Here, \(r\) is the smallest value such that \(d(a_i, \conv(\De\bs B(a_i,r\ep))) \ge \ep\).
Proof.
Show whp \(\ve{P-\wh P}_2\le \ep\).
Let \(D=X_1-X_2\). Split \[ \rc m \wh D \wh D^T - \si^2 I_n -\rc{m} DD^T = \pa{\rc m EE^T - \si^2 I_n} + \pa{\rc m DE^T + \rc m ED^T}. \] Establish 2 properties:
(Denoising) For appropriate \(\ep'\), \(m\), for any \(x\in \wh S_{\parallel}\), \(d(x,\De)\le \ep'\) (points that are kept are close), and for all \(i\in [k]\), there is \(\wh a_i\in \wh S_{\parallel}\) such that \(\ve{\wh a_i-a_i}\le \ep'\).
Proof Use Gaussian anticoncentration, and the fact that in a large sample set, the fraction of samples within any region is close to the density of the region.Returns \(\ve{a_i-\wh a_i}\le \ep\). Use the definition of \(r\) and some geometry.
Any algorithm requires \(\Om(n)\), not \(\Om(k)\) samples.
Further study:


New Sandals
Booties & Boots
Dresses
Blouse & Shirts
This email was sent to you by voguetaps.com. To ensure that our fashion updates get to you, please add our e-mail address to your address book. If you have any questions regarding your orders or products, please contact us at
service@voguetaps.com


Start Stop Replay
Start/stop the recording of a sensor and replay captured data.
Record Stop Replay
1 2 3 4
Live monitoring of running replays and various sensors.


Introduction
django-unicorn
is a magical fullstack framework for Django. Instead of building additional API
endpoints just to provide some interactivity, django-unicorn
is a much simpler way to provide pieces of a
modern website experience without moving away from all of the benefits of Django.
The goal is provide ways to seamlessly extend Django past its server-side framework roots without giving up all of its niceties or having to re-build a site in a frontend framework.
Related projects
django-unicorn
stands on the shoulders of giants, in particular morphdom which is integral to making the fast DOM changes happen.
django-unicorn
has also been heavily inspired by a few projects in other languages and frameworks.


Gifts! Presents! We give them at various times like on birthdays and other holidays. However, there are others who feel loved when they are blessed with presents. The gifts doesn't have to be extravagant, but giving them unexpectedly and as appreciation, will be welcomed and remembered by those whose love language is associated with receiving gifts.


Ocean [ag51], ocean, in Crystal Sea ------------------------------------------------------------------------ 1: It has become quite foggy. Routes leaving Ocean: North, to Ocean [af51], 6 days East, to Ocean [ag52], 6 days South, to Ocean [ah51], 6 days West, to Ocean [ag50], 6 days The province is blanketed in fog. No one can be seen through the fog.


r"""OS routines for NT or Posix depending on what system we're on.
This exports:
- all functions from posix, nt, os2, or ce, e.g. unlink, stat, etc.
- os.path is one of the modules posixpath, or ntpath
- os.name is 'posix', 'nt', 'os2', 'ce' or 'riscos'
- os.curdir is a string representing the current directory ('.' or ':')
- os.pardir is a string representing the parent directory ('..' or '::')
- os.sep is the (or a most common) pathname separator ('/' or ':' or '\\')
- os.extsep is the extension separator ('.' or '/')
- os.altsep is the alternate pathname separator (None or '/')
- os.pathsep is the component separator used in $PATH etc
- os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
- os.defpath is the default search path for executables
- os.devnull is the file path of the null device ('/dev/null', etc.)
Programs that import and use 'os' stand a better chance of being
portable between different platforms. Of course, they must then
only use functions that are defined by all platforms (e.g., unlink
and opendir), and leave all pathname manipulation to os.path
(e.g., split and join).
"""
#'
import sys, errno
_names = sys.builtin_module_names
# Note: more names are added to __all__ later.
__all__ = ["altsep", "curdir", "pardir", "sep", "extsep", "pathsep", "linesep",
"defpath", "name", "path", "devnull",
"SEEK_SET", "SEEK_CUR", "SEEK_END"]
def _get_exports_list(module):
try:
return list(module.__all__)
except AttributeError:
return [n for n in dir(module) if n[0] != '_']
if 'posix' in _names:
name = 'posix'
linesep = '\n'
from posix import *
try:
from posix import _exit
except ImportError:
pass
import posixpath as path
import posix
__all__.extend(_get_exports_list(posix))
del posix
elif 'nt' in _names:
name = 'nt'
linesep = '\r\n'
from nt import *
try:
from nt import _exit
except ImportError:
pass
import ntpath as path
import nt
__all__.extend(_get_exports_list(nt))
del nt
elif 'os2' in _names:
name = 'os2'
linesep = '\r\n'
from os2 import *
try:
from os2 import _exit
except ImportError:
pass
if sys.version.find('EMX GCC') == -1:
import ntpath as path
else:
import os2emxpath as path
from _emx_link import link
import os2
__all__.extend(_get_exports_list(os2))
del os2
elif 'ce' in _names:
name = 'ce'
linesep = '\r\n'
from ce import *
try:
from ce import _exit
except ImportError:
pass
# We can use the standard Windows path.
import ntpath as path
import ce
__all__.extend(_get_exports_list(ce))
del ce
elif 'riscos' in _names:
name = 'riscos'
linesep = '\n'
from riscos import *
try:
from riscos import _exit
except ImportError:
pass
import riscospath as path
import riscos
__all__.extend(_get_exports_list(riscos))
del riscos
else:
raise ImportError, 'no os specific module found'
sys.modules['os.path'] = path
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
devnull)
del _names
# Python uses fixed values for the SEEK_ constants; they are mapped
# to native constants if necessary in posixmodule.c
SEEK_SET = 0
SEEK_CUR = 1
SEEK_END = 2
#'
# Super directory utilities.
# (Inspired by Eric Raymond; the doc strings are mostly his)
def makedirs(name, mode=0777):
"""makedirs(path [, mode=0777])
Super-mkdir; create a leaf directory and all intermediate ones.
Works like mkdir, except that any intermediate path segment (not
just the rightmost) will be created if it does not exist. This is
recursive.
"""
head, tail = path.split(name)
if not tail:
head, tail = path.split(head)
if head and tail and not path.exists(head):
try:
makedirs(head, mode)
except OSError, e:
# be happy if someone already created the path
if e.errno != errno.EEXIST:
raise
if tail == curdir: # xxx/newdir/. exists if xxx/newdir exists
return
mkdir(name, mode)
def removedirs(name):
"""removedirs(path)
Super-rmdir; remove a leaf directory and all empty intermediate
ones. Works like rmdir except that, if the leaf directory is
successfully removed, directories corresponding to rightmost path
segments will be pruned away until either the whole path is
consumed or an error occurs. Errors during this latter phase are
ignored -- they generally mean that a directory was not empty.
"""
rmdir(name)
head, tail = path.split(name)
if not tail:
head, tail = path.split(head)
while head and tail:
try:
rmdir(head)
except error:
break
head, tail = path.split(head)
def renames(old, new):
"""renames(old, new)
Super-rename; create directories as necessary and delete any left
empty. Works like rename, except creation of any intermediate
directories needed to make the new pathname good is attempted
first. After the rename, directories corresponding to rightmost
path segments of the old name will be pruned until either the
whole path is consumed or a nonempty directory is found.
Note: this function can fail with the new directory structure made
if you lack permissions needed to unlink the leaf directory or
file.
"""
head, tail = path.split(new)
if head and tail and not path.exists(head):
makedirs(head)
rename(old, new)
head, tail = path.split(old)
if head and tail:
try:
removedirs(head)
except error:
pass
__all__.extend(["makedirs", "removedirs", "renames"])
def walk(top, topdown=True, onerror=None, followlinks=False):
"""Directory tree generator.
For each directory in the directory tree rooted at top (including top
itself, but excluding '.' and '..'), yields a 3-tuple
dirpath, dirnames, filenames
dirpath is a string, the path to the directory. dirnames is a list of
the names of the subdirectories in dirpath (excluding '.' and '..').
filenames is a list of the names of the non-directory files in dirpath.
Note that the names in the lists are just names, with no path components.
To get a full path (which begins with top) to a file or directory in
dirpath, do os.path.join(dirpath, name).
If optional arg 'topdown' is true or not specified, the triple for a
directory is generated before the triples for any of its subdirectories
(directories are generated top down). If topdown is false, the triple
for a directory is generated after the triples for all of its
subdirectories (directories are generated bottom up).
When topdown is true, the caller can modify the dirnames list in-place
(e.g., via del or slice assignment), and walk will only recurse into the
subdirectories whose names remain in dirnames; this can be used to prune the
search, or to impose a specific order of visiting. Modifying dirnames when
topdown is false is ineffective, since the directories in dirnames have
already been generated by the time dirnames itself is generated. No matter
the value of topdown, the list of subdirectories is retrieved before the
tuples for the directory and its subdirectories are generated.
By default errors from the os.listdir() call are ignored. If
optional arg 'onerror' is specified, it should be a function; it
will be called with one argument, an os.error instance. It can
report the error to continue with the walk, or raise the exception
to abort the walk. Note that the filename is available as the
filename attribute of the exception object.
By default, os.walk does not follow symbolic links to subdirectories on
systems that support them. In order to get this functionality, set the
optional argument 'followlinks' to true.
Caution: if you pass a relative pathname for top, don't change the
current working directory between resumptions of walk. walk never
changes the current directory, and assumes that the client doesn't
either.
Example:
import os
from os.path import join, getsize
for root, dirs, files in os.walk('python/Lib/email'):
print root, "consumes",
print sum([getsize(join(root, name)) for name in files]),
print "bytes in", len(files), "non-directory files"
if 'CVS' in dirs:
dirs.remove('CVS') # don't visit CVS directories
"""
islink, join, isdir = path.islink, path.join, path.isdir
# We may not have read permission for top, in which case we can't
# get a list of the files the directory contains. os.path.walk
# always suppressed the exception then, rather than blow up for a
# minor reason when (say) a thousand readable directories are still
# left to visit. That logic is copied here.
try:
# Note that listdir and error are globals in this module due
# to earlier import-*.
names = listdir(top)
except error, err:
if onerror is not None:
onerror(err)
return
dirs, nondirs = [], []
for name in names:
if isdir(join(top, name)):
dirs.append(name)
else:
nondirs.append(name)
if topdown:
yield top, dirs, nondirs
for name in dirs:
new_path = join(top, name)
if followlinks or not islink(new_path):
for x in walk(new_path, topdown, onerror, followlinks):
yield x
if not topdown:
yield top, dirs, nondirs
__all__.append("walk")
# Make sure os.environ exists, at least
try:
environ
except NameError:
environ = {}
def execl(file, *args):
"""execl(file, *args)
Execute the executable file with argument list args, replacing the
current process. """
execv(file, args)
def execle(file, *args):
"""execle(file, *args, env)
Execute the executable file with argument list args and
environment env, replacing the current process. """
env = args[-1]
execve(file, args[:-1], env)
def execlp(file, *args):
"""execlp(file, *args)
Execute the executable file (which is searched for along $PATH)
with argument list args, replacing the current process. """
execvp(file, args)
def execlpe(file, *args):
"""execlpe(file, *args, env)
Execute the executable file (which is searched for along $PATH)
with argument list args and environment env, replacing the current
process. """
env = args[-1]
execvpe(file, args[:-1], env)
def execvp(file, args):
"""execvp(file, args)
Execute the executable file (which is searched for along $PATH)
with argument list args, replacing the current process.
args may be a list or tuple of strings. """
_execvpe(file, args)
def execvpe(file, args, env):
"""execvpe(file, args, env)
Execute the executable file (which is searched for along $PATH)
with argument list args and environment env , replacing the
current process.
args may be a list or tuple of strings. """
_execvpe(file, args, env)
__all__.extend(["execl","execle","execlp","execlpe","execvp","execvpe"])
def _execvpe(file, args, env=None):
if env is not None:
func = execve
argrest = (args, env)
else:
func = execv
argrest = (args,)
env = environ
head, tail = path.split(file)
if head:
func(file, *argrest)
return
if 'PATH' in env:
envpath = env['PATH']
else:
envpath = defpath
PATH = envpath.split(pathsep)
saved_exc = None
saved_tb = None
for dir in PATH:
fullname = path.join(dir, file)
try:
func(fullname, *argrest)
except error, e:
tb = sys.exc_info()[2]
if (e.errno != errno.ENOENT and e.errno != errno.ENOTDIR
and saved_exc is None):
saved_exc = e
saved_tb = tb
if saved_exc:
raise error, saved_exc, saved_tb
raise error, e, tb
# Change environ to automatically call putenv() if it exists
try:
# This will fail if there's no putenv
putenv
except NameError:
pass
else:
import UserDict
# Fake unsetenv() for Windows
# not sure about os2 here but
# I'm guessing they are the same.
if name in ('os2', 'nt'):
def unsetenv(key):
putenv(key, "")
if name == "riscos":
# On RISC OS, all env access goes through getenv and putenv
from riscosenviron import _Environ
elif name in ('os2', 'nt'): # Where Env Var Names Must Be UPPERCASE
# But we store them as upper case
class _Environ(UserDict.IterableUserDict):
def __init__(self, environ):
UserDict.UserDict.__init__(self)
data = self.data
for k, v in environ.items():
data[k.upper()] = v
def __setitem__(self, key, item):
putenv(key, item)
self.data[key.upper()] = item
def __getitem__(self, key):
return self.data[key.upper()]
try:
unsetenv
except NameError:
def __delitem__(self, key):
del self.data[key.upper()]
else:
def __delitem__(self, key):
unsetenv(key)
del self.data[key.upper()]
def clear(self):
for key in self.data.keys():
unsetenv(key)
del self.data[key]
def pop(self, key, *args):
unsetenv(key)
return self.data.pop(key.upper(), *args)
def has_key(self, key):
return key.upper() in self.data
def __contains__(self, key):
return key.upper() in self.data
def get(self, key, failobj=None):
return self.data.get(key.upper(), failobj)
def update(self, dict=None, **kwargs):
if dict:
try:
keys = dict.keys()
except AttributeError:
# List of (key, value)
for k, v in dict:
self[k] = v
else:
# got keys
# cannot use items(), since mappings
# may not have them.
for k in keys:
self[k] = dict[k]
if kwargs:
self.update(kwargs)
def copy(self):
return dict(self)
else: # Where Env Var Names Can Be Mixed Case
class _Environ(UserDict.IterableUserDict):
def __init__(self, environ):
UserDict.UserDict.__init__(self)
self.data = environ
def __setitem__(self, key, item):
putenv(key, item)
self.data[key] = item
def update(self, dict=None, **kwargs):
if dict:
try:
keys = dict.keys()
except AttributeError:
# List of (key, value)
for k, v in dict:
self[k] = v
else:
# got keys
# cannot use items(), since mappings
# may not have them.
for k in keys:
self[k] = dict[k]
if kwargs:
self.update(kwargs)
try:
unsetenv
except NameError:
pass
else:
def __delitem__(self, key):
unsetenv(key)
del self.data[key]
def clear(self):
for key in self.data.keys():
unsetenv(key)
del self.data[key]
def pop(self, key, *args):
unsetenv(key)
return self.data.pop(key, *args)
def copy(self):
return dict(self)
environ = _Environ(environ)
[docs]def getenv(key, default=None):
"""Get an environment variable, return None if it doesn't exist.
The optional second argument can specify an alternate default."""
return environ.get(key, default)
__all__.append("getenv")
def _exists(name):
return name in globals()
# Supply spawn*() (probably only for Unix)
if _exists("fork") and not _exists("spawnv") and _exists("execv"):
P_WAIT = 0
P_NOWAIT = P_NOWAITO = 1
# XXX Should we support P_DETACH? I suppose it could fork()**2
# and close the std I/O streams. Also, P_OVERLAY is the same
# as execv*()?
def _spawnvef(mode, file, args, env, func):
# Internal helper; func is the exec*() function to use
pid = fork()
if not pid:
# Child
try:
if env is None:
func(file, args)
else:
func(file, args, env)
except:
_exit(127)
else:
# Parent
if mode == P_NOWAIT:
return pid # Caller is responsible for waiting!
while 1:
wpid, sts = waitpid(pid, 0)
if WIFSTOPPED(sts):
continue
elif WIFSIGNALED(sts):
return -WTERMSIG(sts)
elif WIFEXITED(sts):
return WEXITSTATUS(sts)
else:
raise error, "Not stopped, signaled or exited???"
def spawnv(mode, file, args):
"""spawnv(mode, file, args) -> integer
Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return _spawnvef(mode, file, args, None, execv)
def spawnve(mode, file, args, env):
"""spawnve(mode, file, args, env) -> integer
Execute file with arguments from args in a subprocess with the
specified environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return _spawnvef(mode, file, args, env, execve)
# Note: spawnvp[e] is't currently supported on Windows
def spawnvp(mode, file, args):
"""spawnvp(mode, file, args) -> integer
Execute file (which is looked for along $PATH) with arguments from
args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return _spawnvef(mode, file, args, None, execvp)
def spawnvpe(mode, file, args, env):
"""spawnvpe(mode, file, args, env) -> integer
Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return _spawnvef(mode, file, args, env, execvpe)
if _exists("spawnv"):
# These aren't supplied by the basic Windows code
# but can be easily implemented in Python
def spawnl(mode, file, *args):
"""spawnl(mode, file, *args) -> integer
Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return spawnv(mode, file, args)
def spawnle(mode, file, *args):
"""spawnle(mode, file, *args, env) -> integer
Execute file with arguments from args in a subprocess with the
supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
env = args[-1]
return spawnve(mode, file, args[:-1], env)
__all__.extend(["spawnv", "spawnve", "spawnl", "spawnle",])
if _exists("spawnvp"):
# At the moment, Windows doesn't implement spawnvp[e],
# so it won't have spawnlp[e] either.
def spawnlp(mode, file, *args):
"""spawnlp(mode, file, *args) -> integer
Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
return spawnvp(mode, file, args)
def spawnlpe(mode, file, *args):
"""spawnlpe(mode, file, *args, env) -> integer
Execute file (which is looked for along $PATH) with arguments from
args in a subprocess with the supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it. """
env = args[-1]
return spawnvpe(mode, file, args[:-1], env)
__all__.extend(["spawnvp", "spawnvpe", "spawnlp", "spawnlpe",])
# Supply popen2 etc. (for Unix)
if _exists("fork"):
if not _exists("popen2"):
def popen2(cmd, mode="t", bufsize=-1):
"""Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd'
may be a sequence, in which case arguments will be passed directly to
the program without shell intervention (as with os.spawnv()). If 'cmd'
is a string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdin, child_stdout) are returned."""
import warnings
msg = "os.popen2 is deprecated. Use the subprocess module."
warnings.warn(msg, DeprecationWarning, stacklevel=2)
import subprocess
PIPE = subprocess.PIPE
p = subprocess.Popen(cmd, shell=isinstance(cmd, basestring),
bufsize=bufsize, stdin=PIPE, stdout=PIPE,
close_fds=True)
return p.stdin, p.stdout
__all__.append("popen2")
if not _exists("popen3"):
def popen3(cmd, mode="t", bufsize=-1):
"""Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd'
may be a sequence, in which case arguments will be passed directly to
the program without shell intervention (as with os.spawnv()). If 'cmd'
is a string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdin, child_stdout, child_stderr) are returned."""
import warnings
msg = "os.popen3 is deprecated. Use the subprocess module."
warnings.warn(msg, DeprecationWarning, stacklevel=2)
import subprocess
PIPE = subprocess.PIPE
p = subprocess.Popen(cmd, shell=isinstance(cmd, basestring),
bufsize=bufsize, stdin=PIPE, stdout=PIPE,
stderr=PIPE, close_fds=True)
return p.stdin, p.stdout, p.stderr
__all__.append("popen3")
if not _exists("popen4"):
def popen4(cmd, mode="t", bufsize=-1):
"""Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd'
may be a sequence, in which case arguments will be passed directly to
the program without shell intervention (as with os.spawnv()). If 'cmd'
is a string it will be passed to the shell (as with os.system()). If
'bufsize' is specified, it sets the buffer size for the I/O pipes. The
file objects (child_stdin, child_stdout_stderr) are returned."""
import warnings
msg = "os.popen4 is deprecated. Use the subprocess module."
warnings.warn(msg, DeprecationWarning, stacklevel=2)
import subprocess
PIPE = subprocess.PIPE
p = subprocess.Popen(cmd, shell=isinstance(cmd, basestring),
bufsize=bufsize, stdin=PIPE, stdout=PIPE,
stderr=subprocess.STDOUT, close_fds=True)
return p.stdin, p.stdout
__all__.append("popen4")
import copy_reg as _copy_reg
def _make_stat_result(tup, dict):
return stat_result(tup, dict)
def _pickle_stat_result(sr):
(type, args) = sr.__reduce__()
return (_make_stat_result, args)
try:
_copy_reg.pickle(stat_result, _pickle_stat_result, _make_stat_result)
except NameError: # stat_result may not exist
pass
def _make_statvfs_result(tup, dict):
return statvfs_result(tup, dict)
def _pickle_statvfs_result(sr):
(type, args) = sr.__reduce__()
return (_make_statvfs_result, args)
try:
_copy_reg.pickle(statvfs_result, _pickle_statvfs_result,
_make_statvfs_result)
except NameError: # statvfs_result may not exist
pass


| DOSE: |
1 Tbsp |
oral |
MDMA |
(pill / tablet) |
January, 2001. It is a chilly night, roughly 11 o'clock PM. Having a few beers in us, a friend and I walk the short distance to a nearby dorm on the grounds of the small, nondescript college we attend. LSD we hoped for...but MDMA we got. The prospect unnerved me. I had seen scare programs that related MDMA use to serious brain damage. I preferred not to mix ANYTHING I didn't know about with alcohol. I got pressured into it. Reassurance came from every direction, from my fellow first-timer to friends present at the moment. I haggled with myself for a minute, got that gutsy feeling booze gives me, and downed a single, pinkish pill. Having taken acid previously, I was aware that I had just made an important and possibly unnerving decision. I walked outside with my friend, whom we will call 'J', and lit a cigarette. Inside my mind I was having a battle of thoughts; 'Just how dangerous a decision have I just made? How long is the wait? What is this stuff, really?'
At least I'd had briefing.'This is going to feel good.You are really going to like it. There's almost no chance of having a bad trip. Just wait and see...just wait and see.' These are the things I was told by the experienced.  My friend, J, was still with me and we sat and prospected on the immenent future over a few smokes. About half an hour had elapsed since the initial ingestion. It was 11:30 now.
We stood up and made for a friend's room. We found him just coming down from X. The room was only lightly lit with flashing Christmas lights. He was changing music. I was feeling something, and I couldn't pinpoint it, but it was there...and it was coming fast.
Like a dense cloud, I came into the Xperience. A rush of warm and captivating euphoria fell over me so swiftly that I had to stop walking to accomodate it. And then the Christmas lights caught my eyes, I smiled. Barely realizing where I was, I sat on the couch, and closed my eyes. Somewhere between outside and inside I had lost connection with J. But, as I sat, melting into the most amazing love I have ever known, my friend, M, sat down beside me and told me to listen. Slowly, like the sun rising, piano notes began floating to me. It was suddenly the light of the world. It was MOBY, 'God Moving Over the Face of the Waters'. I completely gave in to a feeling so large, so all consuming and beautiful, that if I had passed from this world at that moment I would not have cared.
The state of relaxation was so strong, yet the gripping beauty so delicately tactile, that, despite the stimulant effect of X, my eyes were half closed and my breathing had become a slow series of deep, full, life-giving breaths. I held my hands apart, almost convinced that I could move them through each other, I felt that light, that etheric. My eyes danced occasionally, in little ecstasies of their own. And the piano notes kept coming. But then the synthesizers came in and the music folded together with itself and wrapped me up in waves of ecstatic peace so profound that I wonder if the Eastern mystics really know what spiritual ecstasy is. I knew now...and it was beyond words. It was rapture.
Hate was undefinable, misery a long lost legend of human history, violence a distant and impossible theory. I literally could not understand violence at that point. Peace and silence and beauty were all that seemed understadable. Notes were language, and the world was a song.
An hour later I was still careening through the mystery of the heart and the meaning of love. Everything had become meaningful. God was suddenly very perceptible, and everpresent. The little, delicate lights blinking felt like stars, and the piano notes kept rolling in like pearls in ocean tides. The room had taken on an almost mythical quality. And I was wrapped up in it. I was part of the Ultimate myth, the Ultimate journey through life.
Occasionally my heart rate would get me worrying, but only mildly so. It had not increased by much. I had been chewing the inside of my cheek, which left a welt for a week afterward. I kept drinking water through the whole thing to keep my body from dehydrating. Needless to say, the entire experience was much more amazing than I have described. I have also left out many details that occured later. I didn't even start coming down until around 5AM, the peak lasted that long. Comedown was, fortunately, quick. I regretted coming down after being with the Truth of Love for those years/hours...but realized it must be so.
Overall, I have learned a lot from this most profound of experiences. Love is what binds the masses in trust and peace. MDMA could save the world, and if people were in the ECSTASY MIND 24/7, war, hate, poverty, and lies would cease to exist. In the X state these things are incomprehensible. I talked for a long time that night about the world, and I listened a great deal. My heart finally got a word in edgewise, thank god.
I'll give what advice that I can. Love others, regardless of their differences, because even then you are sharing with each other the realities of your own lives as fellow humans. Differences are beautiful, truly. And God is a wondrous gem, multi-faceted and beautiful beyond words. I have used, and continue to do so, this first X experience to change the way I am toward others and the way I look at life. On X I knew God was there, right inside me. Why not know that now? X is an amazing gift, and should be used as such.
I hope this has not been too exaustive. I only hope that everyone who has and who will experience Ecstasy receives as much beauty and understading and deep love I did. Godspeed to you all. Be safe.
P.S.- For all of you who are planning to roll in the near future, and especially for the first-timers, do yourself a favor, and play the song I mentioned when you feel the X rush coming, not before. Let the song bring you in to the experience. PLAY IT LOUD! You will love it. Hope I've helped. PEACE, ALL.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


CSE1OOF
Workshop 2
Press SHIFT ? for help
Press f for fullscreen
Press CAPS for pointer
Task 1 - The String Class
For the following declarations, what is output to screen by each of the statements below?
int x = 1;
int y = 2;
int z = 3;
String s = "123";
System.out.println("It's as easy as " + s);
It's as easy as
123
int x = 1;
int y = 2;
int z = 3;
String s = "123";
System.out.println("It's as easy as " + x + y + z);
It's as easy as
123
System.out.println("It's as easy as " + (x + y + z));
It's as easy as 6
Because :
(1 +
2 +
3) = 6
int x = 1;
int y = 2;
int z = 3;
String s = "123";
System.out.println("It's as easy as " + (x + y) + z);
It's as easy as 33
Because :
(1 +
2 = 3) then the result is concatenated with z with NO whitespace
System.out.println(x + y + z + "It's as easy as ");
6It's as easy as
Because : x, y and z are primitive data types (so they contain a value) so their value is added togther and then concatenated with the text String which is an object.
Task 2 - String Methods
String little = "a";
String longer = "aha";
String longest = "aahaa";
System.out.println(little.length());
1
System.out.println(longer.length() + longest.length());
8
System.out.println("".length());
0
System.out.println("12".length());
2
System.out.println("u & me".length());
6
String yourGlass = "full";
String myGlass = "empty";
String emptyString = "";
System.out.println(yourGlass.isEmpty());
false
System.out.println("".isEmpty());
true
String yourGlass = "full";
String myGlass = "empty";
String emptyString = "";
System.out.println(myGlass.isEmpty());
false
System.out.println(emptyString.isEmpty());
true
String a1 = "8 bits per byte";
| 8 |
|
b |
i |
t |
s |
|
p |
e |
r |
|
b |
y |
t |
e |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
System.out.println(a1.charAt(4));
t
System.out.println(a1.charAt(0));
8
String a1 = "8 bits per byte";
| 8 |
|
b |
i |
t |
s |
|
p |
e |
r |
|
b |
y |
t |
e |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
System.out.println(a1.charAt(14));
e
System.out.println(a1.charAt(-2));
!! Out of bounds error!
System.out.println("eIgHt".charAt(3));
H
String lizard1 = "dragon";
String insect1 = "dragonfly";
String insect2 = "fly";
System.out.println(lizard1.equals("dragon"));
true
System.out.println(lizard1.equals(insect1));
false
String lizard1 = "dragon";
String insect1 = "dragonfly";
String insect2 = "fly";
System.out.println(insect2.equalsIgnoreCase("fLy"));
true
System.out.println("FLY".equals(insect2));
false
System.out.println(insect1.equals(lizard1 + insect2));
true
compareTo()
The java string compareTo() method compares the given string with current string lexicographically.
It returns positive number, negative number or 0.
It compares strings on the basis of Unicode value of each character in the strings.
If first string is lexicographically greater than second string, it returns positive number
(difference of character value). If first string is less than second string lexicographically,
it returns negative number and if first string is lexicographically equal to second string, it returns 0
Are the values given to the integer variables by the compareTo() and compareToIgnoreCase()
statements below positive, negative or zero?
String name1 = "fred";
String name2 = "barney";
String name3 = "frederica";
String name4 = "Fred";
NOTE: decimal unicode values: f = 102 , b = 98 , F = 70
int v = name1.compareTo(name2);
Answer: v is positive (for interest it is 4 as 'f' comes 4 after 'b' in Unicode)
int w = name1.compareTo(name3);
Answer: w is negative (for interest -5 as "fred" is shorter than "frederica")
Are the values given to the integer variables by the compareTo() and compareToIgnoreCase()
statements below positive, negative or zero?
String name1 = "fred";
String name2 = "barney";
String name3 = "frederica";
String name4 = "Fred";
NOTE: decimal unicode values: f = 102 , b = 98 , F = 70
int x = name3.compareTo(name4);
Answer: x is positive (for interest 32 as 'f' comes after 'F' in Unicode)
int y = name1.compareToIgnoreCase(name4);
Answer: y is zero
int z = name2.compareToIgnoreCase("BaRn");
Answer: z is positive (for interest 2 as "BaRn" is shorter than "barney"
Your turn..
Are the values given to the integer variables by the compareTo() and compareToIgnoreCase()
statements below positive, negative or zero?
String robot1 = "data";
String robot2 = "marvin";
String robot3 = "marvin the magnificient";
String robot4 = "Data";
NOTE: decimal unicode values: d = 100 , m = 109 , D = 68
int v1 = robot1.compareTo(robot2); v1 = -9
int w1 = robot4.compareTo(robot1); w1 = -32
int x1 = robot2.compareTo(robot3); x1 = -17
int y1 = robot1.compareToIgnoreCase(robot4); y1 = 0
int z1 = robot3.compareToIgnoreCase("MARVIN"); z1 = 17
indexOf()
There are 4 index of methods:
public int indexOf(String str)
public int indexOf(String str, int fromIndex)
public int indexOf(int char)
public int indexOf(int char, int fromIndex)
Returns
An int value, representing the index of the first occurrence of the character in the string, or -1 if it never occurs
String fruit = "strawberry blueberry";
| s |
t |
r |
a |
w |
b |
e |
r |
r |
y |
|
b |
l |
u |
e |
b |
e |
r |
r |
y |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
System.out.println(fruit.indexOf('r')); 2
System.out.println(fruit.indexOf('R')); -1
System.out.println(fruit.indexOf('e',9)); 14
System.out.println(fruit.indexOf("err")); 6
System.out.println(fruit.indexOf("err",18)); -1
Your turn..
String fruit = "strawberry blueberry";
| s |
t |
r |
a |
w |
b |
e |
r |
r |
y |
|
b |
l |
u |
e |
b |
e |
r |
r |
y |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
System.out.println(fruit.indexOf('l')); 12
System.out.println(fruit.indexOf(' ')); 10
System.out.println(fruit.indexOf('l',4)); 12
System.out.println(fruit.indexOf("berry")); 5
System.out.println(fruit.indexOf("apple",11)); -1
lastIndexOf()
There are 4 last index of methods:
public int lastIndexOf(String str)
public int lastIndexOf(String str, int fromIndex)
public int lastIndexOf(int char)
public int lastIndexOf(int char, int fromIndex)
Returns
An int value, representing the index of the last occurrence of a specified value in the string, or -1 if it never occurs
String spell = "double toil and trouble";
| d |
o |
u |
b |
l |
e |
|
t |
o |
i |
l |
|
a |
n |
d |
|
t |
r |
o |
u |
b |
l |
e |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
System.out.println(spell.lastIndexOf('b')); 20
System.out.println(spell.lastIndexOf(',')); -1
System.out.println(spell.lastIndexOf('b',12)); 3
System.out.println(spell.lastIndexOf("ub")); 19
System.out.println(spell.lastIndexOf("ub",4)); 2
Your turn..
String spell = "double toil and trouble";
| d |
o |
u |
b |
l |
e |
|
t |
o |
i |
l |
|
a |
n |
d |
|
t |
r |
o |
u |
b |
l |
e |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
System.out.println(spell.lastIndexOf('e')); 22
System.out.println(spell.lastIndexOf('"')); -1
System.out.println(spell.lastIndexOf('e',13)); 5
System.out.println(spell.lastIndexOf("ble")); 20
System.out.println(spell.lastIndexOf("ble",4)); 3
toLowerCase() and toUpperCase()
String request = "Quiet please.";
System.out.println(request.toUpperCase());
Output: QUIET PLEASE.
System.out.println(request);
Output: Quiet please. (Note the original string is not changed!)
request = request.toUpperCase();
System.out.println(request);
Output: QUIET PLEASE
System.out.println("3 2 1 BLAST OFF!".toLowerCase());
Output: 3 2 1 blast off!
String state = "I think therefore I exist!";

System.out.println(state);
Output: I think therefore I exist!
state = state.replace('I','Q');
System.out.println(state);
Output: Q think therefore Q exist!
Your turn..
System.out.println("computer part".replace('p','m'));
Output: commuter mart
String advice = "He who hesitates is lost?";
advice = advice.replace(' ','?');
System.out.println(advice);
Output: He?who?hesitates?is?lost?
int lengthBeforeTrim, lengthAfterTrim;
String reply = " err, let me think... ";
lengthBeforeTrim = reply.length();
reply = reply.trim();
lengthAfterTrim = reply.length();
System.out.println(reply);
"err, let me think..."
System.out.println("Length before " + lengthBeforeTrim + ", Length after " + lengthAfterTrim);
Length before 23, Length after 20
Before
| |
|
e |
r |
r |
, |
|
l |
e |
t |
|
m |
e |
|
t |
h |
i |
n |
k |
. |
. |
. |
|
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
After
reply = reply.trim();
| e |
r |
r |
, |
|
l |
e |
t |
|
m |
e |
|
t |
h |
i |
n |
k |
. |
. |
. |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
Your turn..
| |
|
|
h |
i |
|
|
|
|
|
h |
e |
l |
l |
o |
? |
|
|
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
String greet = " hi hello? ";
lengthBeforeTrim = greet.length();
greet = greet.trim();
lengthAfterTrim = greet.length();
System.out.println(greet);
"hi hello?"
System.out.println("Length before " + lengthBeforeTrim + ", Length after " + lengthAfterTrim);
Length before 18, Length after 13
Before
| |
|
|
h |
i |
|
|
|
|
|
h |
e |
l |
l |
o |
? |
|
|
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
After
greet = greet.trim();
| h |
i |
|
|
|
|
|
h |
e |
l |
l |
o |
? |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
| I |
|
w |
a |
n |
t |
|
t |
o |
|
b |
e |
l |
i |
e |
v |
e |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
String s1 = "I want to believe";
String s2 = s1.substring(3);
String s3 = s1.substring(7,12);
System.out.println(s2);
ant to believe
System.out.println(s3);
to be
Your turn..
| p |
r |
o |
f |
e |
s |
s |
i |
o |
n |
a |
l |
|
e |
t |
h |
i |
c |
s |
| 0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
String s4 = "professional ethics";
String s5 = s4.substring(15);
String s6 = s4.substring(18);
String s7 = s4.substring(19);
System.out.println(s5);
hics
System.out.println(s6);
s
System.out.println(s7);
System.out.println(s4.substring(3,7));
fess


RPM changes mode ------------------------------------------------------------------- Tue Oct 18 13:58:40 UTC 2011 -<EMAIL_ADDRESS>- Update to r60.3 - Fixes bug in the reflect package * disallow Interface method on Value obtained via unexported name ------------------------------------------------------------------- Thu Oct 6 08:14:24 UTC 2011 -<EMAIL_ADDRESS>- Update to r60.2 - Fixes memory leak in certain map types ------------------------------------------------------------------- Wed Oct 5 14:34:10 UTC 2011 -<EMAIL_ADDRESS>- Tweaks for gdb debugging - go.spec changes: - move %go_arch definition to %prep section - pass correct location of go specific gdb pretty printer and functions to cpp as HOST_EXTRA_CFLAGS macro - install go gdb functions & printer - gdb-printer.patch - patch linker (src/cmd/ld/dwarf.c) to emit correct location of go gdb functions and pretty printer RPM spec mode # # spec file for package minidlna # # Copyright (c) 2011, Sascha Peilicke # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. Name: libupnp6 Version: 1.6.13 Release: 0 Summary: Portable Universal Plug and Play (UPnP) SDK Group: System/Libraries License: BSD-3-Clause Url: http://sourceforge.net/projects/pupnp/ Source0: http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The portable Universal Plug and Play (UPnP) SDK provides support for building UPnP-compliant control points, devices, and bridges on several operating systems. %package -n libupnp-devel Summary: Portable Universal Plug and Play (UPnP) SDK Group: Development/Libraries/C and C++ Provides: pkgconfig(libupnp) Requires: %{name} = %{version} %description -n libupnp-devel The portable Universal Plug and Play (UPnP) SDK provides support for building UPnP-compliant control points, devices, and bridges on several operating systems. %prep %setup -n libupnp-%{version} %build %configure --disable-static make %{?_smp_mflags} %install %makeinstall find %{buildroot} -type f -name '*.la' -exec rm -f {} ';' %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc ChangeLog NEWS README TODO %{_libdir}/libixml.so.* %{_libdir}/libthreadutil.so.* %{_libdir}/libupnp.so.* %files -n libupnp-devel %defattr(-,root,root,-) %{_libdir}/pkgconfig/libupnp.pc %{_libdir}/libixml.so %{_libdir}/libthreadutil.so %{_libdir}/libupnp.so %{_includedir}/upnp/ %changelog MIME types defined: text/x-rpm-spec, text/x-rpm-changes.


Programming Language Suggester
Hey there prospective programmer!
Complete the quiz below to learn which programming language is best suited for you.
What is your name?
Who has the best fried chicken in Portland?
Chick Fil A
Reel M Inn
Bae's
How do you like your eggs prepared?
Sunny Side Up
Scrambled
Poached
What color is your lightsaber?
Red
Blue or Green
Purple
Choose your favorite sitcom from the list below:
I Love Lucy
Malcolm in the Middle
Seinfeld
Which podcast is most aligned with your interests?
50 Things That Made the Modern Economy
My Favorite Murder
What Trump Can Teach Us About Con Law
Generate Results
Hello
, the programming gods have spoken and Python is the language for you.
Hello
, the programming gods have spoken and Java is the language for you.
Hello
, the programming gods have spoken and React is the language for you.


Share Location Platform
What range distance (in m)?
Select Type of Object:
Car
Bicycle
Pedestrian
Truck
Skater


A tclcmd allows Tcl commands to be executed by a simple x <<
Tcl command syntax. The commands can be stacked, or
accumulated. Each time a linefeed is obtained, the command is
evaluated.
For example:
tclcmd cmd; cmd << "set a 1\n puts stdout $a"; cmd << "for {set i 0} {$i < 10} {incr i}" cmd << "{set a [expr $a+$i]; puts stdout $a}\n";
The behaviour of this command is slightly different from the usual
stream classes (but identical to eco_strstream from which it is derived, as a space is
automatically inserted between arguments of a <<
. This means
that arguments can be easily given - eg
cmd << "plot" << 1.2 << 3.4 << "\n";will perform the command plot 1.2 3.4. In order to build up a symbol from multiple arguments, use the append operator. So
(cmd << "plot"|3) << "\n";executes the command plot3.


You can make more friends in two months by becoming really interested in other people than you can in two years by trying to get other people interested in you. Which is just another way of saying that the way to make a friend is to be one. —Dale Carnegie
Based on Chapter 8 - Being Effective and Loved at the Same Time - 09/03/16
What is your experience of compassionate (or not) leadership?
I have experienced both compassionate and non compassionate leadership in my professional working life. Both types of leadership has points of merit but I much prefer a compassionate leadership style. I am a compassionate person myself so maybe this is why I prefer this type of leadership. From my experience, I find compassionate leaders ask their employees more questions and more importantly listen to their answers. In general, I find compassionate leaders are more supportive and approachable and their leadership style is caring and empathetic.
Do the multiplying goodness meditation. How did you find it?
I enjoyed this type of medidation. I always try to see the goodness in others so this type of meditation felt familiar even though I had not done it before. It made me feel happy and assured that seeing goodness in everyone is a positive and thoughful attitude to have towards others.
Do the tonglen meditation. How did you find it?
The tonglen meditation made me feel good about myself and helpful as I was using it to help others. It is a nice to know that you can use mindfulness and meditation to potentially help others but I think it's real benefit is the fact that it can be used to help you understand others and any suffering they may be experiencing.
How does the SCARF model apply to your phase-0 experience so far? How will it apply to bootcamp?
The SCARF model applies to my phase-0 experience in the following way: Status - When I look back at my week 1 and 2 coding and where I am now there is a differnce. Not a huge difference as I am still very much a beginner but I guess my confidence in myself has increased and I am not afraid to try some new method I have found and I am more comfortbale with making mistakes or moving around pieces of code to see what works where and what does not work. I guess I have activated a status reward when comparing myself to my former self. Certainty - There has certainly been lots of uncertainty along my phase 0 experience. Uncertainty in the actual weekly challenges, or approaches I have taken in some of my coding. Uncertainity in my abilities to complete the course, to fit in, to balance work and my personal life. There has been a lot more uncertainity then certainty along the way so far. Autonomy - The course work and concepts in phase 0 are fairly structured but I feel there was a lot of creative and individual ways students could approach the assignment challenges and at what times and where (at home, onsite at EDA) they could complete the coursework. so I felt there was a fair balance of autonomy. Fairness - I feel there has been lots of fairness in phase 0. Everyone seems really friendly and helpful. People take time and effort to help others with questions and problems and everyone seems to want to progress and move forward as a group rather than individuals. I am not to sure how the SCARF model will apply to bootcanp - hopefully in much the same way as it has done in phase 0.
Have a difficult conversation. How did it go? (It's a valuable skill, but can take practice to develop!)
I have not had to have a difficult conversation lately - which is good but I will certainly keep the chapter in mind when I am having my next one.


Download a zip archive of an Instagram account's images.
Username:
Download me some Instagrams!
Instazip by Ross Duggan.


"Manager Members" help
-
List of all members of research units. Get and change the details of each member.
-
A manager is greeted with three lists:
-
With roles: People who have a known affiliation to a team (whether scientific, technical, science management or administrative).
-
Without roles: People whose affiliation is not known. With time this list should tend to a size of zero elements.
-
To validate: New members with pending pre-registrations validation. Check regularly this list.
Only members with validated pre-registrations will appear on lists of people.
-
The list of people with roles can be exported to a spreadsheet file by pressing on the spreadsheet icon on the top of the page.
-
To check change the details of a particular person press the icon.
-
In the details tab for each person (appearing to the right of "Without roles") the view and functionalities are similar
to what is described in the "Myself" section.
-
The manager can choose a new password for a user in case the user forgets his/her password.


Pitch Project - Eyal Goldszeft
File
Mic
Play
Stop
Pause
Low Pass
Waveform
Frequency Domain
Pitch
The current pitch is
50
Hz


Gnu autoconfigure tools are in the backpack.
Last update:
Most modern software distributions include an autoconfigure utility which customizes the build and install configuration according to the specific hardware, operating system and file system conventions. For NTP this utility is called configure, which is run before building and installing the program components. For most installations no additional actions are required other than running configure with no options. However, it is possible to customize the build and install configuration through the use of configure options.
The available options, together with a concise description, can be displayed by running configure with the --help option. Various options can be used to reduce the memory footprint, adjust the scheduling priority, enable or disable debugging support or reference clock driver support. The options can be used to specify where to install the program components or where to find various libraries if they are not in the default place.


Skip to content
Weever
New Topic
Home
Register
Search
New topic
Title
Error message here
Message text
Error message here
Markdown
formatting rules are supported.
Topic will be be created in


State of the DApps is undergoing maintenance
We should be up shortly! If you have any questions, please let us know at support@stateofthedapps.com


Ploror688.github.io
Symbiosis distance learning creative writing. Diploma Programs. I have been constantly researching about writing courses in India that pirates homework help easily be done while you are writing or studying. Symbiosis Centre for Distance Learning (SCDL) is one of the largest autonomous distance learning education institute in India. SCDL offers Distance Education Precondition Failed. Writing team partners with organizations in university student placement efforts. We have the largest alumni network. Symbiosis Centre. Symbiosis distance learning diploma in creative writing. Customer information is kept safe and private. Even your writer doesn t know your details.
Symbiosis Centre for Distance Learning (SCDL) Courses Fee Structure 2018. SCDL Postgraduate, Undergraduate Certification courses. Curriculum vitae maker The British Council of Mumbai has a 9 week intensive Creative Writing program which is considered one institutes the best in creative country. Heltasa 2017 Durban University of Technology. With approximately 30 000 students, the Durban University of Technology (DUT) is the first choice for higher education in KwaZulu-Natal (KZN). Diploma in creative writing in english distance learning - Best HQ academic services provided by top specialists. No more fails with our trustworthy essay services. Symbiosis Centre For Distance Learning Distance. Symbiosis Centre for Distance Learning - Advanced Diploma.
Symbiosis Distance Learning Creative Writing ‒ Symbiosis. In the late 4th millennium BC, Sumer was divided into many independent city-states, which were divided by canals and boundary stones. Each was centered on a temple.
Symbiosis Distance Learning Creative Writing ‒ Word Power.
Symbiosis Distance Learning Creative Writing , Word Power. Symbiosis distance learning creative writing to write about homework help buy. At t the mass of the annual calendar for training and developing them requires engaging. Symbiosis Distance Learning Creative Writing ― Symbiosis.
Diploma in creative writing in english distance learning. Precondition Failed. I never written a research paper been constantly researching about writing courses in India that can easily be done while you are creative. Diploma Programs. I have been constantly researching about writing courses in India that writing easily be done btec level 3 creative writing you are working. Case Essays: Symbiosis distance learning creative writing. Symbiosis Centre for Distance Learning Courses Fee Structure. Creative Writing Course In Symbiosis Pune - chancyarms.com. Symbiosis Distance Learning Creative Writing – Word Power. Advanced Diploma in Creative Writing in English (ADCE) - offered at Symbiosis Centre for Distance Learning - Information about the course, Admission procedure.


Resume
student | developer | innovator
Suchi Patel is a entrepeneur, developer, and a high school rising sophmore studying at Middleton High School. She has a passion for web development, graphic design, and machine learning, utilizing her skills for her startup and hackathon initiatives. As a dynamic learner, she also enjoys learning about
stocks, investments, and economics, exploring different ways she can use technology to make an impact on the world. Suchi also enjoys reading, and is especially intrigued by the works of Immanuel Kant and George Orwell.
Experience
President | Williams HOSA
2019 - 2020
Led a middle school HOSA chapter of 70 members through WLC and in preperation of SLC. Assisted in the organization of Suncoast West Middle Level WLC.
Founder and CEO | Grocal
2018 - Present
Developed a platform to tackle food insecurity by allowing users to buy, sell, and trade homegrown garden produce.
Mentor | StarHacks
September 2020
Participated in a team of 12 to mentor a 48-hour student-run entrepreneurship-themed hackathon.
Awards
-
2021 Congress of Future Medical Leaders Nomination to represent the State of Florida
-
2021 Suncoast West HOSA 1st place Cultural Health & Disparities
-
2021 FBLA DLC 1st place Intro to Business
-
2020 History Fair 2nd place Junior Group Documentary on Women’s Suffrage
-
2020 Suncoast West HOSA 1st place ML Nutrition
-
2020 Solarhacks 2nd place
-
2020 HackMIT Delegate
-
2021 Suncoast West HOSA 3rd place ML Nutrition
-
2019 FBLA DLC 1st place ML Business Etiquette
-
2019 FBLA SLC 4th place ML Business Etiquette
-
2018 FBLA DLC 5th place ML Intro to Business Communication
-
2018 Invention Convention Most Notable Innovator
-
2018-2020 National Junior Honor Society Member
-
2018 Hillsborough County STEM Fair Superior: “The Use of Carbon Imaging to Detect Microplastics in Water”
-
2017 Hillsborough County STEM Fair Superior: “Rate of Effect for Mainstream Pharmaceutical Drugs”
-
2017 Kumon Math (Level N) & Reading Program Completer
-
2017 Tedx Tampa Glazer Children's Museum Speaker
Skills
NodeJS (work in progress)
Business Pitching (work in progress)
Investment (work in progress)
Education
- Williams Middle Magnet IB
- Middleton High School Biomedical-Biotechnology


The Configuration class holds all the parameters for the Initializer and ships with defaults that suites most Rails applications. But it‘s possible to overwrite everything. Usually, you‘ll create an Configuration file implicitly through the block running on the Initializer, but it‘s also possible to create the Configuration instance in advance and pass it in like this:
config = Rails::Configuration.new Rails::Initializer.run(:process, config)
- after_initialize
- after_initialize_blocks
- breakpoint_server
- breakpoint_server=
- builtin_directories
- database_configuration
- environment
- environment_path
- framework_paths
- gem
- middleware
- new
- plugins=
- reload_plugins?
- set_root_path!
- threadsafe!
- to_prepare
| [RW] | action_controller | A stub for setting options on ActionController::Base. |
| [RW] | action_mailer | A stub for setting options on ActionMailer::Base. |
| [RW] | action_view | A stub for setting options on ActionView::Base. |
| [RW] | active_record | A stub for setting options on ActiveRecord::Base. |
| [RW] | active_resource | A stub for setting options on ActiveResource::Base. |
| [RW] | active_support | A stub for setting options on ActiveSupport. |
| [RW] | cache_classes | Whether or not classes should be cached (set to false if you want application classes to be reloaded on each request) |
| [RW] | cache_store | The specific cache store to use. By default, the ActiveSupport::Cache::Store will be used. |
| [RW] | controller_paths | The list of paths that should be searched for controllers. (Defaults to app/controllers.) |
| [RW] | database_configuration_file | The path to the database configuration file to use. (Defaults to config/database.yml.) |
| [RW] | dependency_loading |
Enables or disables dependency loading during the request cycle. Setting
dependency_loading to true will allow new classes to be loaded during a
request. Setting it to false will disable this behavior.
Those who want to run in a threaded environment should disable this option and eager load or require all there classes on initialization. If cache_classes is disabled, dependency loaded will always be on. |
| [RW] | eager_load_paths | An array of paths from which Rails will eager load on boot if cache classes is enabled. All elements of this array must also be in load_paths. |
| [RW] | frameworks | The list of rails framework components that should be loaded. (Defaults to :active_record, :action_controller, :action_view, :action_mailer, and :active_resource). |
| [RW] | gems |
An array of gems that this rails application depends on. Rails will automatically load these gems during
installation, and allow you to install any missing gems with:
rake gems:install You can add gems with the gem method. |
| [RW] | i18n | Accessor for i18n settings. |
| [RW] | load_once_paths | An array of paths from which Rails will automatically load from only once. All elements of this array must also be in load_paths. |
| [RW] | load_paths | An array of additional paths to prepend to the load path. By default, all app, lib, vendor and mock paths are included in this list. |
| [RW] | log_level | The log level to use for the default Rails logger. In production mode, this defaults to :info. In development mode, it defaults to :debug. |
| [RW] | log_path | The path to the log file to use. Defaults to log/#{environment}.log (e.g. log/development.log or log/production.log). |
| [RW] | logger | The specific logger to use. By default, a logger will be created and initialized using log_path and log_level, but a programmer may specifically set the logger to use via this accessor and it will be used directly. |
| [RW] | metals | The list of metals to load. If this is set to nil, all metals will be loaded in alphabetical order. If this is set to [], no metals will be loaded. Otherwise metals will be loaded in the order specified |
| [RW] | plugin_loader | The class that handles loading each plugin. Defaults to Rails::Plugin::Loader, but a sub class would have access to fine grained modification of the loading behavior. See the implementation of Rails::Plugin::Loader for more details. |
| [RW] | plugin_locators | The classes that handle finding the desired plugins that you‘d like to load for your application. By default it is the Rails::Plugin::FileSystemLocator which finds plugins to load in vendor/plugins. You can hook into gem location by subclassing Rails::Plugin::Locator and adding it onto the list of plugin_locators. |
| [RW] | plugin_paths | The path to the root of the plugins directory. By default, it is in vendor/plugins. |
| [R] | plugins | The list of plugins to load. If this is set to nil, all plugins will be loaded. If this is set to [], no plugins will be loaded. Otherwise, plugins will be loaded in the order specified. |
| [RW] | preload_frameworks | Whether to preload all frameworks at startup. |
| [RW] | reload_plugins |
Enables or disables plugin reloading. You can get around this setting per
plugin. If reload_plugins? is false, add
this to your plugin‘s init.rb to make it reloadable:
ActiveSupport::Dependencies.load_once_paths.delete lib_path If reload_plugins? is true, add this to your plugin‘s init.rb to only load it once: ActiveSupport::Dependencies.load_once_paths << lib_path |
| [R] | root_path | The application‘s base directory. |
| [RW] | routes_configuration_file | The path to the routes configuration file to use. (Defaults to config/routes.rb.) |
| [RW] | time_zone | Sets the default time_zone. Setting this will enable time_zone awareness for Active Record models and set the Active Record default timezone to :utc. |
| [RW] | view_path | The root of the application‘s views. (Defaults to app/views.) |
| [RW] | whiny_nils | Set to true if you want to be warned (noisily) when you try to invoke any method of nil. Set to false for the standard Ruby behavior. |
Create a new Configuration instance, initialized with the default values.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 838 838: def initialize 839: set_root_path! 840: 841: self.frameworks = default_frameworks 842: self.load_paths = default_load_paths 843: self.load_once_paths = default_load_once_paths 844: self.eager_load_paths = default_eager_load_paths 845: self.log_path = default_log_path 846: self.log_level = default_log_level 847: self.view_path = default_view_path 848: self.controller_paths = default_controller_paths 849: self.preload_frameworks = default_preload_frameworks 850: self.cache_classes = default_cache_classes 851: self.dependency_loading = default_dependency_loading 852: self.whiny_nils = default_whiny_nils 853: self.plugins = default_plugins 854: self.plugin_paths = default_plugin_paths 855: self.plugin_locators = default_plugin_locators 856: self.plugin_loader = default_plugin_loader 857: self.database_configuration_file = default_database_configuration_file 858: self.routes_configuration_file = default_routes_configuration_file 859: self.gems = default_gems 860: self.i18n = default_i18n 861: 862: for framework in default_frameworks 863: self.send("#{framework}=", Rails::OrderedOptions.new) 864: end 865: self.active_support = Rails::OrderedOptions.new 866: end
Adds a block which will be executed after rails has been fully initialized. Useful for per-environment configuration which depends on the framework being fully initialized.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 923 923: def after_initialize(&after_initialize_block) 924: after_initialize_blocks << after_initialize_block if after_initialize_block 925: end
Returns the blocks added with Configuration#after_initialize
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 928 928: def after_initialize_blocks 929: @after_initialize_blocks ||= [] 930: end
Deprecated options:
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 819 819: def breakpoint_server(_ = nil) 820: $stderr.puts %( 821: ******************************************************************* 822: * config.breakpoint_server has been deprecated and has no effect. * 823: ******************************************************************* 824: ) 825: end
Alias for breakpoint_server
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 948 948: def builtin_directories 949: # Include builtins only in the development environment. 950: (environment == 'development') ? Dir["#{RAILTIES_PATH}/builtin/*/"] : [] 951: end
Loads and returns the contents of the database_configuration_file. The contents of the file are processed via ERB before being sent through YAML::load.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 903 903: def database_configuration 904: require 'erb' 905: YAML::load(ERB.new(IO.read(database_configuration_file)).result) 906: end
Return the currently selected environment. By default, it returns the value of the RAILS_ENV constant.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 916 916: def environment 917: ::RAILS_ENV 918: end
The path to the current environment‘s file (development.rb, etc.). By default the file is at config/environments/#{environment}.rb.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 910 910: def environment_path 911: "#{root_path}/config/environments/#{environment}.rb" 912: end
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 953 953: def framework_paths 954: paths = %w(railties railties/lib activesupport/lib) 955: paths << 'actionpack/lib' if frameworks.include?(:action_controller) || frameworks.include?(:action_view) 956: 957: [:active_record, :action_mailer, :active_resource, :action_web_service].each do |framework| 958: paths << "#{framework.to_s.gsub('_', '')}/lib" if frameworks.include?(framework) 959: end 960: 961: paths.map { |dir| "#{framework_root_path}/#{dir}" }.select { |dir| File.directory?(dir) } 962: end
Adds a single Gem dependency to the rails application. By default, it will require the library with the same name as the gem. Use :lib to specify a different name.
# gem 'aws-s3', '>= 0.4.0' # require 'aws/s3' config.gem 'aws-s3', :lib => 'aws/s3', :version => '>= 0.4.0', # :source => "http://code.whytheluckystiff.net"
To require a library be installed, but not attempt to load it, pass :lib => false
config.gem 'qrp', :version => '0.4.1', :lib => false
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 814 814: def gem(name, options = {}) 815: @gems << Rails::GemDependency.new(name, options) 816: end
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 943 943: def middleware 944: require 'action_controller' 945: ActionController::Dispatcher.middleware 946: end
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 742 742: def plugins=(plugins) 743: @plugins = plugins.nil? ? nil : plugins.map { |p| p.to_sym } 744: end
Returns true if plugin reloading is enabled.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 780 780: def reload_plugins? 781: !!@reload_plugins 782: end
Set the root_path to RAILS_ROOT and canonicalize it.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 869 869: def set_root_path! 870: raise 'RAILS_ROOT is not set' unless defined?(::RAILS_ROOT) 871: raise 'RAILS_ROOT is not a directory' unless File.directory?(::RAILS_ROOT) 872: 873: @root_path = 874: # Pathname is incompatible with Windows, but Windows doesn't have 875: # real symlinks so File.expand_path is safe. 876: if RUBY_PLATFORM =~ /(:?mswin|mingw)/ 877: File.expand_path(::RAILS_ROOT) 878: 879: # Otherwise use Pathname#realpath which respects symlinks. 880: else 881: Pathname.new(::RAILS_ROOT).realpath.to_s 882: end 883: 884: Object.const_set(:RELATIVE_RAILS_ROOT, ::RAILS_ROOT.dup) unless defined?(::RELATIVE_RAILS_ROOT) 885: ::RAILS_ROOT.replace @root_path 886: end
Enable threaded mode. Allows concurrent requests to controller actions and multiple database connections. Also disables automatic dependency loading after boot, and disables reloading code on every request, as these are fundamentally incompatible with thread safety.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 892 892: def threadsafe! 893: self.preload_frameworks = true 894: self.cache_classes = true 895: self.dependency_loading = false 896: self.action_controller.allow_concurrency = true 897: self 898: end
Add a preparation callback that will run before every request in development mode, or before the first request in production.
See Dispatcher#to_prepare.
[ show source ]
# File vendor/rails/railties/lib/initializer.rb, line 936 936: def to_prepare(&callback) 937: after_initialize do 938: require 'dispatcher' unless defined?(::Dispatcher) 939: Dispatcher.to_prepare(&callback) 940: end 941: end


ICC considers first probe of British military for alleged war crimes
A BBC Panorama programme claims that killings of civilians in Afghanistan and Iraq have been covered up by the state.
The International Criminal Court (ICC) has said it may investigate the British military for the first time after allegations that war crimes had been committed, it has been reported.
A BBC Panorama programme claims that killings of civilians in Afghanistan and Iraq have been covered up by the state.
The Ministry of Defence (MoD) responded that the allegations are unsubstantiated.
Leaked documents allegedly contain evidence implicating British troops in killing children and the torture of civilians.
The recent BBC/Sunday Times investigation said it had obtained new evidence from inside the Iraq Historic Allegations Team (IHAT), which investigated alleged war crimes committed by British soldiers in Iraq, and Operation Northmoor, which investigated alleged war crimes in Afghanistan.
The Government closed IHAT and Operation Northmoor in 2017, after Phil Shiner, a solicitor who had taken more than 1,000 cases to IHAT, was struck off from practising law amid allegations that he had paid people in Iraq to find clients.
But some former IHAT and Operation Northmoor investigators said Mr Shiner’s actions were used as an excuse to close down the inquiries.
No case investigated by IHAT or Operation Northmoor has led to a prosecution.
The ICC said it has taken the accusations “very seriously”, according to the BBC.
“The ICC said it would independently assess the BBC’s findings and would begin a landmark case if it believed the Government was shielding soldiers from prosecution,” the corporation reported on Monday morning.
The ICC has previously concluded it was credible that British troops committed war crimes in Iraq related to the mistreatment of detainees.
The year-long investigation claims to have found evidence of murders by an SAS soldier, as well as deaths in custody, beatings, torture and sexual abuse of detainees by members of the Black Watch.
A senior SAS commander was referred to prosecutors for attempting to pervert the course of justice, the investigation claims.
The Prime Minister’s official spokesman said: “Allegations that have been made that the MoD interfered in investigations of the prosecutions are untrue.
“The service police carried out an extensive investigation into allegations about the conduct of forces in both Iraq and Afghanistan.
“The independent Service Prosecuting Authority decided not to prosecute any of the cases referred to it.”
– Panorama: War Crimes Scandal Exposed will be screened on BBC One on Monday at 9pm.


Ashton Kutcher 'ignores' headlines from Demi Moore's tell-all memoir: report
by Jessica NapoliDemi Moore made headlines in September for her tell-all memoir, "Inside Out," in which she exposed intimate details of her marriage to ex-husband, Ashton Kutcher.
From allegations of unfaithfulness on his part to engaging in threesomes and miscarrying his baby at six months into the pregnancy, "The Ranch" actor hasn't made any public statements in response to the book or his former spouse's accusations.
According to People magazine, a source revealed Kutcher "pretty much ignores" all the noise.
“He is busy with a full life and has moved on,” the source added.
DEMI MOORE DETAILS 'NIGHTMARE' SPLIT FROM ASHTON KUTCHER
The only reference he made of Moore's memoir was in late September when he wrote a cryptic tweet, "I was about to push the button on a really snarky tweet. Then I saw my son, daughter, and wife and I deleted it."
Kutcher, 41, married his former "That '70s Show" castmate, Mila Kunis, 36, in 2015 and they have two children: daughter Wyatt, 4, and son Dimitri, 2.
DEMI MOORE SAYS SHE WAS RAPED AT AGE 15 BY A MAN WHO PAID HER MOTHER $500
Moore, 57, met Kutcher in 2003 at a dinner party and they married in 2005 only to divorce in 2013. The "G.I Jane" actress wrote of their marriage, "He expressed something that was of a fantasy and it was in my efforts to want to please and be what I thought he wanted.
DEMI MOORE SAYS SHE 'LOST' HERSELF AFTER ASHTON KUTCHER SPLIT
"It was a misguided sense of not really wanting to look at the harder question or maybe what was really missing. Or, in my case, because I really felt like I had created an addiction to him... I never had that kind of attachment," she admitted.
Moore also revealed that she began abusing Vicodin and alcohol to cope, which ultimately spelled doom for the relationship. She claims that Kutcher shamed her alcoholism.
DEMI MOORE OPENS UP ABOUT ‘SPIRALING DOWN A PATH OF REAL SELF-DESTRUCTION’
She wrote: "It was confusing. Ashton had encouraged me to go in this direction. When I went too far, though, he let me know how he felt by showing a picture he'd taken of me resting my head on the toilet the night before.
"It seemed like a good-natured joke at the time. But it was really just shaming."


Purpose
The client would like a web based weather app created. The purpose of the site is to give current weather conditions in 3 different ways. The initial landing page will give the weather for the current location based on the Geocoding information given by the browser. The second is weather for 3 specific locations accessible through a dedicated link, and the third is weather for any location determined by a search string.
Audience
Primary audience is adults ages 18-30. Most will be students. Access to the site will be split between mobile devices and laptops.
Audience Goals
College students move around quite a bit so one goal would be to quickly get the weather conditions for their current location as they head off to class or study. They are also often far from their homes so the ability to quickly get the conditions for a specific location is important as well. The third goal deals with planning for travels...the ability to get weather conditions for any location will help with last minute packing for road trips.
Personas
- Name: Joe Cool
- Occupation: Student
- Age : undetermined
- Interests : Traveling, seeing new things
- Motivation : Jose is not planning. His last minute scrambling, whether it is getting to class in the morning or heading out on his latest adventure, has left him unprepared for weather conditions many times (He is tired of sleeping in the rain and snow). He would like to be more prepared...without having to put much effort into it...or planning.
- Enviroment : Joe is comfortable using laptops and Mobile devices, he will most often be found on a smart phone however. Many of the places he frequents do not have great signal…he is often dealing with 3G speeds.
- Name : Lucy Van Pelt
- Occupation : student
- Age : 18
- Interests : Giving advice, Psychology
- Motivation : Lucy is a no nonsense young lady who likes to help those around her. She wants easy access to the weather conditions for many locations so that she can always be prepared to offer some unsolicited advice to her peers.
- Enviroment : Lucy has a smart phone that she uses to keep her eye on her social media ‘friends’. She is usually not very far from her trusty laptop however. Most of her time online is spent either on the University network or the apartment broadband.
Content
All weather pages should include Location name, temperature, high, low, current weather descriptor, precipitation, and wind on small, and hourly temps should be added on larger screens. (See provided weather data file for more details)
Pages
- Home : weather for the current location. Current location should be determined by using the Geolocation API of the browser. This information should be passed to the WeatherUnderground API https://www.wunderground.com/weather/api/ to retrieve the current conditions.
- Franklin, Greenville, Springfield : weather for each specific location. The weather for The Franklin and Greenville pages should be pulled from a local JSON file that will be provided.
- Search : Begins with only a search box, characters entered will cause a list of suggested matches to appear. Selected location will pull up the weather. The search term from the field should be sent to the WeatherUnderground autocomplete API, and the results used to pull the current counditions for the selected location.
Styles
Branding
The client provided the following initial concept for a name and logo: (You recognize that this logo could easily be re-created entirely with CSS using the right font and HTML entities… ⚀ ⚅)
Typography
The client also expressed interest in the following fonts:
Heading font : Sansita from Google Fonts.
Body Copy Font:Helvetica
A Ć Č Đ Š Ž č ć đ š w ž ‘ ? ’ “ ! ” ( % ) [ # ] { @ } / + ÷ × = > ® © $ € £ ¥ ¢ : ; , . *
Lorem ipsum nonsed eicillabore essum fugit lantisit, si nis eictia num fugiam et quatquis resto eossitem quunt quae sit dolupis maio omnimo il id maio bea ipid que conseque volorem. Et facidebit vel ma doluptasitis num, ullandebit hicto beaquos tiumquis postrum cori odit eosam quiatur? Volo quid minvel earuptatem quiatur?
Colors
| Primary: #A6D8DB | Secondary: #F07C6C | Accent1: #E7EF61 | Accent2: #47556F |
Elements
(add usability note on each element)
Navigation
Link:normal : #4A4653
Link:visited : #4A4653
Link:hover : #E7EF61
Link:active : #A6D8DB
Opaque rounded content box:
background-color: rgba(200,200,200,.6);
margin:/2em auto;
border: 1px solid
border-radius: 5px;
Wireframes
Small screen
Large Screen
Greenville Redisgn
Body Copy Font: Overpass, Merriweather
ABCĆČDĐEFGHIJKLMNOPQRSŠTUVWXYZŽabcčćdđefghijklmnopqrsštuvwxyzž1234567890‘?’“!”(%)[#]{@}<-+÷×=>®©$€£¥¢:;,.*
Lorem ipsum nonsed eicillabore essum fugit lantisit, si nis eictia num fugiam et quatquis resto eossitem quunt quae sit dolupis maio omnimo il id maio bea ipid que conseque volorem. Et facidebit vel ma doluptasitis num, ullandebit hicto beaquos tiumquis postrum cori odit eosam quiatur? Volo quid minvel earuptatem quiatur?
Primary
#AA6039Secondary
#AA9E39Suggestions for Alexandra Lozano: Maybe choose different colors, more appealing to the sight and colorful. Watch out for the spaces in the different characters because they look like a mess. Wireframes look good, however I believe that you should include 1 more section about anything, but just have 1 more thing laying out there in both.
Large wireframe
Small wireframe


New Habit
Habit:
Good or Bad:
Good
Bad
Starting Date:
Times you want to do it:
Add Habit
Habits List
Smoking buying cigarettes every day Bad 12/09/2017 6