Dear all,
First of all - REALLY GREAT HARD & SOFTWARE as well as support here ! I really appreciate this !
Now for my problem:
I'd like to record multiple power channels (9+) in our house with a short period (~1/second) each. I am currently using 1xEmonTxV3 and 4x EmonTH for temperature and humidity with a 20s interval via RF433.
Time by time, the RF signals seem to overlap (in time) resulting in a "last updated" value of much longer then 10s/20s. Since I'd like to switch to 3x EmonTxV3 with a 1s interval each I'm not sure whether this works out.
Is there any chance to connect more then 1 TxV3 via a serial cable directly to the raspberry ? I am a novice to the RaspberryPi - so please forgive me the question - is there more then one serial interface on the Pi ?
Any idea on how to solve this in a totally different way are welcome as well.
Best regards - Christian
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
Just one short addition here - just after writing the text above I did a short search for Raspberry UART count and found someone's idea of using USB-to-UART(TTL) converters which would give additional serial inputs.
Would it be possible for emonHub to receive data from multiple serial interfacers ?
Could emonHub add additional infos to the serial stream - like a node id ?
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
you can indeed use usb<->serial adapters, I frequently hook up nodes via a FTDI programmer. In emonhub you would need to define the additional interfacers in emonhub.conf probably using /dev/ttyUSB0 and /dev/ttyUSB1 in place of the /dev/ttyAMA0,
I would recommend setting them up identically in emonhub.conf and define the node id's in the emontx sketches as the way Raspbian allocates the device ref's (ttyUSB0 and ttyUSB1) is not absolutely guaranteed to be the same at each reboot, they are allocated in order as the devices are discovered but if they are configured to be identical and the node id is part of the incoming payload it doesn't matter.
If you search the forum for "serial-direct" you will see it's quite common and quite easy to implement a single emonTx, just edit the sketch to output a node id and payload in the "nodeid var1 var2 var3..." format and edit emonhub.conf.
Paul .
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
That sounds great - thanks for the help.
I will have a look at the serial-direct discussions.
I saw a Arduino script for "serial-direct" - is it possible to use the discrete sample sketch with RF and export the data to the serial port as well ?
And is it possible to decrease the interval between measurements and serial send ?
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
I would of thought this setup would work with any of the OEM sketches, most of them already have some foem of serial output for debugging. The existing serial prints just need to be replaced with the "OEM formatted payload" in the form nodeid val1 val2 val3....etc" so yes you should be able to pas the same dat over serial and by rf from the same sketch.
Shortening the interval between serial prints is very do'able depending on what other stuff is happening you could probably do 1 sec, however if you are sending rf packets in tandem that could cause traffic issues on the rf network so you need to only go as fast as the rf will let you or add some code to increase the frequency of the serial outputs only which will involve some totalling and/or averaging so not so straight forward.
Paul
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
The idea behind was to screw off the RF Antennae from 3 TxV3 and give them an interval of 1/s or below.
I'd realy like to do some "profiling" on the current lines to decide between "devices" beeing switched on and of.
The idea was to change the Interval maybe by the dip switches (instead of US, ...) and to omit things like one wire Temp sensors or pulse counting (since I don't need it - maybe pulse....).
I guess even RF sending could be turned on or of by dip switches.
Which interval will be the smallest possible (with serial transmit only) ?
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
and a little off topic - regarding calibration....
Do I need to calibrate the readings for the TxV3 when ordered with a standard AC/AC Adapter ?
And when YES, what do I need to calibrate ?
Especially - Do I need to calibrate the internal reference voltage or not ?
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
Do I need to calibrate the readings for the TxV3 when ordered with a standard AC/AC Adapter ?
Most likely yes, to compensate for component variations.
And when YES, what do I need to calibrate ?
Voltage, Current and Phase Angle.
Especially - Do I need to calibrate the internal reference voltage or not ?
No. It doesn't matter what the Vref is so long as it's stable (actually, I think most OEM sketches use Vcc as the Vref). Any component variations in Vref will get sorted out when you calibrate the above items.
The only exception to that is when you're running off batteries. ReadVcc() effectively uses one of the internal bandgap voltages to measure the battery voltage. If you want that battery measurement to be accurate then you need to know your actual bandap voltage. Since you're running of mains, you can ignore it.
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
I would disable the rf in code rather than unscrew the antenna to reduce the workload (and possible seepage) I do not know what speeds you could manage as there are too many variables (for me anyways) things to bear in mind is the prints can slow down the code so may impact readings. If the print loop is independent of the calculations you may end up sending the same results multiple times in between calc cycles.
A RPi 2 B would be better suited to this than a B or B+ and it will probally be best to throttle the uploads to emoncms. If you set a send interval of 10secs for instance emonhub will collate all the data and send it in one go every 10 seconds rather than bombard the server. This is an absolute must if sending to emoncms.org, you can of course send as frequently as you like to a local server but it won't improve anything except responsiveness of the widgets as the same number of data points are passed just in batches rather than singly.
It may also be a good idea to use a localhost url to keep the traffic off the LAN or going via a DNS etc.
It will be interesting to hear back what speeds you obtain, I know on occasions when I have omited a delay data frames can successfully accumulate much faster than I could count but I have never actually checked the accuracy or validity of them. maybe someone could theorize an estimate??
Paul
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
Maybe I misunderstood the whole process of measurement within the script.
As far as I understood, the sketch does a discrete sampling of same values (Voltage from AC/AC, Power from CT1..4). After having recorded these samples (how long is the sample period ?) the RMS values are transmitted to a receiver (emonHub via RF or Serial).
What happens now ?
From the sketch code I would guess, emonTxV3 goes to sleep for 10 seconds and start again with sampling and sending.
So from my point of view, all values (power, current) in between these 10s are lost and not recorded. High loads within this period will not be recorded.
What I am actually trying to do is - put 3x emonTxV3 into the mains/fuse box in the building. Connect each of them via serial to one Pi B+ or Pi2 (doesn't matter for me) and configure the Pi's emonHub to send it to a local 2nd "Pi 2" which has a SSD attached and records the data inside its emonCMS with a MariaDB,
The emonCMS / MariaDB is already working now for RF measurements each 10s from my existing emonTxV3.
From my stomache feeling a few Bytes of data each second shouldn't be a problem - neighther for a Pi B+ nor for the LAN. But I might be wrong on this.
I am not using emonCMS.org online at all - just local recording with a fixed IP.
What I didn't understand was this
I only found the setting for altering the send interval inside the sketch file for the TxV3. I did not see any such setting for emonhub at all.
Does emonHub collate the data and sends 10packets at once after 10s ?
Thanks for all the replies ! It was realy realy helpful so for for me as a novice.
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
I have been a bit hazy on what your end goal was so answering direct questions and giving generalized info. When you mention "discreet sampling sketches" and also "sending serial data every second" I didn't imagine you meant both together I thought you where exploring avenues.
There would be very little point in using the discreet sketch, you mention "profiling" and data at 1s intervals, the discreet sketch's sample period is tiny compared to the update interval and even bringing the interval down to 1s you are only getting part of the picture. You should use a continuous sampling sketch for there to be any point in a 1s interval.
The update interval defined in the sketch will set how often the data is forwarded to emonHub (by serial or rfm) when emonhub receives each packet it places it in a buffer and then independently the buffer is flushed regularly to forward the data to emoncms. With a 10s update interval the buffer operation is transparent unless there is a network issue and the data backs up and gets forwarded when the network comes up.
When sending >packets per second it would be easier going on all involved if there was 1 update of 30+ frames to emoncms(s) rather than 30+ attempted connections. It isn't usually needed but in emonhub.conf in the emoncms interfacers [[[runtimesettings]]] you can define interval = 10 which will limit the update frequency and buffer all the packets for bulk upload, each with it's own timestamp so emoncms still gets the same granularity of data but in manageable chunks every 10s.
The comment about localhost was aimed at not extending the data's journey unnecessarily thus increase speed and prevent outside influence preventing delivery as 3+ packets per second will shorten the time it takes for the buffers to fill up. There just seemed little point in sending data to www.mydomain.com -> mydns.com -> local router -> back to the same device if speed was the goal, you will just use the LAN ip for your 2nd Pi in your case and no I wouldn't expect the amount of data to be an issue unless the network stalls. With the default buffer size of 1000 it would only take around 5 mins to overflow that at 3+ frames per sec,
Paul
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
Is there an example of a continuous sampling sketch available ?
As I pointed out - I am really new to all of this - I'm not sure if I can create a suitable sketch from scratch.
As for the discrete sketch - I can easily choose 1s intervall - since the sampling time is much short - did I get that right ? How would I enlarge the sampling time (to let's say 3/4 of a second) ?
Just for the first tests without caring about continuous measurement.
What is the backdrop (regarding power consumption) with continuous measurement vs. discrete sampling ?
Thanks for the help again !
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
https://github.com/openenergymonitor/emonTxFirmware/blob/master/emonTxV3/RFM/emonTxV3.4/emonTxV3_4_continuous_kwhtotals/emonTxV3_4_continuous_kwhtotals.ino
I don't no for sure but I would expect any "serial direct" examples you have found to be continuous sampling as even if you don't have an AC adapter, the Pi would be used to power a directly connected emonTx so Battery life is not a concern. The discreet sampling's power consumption is only good to prolong battery life, since when using the AC adapter to power the Pi running a continuous monitoring sketch, imposes a 20mA current limit, I think we can assume the current drawn is of negligible consequence compared to running the 2 Pi's. In fact not sending the data by rf will possibly offset any increase due to not sleeping
I see no benefit of rewriting a sketch designed for a scenario you are not using, to almost fit the gap that is already catered for. I'm still not entirely sure of your goal. but if you just want 3 emonTx's reporting every 1s then 3 x continuous sampling sketches with a 1s interval is by far your best bet.
Paul
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
Thanks a lot - that helped me out.
Next step is to order the missing 2 TxV3s and get running :-)
I will update this thread next week when I've got some results.
Re: Connecting multiple (3 at least) emonTxV3 to Raspberry Pi via serial...
Paul wrote "I would disable the rf in code rather than unscrew the antenna to reduce the workload (and possible seepage)"
You should definitely do that, otherwise you risk damage to the RFM69CW radio module if it operates at full power without an antenna. (The data sheet specifies "Maximum VSWR at antenna port at +13dBm - 3:1")


The Assert Task |
Antelope includes a special Ant task for adding an assertion capability to Ant projects. This task works in a manner very similar to the Java 'assert' keyword, and provides a limited "design by contract" facility to Ant. This is very useful for testing build scripts prior to putting them into production.
The Assert task verifies that a given property has a given value and throws a BuildException if the property value is not as expected or the property does not exist.
Also like Java's 'assert' keyword, the Assert task must be 'turned on' using the property "ant.enable.asserts". If not set, or is set to false, the Assert task works exactly like the Sequential task.
This task can hold other tasks including Assert.
To use this task in your build files, include a task definition like this:
<taskdef name="assert" classname="ise.antelope.common.Assert"/> <property name="ant.enable.asserts" value="true"/>
Attributes:
| Attribute | Description | Default | Required |
| name | The name of the property to test for. | none | Yes |
| exists | Test for existence or non-existence of the property. | True | No |
| value | The value to test for, implies 'exists=true'. If the value in the project is different than this value, a BuildException will be thrown and the build will stop. | none | No |
| execute | Should the tasks contained in this task be executed? It may be useful to set this to false when testing build files. | True | No |
| failonerror | Should the build halt if the assertion fails? Setting this to false is contrary to the intented use of assertions, but may be useful in certain situations. | True | No |
The assert task does not support any nested elements apart from Ant tasks. Any valid Ant task may be embedded within the assert task.
In the following example, the first 'assert' task checks that the "wait" property exists and does not execute the 'echo' and 'sleep' tasks. The second 'assert' task checks that the "wait" property exists, has a value of 2, and executes the 'echo' task.
<property name="wait" value="2"/> <assert name="wait" execute="false"> <echo> Waiting ${wait} seconds... Click the red button to stop waiting. </echo> <sleep seconds="${wait}"/> </assert> <assert name="wait" value="2" execute="true"> <echo>done waiting!</echo> </assert>
If the "ant.enable.asserts" property is set to false, then in the above example, the 'echo', 'sleep', and 'echo' tasks will all execute.
The If Task |
Antelope includes a special Ant task for adding an "if" capability to Ant projects. This task works in a manner very similar to the Java 'if' keyword. This is useful for performing certain tasks only if a property has a specific value.
This task can hold other tasks including the If task.
To use this task in your build files, include a task definition like this:
<taskdef name="if" classname="ise.antelope.common.IfTask"/>
Attributes:
| Attribute | Description | Default | Required |
| name | The name of the property to test for. | none | Yes |
| exists | Test for existence or non-existence of the property. | True | No |
| value | The value to test for, implies 'exists=true'. If the value for the property in the project is the same as this value, embedded tasks will be executed. | none | No |
The If task does not support any nested elements apart from Ant tasks. Any valid Ant task may be embedded within the If task.
In the following example, the 'antcall' task will execute only if the project has a property named "test" with a value of "true".
<if name="test" value="true"> <antcall target="doUnitTests"/> </if>
In the next example, the 'antcall' task will execute only if the project has a property named "test". In this example, it does not matter what value is assigned to the "test" property.
<if name="test"> <antcall target="doUnitTests"/> </if>
Of course, the same thing could have been done by:
<antcall target="doUnitTests"/> <target name="doUnitTests" if="test"> </target>In the next example, the 'antcall' task will execute only if the project does not have a property named test. This is the opposite situation of the previous example.
<if name="test" exists="false"> <antcall target="doUnitTests"/> </if>
The next example demonstrates nested 'if' tasks. This example will run the unit tests, and if it is Monday, will run the weekly unit tests.
<tstamp> <format property="day" pattern="E" /> </tstamp> <if name="test" value="true"> <antcall target="doUnitTests"/> <if name="day" value="Mon"> <antcall target="doWeeklyUnitTests"/> </if> </if>
The next example shows the "if" and "assert" tasks working together to validate a property before use, and also shows an example of where the "assert" 'failonerror' attribute might be useful. In this example, if the e-mail address is invalid, the e-mail won't be sent and the build won't fail.
<if name="email_from"<EMAIL_ADDRESS><property name="valid_email" value="true"/> </if> <if name="email_from"<EMAIL_ADDRESS><property name="valid_email" value="true"/> </if> <assert name="valid_email" value="true" failonerror="false"> <mail from="${email_from}" tolist="${email_to}" message="New release available"/> </assert>
The Try Task |
The "Try" task works similarly to the try/catch construct in Java. This task is useful when a particular task might fail, but the build should not fail if it does. An example is the "mail" task will fail if the mail server is not available, but the build should not fail if the mail message cannot be delivered.
To use this task in your build files, include a task definition like this:
<taskdef name="try" classname="com.crossgain.antext.TryTask"/>
Attributes:
| Attribute | Description | Default | Required |
| catch | The name of a target to execute if a task fails. This is optional. The target must be in the same project. | None | No |
In the following example, the "fail" task will not cause the build to fail because it is contained by a "try". The "testfail" target will execute.
<target name="test" description="This exercises the Try task."> <try catch="testfail"> <echo>I am trying...</echo> <fail message=" and I failed..."/> <echo> but I did not die!</echo> </try> </target> <target name="testfail"> <echo>Did testfail</echo> </target>
The UserProperty Task |
Another task provided by Antelope is the UserProperty task. This works exactly like the standard Ant Property task, except that THESE PROPERTIES ARE MUTABLE. While this goes against the standard Ant use of properties, occasionally it is useful to be able to change a property value with the build. In general, use of this task is DISCOURAGED, and the standard Ant Property should be used if possible.
To use this task in your build files, include a task definition like this:
<taskdef name="userproperty" classname="ise.antelope.common.UserProperty"/>
For usage information, see the Ant 1.5 documentation for the Property task.


The page you tried to access (<%= Model.Path %>) does not exist.
The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options:
Note that the URL for the text interface has changed from "" to "/text".
You probably need to adjust the URL you are using to access the Manager application. However, there is always a chance you have found a bug in the Manager application. If you are sure you have found a bug, and that the bug has not already been reported, please report it to the Apache Tomcat team.


Nexus
Discord Help
Wiki
Donate
Factions
click toggles. S+click toggles all others.
Active Commanders
Contested 1h


{% extends 'neighbour/base.html' %}
{% load bootstrap3 %}
{% load static %}
{% block content %}
Let us take you into a deeper experience, make a moment a lasting conveyable memory. Let us help build your tribe.
Find Out MoreWe love what we do and we do what our clients love & work with great clients all over the world to create thoughtful and purposeful websites..
View Siteneighborhoods
{{ neighbourhoods.name }} {{ neighbourhoods.location }}


Prince Charles meets New Zealand leader, public
by Nick Perry, The Associated PressWELLINGTON, New Zealand -- Prince Charles met with New Zealand Prime Minister Jacinda Ardern on Tuesday and later joined wife Camilla to greet people along the Auckland waterfront.
The heir apparent to the British throne and the Duchess of Cornwall were on the third day of a weeklong trip to New Zealand.
Ardern had said she expected to talk with the prince about his interest in helping young people fulfil their potential and about New Zealand's environmental work, including plans to plant 1 billion trees over 10 years.
Asked by reporters if she would talk about the future role of the monarchy in New Zealand, Ardern said she'd never discussed that with any members of the royal family.
Queen Elizabeth II remains New Zealand's constitutional head of state, although these days it's largely a ceremonial role.
Ardern said she also doubted "very much" she'd talk with Charles about his brother Prince Andrew's recent television interview about his ties with convicted sex offender Jeffrey Epstein or the rumours of rift between his sons Prince William and Prince Harry.
"I think you'll find that actually we have really substantial conversations rather than ones based on gossip," Ardern said.
After meeting with Ardern, Charles joined Camilla at Auckland's Viaduct Basin for the couple's first public appearance.
The couple stopped for a quick chat with people who had come to see them and met members of the Team New Zealand yacht team. They also held the America's Cup yachting trophy.
It's the couple's third joint visit to New Zealand and their first in four years.
On Wednesday, they plan to visit the historic Waitangi Treaty Grounds, where the nation's founding document was signed. It will be the first visit there by a member of the British royal family in 25 years.
On Friday, the couple plan to visit the city of Christchurch, where 51 Muslim worshippers were killed during a March massacre and rebuilding continues after a deadly 2011 earthquake.


Aegisub
/
templates
/ Automation navbox
Automation 4
Overview:
Automation Manager
•
Running macros
•
Using export filters
•
Standard macros
•
Changes from Automation 3
Karaoke Templater
reference:
Declaring templates
•
Execution order
•
Modifiers
•
Inline-variables ($-variables)
Code lines and blocks
•
Execution envirionment
Lua API
reference:
Registration
•
Subtitles object
•
Progress reporting
•
Dialogs
•
Misc. APIs
Lua Modules
:
karaskel.lua
•
utils.lua
•
unicode.lua
•
cleantags.lua
•
clipboard
•
re
Karaskel concepts:
Style tables
•
Dialogue line tables
•
Syllable tables
•
Inline effects
•
Furigana
Navigation
Main Page
Introduction
What is Aegisub?
Highlights
Credits
Support Aegisub
FAQ
Tutorials
Working with Subtitles
Editing Subtitles
Exporting Subtitles
Applying Subtitles
Spell Checker
Translation Assistant
Paste Over
Select Lines
Typesetting
Introduction
Working with Video
Editing styles
Visual Typesetting
ASS Override Tags
Colour Picker
Styling Assistant
Resolution Resampler
Fonts Collector
Timing
Working with Audio
Timing subtitles to audio
Shift times
Timing Post-Processor
Kanji Timer
Automation
Overview
Karaoke Templater
Lua Reference
Miscellaneous
Aegisub Options
Script Properties
Attachment Manager


Home
Starter
Main
Dessert
About Us
Contact Us
Sign Up Here!
Email:
Full Name
Password:
Remember me
Sign In!
Login Here!
Email:
Password:
Remember me
Login!


I have been drawing for at least 13 years now. At this moment I'm at the end of my last semester in College. YES I DID IT!! Now that I'm at the end, I can finally get back to work on some of my personal projects. This website is to show my progress in art and how much I've grown.
I worked on a comic called A-Lex Selvin: Neyon Warrior since I was ten. I made the series at first to be able to draw and come up with a story for a future video game project. I however, missed the part where you needed to be able to program games and ended up taking up comics since I started to like drawing them.
I spend a lot of time working on this one comic. I even had to rewrite the story 3 times. The first few issues was up to 3 comics, second time around was 12 issues of comics but had to be rewritten due to some issues with the plot, third time around barely lasted with only 2 chapters due to not having very good writting and not planning out the story first. Eventually, I got around to writing it for 4th time and by this time I had more experience in writing and art. I'm pretty happy at the level I'm at now and hope to keep growing as I keep drawing. I even have ideas for other comics I want to do in the future.
I've come a long way and I'll keep going after college. Getting better and better everyday.
Alexander Johnson


Class to store the left, top, width or height of a widget.
More...
#include <TGUI/Layout.hpp>
|
|
| Layout ()=default |
| | Default constructor.
|
| |
| template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type> |
| | Layout (T constant) |
| | Constructor to implicitly construct from numeric constant. More...
|
| |
| | Layout (const char *expression) |
| | Constructs the layout based on a string which will be parsed to determine the value of the layout. More...
|
| |
| | Layout (std::string expression) |
| | Constructs the layout based on a string which will be parsed to determine the value of the layout.  More...
|
| |
| bool | isConstant () const |
| | Return whether the layout stores a constant value. More...
|
| |
Class to store the left, top, width or height of a widget.
You don't have to create an instance of this class, numbers are implicitly cast to this class.
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
| tgui::Layout::Layout |
( |
T |
constant | ) |
|
|
inline |
Constructor to implicitly construct from numeric constant.
- Parameters
-
| constant | Value of the layout |
| tgui::Layout::Layout |
( |
const char * |
expression | ) |
|
|
inline |
Constructs the layout based on a string which will be parsed to determine the value of the layout.
- Parameters
-
| expression | String to parse |
| tgui::Layout::Layout |
( |
std::string |
expression | ) |
|
Constructs the layout based on a string which will be parsed to determine the value of the layout.
- Parameters
-
| expression | String to parse |
| float tgui::Layout::getValue |
( |
| ) |
const |
|
inline |
Return the cached value of the layout.
- Returns
- Value of the layout
| bool tgui::Layout::isConstant |
( |
| ) |
const |
|
inline |
Return whether the layout stores a constant value.
- Returns
- Value of the layout
The documentation for this class was generated from the following file:
- C:/Program Files (x86)/Jenkins/workspace/TGUI/include/TGUI/Layout.hpp


 EOS account names must be exactly 12 characters long and consist only of lower case letters and number from 1 to 5." %} {% trans "Please choose a different account name" %}.
{% endblock %}


--- layout: article status: publish published: true title: From a text file to iOS Reminders author: display_name: Bart Dorsey login: bart email<EMAIL_ADDRESS>url: http://bartdorsey.com author_login: bart author_email<EMAIL_ADDRESS>author_url: http://bartdorsey.com wordpress_id: 172 wordpress_url: http://bartdorsey.com/?p=172 date: '2014-01-03 14:06:18 -0500' date_gmt: '2014-01-03 14:06:18 -0500' categories: - Uncategorized tags: [] comments: [] ---
This is a pretty handy Applescript.


WMTool
Login
Logout
Your Orders
Refresh
Set
Name
Price
Vaulted
Intact
Exceptional
Flawless
Radiant
Best
Name
Price
×


Summary
Use AWS Elastic Cloud for machine learning to:
- Decrease machine learning computing time, so you can try more new stuff faster.
- Use specialized toolset requiring GPUs, like CUDA-CONVNET, which your old computer may not have.
- Avoid hurting your computer health because you keep your computer busy for hours repeatedly.
- You / your company got some money to spend. =]
Long Version
You might think your 16GB of RAM and 8 CPU cores notebook is good enough to run your machine learning algorithms. However, if you really did get hands-on, you most likely have encountered these major problems:
- Slow. Searching for the right parameters with multiple degrees of freedom takes a long time, even if each takes a minute or two. e.g. grid search the best C and gamma for SVMs.
- Low memory. Your dataset expands after preprocessing or feature engineering, suddenly takes 22GB of RAM on your 16GB notebook. Suddenly, your algorithm slows down drastically.
But, really, the problems that really hurts are:
- Hampers creativity. You don’t know why it works, but it works anyway. Sometimes results are discovered through sheer try-and-error, and being able to explore without waiting too long (hours!) helps a lot. It is not fun to wait for 5 minutes per iteration on a 150 fit.
- Durability. Topping your CPU to 100% for dozen hours repeatedly shorten your computer’s life really easily, e.g. getting busy a lot clogs your CPU fan with dust.
- Limited toolsets. For example, if you want to run the CUDA-CONVNET, you will need to have Fermi-generation GPUs, which you might not have it. It’s one of the more powerful deep learning tools out there now. The GPU instances on AWS are Fermi-generation GPU instances.
Of course, these are just those that come out the top of my head. I use the Elastic Cloud to get a very powerful instance which maybe I only need for a few hours. This is especially useful for Kaggle competitions, which you will have a big dataset and a lot of ideas to try. It may be costly in the long run, but you won’t need to buy a new computer for it… and then decide you don’t need it.


Spotify Playlist Export
1. Grant access
Login with Spotify
2. Choose account
Username
3. Select playlists
JSON
Raw JSON
Print
Export
4. Results


BATMAN AND ROBIN A film review by Mark R. Leeper Copyright 1997 Mark R. Leeper
Capsule: BATMAN AND ROBIN combines the pacing of a Hong Kong action film with the plot depth of a Hong Kong action film. The current chapter has some interesting visuals if it would ever slow down enough to let the audience appreciate them, but the writing is the worst of any of the series. Rating: low -1 (-4 to +4), 2 (0 to 10) New York Critics: 2 positive, 10 negative, 12 mixed
Someone decided it was time for another Batman film. Note that this is not the same thing as saying that somebody had a good idea for a Batman story that they wanted to film. I did not say that someone was really excited about the possibilities for the Batman character and the peripheral people in Batman's life. But time has definitely passed and the cash cow was ready for another squeeze. Batman (George Clooney) and Robin (Chris O'Donnell) battle Mr. Freeze (Arnold Schwarzenegger) a villain who wants to freeze the world and Poison Ivy (Uma Thurman) who can make people love her, has a poison kiss, and wants to make the world safe for plants. Batman's butler Alfred (Michael Gough) is dying. Batman and Robin have a falling out over Ivy. Alfred's British niece (Alicia Silverstone) becomes Batgirl. And this plot is just one minor feature of the new BATMAN AND ROBIN! If I seem not to consider the plot very important, you should see the treatment it gets from director Joel Schumacher. The script was not ready to film and Schumacher should have rejected it. Clearly there are better things to do with the villains than to have them call the title characters "Batface and Birdbrain." Ivy was turned into a monster by being buried with some poisons for a few minutes. She comes back to life and immediately says various parts of her have been replaced by chemicals and her lips are now poison. How would she know? One sparkling line in the film has a scientist claiming to have drilled "three concentric circles" into somebody's skull.
Top-billed as Mr. Freeze is Arnold Schwarzenegger, who may be able to bench press a Buick but finds it beyond his ability to push a performance out through thick layers of blue makeup and plastic suit. The concept of a villain who fell into a freezing vat and now wants to freeze the world left me cold, and Schwarzenegger's performance is an absolute zero with none of his natural wit and far too many lamely unfunny one-liners. Physically, George Clooney looks the most like the comic book Bruce Wayne of the three actors who have played him so far, or put another way, this is the first one who looked at all the part. The problem is that Clooney is not a very exciting or even interesting actor. And if you cannot be exciting as Batman, you may just not be destined to be exciting at all. Chris O'Donnell plays Robin, the Boy Wonder who in my days of reading the comic was eternally about fourteen years old. Unfortunately it is hard to find a fourteen-year-old with marquee value.  This leaves the BATMAN AND ROBIN wide open to be stolen by the fourth-billed Uma Thurman. Uma Thurman! How bad do three actors have to be for a decorative but dull Uma Thurman to turn in the most interesting performance? Next comes Alicia Silverstone as Barbara Wilson, soon to be Batgirl. Silverstone is a cute blonde who gets most of her personality by making funny expressions with her mouth: biting her lower lip, pouting, so forth. The script apparently calls for her to be British, but she made no attempt to sound British and nobody cared. Michael Gough, who has been in ALL FOUR Batman films turns in the most touching performance and may well be the best actor in the film.
With each new Batman film Gotham City becomes more deeply engulfed by the inevitable and all-consuming advance of Art Nouveau. The art style appears to be chewing up all the more normal-looking buildings and spitting out titanic geometric formations and baroque reliefs and statues of colossal human figures. Gotham seems unable to stem the tide, but apparently Batman has not been called. The city has gone from resembling Helsinki in the first film to being an incredible architectural nightmare in BATMAN AND ROBIN. Perhaps the one saving grace of the film is that it does bring this abstract art-form to the masses. But this combines with Stephen Goldblatt's dark photography and Dennis Virkler's fast editing. The result is a film that might be entertaining to look at if it were just a little more sparse and if the pace were cut down just a bit. But there were many scenes in which I had to ask myself what it was that I just saw.
BATMAN AND ROBIN is a sloppy and slapdash film that gets a low -1 on the -4 to +4 scale.
Mark R. Leeper<EMAIL_ADDRESS>The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


"Something's Coming"
Synopsis
West Side Story is a classic American musical follwing a similar plot to that of Romeo and Juliet. The libretto was written by Arthur Laurents, music by Leonard Bernstein, lyrics by Stephen Sondheim, and choreography by Jerome Robbins. The story follows Tony and Maria, who fall in love and have to deal with the rivalry between their respective gangs, the Jets and Sharks.
Songs include: "Maria", "Gee Officer Krupke", "I Feel Pretty" and "America"
SJU
The SJU Theatre Company performed West Side in the fall of 2014. The first dance show we've done in years, we put an incredible amount of work into this production, and it definitely came out better than expected.
Fun Fact
During a scene change, a wall flies in from the ceiling, and I got hit with it and was knocked to the floor. (I managed to get up and run off stage befoe the lights came on, but still, ouch)


Our decision to run the rewrite of Sealas with Elixir came out of our interest in the language and the architecture behind it.
Elixir is a (more) readable Erlang, which builds upon OTP, which makes it highly suitable for any distributed system or networked system in general. Failure states are an integral part of the system, which means that if any critical error or exception occurs the process just crashes - or shuts down - and restarts. It's piping operator is sexy as hell and makes the functional programming aspect a lot more palatable.
All in all Elixir is sexy enough that we want to give it a try as the base for our project.
The main existing framework for web applications for Elixir is Phoenix, which is what we're going to use to build the backend.
Umbrella architecture
Phoenix 1.3 introduced a new way to structure projects: umbrella apps. With the umbrella structure you can split a project into various smaller applications all running from the same project space. Comparable to separating access to your projects via VHosts, each app under an umbrella project is running under a different port, yet retain their capability to share code and functionality through their respective namespaces.
This, while providing lots of awesome opportunities to separate distinct parts of your application, also increases complexity. That of course makes it a big deciding factor in whether this makes sense for your project at all: is it big enough to allow for sensible splitting without succumbing to the problem of an over engineered mess?
Since we already built Sealas once we have a pretty decent idea of its scope and of which parts are necessary and going to be built:
SSO
The SSO or authentication app keeps all code and interaction for the user database. Here we'll have the registration, authorization and authentication, and access recovery processes. Writing this as a separate app also makes it easier to re-use it for other projects with similar requirements for its user data handling.
Mailing was previously also handled here, but could easily be split away into another separate app.
API
All interaction with the permanent datastore goes through this part, as well as some access to authentication mechanisms. Authentication is the first and only part so far that requires cross-app access to code.
Frontend
The main part of the application and the one that relies the least on the backend, as it's mostly static content. All of the javascript base goes here, along with the generators and CSS files.
This one could easily be replaced by a Node.js or Apache server, but since it's easier to handle deployment and server infrastructure from one place, we're going to keep it here.
Building the umbrella
mix phx.new sealas --umbrella
This is the generator script for Phoenix umbrella projects, which is very similar to the native generator, with the addition of some dependencies and the directory structure for Phoenix apps.
The generated directory structure looks like this:
| sealas
| > apps
| > > sealas
| > > sealas_web
| > config
The separation of apps by default is in a backend app, handling all business logic and connection to a datastore, and a frontend app, handling all views and templates. Since our main application doesn't rely on any backend, we're not going to use this one for now. We do however need to add at least two applications to our project: sealas_api and sealas_sso.
First we need to switch to the apps directory, then generate our new apps:
cd apps/
mix phx.new sealas_api
mix phx.new sealas_sso
With mix phx.new
we generate a new Phoenix 1.3 app - mix phoenix.new
is the generator for version up to 1.2.
Configuration
Each of the apps has its own separate config files found in APP_NAME/config
, which is also where you set the ports.
config :sealas_web, SealasWeb.Endpoint,
http: [port: 4000],
sealas_web
being our main entry point gets the default port, while the others get increasing port numbers assigned to them.
Each app also defines their respective dependencies in APP_NAME/mix.exs
.
So until I am convinced of the advantages of further splitting the project apart, sealas_api
and sealas_sso
will handle the storage directly, which makes it necessary to add Ecto to the list of dependencies.
That's it for the basic setup for Sealas as an umbrella project! To see the whole project structure in action, you can check it out on Github


Privacy Policy
This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You
We use Your Personal data to provide and improve the Service. By using the Service, you agree to the collection and use of information in accordance with this Privacy Policy
Collecting and Using Your Personal Data
Personal DataWhile using Our Service, we may ask You to provide Us with certain personally identifiable information that can be used to contact or identify You. Personally, identifiable information may include, but is not limited to:
Usage Data is collected automatically when using the Service. Usage Data may include information such as Your Device's Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that You visit, the time and date of Your visit, the time spent on those pages, unique device identifiers and other diagnostic data.
We may also collect information that Your browser sends whenever You visit our Service or when You access the Service by or through a mobile device.
Tracking Technologies and CookiesWe use Cookies and similar tracking technologies to track the activity on Our Service and store certain information. Tracking technologies used are beacons, tags, and scripts to collect and track information and to improve and analyze Our Service.
Retention of Your Personal DataThe Company will retain Your Personal Data only for as long as is necessary for the purposes set out in this Privacy Policy. We will retain and use Your Personal Data to the extent necessary to comply with our legal obligations (for example, if we are required to retain your data to comply with applicable laws), resolve disputes, and enforce our legal agreements and policies.
Disclosure of Your Personal DataUnder certain circumstances, the Company may be required to disclose Your Personal Data if required to do so by law or in response to valid requests by public authorities (e.g. a court or a government agency) against legal liability.
Changes to this Privacy PolicyWe may update our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy Policy on this page.
We will let You know via email and/or a prominent notice on Our Service, prior to the change becoming effective and update the Last updated date at the top of this Privacy Policy
You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page.
Contact UsIf you have any questions about this Privacy Policy, you can contact us:
By email: info@docspace.com


10.33.6 Guidelines
In this subsection we cover several guidelines on how to use CHR to write
constraint solvers and how to do so efficiently.
- Check guard bindings yourself.
- It is considered bad practice to write guards that bind variables of
the head and to rely on the system to detect this at runtime. It is
inefficient and obscures the working of the program.
- Set semantics.
- The CHR system allows the presence of identical constraints, i.e.
multiple constraints with the same functor, arity and arguments. For
most constraint solvers, this is not desirable: it affects efficiency
and possibly termination. Hence appropriate simpagation rules should be
added of the form:
constraint \ constraint <=> true.
- Multi-headed rules.
- Multi-headed rules are executed more efficiently when the constraints
share one or more variables.
- Mode and type declarations.
- Provide mode and type declarations to get more efficient program execution.
- Compile once, run many times.
- Does consulting your CHR program take a long time? Probably
it takes the CHR compiler a long time to compile the CHR rules into Prolog
code. When you disable optimizations the CHR compiler will be a lot quicker,
but you may lose performance.
Send feedback on this subject.


Printer Pals is a revolutionary interactive which reconfigures the state of dementia care in the western world.


Banter Web Configuration
Manual
Invite
Blacklist
Show infractions in modlog
Don't filter messages sent by administrators
Minutes to mute:
Blacklist Strictness
Low
Strip no characters, only check
Medium
Accented characters -> normal letters & remove markdown characters
High
Medium, plus removing whitespace
Anti Spam
Amount of identical messages in a row until anti spam is triggered: (0 == disabled)
Cooldown between messages in seconds:
Anti Raid
Amount of new users in a row until anti raid is triggered: (0 == disabled)
Cooldown period after first join:
Time in seconds after the anti raid has been triggered to keep muting:
Anti Ping
Amount of pings allowed within cooldown timeframe: (0 == disabled)
Cooldown period:
Logging
Mass deletion of messages get put into a hastebin
Disable the purge command in the log channel
Relog all deleted logs
Starboard
Star reactions required to star:
Warnings
Punishment:
No punishment
Mute
Kick
Ban
Minutes to mute for mute punishment:
Amount of warnings before punishing:
Commands
Custom Prefix:
You can always use the default prefix as a fallback
Generate Config Command
N/A


Frontend Developer
View My GitHub Profile
And I'm Frontend developer.
Html, css, javascript, bootstrap, react.js, node.js, gulp.js, scss, webpack, bower
You can contact me by email - nurbakhyt@gmail.com


Teen suspect in California school shooting dies – Reports
by The Eagle OnlineThe teenage suspect in a school shooting that took the lives of two students in California on Thursday has died in hospital, local media reported.
Citing the sheriff’s department, the Los Angeles Times and CBS Los Angeles reported that the boy died from a self-inflicted gunshot wound on Friday afternoon.
Authorities said the suspect, a student at the high school in Santa Clarita, north of Los Angeles, carried out the attack on his 16th birthday.
A 16-year-old girl and a 14-year-old boy were killed in the incident, Los Angeles County Sheriff Alex Villanueva said.
Three others were wounded by the suspect, before he also shot himself.
The three injured students are in a stable condition.
The Los Angeles Times reported on Friday that investigators had seized unregistered firearms from the teenage suspect’s home, and were still trying to determine the origin of the handgun used in the attack.
Authorities said there was no other suspect and no known ideology behind the attack.
They also said they did not know the teen’s motive but would begin their investigation by interviewing students who witnessed the attack.
dpa/NAN.
Previous Post
Restructuring: Fashola fears ‘Brexit experience’ for Nigeria
Next Post
40,000 persons displaced by floods in Borno – UN


If checked, patterns defined in phase jobs of the MultiJob will be considered when determining which jobs to be executed.
This is only valid if ALL paths in a commit are covered by patterns.
Example, a commit affects paths:
project1/src/integTest/java/com/acme/test/TestOne.java
project2/src/integTest/java/com/acme/test/TestSomethingElse.java
Say we have a large number of sub jobs but the paths above are only affecting one phase job each. Then there is no need to execute the others.
Define regex patterns in the commit path field for the two jobs:
Job-One: "project1/src/integTest/java/.*"
Job-Two: "project2/src/integTest/java/.*"
- and only the jobs Job-One and Job-Two will be executed.
If another change (project1/src/main/java/com/acme/product/Main.java) would be present that is not covered in a phase job config,
then ALL jobs will be executed for the whole change set.
A path may be present in more than one job.


I created a box with a ball in it. I gave this ball an initial velocity and coded a basic collision against the walls. The velocity component perpendicular to the wall flips its direction as you can see in the images below:
Ball and its velocity before (left) and after (right) a wall collision.
Once the wall collision was implemented, I added an additional ball to the box and I started to think how to solve the two disk collision problem.
Given the radius, position and velocity of two balls just before the collision, find the resulting velocities of both bodies.
The first idea that came to my mind was to treat the disk collision as if there was a wall tangent to both balls, as you can see in this figure:
Two balls and their velocities before (left) and after (right) a collision, with an imaginary wall between them.
Linear algebra gives us the tools to calculate the final velocities. First of all, we will make a change of basis from screen basis to collision basis, that basically consists of a 2D rotation. The rotation angle is given by the angle between the horizontal axis (X screen basis axis) and the vector that join both ball centers:
Diferent system coordinates to calculate the velocity changes.
Next step consist of rewritting the initial velocity vectors in the collision basis using the change of basis matrix (2D rotation matrix). Once the velocity vectors are in the collision basis, a linear transformation is applied to them, similar to the "flip direction" transformation used in the wall collision.
This type of transmormation is very easy to make is this vector space, and that's why I made the change of basis. Here you can check the diagram:
Algebra diagram. S(v) is refered to vector v expressed in screen coordinates. C(v) is vector v in collision coordinates.
The final step is to revert the velocity vectors to the screen basis using the inverse change of basis matrix and we are good to go.
Here is the code of the full transformation in Python:
import numpy as np
def colTransformation(V1, V2, angle):
'''Function that recieves two initial velocities (V1, V2) and the angle between X screen axis and X colision axis
and returns the final velocities'''
#Define the change of basis matrix and its inverse
M = np.array([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
Mi = (1/np.linalg.det(M))*np.array([[np.cos(angle), np.sin(angle)], [-np.sin(angle) ,np.cos(angle)]])
#Change of basis
V1colisionBasis = np.dot(M,V1)
V2colisionBasis = np.dot(M,V2)
#flip the velocity component perpendicular to the imaginary wall
V1colisionBasis[0] = -V1colisionBasis[0]
V2colisionBasis[0] = -V2colisionBasis[0]
#Revert the change of basis
V1 = np.dot(Mi,V1colisionBasis)
V2 = np.dot(Mi,V2colisionBasis)
return V1, V2
After the python implementation, I test the proposed solution in various simulations with random initial velocities. The results were discouraging.
Although in some cases the collision was behaving quite as expected, the majority of interactions were unnatural and didn't make any physical sense. I checked my notes and I saw that this soution was not taking into account the momentum conservation. I could see it in the simulation when a high speed ball hit a low speed ball and they were not changing speeds but only directions. That's because of the idea to treat the collision as if there was a wall (infinite mass) when in the reality the mass of the other particle is the same as the colliding particle.
This is the main error found in the proposed solution, but there are more errors caused by not taking into account diferent collision scenarios, like velocities with the same direction but diferent speed.
I'm working now in this solution, implementing it into python in order to check if the problem is properly solved.
Here you can see the code used to simulate the box with balls:
The Schulze election method was created by Mark Schulze in 1997 and it was originally design to choose a unique winner from a set of preferential votes. Non the less, this method also gives information about the gradiation of the different options of the same votation.
The Schulze method is used now a days by popular entities like Debian, Ubuntu, Wikipedia and Gentoo, in order to do internal elections.
In what follows we learn the algorithm to calculate the Schulze election method:
In 1963, Edward Lorenz introduced the concept Lorenz system to describe a particular dynamic system that behaves chaotically. The differential equations that describe the movement have three parameters a, b and c. Usually a = 10, c = 8/3 and b changes to give variation to the movement. A tiny variation in the parameters changes enormously the trajectory of the movement.
Here I'm using C programming to collect the trajectory data and Jupyter notebook to plot the results:
using namespace std;
int main()
{
int tmax = 10000;
double h = 0.005;
double sigma = 5;
double b = 8./3.;
double r = 28;
double x0 = 5;
double y0 = 3;
double z0 = 2;
float v[3][tmax];
float u[3][tmax];
v[0][0] = x0;
v[1][0] = y0;
v[2][0] = z0;
ofstream arxiu;
arxiu.open ("dades.txt");
for (int j = 0; j < tmax; j++){
arxiu << "t" << "20" << " ";
for (int i = 0; i < 3; i++){
switch (i){
case 0:
u[i][j] = sigma*(v[1][j]-v[0][j]);
break;
case 1:
u[i][j] = v[0][j]*(r-v[2][j])-v[1][j];
break;
case 2:
u[i][j] = v[0][j]*v[1][j]-b*v[2][j];
break;
}
v[i][j+1] = v[i][j] + h*u[i][j];
arxiu << v[i][j] << " ";
}
arxiu << endl;
}
arxiu.close();
return 0;
}


Module raven
raven.lua: a Lua Raven client used to send errors to Sentry
According to client development guide
The following items are expected of production-ready clients:
- DSN configuration √
- Graceful failures (e.g.
Sentry server unreachable) √
- Scrubbing w/ processors
- Tag support √
To test a DSN configuration:
$ lua raven.lua test [DSN]
Info:
- Copyright: (c) 2013-2014, CloudFlare, Inc.
- Author: JGC
,Jiale Zhi
Functions
| new (self, dsn, conf) | Create a new Sentry client. |
| captureException (self, exception, conf) | Send an exception to Sentry. |
| captureMessage (self, message, conf) | Send a message to Sentry. |
| call (self, f, ...) | Call function f with parameters ... |
Functions
- new (self, dsn, conf)
-
Create a new Sentry client. Three parameters:
Parameters:
- self raven client
- dsn
The DSN of the Sentry instance with this format:
{PROTOCOL}://{PUBLIC_KEY}:{SECRET_KEY}@{HOST}/{PATH}{PROJECT_ID}
http://pub:secret@<IP_ADDRESS>:8080/sentry/proj-id
- conf
client configuration. Conf should be a hash table. Possible keys are:
- tags extra tags to include on all reported errors
- logger
- verify_ssl boolean of whether to perform SSL certificate verification
- cafile path to CA certificate bundle file. Required only when using luasec, ngx version uses the lua_ssl_trusted_certificate directive for this.
{ tags = { foo = "bar", abc = "def" }, logger = "myLogger", verify_ssl = false }
Returns:
-
a new raven instance
Usage:
local raven = require "raven" local rvn = raven:new(dsn, { tags = { foo = "bar", abc = "def" }, logger = "myLogger" })
- captureException (self, exception, conf)
-
Send an exception to Sentry.
see reference.
Parameters:
- self raven client
- exception
a hash table describing an exception. For example:
{{ ["type"] = "SyntaxError", ["value"] = "Wattttt!", ["module"] = "__builtins__", stacktrace = { frames = { { filename = "/real/file/name", func = "myfunc", lineno" = 3 }, { filename = "/real/file/name", func = "myfunc1", lineno" = 10 }, } } }}
- conf capture configuration. Conf should be a hash table. Possible keys are: "tags", "trace_level". "tags" will be send to Sentry together with "tags" in client configuration. "trace_level" is used for geting stack backtracing. You shouldn't pass this argument unless you know what you are doing.
Returns:
-
On success, return event id. If not success, return nil and
an error string.
Usage:
local raven = require "raven" local rvn = raven:new(dsn, { tags = { foo = "bar", abc = "def" }, logger = "myLogger" }) local id, err = rvn:captureException(exception, { tags = { foo = "bar", abc = "def" }})
- captureMessage (self, message, conf)
-
Send a message to Sentry.
Parameters:
- self raven client
- message arbitrary message (most likely an error string)
- conf capture configuration. Conf should be a hash table. Possiable keys are: "tags", "trace_level". "tags" will be send to Sentry together with "tags" in client configuration. "trace_level" is used for geting stack backtracing. You shouldn't pass this argument unless you know what you are doing.
Returns:
-
On success, return event id. If not success, return nil and
error string.
Usage:
local raven = require "raven" local rvn = raven:new(dsn, { tags = { foo = "bar", abc = "def" }, logger = "myLogger" }) local id, err = rvn:captureMessage("Sample message", { tags = { foo = "bar", abc = "def" }})
- call (self, f, ...)
-
Call function f with parameters ... wrapped in a xpcall and
send any exception to Sentry. Returns a boolean indicating whether
the function execution worked and an error if not
Parameters:
- self raven client
- f function to be called
- ... function "f" 's arguments
Returns:
-
the same with xpcall
Usage:
function func(a, b, c) return a * b + c end return rvn:call(func, a, b, c)


Note:- To update any entry first select the entry from adjacent table by double click.
| FilmId | FilmName | Genre | Studio | Director | Producer | LeadActor | |
| {{x.FilmId}} | {{x.FilmName| myfltr}} | {{x.Genre}} | {{x.Studio}} | {{x.Director}} | {{x.Producer}} | {{x.LeadActor}} |


I am Manas Mehrotra. I usually create web applications which are simple and easy to use.
This app is built using MEAN Stack, just to load these few paragraphs.
Contact: Email | LinkedIn | Twitter | Facebook | Instagram |
Web Content Accessibility Guidelines (WCAG) 2.0 compliant.


Clicking on the 'Add' button opens up a text box. Here, a name/value pair is to be entered which is part of the json object that will be sent as the bug report. One textbox can have only one name/value pair. When entered, the name and value should be separated by a '::' sign. No quotes are allowed. For e.g. "dc:title":"Hudson Build Failure" should be entered as dc:title::Hudson Build Failure
If nothing is entered, or the data entered is incorrect/not in the right format,


Admin Login
Email
Password
Confirm Password
Phone Number
Choose the gender
Male
Female
Other
Sign in


Guidance
Grade descriptors for GCSEs graded 9 to 1. Designed to provide an indication of the likely level of performance at grades 2, 5 and 8.
We have developed grade descriptors for the reformed GCSEs graded 9 to 1. These aim to assist teachers by providing an indication of the likely level of performance at grades 2, 5 and 8.
The purpose of these grade descriptors is to give an idea of average performance at the mid-points of grades 2, 5 and 8. The descriptors are not designed to be used for awarding purposes, unlike the ‘grade descriptions’ that apply to current GCSEs graded A* to G.
The grade descriptors were developed with the input of subject experts and exam boards. The wording draws on the relevant subject content published by the Department for Education as well as the assessment objectives published by Ofqual.
We have published more information on how grade standards will be set for the new GCSEs .
Grade descriptors were added for subjects being taught from September 2016. Previous grade descriptors for September 2015 remain unchanged.
Grade descriptors are now published in the following subjects.
Published: 28 November 2014
Updated: 19 July 2016
From: Ofqual


Berlin and Stuttgart say hello to Infinispan
Last week I finally put together my presentation on cloud computing and Infinispan. To kick things off, I presented it at two JUG events in Germany.
Berlin’s Brandenburg JUG organised an event at the NewThinking Store in Berlin’s trendy Mitte district. Thanks to Tobias Hartwig and Ralph Bergmann for organising the event, which drew an audience of about 35 people. Cloud computing was the focus of the evening, and I started the event with my rather lengthy presentation on cloud computing and specific issues around persisting data in a cloud. The bulk of the presentation focused on Infinispan, what it provides as a data grid platform, and what’s on the roadmap. After a demo and a short break, Infinispan committer Adrian Cole then spoke about JClouds, demonstrating Infinispan’s use of JClouds to back cached state onto Amazon’s S3. You can read more about Adrian’s presentation on his blog.
Two days later, the Stuttgart JUG arranged for me to speak to their JBoss Special Interest Group on Infinispan. Thanks to Tobias Frech and Heiko Rupp for organising this event, which was held in one of Red Hat’s training rooms in Stuttgart. The presentation followed a similar pattern to what was presented in Berlin, to an audience of about 15 people.
In both cases, there was an overwhelming interest in Infinispan as a distributed storage engine. The JPA interface which is on our roadmap generated a lot of interest, as did the query API and to a lesser extent the asynchronous API - which could benefit from a better example in my presentation to demonstrate why this really is a powerful thing.
Overall, it is good to see that folks are interested in and are aware of the challenges involved in data storage on clouds, where traditional database usage is less relevant.
Many people have asked me for downloadable versions of my slides. Rest assured I will put them up - either as PDFs or better still, as a podcast - over the next 2 weeks.
Coming up, I will be in Krakow speaking at their JUG on Thursday the 23rd, and then in Dublin on Tuesday the 29th. Details of these two events are on the Infinispan Talks Calendar. Hope to see you there!
Cheers Manik


| Shanti Niketan School (Class Nursery to Class 1) Bhelwa Tola, Main Road Jaynagar, Madhubani(Bihar)-847226,INDIA. |
Fiitjee South Delhi (Class 11 to Class 12) 29-A,FIITJEE House,Kalu Sarai, Sarvapriya Vihar,Near Hauz Khas Bus Terminal,Vijay Mandal Enclave, Kalu Sarai,New Delhi(Delhi)-110016,INDIA. Official Site-Click Here |
|---|---|
| Alok Shanti Niketan school (Class 2 to Class 5) Kamla Road Vidyanagar Jaynagar, Madhubani(Bihar)-847226,INDIA. |
ALLEN Career Institute (Drop 1 year) "SANKALP" CP-6,Indra Vihar, Kota(Rajasthan)-324005,INDIA. Official Site-Click Here |
| Don Bosco Public School (Class 6 to Class 10) Marwari Mohalla, Main Road Jaynagar, Madhubani(Bihar)-847226,INDIA. |
School Of Engineering(Currently studying), Tezpur University, Napaam, Tezpur Sonitpur(Assam)-784028,INDIA. Official Site-Click Here |
| Jesus & Mary Academy (Class 11 to Class 12 (Non attending)) Allalpatti, Darbhanga(Bihar)-846001,INDIA. Official Site-Click Here |


We aim to provide you the best experience in learning English.
Make a request to start a new conversation.
Response to a conversation initialized before.
The history records of conversation initialized before.
Forget my password.
Or
I am a new member in ESL.
I already have an ESL account.
Change email
Resend verification code (wait for 30 seconds)
Members
<EMAIL_ADDRESS><EMAIL_ADDRESS>Comments
2019-11-08 22:15:02
loading...
Today
Start Time:
Estimated End Time:
Remaining Minutes:
This is the topic area
This is the student name
This is the venue
This is the time


Area of Polycubes
问题描述 :
A polycube is a solid made by gluing together unit cubes (one unit on each edge) on one or more faces. The figure in the lower-left is not a polycube because some cubes are attached along an edge.
For this problem, the polycube will be formed from unit cubes centered at integer lattice points in 3-space. The polycube will be built up one cube at a time, starting with a cube centered at (0,0,0). At each step of the process (after the first cube), the next cube must have a face in common with a cube previously included and not be the same as a block previously included. For example, a 1-by-1-by-5 block (as shown above in the upper-left polycube) could be built up as:
For this problem, the polycube will be formed from unit cubes centered at integer lattice points in 3-space. The polycube will be built up one cube at a time, starting with a cube centered at (0,0,0). At each step of the process (after the first cube), the next cube must have a face in common with a cube previously included and not be the same as a block previously included. For example, a 1-by-1-by-5 block (as shown above in the upper-left polycube) could be built up as:
(0,0,0) (0,0,1) (0,0,2) (0,0,3) (0,0,4)
and a 2-by-2-by-2 cube (upper-right figure) could be built as:
(0,0,0) (0,0,1) (0,1,1) (0,1, 0) (1,0,0) (1,0,1) (1,1,1) (1,1, 0)
Since the surface of the polycube is made up of unit squares, its area is an integer.
Write a program which takes as input a sequence of integer lattice points in 3-space and determines whether is correctly forms a polycube and, if so, what the surface area of the polycube is.
输入:
The first line of input contains a single integer N, (1 ≤ N ≤ 1000) which is the number of data sets that follow. Each data set consists of multiple lines of input. The first line contains the number of points P, (1 ≤ P ≤ 100) in the problem instance. Each succeeding line contains the centers of the cubes, eight to a line (except possibly for the last line). Each center is given as 3 integers, separated by commas. The points are separated by a single space.
输出:
The first line of input contains a single integer N, (1 ≤ N ≤ 1000) which is the number of data sets that follow. Each data set consists of multiple lines of input. The first line contains the number of points P, (1 ≤ P ≤ 100) in the problem instance. Each succeeding line contains the centers of the cubes, eight to a line (except possibly for the last line). Each center is given as 3 integers, separated by commas. The points are separated by a single space.
样例输入:
4 5 0,0,0 0,0,1 0,0,2 0,0,3 0,0,4 8 0,0,0 0,0,1 0,1,0 0,1,1 1,0,0 1,0,1 1,1,0 1,1,1 4 0,0,0 0,0,1 1,1,0 1,1,1 20 0,0,0 0,0,1 0,0,2 0,1,2 0,2,2 0,2,1 0,2,0 0,1,0 1,0,0 2,0,0 1,0,2 2,0,2 1,2,2 2,2,2 1,2,0 2,2,0 2,1,0 2,1,2 2,0,1 2,2,1
样例输出:
1 22 2 24 3 NO 3 4 72
没有看网上别的解题报告，直接O（n^2）的时间复杂度，倒也直接accept了。
对每个新加入的方块，考虑其与之前的每个方块的“距离”，如果为0，则不正确（因为重叠了）；如果遍历完了，没有一个为1的，则也不正确（与之前的连不起来）。否则，正确。
对两点之间距离的定义，这里应该是个欧几里德距离，但是考虑到我们只考虑是否为0或1，因而将坐标之差绝对值相加即可，运算相对简单些。
代码如下：
// Area of Polycubes #include <iostream> using namespace std; const int MAXP = 100; int dis(int *p1, int *p2) { int d = 0; for(int i = 0; i < 3; ++i) { d += abs(p1[i] - p2[i]); } return d; } int main() { int N; cin>>N; int points[MAXP][3]; for(int no = 0; no < N; ++no) { int P; cin>>P; fscanf(stdin, "%d,%d,%d", &points[0][0], &points[0][1], &points[0][2]); int area = 6; bool iscorrect = true; cout<<no + 1<<" "; for(int i = 1; i < P; ++i) { fscanf(stdin, "%d,%d,%d", &points[i][0], &points[i][1], &points[i][2]); if(!iscorrect) { continue; } area += 6; int j = 0; bool isconnected = false; while(j < i) { int d = dis(points[i], points[j]); if(d == 0) { break; } if(d == 1) { isconnected = true; area -= 2; } j++; } if(j != i || !isconnected) { iscorrect = false; cout<<"NO "<<i + 1<<endl; } } if(iscorrect) { cout<<area<<endl; } } return 0; }
解题参考：http://blog.csdn.net/thestoryofsnow/article/details/11882277
(adsbygoogle = window.adsbygoogle || []).push({});
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
永动机有一个就够了，也只能有一个
给你一组数据吧：29 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1000。此时的数据量还是很小的，耗时却不短。这种方法确实可以，当然或许还有其他的优化方案，但是优化只能针对某些数据，不太可能在所有情况下都能在可接受的时间内求解出答案。
不考虑最后将结果排序的话，快排的时间复杂度是O(N) ，而堆排的是O(N*logK)
为什么暴力求解方法循环到sqrt(n) 就可以了呢
有意思，有难度
有点意思
先从简单的做起，归并排序，二叉树相关的遍历等
能不能说下这个是用的什么算法策略？
刚开始学，非常好
不同的编译器，printf(),执行的顺序不同，所以结果也就不同，建议不要那么写
能不能说下这个是用的什么算法策略？
https://coding.net/moon/miracle
,,,,,,,,,,,,,,,
后面的掩码变量部分乍一看比较难理解，其实就是把32位按照一个整体来看待。


{% extends "base.html" %} {% block content %}
You are deleting category {{ cat.name }}.
This will delete the {{ cat.num_items }} items in this category.


--- layout: post status: publish published: true title: Cubs Probably Done with Casey Coleman author: display_name: Corey Fineran login: Corey email<EMAIL_ADDRESS>url: '' author_login: Corey author_email<EMAIL_ADDRESS>wordpress_id: 9605 wordpress_url: http://ivyenvy.com/?p=9605 date: '2014-04-05 10:00:28 +0000' date_gmt: '2014-04-05 15:00:28 +0000' categories: - Minor Leagues - Starting Pitching tags: - Casey Coleman - Boise comments: [] ---
After being drafted in the 15th round and spending six seasons in the Cubs system, it appears the Cubs are done with RHP Casey Coleman.
#Cubs transfer old friend Casey Coleman to Class A Boise, effectively ending his time in org, reports Des Moines Register
— Bruce Miles (@BruceMiles2112) April 5, 2014
A third-generation MLB player, Coleman pitched 48 games with the Cubs between 2010 and 2012 with a 7-13 record and 5.76 ERA. Coleman was entering his fourth season at the AAA level and the move made room on the Iowa roster for Alberto Cabrera. This move isn't completely surprising considering the Cubs have some decent arms in Iowa now, and more on the way. There's not really room for a guy that seems stuck at the AAA level.


If you have a FreeNAS server, you can run a virtualised Jenkins server inside a FreeNAS jail. It will start and stop with your FreeNAS server, have its own IP address, and you can mount any folder from the FreeNAS file system as the Jenkins home folder. This has the advantage of keeping the server isolated in its own virtualised sandbox, while all the Jenkins jobs and configuration data is held on the FreeNAS file system. These steps were written for the most recent version of FreeNAS at the time of this page's creation: FreeNAS <IP_ADDRESS>.
Create a new jail for Jenkins
Log in to the FreeNAS admin console as root, or any user with enough privileges to create and configure jails. Create a new jail by navigating to Jails > Add Jails. Configure the jail settings to meet your requirements, but ensure that you change the jail type setting from the default pluginjail to portjail (the "standard" option should also work). Learn more about FreeNAS jail types here. Ensure that the Autostart and VMIMAGE and options are enabled.
Install Jenkins in the jail
Once the jail has been created, log in through the FreeNAS web admin console to install Java and Jenkins. Select the Jenkins jail you created from the Jails page and press the Shell button to open a shell as root inside the jail. Install the OpenJDK 7 with the following commands:
$ cd /usr/ports/java/openjdk7 $ make install clean BATCH=yes
When Java is installed, install Jenkins:
$ cd /usr/ports/devel/jenkins $ make install clean BATCH=yes
Configure Jenkins
FreeNAS is built on top of FreeBSD. You can read all about how to configure Jenkins on FreeBSD at the Jenkins CI wiki page for FreeBSD.
Enable and start Jenkins
Once Jenkins is installed, you must enable it by adding the following line to /etc/rc.conf:
jenkins_enable="yes"
Start Jenkins with the following command:
$ service jenkins start
Note that if you selected the Autostart when creating the jail, Jenkins will now start automatically when FreeNAS boots.
Access Jenkins
Once installed, configured, and started, you can access Jenkins from the jail's IP address on the port and path you specified. If you used the default settings, the URL will be:
http://<HOSTNAME>:8180/jenkins
For example, if your jail has the IP address <IP_ADDRESS>, the URL will be <IP_ADDRESS>:8180/jenkins/.


{{ define "main" }} {{- partial "header_2.html" . -}}
Plain vanila foreign currency option (including INR cross currency)
A/C AFK45675611 OPEN
Last Reported On - 8 Aug 2019
| Amount | ₹ 56,00,000 |
| Date | N100P670031 |
| Tenure | 08 Aug 2019 |
| Drawing Power | ₹ 5,00,000 |
| Installment Amount | ₹ 11,000 |
| Outstanding Balance | ₹ 46,39,463 |
| Repayment Frequency | Monthly |
| Loan Expiry | 09 Oct 2022 |
| High Credit | 0 |
| Last Repaid | 0 |
| Loan Renewal | - |
| Restructuring Reason | 0 |
| YEAR |
|---|
| 2017 |
| 2018 |
| 2019 |
| JAN | FEB | MAR | APR | MAY | JUN | JUL | AUG | SEP | OCT | NOV | DEC |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | ||||
| 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 |
| 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 | 1,50,000 |
| Amount | Reported On | Default Type | Suit Filed Address | Status |
|---|---|---|---|---|
| ₹ 15,00,800 | 4 Jul, 2016 | OVERDUE |
- | - |
| ₹ 23,45,000 | 10 Jun, 2016 | OVERDUE |
- | - |
| ₹ 15,00,800 | 4 Jul, 2016 | SUIT FILED |
Abhishek, 17-A, Gandharva, Near Hotel, Erandwane, Pune, Maharashtra 411004 | Trial in Progress |
| Type | Classification | Value | Valuation Date | Last Reported |
|---|---|---|---|---|
| Other Assets | Primary - First Charge | ₹ 15,00,800 | 10 Aug 2019 | 12 Dec 2019 |
| Other Assets | Primary - First Charge | ₹ 15,00,800 | 10 Aug 2019 | 12 Dec 2019 |
| Other Assets | Primary - First Charge | ₹ 15,00,800 | 10 Aug 2019 | 12 Dec 2019 |
| Name | Address | Telephone |
|---|---|---|
| Claudia Ferguson | Plot No, Building 12, MIDC, Mumbai, India | +91 123 456789 |
| Allie Williamson | Plot No, Building 12, MIDC, Mumbai, India | +91 123 456789 |
| Claudia Ferguson | Plot No, Building 12, MIDC, Mumbai, India | +91 123 456789 |


Chapter 3 Example 2 - Forstmann et al. (2008) dataset
We begin with a simple use case of the psamplers package with data from Forstmann et al. (2008).
3.1 Description of Forstmann experiment
First we need to install the psamplers package. We currently recommended installing psamplers via devtools.
# The samplers package will be on CRAN - this step will be removed.
install_github('gjcooper\samplers')
library(psamplers)
Forstmann et al looked at neural correlates of decision making under time pressure, with an aim to identify areas of the brain associated with speed-accuracy tradeoff. Imaging (fMRI) and behavioural data was collected; however, we will analyse behavioural data from the decision-making task only. In terms of modelling the data, Forstmann expected to find differences in thresholds (direction?) for each of the three speed-emphasis conditions. We have included the Forstmann et als data in the psamplers package as a data frame object named forstmann
. The sampler requires a data frame with a subject
column. The subject column data type can be a factor or numeric.
Table 3.1 shows the first ten trials from the Forstmann dataset. Participants (n = 19)
were asked to indicate whether a cloud of dots in a random-dot kinematogram (RDK) moved to the left or the right of the screen. The IV was a within-subject, speed-accuracy manipulation where, before each trial began, pariticipants were instructed to make their choice accurately (condition = 1)
, with urgency(condition = 3)
or were presented with a neutral message (condition = 2)
. Choice and response time data was collected. Choices were coded as correct (correct = 2)
or incorrect (correct = 1)
and response times (rt)
were recorded in seconds. For more information about the design of the experiment please see the original paper.
| subject | rt | correct | condition |
|---|---|---|---|
| 1 | 0.4319 | 2 | 1 |
| 1 | 0.5015 | 2 | 3 |
| 1 | 0.3104 | 2 | 3 |
| 1 | 0.4809 | 2 | 1 |
| 1 | 0.3415 | 2 | 1 |
| 1 | 0.3465 | 2 | 2 |
| 1 | 0.3572 | 2 | 2 |
| 1 | 0.4042 | 2 | 2 |
| 1 | 0.3866 | 2 | 2 |
| 1 | 0.3683 | 2 | 1 |
3.2 Setting up the sampler
We will use the Linear Ballistic Accumulator (LBA) (Brown and Heathcote 2008) to demonstrate how to use the psamplers package. The LBA model parameters are:
b
threshold parameter (the evidence required to make a response)v
is drift rate or average speed of evidence accumulationA
is the model’s start pointt0
is non-decision time.- Do we need to mention
sv
here?
We begin by creating a vector of parameter names for the model. You can name this object as you wish; however, in our example, we will call it pars
. The parameters you list in the pars
vector must match the names and number of parameters you include in your likelihood function.
pars <- c("b1", "b2", "b3", "A", "v1", "v2", "t0")
For this dataset, we use three threshold parameters (b1
, b2
, and b3
i.e. one for each condition) because we assume that the participant responds to each condition with a different level of caution. We include two drift rate parameters: v1
for the incorrect accumulator and v2
for the correct accumulator, a start point parameter A
and a non-decision time t0
parameter. We’ve made a decision to set the sv
to 1 to satisfy the scaling properties of the model, as such we haven’t included the sv
parameter in the pars
vector - it is found in the LBA’s likelihood function (see below).
Next we create a priors
object; a list that contains two components
theta_mu
a vector containing the prior for model parameter meanstheta_sig
the prior covariance matrix for model parameters.
priors <- list(theta_mu = rep(0, length(pars)),
theta_sig = diag(rep(1, length(pars)))
)
The priors
object in our example is initiated with zeros. Under what conditions would this priors object differ?
The next step is to include your log likelihood function. This must be called before you create the sampler object in the following step. You can load your log likelihood function from an external script:
source(file = "yourLogLikelihoodFile.R")
Or you can write a log likelihood function as we have done with the LBA log likelihood function below. If you’d like to run through this example, it is best to copy the lba_loglike
function from the code block below rather than copying from the following separate code chunks, as some curly braces have been removed from code chunks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
The lba_loglike
function takes three arguments:
x
is a named parameter vector (e.g.pars
)data
is your data set (e.g.forstmann
)sample =
default isFALSE
calculates a density function or set toTRUE
to generate a sample that matches the shape of data.
The first line in the lba_loglike
function (Line 2 below) takes the exponent of the parameter values to move all parameter values to the real line. The purpose of this is to….. Line 3 and 4 then checks RTs are faster than the non-decision time parameter, and zero those RTs that are faster than non-decision time.
1 2 3 4 5 |
|
Next (Line 7) we create a vector containing threshold parameters for each row in the data set that takes into account the condition and adds the start point value. We add the start point parameter A
value to each threshold parameter so that threshold is greater than the start point value.
7 |
|
The if else
statement below (Line 9-32) does one of two things: if (sample)
calculates the posterior predictive data and the else
statement calculates the density function. Toward the end of the else
statment (line 28) we take all implausible likelihood values, assign them to the bad
object and set them to zero. The final line in the else
statement takes the log of all likelihood values, sums them and then assigns the model’s log likelihood value to the out
variable.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
Once you’ve setup your parameters, priors and your log likelihood function, the next step is to initialise the sampler
object.
sampler <- pmwgs(
data = forstmann,
pars = pars,
prior = priors,
ll_func = lba_loglike
)
The pmwgs
function takes a set of arguments (listed below) and returns a list containing the required components for performing the particle metropolis within Gibbs steps.
data =
your data - a data frame (e.g.forstmann
) with a column for participants calledsubject
pars =
the model parameters to be used (e.g.pars
)prior =
the priors to be used (e.g.priors
)ll_func =
name of log likelihood function you’ve sourced above (e.g.lba_loglike
)
3.2.1 Model start points
You have the option to set model start points. We have specified sensible start points for the Forstmann dataset. If you chose not to specify start points, the sampler will randomly sample points from the prior distribution.
start_points <- list(
mu = c(.2, .2, .2, .4, .3, 1.3, -2),
sig2 = diag(rep(.01, length(pars)))
)
The start_points
object contains two vectors:
mu
a vector of start points for the mu of each model parametersig2
vector containing the start points of the covariance matrix of covariance between model parameters.
3.2.2 Running the sampler
Okay - now we are ready to run the sampler.
sampler <- init(sampler, theta_mu = start_points$mu,
theta_sig = start_points$sig2)
Here we are using the init
function to generate initial start points for the random effects and storing them in the sampler
object. First we pass the sampler
object from above that includes our data, parameters, priors and log likelihood function. If we decided to specify our own start points (as above), we would include the theta_mu
and theta_sig
arguments.
Now we can run the sampler using the run_stage
function. The run_stage
function takes four arguments:
x
thesampler
object including parametersstage =
the sampling stage (e.g."burn"
,"adapt"
or"sample"
)iter =
is the number of iterations for the sampling stageparticles =
is the number of particles generated on each iteration
It is optional to include the iter =
and particles =
arguments. If these are not included, iter
and particles
default to 1000. The number of iterations you choose for your burn in stage is similar to choices made when running deMCMC, however, this varies depending on the time the model takes to reach the ‘real’ posterior space.
First we run our burn in stage by setting stage =
to "burn"
. Here we have set iterations to be 500, which may take some time.
burned <- run_stage(sampler, stage = "burn", iter = 500, particles = 1000)
Now we run our adaptation stage by setting stage = "adapt"
Because we have not specified number of iterations or particles, the sampler will use the default value of 1000 for each of these arguments. N.B. The sampler will quit adaptation stage after 20 unique values have been accepted for each subject. This means adaptation may not use all 1000 iterations.
adapted <- run_stage(burned, stage = "adapt")
At the start of the sampled
stage, the sampler object will create a ‘proposal’ distribution for each subject’s random effects using a conditional multi-variate normal. This proposal distribution is then used to efficiently generate new particles for each subject which means we can reduce the number of particles on each iteration whilst still achieving acceptance rates.
sampled <- run_stage(adapted, stage = "sample", iter = 100, particles = 100)
References
Brown, Scott, and Andrew Heathcote. 2008. “The Simplest Complete Model of Choice Response Time: Linear Ballistic Accumulation.” Cognitive Psychology 57 (3). Elsevier: 153–78.
Forstmann, Birte U, Gilles Dutilh, Scott Brown, Jane Neumann, D Yves Von Cramon, K Richard Ridderinkhof, and Eric-Jan Wagenmakers. 2008. “Striatum and Pre-Sma Facilitate Decision-Making Under Time Pressure.” Proceedings of the National Academy of Sciences 105 (45). National Acad Sciences: 17538–42.


tags #architecture The Sound of Civilisation: I. Intros and Endings July 8, 2020 The Synopsis of Civilisation July 7, 2020 #art The Sound of Civilisation: I. Intros and Endings July 8, 2020 The Synopsis of Civilisation July 7, 2020 Reverberating the Artistry March 25, 2020 #film In the Name of Liberté: III. Reign or Die April 24, 2020 In the Name of Liberté: II. The Sunset of Monarchy April 18, 2020 In the Name of Liberté: I. From Versailles to Paris April 15, 2020 #history The Sound of Civilisation: I. Intros and Endings July 8, 2020 The Synopsis of Civilisation July 7, 2020 In the Name of Liberté: III. Reign or Die April 24, 2020 In the Name of Liberté: II. The Sunset of Monarchy April 18, 2020 In the Name of Liberté: I. From Versailles to Paris April 15, 2020 Reverberating the Artistry March 25, 2020 #life Rethink the Programmed Life January 6, 2019 A Second Childhood November 18, 2018 #music The Sound of Civilisation: I. Intros and Endings July 8, 2020 Reverberating the Artistry March 25, 2020 #science The Duties of Scientists December 1, 2018 #television The Sound of Civilisation: I. Intros and Endings July 8, 2020 The Synopsis of Civilisation July 7, 2020 Reverberating the Artistry March 25, 2020 The World around the Knick: Ia. The Playbill November 14, 2019 #theater The Turbulence of Metamorphosis December 9, 2018


| Class | DelayedFixtures::DelayedFixture |
| In: |
lib/delayed_fixtures.rb
|
| Parent: | Object |
This class is used to implement delayed fixture values. Specifically, during class definition and within class methods, the fixtures aren‘t yet loaded. As a consequence, fixture helpers are also not available. Delayed fixtures allow for the delay of the evaluation of the fixture helpers until after the fixtures are loaded. Method calls on a fixture is also allowed. This is accomplished by intercepting the method calls and replaying them later once the fixture is available. To attempt to resolve the value of the delayed fixture, use the _resolve method.
Note: The majority of the testing helpers will automatically resolve DelayedFixtures without an explicit call to _resolve.
Example:
class UserTest < ActiveSupport::TestCase ConstantName = users(:joe).name.reverse def test_something assert_equal ConstantName._resolve, users(:joe).name.reverse end end
| _delayed_fixture_value_fixture | [RW] | |
| _delayed_fixture_value_meth | [RW] | |
| _delayed_fixture_value_name | [RW] |
Create a new delayed fixture. Pass the name of the fixture group and the name of the fixture within the group. Meth should not be specified as it is used internally to connect ot the original fixture helper method.
Example:
joe = DelayedFixture.new("user", "joe")
# File lib/delayed_fixtures.rb, line 36 36: def initialize(fixture, name, meth=nil) 37: @_delayed_fixture_value_fixture = fixture 38: @_delayed_fixture_value_name = name 39: @_delayed_fixture_value_meth = meth 40: @chain = [] 41: end
Attempts to resolve the value of the delayed fixture. If the fixtures have not been loaded then this returns self. Otherwise it will attempt to locate the fixture and call all of the requested methods on it.
Note: The majority of the testing helpers will automatically resolve DelayedFixtures without an explicit call to _resolve.
Example:
joe = DelayedFixture.new("user", "joe").name.reverse joe._resolve #=> eoj
# File lib/delayed_fixtures.rb, line 52 52: def _resolve 53: if _delayed_fixture_value_meth.nil? 54: self 55: else 56: @chain.inject(_delayed_fixture_value_meth.call(_delayed_fixture_value_name)) { |rc, chain| rc.send(chain.first, *chain.last) } 57: end 58: end


This section covers the file generation when running with the built-in modules. A lot of muscle went into the process of figuring out a sensible and pragmatic default project structure that satisfies the needs of the most common use cases, so we advise you to give the built-ins a shot, even if they don’t cover your specific scenario right away. Remember, customizing is always easy once you understand what’s actually going on.
The main structure for every project you create with Django Chuck is defined by the core module. It is by definition the entry point to every project you create. In fact, it defines (and has to define!) the very skeleton of every project you’re building with Chuck. It is also the only module that will always get installed with top priority. You can override the built-in core module by providing your own via module_basedirs in your config file.
The built-in core module enforces the following structure:
| Folder | Description |
|---|---|
| db | This is the folder, where your dev SQLite database gets created when not providing other defaults through a module. The folder and its contents are by default excluded from version control. |
| <project_name> | This is the main project folder. Everything that is Django-related about your project should reside within this folder. |
| .gitignore | Speaks for itself, we guess. Contains some sensible defaults. |
| manage.py | Again, this should be clear to any Djangonaut. |
| chuck_setup.py | This is the file that represents the Django Chuck project setup. Most important when using the the chuck setup_project command |
By default all normal settings like STATIC_ROOT, TEMPLATE_DIRS, MIDDLEWARE_CLASSES and INSTALLED_APPS are located in project/settings/common.py. All settings that are likely to be changed after project creation like ADMINS, LANGUAGE_CODE and INTERNAL_IPS can be found in custom.py. Additionally there are settings for development environment (dev.py), for a staging environment (stage.py) and for live aka production (live.py).
Note
If you include the unittest module you will also get a project/settings/test.py that can be used to easily setup your project in the continuous integration system Jenkins.
| Folder | Description |
|---|---|
| <project_name>/settings/ | The settings folder |
| <project_name>/settings/__init__.py | This one’s clear, ain’t it. |
| <project_name>/settings/common.py | This is the place where all the shared settings like INSTALLED_APPS go. Most likely to be extended in modules. |
| <project_name>/settings/custom.py | Gets imported by common.py. This is the place for storing settings that are likely to change, like INTERNAL_IPS, ADMINS and so on |
| <project_name>/settings/dev.py | This is the file that represents all the needs of your development environment. By default, this file gets exported as DJANGO_SETTINGS_MODULE in your virtualenv. This can be changed via config file. Imports * from common.py |
| <project_name>/settings/live.py | This is meant to represent any settings specific to your production environment. Imports * from common.py |
| <project_name>/settings/stage.py | This is meant to represent any settings specific to your staging or integration environment. Imports * from common.py |
| Folder | Description |
|---|---|
| templates | The template folder. |
| templates/404.html | A simple default 404 page that gets displayed whenever such an error occurs. |
| templates/500.html | A simple default 500 page that gets displayed whenever such an error occurs. |
| templates/base.html | Should be the base for every HTML response except the error pages. Defines the very basic structural elements like the doctype, the heading and the body. |
| templates/site_base.html | Extends base.html and defines meta information, global style and script directives and so on. |
| templates/subsite.html | Extends site_base.html, example for an actual template. |
| Folder | Description |
|---|---|
| requirements/ | The requirements folder. |
| requirements/requirements.txt | Contains the requirements for all environments. |
| requirements/requirements_local.txt | Entries should only be installed on your workstation. |
| requirements/requirements_dev.txt | This entries should get installed if you are a Django developer. This is the place where debugging and testing tools’ requirements go. |
| requirements/requirements_live.txt | Takes all requirements that are used to get your hosting up and running (e.g. the production database driver). |


Feel free to Click Anywhere
Mouse over a line to pluck it
Double Click a circle to start a chain reaction


Is your IT infrastructure too complex? Too costly to operate? Too slow in responding to the needs of your business? If so, you're not alone. And you've come to the right place for help.
Infrastructure convergence helps you increase IT speed and agilityby making the data center simpler, more flexible, more efficient and less expensive to operate. It achieves this by breaking down rigid, complex IT silos around your network, data center and storage infrastructures and transforming them into adaptive pools of resources that can be shared by many applications and managed as a service. It also includes embedded security at both the perimeter and core of your network, as well as power and cooling management capabilities so systems and facilities work together. Taken together, converged infrastructure accelerates the provisioning of IT services and applications to deliver value to the business in a systematic, repeatable, and secure environment.
A recentIDC studyproved the practical benefits of infrastructure convergence. Businesses that have implemented HP Converged Infrastructure have been able to cut application provisioning time by 75% and reduce downtime by 97%. Moreover, these companies have been able to shift more than 50% of their IT resources from resources to innovation.
"We went from approximately 600 physical servers down to 150," says Steven Ross, VP of Technology at clothing retailerChico's. "We also increased our processing capabilities…across more than 1,000 stores and our e-commerce Website by 50% in less than eight weeks."
Infrastructure convergence has made the emergence of cloud computing and the promise of services anywhere, anytime a reality. But cloud is not one-size-fits-all. Organizations considering cloud adoption must consider the right mix of on- and off-premises services that leverage the best of traditional IT with private, managed and public cloud. Read on to learn more about how converged infrastructure provides the ideal foundation forconverged cloud.
While new technology tools can drive business value, they also bring added complexity to the data center. Learn how to simplify IT operations while staying current with the latest solutions.
View Now >IT departments continue to take on additional responsibility in the enterprise. This whitepaper outlines the most critical support elements to be aware of.
View Now >With so much focus on maintaining the IT infrastructure, there is often little time left for innovation. Get the validated skills you need to become a more agile, service centric business.
View Now >With so much focus on maintaining the IT infrastructure, there is often little time left for innovation. Get the validated skills you need to become a more agile, service centric business.
View Now >There's a lot of buzz around how to improve the overall data center efficiency. This guide outlines how to avoid the mistakes that could cost you millions.
View Now >With so many theories on how to best optimize the infrastructure, IT pros need to make sure they follow the right path. Check out this essential resource to get the facts.
View Now >CIOs spend up to 70% of their budgets on operations. Download this solution brief to learn how to shift your investment focus to innovation. View now
Download this book to get the inside track on infrastructure convergence: the trends, methodologies and value it can deliver to you.


This is a basic example with a display.
Click to display the next post. A demo for Cardboard, but demoted to this page because high resolution Ansel shots look terrible on Cardboard.
Back to main page.


Annoy-omatic v2
Ask the user "Are we there yet?"
Keep asking until they answer "yes" or "yeah"
Then alert, "Yay! We finally made it!"
BONUS: A user can enter any strong as long as it contains "yes"


--- layout: post title: iPods and walkman date: 2005-01-26 00:00:00 categories: business personal social ---
Dell CEO calls iPod a fad: "When the Walkman arrived in 1980 it changed everything. Music became portable. For those of us not dumb, arrogant, tasteless or brave enough to carry a giant boom-box around on our skinny, teenage shoulders the Walkman was a technological marvel."
His comparison between Apple and Dell is pretty interesting too... Apple are 2.4bn compared to Dells 13.5bn. Hmm, OK so that's 17% of the size, but hardly orders-of-magnitude less. Shit, we compete (and occasionally win out) against companies more than 5 times our size, so I think Mr Rollins is being a tad dismissive...


We optimize blockchain!
- monetize B2C niches
- morph robust solutions
- engineer user-centric initiatives
- brand open-source networks
- empower turn-key solutions
- maximize sticky channels
- seize customized metrics
- visualize plug-and-play architectures
- aggregate granular e-services


Hi, I'm Wei. I am currently learning programing at Epicodus.
 We live in the east-side of Washington.I live in Montreal, Canada for 10 years. I begin to love the rain here in Washington.