|
[ Floating Sample ] [ More Samples ] [ Allwebco Design ] [ Allwebco Templates ] [ Allwebco Hosting ] |
News IFrame Setup (HTML5 Websites): This script is provided free to all our template users. We do not however provide support for adding this feature to your template. This script is intended to be added to any HTML 5 Allwebco template or HTML 5 website. NOTE: Always make backup files and test after each edit before you go to another edit. You can always delete your backups later. Click here for the scrolling news IFrame help page STEP #1: Copy the "news_win.htm" from this zip file download into your main template folder. This is the folder that contains your index.html and about.htm. The "news_win.htm" is the page that is displayed in the IFrame window. STEP #2 Option A add IFrame Code for HTML Pages: Select and copy the following code. Paste this into THE "MAIN" or "CONTENT" table on any of your HTML template pages. Code for an HTML page | View Examples You can optionally view the source and copy the code from the news frame samples page. STEP #2 Option B add IFrame Code for .js Files: To optionally globally add this to your website you can paste the following code into your "sidebar.js" or "menu.js". See also the "SAMPLE-js-file.js" in this download. In a sidebar.js One option would be to add the code below just before the "SMALL PICTURE AREA" note. Make a copy of your sidebar.js for backup and try pasting in the code and test your pages in a web browser. In a menu.js If you have a vertical menu style you can probably add this to your menu.js. Make a backup of your menu.js. Open the menu.js and try pasting the code below near the bottom of this file. Most likely you will add this just before some

 or
 code. This may not work in some template models see the step above for HTML page options instead. Code for a sidebar.js or menu.js | View Examples STEP #3: Test your webpages in a web browser. The news scroller should now be working. STEP #4: Edit the "news_win.htm" with your text and images or with your choice of news feeds. To use another news feed service see options below. OPTIONS: MORE OPTIONS: | Click for details See the Simple News Scroller and also the RSS and Javascript Newsfeeds for more options and news window details. USING A DIFFERENT NEWS SERVICE: | Click for more feeds and help You can use any HTML or Javascript news feed in the "news_win.htm". Paste your news feed code between the "SCROLLER CONTENT STARTS HERE" notes in the "news_win.htm". Most news feed websites include instructions to use their code. Also, always check the news feed "Terms of Use" before you use their code. RSS FEEDS: This download is setup for HTML or Javascript feeds. For RSS feeds you would need to convert the code. Please see the RSS support page for more info on this. COLORS: | Click for color help This IFrame is NOT linked to a CSS file. All color code will be inside either the "news_win.htm" or in the IFrame code you added in step #2. The colors include border, text, background and scrollbar colors. NEWS IFRAME WINDOW SIZE: The news frame can be any size you require, however you need to edit 2 areas.
FLOATING DIV CODE: See the Floating Sample and view the page source to copy the floating code. You can locate the floating window anywhere on your webpage. Edit the code you copied and pasted. Edit the "left: 100px; top: 100px" area. You can make these "left", "right", "top" or "bottom". TROUBLESHOOTING: If you do the steps above and the IFrame is not working:
Best of luck with your news feed setup and your website! -Allwebco Design- COPYRIGHT © Allwebco Design Corporation Unauthorized use or sale of this script is strictly prohibited by law. You are authorized to use this on any Allwebco template, website or any template from another company and on as many websites as you would like. You are also authorized to modify all included files for this site use. |


Preparation time
less than 30 mins
Cooking time
30 mins to 1 hour
Serves
Makes 27 slices
Lucy has worked with me for 25 years! A twist on the classic Victoria sandwich, her slices look adorable and are, of course, divine to eat!
Equipment and preparaton: for this recipe you will need a 30x23cm/12x9in traybake tin.
Preheat the oven to 180C/160C Fan/Gas 4. Grease the traybake tin with butter or baking spread and line the base and sides with baking paper.
Measure all the cake ingredients into a large bowl and beat well using an electric mixer for about 2 minutes until well blended. Turn the mixture out into the prepared tin and smooth the surface.
Bake for 35 minutes, or until the cake has shrunk from the sides of the tin and springs back when pressed in the centre with your fingertips. Leave to cool in the tin.
Remove the cake from the tin and trim the edges so they are perfectly straight. Cut the cake lengthways into three strips, then cut across each strip to give nine 7x3cm/2 ¾ x1½in slices. Cut each slice in half horizontally ready for filling as you would a sandwich.
For the filling, spoon the jam into a bowl with the lemon juice and blend together, then toss the strawberries in the jam to give a glaze. Mix the whipped cream and crème fraîche together and spread or pipe a fairly thick layer over the base of each half-sponge. Arrange two or three glazed pieces of strawberry on top and sit the top half of the sponge on top. Dust with icing sugar to serve.
You need JavaScript to view this clip.
Testing to see if a cake is cooked


tree C:\ /f /a > C:\output_of_tree.txt print dir in 'tree' format.
dir /a
dir /b /s <dir or filename>
dir \ /s /b | find /l "searchString" searches dir from root, all sub directories, using 'base' format (to output full path), for 'searchString' anywhere in path
command | find /c /v "" Counts lines


Who do you like? I like J cole Do you know him?
Whats your favorite sport I like basketball And football
I love wendys I like food Chic-fil-a
Do you simg Whats your favorite band?


Born July 21st in Milwaukee, WI to Victor Rose Sr and Trenee Wells. Avid videogame player from 3-18. I'm still impressed that I beat Donkey Kong Country 2: Diddy's Kong Quest at about 4 years old...I don't even think I could do that today. Huge Nintendo fan for a long time. Playstation is a great system also. Sypro Ripto's Rage was the first game I beat 100%. Crash bandicoot 3 Warped grabbing platinum medals is a great memory...plus the pizza hut demo discs giving me access to Taito titles. Good times.
Attended about 10 schools, most noteworth of them being Hartford Elemantary, Glen Hills Middle School, Riverside High, and University of Wisconsin-Madison. I studied Computer Engineering at University of Wisconsin and now I am currently building a portfolio of software development material, beginning with this website.
My goals are to make videogames, websites, and apps, and eventually make a platform for people to get paid for their creative ventures.
Like an Uber for artists. Like soundcloud, and tumblr combined.
I want to own my own videogame studio that houses the umbrella for an all-creative company that handles music, teaches music, sells music, and rents out instruments.


youtube-dl
Enter a video url to download the video to the server. Url can be to YouTube or any other supported site. The server will automatically download the highest quality version available.
{% include 'header.html' %}
Enter a video url to download the video to the server. Url can be to YouTube or any other supported site. The server will automatically download the highest quality version available.


In my Web Content Managment Class, we learned about basic HTML and how to use WordPress. For a project we had to crate a blog based in WordPress. That is when I created Gospel Beats News. Here I wrote about the latest news in Christian Rap with the help from some of my friends. I maintained the design of the site and organized the content, while my two friends and I wrtote posts. In the wake of the blog, we also managed a Twitter account. I now use the site to help promote and raise money for my walk in ASFP's Walk to Fight Suicide event comuing here to Bloomington this October. A link to the website can be found here .
As an athlete my whole life, until sophmore year at Trine, I have always wondered how impactful sports are on our educational systems. I decided to look at universities and colleges. I was sure to look at smaller universities, like Trine, at the Division 3 level, and then with larger schools at the Division 1 level to see the differences in how sports plays a role on campus. In the paper, I find that there are in fact major differences in how the sport is played, and how the athletes are treated or used on campus.Can also download the paper here .
In my Introduction to Literature class, we had to write about our initial responses to a short story/poem then write again regarding any changes or new insights after class disccussion. In this analysis, I looked at how the two poems, Let Evening Come and Do Not Go Gentle into That Good Night, were related to each other when I had failed to realize that before class discussion. Can also download the paper here .
While I was in Technical Communications class while at Trine I learned how to write professionally, that includes emails, technical documents, and yes, memos. Here was one of our first taste of writing memos, and as the secretary of my group's project that semester, it was far from the last one I would write. The group and I ended working on a solution to helping solve sleep deprivation on campus giving a certain budget. We were far below budget, and was trying to find ways to spend more money, but we had worked together and found the simplest, cheap and effective way to help students. You can find the memo over here .


FORTUNEFILE
-----------
[home]
A collection of enjoyable quotations. Written to spec.
...the indeterminacy [quantum mechanics] introduces into the results of observations is of a kind which is philosophically satisfying, being readily ascribable to an inescapable crudeness in the means of observation available for small-scale experiments.
Such a captive maiden, having plenty of time to think, soon realizes that her tower, its height and architecture, are like her ego only incidental: that what really keeps her where she is is magic, anonymous and malignant, visited on her from outside and for no reason at all. Having no apparatus except gut fear and female cunning to examine this formless magic, to understand how it works, how to measure its field strength, count its lines of force, she may fall back on superstition, or take up a useful hobby like embroidery, or go mad, or marry a disk jockey. If the tower is everywhere and the knight of deliverance no proof against its magic, what else?
If it was really Pierce's attempt to leave an organized something behind after his own annihilation, then it was part of her duty, wasn't it, to bestow life on what had persisted, to try to be what Driblette was, the dark machine in the Centre of the planetarium, to bring the estate into pulsing stelliferous Meaning, all in a soaring dome around her?
Neo: And why would a program be deleted?
Oracle: Maybe it breaks down. Maybe a better program is created to replace it--happens all the time, and when it does, a program can either choose to hide here, or return to The Source.
If American and European men-of-war now peacefully ride in once savage harbors, let them fire salutes to the honor and glory of the whale-ship, which originally showed them the way, and first interpreted between them and the savages. They may celebrate as they will the heroes of Exploring Expeditions, your Cookes, your Krusensterns; but I say that scores of anonymous Captains have sailed out of Nantucket, that were as great, and greater, than your Cooke and your Krusenstern. For in their succorless empty-handedness, they, in the heathenish sharked waters, and by the beaches of unrecorded, javelin islands, battled with virgin wonders and terrors that Cooke with all his marines and muskets would not have willingly dared.
Know ye now, Bulkington? Glimpses do ye seem to see of that mortally intolerable truth; that all deep, earnest thinking is but the intrepid effort of the soul to keep the open independence of her sea; while the wildest winds of heaven and earth conspire to cast her on the treacherous, slavish shore?
But as in landlessness alone resides highest truth, shoreless, indefinite as God- so better is it to perish in that howling infinite, than be ingloriously dashed upon the lee, even if that were safety! For worm-like, then, oh! who would craven crawl to land! Terrors of the terrible! is all this agony so vain? Take heart, take heart, O Bulkington! Bear thee grimly, demigod! Up from the spray of thy ocean-perishing- straight up, leaps thy apotheosis!
That same infinitely thin, isinglass substance, which, I admit, invests the entire body of the whale, is not so much to be regarded as the skin of the creature, as the skin of the skin, so to speak; for it were simply ridiculous to say, that the proper skin of the tremendous whale is thinner and more tender than the skin of a new-born child.
In life, the visible surface of the Sperm Whale is not the least among the many marvels he presents. Almost invariably it is all over obliquely crossed and re-crossed with numberless straight marks in thick array, something like those in the finest Italian line engravings. But these marks do not seem to be impressed upon the isinglass substance above mentioned, but seem to be seen through it, as if they were engraved upon the body itself. Nor is this all. In some instances, to the quick, observant eye, those linear marks, as in a veritable engraving, but afford the ground for far other delineations. These are hieroglyphical; that is, if you call those mysterious cyphers on the walls of pyramids hieroglyphics, then that is the proper word to use in the present connexion.
Like those mystic rocks, too, the mystic-marked whale remains undecipherable.
It does seem to me, that herein we see the rare virtue of a strong individual vitality, and the rare virtue of thick walls, and the rare virtue of interior spaciousness. Oh, man! admire and model thyself after the whale! Do thou, too, remain warm among ice. Do thou, too, live in this world without being of it. Be cool at the equator; keep thy blood fluid at the Pole. Like the great dome of St. Peter's, and like the great whale, retain, O man! in all seasons a temperature of thine own.
But my research had taught me that the tissue of contradictions that was my personality was itself, at best, a poem, where "poem" is understood as referring to a failure of language to be equal to the possibilities it figures...
Your heart is like a great river after a long spell of rain, spilling over its banks. All signposts that once stood on the ground are gone, inundated and carried away by that rush of water. And still the rain beats down on the surface of the river. Every time you see a flood like that on the news you tell yourself: That's it. That's my heart.
For if the trumpet give an uncertain sound, who shall prepare himself to the battle?
If therefore the whole church be come together into one place, and all speak with tongues, and there come in those that are unlearned, or unbelievers, will they not say that ye are mad?
There are, it may be, so many kinds of voices in the world, and none of them is without signification. Therefore if I know not the meaning of the voice, I shall be unto him that speaketh a barbarian, and he that speaketh shall be a barbarian unto me.
For he that speaketh in an unknown tongue speaketh not unto men, but unto God: for no man understandeth him; howbeit in the spirit he speaketh mysteries.
For we know in part, and we prophesy in part. But when that which is perfect is come, then that which is in part shall be done away. When I was a child, I spake as a child, I understood as a child, I thought as a child: but when I became a man, I put away childish things. For now we see through a glass, darkly; but then face to face: now I know in part; but then shall I know even as also I am known. And now abideth faith, hope, charity, these three; but the greatest of these is charity.
[Charity] beareth all things, believeth all things, hopeth all things, endureth all things.
Eat all the humans before god gets here.
Not too shabby, is it? New York, I mean.
As banal as McMurdo appears, it turns out it is filled with these professional dreamers.
We will give you great service even if you are a Patriots fan.
All Property, indeed, except the Savage's temporary Cabin, his Bow, his Matchcoat, and other little Acquisitions, absolutely necessary for his Subsistence, seems to me to be the Creature of public Convention. Hence the Public has the Right of Regulating Descents, and all other Conveyances of Property, and even of limiting the Quantity and the Uses of it. All the Property that is necessary to a Man, for the Conservation of the Individual and the Propagation of the Species, is his natural Right, which none can justly deprive him of: But all Property superfluous to such purposes is the Property of the Publick, who, by their Laws, have created it, and who may therefore by other Laws dispose of it, whenever the Welfare of the Publick shall demand such Disposition. He that does not like civil Society on these Terms, let him retire and live among Savages. He can have no right to the benefits of Society, who will not pay his Club towards the Support of it.
...Farewell happy Fields
Where Joy for ever dwells; Hail horrors, hail
Infernal world, and thou profoundest Hell
Receive thy new Possessor: One who brings
A mind not to be chang'd by Place or Time.
The mind is its own place, and in itself
Can make a Heav'n of Hell, a Hell of Heav'n


Instagram to test removing like counts in the US
The social media platform's CEO, Adam Mosseri announced the move at a recent tech event
Instagram have announced that they are planning on testing the removal of like counts in the US as early as next week.
The Facebook-owned photo sharing service’s CEO, Adam Mosseri shared the news at a Wired event in San Francisco Friday (November 8). The first roll-out will see the change carried out on a limited number of US accounts.
This isn’t the first time that Instagram has removed like counts. In an attempt to encourage conversations instead of popularity contests, the social media giant has been experimenting with it for a few months now in other countries.
Testing began in Canada this spring, and more tests followed in half a dozen other countries, including Brazil, New Zealand, Japan and Australia.
Like counts won’t be removed altogether. Users will still be able to see how often a post of theirs has been liked. However, these like counts won’t be viewable by followers anymore, and won’t appear in public feeds.
Adam Mosseri and Tracee Ellis Ross discuss Instagram in San Francisco.
“It’s about young people,” Mosseri said during the chat, hosted by Wired and featuring actress Tracee Ellis-Ross. “The idea is to try and depressurise Instagram, make it less of a competition, give people more space to focus on connecting with the people that they love, things that inspire them.”
Instagram isn’t the only company that is attempting to remove publicly available engagement metrics from their platform. Facebook, YouTube, and Twitter have all experimented with removing engagement metrics from their platforms.
Meanwhile, Matthew McConaughey has joined Instagram to mark his 50th birthday.
The star’s first post was a video of him explaining his reasons for joining the photo-sharing platform, and what people can expect from his account.
Aniston, who played Rachel Green on the show throughout its 10-season run from 1994 to 2004, uploaded the image as her first post.


+++ title = "Big ugly good raincoat" slug = "big-ugly-good-raincoat" date = 2007-03-21T11:00:00+10:00 tags = ["yuck", "for-sale", "industrial-strength"] locations = ["united-states/san-francisco"] draft = false summary = """
Went down to Market St in SF today, and at the cheaper end, I found an awesome army-surplus-slash-cheap-outdoor-gear store called Kaplan's. Got myself a really big, quite ugly, and definitely waterproof poncho, which can cover me and my massive backpack with its vomit-coloured Army-camo protection. For $10, I'm very happy with my purchase, which should keep me dry even in the wettest and most remote corners of South America.
""" +++Went down to Market St in SF today, and at the cheaper end, I found an awesome army-surplus-slash-cheap-outdoor-gear store called Kaplan's. Got myself a really big, quite ugly, and definitely waterproof poncho, which can cover me and my massive backpack with its vomit-coloured Army-camo protection. For $10, I'm very happy with my purchase, which should keep me dry even in the wettest and most remote corners of South America.
{{< galleryphoto "2007-03-21-11-00-00--army-raincoat-hanging-in-my-dorm-room-don-t-worry-there.jpg" >}}


## -*- coding: utf-8 -*- <%include file="../header.html" />
You successfully added your YubiKey informations on this server.
From now on, you can use https://yubico.internux.ch/verify/check/?otp=OTP&h=SIGN
to validate your login system.
SIGN is obtained through this code:
args = hmac.new(key, s, digestmod=sha512) sign = base64.b64encode(args.digest())where "key" is your API key (see bellow) and "s" is a simple "otp=OTP".
% if c.replay:
Here is your API key for recall: ${c.api_key}
% else:
Your API key is: ${c.api_key}
% endif
Don't lose it. If it happens anyway, send an email to yubico[at]internux[dot]ch. We will regenerate a brand new key.
You can access your Manager. You'll have to log in with one of your configured Yubikey.
<%include file="../footer.html" />


<
head
>
  I don't need nobody
</
head
>
<
body
>
  I don't need nobody
</
body
>
<
footer
>
I don't need nobody
</
footer
>
<
head
>
  I don't need no body
</
head
>
<
footer
>
I don't need no body
</
footer
>
<!-- Subtle Spacing Makes Subtle Jokes -->


Menu
Connect with us
More Option
×
EMAIL
Send To:
Compose Message:
×
EMAIL
Send To:
Compose Message:
Home
About
Contact


Hi,
is it the circuit http://openenergymonitor.org/emon/buildingblocks/how-to-build-an-arduino...
can use with PIC microcontroller instead of using arduoino.
it is because i want to built energy monitor using PIC as it is one of the condiotion of my project.
hope you guys out there can help me.
thank a lot.
Re: using PIC microcontroller for energy monitor
The Arduino and the PIC are generally similar and both use a 5 V input, but that is all. The connections - pin numbers - are different. None of the software for the Arduino will work on a PIC without a lot of changes.
But you could use the general ideas that you find in the programs (sketches) for the emonTx. In just a few minutes, I found much information about the PIC analogue inputs. I think that is your starting point. When you can read two analogue inputs, you can then use the algorithm in the emonTx sketches to calculate the voltage, current and power.
Re: using PIC microcontroller for energy monitor
i will test the EMON on PIC soon, using the chipKIT MAX32
info about CPU: PIC32MX795F512H
- 512K Flash (plus 12K boot Flash)
- 128K RAM
- 80MHz, 1.56 DMIPS/MHz, 32-bit MIPS
- Fast and Accurate 16 channel 10-bit ADC, Max 1 Mega sample per second
Regarding EMON ARDUINO code, only in readVCC AVR specific code is used,
the arduino code will work.
the speed must be slowed down for EMON batch by a delay ( this PIC about 10 times faster ),
because of RAM and FLASH much more code / options can be loaded, (like SCOPE / FFT / GSM SMS ALARM.. )
As first step pls find my PoorManScope2 in the download area of my BLOG,
same code runs with arduino 1.0.1 and with MPIDE.
EMON shield , Volt, Amp signal, on arduino uno at 4.3kHz , that is max speed for 2 analog in, for this PIC it is 100kHz.
For one analog in, the limit is 8.3kHz (UNO), 199kHz (PIC).
The PMS2 scope window is a processing application, runs on PC, connected to UNO or MAX32 board. pls test it.
pls check progress kll.byethost7.com/kll_en7/news.php
Re: using PIC microcontroller for energy monitor
GOOD NEWS, on PIC:
with EMON FULL WAVE sketch,
- only readVcc replaced with fix value 3300, ( because its AVR code what can not run on PIC )
- a delaytimer in batch loop of 353usec
and EMON shield virtual ZERO circuit:
- not to 5V, instead to 3V3 shield pin connected ( i installed a 3pin jumper )
BUT SAME TUNING.. like on ARDUINO UNO
get same timing and results with the chipKIT MAX32 board.
using the full 30kHz speed the readings about 7% to small???
pls find attached code to be used in MPIDE (0023) or ARDUINO 1.0.1
for chipKIT MAX32 or ARDUINO UNO
and also PoorManScope2 ( CHART recoder sketch only for fast wave form check )
Re: using PIC microcontroller for energy monitor
Project to log and display DC wattage use.
I have a DC powered electric assisted bicycle. He runs on approx 24v although the range is more like 29.6 to 22v from charged
to full discharge states. I have a current circuit that sends 0-50A as 0-50mv to a milliavolt meter on my handle bars now.
Max reading is 35A (that is the PWM controller limit).
I'll soon be adding another feed wire to send raw batt voltage to the same area of the bike.
I have an arduino UNO, and also I pi, but I would very much like to use just the UNO.
What I am looking for is a trip-watt-o-meter (my term). I need to count current@voitage * minutes or seconds and log to NV /
send to some kind of display (I have some 16x2 lcd and other lcd on hand).
Ideally I want to be able to set a starting quantity equal to my fully charged 24v/20ah pack expected reserve. Lets call this wmax
(watts max available) And then count down to zero, based on use. If it could drive two horizontal graphs for real time V and I
(ideally going reverse of each other) and have the remaining at the end, or center, that would be fantastic.
So, if I say 0-33mv I can use the onboard 3.3v supply for A/D right? And directly read the current. I should also be able to (with
less resolution) devide the remainder above 22v by something to get 0-3.3v. (or run on external 5v ref, but that would reduce
the accuracy of the wattage calc from the ammeter).
It looks like I can use some of the sketch from emontx, I'm looking for thoughts / input from the group, thanks.
Re: using PIC microcontroller for energy monitor
Hello Jeff,
Firstly, we use mainly the Atmel (Arduino) processor here. There is quite a bit of information in the sketches, but I think little that will be of great help, simply because this site is all about monitoring a.c. power. But there is enough knowledge here to be able to help you, if you can put your own hardware together.
As I understand, you have a current signal of 0 - 50 mV, and a voltage signal of 0 - 30 V (approx). and you want a bargraph display of both these, and you want an estimate of energy remaining in your battery - as numbers and a bargraph?
If you can use the Atmel ATMEGA328P, then the emonGLCD has a LCD screen on which you can draw bargraphs and text, and the processor has analogue inputs that, with some amplification for the current signal and voltage dividers for the battery voltage, will give you your inputs.
So I am thinking that you take the emonGLCD circuit for the display, and build on to it the analogue inputs (you don't need the radio input). You can run the processor at 3.3 V but use the 1 V reference for the analogue inputs, which means the current input will require less amplification (20 x ) (without amplification, at best you only get 50 steps in the current measurement - that might be good enough but I don't really think so). The voltage input is not a problem.
Does that help?


Primary School High School Annual Day (Different Years) Guest Lectures and Workshops Aftermath of Cyclone Gaja Aftermath of Cyclone Gaja New look of the school after repairs from Cycle Gaja Some villages near the school Fun with visitors


Future features
Listed in no particular order
- Dropping (creating drops)
- Re-dropping
- Pagination of drops (Apr 21)
- Resetting passwords (if your long-term memory betrayed you)
- Thumbnail-size images in overviews
- Profile editing
- Registering a new account
-
Profile:
- Score
- Listing of followers
- Summaries (drop count, number of followers, etc)
- A big fat "follow" button
- Similar drops
- Search by tag (Apr 21)
- NSFW:
- Browse mode (filtering content which is or isn't NSFW)
- Mark drops as NSFW
- Real-time updates (like live count on subscriptions)
- RSS, JSON, and other funky kinds of data feeds
- Public API consolidation & documentation


Create a Vision
"The future belongs to those who believe in the beauty of their dreams."
-- Eleanor Roosevelt
Search For Visions By Theme
"The future belongs to those who believe in the beauty of their dreams."
-- Eleanor Roosevelt
Search For Visions By Theme


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.pebble.domain.TimePeriod net.sourceforge.pebble.domain.Month
public class Month
Represents a blog at a monthly level. This manages a collection of Day instances.
| Method Summary | |
|---|---|
boolean |
after(Month month)
Determines if the this Month is after (in the calendar) the specified Month. |
boolean |
before(Month month)
Determines if the this Month is before (in the calendar) the specified Month. |
Day[] |
getAllDays()
Gets an array of all Days. |
java.util.List<java.lang.String> |
getBlogEntries()
Gets all blog entries for this month. |
Day |
getBlogForDay(int day)
Gets a Day instance for the specified day. |
Day |
getBlogForFirstDay()
Gets a Day instance for the first day of the month. |
Day |
getBlogForLastDay()
Gets a Day instance for the last day of the month. |
int |
getLastDayInMonth()
Gets the last day of the month. |
int |
getMonth()
Gets an integer representing the month that this monthly blog is for. |
Month |
getNextMonth()
Gets the Month instance for the next month. |
int |
getNumberOfBlogEntries()
Gets the number of blog entries for this month. |
java.lang.String |
getPermalink()
Gets the permalink to display all entries for this Month. |
Month |
getPreviousMonth()
Gets the Month instance for the previous month. |
Year |
getYear()
Gets a reference to the parent Year instance. |
boolean |
hasBlogEntries()
Determines whether this monthly blog has entries. |
java.lang.String |
toString()
Gets a string representation of this object. |
| Methods inherited from class net.sourceforge.pebble.domain.TimePeriod |
|---|
getBlog, getDate, setDate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Year getYear()
public int getMonth()
public java.lang.String getPermalink()
getPermalink
in interface Permalinkable
public boolean hasBlogEntries()
public java.util.List<java.lang.String> getBlogEntries()
public int getNumberOfBlogEntries()
public Day[] getAllDays()
public Day getBlogForDay(int day)
day
- the day as an int (i.e. 1 to 31)
public Day getBlogForFirstDay()
public Day getBlogForLastDay()
public int getLastDayInMonth()
public Month getPreviousMonth()
public Month getNextMonth()
public boolean before(Month month)
public boolean after(Month month)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


BASIC CAPTIONANIMATIONS FADE SHORT FROM LEFT (sfl) SKEW FROM LEFT (skewfromleft) SHORT FROM TOP (sft) LONG FROM TOP (lft) SHORT FROM RIGHT (sfr) SKEW FROM RIGHT (skewfromright) SHORT FROM BOTTOM (sfb) LONG FROM BOTTOM (lfb) RANDOM ROTATE (randomrotate) LONG FROM RIGHT (lfr) LONG FROM LEFT (lfl) SOME FANCY EASING Power1.easeOut Back.easeOut Elastic.easeOut Power3.easeInOut Power4.easeOut Power2.easeInOut Circ.easeOut Cube.easeOut Bounce.easeOut Linear.easeNone Expo.easeOut Expo.easeIn TRY THECAPTION ANIMATION BUILDER BELOW GO AND GIVE A TRY CREATE AWESOME ANIMATIONS
Fade Flat Fade Transitions Fade Fade Boxes Fade Slots Horizontal Fade Slots Vertical Fade and Slide from Right Fade and Slide from Left Fade and Slide from Top Fade and Slide from Bottom Fade To Left and Fade From Right Fade To Right and Fade From Left Fade To Top and Fade From Bottom Fade To Bottom and Fade From Top Flat Zoom Transitions Zoom Out and Fade From Right Zoom Out and Fade From Left Zoom Out and Fade From Top Zoom Out and Fade From Bottom ZoomOut ZoomIn Zoom Slots Horizontal Zoom Slots Vertical Flat Parallax Transitions Parallax to Right Parallax to Left Parallax to Top Parallax to Bottom Flat Slide Transitions Slide To Top Slide To Bottom Slide To Right Slide To Left Slide Horizontal (depending on Next/Previous) Slide Vertical (depending on Next/Previous) Slide Boxes Slide Slots Horizontal Slide Slots Vertical Curtain from Left Curtain from Right Curtain from Middle Premium Transitions 3D Curtain Horizontal 3D Curtain Vertical Cube Vertical Cube Horizontal In Cube Vertical In Cube Horizontal TurnOff Horizontal TurnOff Vertical Paper Cut Fly In Random Premium Random Flat and Premium Time: 0.7s Slots: 5 Result Of Transition <!-- SLIDE --> <li data-transition="fade" data-slotamount="5" data-masterspeed="700" >
Fade Flat Fade Transitions Fade Fade Boxes Fade Slots Horizontal Fade Slots Vertical Fade and Slide from Right Fade and Slide from Left Fade and Slide from Top Fade and Slide from Bottom Fade To Left and Fade From Right Fade To Right and Fade From Left Fade To Top and Fade From Bottom Fade To Bottom and Fade From Top Flat Zoom Transitions Zoom Out and Fade From Right Zoom Out and Fade From Left Zoom Out and Fade From Top Zoom Out and Fade From Bottom ZoomOut ZoomIn Zoom Slots Horizontal Zoom Slots Vertical Flat Parallax Transitions Parallax to Right Parallax to Left Parallax to Top Parallax to Bottom Flat Slide Transitions Slide To Top Slide To Bottom Slide To Right Slide To Left Slide Horizontal (depending on Next/Previous) Slide Vertical (depending on Next/Previous) Slide Boxes Slide Slots Horizontal Slide Slots Vertical Curtain from Left Curtain from Right Curtain from Middle Premium Transitions 3D Curtain Horizontal 3D Curtain Vertical Cube Vertical Cube Horizontal In Cube Vertical In Cube Horizontal TurnOff Horizontal TurnOff Vertical Paper Cut Fly In Random Premium Random Flat and Premium Time: 0.7s Slots: 5


{% extends "moneybags/base.html" %} {% load url from future %} {% block content %}
You haven't set up any Accounts yet.


DBC CHEAT SHEET
Ruby BASICS
irb
opens an instance of interactive Ruby in the command line
ruby
runs a ruby file through the command line
Comments
Begin an inline comment with #
Begin a comment block with =begin
and end the block with =end
math operators + - * /
5 + 5 = 10
5 - 5 = 0
5 * 5 = 25
5 / 5 = 1
p
p "Hello World!" #Prints to console
puts
puts "Hello World!" #Prints to console and includes a line break after
&&, ||, !
true && true
=> true
true && false
=> false
false and true
=> false
false and false
=> false
true || true
=> true
true || false
=> true
false or true
=> true
false or false
=> false
!true
=> false
not false
=> true
Setting Variables
a = 5
b = 0
a + b = 5
a - b = 5
Comparison Operators
x == y # returns true if two things are equal
x != y # returns true if two things are not equal
x <= y # returns true if x is less than or equal to y
x >= y # returns true if x is greater than or equal to y
x < y # returns true if x is less than y
x > y # returns true if x is greater than y
5 == 5
=> true
5 != 5
=> false
2 <= 2
=> true
2 >= 3
=> false
1 < 2
=> true
1 > 2
=> false
Ternary Operator
This is a shorthand statement for a simple if...else statement. It is a useful tool in situations where you have an extremely simple if...else statement where you are trying to assign a value to a variable.
grade = 88
status = grade >= 70 ? "pass" : "fail"
=> pass
Looping in Ruby and JavaScript
Looping in Ruby
In Ruby, we have a number of ways to perform loop functions. You must be careful to end loops or else your program will be stuck in an infinite loop and likely crash. Below are descriptions of each statment but here they are listed: while, until, for, next, and .each.
irb
opens an instance of interactive Ruby in the command lineruby
runs a ruby file through the command lineComments
Begin an inline comment with # Begin a comment block with=begin
and end the block with =end
math operators + - * /
5 + 5 = 10
5 - 5 = 0
5 * 5 = 25
5 / 5 = 1
p
p "Hello World!" #Prints to console
puts
puts "Hello World!" #Prints to console and includes a line break after
&&, ||, !
true && true
=> true
true && false
=> false
false and true
=> false
false and false
=> false
true || true
=> true
true || false
=> true
false or true
=> true
false or false
=> false
!true
=> false
not false
=> true
Setting Variables
a = 5
b = 0
a + b = 5
a - b = 5
Comparison Operators
x == y # returns true if two things are equal
x != y # returns true if two things are not equal
x <= y # returns true if x is less than or equal to y
x >= y # returns true if x is greater than or equal to y
x < y # returns true if x is less than y
x > y # returns true if x is greater than y
5 == 5
=> true
5 != 5
=> false
2 <= 2
=> true
2 >= 3
=> false
1 < 2
=> true
1 > 2
=> false
Ternary Operator
This is a shorthand statement for a simple if...else statement. It is a useful tool in situations where you have an extremely simple if...else statement where you are trying to assign a value to a variable.
grade = 88
status = grade >= 70 ? "pass" : "fail"
=> pass
Looping in Ruby
In Ruby, we have a number of ways to perform loop functions. You must be careful to end loops or else your program will be stuck in an infinite loop and likely crash. Below are descriptions of each statment but here they are listed: while, until, for, next, and .each.


§346-39 Legal representative. The attorney general and the county attorneys and corporation counsel shall act as legal representatives of the department of human services when so requested. [L 1941, c 296, pt of §1; RL 1945, §4845; RL 1955, §108-25; HRS §346-39; am L 1970, c 105, §5; am L 1987, c 339, §4]
Revision Note
Reference to "corporation counsel" added to conform to county charters.


DeviceAuthorizationResponse extends ApiResponse
Response from Authlete's /api/device/authorization API.
Authlete's /api/device/authorization
API returns JSON which can be mapped
to this class. The authorization server implementation should retrieve the
value of the action
response parameter (which can be obtained by
getAction()
method of this class) from the response and take the following
steps according to the value.
When the value returned from getAction()
method is
DeviceAuthorizationAction::$OK
, it means that the device authorization
request from the client application is valid.
The authorization server implementation should generate a response to the
client application with 200 OK
and application/json
.
The getResponseContent()
method returns a JSON string which can be used
as the entity body of the response.
The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
(The value returned from getResponseContent())
When the value returned from getAction()
method is
DeviceAuthorizationAction::$BAD_REQUEST
, it means that the device
authorization request from the client application was wrong.
The authorization server implementation should generate a response to the
client application with 400 Bad Request
and application/json
.
The getResponseContent()
method returns a JSON string which describes
the error, so it can be used as the entity body of the response.
The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
(The value returned from getResponseContent())
When the value returned from getAction()
method is
DeviceAuthorizationAction::$UNAUTHORIZED
, it means that client
authentication of the device authorization request failed.
The authorization server implementation should generate a response to the
client application with 401 Unauthorized
and application/json
.
The getResponseContent()
method returns a JSON string which describes
the error, so it can be used as the entity body of the response.
The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 401 Unauthorized
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
(The value returned from getResponseContent())
When the value returned from getAction()
method is
DeviceAuthorizationAction::$INTERNAL_SERVER_ERROR
, it means that the API
call from the authorization server implementation was wrong or that an error
occurred in Authlete.
In either case, from a viewpoint of the client application, it is an error
on the server side. Therefore, the authorization server implementation
should generate a response to the client application with
500 Internal Server Error
and application/json
.
The getResponseContent()
method returns a JSON string which describes
the error, so it can be used as the entity body of the response.
The following illustrates the response which the authorization server implementation should generate and return to the client application.
HTTP/1.1 500 Internal Server Error
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
(The value returned from getResponseContent())
Tags
Table of Contents
- copyFromArray() : mixed
- Copy the content of the given array into this object.
- copyToArray() : mixed
- Copy the content of this object into the given array.
- fromArray() : static
- Convert an array into an instance of this class.
- fromJson() : static
- Convert a JSON string into an instance of this class.
- getAcrs() : array<string|int, string>
- Get the list of ACR values requestsed by the device authorization request.
- getAction() : DeviceAuthorizationAction
- Get the next action that the device authorization endpoint should take.
- getClaimNames() : array<string|int, string>
- Get the names of the claims which were requested indirectly via some special scopes. See [5.4. Requesting Claims using Scope Values](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) in [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) for details.
- getClientId() : int|string
- Get the ID of the client application that has made the device authorization request.
- getClientIdAlias() : string
- Get the client ID alias of the client application that has made the device authorization request.
- getClientName() : string
- Get the name of the client application that has made the device authorization request.
- getDeviceCode() : string
- Get the device verification code. This corresponds to the `device_code` property in the response to the client.
- getExpiresIn() : int|string
- Get the duration of the issued device verification code and end-user verification code in seconds. This corresponds to the `expires_in` property in the response to the client.
- getInterval() : int
- Get the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint. This corresponds to the `interval` property in the response to the client.
- getResources() : array<string|int, string>
- Get the resources specified by the `resource` request parameters.
- getResponseContent() : string
- Get the content that can be used to generate a response to the client application.
- getResultCode() : string
- Get the code of the result of an Authlete API call.
- getResultMessage() : string
- Get the message of the result of an Authlete API call.
- getScopes() : array<string|int, Scope>
- Get the scopes requested by the device authorization request.
- getUserCode() : string
- Get the end-user verification code. This corresponds to the `user_code` property in the response to the client.
- getVerificationUri() : string
- Get the end-user verification URI. This corresponds to the `verification_uri` property in the response to the client.
- getVerificationUriComplete() : string
- Get the end-user verification URI that includes the end-user verification code. This corresponds to the `verification_uri_complete` property in the response to the client.
- getWarnings() : array<string|int, string>
- Get the warnings raised during processing the device authorization request.
- isClientIdAliasUsed() : bool
- Get the flag which indicates whether the client ID alias was used in the device authorization request.
- setAcrs() : DeviceAuthorizationResponse
- Set the list of ACR values requestsed by the device authorization request.
- setAction() : DeviceAuthorizationResponse
- Set the next action that the device authorization endpoint should take.
- setClaimNames() : DeviceAuthorizationResponse
- Set the names of the claims which were requested indirectly via some special scopes.
- setClientId() : DeviceAuthorizationResponse
- Set the ID of the client application that has made the device authorization request.
- setClientIdAlias() : DeviceAuthorizationResponse
- Set the client ID alias of the client application that has made the device authorization request.
- setClientIdAliasUsed() : DeviceAuthorizationResponse
- Set the flag which indicates whether the client ID alias was used in the device authorization request.
- setClientName() : DeviceAuthorizationResponse
- Set the name of the client application that has made the device authorization request.
- setDeviceCode() : DeviceAuthorizationResponse
- Set the device verification code. This corresponds to the `device_code` property in the response to the client.
- setExpiresIn() : DeviceAuthorizationResponse
- Set the duration of the issued device verification code and end-user verification code in seconds. This corresponds to the `expires_in` property in the response to the client.
- setInterval() : DeviceAuthorizationResponse
- Set the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint. This corresponds to the `interval` property in the response to the client.
- setResources() : DeviceAuthorizationResponse
- Set the resources specified by the `resource` request parameters.
- setResponseContent() : DeviceAuthorizationResponse
- Set the content that can be used to generate a response to the client application.
- setResultCode() : ApiResponse
- Set the code of the result of an Authlete API call.
- setResultMessage() : ApiResponse
- Set the message of the result of an Authlete API call.
- setScopes() : DeviceAuthorizationResponse
- Set the scopes requested by the device authorization request.
- setUserCode() : DeviceAuthorizationResponse
- Set the end-user verification code. This corresponds to the `user_code` property in the response to the client.
- setVerificationUri() : DeviceAuthorizationResponse
- Set the end-user verification URI. This corresponds to the `verification_uri` property in the response to the client.
- setVerificationUriComplete() : DeviceAuthorizationResponse
- Set the end-user verification URI that includes the end-user verification code. This corresponds to the `verification_uri_complete` property in the response to the client.
- setWarnings() : DeviceAuthorizationResponse
- Set the warnings raised during processing the device authorization request.
- toArray() : array<string|int, mixed>
- Convert this object into an array.
- toJson() : string
- Convert this object into a JSON string.
Methods
copyFromArray()
Copy the content of the given array into this object.
public
copyFromArray(array<string|int, mixed> &$array) : mixed
Parameters
- $array : array<string|int, mixed>
Return values
mixed —copyToArray()
Copy the content of this object into the given array.
public
copyToArray(array<string|int, mixed> &$array) : mixed
Parameters
- $array : array<string|int, mixed>
Return values
mixed —fromArray()
Convert an array into an instance of this class.
public
static fromArray([array<string|int, mixed> $array = null ]) : static
This static function returns a new instance of this class.
If $array
is null
, null
is returned.
Parameters
- $array : array<string|int, mixed> = null
-
An array
Return values
static —An instance of this class.
fromJson()
Convert a JSON string into an instance of this class.
public
static fromJson(string $json) : static
This static function returns a new instance of this class.
If $json
is null
or the type of $json
is not string
,
null
is returned.
Parameters
- $json : string
-
A JSON string.
Return values
static —An instance of this class.
getAcrs()
Get the list of ACR values requestsed by the device authorization request.
public
getAcrs() : array<string|int, string>
Basically, this method returns the value of the acr_values
request
parameter in the device authorization request. However, because
unsupported ACR values are dropped on Authlete side, if the acr_values
request parameter contains unrecognized ACR values, the list returned
by this method becomes different from the value of the acr_values
request parameter.
If the request does not include the acr_values
request parameter,
the value of the default_acr_values
client metadata is used.
Return values
array<string|int, string> —The list of requested ACR values.
getAction()
Get the next action that the device authorization endpoint should take.
public
getAction() : DeviceAuthorizationAction
Return values
DeviceAuthorizationAction —The next action that the device authorization endpoint should take.
getClaimNames()
Get the names of the claims which were requested indirectly via some special scopes. See [5.4. Requesting Claims using Scope Values](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) in [OpenID Connect Core 1.0](https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims) for details.
public
getClaimNames() : array<string|int, string>
This method always returns null
if the scope
request parameter of
the device authorization request does not include the openid
scope
even if special scopes (such as profile
) are included in the request
(unless the openid
scope is included in the default set of scopes
which is used when the scope
request parameter is omitted).
Return values
array<string|int, string> —The names of the requested claims.
getClientId()
Get the ID of the client application that has made the device authorization request.
public
getClientId() : int|string
Return values
int|string —The client ID.
getClientIdAlias()
Get the client ID alias of the client application that has made the device authorization request.
public
getClientIdAlias() : string
Return values
string —The client ID alias.
getClientName()
Get the name of the client application that has made the device authorization request.
public
getClientName() : string
Return values
string —The name of the client application.
getDeviceCode()
Get the device verification code. This corresponds to the `device_code` property in the response to the client.
public
getDeviceCode() : string
Return values
string —The device verification code.
getExpiresIn()
Get the duration of the issued device verification code and end-user verification code in seconds. This corresponds to the `expires_in` property in the response to the client.
public
getExpiresIn() : int|string
Return values
int|string —The duration of the issued device verification code and end-user verification code in seconds.
getInterval()
Get the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint. This corresponds to the `interval` property in the response to the client.
public
getInterval() : int
Return values
int —The minimum amount of time in seconds between polling requests.
getResources()
Get the resources specified by the `resource` request parameters.
public
getResources() : array<string|int, string>
Tags
Return values
array<string|int, string> —The target resources.
getResponseContent()
Get the content that can be used to generate a response to the client application.
public
getResponseContent() : string
Return values
string —The response content.
getResultCode()
Get the code of the result of an Authlete API call.
public
getResultCode() : string
Return values
string —The result code.
getResultMessage()
Get the message of the result of an Authlete API call.
public
getResultMessage() : string
Return values
string —The result message.
getScopes()
Get the scopes requested by the device authorization request.
public
getScopes() : array<string|int, Scope>
Basically, this method returns the value of the scope
request parameter
in the device authorization request. However, because unregistered
scopes are dropped on Authlete side, if the scope
request parameter
contains unknown scopes, the list returned by this method becomes
different from the value of the scope
request parameter.
Note that Scope.getDescription()
method and Scope.getDescriptions()
method of each element (Scope
instance) in the array returned from
this method always return null
even if descriptions of the scopes are
registered.
Return values
array<string|int, Scope> —The requested scopes.
getUserCode()
Get the end-user verification code. This corresponds to the `user_code` property in the response to the client.
public
getUserCode() : string
Return values
string —The end-user verification code.
getVerificationUri()
Get the end-user verification URI. This corresponds to the `verification_uri` property in the response to the client.
public
getVerificationUri() : string
Return values
string —The end-user verification URI.
getVerificationUriComplete()
Get the end-user verification URI that includes the end-user verification code. This corresponds to the `verification_uri_complete` property in the response to the client.
public
getVerificationUriComplete() : string
Return values
string —The end-user verification URI that includes the end-user verification code.
getWarnings()
Get the warnings raised during processing the device authorization request.
public
getWarnings() : array<string|int, string>
Return values
array<string|int, string> —Warnings. This may be null.
isClientIdAliasUsed()
Get the flag which indicates whether the client ID alias was used in the device authorization request.
public
isClientIdAliasUsed() : bool
Return values
bool —true
if the client ID alias was used in the request.
setAcrs()
Set the list of ACR values requestsed by the device authorization request.
public
setAcrs([array<string|int, string> $acrs = null ]) : DeviceAuthorizationResponse
Parameters
- $acrs : array<string|int, string> = null
-
The list of requested ACR values.
Return values
DeviceAuthorizationResponse —$this
object.
setAction()
Set the next action that the device authorization endpoint should take.
public
setAction([DeviceAuthorizationAction $action = null ]) : DeviceAuthorizationResponse
Parameters
- $action : DeviceAuthorizationAction = null
-
The next action that the device authorization endpoint should take.
Return values
DeviceAuthorizationResponse —$this
object.
setClaimNames()
Set the names of the claims which were requested indirectly via some special scopes.
public
setClaimNames([array<string|int, string> $names = null ]) : DeviceAuthorizationResponse
Parameters
- $names : array<string|int, string> = null
-
The names of the requested claims.
Return values
DeviceAuthorizationResponse —$this
object.
setClientId()
Set the ID of the client application that has made the device authorization request.
public
setClientId(int|string $clientId) : DeviceAuthorizationResponse
Parameters
- $clientId : int|string
-
The client ID.
Return values
DeviceAuthorizationResponse —$this
object.
setClientIdAlias()
Set the client ID alias of the client application that has made the device authorization request.
public
setClientIdAlias(string $alias) : DeviceAuthorizationResponse
Parameters
- $alias : string
-
The client ID alias.
Return values
DeviceAuthorizationResponse —$this
object.
setClientIdAliasUsed()
Set the flag which indicates whether the client ID alias was used in the device authorization request.
public
setClientIdAliasUsed(bool $used) : DeviceAuthorizationResponse
Parameters
- $used : bool
-
true
to indicate that the client ID alias was used in the request.
Return values
DeviceAuthorizationResponse —$this
object.
setClientName()
Set the name of the client application that has made the device authorization request.
public
setClientName(string $name) : DeviceAuthorizationResponse
Parameters
- $name : string
-
The name of the client application.
Return values
DeviceAuthorizationResponse —$this
object.
setDeviceCode()
Set the device verification code. This corresponds to the `device_code` property in the response to the client.
public
setDeviceCode(string $code) : DeviceAuthorizationResponse
Parameters
- $code : string
-
The device verification code.
Return values
DeviceAuthorizationResponse —$this
object.
setExpiresIn()
Set the duration of the issued device verification code and end-user verification code in seconds. This corresponds to the `expires_in` property in the response to the client.
public
setExpiresIn(int|string $expiresIn) : DeviceAuthorizationResponse
Parameters
- $expiresIn : int|string
-
The duration of the issued device verification code and end-user verification code in seconds.
Return values
DeviceAuthorizationResponse —$this
object.
setInterval()
Set the minimum amount of time in seconds that the client must wait for between polling requests to the token endpoint. This corresponds to the `interval` property in the response to the client.
public
setInterval(int $interval) : DeviceAuthorizationResponse
Parameters
- $interval : int
-
The minimum amount of time in seconds between polling requests.
Return values
DeviceAuthorizationResponse —$this
object.
setResources()
Set the resources specified by the `resource` request parameters.
public
setResources([array<string|int, string> $resources = null ]) : DeviceAuthorizationResponse
Parameters
- $resources : array<string|int, string> = null
-
The target resources.
Tags
Return values
DeviceAuthorizationResponse —$this
object.
setResponseContent()
Set the content that can be used to generate a response to the client application.
public
setResponseContent(string $responseContent) : DeviceAuthorizationResponse
Parameters
- $responseContent : string
-
The response content.
Return values
DeviceAuthorizationResponse —$this
object.
setResultCode()
Set the code of the result of an Authlete API call.
public
setResultCode(string $resultCode) : ApiResponse
Parameters
- $resultCode : string
-
The result code.
Return values
ApiResponse —$this
object.
setResultMessage()
Set the message of the result of an Authlete API call.
public
setResultMessage(string $resultMessage) : ApiResponse
Parameters
- $resultMessage : string
-
The result message.
Return values
ApiResponse —$this
object.
setScopes()
Set the scopes requested by the device authorization request.
public
setScopes([array<string|int, Scope> $scopes = null ]) : DeviceAuthorizationResponse
Parameters
- $scopes : array<string|int, Scope> = null
-
The requested scopes.
Return values
DeviceAuthorizationResponse —$this
object.
setUserCode()
Set the end-user verification code. This corresponds to the `user_code` property in the response to the client.
public
setUserCode(string $code) : DeviceAuthorizationResponse
Parameters
- $code : string
-
The end-user verification code.
Return values
DeviceAuthorizationResponse —$this
object.
setVerificationUri()
Set the end-user verification URI. This corresponds to the `verification_uri` property in the response to the client.
public
setVerificationUri(string $uri) : DeviceAuthorizationResponse
Parameters
- $uri : string
-
The end-user verification URI.
Return values
DeviceAuthorizationResponse —$this
object.
setVerificationUriComplete()
Set the end-user verification URI that includes the end-user verification code. This corresponds to the `verification_uri_complete` property in the response to the client.
public
setVerificationUriComplete(string $uri) : DeviceAuthorizationResponse
Parameters
- $uri : string
-
The end-user verification URI that includes the end-user verification code.
Return values
DeviceAuthorizationResponse —$this
object.
setWarnings()
Set the warnings raised during processing the device authorization request.
public
setWarnings([array<string|int, string> $warnings = null ]) : DeviceAuthorizationResponse
Parameters
- $warnings : array<string|int, string> = null
-
Warnings
Return values
DeviceAuthorizationResponse —$this
object.
toArray()
Convert this object into an array.
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —An array.
toJson()
Convert this object into a JSON string.
public
toJson(int $options) : string
Parameters
- $options : int
-
Options passed to
json_encode()
. This parameter is optional and its default value is 0.
Return values
string —A JSON string.


1All varieties are known or presumed coastal ecotypes. ‘Red Head’ was selected from the lines that originated in Chile [ 42]. ‘QQ74’ is a recognized coastal ecotype [ 43]. ‘Jessie’ is a coastal ecotype, but with some Ecuadorian highland ecotype genes [ 44]. Genomic analysis of variants among quinoa samples also showed further information on variety differentiation ( S1 Fig).
2Saponin level and taste designation are from previous reports: ‘Red Head’ and ‘QQ74’ [ 40]; ‘Jessie’ [ 43].


I found it quite hard to speak for four minutes, my partner thought I was rambling on a bit and then tuned out. This made feedback quite difficult
I focused on my partners speaking and found I was wandering off and missed a fair bit, my recal of she was saying was quite patchy.
As I am working on my own a fair bit during the day, I'm going to use options 2&3. Staying within my abilities makes a lot of sense.
Taking one mindful breath several times a day is within my abilities, I am trying to achieve this after every break I take.
I'm interested in bringing Joyfull Mindfulness into my practice, I would lke to think I could achieve sukha at some time in my life.


Salmon Cookies Sales
Home
Sales
Sale's Page
Add a New Store
MinCustomer Per Hour
MaxCustomer Per Hour
Average Customer Per Hour
Location
Add Store


Title:
Export to LaTeX
Author:
Results
Line plot
Tree
Results
iRace information
{{ line }}
Elite candidates performance
Best candidates comparison
Iteration elites
Conclusion
Scenario review
Short version:
number of parameters of each type and selected candidates.
Long version:
complete parameter space description, number of instances, file paths and selected candidates


Hello! Here you can play the piano with the occasional help of AI!
While playing, the AI will try to correct your errors or play something that it finds more fitting, depending on the settings
Plug in your MIDI Keyboard (+sustain pedal) and try it out!
Built with magenta.js and tensorflow.js, forked from Piano Genie
Web demo for Real-time error correction and performance aid for MIDI instruments research paper
Note: The original RNN models were quantized for this demo, sacrificing model accuracy for the a decent inference latency when ran in the browser
Unfortunately, this browser does not support WebMIDI, which is only supported in Chrome and Opera.
(How sure it needs to be that there's a more suitable note before correcting you. The lower the value the more it will interfere.)
Value:


To stay updated with us please login with your registered information
Enter your personal details and start your journey with us


The java::new command is used to create new instances of accessible Java objects from Tcl. The first form of the command accepts a signature argument which specifies the signature of the constructor for the Java object that will be created. The second form accepts an arraySignature argument which specifies the class type of the array and the number of dimensions in the array.
When java::new is called with a non-array signature, the appropriate constructor for the Java object is invoked with the arguments to the java::new command provided as arguments to the Java constructor. If the arguments to java::new are not already Java objects, then those Tcl values are converted to Java objects or primitive values before being passed to the constructor. When the constructor finishes, a Java object handle is returned by the java::new command. Because the specification of signatures for constructors and methods is very simmilar, a seperate Signatures section covers them both.
When java::new is called with an arraySignature argument, the signature is examined to determine the type of the array and the number of dimensions. The arraySignature argument consists of a class or a primitive data type followed by one or more pairs of brackets. The number of pairs of brackets determines the dimension of the array. For example, {int[][][]} indicates a three dimensional array of integers; the curly braces keeps the Tcl interpreter from evaluating the empty brackets as empty commands.
The sizeList argument determines the number of array elements allocated for each dimension in the array. The i'th element of sizeList specifies the size of the i'th dimension of the array. If sizeList contains more elements than the number of dimensions specified by the arraySignature, then an error is returned. If sizeList contains fewer elements than the number of dimensions specified by the arraySignature, then the size will be determined by the valueList, if present.
The valueList argument is used to set initial values of the array cells. Elements of the valueList must be of the same type as the base class of the array. If the array is multidimensional, then the list must contain sublists of a depth equal to the number of dimensions of the array. If no element is specified in the valueList for a particular array cell, the cell will be initialized to the standard default value for the corresponding Java array type. If the length of the sizeList is smaller than the number of array dimensions, the size of each row whose size is not specified by the sizeList is determined by the length of the corresponding sublist in valueList, or 0 if the valueList contains no corresponding sublist. An error occurs if any dimension other than the last has size 0.
The Conversions section describes how arguments to the java::new command might be converted to Java objects or primitive types.
# Allocate an instance of a String object.
set jstring [java::new String "Hello World"]
# Convert the Java string to a Tcl string
set tstring [$jstring toString]
In this example, we see how to allocate an array of java.lang.String
objects. This example also demonstrates Java array object commands and their
equivalent Java statements, see the javaArrayObj
section for more information.
# This is equivalent to the Java statement.
# String[] arr = new String[2];
set arr [java::new {String[]} {2}]
# Set the values of the array elements.
# This is equivalent to the following Java statements.
# arr[0] = "Hello";
# arr[1] = "World";
$arr set 0 "Hello"
$arr set 1 "World"
Copyright © 1997-1998 Sun Microsystems, Inc.


Definantly Maybe
August 29, 1994
Band Members and Producers
- Liam Gallagher - Lead Vocals
- Noel Gallagher - Lead Guitarist
- Bonehead Arthurs - Rhythm Guitar
- Tony McCarroll - Drums
- Guigsy McGuigen - Bass
- Mark Coyle - Producer
Tracks
Track # |
Track Title |
Track Length |
| 1 |
"Rock and Roll" |
5:24 |
| 2 |
"Shakermaker" |
5:09 |
| 3 |
"Live Forever |
4:37 |


WAR Suspension Day
In early september 2000 a couple of people from WAR asked me to do a short seminar on how to set up suspension on motorcycles. A bit theory and bit practical so they know what to do later on. On a suggestion we decided to open it up to all of WAR and anyone else that wanted to come along. A whole day would be spend playing with bits of bikes.
The Report
As usual, the day started like any other typical WAR organisation. About 9:30 found out that I could get a trailer to bring the BBQ over from Cyril's place [1]. Err.... shit...hmmm... Ring up Paul (Elle's other half) to see if I could get a favour and a ute to help cart it over. Paul arrives at 10:15 and we trundle off to Vic PK to get the barbie. Arrive back at about 10:40 to find Neil and Kit already here (That'll teach them to turn up on time to a WAR gig!). Unload BBQ, have the wheel fall off 3 times on the way wheeling it around the back and the noise of a couple of V Twins is heard rolling into the Street.
Ashley and Marc roll in. Everyone chats for a while and a few more bikes turn up. Ashley wanders off and the SoBL and supporting crowd (Lisa and Wade) shows up. The Fizzer is dropped off and we keep chatting. No sign of KLV yet. SoBL (as do most others) discovers that the concrete is _very_ slippery due to all the dust from the Paint & Panel shop and promptly proceeds to arc up the rear tyre of the Blackbird in a burnout.
Finally Kelly rocks up making quite an entrance in the Lotus. Everybody proceeds to oggle that and go for a few drives while I'm furiously trying to strip down a recalcitrant fork from my spare KR (the banana shape to it doesn't really help the process).
|
"Off-street" parking |
And more bikes around the side of the house |
Eventually we get underway at about 12pm. There's about 8 or 9 people there now. We make our way though the various terms that you see cropping up in magazine reviews - rake, trail etc etc. Just as we finish talking about the swingarm the roar of another bike coming up the street is heard. As we all try to guess who it is (hmm...not a V-Twin, got a loud sport's exhaust...) we wander around the front. Shane Rothwell has turned up on a ZX7R that he's got on a test ride (he'd much earlier dropped around his FJ12 on a trailer so we could do the forks on it). After doing the usual tyre kicking he heads off.
|
Getting ready to learn |
As shane leaves one end of the street, Greg Robinson rolls in the other. Followed in short form by Trevor Calder and a couple of others that I can't remember. Elle wanders in too, pulls out a horse whip (accesorising for the evening's party!) and gives Corks a couple in return for, well, just 'cause he was leaning over looking at a bike. Eventually we wander off around the back and head into the next session.
Now there's about 13 people crowded into the back of the house. Hobzai made the fatal mistake of sitting between Corks and GregR (are we going to have to start the G series of numbering people too as we've now got 3 Gregs there!). We start going through the parts that make up a fork using my now stripped KR fork as a demonstration. We run through how the spring works (single v double v progressive rate springs), what the valve does (why do they always talk about "Gold Valves" in magazine articles) and the seals etc. During this we progress through what preload and compression and rebound damping do. Much chatting and explaining particularly about the effects of fork oils, different values, different springs etc. Somewhere during all of this another couple of people turn up as well.
Lunch is declared. While we get the barbie going, most wander off out the front. Confirming that they are True Motorcyclists (TM), the guys completely ignore Kelly's car and drool over all the bikes instead.
A whole bunch more drop in for a while. Mr Mono (aka Trevor Hedge), smelling a group of motorcyclists and a BBQ, drops in, dropping the customary stoppie to the cheer of the crowd :) Mark Heywood and girlfriend drop in to show off the brand spanking new ZX9R.  Two trixxies with different tyres |
After lunch, we have a quick chat what we're going to do to the bikes and then head off for a quick guided tour ride around the local roads to show people where some good suspension tests are (and twisties! are). Throwing caution to the wind, I decide it's about time I got back on a bike. Rolled the ZX6R out and showed 15 odd bikes around the traps. This is the first time on a bike since breaking my finger at Wanneroo a month and a half ago. Certainly attracted the attention of all the locals as 15 sports bikes, just about all with noisy exhausts go screaming around the local streets.
After getting back, everybody takes the FZR for a quick spin in it's unaltered form. The good thing about this is that the front is in need of heavier compression damping so it showed to people the things that we'd spend the morning talking about. While this is happening, the bike swapping starts. Everyone is riding everything. Kit and Rob get their first taste of big bike riding too.
With the Fizzer riding finished, we proceed to drop it through the triple clamps at the front - 30mm to be precise. That should be interesting :) After taking it for a quick blat, Wade jumps on. When he get's back there's a huge smile and "That's different. Don't know what's changed, but much better". Now everyone proceeds to ride it around like that.
Time's getting late and Shane has started dismembering the front of his FJ. Forks come out and we start to strip them. Those that are left now get a quick lesson on how to strip a set of forks. Unfortunately these ones required getting a large bolt down the inside to separate the piston nuts, which we couldn't fabricate at the time. Unfortunately that killed the rest of the plans for the evening, but everyone got to see the basic process and just how easy it is to pull apart.
|
Shane's FJ12 in pieces |
Shane's FJ12 in pieces |
By now it was dark, but a few still hung around. Some coffee and munchies and that's the end of the evening. Everyone slowly trickles off home with the last one out around 8pm. Shower, change and I go clubbing :)
Thanks to all that turned up! Was a great day. I really enjoyed it and hope everyone else did too. Hopefully everyone walked away with a bit of extra knowledge - particularly after feeling the difference in the FZR after just making one simple suspension change. I hope to hear lots of chatter now about people doing changes to their bike to make it feel better.
From what I can remember, here's the roll call for the day. I think there are a few missing, but with so many faces, it's hard to remember everyone:
Greg Robinson ('blade)
Greg Hobzai :) (GXSRLVX)
KLV (Lotus)
Marc Bates (M900)
Trevor Calder (GPX250)
Greg Walton (trX)
Corks (trX)
Rob Issel (Across)
Shane Rothwell (FJ12)
Neil Wade (YZF600)
Kit Low (ZZR250)
Wade Moltoni (VFR750 + FZR600)
Passers By:
Elle & Paul (FJ12s)
Mark Heywood (ZX9R)
Trevor Hedge (Cbr/929)
Jason (FJ12)
Ashley (VFR750)
SoBL (Cbr/1100)
Lisa (Revere)
[1] Mark has just today got a 'net connection so expect him to be chatting on WAR soon. He rides the RD350 that I've been doing all the work to over the past month. He's also a Chiro and is really good at putting motorcyclists back together after accidents :)


| Name: mast. Mourya | Reg No: 6-8smmhc18 |
|---|---|
| Age / Sex:2y | Contact No:9844428989 |
| Marital Status:na | Date:9/8/18 |
| Occupation:play home since 1 n half month. | Dr. |
| Address: | DIAGNOSIS- |
Cough gets greenish and thick. Then breathing difficulty. Doesn’t eat much of veg. but food no problem. Cyclone effect and all imm gets cold.  Since 1 year of age.
Sits in bathroom but thing comes out. says tht urge always want ot sit in bathroom
Rx:
cina1m+ sulphur1m+ jalapa1m- 4-4-4-4
ant tart 1m – 4 pills sos – cough / breathing diff.
rub 15 – nt. b/food.
Acon200+bell+gels200 – fever sos. 2 dram pills.
27/8/18: discharge is there. Mild cough after sos med fine.
Rx:
Sulphur1m/cina1m/nat sulph1m
ant tart 1m – 4 pills sos – cough / breathing diff.
rub 15 – nt. b/food.
Acon200+bell+gels200 – fever sos. 2 dram pills.
19/9/18: cough was more. Took suresh sir med. Fever was high. Unable to bring out cough. Plays with water. Likes to hit things. Likes slippers. Only stays out.
Rx:
Medo1m/thuja1m – 3 days once – 5 doses
Ant tart1m – cough sos.
Nat sulph 12x 4-4-4-4.
Lyco 200 – 1 dram pills – 4 pills morning b/food.
4/10/18:
Hfm from 3 days.
Rx:
Sarrcenia purpurea 1m/rhus tox 30 – 4-4-4-4. For 4 days.
Sulphur 1m/variolinum1m – 4-0-4 on the 5th day continue it for 3 days. And stop.
Regular med:
Pentaphos 2-2-2
Rubrum- 1-0-1 20 doses. b/food.
Ant tart 200 - sos 4 pills.


About
PerSE is a visual analytics web application to assist in periodicity detection and analysis.
PerSE is a web application designed and built to aid users in the detection and analysis of periodicity within event data sets. Hence, PerSE stands for "Periodicity in Spatio-temporal Events". PerSE attempts to tackle detection and analysis through sophisticated aggregation and methods commonly used in the field of Visual Analytics.
Visual Analytics is the science of analytical reasoning facilitated by interactive interfaces.
The main idea behind PerSE is that different groups of people use different calendars systems, for instance, Gregorian, Islamic (Hijri), Hebrew, and Persian. Therefore, we should analyze event data sets (e.g. car-crashs, crimes, terrorist acts, and etc.) through the lens of the calendar system relative to the communities and areas of interest.
PerSE is composed of several crossfiltering views: the Voronoi Subplots Map, Main Toolbar, Attribute View, Time-Wheel, Timeline, and Table. To detect and analyze periodicity within event data sets, users must use the mouse to interactively set and release filters on one or more of the views.
What is periodicity?
Periodicity is a tendency of something to repeat in regular intervals. If we examine our own lives we see that much of our behavior is periodic. Broadly speaking, we wake up in the morning, we don't work on Saturday and Sunday, we are more active outdoors during the warm months, and less active in cold months. Other examples:
- Traffic becomes congested during the weekday at 5:00pm.
- Internally Displaced Persons (IDPs) camp XYZ may receive food aid on Fridays.
- Muslims fast during the Islamic month of Ramadan.
However, periodicity is very tricky because it is bounded by three factors:
- Space: Periodicity may only exists within the geographic boundary (e.g. traffic is only congested within highly urban areas).
- Time: Periodicity may be a temporary (e.g. IDP camp XYZ exists for N amount of days, therefore food aid ceases to be distributed on Fridays).
- Attribute: Periodicity may only exists given a conditional attribute (e.g. Only Muslims fast during the Islamic month of Ramadan).
If there is only one bounding factor, periodicity may be easy to identify. In real world data sets this is often not the case. So, we must use special techniques and tools to identify periodicity.
Why does the calendar matter?
A calendar is a manmade tool used to gauge time. There are many calendars; just to name a few calendar systems: the Gregorian, Islamic (Hijra), Persian, Hebrew, Coptic, Chinese, Thai, and Ethiopian. As of 2015 almost all countries in the world use the Gregorian calendar. However, the Gregorian calendar's dominance does not mean that the other calendars have become extinct. In fact, many calendars are still used to mark important cultural and religious happenings.
If we ignore the calendar, then we ignore any linking contextual information. Therefore, we must analyze the human event data sets through the lens of calendars native to the areas of interest.
Why PerSE?
PerSE's main strength is that it backs human reasoning with sophisticated aggregation methods and date conversion. Thus, periodicity detection and analysis becomes more accesible to the end user.
PerSE also presents event data in a transparent interface, meaning there is no black-box or magic. Events are simply aggregated based on a wide variety filters and settings.
This project contends that human reasoning assisted by an interactive interface and sophisticated aggregation methods can unveil truths about periodicity within event data sets.
How do I use PerSE?
You can check out PerSE right now! Each view, except the table, has the ability to filter the data set through user interaction. After a filter is added, changed, or removed, all views will display events that suffice every filter. All views are currently colored based on the Event Type attribute.
For the more information, check out the Help page.
Data
PerSE is driven by event data. It's currently set up to visualize a subset of the ACLED.
Representation
An event is a very loosely defined word that is highly dependent on spatial and temporal scale. For instance, an event could be as short and precise as the assassination of Archduke Franz Ferdinand of Austria to as long-lasting and complex as World War I. Accounting for all events would be highly complicated. Therefore, PerSE makes two assumptions about all data points.
- Events viewed in PerSE have a duration of less than 24 hours.
- Events viewed in PerSE can be represented/symbolized as points.
This representation certainly has it's flaws, but many exciting events can justifiably be represented with the above simplification. Extending the application to fit a broader spectrum of events is not the current focus of this project.
Data Requirements
PerSE has two data requirements:
- Location: Latitude and Longitude in decimal degree format.
- Date: A date/time stamp in the Gregorian format.
PerSE does not anticipate any other incoming data attributes, however the system allows for the user to add additional data attributes. These additional non-required attributes are determined by PerSE to be either numerical or categorical. If numerical the attribute is displayed as an interactive histogram; if categorical the attribute is displayed as an interactive bar plot.
Additionally, non-required attributes can be specified as two optional data requirements:
- Content Attribute: If provided, it is used to symbolize/color all views within PerSE. If a content Attribute is not provided, data representations (i.e. bars, points, etc.) will be displayed with solid gray.
- Description: If provided, it is used to add detail and other meaningful information to the event. The description is visualized within the Table and on the Voronoi Subplots Map pop-ups.
ACLED
PerSE currently utilizes the ACLED (Armed Conflict Location and Event Data Project). The ACLED contains data points which detail reported political violence in developing states. Data point attributes include, event type, actors, associate actors, interaction, fatalities, source, location, location precision, and notes. As event coding can be a complicated and controversial thing, please feel free to check out their website if you have any beef.
As the ACLED contains >90,000 data points spanning Africa and the Middle East, PerSE uses a subset of this data set to illustrate the potential utility of the tool. The subset currently displayed in PerSE starts 01 JAN 2008 and ends 31 DEC 2014 in Nigeria and contains 4,854 data points. This data set was chosen because it highlights the complexity in culturally derived periodicity. In the case of Nigeria, the North is distinctly Islamic, and therefore the Islamic (Hijri) calendar is important; the South is distinctly Christian, and therefore the Gregorian calendar is important.
Although PerSE utilizes the ACLED, PerSE does not attempt to be a comprehensive solution for ACLED analysis. Important aspects within the data set like actor-to-actor correlations are not explicitly addressed at its current state. Perhaps this would be a useful follow-up project.
Technology
PerSE is 99.9% on the client, and was built with several web development libraries and toolkits.
PerSE is 99.9% client side programming. In fact, after all dependencies load, the only server request is for map tiles. In the age of Big-Data this may sound unusual, however keep in mind PerSE is a prototype designed and built to advance current research on visual analytics methods for spatio-temporal periodicity. Therefore, the emphasis is placed on the visual components.
Modularity
The project was written carefully to insure as much modularity as possible. To help with this process development focused on the Asynchronous Module Definition (AMD) paradigm. At its current state, each view...
- loads it's required dependencies.
- is given an identical array of data points every time the selection changes.
- provides a filter function to the data set adapter to filter data points.
Thus, views can be refactored without major dependency issues or moved into other projects. This will be particularly important if operations and processing are offloaded to a server.
Dependencies
Below is a list of the libraries and toolkits used:
- d3 for visualization and svg support
- jquery for js and dom utilities
- jquery calendars (the Keith Wood plugin) for calendar utilities
- bootstrap for layout and styling
- papaparse for file parsing
- crossfilter for data management
- openlayers 3 for a mapping framework
- openstreetmap and mapbox for map tiles
- require for AMD support, dependency management, and build/bundling
Other notable assistance came from Cindy Brewer's ColorBrewer palette and a helpful js port via d3.
User Study
User Study in Progress.
Findings from the user study will go here. The user study will formally end May 1st, 2015, stay tuned!
Future Work
Some future work include, actor-to-actor correlations, scaling up to a server, irregular interval periodicity.
At this point in time, I will not be actively developing or extending PerSE. However, I have many future work ideas regarding it. To name a few:
- Actor-to-Actor: How can we visualize this? How can we see who is battling/targeting who? When and Where?
- Verification: After we find a pattern, how can we verify it with statistical tests?
- Scaling Up: As mentioned above, everything is done on the client. If we move some or all of the preprocessing to a server we will be able to access larger data sets. However, if we scale up in events, we will need to look into alternative cartographic solutions.
- Irregular Patterns: PerSE was built to answer questions about formal calendar systems (i.e. Gregorian, Islamic, etc). What about patterns that don't fit any calendar system (i.e. 10-day patterns, 21-day patterns)?
- Holiday Support: Patterns related to a calendar system might be in relation to civic, religious, or cultural holidays. By identifying the root of these patterns we can understand more complex issues.
- Export: Analysts will most likely want to export data for further analysis. A shoebox extension to the table would be a nice step in that direction.
Scholastic
PerSE is the outcome of Brian Swedberg's Masters thesis in the Department of Geography at Penn State under his adviser Donna Peuquet, and committee members Anthony Robinson and Frank Hardisty.
Presentations
There will be a presentation on PerSE at AAG 2015:
- Title
- PerSE: A visual analytics tool for identifying periodicity in spatio-temporal event data
- Presenter
- Brian Swedberg
- Session
- 1574 [Spatiotemporal Symposium] Time Geography: Integrating Space with Time in Geographic Research (III)
- Location
- Lucerne 2, Swissôtel, Lucerne Level
- Time
- April 21, 2015 at 2:40 - 4:20pm
Publications
Work on PerSE has not yet been published.
License
PerSE is under the MIT License.
The MIT License (MIT)
Copyright (c) 2015 Brian Swedberg
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Contact
If you have any questions or comments please contact Brian Swedberg at bwswedberg at gmail dot com.


P2 was a physical prototype to solve a simple problem with Arduino. Initial sketches:
Out of all the initial ideas presented in class, two prominent ideas received most of the feedback. Between the handsfree navigation shirt and the automatic brush cleaner, we ruled out the wearable project as it did not contain an input sensor. We further refined the brush cleaner idea:
The idea with the motor underneath the cup was not used, since the motors are not waterproof. It was also brought up that in order to clean brushes more effectively, it would need to be run along some sort of brush or rough surface to remove all of the contaminants.
Neil's refined sketches focused on how to hold all the components together using a stand:
Tyler worked on methods to wash the brush:
Fran came up with ideas on how to attach the brushes to the servo motor:
In the end, we settled on the simplest movement of the brush; back and forth. The final idea was to move the brush (submerged in water/thinner) against a rough surface by having the servo move to one position and back, repeatedly. As demonstrated in the video below, this action is enough to clean the brush.


Presentation for the Frostbite Rendering Team (+ Friends!) by Daniel Collin / @daniel_collin
To Alex Crichton (of Mozilla Research) for allowing me to use some of his slides in this presentation.
Me and programming languages.
Aiming to try out 3 new programming languages every year.
See beyond the usual box.
Ideas, concepts can usually be applied in your "daily" language as well.
Spend more time with the ones I find most interesting.
fn main() {
println!("hello, {}", "world!");
}
Rust grew out of a personal project by Mozilla employee Graydon Hoare.
Mozilla sponsored starting in 2009. Rust itself is community driven under MIT licence.
| C/C++ | Java/.NET | Python | |
|
More control, less safety |
Less control, more safety |
More control, more safety
Type system enforces ownership and borrowing
int main() {
int* data = malloc(sizeof(int));
*data = 3;
foo(slot);
foo(slot); // use after free!
}
void foo(int* data) {
printf("The number was: %d\n", *data);
free(data);
}
a.out(62940,0x7fff7b9ea310) malloc: *** error for object 0x7fecb0c03b10:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
zsh: abort ./a.out
fn main() {
let data = Box::new(3u32);
foo(data); // moves the value!
foo(data); // error: use of moved value
}
fn foo(slot: Box<u32>) {
println!("The number was: {}", slot);
}
test.rs:6:9: 6:13 error: use of moved value: `data` [E0382]
test.rs:6 foo(data); // error: use of moved value
^~~~
test.rs:5:9: 5:13 note: `data` moved here because it has type 'Box<u32>',
which is non-copyable
test.rs:5 foo(data); // moves the value!
^~~~
error: aborting due to previous error
fn foo() -> Box<u32> {
let three = Box::new(3u32);
return three; // transfer ownership
}
fn main() {
// acquire ownership of return value
let my_three = foo();
}
Owned values can be borrowed in Rust to allow usage for a certain period of time.
// The `&` sigil means "borrowed reference"
fn foo(slot: &Vec<u32>) { /* ... */ }
fn main() {
let data = Vec::new();
// doesn't move!
foo(&data);
foo(&data);
}
Borrowed values are only valid for a particular lifetime
let a: &u32;
{
let b = 3;
a = &b; // error! `b` does not live long enough
}
let b = 3;
let a: &u32;
a = &b; // ok, `b` has the same lifetime as `a`
Borrowing prevents moving
let a = Vec::new();
let b = &a;
work_with(a); // error!
let a = Vec::new();
{
let b = &a;
}
work_with(a); // ok
fn main() {
println!("Your number was: {}", *foo());
}
// Tries to return borrowed reference to `a`
fn foo() -> &u32 {
let a = 3u32;
return &a;
}
Borrows can be nested
struct MyStruct { inner: u32 }
fn get(s: &MyStruct) -> &u32 {
&s.inner
}
fn main() {
let s = MyStruct { inner: 3u32 };
let inner = get(&s); // same lifetime as `s`
}
Borrowed values can become owned values through cloning
fn clone_vector(v: &Vec<u32>) -> Vec<u32> {
v.clone()
}
Rust has fine-grained memory management, but is automatically managed once created.
Each variable has a scope it is valid for, and it is automatically deallocated when it goes out of scope.
fn main() {
// main owns 'data'
let data = Box::new(4u32);
// The data goes out of scope, it is free'd
}
Also possible to explicitly free data using drop
fn main() {
// main owns 'data'
let data = Box::new(4u32);
// Do something with data here..
// ...
// Now free data
drop(data);
// Compile error if we try to use data
println!("Trying to use data {}", data);
}
Reference counting is another way of managing memory.
use std::rc::Rc;
fn main() {
let data = Rc::new(3u32); // reference count of 1
{
let data2 = data.clone(); // reference count of 2
use_data(data2); // transfer ownership of `data2`
} // reference count of 1
use_data(data); // transfer ownership of `data`
} // reference count of 0, memory deallocated
fn use_data(data: Rc<u32>) {}
Values are immutable by default in Rust, and must be tagged as being mutable.
let a = 4;
a = 5; // error!
let mut a = 4;
a = 5; // ok
Mutability is also a part of the type of a borrowed pointer.
fn inc(i: &i32) {
*i += 1; // error!
}
fn inc(i: &mut i32) {
*i += 1; // ok
}
Borrowed pointers may coerce
let a = &mut 1;
let b: &i32 = a; // ok
let c: &mut i32 = b; // error!
Values can be frozen by borrowing
let mut a = Vec::new();
{
let b = &a; // freezes `a`
a.push(1); // error!
}
a.push(2); // ok
Mutability propagates deeply into owned types
struct A { b: B }
struct B { c: i32 }
fn main() {
let mut a = A { b: B { c: 2 } };
a.b.c = 3;
a.b = B { c: 4 };
a = A { b: B { c: 5 } };
let frozen = a;
frozen.b.c = 4; // error!
}
Using ownership to prevent data races.
Parallelism is achieved at the granularity of an OS thread but it's also possible to use libraries like threadpool.
// Spawn a child thread to be run in parallel
spawn(move || {
expensive_computation();
});
other_expensive_computation();
Safety is achieve by requiring spawn to use 'move' closure to capture variables.
use std::thread;
fn main() {
let mut a = Vec::new();
thread::spawn(move || {
a.push("foo");
});
a.push("bar"); // error!
}
Threads can communicate with channels
let (tx, rx) = channel();
spawn(move || {
tx.send(expensive_computation());
});
// Do some work in the meantime
let answer = rx.recv();
Tasks can also share memory
use std::collections::HashMap;
use std::sync::Arc;
use std::thread;
fn main() {
let mut map = HashMap::new();
map.insert("tomato", "red");
map.insert("celery", "green");
map.insert("carrot", "orange");
let arc1 = Arc::new(map);
let arc2 = arc1.clone();
spawn(move || println!("Celery is `{}`", arc1["celery"]));
spawn(move || println!("Carrots are `{}`", arc2["carrot"]));
}
Using a Mutex it's possible to modify shared state
use std::sync::{Arc, Mutex};
use std::thread;
// Mutex is design so it be owner of a piece of data and
// use borrowing to lend it to others
fn main() {
let data = Arc::new(Mutex::new(4u32));
for _ in 0..10 {
let thread_data = data.clone();
thread::spawn(move || {
let mut data = thread_data.lock().unwrap();
*data += 1;
});
}
}
struct Point {
x: f32,
y: f32,
}
fn main() {
let p = Point { x: 1.0, y: 2.0 };
}
fn main() {
let number = 13;
println!("Tell me about {}", number);
match number {
// Match a single value
1 => println!("One!"),
// Match several values
2 | 3 | 5 | 7 | 11 => println!("This is a prime"),
// Match an inclusive range
13...17 => println!("A teen"),
// Handle the rest of cases
_ => println!("Ain't special"),
}
}
enum Shape {
Circle,
Square
}
fn test(shape: Shape) {
match shape {
Circle => { /* ... */ }
Square => { /* ... */ }
}
}
Enums can have data. This is compiled into a union + tag
enum Shape {
Circle(Point, f64),
Rectangle(Point, Point),
}
match shape {
Circle(center, radius) => {
draw_circle(center, radius)
}
Rectangle(ul, lr) => {
draw_rectangle(ul, lr)
}
}
trait Hello {
fn hello(&self);
}
impl Hello for Point {
fn hello(&self) {
println!("Hello!");
}
}
Traits can also be applied on existing types
trait Hello {
fn hello(&self);
}
impl Hello for u32 {
fn hello(&self) {
println!("Hello!");
}
}
fn main() {
4u32.hello(); // Considered bad style!
}
Rust has modules to split code in logical units
fn function() {
println!("Called 'function'");
}
mod my {
pub fn function() {
println!("Called 'my::function'");
}
}
fn main() {
function();
my::function();
}
fn main() {
let a = 3;
// Turn off some compiler checks,
// "I know what I'm doing"
unsafe {
let b = &a as *const i32 as *mut i32;
*b = 4;
}
println!("{}", a); // prints 4
}
Transform one type to another
unsafe fn transmute<T, U>(t: T) -> U {
/* ... */
}
// Invalid promotion to a mutable pointer
let a: &int = &3;
let b: &mut int = unsafe { transmute(a) };
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
fn foo() {
unsafe {
asm!("nop");
}
}
extern {
fn write(fd: i32, data: *const u8, len: u32) -> i32;
}
fn main() {
let data = b"Hello, world!\n";
unsafe {
write(1, &data[0], data.len() as u32);
}
}
_ZN4main20h9abc3392beeae1c4saaE:
.cfi_startproc
leaq byte_str2755(%rip), %rsi
movl $1, %edi
movl $14, %edx
jmp write@PLT
Defining a Cargo.toml file for a project.
[package]
name = "hello_world"
version = "0.1.0"
authors = ["Your Name<EMAIL_ADDRESS>[dependencies]
regex = "0.1.41"
extern crate regex;
use regex::Regex;
fn main() {
let re = Regex::new(r"^\d{4}-\d{2}-\d{2}$").unwrap();
println!("Did our date match? {}", re.is_match("2014-01-01"));
}
$ cargo build
Updating registry `https://github.com/rust-lang/crates.io-index`
Downloading memchr v0.1.5
Downloading libc v0.1.10
Downloading regex-synatx v0.2.1
Downloading memchr v0.1.5
Downloading aho-corasick v0.3.0
Downloading regex v0.1.41
Compiling memchr v0.1.5
Compiling libc v0.1.10
Compiling regex-synatx v0.2.1
Compiling memchr v0.1.5
Compiling aho-corasick v0.3.0
Compiling regex v0.1.41
Compiling foo v0.1.0 (file:///path/to/project/hello_world)
Easy to test code. Lets say we have a project called adder
#[test]
fn it_works() {
}
$ cargo test
Compiling adder v0.0.1 (file:///home/you/projects/adder)
Running target/adder-91b3e234d4ed382a
running 1 test
test it_works ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured
Doc-tests adder
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured
Learning @rustlang: Borrow checker -> borrow checker -> borrow checker -> borrow checker -> understanding -> productivity -> happiness.
— Lori Holden (@lholden) September 8, 2015