CodeMirror: Mark Selection Demo
Select something from here. You'll see that the selection's foreground color changes to white! Since, by default, CodeMirror only puts an independent "marker" layer behind the text, you'll need something like this to change its colour.
Simple addon to easily mark (and style) selected text.


My Profile
Pick a view
My Billables
My Clients
My Projects
Clients
Client ID
Client Name
Phone Number
Email Address
Physical Address
Number of Projects
{{client.id}}
{{client.name}}
{{client.phone_number}}
{{client.email}}
{{client.address}}
{{client.noOfProjects}}
Remove Client
Add client
add


Time measurement is carried out using Benchmark.js.
Esprima version .
Please wait...
Note: On a modern machine and up-to-date web
browsers, running full benchmarks suite takes around 1 minute.
For the quick benchmarks, the running time is only about 15 seconds.


Sweet Free Stuff
///////////////////////////////////////////
Free Sample of Rachael Ray Nutrish Zero Grain Dog Food or Cat Food Sample
Posted: 07 Jun 2016 01:00 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
Select the sample and complete the form. Free Sample of Rachael Ray Nutrish
Zero Grain Dog Food or Cat Food Sample
The post Free Sample of Rachael Ray Nutrish Zero Grain Dog Food or Cat Food
Sample appeared first on SweetFreeStuff.com.
CommentsMy dog would love to try your product by Gillian HoldsworthMy jack
russells are allergic to grain &this should help. I did … by minkieWould
like to try this for my dog . He is a boston & we all … by Judith
UrenaWould love a sample for my sweet Jack Russell Milo by Gayle Mottmy dog
loves the other nutrish products and would like to try … by tinaPlus 9
more…
///////////////////////////////////////////
Free sjl Skincare Samples
Posted: 07 Jun 2016 12:57 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
*Expired* Sign up for their e-mail list and receive a complimentary packet
of selected product samples. Free själ Skincare Samples
The post Free själ Skincare Samples appeared first on SweetFreeStuff.com.
///////////////////////////////////////////
Free Jiffy Mix Recipe Book
Posted: 07 Jun 2016 12:00 AM PDT
http://feedproxy.google.com/&edburner&utm_medium=email
The post Free Jiffy Mix Recipe Book appeared first on SweetFreeStuff.com.
CommentsThank you!! I received mine and I love it. by BruceI love Jiffy
cornbread and would like recipe book. by Kenyetta Grahamlove Jiffy Corn
muffin mix and would love different recipe for … by Sue HennThank you! by
Evelyn TorresHow do I get the free recipe book? by dirk mcgirk


Overview PgnViewerJS
This is the raw documentation of work in progress, made available by GitHub Pages (which is great).
You will find on this documentation the following:
- A bunch of prepared documentation (overview, API, examples), which are available
above in the menu (all menu entries except the one named "Home PgnViewerJS").
- Some references on things you may be interested in like structure of this implementation,
used plugins, additional examples, ...
If you have ideas how to improve the whole documentation, get in touch with me. Fork the repo,
add issues, send me a pull request, ... whatever you want.
Behavior, Structure, Tests, Examples, ...
Here are the things that may help to get a better understanding what PgnViewerJS provides, how it
is developed, and what may be reachable in a foreseeable future.
- Testing: Testing of the raw functionality (nearly no UI) is done with Jasmine. See the file
SpecRunner.html that should work out of the box. It shows a line
of dots (hopefully all green), and you are able to check the status. If something goes wrong, just
use the debugging tools of your browser.
- Structure: Well, mostly grown. Some of it is understandable:
chess.js
Base library from GitHub
that knows chess inside-out.
chessboardjs
Base library for building a chessboard from
GitHub with excellent documentation.
- css
- docu: the "official" documentation, will be polished at some point in time
- examples: the example directory (more below)
- Examples: see the following directly linked (or the others in the directory examples).
- board Shows different boards
- comments games with a lot of comments (and faults)
- edit shows how to edit games online (without the chance
to store them)
- variations some examples how to style the viewer


This is a template of a Groovy script with the
main
method used each time you create a new Maven Groovy project.


Sustainable Future
Get sustainable at home through small actions
Sitemap
Home
Bedroom
Bathroom
Balcony
Contact Us
Sitemap


---
title: Australia and New Zealand, Spring 2018
start_date: 2018-04-01
end_date: 2018-04-18
cities:
- Sydney
- the South Island of New Zealand
featured_image: travel/nz/tekapo/tekapo-blue-grass-cover.jpg
hero_image: travel/nz/tekapo/tekapo-blue-grass.jpg
image_roots:
- australia
- nz
redirect_from:
- /australia/
- /nz/
---
It's rare that you get the opportunity to travel to the other side of the world. This past April, I had the opportunity to travel for work to Sydney, Australia. To make better use of the trans-pacific flight, I decided to extend the trip by a week, and visit New Zealand.
What's better, shortly after making this plan, I found out that my childhood best friend Nathan could also join me on the trip. While I spent a week working in Sydney, he explored the city and surrounding area. We ate dinner together, and wandered around downtown Sydney.
Sydney
While I'd done my homework on New Zealand, Sydney was another story entirely. For the most part, I played it by ear, taking advice from my local coworkers, and wandering around the city. What we quickly discovered, is that the Australians really know how to run a cafe. More than any other meal, I always looked forward to "brekky."
{% include resimg.html src="travel/australia/brekky-atmosphere.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/brekky-food.jpg" class="with-viewer" %}
Beautiful cafe, beautiful food.
Overeagar for nature, we quickly headed to the coast, for the Bondi to Coogee walk. Easily walkable from where we were staying, the coastal path was a great start to our trip.
{% include resimg.html src="travel/australia/bondi-coogee-inlet.jpg" class="with-viewer" %}
One of the many inlets viewable from the Bondi to Coogee walk.
{% include resimg.html src="travel/australia/bondi-coogee-cemetary.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/bondi-coogee-cliff.jpg" class="with-viewer" %}
I loved the coastline along the walk
We also explored downtown Sydney: Hyde Park, the Botanical Gardens, and the Sydney Opera House. When I make it back to Australia again, I'll be sure to spend more time in Sydney. I didn't get to see much beyond the top tourist spots and a few neighborhoods. The city is so walkable, and neighborhoods so varied; it definitely merits a longer visit.
{% include resimg.html src="travel/australia/hyde-park-church.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/hyde-park-memorial.jpg" class="with-viewer" %}
St. Mary's Cathedral and the ANZAC War Memorial in Hyde Park
{% include resimg.html src="travel/australia/botanical-garden-tree.jpg" class="with-viewer" %}
A beautiful old fig tree in the Royal Botanical Gardens
{% include resimg.html src="travel/australia/opera-wood.jpg" class="with-viewer" %}
The Sydney Opera house isn't overrated
{% include resimg.html src="travel/australia/opera-1.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/opera-point.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/opera-3.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/opera-2.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/opera-4.jpg" class="with-viewer" %}
{% include resimg.html src="travel/australia/opera-5.jpg" class="with-viewer" %}
I couldn't stop taking pictures!
{% include resimg.html src="travel/australia/opera-traditional.jpg" class="with-viewer" %}
The opera house at sunset
New Zealand
After our quick week in Sydney, we flew into Queenstown, New Zealand. I had a bit of a run-in with the customs agents (there was honey in that gift basket??), but it didn't slow us down for long.
{% include resimg.html src="travel/nz/misc/misc-airplane.jpg" class="with-viewer" %}
Flying into Queenstown really set the tone for the trip.
We hopped in our rental car and hit the road. (The wrong side of the road mind you, so it took me a few minutes to get adjusted.) In a matter of minutes, we were winding our way up the mountain pass on the way to Wanaka. We spent our entire week exploring the many faces of the south island.
{% include resimg.html src="travel/nz/misc/hill-winding-road.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/misc/hill-nathan.jpg" class="with-viewer" %}
We took the scenic route from Queenstown to Wanaka, over the Crown Range on a winding, mountain route
Wanaka is a beautiful lakeside town, near the center of the south island. While we came for the Wanaka tree, we stayed for the lake, the hiking, and the ducks!
{% include resimg.html src="travel/nz/wanaka/wanaka-tree.jpg" class="with-viewer" %}
The Wanaka tree was truly stunning
{% include resimg.html src="travel/nz/wanaka/wanaka-tree-nate-dan.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/wanaka/wanaka-ducks.jpg" class="with-viewer" %}
Nate and me at Lake Wanaka, our duck friends at Lake Wanaka
{% include resimg.html src="travel/nz/wanaka/wanaka-hill-view.jpg" class="with-viewer" %}
We considered the longer Roys Peak hike, but opted for the shorter Iron Mountain summit
The next day, we started our drive to Lake Tekapo. After only 45 minutes of driving, the landscape had totally transformed. Trees disappeared, replaced by low brush. We couldn't help but stop in Lindis Pass.
{% include resimg.html src="travel/nz/lindis-pass/lindis-pass-road.jpg" class="with-viewer" %}
This stretch of road in Lindis pass evokes some version of the American west that I'm not sure even exists outside my imagination
{% include resimg.html src="travel/nz/lindis-pass/lindis-pass-mountains.jpg" class="with-viewer" %}
After scrambling up the nearby hill, we got a great view of the surrounding mountain range
After another hour or so of driving, we arrived at Lake Tekapo. Again, another complete transformation. The scrappy brush grew into taller tufts of grass. Brown became green. Over gentle hills emerged the sprawling body of water.
I was overwhelmed by the color. Depending on how the sun hit it, Lake Tekapo would glow fluorescent or turquoise, navy or muddy gray. I couldn't help but just stare.
{% include resimg.html src="travel/nz/tekapo/tekapo-blue-grass.jpg" class="with-viewer" %}
I made my way to the shore, and sat on a rock for a while
{% include resimg.html src="travel/nz/tekapo/takapo-blue-rocks.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/tekapo/tekapo-blue.jpg" class="with-viewer" %}
When the light hits, the lake turns bright turquoise
{% include resimg.html src="travel/nz/tekapo/tekapo-house-far.jpg" class="with-viewer" %}
The often photographed Church of the Good Shepherd, from a spot further along the shore
{% include resimg.html src="travel/nz/tekapo/tekapo-house-stairs.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/tekapo/tekapo-house-door.jpg" class="with-viewer" %}
Despite attracting tourists, the Church of the Good Shepherd still holds mass
{% include resimg.html src="travel/nz/tekapo/tekapo-meditation-wide.jpg" class="with-viewer" %}
Later in the day, I caught Nate relaxing by the coast.
We spent the night in Tekapo, and took a risk on a stargazing tour with Tekapo Stargazing, which ended up upstaging our day at the lake. Tekapo is a protected dark sky reserve, which means on good nights stargazing there is some of the best on earth. We saw the Milky Way, a handful of planets, more stars than I can describe, and even two other galaxies. The galaxies just appeared as dark masses in the sky; we would have confused them for clouds, if it weren't for the knowledgeable staff. We learned Māori myths, inspired by the southern constellations. At the end of the tour, we got to float on our backs in a heated pool and watch the stars in silence. While I thought the prices might be a bit steep going in, I'd pay double to go back.
The next morning, we continued driving north. Our decision to stay overnight in Tekapo meant we had a long day of driving ahead. We would loop around the Souther Alps, up towards Arthur's pass, with the ultimate goal of reaching Fox Glacier by nightfall.
{% include resimg.html src="travel/nz/bridge/bridge-above.jpg" class="with-viewer" %}
We stopped at Rakaia Gorge, and discovered a brush-covered path that took us down to the riverbed
{% include resimg.html src="travel/nz/bridge/bridge-nathan.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/bridge/bridge-water.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/bridge/bridge-below.jpg" class="with-viewer" %}
The bridge over Rakaia Gorge is beautiful, and the Rakaia river has that same turquoise water as Lake Tekapo
{% include resimg.html src="travel/nz/bridge/bridge-pano.jpg" class="with-viewer" %}
I was lucky to catch this beautiful orange double-trailer truck in my panorama
Time and time again, New Zealand's landscape demonstrated it's ability to transform. After driving for just a few minutes, I'd look around and find the landscape had completely changed. Just an hour after the greens and blues of Tekapo and the Rakia river, I was suddenly struck by dark gray mountains and bright yellow fields. We couldn't help but pull over again; our long drive would have to wait a few more minutes.
{% include resimg.html src="travel/nz/golden/golden-fence.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/golden/golden-lake.jpg" class="with-viewer" %}
We stepped over the fence, and walked on the trodden grass to a nearby lake, where a few fisherman were stationed
{% include resimg.html src="travel/nz/golden/golden-tree.jpg" class="with-viewer" %}
The color!
Determined to make more progress in our trip, we made our way north to Arthur's Pass, a drive known for its own drastic transformation. This time, it was from bald mountains and grassland to deep, green jungle. I loved the long, majestic bridges, the avalanche guards, and the otherwise unobstructed view of the greenery.
{% include resimg.html src="travel/nz/arthurs-pass/arthurs-pass.jpg" class="with-viewer" %}
It wasn't long before we pulled over again. This time, to get a photo of the Bealey Bridge.
{% include resimg.html src="travel/nz/arthurs-pass/arthurs-kea-rock.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/arthurs-pass/arthurs-kea-close.jpg" class="with-viewer" %}
We didn't expect to meet several Kea, the friendliest birds I've ever met outside a zoo. Nationally endangered, we saw 5 of the 5000 Kea That are left on the planet.
Having finally reached the west side of the island, we began driving south towards Fox Glacier. While it rained in the evening, we were lucky to have great weather during the day.
We skipped the popular (and expensive) helicopter tours of the glaciers, instead opting to continue our trip south. We planned another ambitious day of driving: We drove for another 10 hours to complete our loop at Lake Wanaka and head through Queenstown to Te Anau, where we spent the night. But a long day of driving didn't preclude a few stops along the way!
{% include resimg.html src="travel/nz/beach/black-sand.jpg" class="with-viewer" %}
Our first stop was to plant our feet into one of the black sand beaches.
{% include resimg.html src="travel/nz/beach/black-sand-nathan.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/beach/black-sand-nathan-rocks.jpg" class="with-viewer" %}
Whenever Nate sees a beach, he immediately starts looking along the coastline for rocks, shells, and other treasures. He got a pretty good haul!
{% include resimg.html src="travel/nz/beach/black-sand-rock-texture.jpg" class="with-viewer" %}
I love the color and texture of the pebbles. Did someone say smartphone wallpaper?
Our next stop was by far our longest, and another example of a whimsical decision paying off fantastically. We were driving south along the coast, and pulled over briefly at a viewpoint. We took a few pictures; nothing much to see. Then, on the way back to the car, I hopped up on a fence to see if I could see over the bushes. I snapped this picture:
{% include resimg.html src="travel/nz/beach/secret-beach-view.jpg" class="with-viewer" %}
A tempting view of a beautiful beach
Our interest was piqued. So we continued driving for a few minutes, spotted a sign for a beach turn-off. We parked our car in the lot, and walked over the sand dune onto the beach. But it wasn't right. This wasn't the beach we saw from the viewpoint. It was a pebble beach, and there were people everywhere.
We must have missed it.  Why not? After 300ft of dirt road, the road ended, in the middle of the forest. Having spotted a foot-path leading away from the road, we parked our car.
Hiking boots and backpacks in tow, we started down the trail. It wasn't 3 minutes before we ran into an obstacle: a small river. Was that a good sign? We slipped off our shoes, and tip-toed our way across.
{% include resimg.html src="travel/nz/beach/secret-beach-ford.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/beach/secret-beach-explorers.jpg" class="with-viewer" %}
Nate and me, fording the river
It wasn't too much longer until we found what we were looking for: the beach! Completely deserted, and completely serene.
{% include resimg.html src="travel/nz/beach/secret-beach.jpg" class="with-viewer" %}
We made it!
{% include resimg.html src="travel/nz/beach/secret-beach-marker.jpg" class="with-viewer" %}
To make sure we didn't lose our entry point to the path, we created a marker out of driftwood
{% include resimg.html src="travel/nz/beach/secret-beach-nathan.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/beach/secret-beach-dan-walking.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/beach/secret-beach-nathan-walking-2.jpg" class="with-viewer" %}
We made our way down the beach towards the rocks
{% include resimg.html src="travel/nz/beach/secret-beach-rocks-1.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/beach/secret-beach-rocks-2.jpg" class="with-viewer" %}
The rocks at the end of the beach were quite photogenic
{% include resimg.html src="travel/nz/beach/secret-beach-forest-wall.jpg" class="with-viewer" %}
The beach was completely hidden from the road by a sharp cliff and dense forest
{% include resimg.html src="travel/nz/beach/secret-beach-sand.jpg" class="with-viewer" %}
The cliffs, up close. Did we find the only passage?
After spending a few hours wandering up and down the beach, we headed back to the car. With a lot of ground to cover, we hit the road. We only made a few brief stops between the secret beach and Te Anau, at the south end of the island.
{% include resimg.html src="travel/nz/misc/misc-orange-rocks.jpg" class="with-viewer" %}
Bright orange rocks at the side of the road
{% include resimg.html src="travel/nz/misc/misc-tree-moss.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/misc/misc-tree-moss-branches.jpg" class="with-viewer" %}
All along the west coast, the jungle-like trees are covered in moss
{% include resimg.html src="travel/nz/misc/misc-waterfall.jpg" class="with-viewer" %}
We stopped to check out a road-side waterfall
We couldn't help but stop as we approached Wanaka. The white-tipped mountains were much more impressive this second time around.
{% include resimg.html src="travel/nz/wanaka/wanaka-valley.jpg" class="with-viewer" %}
A beautiful valley, just north of Wanaka
{% include resimg.html src="travel/nz/wanaka/wanaka-lake.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/wanaka/wanaka-mountains-wide.jpg" class="with-viewer" %}
Lake Wanaka and Lake Hawea are surrounded by snow capped mountains
{% include resimg.html src="travel/nz/wanaka/wanaka-mountains.jpg" class="with-viewer" %}
I was glad to have a camera with at least some zoom on it
After two long days of driving, we were happy to get to bed in Te Anau. We didn't sleep in that late, however. In the morning, we woke up and drove north on route 94 towards the Hollyford track. While I had heard that the drive north from Te Anau was beautiful, I didn't quite comprehend what was in store. It gets cold enough in the valley that snow falls overnight, and yet it gets warm enough from the morning sun that the snow will melt quickly after sunrise. The result? We raced the sun north, and got to see yet another awe-inspiring transition in scenery: from morning dew, to snow, and back.
{% include resimg.html src="travel/nz/morning/morning-xp2.jpg" class="with-viewer" %}
We stopped in the Eglinton Valley, because, well, it was beautiful
{% include resimg.html src="travel/nz/morning/morning-xp.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/morning/morning-river.jpg" class="with-viewer" %}
We were completely surrounded by mountains, where the snow had yet to melt
{% include resimg.html src="travel/nz/morning/morning-mountains.jpg" class="with-viewer" %}
This shot reminds me of the first photo I took in New Zealand: the mountains, from out the window of the airplane
{% include resimg.html src="travel/nz/morning/morning-fog.jpg" class="with-viewer" %}
It was hard to tell if this was morning fog, or steam from the melting snow
{% include resimg.html src="travel/nz/morning/morning-dew2.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/morning/morning-dew.jpg" class="with-viewer" %}
I did my best to capture the sun reflecting off morning dew
As we drove further into the valley, we reached a colder area, that had seen less snow. That meant that the bright yellow fields swiftly became white.
{% include resimg.html src="travel/nz/morning/morning-snow-mountains.jpg" class="with-viewer" %}
The snow hadn't melted yet!
{% include resimg.html src="travel/nz/morning/morning-snow-1.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/morning/morning-snow-3.jpg" class="with-viewer" %}
It's hard to believe this was just 15 minutes of driving after the previous set of photos
Further along the drive, we saw a sign for "Mirror Lakes." With how the morning had started, how could we not stop? We weren't disappointed, the water was almost perfectly reflective!
{% include resimg.html src="travel/nz/morning/mirror-lakes-1.jpg" class="with-viewer" %}
The mountains, reflected in Mirror Lakes
{% include resimg.html src="travel/nz/morning/mirror-lakes-sign.jpg" class="with-viewer" %}
Can you read the sign?
While we spent the morning driving through a beautiful valley, that wasn't actually the intended main event for the day. We had been driving north to reach the Hollyford track, a hike along the Hollyford river. While the full hike to the ocean is a 5-day affair, we did just the first day as a round-trip hike, in about 6 hours. It was a flat and easy hike, and quite relaxing.
{% include resimg.html src="travel/nz/hollyford/hollyford-first-bridge.jpg" class="with-viewer" %}
We started off going across a swing bridge. My favorite! Lucky for me, there was a lot more where that came from
{% include resimg.html src="travel/nz/hollyford/hollyford-first-bridge-nathan.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-trailhead.jpg" class="with-viewer" %}
Nate gets started from the trailhead
{% include resimg.html src="travel/nz/hollyford/hollyford-boardwalk.jpg" class="with-viewer" %}
In the more swampy areas, they have installed boardwalks
{% include resimg.html src="travel/nz/hollyford/hollyford-green-bridge.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-swing-bridge-straight.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-swing-bridge.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-metal-bridge.jpg" class="with-viewer" %}
I enjoyed numerous bridges along the hike. Especially the swing bridges!
{% include resimg.html src="travel/nz/hollyford/hollyford-mountains.jpg" class="with-viewer" %}
Views from the trail weren't bad either!
{% include resimg.html src="travel/nz/hollyford/hollyford-washed-out.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-washed-out-2.jpg" class="with-viewer" %}
Several parts of the trail had actually been washed out by diverted streams and rivers
{% include resimg.html src="travel/nz/hollyford/hollyford-moss.jpg" class="with-viewer" %}
Moss on a fallen tree trunk
{% include resimg.html src="travel/nz/hollyford/hollyford-trees.jpg" class="with-viewer" %}
It seemed like every tree had moss on it
{% include resimg.html src="travel/nz/hollyford/hollyford-duck-under.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-forest-floor.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-winding-path.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/hollyford/hollyford-river.jpg" class="with-viewer" %}
Some of my favorite shots along the track
{% include resimg.html src="travel/nz/hollyford/hollyford-end.jpg" class="with-viewer" %}
After many hours of trecking, we finally made it back to the first swing bridge!
For our last two days in New Zealand, we booked an overnight cruise in the Doubtful Sound. Less famous than Milford Sound, its more accessible and popular cousin, the Doubtful Sound isn't directly accessible by car. The cruise we booked included a bus from Te Anau to the dock, a water taxi across lake Te Anau, a bus over a mountain pass to Doubtful Sound. From there, we boarded the cruise ship, a small boat, designed for around 50 passengers.
{% include resimg.html src="travel/nz/cruise/cruise-valley-view.jpg" class="with-viewer" %}
From the highest point of the mountain pass, we could see the Doubtful Sound in the distance
We had originally booked the cruise as a way to get away from the more active parts of the trip. No more driving, choosing places to visit, or finding food to eat. We had heard that Doubtful Sound was one of the most peaceful places in all of New Zealand, and so we expected a quiet, relaxing, and reflective overnight. What we didn't expect was to make friends!
We started chatting with the tour company office, and never really stopped! Nathan and I met two couples: Peter and David and Fran and Anna, as well as Fran and Anna's son: Jeremy. We started talking on the dock while waiting to board, and never really stopped! Over the next 24 hours, we spent almost all of our time with our new crew: sitting together at meals, hanging out on the deck of the boat, and learning about each others lives. It turns out we were all from the states, and Peter and David lived in New York, not far from Nate and me! We didn't just spend time together on the cruise: We've met up since, going out to meals, plays, and more.
{% include resimg.html src="travel/nz/cruise/cruise-table.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-morning-nate-dan.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-looking-off.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-david-peter.jpg" class="with-viewer" %}
Peter, David, Fran, Anna, Jeremy, Nathan, and me, on the water taxi and the cruise ship.
The cruise did not disappoint. We glided along the otherwise empty sound, laying down anchor near the coast to go kayaking.
{% include resimg.html src="travel/nz/cruise/cruise-edge.jpg" class="with-viewer" %}
The moss-like greenery on the edge of the sound
{% include resimg.html src="travel/nz/cruise/cruise-mountains.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-boat-rainbow.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-boat-approaching-rocks.jpg" class="with-viewer" %}
As sunset drew closer, we drove towards the ocean. The water became much more choppy the closer we got!
{% include resimg.html src="travel/nz/cruise/cruise-boat-god.jpg" class="with-viewer" %}
The sunset at the mouth of the sound was fantastic
{% include resimg.html src="travel/nz/cruise/cruise-god.jpg" class="with-viewer" %}
This is the kind of light effect that you see in movies!
After the sun set, we turned around and headed for more placid waters, to spend the night. We stargazed for a while, and spent the rest of the evening in the dining room, gathered around our now-familiar group table, talking, drinking tea and coffee, and sharing stories. While the beds were tiny, I was more than happy rest well that night. When we woke up, the sun had not risen yet.
{% include resimg.html src="travel/nz/cruise/cruise-boat-morning-dark.jpg" class="with-viewer" %}
A smaller boat led us back towards the main body of the sound.
Here, I have to give credit to the tour company for the way they run this cruise. In the morning, we road to a different arm of the sound, with light just creeping over the surrounding mountains. Then, the captain instructed us all to report to the deck of the ship. He said that there was a mandatory activity: we were all to be completely quiet for five full minutes. He would turn off the engine, and the backup generator, to create perfect silence.
We did exactly this, and waited.
Over the course of the next five minutes, we all witnessed the sun come over the mountains, and slowly bathe the ship in light. The warmth of the sun, experienced in perfect silence, was an absolute luxury.
{% include resimg.html src="travel/nz/cruise/cruise-tree-sun.jpg" class="with-viewer" %}
The sun, coming over the mountain range
{% include resimg.html src="travel/nz/cruise/cruise-boat-morning.jpg" class="with-viewer" %}
I spent most of the morning just staring off the deck of the boat
{% include resimg.html src="travel/nz/cruise/cruise-mountains-fog.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-morning.jpg" class="with-viewer" %}
The fog was the thickest I've ever seen
{% include resimg.html src="travel/nz/cruise/cruise-mountains-fog-2.jpg" class="with-viewer" %}
It's hard to admit, but even this photo doesn't do it justice...
Finally, warmed by the sun, we set course for our original docking point, where we'd take the same multi-part trip in reverse, back to Te Anau.
{% include resimg.html src="travel/nz/cruise/cruise-morning-david-peter.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-morning-nate-dan-close.jpg" class="with-viewer" %}
{% include resimg.html src="travel/nz/cruise/cruise-morning-friends.jpg" class="with-viewer" %}
Nate and I were lucky to make such kind friends in such a remote place.
{% include resimg.html src="travel/nz/cruise/cruise-goodbye.jpg" class="with-viewer" %}
With the cruise behind us, we were headed back to Queenstown for our flight back home. But I'm not worried. I'll be back!


(stdin)
1 #!/usr/bin/env tclsh
2
3 package require moore
4
5 # The model command specifies the characterististics of the state model
6 moore model wmachine {
7 # The state model is defined by executing commands to specify the
8 # states and transitions of the model.
9
10 # The "State" command defines a state and the Tcl code that is run when the
11 # state is entered.
12 State Idle {} {
13 # Stop motor
14 puts "$self: Stopping motor"
15
16 # For testing purpose, we want to be able to run the Tcl event loop and
17 # when we are done with the cycle we will use "vwait" to determine that
18 # we have finished.
19 set ::wmachine($self) Idle
20 }
21
22 # The "Transition" command defines what happens when an event is received
23 # in a state. Notice that there is no command to define the events to which
24 # the model responds. The events are simply gleened from the "Transition"
25 # commands. The "-" and "->" arguments are simply syntactic sugar to
26 # suggest the transition from current state to new state that the event
27 # causes.
28 Transition Idle - Run -> FillingForWashing
29
30 State FillingForWashing {} {
31 # Open water valve
32 puts "$self: Opening water valve"
33
34 # At this point we need the washing tub sensor to tell us that the
35 # tub is full. For simplicity, we will simulate the sensor by
36 # means of the Tcl "after" command.
37 # SIMULATING THE TUB SENSOR
38 after 5000 [list moore generate {} - Full -> $self]
39 }
40 Transition FillingForWashing - Full -> Agitating
41
42 State Agitating {} {
43 # Close water value
44 puts "$self: Closing water valve"
45 # Set motor to agitate
46 puts "$self: Setting motor to agitate"
47 # Generate "Done" to self delayed by the wash time.
48 moore delay [$self cget wash] $self - Done -> $self
49 }
50 Transition Agitating - Done -> EmptyingWashWater
51
52 State EmptyingWashWater {} {
53 # Stop motor
54 puts "$self: Stopping motor"
55 # Start pump
56 puts "$self: Starting pump"
57
58 # SIMULATING THE TUB SENSOR
59 after 5000 [list moore generate {} - Empty -> $self]
60 }
61 Transition EmptyingWashWater - Empty -> FillingForRinse
62
63 State FillingForRinse {} {
64 # Stop pump
65 puts "$self: Stopping pump"
66 # Open water valve
67 puts "$self: Opening water valve"
68
69
70 # SIMULATING THE TUB SENSOR
71 after 5000 [list moore generate {} - Full -> $self]
72 }
73 Transition FillingForRinse - Full -> Rinsing
74
75 State Rinsing {} {
76 # Close water valve
77 puts "$self: Closing water valve"
78 # Set motor to agitate
79 puts "$self: Setting motor to agitate"
80 # Generate Done to self delayed by the rinse time
81 moore delay [$self cget rinse] $self - Done -> $self
82 }
83 Transition Rinsing - Done -> EmptyingRinseWater
84
85 State EmptyingRinseWater {} {
86 # Stop motor
87 puts "$self: Stopping motor"
88 # Start pump
89 puts "$self: Starting pump"
90
91 # SIMULATING THE TUB SENSOR
92 after 5000 [list moore generate {} - Empty -> $self]
93 }
94 Transition EmptyingRinseWater - Empty -> Spinning
95
96 State Spinning {} {
97 # Stop pump
98 puts "$self: Stopping pump"
99 # Set motor to spin
100 puts "$self: Setting motor to spin"
101 # Generate Done to self delayed by the spin time
102 moore delay [$self cget spin] $self - Done -> $self
103 }
104 Transition Spinning - Done -> Idle
105 }
106
107 # Draw the "as implemented" model
108 wmachine draw {-Tsvg -o%s.svg -Gsize=7.5,10}
109 # Create a state machine from the model
110 wmachine machine wm1
111 # Set up the parameters for the state machine.
112 wm1 configure wash 3000 rinse 3000 spin 4000
113 # Turn on tracing
114 wm1 configure trace true
115 moore::log::setlevel info
116 # Kick things off
117 moore generate {} - Run -> wm1
118 # Wait until the cycle is complete
119 vwait ::wmachine(::wm1)
120 # Clean up
121 wm1 destroy
Generated by GNU Enscript <IP_ADDRESS>.


NAlert as NBar
According to my experience, the most frequent usage of it may be requesting for disabling AdBlocks.
Library:
naive-ui@2.33.2


Luigi's Website
You have visited this page times.
Home
Lite Homepage
DHT11 Graph
MiniPad
Doctor Dogems
Tiny Enigma
Battleships
Lights Out
Living Button
Loading...


The world wide web (www) is basically a huge collection of HTML documents,
located on many different computers
which communicate via HTTP (HyperText Transfer Protocol),
the main protocol of the web.
The many HTML files are connected via hyperlinks (URLs).
Web browsers can interpret the HTML files and display them for the user in a more appealing way.
The web was invented in the 1990s and today consists of about 30 Billion pages.
HTML stands for HyperText Markup Language.
It is made up of:
- text content (what you see)
- markup (describes how the text should look like)
- references to other documents (e.g. images, videos and music)
- links to other pages
HTML code is made of elements which are defined by tags.
There are many different HTML tags e.g. markup tags to make text bold or italic,
the anchor tag to create links like www.udacity.com
or the image tag to include images like this cute fellow
Other tags are for creating whitespace like linebreaks
or paragraphs.
HTML Attributes are found inside tags and give the tag more variety and options.
The anchor tag's "href"-attribute for example is needed to define the URL for a link to another webpage.
HTML elements can be categorized as "inline" or "block", where block elements form an "invisible box"
around their content e.g. the paragraph tag.
In general the structure of an HTML document is as follows:
- Definition of the doctype (doctypes bring different presettings for the HTML document)
- Head (title and implementation of CSS and JavaScript can be defined here)
- Body (the main content of the webpage)


Configuration
Volume:
Max #artists to expand:
Expand already explored artists:
Help
- Click on an artist to see related artists.
- Hover over an artist to hear a sample of their music.
- Enter an artist name or a genre and explore relationships between over 2,000,000 artists on Spotify.
- Log In and press "Create Playlist" button to create a random playlist of top tracks of all the artists that are visible in the relationship tree
- Press the save button next to a track on the right side bar to save the track to your Artist Explorer Playlist


{% extends 'base.html' %} {% load utilities %} {% block head_title %}Withdrawn project members{% endblock %} {% block main %}
| Project Member ID | Erasure Requested |
|---|---|
| {{ project_member.project_member_id }} | {% template_bool project_member.erasure_requested %} |
{% endblock %}


CF Seeker
Home
Find
Convert
Find your apps by completing a set of the fields below and hitting submit
By Org, Space, and Name
-OR-
By App GUID
Result


Lesson Outcome
The Basic
Setting up our dev enviroment
How the internet works
What is a GIT and Github
MDN
HTML
HTML stands for
Hyper text Markup Language
Basic Tags
Doctype
HTML
Head
Lists


One of the most important modules. Containers are block elements with sizing, positioning, alignment and spacing options.
Some sizing options are multiplied by the $container factor, defined in blue.framework Core.
This module will be reworked in a very future release.
Note: Due to the fact that CSS transform property creates a new stacking context, z-index may not work as expected (by most devs). Please read Stacking for more details.
Defines a container.
Keywords
The following keywords can be used:
Specify a width
Width’s can be specified without an unit which are scaled by the $container factor (in rem). Supported units are %, vh, vw, vmin, vmax. Other units are not recommended and are not supported.
If a map with 1 element or a simple number is given, this will be the maximum width. The container will have its parent’s width until this value is reached.
If a map with 2 elements is given, the first will be the minimum width and the second the maximum width. The container will have its parent’s width unless these borders are reached. If the values are equal, this will be the (fixed) width of the element.
Aspect ratio
If a list with 2 elements is given, the first element is a number and the second element ar, then the width is is relative to the element’s height. The first element of the list will be used as the scaling factor.
Do not use aspect ratio on width and height on the same element as this will lead to undefined behaviour. Since this feature uses JavaScript, this rule cannot be overwritten (this will lead to undefined behaviour). Use Media Querys to disable aspect ratio.
Aspect ration uses Container.
Same as $width.
There are flags available defining some more behaviour.
Positioning
The position will be position:relative (relative) unless one of these flags is set. Only one of them is possible:
Absolute positioning.
Fixed positioning. Think about using Sticky instead.
Static positioning. Not recommended, rare use cases.
Additionally, the keyword extended (alias xt) can be used to enable extended algorithms width more aligning options (see below for details). Extended algorithms use transform which lead to unwanted behaviour in some cases. Note that containers using extended can only be overwritten by containers using extended. To overwrite properties, use media querys where possible.
Alignment
Only one flag per direction should be set (one vertical and one horizontal).
Please read the note at the end of this list.
Left.
Center (horizontal).
Right.
Top.
Middle (vertical).
Bottom.
Above the parents element. Will be placed outside of the parents element.
Underneath the parents element. Will be placed outside of the parents element.
Left to the parents element. Will be placed outside of the parents element.
Right to the parents element. Will be placed outside of the parents element.
Note that the availability of alignment flags is heavily dependent from the positioning model.
static works with left,``center``,``right`` when a width is specified.
relative works with left,``center``,``right``.
absolute and fixed works width everything. But: For using center or middle, ẁidth respectively height has to be specified.
With extended flag set, everything will work as expected for relative, absolute and fixed; independent from width and height. Note that relative positioned my have unexpected vertical alignment. In those cases use the absolute positioning model.
Floating
Adds floating to the container. Do not use in combination with alignment. Use with static and relative positioning is supported.
Explicitly disalbes floating.
Float left.
Float right.
Outer spacing. Should be used if a positioning flag is set.
Spacing (scaled by $gutter variable), see Gutter.
Negative outer spacing.
Will be removed in a future release. Maybe.
Spacing (scaled by $gutter variable), see Gutter.
A simple container with default options.


{% load crispy_forms_tags %} {% if script %} {{ script | safe }} {% endif %}
Current user: {{user_id}}
Change User ID {% if reviewlist %}| Cover | Title | Author | Year | User rating | Average rating | Page count | Start date | Read date | Price | Locations |
|---|---|---|---|---|---|---|---|---|---|---|
| {{ review.}} | {{ review.book.title }} | {{ review.book.author }} | {{ review.book.publication_year }} | {{ review.rating }} | {{ review.book.average_rating }} | {{ review.book.num_pages }} | {{ review.started_at }} | {{ review.read_at }} | {{ review.book.price }} |
{% for loc in review.book.location.all %}
{{ loc }} {% endfor %} |
Read date timeline and user rating. Circle size corresponds to book page count, color to average rating at goodreads.com
{% if div %} {{div | safe}} {% endif %} {% endblock %}


{% extends "layout/testlayout.html" %} {% import "macros/forms.html" as forms %} {% block main %} {{ forms.address('operatingAddress', value=address, error=errors.address ) }} {{ forms.address('operatingAddress', error=errors.address) }} {{ forms.address('operatingAddress', optionalNonUk='yes', error=errors.address) }} {{ forms.address('operatingAddress', error=errors.address) }} {% endblock %}


| I l@ve RuBoard |
A popular extension to Active Scripting is Active Debugging, a technology that allows you to debug your scripts. Regardless of the language your scripts are implemented in, you can debug them in a single debugging environment provided by Microsoft. Interestingly, this allows you to step through multiple languages; for example, as Python code calls VB code that calls Python code, you can step through each individual line.
Microsoft provides two Active Debugging environments. The Windows Script Debugger is a free tool available from http://msdn.microsoft.com/scripting/ , and while a nice debugger, the Microsoft Visual Interdev provides a richer debugging environment. The only drawback with Interdev is that it comes with Microsoft Visual C++ and is not available for free download.
There is not much to say about Active Debugging when using Python. You simply use the debugger, and Python is right there, ready to be debugged.
Unfortunately, the Active Debugging specification is new and not everything works quite as expected. For example, it's impossible to debug scripts under Internet Explorer 4, as the Active Desktop enhancements cause the debugger to complain that you are attempting to debug the desktop. A solution to this particular problem is to debug your script using a different EXE that still uses the IE4 control, e.g., PythonWin and the webrowser.py sample. A further complication is that not all Active Scripting hosts support Active Debugging. The Debugging interfaces are optional, and if the host doesn't support debugging the utility of the debugger is severely limited.
| I l@ve RuBoard |


Welcome to DimCli’s documentation!
Dimcli is a Python client for accessing the Dimensions Analytics API.
Dimcli lives on Github. Suggestions, pull requests and improvements welcome!
>>> import dimcli
>>> dimcli.login(key="private-key-here",
endpoint="https://app.dimensions.ai/api/dsl/v2")
>>> dsl = dimcli.Dsl()
>>> res = dsl.query("""search grants for "malaria" return researchers""")
>>> print(res.json)
{'researchers': [{'id': 'ur.01332073522.49',
'count': 75,
'last_name': 'White',
'first_name': 'Nicholas J'},
{'id': 'ur.01343654360.43',
'count': 59,
'last_name': 'Marsh',
'first_name': 'Kevin'},
.............
],
'_stats': {'total_count': 8735}}
About Dimensions Analytics API
The Dimensions Analytics API supports extraction of Dimensions data for use in complex analyses and visualizations or the building of analytical tools and reporting templates. The API uses an intuitive query language specifically developed for Dimensions data. You can retrieve, aggregate, and sort data from highly specific requests in a single API call. Additional services like text categorization are also available.
Digital Science’s Dimensions is a linked-research data platform that allows to explore the connections between more than 150 million records including grants, publications, clinical trials, patents and policy documents.
For more information about the Dimensions Analytics API, see also:
The Dimensions API Lab , an open source collection of jupyter notebooks tutorials
The official Dimensions API Documentation


gnome-open or xdg-open?
-
phuidm
Is it possible to open non-standard file-types using command-T? Command-T makes navigation between text files extremely efficiently, I would also like to navigate files such as pdfs. Normally in vim I would type !gnome-open document.pdf. Is it possible to do this with Comamnd-T somehow if I edit something? I would be a great feature for a new release. I use vim for latex obviously.
-
Greg Hurrell
There's no built-in way to do this, but it would certainly be possible to implement (either by adding configurable mappings to open files with custom commands, or by adding a configurable mapping of file-extension-to-open-method).
Reply
This topic is now closed.


Text to Speech Convertor in JS
Hello! This is Akshat Aggarwal. I made a text to speech convertor.. Just checking that.. Thank You!
Voice
Volume
Rate
Pitch
Speak


#include <RFile.h>
Public Member Functions | |
| RFile (const UPath &name, void *handle, unsigned int flags) | |
| Purpose: To manage a text file. | |
| ~RFile () | |
| void | Reset (void *handle, unsigned int flags) |
| resets the file's handle and flags. | |
| bool | CanRead () |
| returns information about the file's allowed usage. | |
| bool | CanWrite () |
| bool | Exists () const |
| returns true if the file exists. | |
| bool | Reload () const |
| reloads the data in the file. | |
| void | Purge () const |
| purges any loaded data. | |
| const void * | GetData () const |
| __int64 | GetSize () const |
| void | WriteData (__int64 offset, const void *src, unsigned int size) |
| write the data. | |
| void * | GetHandle () const |
| returns the file handle for use with Bootstrap FS. | |
| unsigned int | GetFlags () const |
| returns the file's creation flags. |
File: RFile.h Author: Kevin Bray Created: 11-12-05 Copyright © 2004 Bootstrap Studios. All rights reserved. project includes. class RFile
Definition at line 18 of file RFile.h.
| RFile::RFile | ( | const UPath & | name, | |
| void * | handle, | |||
| unsigned int | flags | |||
| ) |
| bool RFile::CanRead | ( | ) |
| bool RFile::Exists | ( | ) | const |
| const void * RFile::GetData | ( | ) | const |
| unsigned int RFile::GetFlags | ( | ) | const [inline] |
| void* RFile::GetHandle | ( | ) | const [inline] |
| void RFile::Purge | ( | ) | const |
| bool RFile::Reload | ( | ) | const |
reloads the data in the file.
simply return if the file doesn't exist.
free the previously loaded data.
allocate space for the file's data.
fill out a read buffer.
issue the read request.
read in the current block.
advance the current size and the offset.
terminate the data with a null terminator.
wait until the read is complete.
return true to indicate success.
| void RFile::Reset | ( | void * | handle, | |
| unsigned int | flags | |||
| ) |
| void RFile::WriteData | ( | __int64 | offset, | |
| const void * | src, | |||
| unsigned int | size | |||
| ) |


{{ template "theme/partials/header.html" . }}
I am a final year PhD student in the group of Prof Judith Mank at University College London (UCL) and expect to graduate in summer 2016. My work is on the interface of evolutionary biology and bioinformatics: I develop computational tools to answer fundamental biological questions. I am experienced working with complex and heterogeneous datasets and enjoy building tools in a diverse and international team. My ability to solve difficult problems and communicate results to others has been recognised with multiple awards.
For a more detailed overview see the research section


--- layout: post title: Raspberry Pi Bridge eth0 to wlan0 with wlan_kabel date: '2020-10-25T16:59:00.000-07:00' author: gojimmypi tags: - Envox - BB3 - bridge - wlan_kabel - raspberry pi modified_time: '2020-10-25T16:59:03.960-07:00' thumbnail: https://1.bp.blogspot.com/-ANz0gpP4gIo/X5YQ80gHV1I/AAAAAAAAC6k/dqgkig2TNTo-ec-bKX6x1ZCsXpdCG44sACLcBGAsYHQ/s72-w400-c-h59/bb3%2Bwireless%2Bnetworking.png blogger_id: tag:blogger.com,1999:blog-4109066286647243251.post-8661088925012601161 blogger_orig_url: https://gojimmypi.blogspot.com/2020/10/bridge-eth0-to-wlan0-with-wlankabel.html ---
sudo apt-get install git
git clone https://github.com/escitalopram/wlan_kabel.git
cd wlan_kabel
make
# the magic (showing the example MAC address from the docs)
# you'll need to put your own address here:
sudo ./wlan_kabel wlan0 eth0 74:69:69:2d:30:11
/etc/rc.local
:
{% include code_header.html %}
(/home/pi/wlan_kabel/wlan_kabel wlan0 eth0 74:69:69:2d:30:11 > /dev/null 2>&1) &
Don't forget to use your own MAC address, and be sure to include the training ampersand.


| Pollutant | Side effects | Value |
|---|---|---|
| PM 10 | Fine Particulate Matter are inhalable pollutant particles with a diameter less than 2.5 micrometers that can enter the lungs and bloodstream, resulting in serious health issues. | {{ans5}} µg/m³ |
| SO2 | Exposure to Sulfur Dioxide can lead to throat and eye irritation and aggravate asthma as well as chronic bronchitis. | {{ans2}} µg/m³ |
| NO2 | Breathing in high levels of Nitrogen Dioxide increases the risk of respiratory problems. Coughing and difficulty breathing are common and more serious health issues such as respiratory infections can occur with longer exposure. | {{ans3}} µg/m³ |
| O3 | Ozone can damage the lungs. Relatively low amounts of ozone can cause chest pain, coughing, shortness of breath and, throat irritation. | {{ans4}} µg/m³ |


Thomas Chaidez's
Software Engineering Landing Page
SPRINT 1
No Links Needed for this Sprint (Already Completed)
SPRINT 2
Discussion 2
Quiz 2
Lab 2
Reflection 2
Lab Demo
Dice Roller Assignment
SPRINT 3
Discussion 3
Quiz 3
Lab 3
Reflection 3
SPRINT 4
Discussion 4
Quiz 4
Lab 4
Reflection 4
SPRINT 5
Discussion 5
Quiz 5
Lab 5
Reflection 5
SPRINT 6
Discussion 6
Quiz 6
Lab 6
Reflection 6
SPRINT 7
Discussion 7
Quiz 7
Lab 7
Reflection 7
SPRINT 8
Discussion 8
Quiz 8
Lab 8
Reflection 8


|
Audiometry
|
Classes | |
| class | AirCondAidData |
| class | AirCondMskData |
| class | AirCondUmskData |
| class | BoneCondMskData |
| class | BoneCondUmskData |
| class | CaloricTimeMinLimits |
| class | CaloricTimeSecLimits |
| class | ComplianceLevelLimits |
| class | HearingFrequencyLimits |
| class | HearingLevel |
| class | HearingPowerLimits |
| class | LoudDiscomLvlData |
| class | PureToneData |
| class | SoundFieldData |


Press Statement for 1984 Day
PRESS STATEMENT
For immediate release
Restore the Fourth SF Prepares for Second Major Rally on Sunday, August 4th
Seeks to build on momentum of July 4th protests with prominent guest speakers, enhance awareness of constitutional abuses, and encourage citizen participation
Restore the Fourth — the grassroots, non-partisan, non-violent movement dedicated to ending all forms of unconstitutional surveillance of digital communications by the U.S. government — is preparing to hold its second major nationwide rally on Sunday, August 4th. The San Francisco chapter of Restore the Fourth will hold its rally at Justin Herman Plaza (at Market and Steuart) beginning at noon. Several prominent guest speakers, including whistleblowers Daniel Ellsberg and Mark Klein, will be in attendance.
This second rally follows the success of the July 4th, 2013 event, which saw tens of thousands of Americans turn out nationwide to raise awareness of unconstitutional surveillance, such as that employed by the National Security Agency (NSA) in its recently-revealed metadata collection and PRISM programs, and to encourage the cessation of all U.S. government surveillance that stands in violation of the Fourth Amendment. Approximately 400 people marched down Market Street in San Francisco on July 4th to voice their concerns over such issues. The event and guest speakers will aim to educate and increase awareness of the government’s spying initiatives and to encourage more Americans to take a stand in defense of their privacy. The rally will also address local elected representatives, such as House Minority Leader Nancy Pelosi (of California’s 12th congressional district), focusing on those who have supported the NSA surveillance program.
During a recent vote in the House on an amendment that would have curbed the NSA’s spying powers championed by Rep. Justin Amash (R-Mich.), for example, Congresswoman Pelosi voted against the amendment and for the unconstitutional NSA programs.
At the rally, participants will have the chance to express their individual concerns over privacy and government surveillance by adding Post-it notes to a public comment board. Following appearances by the guest speakers, the boards will be delivered to the San Francisco Federal Building, where Congresswoman Pelosi’s district office is.
“We are holding this event to reinforce our previous point: That this incursion onto our privacy affects everyone — whether they are aware of the issue or not — and that there are enough people outraged at the actions of the government that there is a loud public outcry,” said Ryan Brown, an organizer within the San Francisco chapter of Restore the Fourth. “We are here to show the people of San Francisco, our elected officials, and the nation at large that there are individuals out there who care about everyone's right to privacy — and who are willing to fight for it.”
The San Francisco rally begins at 12pm in the Embarcadero Plaza. Guest speakers will be featured from 1-2pm. Among the speakers will be Daniel Ellsberg, who in 1971 leaked the Pentagon Papers detailing controversial government secrets about the Vietnam War, and Mark Klein, the former AT&T technician who revealed in 2006 that the company was colluding with the NSA by diverting customer data through NSA collection filters — including one located in AT&T’s San Francisco office. Also present will be Norman Solomon, founder of the Institute for Public accuracy, which works to provide alternate information sources for journalists, and Jennifer Granick, Director of Civil Liberties at the Stanford Center for Internet and Society.
Expected turnout for the rally is about 400 people.
Restore the Fourth originated as a nationwide movement on social news website reddit.com in June 2013 in response to revelations of the U.S. government’s massive and unconstitutional surveillance programs. The organization has also established presences on Facebook (facebook.com/RestoreThe4thSF) and Twitter (twitter.com/RestoreThe4thSF); updates can be found on both sites.
First Open Strategy Meeting Notes
Part One: National Leadership; Over arching themes
Principles:Non-violence and separation of our other political stances from this particular issue so we can spread this message and reach out across the aisle.
Part Two: Goals
Restoring hope to the people of the United States and helping them realize that they can change the course of the US government by coming out and supporting us in any manner they can.
AWARENESS is our current primary goal. Grow our Active base by spreading the word via social networking and informative videos about the fourth amendment and why it is important as well as eventually a video project. (Currently looking for people who are very familiar with editing software.)
Talking about the renewal date of Metadata tracking. Keeping the issue in the media (while remaining mindful of the media's tendency toward vilifying our cause.)
Begin to use (or continue to use) Non-Prism search engines. (Possibly stop using facebook and other social networking sites as a form of protest at some point.)
Read up on our oppositions arguments and prepare counters.
- Events each must provide net gain on momentum, or achieve something concrete.
- Hope, a chance to participate in government. Use fun events.
- Explicit exclusion of any partisan issue even one that individuals might associate with the 4th amendment.
- What does it mean to fight an institutional consensus?
- The bill of rights isn't a list of laws, it's a list of facts - of what the limits of a sustainable government are.
- Agenda plus Alternative = change. We have an agenda, let's develop an alternative.
Part Three: Actions
1-5 scale on civil disobedience. Examples of success: PETA, montreal student movement 2012, civil rights movement (distinction of tangible issues). Abstraction? Civil rights can be tangible, even the 4th. Digital civil disobedience. After a vote, 23/25 agree: This group has generally agreed that we are not planning on using civil disobedience at this time.
- Action: Cryptoparties, noisebridge as a location. in the mean time, a summary (Eric and Alan).
- Action: Organizing town hall type meetings in all Bay Area cities and counties. (We currently have ones in Santa Rosa and San Francisco in the works)
- Action: Videotaping project involves getting citizens, public figures and teachers to recite the fourth amendment on camera and then stating what the amendment means to them. (We eventually plan on editing all of these together to form a longer; yet still short documentary about the movement and the fourth amendment.) Youtube channel created.
- Action: 8/4 2pm speakers at embarcadero, handing out flyers throughout market 11-2 (dressed up as NSA). Recordings? "Proposed" to be discussed on reddit, facebook. Preference for elected officials on embarcadero. government employees. Video
- Count the federal criminal laws?
- Pressuring companies not to backdoor, alternative to direct government action? Boycotts? Pressuring employees? Thawab points out: targeting private companies may be too difficult because money drives that industry.
- Feinstein - for people who specifically want to approach the blight that is Feinstein, you have a massive resource in David Levitt. Contact him if you want to do anything related to that. http://www.levitt2012.org/
Roles created: Video and Youtube team, Cryptoparty team, Town Hall teams, Feinstein specialist. Assigned responsibilities to the people who come to me with ideas or questions or skills.
Founding of Restore the Fourth SF
Restore the Fourth SF was founded by no99sum, Ryan, Sam, Alice, Ted and Nick on this day.


You're already planning – whether it's weekly, daily, or even just a few hours ahead. Move your schedule
to Timely, and you will be logging hours simultaneously.
Who did what – when? Or who's doing what – when? Either way, you'll know the answer. Helps you plan for
new projects, delegate work to employees and see who's got too much on their plate.
Log hours directly from your favorite calendar! Timely integrates with all major calendars, which means any event
or meeting you add there will be auto-imported into Timely as estimated entries.


A framework for creating and running data pipelines. Data pipelines have stages, which are made of an arbitrary number of tasks. Stages and tasks are run in serial: once a task completes, the next task in the pipeline is executed.
A task may complete synchronously, or asynchronously through use of a promise.
Pipelines take a data object as input, and each task operates on the object in some way.
For an example of the Pipeliner in action, checkout the nxus-static-site module.
> npm install nxus-pipeliner --save
import {pipeliner} from 'nxus-pipeline'
pipeliner.pipeline('my-pipeline')
A task is a javascript function that accepts any objects passed into the pipeline when it is run. Tasks are run serially in FIFO order.
let myTask = (word) => {
word.toUpperCase();
}
app.get('pipeliner').task('my-pipeline', myTask)
Once all the tasks for a pipeline have been defined, the last step is to run the pipeline.
app.get('pipeliner').run('my-pipeline', someData)
Extends NxusModule
let myTask = (data) => {
data.word.toUpperCase()
}
let data = {word: 'hello'}
let pipeliner = app.get('pipeliner')
pipeliner.pipeline('capitalize')
pipeliner.run('capitalize', data).then(() => {
console.log('data') // {word: 'HELLO'}
})
Defines a task for a pipeline and a stage. Creates the pipeline if it does not already exist; adds the stage if it does not already exist. If multiple tasks are defined for a stage, they are run in the order defined.
Runs the specified pipeline, passing the arguments to each task.
(string)
The name of the pipeline to run
(...object)
Arguments to pass to the pipeline tasks
Promise
:
A promise that is fulfilled when the pipeline completes; it is rejected if any task in the pipeline fails (throws an error or returns a promise that is rejected)


Need a Carl Password?
Lowercase letters
Uppercase letters
Numbers
Special characters
Unicode characters
Spaces
Length:
Generate
New password:
Copy


Extracts crops from the input image tensor and resizes them.
tf.compat.v1.image.crop_and_resize( image, boxes, box_ind=None, crop_size=None, method='bilinear', extrapolation_value=0, name=None, box_indices=None )
Extracts crops from the input image tensor and resizes them using bilinear
sampling or nearest neighbor sampling (possibly with aspect ratio change) to a
common output size specified by crop_size
. This is more general than the
crop_to_bounding_box
op which extracts a fixed size slice from the input image
and does not allow resizing or aspect ratio change.
Returns a tensor with crops
from the input image
at positions defined at the
bounding box locations in boxes
. The cropped boxes are all resized (with
bilinear or nearest neighbor interpolation) to a fixed
size = [crop_height, crop_width]
. The result is a 4-D tensor
[num_boxes, crop_height, crop_width, depth]
. The resizing is corner aligned.
In particular, if boxes = [[0, 0, 1, 1]]
, the method will give identical
results to using tf.image.resize_bilinear()
or
tf.image.resize_nearest_neighbor()
(depends on the method
argument) with
align_corners=True
.
image
: A Tensor
. Must be one of the following types: uint8
, uint16
, int8
, int16
, int32
, int64
, half
, float32
, float64
.
A 4-D tensor of shape [batch, image_height, image_width, depth]
.
Both image_height
and image_width
need to be positive.boxes
: A Tensor
of type float32
.
A 2-D tensor of shape [num_boxes, 4]
. The i
-th row of the tensor
specifies the coordinates of a box in the box_ind[i]
image and is specified
in normalized coordinates [y1, x1, y2, x2]
. A normalized coordinate value of
y
is mapped to the image coordinate at y * (image_height - 1)
, so as the
[0, 1]
interval of normalized image height is mapped to
[0, image_height - 1]
in image height coordinates. We do allow y1
> y2
, in
which case the sampled crop is an up-down flipped version of the original
image. The width dimension is treated similarly. Normalized coordinates
outside the [0, 1]
range are allowed, in which case we use
extrapolation_value
to extrapolate the input image values.box_ind
: A Tensor
of type int32
.
A 1-D tensor of shape [num_boxes]
with int32 values in [0, batch)
.
The value of box_ind[i]
specifies the image that the i
-th box refers to.crop_size
: A Tensor
of type int32
.
A 1-D tensor of 2 elements, size = [crop_height, crop_width]
. All
cropped image patches are resized to this size. The aspect ratio of the image
content is not preserved. Both crop_height
and crop_width
need to be
positive.method
: An optional string
from: "bilinear", "nearest"
. Defaults to "bilinear"
.
A string specifying the sampling method for resizing. It can be either
"bilinear"
or "nearest"
and default to "bilinear"
. Currently two sampling
methods are supported: Bilinear and Nearest Neighbor.extrapolation_value
: An optional float
. Defaults to 0
.
Value used for extrapolation, when applicable.name
: A name for the operation (optional).A Tensor
of type float32
.


-
Marilyn Henrion
The award-winning works of this Cooper Union graduate and lifelong New Yorker are included in museum, corporate and private collections worldwide and have been exhibited throughout the U.S. and abroad.
-
Edward Henrion
With a background in art and philosophy and a keen eye for the absurdities of the human condition, Edward Henrion was an equal opportunity offender who created satirical artworks that took no prisoners.


Rahul Rajagopalan
Home
|
Projects
|
Classes
|
Work Experience
|
Contact
|
Cochlear Implants
Projects
Software Studio (6.170) — See
Github


Source module to create “Projection” space from.
Refs
simplelife.projection.
asmp
¶Reference to Assumption
space
Cells
nop_AccDeath (t) |
Number of policies: Accidental death |
nop_AccHosp (t) |
Number of policies: Accidental Hospitalization |
nop_AfterMat (t) |
Number of policies: Maturity |
nop_Annuity (t) |
Number of policies: Annuity |
nop_BoP (t) |
Number of policies: Beginning of period |
nop_BoP1 (t) |
Number of policies: Beginning of period 1 |
nop_Death (t) |
Number of policies: Death |
nop_EoP (t) |
Number of policies: End of period |
nop_Living (t) |
Number of policies: Living benefits |
nop_Maturity (t) |
Number of policies: Maturity |
nop_NewBiz (t) |
Number of policies: New business |
nop_Other (t) |
Number of policies: Other benefits |
nop_Renewal (t) |
Number of policies: Renewal policies |
nop_SickHosp (t) |
Number of policies: Sickness Hospitalization |
nop_Surgery (t) |
Number of policies: Surgery |
nop_Surrender (t) |
Number of policies: Surrender |
ppl_Age (t) |
Attained age at time t |
ppl_AnnualizedPrem (t) |
Annualized premium per policy at time t |
ppl_SumAssured (t) |
Sum assured per policy at time t |
ppl_bnft_AccDeath (t) |
Accidental death benefit per policy |
ppl_bnft_AccHosp (t) |
Accidental hospitalization benefit per policy |
ppl_bnft_Annuity (t) |
Annuity benefit per policy |
ppl_bnft_Death (t) |
Death benefit per policy |
ppl_bnft_Living (t) |
Living benefit per policy |
ppl_bnft_Maturity (t) |
Maturity benefit per policy |
ppl_bnft_Other (t) |
Other benefit per policy |
ppl_bnft_SickHosp (t) |
Sickness hospitalization benefit per policy |
ppl_bnft_Surgery (t) |
Surgery benefit per policy |
ppl_bnft_Surrender (t) |
Surrender benefit per policy |
ppl_exps_Acq (t) |
Acquisition expense per policy at time t |
ppl_exps_CommInit (t) |
Initial commission per policy at time t |
ppl_exps_CommRen (t) |
Renewal commission per policy at time t |
ppl_exps_Maint (t) |
Maintenance expense per policy at time t |
ppl_exps_Other (t) |
Other expenses per policy at time t |
ppl_incm_Investment (t) |
Investment Income per policy from t to t+1 |
ppl_incm_Premium (t) |
Premium income per policy from t to t+1 |
ppl_incm_Total (t) |
Income Total per policy |
ppl_rsv_HospReserve_EoP (t) |
Hospitalization reserve per policy: End of period |
ppl_rsv_PremReserve_AfterMat (t) |
Premium reserve per policy: After maturity |
ppl_rsv_PremReserve_EoP (t) |
Premium reserve per policy: End of period |
ppl_rsv_Total_AfterMat (t) |
Total reserve per policy: After maturity |
ppl_rsv_UnearnedPrem_AfterMat (t) |
Unearned premium: After maturity |
ppl_rsv_UnearnedPrem_EoP (t) |
Unearned reserve per policy: End of period |
prj_ChangeInReserve (t) |
Change in reserve |
prj_NetLiabilityCashflow (t) |
Net liability cashflow |
prj_ProfitBeforeTax (t) |
Profit before Tax |
prj_bnft_AccDeath (t) |
Accidental death benefits |
prj_bnft_AccHosp (t) |
Accidental hospitalization benefits |
prj_bnft_Annuity (t) |
Annuity benefits |
prj_bnft_Death (t) |
Death benefits |
prj_bnft_Living (t) |
Living benefits |
prj_bnft_Maturity (t) |
Matuirty benefits |
prj_bnft_Other (t) |
Other benefits |
prj_bnft_SickHosp (t) |
Sickness hospitalization benefits |
prj_bnft_Surgery (t) |
Surgery benefits |
prj_bnft_Surrender (t) |
Surrender benefits |
prj_bnft_Total (t) |
Benefit Total |
prj_exps_Acq (t) |
Acquisition expenses |
prj_exps_CommInit (t) |
Initial commissions |
prj_exps_CommRen (t) |
Renewal commissions |
prj_exps_CommTotal (t) |
Commissions Total |
prj_exps_Maint (t) |
Maintenance expenses |
prj_exps_Other (t) |
Other expenses |
prj_exps_Total (t) |
Total expenses |
prj_incm_Investment (t) |
Investment income |
prj_incm_Premium (t) |
Premium income |
prj_incm_Total (t) |
Income Total |
prj_rsv_HospReserve_EoP (t) |
Hospitalization reserve: End of period |
prj_rsv_PremReserve_EoP (t) |
Premium reserve: End of period |
prj_rsv_Total_EoP (t) |
Total reserve: End of period |
prj_rsv_UnearnedPrem_EoP (t) |
Unearned Premium: End of period |
simplelife.projection.
ppl_rsv_PremReserve_AfterMat
(t)[source]¶Premium reserve per policy: After maturity
simplelife.projection.
ppl_rsv_UnearnedPrem_EoP
(t)[source]¶Unearned reserve per policy: End of period


Exploring, evacuating, and finding treasures, without a map
29 Jun 2017Hi there! I have come back from the Sirocco conference a few days ago, and there I saw a couple of talks on fun and easy-to-explain topics, so here is a post about it. (There is a review of Sirocco by Christian Konrad, here).
Cow path problem
You may know the following problem, or a variant of it:
A cow is looking for a treasure, that is located at an unknown position of a path. The cow cannot see very well, so it can only detect the treasure if it is just below its eyes. The question is: what is a good strategy to find the treasure while walking as little as possible? More precisely, if there are $d$ steps from the starting point to the treasure (and $d$ is unknown), is it possible to find it after $O(d)$ steps?1
I will explain the solution in the next paragraph, but I guess it is better to find it by yourself, if you do not know it already (it is not super tricky).
For sure, the cow cannot go straight in one direction, as the treasure may be in the other direction. But when it turns back, it may be the case that the direction was good, and that the treasure is just a few steps further. The solution is basically to do a first step in one arbitrary direction, say the right, then to go back to the starting point, to do two steps to the left, to go back, do four steps to the right etc. doubling the distance every time.
The cow will eventually find the treasure, as it goes arbitrarily far in both directions. As for the distance travelled, the last movement from the starting point to the treasure is basically of the same order of magnitude as the whole distance walked from the very start of the procedure. This kind of exponential increase is often used in algorithms, see for example the exponential search. Another example is the case when one has an efficient algorithm for a task, but this algorithm requires some upper bound on a parameter of the input ; then one can guess a small value for the parameter, and then, if the algorithm fails with this parameter, double this value, try again, etc.2
Note that the cow path problem is also known under the less bucolic name of linear search problem.
Competitive ratio
In the algorithm above, the ratio between the time it takes to find the treasure if you do not know where it is, and the time it takes to reach it if you know where it is, is constant. In analogy with online algorithms, this ratio is called the competitive ratio, and it is the usual way to measure how efficient a search algorithm is. The first step is to prove that a constant ratio strategy exists, and then to improve this constant. For example in the cow path problem, the strategy above leads to an optimal ratio of 9, and it is possible to get a smaller constant with a randomized strategy.3
More roads diverged in a yellow wood…
So now what happens if the cow stands at the intersection of $m$ paths (the previous case being $m=2$)? It is natural to visit every path one after the other, increasing the distance travelled. To minimize the competitive ratio, the best strategy is to fix some ordering on the path, and to visit them in the ordering (1, 2, …, m, 1, 2, etc.), and every time a new path is taken to multiply the distance by $m/(m-1)$.
…and more cows were grazing
Then one can again improve the story by adding more cows (usually less than the number of paths, otherwise it is less funny4). Then the finishing time can be defined in several ways:
- the simplest way is to say that the game finishes when one of the cows find the treasure,
- but maybe you want all the cows to be around the treasure. This case is usually called an evacuation problem, because it represents the situation in which the agents are looking for an exit, and every agent has to be evacuated.
In this last case there are two main possibilities:
- either the cows can communicate directly (in the robot metaphor, this a wireless communication)
- or they cannot: two cows can only communicate if they are at the same place (face-to-face communication).
The paper by Brandt et al. presented at the conference, and listed at the end of this post is about this last case, with lower and upper bounds on the competitive ratio. Another paper by Cyzyzowicz et al. was about evacuation from a disk, with some faulty agents.
Finally, let’s go exploring!
To finish this post, I would like to mention a similar but different kind of problem: graph exploration. We consider agents that move in an unknown graph, the following way. An agent starts at a vertex, and can only see that there are some edges linking it to the rest of the graph. Then it chooses such an edge, reveal a new node, and a set of outgoing edges. Then again it chooses an edge etc. At each steps the part of the graph that has been explored increases, and the goal is to explore the graph completely, as fast as possible. Once again the question is: what is the good strategy for these agents? More precisely, how to minimize the competitive ratio (which is defined here, as the ratio between the time of exploration, and the time it would take to explore the graph if the agents had a map of the graph)? Again there are many variations. A paper on this topic at the conference is by Disser at al.
Papers and notes
- Amos Korman, Jean-Sébastien Sereni, Laurent Viennot: Toward more localized local algorithms: removing assumptions concerning global knowledge. Distributed Computing 26(5-6): 289-308 (2013)
- Sebastian Brandt, Klaus-Tycho Förster, Benjamin Richner, and Roger Wattenhofer: Wireless Evacuation on $m$ Rays with $k$ Searchers SIROCCO 2017.
- Jurek Czyzowicz, Konstantinos Georgiou, Maxime Godon, Evangelos Kranakis, Danny Krizanc, Wojciech Rytter, and Michal Wlodarczyk: Evacuation from a Disc in the Presence of a Faulty Robot SIROCCO 2017.
- Yann Disser, Frank Mousset, Andreas Noever, Nemanja Skoric, and Angelika Steger: A General Lower Bound for Collaborative Tree Exploration
The weird section titles are references to a poem and a comics
Contact for comments: feuilloley at irif dot fr.
Footnotes
-
There is not a great difference between the continuous and the discrete setting here. The only subtlety is that in the continuous setting, there must be a guarantee that the treasure cannot be arbitrarily close to the starting point, otherwise any first move would already be arbitrarily bad. ↩
-
For an example in network distributed computing, see the paper by Korman et al., in which the unknown parameter is the size of the network. ↩
-
References for these results and the ones of the following section can be found in the paper by Brandt et al. ↩
-
If you think this story is becoming too silly, just replace the word ‘cow’ by ‘robot’ or ‘agent’, and ‘treasure’ by ‘target’. ↩


Camera
Connection
DisplayHandler
Drawable
EigenEngine
EigenKey
EigenMaze
Entity
EntityFactory
Flag
GLExtensions
Game
LightManager
Lightmap
MassEntity
Math3D
Matrix
Maze
Maze3d
Mesh
MeshLoader
MobileEntity
NetEntity
NetHandler
NetProjectileManager
Octree
Particle
ParticleEffect
ParticleManager
ParticleSphere
Physics
Plane
Player
Powerup
Preferences
Projectile
ProjectileLauncher
Server
ShadowVolume
Ship
ShortMap
SkyBox
Texture
Vect3d
|


package require snit 0.93 ::snit::type name definition ::snit::widget name definition ::snit::widgetadaptor name definition
This man page is intended to be a reference only; see the accompanying Snit FAQ list for a gentler, more tutorial introduction to Snit concepts.
snit::type name definition
snit::type
command appears (usually the global namespace). It
returns the fully qualified type name.The type name is then a command which is used to create objects of the new type, along with other activities.
The snit::type
definition block may contain the
following definitions:
typevariable name ?value?
typemethod name arglist body
The arglist is a normal Tcl argument list and may contain default arguments and the "args" argument; however, it may not contain the argument names "type", "self", "selfns", or "win".
Type variables defined in the type definition are automatically visible in the body of every type method.
typeconstructor body
The variable "type" is automatically defined in the body to the type's fully-qualified name.
Type variables defined in the type definition are automatically visible in the body of every type method.
A type may define at most one type constructor.
option namespec ?defaultValue?
The namespec is a list defining the option's name, resource name, and class name, e.g.:
option {-font font Font} {Courier 12}
The option name must begin with a hyphen, and must not contain any upper case letters. The resource name and class name are optional; if not specified, the resource name defaults to the option name, minus the hyphen, and the class name defaults to the resource name with the first letter capitalized. Thus, the following statement is equivalent to the previous example:
option -font {Courier 12}
See the Snit FAQ list for more information about resource and class names.
Options are normally set and retrieved using the
standard configure
and cget
instance
methods.
variable name ?value?
Note that the delegate
statement implicitly
defines an instance variable for the named component.
method name arglist body
args
The arglist is a normal Tcl argument list and may
contain default arguments and the "args" argument. In
addition, the method is implicitly passed the following
arguments as well: "type", which contains the
fully-qualified type name; "self", which contains the
current instance command name; "selfns", which contains
the name of the instance's private namespace; and
"win", which contains the original instance name.
Consequently, the arglist may not contain the
argument names "type", "self", "selfns", or "win".An instance method defined in this way is said to be "locally defined".
Type and instance variables defined in the type definition are automatically visible in all instance methods. If the type has locally defined options, the "options" array is also visible.
constructor arglist body
The arglist is a normal Tcl argument list and may contain default arguments and the "args" argument. As with methods, the arguments "type", "self", "selfns", and "win", are defined implicitly.
If the constructor is not defined, it defaults to this:
constructor {args} { $self configurelist $args }
For standard Tk widget behavior (or to achieve the behavior of previous versions of snit) the argument list should be the single name "args", as shown.
destructor body
As with arguments, the parameters "type", "self", "selfns", and "win", are defined implicitly.
onconfigure name arglist body
The arglist may contain exactly one argument name. As with methods, the arguments "type", "self", "selfns", and "win", are defined implicitly.
If no explicit onconfigure handler is defined for an option, the handler is defined as follows:
onconfigure name {value} { set options(name) $value }If an explicit onconfigure handler is defined, the options array will be updated with the new value only if the handler so updates it.
oncget name body
The variables "type", "self", "selfns", and "win" are
defined as usual in the handler's body. Whatever
the handler returns will be the return value of the call
to the cget
instance method.
If no explicit oncget handler is defined for an option, the handler is defined as follows:
oncget name { return $options(name) }
proc name args body
Although they are not implicitly defined for procs, the argument names "type", "self", "selfns", and "win" should be avoided.
delegate method name to comp
delegate method name to comp as target
delegate method * to comp
delegate method * to comp except exceptions
method name {args...} { $comp mymethod args... }If desired, the delegated method may target a method with a different name by using the "as" clause; the target may also include arguments to add to the beginning of the argument list.
The form "delegate method *" delegates all unknown method names to the specified comp. The "except" clause can be used to specify a list of exceptions, i.e., method names that will not be so delegated.
A method cannot be both locally defined and delegated.
delegate option namespec to comp
delegate option namespec to comp as target
delegate option * to comp
delegate option * to comp except exceptions
option
statement. When the
configure
,
configurelist
, or
cget
instance method is used to set or
retrieve the option's value, the equivalent configure or
cget command will be applied to the component as though
these onconfigure
and
oncget
handlers were
defined, where name is the option name from the
namespec:
onconfigure name {value} { $comp configure name $value } oncget name { return [$comp cget name] }If the "as" clause is specified, then the target option name is used in place of name.
The form "delegate option *" delegates all unknown method names to the specified comp. The "except" clause can be used to specify a list of exceptions, i.e., option names that will not be so delegated.
Warning: options can only be delegated to a component if it supports the "configure" and "cget" instance methods.
Note that an option cannot be both locally defined and delegated.
expose comp
expose comp as method
This differs from delegation in that it maps an instance method to the component itself instead of to one of the component's methods.
Calling the new instance method is just like calling the component, except that if the method is called with no arguments it returns the component.
snit::widget name definition
snit::type
. A snit::widget
differs from a snit::type
in these ways:
hull
, which is normally
a Tk frame widget. Other widgets created as part of the megawidget
will be created within this frame.
The hull component is initially created with the
requested widget name; then Snit does some magic,
renaming the hull component and installing its own
instance command in its place. The hull component's new
name is saved in an instance variable called
hull
.
snit::widget
definition can include any of
statements allowed in a snit::type
definition,
and may also include these as well:
widgetclass name
snit::widget
's widget class
to name, overriding the default. See
the Snit FAQ list for more
information about the Tk option database.
hulltype type
snit::widget
's hull. The type may
be frame
(the default) or
toplevel
.
snit::widgetadaptor name definition
snit::widget
in that the
instance's hull
component is not created
automatically, but is created in the constructor and installed
using the installhull
command. Once the hull is
installed, its instance command is renamed and replaced as with
normal snit::widgets
. The original command is
again accessible in the instance variable hull
.
Note that in general it is not possible to change the
widget class of a
snit::widgetadaptor
's hull widget. See
the Snit FAQ list for more information
on how snit::widgetadaptors
interact with the Tk option database.
snit::typemethod type
name arglist body
snit::method type
name arglist body
$type typemethod args....
$type create name ?option value ...?
For snit::types
, if name is not a fully-qualified
command name, it is assumed to be a name in the namespace in
which the call to snit::type
appears. The method returns the
fully-qualified instance name.
For snit::widgets
and
snit::widgetadaptors
, name must be a valid
widget name; the method returns the widget name.
So long as name does not conflict with any defined type method name, the "create" keyword may be omitted.
If the name includes the string "%AUTO%", it will be replaced with the string "$type$counter" where "$type" is the type name and "$counter" is a counter that increments each time "%AUTO%" is used for this type.
By default, any arguments following the name will be a list of option names and their values; however, a type's constructor can specify a different argument list.
$type info typevars ?pattern?
If pattern is given, it's used as a string
match
pattern; only names which match the pattern are
returned.
$type info instances ?pattern?
snit::type
s, it
will be a list of fully-qualified instance names; for
snit::widgets, it will be a list of Tk widget names.
If pattern is given, it's used as a string
match
pattern; only names which match the pattern are
returned.
$type destroy
snit::types
; snit::widgets
use the Tk
destroy
command instead.
create
type method creates
objects of the type; each object has a unique name which is also a
Tcl command. This command is used to access the object's methods and
data, and has this form:
$object method args...
$object configure ?option? ?value? ...
Warning: this information will be available for delegated options only if the component to which they are delegated has a "configure" method that returns this same kind of information.
$object configurelist optionlist
configure
, but takes
one argument, a list of options and
their values. It's mostly useful in the type constructor, but
can be used anywhere.
$object cget option
$object destroy
destructor
and
freeing all related memory.
Note: The "destroy" method isn't defined for
snit::widget
or
snit::widgetadaptor
objects; instances of these are destroyed by calling the Tk
"destroy" command, just as a normal widget is.
$object info type
$object info vars ?pattern?
If pattern is given, it's used as a string
match
pattern; only names which match the pattern are
returned.
$object info typevars ?pattern?
If pattern is given, it's used as a string
match
pattern; only names which match the pattern are
returned.
$object info options ?pattern?
If pattern is given, it's used as a string
match
pattern; only names which match the pattern are
returned.
Note that the return value might be different for different instances of the same type, if component object types can vary from one instance to another.
varname name
typevarname name
codename name
from argvName option ?defvalue?
from
command plucks an
option value from a list of options and their values, such as
is passed into a type's
constructor
.
argvName must be the name of a variable containing such
a list; option is the name of the specific option.
from
looks for option in the option list. If
it is found, it and its value are removed from the list, and
the value is returned. If option doesn't appear in the
list, then the defvalue is returned. If the option is a
normal (undelegated) option, and defvalue is not
specified, then the option's default value as specified in the
type definition will be returned instead.
variable name
variable
command, if
desired; or, instance code can use the
variable
command to declare instance variables that don't appear in the
type definition.It's generally best to define all instance variables in the type definition, and omit declaring them in methods and so forth.
Note that this is not the same as the standard Tcl "::variable" command.
typevariable name
typevariable
to
declare type variables explicitly, if
desired; or, they can use typevariable
to declare type variables that don't appear in the type definition.It's generally best to declare all type variables in the type definition, and omit declaring them in methods, type methods, and so forth.
install compName using
objType objName args...
If this is a snit::type
, then the following two
commands are equivalent:
install myComp using myObjType $self.myComp options... set myComp [myObjType $self.myComp options...]Note that whichever method is used, compName must still be declared in the type definition using variable, or must be referenced in at least one
delegate
statement.
If this is a snit::widget
or
snit::widgetadaptor
, and if options have been
delegated to component compName, then those options
will receive default values from the Tk option database. Note
that it doesn't matter whether the component to be installed is
a widget or not. See the Snit FAQ list
for more information about the Tk
Option Database.
installhull using widgetType args...
installhull name
snit::widgetadaptor
must
create a widget to be the object's hull component; the widget is
installed as the hull component using this command.
This command has two forms. The first form specifies the
widgetType and the args... (that is, the
hardcoded option list) to use in creating the hull. Given
this form, installhull
creates the hull widget,
and initializes any options delegated to the hull from the Tk
option database.
In the second form, the hull widget has already been created;
note that its name must be "$win". In this case, the Tk
option database is not queried for any options
delegated to the hull. See the Snit FAQ
list for more information about
snit::widgetadaptors
and the Tk option database.
The longer form is preferred; however, the shorter form allows the programmer to adapt a widget created elsewhere, which is sometimes useful. For example, it can be used to adapt a "page" widget created by a BWidgets tabbed notebook or pages manager widget.
mymethod name ?args...?
mymethod
command is used for formatting
callback commands to be passed to other objects. It returns a
command that when called will invoke method name with
the specified arguments, plus of course any arguments added by
the caller. In other words, both of the following commands
will cause my object's dosomething
method to be
called when $button
is pressed:
$button configure -command [list $self dosomething myargument] $button configure -command [mymethod dosomething myargument]The chief distinction between the two is that the latter form will not break if the creator of my object renames its object command.
dog
object
has a tail
object:
snit::type dog { variable mytail constructor {args} { set mytail [tail %AUTO% -partof $self] $self configurelist $args } method wag {} { $mytail wag } } snit::type tail { option -length 5 option -partof method wag {} { return "Wag, wag, wag."} }Because the
tail
object's name is stored in an instance
variable, it's easily accessible in any method.
As of Snit 0.84, the install
command provides an alternate way to create and install the
component:
snit::type dog { variable mytail constructor {args} { install mytail using tail %AUTO% -partof $self $self configurelist $args } method wag {} { $mytail wag } }For
snit::types
, the two methods are equivalent; for
snit::widgets
and snit::widgetadaptors
,
the "install" command properly initializes delegated options by
querying the Tk option database. See the Snit FAQ
list for more information.
In the above examples, the dog
object's "wag" method
simply calls the tail
component's "wag" method. In OO
circles, this is called delegation. Snit provides an easier way to do
this, as shown:
snit::type dog { delegate method wag to mytail constructor {args} { set mytail [tail %AUTO% -partof $self] $self configurelist $args } }The
delegate
statement in the type definition implicitly
defines the instance variable mytail
to hold the
component's name; it also defines the dog
object's "wag"
method, delegating it to the tail
component.If desired, all otherwise unknown methods can be delegated to a specific component:
snit::type dog { delegate method * to mytail constructor {args} { set mytail [tail %AUTO% -partof $self] $self configurelist $args } method bark { return "Bark, bark, bark!" } }In this case, a
dog
object will handle its own
"bark" method; but "wag" will be passed along to mytail
.
Any other method, being recognized by neither dog
nor
tail
, will simply raise an error.Option delegation is similar to method delegation, except for the interactions with the Tk option database; this is described in the Snit FAQ list.
So that was one thing--tedium is a powerful motivator. But the other thing I noticed is that I wasn't using inheritance at all, and I wasn't missing it. Instead, I was using delegation: objects that created other objects and delegated methods to them.
And I said to myself, "This is getting tedious...there has got to be a better way." And one afternoon, on a whim, I started working on Snit, an object system that works the way Tcl works. Snit doesn't support inheritance, but it's great at delegation, and it makes creating megawidgets easy.
I should add, I'm not particularly down on Incr Tcl. But "Snit's Not Incr Tcl" occurred to me while I was casting about for a name, and I guess there was a certainly inevitability about it.
If you have any comments or suggestions (or bug reports!) don't hesitate to send me e-mail at<EMAIL_ADDRESS>In addition, there's now a Snit mailing list; you can find out more about it at the Snit home page, http://www.wjduquette.com/snit. Finally, Snit is now part of tcllib, the standard Tcl library; you can also add bug reports to the tcllib bug database at SourceForge.
Copyright © 2004, by William H. Duquette. All rights reserved.


Digital and social analytics are important for any business to be aware of. I have been taking on projects for companies which includes analyzing their social media sites, their branding, and the efficiency of their external and internal content.
Click on the following for a PDF version of my reports for Norwich Public Utilities, a municipality in Southeastern Connecticut.


Menu
In fact, chicken soup is good for soothing both cold and flu symptoms. The hot soup helps break up the congestion associated with both colds and the flu. The salt in the soup and its warmth can soothe a sore throat.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Back to Top
Beef is the culinary name for meat from cattle, particularly skeletal muscle. Humans have been eating beef since prehistoric times. Beef is a source of high-quality protein and nutrientsLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Back to Top
Sushi is traditionally made with medium-grain white rice, though it can be prepared with brown rice. It is often prepared with seafood, such as calamari, eel, or imitation crab meat. Many others are vegetarian.Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. Back to Top


议价中
{foreach $collects as $collect}
{php} $img = $collect->good->goods_imgs; $img = explode(',',$img); {/php}
{$collect->good->goods_name}
查看
{/foreach}
{include file="common/foot"}


Nirav Sen
About
Portfolio
Contact
Portfolio
Hangman
RPG Game
Trivia Game
Rutgers Info Widget
Rock Paper Scissors


[gecode-users] Large Neighbourhood Search - Destroying the solution
Christian Schulte
cschulte at kth.se
Thu Jun 14 15:45:51 CEST 2012
Hi Joan,
Your decision is absolutely right: the idea to remove (or undo) parts of a
solution is not feasible (this is a very difficult problem as would have to
undo all propagation, search, etc). Starting from scratch is the right idea.
There you have two possibilities: either you re-create the model completely
or you try to keep one master copy of your model and then creates clones
from it (I guess you have read how to implement search in Gecode). The
latter one is more efficient. You can also mix both approaches in that you
keep part of your model that is common to all searches in LNS as a master
space and for each new try you create a clone of the master space and then
add those constraints to it (by some member function you can implement) that
are specific to the current try.
Does this make sense?
Christian
--
Christian Schulte, www.ict.kth.se/~cschulte/
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Joan Sala Reixach
Sent: Thursday, June 14, 2012 2:01 PM
To: users at gecode.org
Subject: [gecode-users] Large Neighbourhood Search - Destroying the solution
Hello,
I've been trying to implement this LNS engine. The idea is that once a
solution is found, some part of this solution is destroyed to be re-inserted
in some different way. I don't really understand how this can be done
though. Currently I build a completely new model constraining the variables
that are not destroyed to take the values they had in the previous solution.
Is there some better way to "unassign" a variable though?
Many thanks,
Joan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20120614/022c9e10/attachment.html>
More information about the users
mailing list