By-election announced for the Petone Community Board
by Hutt City CouncilHUTT CITY COUNCIL MEDIA RELEASE
18 November 2019
A by-election is to be held to fill a vacancy on the Petone Community Board following the election of a former member to Hutt City Council last month. An election was not required for the Petone Community Board at the triennial elections as there were only a sufficient number of candidates to fill the available positions.
The first step in the by-election is that nominations for the vacancy are called for. Nominations open on Monday 25 November 2019 and close at noon on Monday 23 December 2019. Nominations for the position must be made on the official nomination paper available online at huttcity.govt.nz/petone-by-election or at the Hutt City Council Administration building at 30 Laings Road, Lower Hutt.
If there is more than one nomination for the vacancy an election will be required and voting would open on Monday 27 January 2020 and close at noon on Tuesday 18 February 2020.
Candidates for the Petone Community Board vacancy may submit a candidate profile statement and recent photograph for sending out with voting documents to electors if an election is required. The requirements for profile statements and photos are set out in the candidate information booklet.
Electoral Roll
A Preliminary Electoral Roll for the by-election can be inspected during opening hours from Monday 25 November at the Hutt City Council Administration building, 30 Laings Rd, Lower Hutt or the Petone Community Library, 7 Britannia Street, Petone.
Electors may enrol or amend their enrolment details on the Residential Electoral Roll by:
• completing an enrolment form available at Post Shops
• calling 0800 ENROL NOW (0800 36 76 56)
• visiting the elections website.
Applications for registration as a ratepayer elector are to be made on the non-resident ratepayer elector enrolment form available from the Council website. Updates to the Preliminary Electoral Roll close on 23 December 2019.
Ends


Today, during the ThinkLaunch session Wireframe DEUX, We learned quite a bit of vocabulary! Here are my top 10 terms I didn't know before:
Like any language, HTML comes with a set of rules. These rules are relatively simple. It comes down to defining boundaries, to know where something starts and where something ends.
HTML SyntaxHTML tags are the hidden keywords within a web page that define how the browser must format and display the content. Most tags must have two parts, an opening and a closing part. For example,
< html > is the opening tag and < / html > is the closing tag.Elements Vs. Tags
An HTML element is an individual component of an HTML document or web page, once this has been parsed into the Document Object Model. HTML is composed of a tree of HTML nodes, such as text nodes. Each node can have HTML attributes specified.
Article Elements, Tags and AttributesThe class attribute specifies one or more classnames for an element. The class attribute is mostly used to point to a class in a style sheet. However, it can also be used by a JavaScript (via the HTML DOM) to make changes to HTML elements with a specified class.
Class HTML AttributeThe id attribute specifies a unique id for an HTML element (the value must be unique within the HTML document). The id attribute is most used to point to a style in a style sheet, and by JavaScript (via the HTML DOM) to manipulate the element with the specific id. Used for Definition and Usage.
the global "id" AttributeAttributes provide additional information about HTML elements. using a name="value" format.
HTML AttributesCSS selectors are used to "find" (or select) HTML elements based on their element name, id, class, attribute, and more.
 Think of the phrase "taking up the whole block" and envision someone greedily taking up the whole street, no one else can be there.
Block and inline ElementsA Client is the "user side" of the connection to the work happening on the internet.
Link To more infoA server is a computer or computer program that manages access to a centralized resource or service in a network.
Link to more info


Greetings! {{ user.passuser.name }},
Only in case of emergency, you can use this tool to get permission from the concerned police department by maintaining the hygiene rules in the lockdown.
Greetings! Only in case of emergency, you can use this tool to get permission from the concerned police department by maintaining the hygiene rules in the lockdown.


I have an old Eeepc running emoncms v5 with an arduino on USB wired up to an AC adapter and 3 CT's in my breaker panel. The eeepc is running Ubuntu 12 off a SD card, as it doesn't have enough space on it's internal drive.
This ran well for a year or so, but recently the pylink.py script keeps crashing. I updated it as per this link:
http://openenergymonitor.org/emon/node/2504
but now I'm noticing that there's a big delay in the feed - roughly 4 or 5 minutes from when I turn some loads on and off, and when I see the result in the realtime graph. What's really strange is that the terminal window from which I ran pylink.py is also delayed - I see the raw data coming in once every second or so, but it's also very delayed. Can't quite figure out why. Unplugging the arduino causes the script to crash immediately, but data comes in very late.
Anyone have similar issues in the past?
It might be time to turf the entire system and switch to a PI; or would it be worth trying to upgrade to emoncms V7?
Wade
Re: Anyone else had problems with pylink.py delaying data transmission?
Slowed the data rate, and updated to the latest emoncms with timestore; pylink.py is now keeping up more or less; but the updates are still very erratic. The arduino sends data every two seconds, but the pylink.py console stalls for say 10 seconds, then you see 5 updates all at once. Probalby something weird with my sd card Linux install on the old computer.
I'll try the OEM Gateway code next - sounds like that would be better than pylink.py.
Wade


@JvmStatic fun endCustomerSession(): Unit
End the singleton instance of a CustomerSession. Calls to getInstance will throw an IllegalStateException after this call, until the user calls initCustomerSession again.


Our Story
Our Stores
Our Products
Style Guide
Store Location:
Minimum Customers per Hour:
Maximum Customers per Hour:
Average Cookie per Sale:


--- layout: post title: 'Benchmarks: acts-as-taggable-on vs PostgreSQL Arrays' date: 2014-02-19 12:40:54.000000000 -06:00 categories: - Rails tags: - benchmark - performance - postgres - rails - ruby - sourcecode status: publish type: post published: true author: Adam N England --- While looking at performance optimizations for a rails project, I noticed these lines in my debug console:
{% highlight bash %} ActsAsTaggableOn::Tag Load (0.5ms) SELECT "tags".* FROM "tags" INNER JOIN "taggings" ON "tags"."id" = "taggings"."tag_id" WHERE "taggings"."taggable_id" = $1 AND "taggings"."taggable_type" = $2 AND (taggings.context = ('tags')) [["taggable_id", 103], ["taggable_type", "Prediction"]] {% endhighlight %}This makes sense, my project is using acts-as-taggable-on to tag models. However, our tagging needs are quite simple, and since we are using postgres, I wondered whether using postgres array types might be more efficient. To get a feel for the basic concept, see 41 studio's writeup.
However, before going through all the trouble, I'd like to see if the performance gains are appreciable or not. Using rails benchmark functionality, we can do this pretty easily.
Full source code is available at https://github.com/adamnengland/rails-tag-bench, or follow along for the step by step for the full experience.
Getting Started
You'll need
Create a new Rails project
{% highlight bash %}
rails new rails-tag-bench
cd rails-tag-bench
{% endhighlight %}
Open gemfile and add
gem 'pg', '0.17.1'
(I had to do this first: gem install pg -- --with-pg-config=/Applications/Postgres93.app/Contents/MacOS/bin/pg_config)
Then bundle install to get your dependencies.
Replace config/database.yml with
{% highlight ruby linenos %}
development:
adapter: postgresql
encoding: unicode
database: rails_tag_bench
pool: 5
username: rails_tag_bench
password:
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
{% endhighlight %}
We'll need a database user, so open up postgres and issue: {% highlight bash %} create user rails_tag_bench with SUPERUSER; {% endhighlight %}
Okay, lets create the database
{% highlight bash %} rake db:create {% endhighlight %}
In postgres type \c rails_tag_bench to confirm that the database is set up.
To do this, we'll also need acts-as-taggable-on, so update the gemfile
gem 'acts-as-taggable-on', '2.4.1'
and bundle install
{% highlight bash %} rails g acts_as_taggable_on:migration rake db:migrate {% endhighlight %}
Lets start with the taggable version:
{% highlight bash %}
rails g model ArticleTaggable title:string body:text
rake db:migrate
{% endhighlight %}
open the created article_taggable.rb and edit
{% highlight ruby %}
class ArticleTaggable < ActiveRecord::Base
acts_as_taggable
end
{% endhighlight %}
Lets setup the benchmark:
{% highlight bash %}
rails g task bench
{% endhighlight %}
Fill out the body like so
{% highlight ruby linenos %}
require 'benchmark'
namespace :bench do
task writes: :environment do
Benchmark.bmbm do |x|
x.report("Benchmark 1") do
1_000.times do
ArticleTaggable.create(:title => ('a'..'z').to_a.shuffle[0,8].join, :body => ('a'..'z').to_a.shuffle[0,100].join, :tag_list =>; ['TAG1'])
end
end
end
end
task reads: :environment do
Benchmark.bmbm do |x|
x.report("Benchmark 1") do
1_000.times do
ArticleTaggable.includes(:tags).find_by_id(Random.new.rand(1000..2000));
end
end
end
end
end
{% endhighlight %}
You can run the benchmarks like so:
{% highlight bash %} rake db:reset rake bench:writes rake bench:reads {% endhighlight %}
Which should give you output like this:
{% highlight bash %} ➜ rails-tag-bench rake bench:writes Rehearsal ----------------------------------------------- Benchmark 1 8.620000 0.340000 8.960000 ( 10.716852) -------------------------------------- total: 8.960000sec user system total real Benchmark 1 8.540000 0.320000 8.860000 ( 10.543746) ➜ rails-tag-bench rake bench:reads Rehearsal ----------------------------------------------- Benchmark 1 2.930000 0.160000 3.090000 ( 3.906484) -------------------------------------- total: 3.090000sec user system total real Benchmark 1 2.880000 0.150000 3.030000 ( 3.825437) {% endhighlight %}So, on my macbook air, we wrote 1000 records in 10.5437 seconds, and read 1000 records in 3.8254 seconds with acts-as-taggable-on
Now, lets implement the example using postgres arrays, and see where we land
{% highlight bash %} rails g model ArticlePa title:string body:text tags:string {% endhighlight %}
Edit the new migration as follows
{% highlight ruby linenos %}
class CreateArticlePas < ActiveRecord::Migration
def change
create_table :article_pas do |t|
t.string :title
t.text :body
t.string :tags, array: true, default: []
t.timestamps
end
end
end
{% endhighlight %}
{% highlight bash %}
rake db:migrate
{% endhighlight %}
update our benchmarking code:
{% highlight ruby linenos %} require 'benchmark' namespace :bench do task writes: :environment do Benchmark.bmbm do |x| x.report("Using Taggable") do 1_000.times do ArticleTaggable.create(:title => ('a'..'z').to_a.shuffle[0,8].join, :body => ('a'..'z').to_a.shuffle[0,100].join, :tag_list => ['TAG1']) end end x.report("Using Postgres Arrays") do 1_000.times do ArticlePa.create(:title => ('a'..'z').to_a.shuffle[0,8].join, :body => ('a'..'z').to_a.shuffle[0,100].join, :tags => ['TAG1']) end end end end task reads: :environment do Benchmark.bmbm do |x| x.report("Using Taggable") do 1_000.times do ArticleTaggable.includes(:tags).find_by_id(Random.new.rand(1000..2000)); end end x.report("Using Postgres Arrays") do 1_000.times do ArticlePa.find_by_id(Random.new.rand(1000..2000)); end end end end end {% endhighlight %} {% highlight bash %} rake db:reset rake bench:writes rake bench:reads {% endhighlight %}The Results {% highlight bash %} ➜ rails-tag-bench rake bench:writes Rehearsal --------------------------------------------------------- Using Taggable 8.520000 0.330000 8.850000 ( 10.532700) Using Postgres Arrays 1.460000 0.110000 1.570000 ( 2.082705) ----------------------------------------------- total: 10.420000sec
user system total real Using Taggable 8.340000 0.310000 8.650000 ( 10.221277) Using Postgres Arrays 1.410000 0.110000 1.520000 ( 2.012559) ➜ rails-tag-bench rake bench:reads Rehearsal --------------------------------------------------------- Using Taggable 2.920000 0.160000 3.080000 ( 3.898911) Using Postgres Arrays 0.420000 0.060000 0.480000 ( 0.700684) ------------------------------------------------ total: 3.560000sec user system total real Using Taggable 2.870000 0.140000 3.010000 ( 3.805598) Using Postgres Arrays 0.400000 0.060000 0.460000 ( 0.677917) {% endhighlight %}For my money, the postgres arrays appear to be much faster, which comes as little surprise. By cutting out all the additional joins, we greatly reduce the query time.
However, it is important to note that this isn't an apples-to-apples comparison. Acts-As-Taggable-On provides a lot of functionality that simple arrays do not provide. More importantly, this locks you into the postgres database, which may or may not be a problem for you. However, if you really have simplistic tag needs, the performance improvements might be worth it.


If the finalize() is implemented, its last action should be to call super.finalize.
This rule is deprecated, use {rule:squid:ObjectFinalizeOverridenCallsSuperFinalizeCheck} instead.


Contacts of
Our Group Members| Name | Student No. | Email Adress | ||
|---|---|---|---|---|
| Xinxia Wang (Ashley) |
1730026112 |<EMAIL_ADDRESS>| The leader of our group. Work on C++ topic and video shooting. |
|
| Rui SU (Dahlia) |
1730026094 |<EMAIL_ADDRESS>| Work on C topic and video processing. | |
| Huitong SU (Wendy) |
173002609 |<EMAIL_ADDRESS>| Work on JAVA topic and video shooting. | |
| Dongna Chen (Linna) |
1730026004 |<EMAIL_ADDRESS>| Work on homepage and Python topic. |


Abulita's Food Truck started with family. Emilia & Julieta moved to the US with thier family about 10 years ago. Helping in thier abuleita's garden, it grew so large they couldn't give all the produce away. Abulita encouraged her granddaughters to start one of the first food trucks in Elizabeth City and it became a huge success very quickly.
They call thier grandmother "Abulita" so naturally they named the food truck after her. That's where the name comes from. Five years later, business is better than ever.


---
title: Portal home
layout: default
htmlclasses: bg-white
bodyclasses: bg-white-warm-3 lh-body m0 p0 fw400
---
{% include
portal--header.html
%}
People
- {% include wireframe--tk.html count=9
%}
- {% include wireframe--tk.html count=5
%}
- {% include wireframe--tk.html count=13
%}
Places
- {% include wireframe--tk.html count=5
%}
- {% include wireframe--tk.html count=7
%}
- {% include wireframe--tk.html count=4
%}
- {% include wireframe--tk.html count=9
%}
- {% include wireframe--tk.html count=15
%}


For My Kerala
I Can Help
I Need Help
Let's Rebuild Kerala Together
View Requests
Register as Volunteer
Login
Download App
Feedback


Door Key
Note: Perform an update as described here before attempting this homework (thanks).
Since minecraft has no keys, some people have used a tripwire-hook as it resembles a key in appearance:
We will make a special tripwire-hook and give it a custom name to allow us to lock doors.
- Create a recipe for a tripwire-hook with a custom name: "OAK_KEY"
- When a player opens a door, and the OAK_KEY is not in their hand, cancel the event
- Only cancel the event if the door is not already open (so that can close the door without a key)
Recipe for special OAK_KEY
Test out your code by seeing if you can craft an "OAK_KEY"
Create a player mouse click listener event to check for "OAK_KEY"
You can test your code by trying to open an oak door when the key is not in your hand. The door should remain closed.
Add a check if the door is not open already
Add another if statement to check if the door is open, before cancelling the event
You can use this complete diagram as a reference:
You can test your code by trying to close the door when the key is NOT in your hand. It should close, but not open.
Minecraft Issue: Spawn Protection
The is something called spawn protection which inhibits the opening of doors when they are within 16 blocks of the spawn point.
If you are having trouble opening a door it could also be due to this feature
To disable spawn-protection, edit the server.properties file and change spawn-protection=16 to spawn-protection=0


Software Developmet Engineer Nov 2017 to present
I am a part of an agile team that maintains the Java REST API EAN provides to its clients. I also help with porting the application to AWS from traditional servers.
Software Developer June 2017 to Nov 2017
GlobalNOC provides network and infrastructure support for clients all across the US. During my time here, my main job was to program in perl to aid in maintaining client and network device information in the organization's Core Data Services application. I was also responsible for maintaining the stabilility of CentOS servers that are configured with Puppet with the help of monitoring tools and automation scripts.
Lead Associate Instructor Jan 2016 to Dec 2016
As a Lead Associate Instructor for the Python programming course, I was responsible for providing programming guidance to the students in the class, carrying out lab sessions, grading homework and practicals and handling academic misconduct.
Application Developer Jan 2012 to Jul 2015
As part of the credit card authorization team for the client American Express, I was responsible for developing and delivering defect free, optimized Mainframes applications from scratch. I was involved in creating low level design documents, formulating unit test cases and documenting them, coding all the required components and finally unit testing the application before deployment.
I am a software developer with a master's degree in computer science. I have strong affinity towards software & web application development and data analysis. Checkout my resume for my skillset.
With more than 4 years of exposure to various phases of software development, I consider myself pretty good at analyzing problems and delivering quality solutions. I particularly enjoy coding programs that tend to test my logic. Some people might consider me fastidious with comments and indentation.