Driverless Trucks, $79 Laptop, Negotiaiting Salary, Fotokite, Win95 on Applewatch
The driverless truck is coming, and it’s going to automate millions of jobs
Before we get driverless cars, driverless trucks have the potential to revolutionize the goods distribution system on land. It will reduce cost and reduce the time for delivery of goods. It will pose a considerable impact to the large amount of drivers that the industry currently employs.
A $79 Remix OS laptop may be on the way
RemixOs brings android to your laptop as an OS. It was being sold as an OS to install in your slow running old PCs and laptops. A Chinese manufacturer wants to sell you a new laptop with the RemixOS and sell it for under a hundred bucks.
How one Silicon Valley engineer negotiated a starting salary from $120,000 to $250,000 in just a few weeks
Some good insights that will help you on your next job hunt.
Fotokite for your dronies aka drone selfies
I have always worried about a drone getting away while flying it. The fotokite is a great drone for all of us who are afraid to loose a drone.
Developer hacks Apple Watch to boot and run Windows 95
All I can say is wow … a tip of the hat to some ingenious skills.


38+ Logo Kung Fu Wallpaper Background. In addition to png format images, you can also find kung fu logo vectors, psd files and hd background images. Support us by sharing the content, upvoting wallpapers on the page or sending your own background pictures.
Kung fu panda wallpapers we have about (35) wallpapers in (1/2) pages. Find the best kung fu panda wallpapers on wallpapertag. The best quality and size only with us!
Wallpapers » k » 87 wallpapers in kungfu wallpapers collection.
Download, share or upload your own one! 1,000+ vectors, stock photos & psd files. Just install the extension with beautiful themes and enjoy your favorite pictures! Kung fu panda wallpapers we have about (35) wallpapers in (1/2) pages.


This is a page of links to the build output for JayWalker that gets generated when you run the default ant target for build.xml.
If the link you click on gives a "Page Not Found Error", chances are you need to do a build.


{% extends "oauth/_layouts/cp" %} {% import "_includes/forms" as forms %} {% set selectedTab = 'tokens' %} {% set content %}
{{ "No tokens exist yet."|t }}


A.1 Informed consent:
If there are human subjects, have they given informed consent, where subjects affirmatively opt-in and have a clear understanding of the data uses to which they consent?
A.2 Collection bias:
Have we considered sources of bias that could be introduced during data collection and survey design and taken steps to mitigate those?
A.3 Limit PII exposure:
Have we considered ways to minimize exposure of personally identifiable information (PII) for example through anonymization or not collecting information that isn't relevant for analysis?
A.4 Downstream bias mitigation:
Have we considered ways to enable testing downstream results for biased outcomes (e.g., collecting data on protected group status like race or gender)?
B. Data Storage
B.1 Data security:
Do we have a plan to protect and secure data (e.g., encryption at rest and in transit, access controls on internal users and third parties, access logs, and up-to-date software)?
B.2 Right to be forgotten:
Do we have a mechanism through which an individual can request their personal information be removed?
B.3 Data retention plan:
Is there a schedule or plan to delete the data after it is no longer needed?
C. Analysis
C.1 Missing perspectives:
Have we sought to address blindspots in the analysis through engagement with relevant stakeholders (e.g., checking assumptions and discussing implications with affected communities and subject matter experts)?
C.2 Dataset bias:
Have we examined the data for possible sources of bias and taken steps to mitigate or address these biases (e.g., stereotype perpetuation, confirmation bias, imbalanced classes, or omitted confounding variables)?
C.3 Honest representation:
Are our visualizations, summary statistics, and reports designed to honestly represent the underlying data?
C.4 Privacy in analysis:
Have we ensured that data with PII are not used or displayed unless necessary for the analysis?
C.5 Auditability:
Is the process of generating the analysis well documented and reproducible if we discover issues in the future?
D. Modeling
D.1 Proxy discrimination:
Have we ensured that the model does not rely on variables or proxies for variables that are unfairly discriminatory?
D.2 Fairness across groups:
Have we tested model results for fairness with respect to different affected groups (e.g., tested for disparate error rates)?
D.3 Metric selection:
Have we considered the effects of optimizing for our defined metrics and considered additional metrics?
D.4 Explainability:
Can we explain in understandable terms a decision the model made in cases where a justification is needed?
D.5 Communicate bias:
Have we communicated the shortcomings, limitations, and biases of the model to relevant stakeholders in ways that can be generally understood?
E. Deployment
E.1 Monitoring and evaluation:
How are we planning to monitor the model and its impacts after it is deployed (e.g., performance monitoring, regular audit of sample predictions, human review of high-stakes decisions, reviewing downstream impacts of errors or low-confidence decisions, testing for concept drift)?
E.2 Redress:
Have we discussed with our organization a plan for response if users are harmed by the results (e.g., how does the data science team evaluate these cases and update analysis and models to prevent future harm)?
E.3 Roll back:
Is there a way to turn off or roll back the model in production if necessary?
E.4 Unintended use:
Have we taken steps to identify and prevent unintended uses and abuse of the model and do we have a plan to monitor these once the model is deployed?
Data Science Ethics Checklist generated with
deon.


Why?
- It's easy
- It's expected
- It's cheaper than mailers and a trip to NYC
everyone on the internet has ADHD
employers are busy people
Depth
- Relevant bits on the surface
- Reward those who dig deeper
3 Questions
- Who are you?
- What do you do?
- How do I get in contact?
Who are you?
- Short bio and maybe a photo
- Expanded bio
- Artist's statement
What do you do?
- Portfolio
- résumé / cv
- news / blog
Portfolios
- 10-12 images
- offer details on a deeper level if needed
How do I Portfolio?
- Connect the dots
- Make a story
- Have a justification for everything
Portfolios
- Learn to edit
- if you can't decide whether or not to include something... don't.
News / Blog
- Keep it current
- or don't keep it at all
How do I contact you?
- Make it easy
- Email link in footer on every page
- Contact page with info
- Contact form
Things to Remember...
- Who are you?
- What do you do?
- How do I get in contact?


McDonald’s Shamrock Shake is one of McDonald’s best known menu items. This minty ice cream treat makes an annual appearance for St. Patrick’s day. If you wanted to make one yourself, you can do so any time of year now.
This ice cream drink is so easy to make. You just need a couple of ingredients. Some recipes online I have seen ask for mint extract. That is pretty good to use, but if you use a food grade quality mint oil, the flavor is well incredible. You could also use milk, but I promise if you use half and half, you are going to have one rich and creamy milk shake.
Before starting this recipe I like to let my ice cream sit out on the counter for a few moments. This way it is a little softer and will blend more easily. You may want top your shake with cookie crumbs, Girl Scout Mint Cookies, or even a sprig of mint if you want to make this look fancy.
McDonald's Shamrock Shake
Make this McDonald's menu item any time of year.
Ingredients
- 2 cups vanilla ice cream
- 1/4 to 1/2 cup half and half
- 4 to 6 drops mint oil (mint flavored extract is ok)
- 2 to 3 drops green food coloring
- Whipped Cream
Instructions
Allow ice cream to soften for about 10 minutes so it will be easy to blend. Combine all ingredients in a blender and puree for about 30 seconds. Serve immediately. Top with whipped cream.
Note: If you want to go dye free, omit the green food coloring, it tastes just the same without the food coloring.
Print Recipe


'Baseketball' (1998)
A movie review by Walter Frith
Member of the 'Internet Movie Critics Association' http://www.geocities.com/Hollywood/Studio/5713/index.html
and
Member of the 'Online Film Critics Society' http://smart.sbay.com/ofcs/
The only thing that's worse than viewing a really bad movie is seeing a really bad movie that actually HAD potential. I love movies that take cynical and sarcastic jabs at all the things that make most of us angry. Recent high school graduates signing NBA contracts in the 100 million dollar range which they don't deserve because they haven't proven themselves in the big leagues. Teams switching cities, disregarding fan loyalty even though their profits are substantial. Sports stadiums and arenas given corporate names and plastering their marketing strategy in people's faces until their exhausted and the way some sports, like hockey, disregard rules in favour of dirty play. 'Baseketball' makes fun of all these things but loses sight of the fact that gross-out gags can only carry a movie so far.
Trey Parker and Matt Stone, the creators of television's 'South Park', star as two social misfits who, while at a party one night in the suburbs, invent a game in the driveway of their hostess and later call in baseketball. A cross of course between baseball and basketball that in reality looks pretty boring. Like strikeout in baseball, the idea to retire you opponent in baseketball is the 'psyche' out where you mentally tease members of the other team to distract them from doing their job. I was sick of the game of baseketball after the second or third scene involving it. The game grows in popularity slowly until a billionaire (Ernest Borgnine) wants to take the game professional. Five years pass and the game is so popular that it ranks up there with the other major sports and arenas are packed with fans and Bob Costas and Al Michaels, two of America's best sports broadcasters, are the chief announcers for the Milwaukee Beers, the name of the team that Parker and Stone play for.
One tasteless scene makes fun of the fact that Borgnine, the owner of the Beers, chokes on a hot dog at the championship game and dies and the Beers lose. At the reading of the will, Parker is given majority control of the team but if the team loses the championship next year, controlling interest reverts to Borgnine's widow (Jenny McCarthy). Gee, like that doesn't give away the ending. Don't blame me. I'm saving you money by telling you that the movie makes this obvious, predictable, and you've seen it all before. McCarthy is pursued by the villainous owner (Robert Vaughn) of the Dallas Felons (can you guess what team they're making fun of here?) who tries to get close to her and take over the team himself. Parker and Stone both fall for a beautiful humanitarian (Yasmine Bleeth) who runs one of those programs for underprivileged children.
The creators of 'The Naked Gun' and 'Airplane!' series are responsible for this mess of a movie that doesn't have the first clue where to draw the line, keep its ideas fresh or be entertaining and convincing without using crude humour. I found Parker and Stone completely untalented in this film. How can two guys who make such a sharp and funny show like 'South Park' miss the mark by so much here? Director David Zucker lets every joke fall flat and 'Baseketball' will only appeal to the dirty minded adult and the care free mind of pre teens. How about something for the rest of us?
OUT OF 5 > zero
Visit FILM FOLLOW-UP by Walter Frith http://home.netinc.ca/~wfrith/movies.htm
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


Hi there,
I am a full stack developer with a passion for thoughtful UI design, collaboration, and teaching.
When am not coding,I love singing,it's a talent!
I bring designs to life with various languages that I have learnt
because I want to make things that make a difference.
Python
Javascript
Django
Flask
Angular
HTML
An application where github users can search various projects and other users
Technologies Used:Html, css, Bootstrap4 and Javascript
View ProjectAn application where users can have a collection of their pictures
Technologies Used:Html, css, Bootstrap4 and Django framework.
View ProjectAn application where one inputs a number and tests its divisibility by three,five or both.
Technologies Used:Html, css, Bootstrap4,Javascript
View ProjectAn application where one gets informed about the current news and affairs about particular news categories
Technologies Used:Html, css, Bootstrap4 and Javascript
View ProjectAn application where one gets to know about Kenya by playing a boardgame
Technologies Used:Html, css, Bootstrap4 and Javascript.
View ProjectAn application where one can add,delete and rate quotes that other people have posted.
Technologies Used:Html, css, Bootstrap4,Angular
View Project


EXPORT
CLONE
NEW
Include JS in html
Include CSS in html
×
DOWNLOAD AS ZIP
Ad
JS
CSS
HTML
Clear Console?
Lint?
Saved!
Script Load Type
On Load
On DOM Ready
Bottom of head
Bottom of body
Language
This Browser's JS
ES6 with Babel
CoffeeScript
TypeScript
JSX+Babel
Preprocessor
Plain HTML
Haml
Markdown
Highlight Selected Element
Preprocessor
CSS
SCSS
SASS
Stylus
#document
RESULT|
x
PRESETS
iPHONE 6/7/8
iPHONE 6/7/8 Plus
iPHONE 5/SE
GALAXY S5
iPHONE X
DESKTOP


Oracle 10g Notes:
Note - for Oracle, only version 10g is supported.
The following notes come from Nick Hill. Thanks Nick!
When you install BlogCFC onto a server utilizing Oracle as your datasource, you will need to be aware of some factors that may inhibit the installation. The installation scripts are broken into 2 parts. The first is the table creation, grants and constraints. The second part is utilizing Oracle Synonyms to allow for general relation of tables names to limit the difference in the application code.
In some production scenarios access to Public Synonyms is blocked by the DBA. Oracle may be configured as a single database with multiple schemas. If public synonyms were allowed, any schema would be able to access the BlogCFC tables. If the previous scenario does not apply to your Oracle installation you may not have any issues with the Oracle scripts as they are currently written. If however your installation does match the above described scenario please be aware of the following changes to the scripts.
Oracle.sql
The first thing to be aware of is that when you are running
this script you will want to be logged in as the SCHEMA OWNER for the Oracle
schema and NOT the CF Datasource user that you are about to configure. It is a
good practice to use a separate Oracle User (not the schema owner) for
CFAdministrator to access your Schema. Specific to the script you will want to
make changes to the lines that follow insert into TBLUSERS
You will first want to change yourschema
to not be a
schema name, but actually the separate Oracle User that you will assign to the datasource
in CF Administrator. Ex. (make sure you do not use these example names)
Oracle Schema: MyBlog
Oracle Schema Owner: BlogAdmin
CFAdministrator User: CFBlogAdmin
(This is the name you enter in CFAdministrator in the "Data & Services > Datasources > Oracle" Screen next to the "User name" label).
Before you run Oracle.sql replace yourschema
with the
CFAdministrator User (CFBlogAdmin).
Logged in as the schema owner (BlogAdmin) you will run Oracle.sql. This will grant the necessary priviledges to CFAdmin.
Oracle_synonyms.sql
This is where Oracle is different from the other DB's. You will now want to LOGOUT as the Schema Owner (BlogAdmin) and log in as the CFAdmin User (CFBlogAdmin). Before you run oracle_synonyms.sql you will need to make some changes to the code. You will need to preface each tablename with the Oracle Schema that is being used. Ex.
CREATE SYNONYM TBLUSERS FOR MyBlog.TBLUSERS;
With all of the lines changed, now you will want to run this script as the CFAdmin user (CFBlogAdmin). What you have done is created a PRIVATE synonym for these tables that ONLY CFAdmin will be able to use which will ensure that you do not have to preface every table name in the Client code with additional scoping of the Oracle Schema.


The Todo list
- Create an array of objects, where each object describes a task and has properties for
the
description
(a string),priority
(a string), and whether or not it'sdone
(boolean) - Iterate (loop) through the array of tasks and output the task using an if/else statement to change the output depending on whether it's done or not. If it's done, log a string like '[X] Sleep (high)', and if not, log a string like '[ ] Sleep (high)'


All this success happened in a single day of taking some action and putting yourself out there to be heard. The broader theme of this source is that the path to your goals will not come without obstacles. The Freedom Riders’ goal was to ride down route 40 and protest sit-ins at various restaurants to promote desegregation. Little did they know that they would be faced with angry civilians at the city of Aberdeen or that they would have multiple arrests of their members that day. All was peaceful to begin with but you never know what may be thrown in your way. This source helps us understand the civil rights movement locally because it is so familiar in ways. The movement is not as familiar to many, as we did not experience it, but when we hear about demonstrations and protests that happened in our neighborhoods and restaurants, it becomes very real and opens up a new perspective to the civil rights movement. We realize that we are eating at the same restaurants and driving down the same highways as did the Freedom Riders when they were fighting for racial equality before we were even alive! It makes the civil rights movement seem more real to me individually as opposed to reading about what Rosa Parks did when sitting in the front of a bus in Virginia. It captures our attention and inspires us to make a difference in today’s racial conflicts. The reading helps us understand small victories as opposed to what we learn about in the textbook readings. Chapters 28 and 29 from the textbook teach us the general idea about the large organizations such as the NAACP, SNCC, MFDP, and more. The textbook does touch the topic of students participating in freedom rides, but never goes into detail. It is fine to learn about these things but hearing about the demonstrations in your hometown area and seeing the small victories that can happen to make a difference makes it much easier and more interesting to read and learn about. One particular quote that really stuck out to me and helped me learn more about the civil rights movement was when the newspaper talked about James Peck and his involvement with the Freedom Riders. James Peck was fully involved in this movement as he was an editor for the CORE magazine and a founder of the Freedom Riders! This man’s whole life revolved around fighting for racial equality and he even took some beatings for it as well. This taught me that putting effort into something that you are passionate about can help make a difference. Even if his efforts didn’t create racial equality around the world, it made a difference to even just 35 restaurants desegregating their institutions in my hometown. When you hear about success like that, it makes you seem like a true hero to the people and causes that you fight for.


Little & Co. Inc
(863)797-4957
Home
Contact
Products
Interested in food-grade paper made to order?
Fill out the form below and our sales team will contact you.
Name
Phone
Email address
We'll never share your info with anyone else.
Message
I would like to sign-up for your newsletter
Submit
Copyright ©


Just your above average girl from the Boogie Down, with a love for pretty things and a dream of being a UX writer and designer.
I'd love to hear from you!
Shoot me an email, or a call.
Bronx, NY
+1<PHONE_NUMBER>
cassandraplouis@gmail.com


NPM
NPM improved a lot, post v5+, but it still behind Yarn in some features, nothing serious tough. Pick any!Yarn
SASS
PostCSS
Post is not a pre-processor but can be use as one. Go for SASS and revisit Post CSS later. There is still some Less in the market but i won't go for it if i was startinf in 2019.Less
Bootstrap
Materialize CSS
Bulma
Semantic UI
BEM
With modern front-end frameworks, there is more push towards CSS in JS methodologies with wich you are not going to need these. However, you should still learn BEAM at-least, wich would prove helpful in the long run.OOCSS
SMACSS
Semantic UI
Task Runners
Linters and Formatters
Module Bundlers
React.js
Angular
Vue.js


This implementation guide uses the *HL7 Clinical Document Architecture, Release 2.0 (CDA R2) *as its base standard. CDA R2 is “… a document markup standard that specifies the structure and semantics of ‘clinical documents’ for the purpose of exchange” [CDA R2, Section 1.1]1. Clinical documents, according to CDA, have the following characteristics:
CDA defines a header for classification and management and a document body that carries the clinical record. While the header metadata are prescriptive and designed for consistency across all instances, the body is highly generic, leaving the designation of semantic requirements to implementation.
1 http://www.hl7.org/implement/standards/product_brief.cfm?product_id=7


Video Element
Video with some advance transformation
Dynamic transformation update directly using IKImage
Click here to apply transformations on the above image
Lazy loading image
Transformation - height and width manipulation
Click here to apply max radius on above image
Progressive image loading without lazy loading
Progressive image loading with lazy loading
Upload
To use this funtionality please remember to setup the server
Your above uploaded file will appear here
Upload with custom button


tiny trainable instruments
abstract
tiny trainable instruments was my master's thesis at MIT Media Lab,
where i was a research assistant at the Opera of the Future and Future
Sketches research groups between 2019-2021.
this thesis was an exploration of artistic and musical expression using
the nascent field of tiny machine learning, for low-fidelity use of
artificial intelligence using microcontrollers.
credits
Aarón Montoya-Moraga:
-
research on tiny machine learning using Arduino and TensorFlow for
microcontrollers, with a focus on privacy-preserving offline
strategies
-
design, writing and teaching of introduction to tiny machine learning
workshops for beginners and artists, conducted over videoconference
and in English and Spanish
-
publishing open source code software libraries and repositories using
budget-friendly materials from Adafruit and Arduino
-
mentoring of 2 undergrad researchers, who co-wrote and proofread the
materials developed over the course of this research
software library
the software library for this project is available at the repository
https://github.com/montoyamoraga/TinyTrainable, and it was also published at the Arduino library registry and can be
installed directly from the IDE.
hardware
workshops
this thesis project included teaching 3 workshops (2 in English for USA,
1 in Spanish for Chile), and won an MIT grant for funding the materials
and shipping costs to all participants.
10 people joined each instance, for a total of 30 students, and 12 hours
teaching to beginners with no programming or machine learning
experience.
additional links
back to portfolio


"EZEL "a separation, (1 Samuel 20:19), a stone, or heap of stones, in the neighbourhood of Saul’s residence, the scene of the parting of David and Jonathan (42). The margin of the Authorized Version reads, “The stone that sheweth the way,” in this rendering following the Targum.
"EZEL "a separation, (1 Samuel 20:19), a stone, or heap of stones, in the neighbourhood of Saul’s residence, the scene of the parting of David and Jonathan (42). The margin of the Authorized Version reads, “The stone that sheweth the way,” in this rendering following the Targum.


Bootlaterus includes extended classes to create carousels that look great with images of different sizes forcing a fixed aspect ratio (see Aspect Ratio Utilities) and using background-images that scale safely.
For more a complete example with React-Bootstrap check this repo.


Band Plan Plugin
Purpose
This is a non-visual plugin that works behind the scenes and provides the band plan data to other plugins. In particular, the Frequency Display plugin receives information from this plugin when it needs to switch to the next or previous band, and the Waterfall Display plugin uses band plan information to paint the band map.
Settings
Mode Colors
Background colors for different Ham modes. Click on the ellipses button [...] to open the collection editor:
Add or remove the entries on the left panel, and set the mode name and color on the right panel. Click on the OK button to save the changes.
Band Plan Files
Band Plan information is stored in the JSON files located in this folder:
C:\ProgramData\Afreet\HamCockpit\VE3NEA\BandPlans
The users may create their own band plan files with a text editor and switch between them using a drop-down list on the Toolbar
It is recommended to have at least two band plans, one for the regular operation and another for contesting, since frequency allocation by mode changes significantly during the contests.
Band Plan File Format
The band plan file contains a list of band segments. Each segment has these parameters:
Band - the band name, preferably as defined in the ADIF format.
StartFrequency, EndFrequency - the boundaries of the band, in Hertz.
DefaultFrequency - when changing the bands, the radio will be initially tuned to this frequency. Assumed to be equal to StartFrequency if not specified.
PrimaryMode - the main mode in the given frequency segment. Used, in particular, to infer the mode of a cluster spot from its frequency.
ValidModes - all modes allowed in the segment. Used, in particular, by the skimmer plugins to determine where to decode a particular mode. If not specified, assumed to include only the primary mode.
MainSegment - On some bands, there is more than one segment used for a particular mode. For example, the 14074-14078 kHz and 14095-14099 kHz segments are used for FT8 on the 20m band. One of these segments must be marked as main.
Remark - optional text that will be appended to the segment label when information about the segment is displayed. For example, "F/H" is a remark in the 14095-14099 kHz segment because this segment is used for the Fox-and-Hound style QSO. The mouse tooltip on the band map is a combination of the band, mode and remark: "20M FT8 (F/H)"
Here is an example of segment definition:
{
"Band": "40M",
"StartFrequency": 7000000,
"EndFrequency": 7025000,
"PrimaryMode": "CW",
"ValidModes": ["CW","RTTY"],
"MainSegment": true,
"Remark": "Only Extra class in the USA"
}
The json file is build of segment devinitions like this:
{
{...segment...},
{...segment...},
...
...
{...segment...}
}


{% extends "public/base.htm" %} {% block alerts %}
We're sorry, the page you were looking for could not be found.


Work History
-
2013
NCU - Computer Science and Information Engineering Department
Member of System and Network Management Group
(2013 - 2015) | Chung-Li, Taiwan
- Manage the services in department.
- Design and maintain the websites of services.
- Solve the problems when users use our services or have computer/network problem.
-
2012
NCU - Computer Science and Information Engineering Department
Vice President of Information Club
(2012 - 2013) | Chung-Li, Taiwan
- Teach web-programming classes.
- Manage the services in club.
Education History
-
2011
National Central University, Chung-Li, Taiwan
Bachelor , Computer Science and Information Engineering
(2011 - 2015)
Programming Skills
Language Skills
- NativeChinese
- intermediateEnglish


PsyPets cheat sheet
Stats (in order)
Stat bonuses should not exceed the requirements.
Stat bonuses should not exceed half the crafting/inventing difficulty.
For every -2 stats, allow an extra 1
- str
- dex
- sta
- per
- int
- wit
- bra
- ath
- ste
- sur
- cra
- eng
min
cap
smi
Durabilities
- 600 - High Magic and Giamonds
- 500 - Hyper Tech/Magic
- 400 - Metal (gems, living plants)
- 300 - Wood
- 200 - Cardboard & stuffed things
- 100 - Paper
Specific Durabilities
- 700 - The Fatal Crossing of the Evening and the Morning
- 450 - Unholy Vorpal... and Elusive Shield...
- 400 - Compound Bow, the various plants, Giamond-Blade Knife
- 350 - Couches, Mural
- 325 - Small Couches
- 300 - Chairs, Shoji Screen, Bokken, China
- 275 - the cloaks
- 250 - small paintings
- 225 - Plushies
- 200 - Pillows, Figurines
- 150 - Wallpaper, Fans
- 100 - Balloons, Clovers, Paper Hat


Classes and Modules in Ruby
The hows and whys
11 Mar 15
This week at DBC we continued to look at Class
es in ruby. One of our textbooks is The Well Grounded Rubyist and while reading through the Class
chapter I noticed a number of references to how similar Module
s are. Learning that took me through the next chapter, conveniently all about the topic. Module
s are much like Class
es in that they have instance methods. This is where the similarities end. Class
es can be used to store data while Module
s can only store methods or constants. Module
s must be include
d before they can be used. Below is some basic syntax to set up a Module
and use one of its instance methods.
module Cryptonomicon def bobby_shaftoe p "I see you and yours have displayed adaptability." end end class Manila include Cryptonomicon end dm_shaftoe = Cryptonomicon.new dm_shaftoe.bobby_shaftoe => "I see you and yours have displayed adaptability."
A major difference between Module
s and Class
es is that Module
s do not have instances. calculus = Math.new
results in a NoMethodError
. To be used Module
s must be include
d, as shown in the above example, in the class or program that plans to use them. Module
s can store Class
es defined within them however.
module Neuromancer class Sprawl def bama p "Boston-Atlanta Metropolitan Axis" end end end molly_millions = Neuromancer::Sprawl.new molly_millions.bama => "Boston-Atlanta Metropolitan Axis"
This is just some of the basic syntax for Module
s. There are many more tricks to be learned. Once common module is Math
. It contains a number of trigonometric operators and constants for pi and e. The full list of Module
s included in Ruby, as well as all of the methods for the Module
class, are listed here.


When performing experiments where timing is critical, a signal with a high sampling rate is desired. However, having a signal with a much higher sampling rate than is necessary needlessly consumes memory and slows down computations operating on the data.
This example downsamples from 600 Hz to 100 Hz. This achieves a 6-fold reduction in data size, at the cost of an equal loss of temporal resolution.
# Authors: Marijn van Vliet<EMAIL_ADDRESS>#
# License: BSD (3-clause)
#
from __future__ import print_function
from matplotlib import pyplot as plt
import mne
from mne.datasets import sample
Setting up data paths and loading raw data (skip some data for speed)
data_path = sample.data_path()
raw_fname = data_path + '/MEG/sample/sample_audvis_raw.fif'
raw = mne.io.read_raw_fif(raw_fname).crop(120, 240).load_data()
Out:
Opening raw data file /home/ubuntu/mne_data/MNE-sample-data/MEG/sample/sample_audvis_raw.fif...
Read a total of 3 projection items:
PCA-v1 (1 x 102) idle
PCA-v2 (1 x 102) idle
PCA-v3 (1 x 102) idle
Current compensation grade : 0
Range : 25800 ... 192599 = 42.956 ... 320.670 secs
Ready.
Adding average EEG reference projection.
1 projection items deactivated
The copy parameter is deprecated and will be removed in 0.14. In 0.13 the behavior will be to operate in-place (like copy=False). In 0.12 the default is copy=True. Use inst.copy() if necessary.
Reading 0 ... 72074 = 0.000 ... 120.000 secs...
Since downsampling reduces the timing precision of events, we recommend first extracting epochs and downsampling the Epochs object:
events = mne.find_events(raw)
epochs = mne.Epochs(raw, events, event_id=2, tmin=-0.1, tmax=0.8, preload=True)
# Downsample to 100 Hz
print('Original sampling rate:', epochs.info['sfreq'], 'Hz')
epochs_resampled = epochs.copy().resample(100, npad='auto')
print('New sampling rate:', epochs_resampled.info['sfreq'], 'Hz')
# Plot a piece of data to see the effects of downsampling
plt.figure(figsize=(7, 3))
n_samples_to_plot = int(0.5 * epochs.info['sfreq']) # plot 0.5 seconds of data
plt.plot(epochs.times[:n_samples_to_plot],
epochs.get_data()[0, 0, :n_samples_to_plot], color='black')
n_samples_to_plot = int(0.5 * epochs_resampled.info['sfreq'])
plt.plot(epochs_resampled.times[:n_samples_to_plot],
epochs_resampled.get_data()[0, 0, :n_samples_to_plot],
'-o', color='red')
plt.xlabel('time (s)')
plt.legend(['original', 'downsampled'], loc='best')
plt.title('Effect of downsampling')
mne.viz.tight_layout()
Out:
144 events found
Events id: [ 1 2 3 4 5 32]
33 matching events found
Applying baseline correction (mode: mean)
Created an SSP operator (subspace dimension = 4)
4 projection items activated
Loading data for 33 events and 541 original time points ...
0 bad epochs dropped
Original sampling rate:<PHONE_NUMBER>34 Hz
New sampling rate: 100.0 Hz
When resampling epochs is unwanted or impossible, for example when the data doesn’t fit into memory or your analysis pipeline doesn’t involve epochs at all, the alternative approach is to resample the continuous data. This can also be done on non-preloaded data.
# Resample to 300 Hz
raw_resampled = raw.copy().resample(300, npad='auto')
Out:
144 events found
Events id: [ 1 2 3 4 5 32]
144 events found
Events id: [ 1 2 3 4 5 32]
Because resampling also affects the stim channels, some trigger onsets might be lost in this case. While MNE attempts to downsample the stim channels in an intelligent manner to avoid this, the recommended approach is to find events on the original data before downsampling.
print('Number of events before resampling:', len(mne.find_events(raw)))
# Resample to 100 Hz (generates warning)
raw_resampled = raw.copy().resample(100, npad='auto')
print('Number of events after resampling:',
len(mne.find_events(raw_resampled)))
# To avoid losing events, jointly resample the data and event matrix
events = mne.find_events(raw)
raw_resampled, events_resampled = raw.copy().resample(
100, npad='auto', events=events)
print('Number of events after resampling:', len(events_resampled))
Out:
144 events found
Events id: [ 1 2 3 4 5 32]
Number of events before resampling: 144
144 events found
Events id: [ 1 2 3 4 5 32]
143 events found
Events id: [ 1 2 3 4 5 32]
Resampling of the stim channels caused event information to become unreliable. Consider finding events on the original data and passing the event matrix as a parameter.
143 events found
Events id: [ 1 2 3 4 5 32]
Number of events after resampling: 143
144 events found
Events id: [ 1 2 3 4 5 32]
Number of events after resampling: 144
Total running time of the script: (0 minutes 15.053 seconds)
plot_resample.py
plot_resample.ipynb


Welcome to Stegonography!
Please add your image below!
Choose an image
Upload a file
What do you wanna do?
Hide message
Reveal message
Hidden message


{% extends "projects/projects_base.html" %} {% block page_title %}Projects{% endblock page_title %} {% block page_heading %}
Democracy Club runs a range of tools and services that help voters take part in elections.
Our elections database collects all elections to UK parliaments, principal councils (districts, counties and unitaries) and other bodies.
One of the most common questions from voters on election day is “where do I vote?”. Our polling station finder has the answer!
In the UK, the state does not provide nationwide data on election candidates. But everyone — from individual voters to journalists and campaigners — wants this information. So we created the crowdsourced database of UK election candidates.
All of our services wrapped up in a single, embeddable widget. Add it to your own website for free!
All our data is available as API or CSV downloads
Planning your own project using our data? We’d appreciate it if you could let us know. We’re happy to provide advice on project proposals.
Approximately 400 organisations with 22,000 elected people make decisions every day about everything from schools and social care to roads and travel, the environment to elections. Democracy Club is trying to make a list of them all.
{% endblock main_content %}


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 34 35
36 package ti.uia.runtime;
37
38 import ti.uia.runtime.IUIATransfer;
39
40 /*!
41 * ======== UIAPacket ========
42 * Packet format communications between instrumentation clients
43 * and instrumentation endpoints
44 */
45 @CustomHeader
46 module UIAPacket {
47
48 /*!
49 * ======== Hdr ========
50 * UIAPacket Header
51 *
52 * The following is a breakdown of the packet header based on type packet.
53 *
54 * The packet header is always sent in network byte (big endian) order.
55 *
56 * The top 4 leftmost bits of word1 denote what type of packet this is:
57 * HdrType_Msg or HdrType_EventPkt. The contents of the packet depends on
58 * this type.
59 *
60 * @p(code)
61 *
62 * HdrType_Msg word1
63 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
64 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
65 * |---------------------------------------------------------------|
66 * |H H H H|E|L L L L L L L L L L L|T T T T|S S S S S S S S S S S S|
67 * |---------------------------------------------------------------|
68 *
69 * H = HdrType (4-bits)
70 * E = Payload endian (1-bit)
71 * L = Message Length (11-bits)
72 * T = Message Type (4-bits)
73 * S = Service Id (12-bits)
74 *
75 * HdrType_Msg word2
76 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
77 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
78 * |---------------------------------------------------------------|
79 * |S S S S S S S S S S S S S S S S|C C C C C C C C C C C C C C C C|
80 * |---------------------------------------------------------------|
81 *
82 * S = Sequence Number (16-bits)
83 * C = Command Id (16-bits)
84 *
85 * HdrType_Msg word3
86 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
87 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
88 * |---------------------------------------------------------------|
89 * |T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T|
90 * |---------------------------------------------------------------|
91 *
92 * T - Tag (32-bits)
93 *
94 * HdrType_Msg word4
95 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
96 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
97 * |---------------------------------------------------------------|
98 * |D D D D D D D D D D D D D D D D|S S S S S S S S S S S S S S S S|
99 * |---------------------------------------------------------------|
100 *
101 * D - Destination Address (16-bits)
102 * S - Source Address (16-bits)
103 *
104 * @p(code)
105 *
106 * HdrType_EventPkt word1
107 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
108 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
109 * |---------------------------------------------------------------|
110 * |H H H H|E|L L L L L L L L L L L L L L L L L L L L L L L L L L L|
111 * |---------------------------------------------------------------|
112 *
113 * H = HdrType (4-bits)
114 * E = Payload endian (1-bit)
115 * L = Packet Length (27-bits)
116 *
117 * HdrType_EventPkt word2
118 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
119 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
120 * |---------------------------------------------------------------|
121 * |S S S S S S S S S S S S S S S S|E E E E E E E E E E E E E E|P P|
122 * |---------------------------------------------------------------|
123 *
124 * S = Packet Sequence Number (16-bits)
125 * E = Event Sequence Number for first event in the packet (14-bits)
126 * P = Priority: Normal=0, High > 0 (2-bits)
127 *
128 * HdrType_EventPkt word3
129 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
130 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
131 * |---------------------------------------------------------------|
132 * |D I I I I I I I I I I I I I I I M M M M M M M M M M M M M M M M|
133 * |---------------------------------------------------------------|
134 *
135 * D - wasLoggerDynamicallyCreated (1-bit: 0 = statically created,
136 * 1 = dynamically created )
137 * I - Logger Instance ID (15-bits)
138 * M - Logger Module ID (16-bits)
139 *
140 * HdrType_EventPkt word4
141 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
142 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
143 * |---------------------------------------------------------------|
144 * |D D D D D D D D D D D D D D D D|S S S S S S S S S S S S S S S S|
145 * |---------------------------------------------------------------|
146 *
147 * D - Destination Address (16-bits)
148 * S - Source Address (16-bits)
149 *
150 * @p(code)
151 *
152 * For HdrType_EventPktWithCRC
153 * word 5 holds the 16b CRC of the application name (0 for RTOSes such as SysBIOS)
154 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
155 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
156 * |---------------------------------------------------------------|
157 * |R R R R R R R R R R R R R R R|C C C C C C C C C C C C C C C C C|
158 * |---------------------------------------------------------------|
159 * C = CRC16 of the application name (0 if only one process) (32-bits)
160 * R = Reserved (set to 0)
161 *
162 * @p(code)
163 *
164 * For memory constrained systems, ti.uia.loggers.LoggerMin uses the
165 * following 2 word Event Packet header format, with HdrType =
166 * HdrType_MinEventPkt :
167 *
168 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
169 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
170 * |---------------------------------------------------------------|
171 * |H H H H|E|D D D D D|R R R R R R|L L L L L L L L L L L L L L L L|
172 * |---------------------------------------------------------------|
173 *
174 * H = HdrType (4-bits)
175 * E = Payload endian (1-bit)
176 * D = Sender Adrs / Device ID (5 bits – DNUM)
177 * R = Reserved (set to 0)
178 * L = packet Length (16-bits)
179 *
180 * HdrType_MinEventPkt word2
181 * 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
182 * 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
183 * |---------------------------------------------------------------|
184 * |S S S S S S S S S S S S S S S S|E E E E E E E E E E E E E E|P P|
185 * |---------------------------------------------------------------|
186 *
187 * S = Packet Sequence Number (16-bits)
188 * E = Event Sequence Number for first event in the packet (14-bits)
189 * P = Priority: Normal=0, High > 0 (2-bits)
190 */
191 struct Hdr {
192 Bits32 word1;
193 Bits32 word2;
194 Bits32 word3;
195 Bits32 word4;
196 };
197
198 /*!
199 * ======== HdrType ========
200 * Enumeration of the various types of packet
201 * headers.
202 *
203 * Stored in a 4 bit bitfield (b31-b28) of the first word in the
204 * packet.
205 *
206 * The HdrType_InvalidData denotes that following data is invalid.
207 * This can used to pad to the end of a buffer. Only the first word
208 * of the header is filled in. The length includes the header field.
209 *
210 */
211 enum HdrType {
212 HdrType_InvalidData = 0, /*! reserved for future use */
213 HdrType_MsgWithPID = 1, /*! message with Process ID field (for multi-process O/Ses) */
214 HdrType_EventPktWithCRC = 2, /*! event packet with CRC of applciation name (for multi-process O/Ses) */
215 HdrType_MinEventPkt = 3, /*! small footprint event packet used by ti.uia.loggers.LoggerMin */
216 HdrType_Reserved4 = 4, /*! reserved for future use */
217 HdrType_Reserved5 = 5, /*! reserved for future use */
218 HdrType_Reserved6 = 6, /*! reserved for future use */
219 HdrType_Reserved7 = 7, /*! reserved for future use */
220 HdrType_ChannelizedData = 8, /*! Channelized data stream */
221 HdrType_Msg = 9, /*! Message (4 words header, 1 word footer) */
222 HdrType_EventPkt = 10, /*! Event rec. containing multiple events:
223 (4 word hdr, 1 word footer) */
224 HdrType_CPUTrace = 11, /*! CPU Trace ETB data
225 (4 word hdr, 1 word footer) */
226 HdrType_STMTrace = 12, /*! STM Trace ETB data
227 (4 word hdr, 1 word footer) */
228 HdrType_MemoryBuffer = 13, /*! Memory Buffer data */
229 HdrType_USER2 = 14, /*! User defined header type 2 */
230 HdrType_USER3 = 15 /*! User defined header type 3 */
231 };
232
233
234 /*!
235 * ======== PayloadEndian ========
236 * Enumeration of payload endianness
237 */
238 enum PayloadEndian {
239 PayloadEndian_LITTLE = 0,
240 PayloadEndian_BIG = 1
241 };
242
243 /*!
244 * ======== Footer ========
245 * Packet Footer
246 *
247 * The packet footer is always in network byte order
248 * i.e. big-endian byte ordering
249 */
250 struct Footer
251 {
252 Int32 word1; /*! 16 MSBs contain msg length in Bytes,
253 16 LSBs contain 0x7777 */
254 }
255
256 /*!
257 * ======== MsgType ========
258 * Message Types
259 *
260 * Enumeration of the various types of packets.
261 * Stored in a 4 bit bitfield.
262 *
263 * MsgType_ACK:
264 * Each packet of type CMD or DATA is immediately acknowledged by
265 * sending either an ACK reply (if the packet can be processed),
266 * a RESULT or PARTIALRESULT reply (if requested data can be provided
267 * immediately) or a NACK reply (if the packet cannot be processed).
268 * The Service that receives the command is responsible for sending
269 * the ACK or NACK. If the requested service is not available, the
270 * Endpoint is responsible for sending the NACK packet.
271 *
272 * MsgType_CMD:
273 * CMD packets are typically sent from the host to the target.
274 * The receiving endpoint routes the command to the service
275 * identified in the Service Id field.
276 *
277 * MsgType_RESULT:
278 * RESULT replies are sent along with any requested data.
279 * If the Service cannot reply with the requested data immediately,
280 * it should return with an ACK packet and send a RESULT packet
281 * that echoes the header info of the original command.
282 *
283 * MsgType_PARTIALRESULT:
284 * PARTIALRESULT replies are sent along with any requested data when the
285 * requested action can only be partly fulfilled. Examples are when the
286 * service is reporting on some ongoing operation or has been requested
287 * to periodically poll some data value.
288 *
289 * MsgType_EVENT:
290 * EVENT packets are sent to all interested parties in order to notify them
291 * about state changes. They can, for example, be used to report an error
292 * that has occurred which may impact the ability of the target to continue
293 * operating normally.
294 *
295 * MsgType_FLOWCTRL
296 * FLOWCTRL packets are provided for TCF compliance. They are used to avoid
297 * flooding of communication links. In response, endpoints can either
298 * increase or decrease rate of packets sent, although this is only loosely
299 * defined. TCF services are not directly concerned with flow control.
300 * The data passed with FLOWCTRL packets reports the traffic congestion level
301 * as an integer between -100 and 100, where 0 = "optimal load"
302 *
303 * MsgType_DATA
304 * DATA packets are used for sending event log data and other streams of data.
305 * Details about how this will be used are being worked out to ensure alignment
306 * with BIOS RTA Log Servers.
307 *
308 * MsgType_NACK_BAD_DATA:
309 * Negative Acknowledge due to bad data. Sent in response to a command that
310 * had invalid data in the body of the packet. The original data is echoed
311 * in the NACK response.
312 *
313 * MsgType_NACK_WITH_ERROR_CODE
314 * Negative Acknowledge with Error Code. Sent along with an error code in
315 * the first word of the body of the reply that describes the error that was
316 * encountered
317 */
318 enum MsgType {
319 MsgType_ACK=0, /*! Reply acknowledging receipt of CMD or DATA packet */
320 MsgType_CMD=1, /*! Command packets */
321 MsgType_RESULT=2, /*! Result reply */
322 MsgType_PARTIALRESULT=3, /*! Partial result reply */
323 MsgType_NOTIFY=4, /*! Notify messaage (equiv. to the EVENT packet in TCF) */
324 MsgType_FLOWCTRL=5, /*! Flow control packet */
325 MsgType_DATA=6, /*! Data packet (used for streaming data to host) */
326 MsgType_RESERVED7,
327 MsgType_RESERVED8,
328 MsgType_RESERVED9,
329 MsgType_RESERVED10,
330 MsgType_RESERVED11,
331 MsgType_RESERVED12,
332 MsgType_RESERVED13,
333 MsgType_NACK_BAD_DATA=14, /*! Negative Acknowledge due to bad data */
334 MsgType_NACK_WITH_ERROR_CODE=15 /*! Negative Acknowledge -
335 error code in msg body */
336 };
337
338 /*!
339 * ======== NACKErrorCode ========
340 * Message Negative Acknowledge Error Codes
341 *
342 * Stored in the first 32b word of the data body of the packet
343 * in Network Byte Order
344 */
345 enum NACKErrorCode {
346 NACKErrorCode_NO_REASON_SPECIFIED=0, /*! Use this when none of the
347 defined NACK error codes are
348 appropriate */
349 NACKErrorCode_SERVICE_NOT_SUPPORTED=1, /*! A module that handles the
350 requested Service Id could
351 not be found */
352 NACKErrorCode_CMD_NOT_SUPPORTED=2, /*! The service does not support the
353 specified Command Id */
354 NACKErrorCode_QUEUE_FULL=3, /*! Cmd couldn't be passed on to dest. end
355 point due to a queue full condition */
356 NACKErrorCode_BAD_ENDPOINT_ADDRESS=4, /*! The destination end point
357 address does not exists */
358 NACKErrorCode_BAD_MESSAGE_LENGTH=5 /*! packet lenght > endpoint max.
359 msg length or not what is
360 required to service the cmd */
361 };
362
363 /*!
364 * ======== HOST ========
365 * The address of the host
366 *
367 * The host address is always 0xFFFF.
368 */
369 const UInt16 HOST = 0xFFFF;
370
371 /*!
372 * ======== BROADCAST ========
373 * Used to denote a broadcast message
374 *
375 * The broadcast address is always 0xFFFE.
376 */
377 const UInt16 BROADCAST = 0xFFFE;
378
379 /*!
380 * ========= maxPktLengthInBytes =========
381 * maximum number of bytes a packet can contain
382 *
383 * used to limit the amount of memory needed by the
384 * packet factories in order to handle a new packet
385 */
386 config Int maxPktLengthInBytes = 128;
387
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
404
405 /*!
406 * ======== swizzle ========
407 * returns the value in big endian format
408 */
409 @Macro Bits32 swizzle(Bits32 value);
410
411 /*!
412 * ======== swizzle ========
413 * returns the value in big endian format
414 */
415 @Macro Bits16 swizzle16(Bits16 value);
416
417 /*!
418 * ======== getHdrType ========
419 * gets the packet header type from the packet header
420 *
421 * Message header is always layed out as big endian (network order).
422 * This macro is designed to work on both little endian and
423 * big endian targets, since 32b long words are consistently
424 * handled for both endianness - it is only when converting
425 * from bytes to longs that bit orders get swapped.
426 * #ifdef xdc_target__bigEndian can be used if necessary.
427 *
428 * @param(Hdr* msgHdr) pointer to the packet header
429 */
430 @Macro HdrType getHdrType(Hdr *pHdr);
431
432 /*!
433 * ======== setHdrType ========
434 * sets the header type in the packet header
435 *
436 * Message header is always layed out as big endian (network order).
437 * This macro is designed to work on both little endian and
438 * big endian targets, since 32b long words are consistently
439 * handled for both endianness - it is only when converting
440 * from bytes to longs that bit orders get swapped.
441 * #ifdef xdc_target__bigEndian can be used if necessary.
442 *
443 * @param(Hdr* msgHdr) pointer to the packet header
444 * @param(HdrType hdrType) the new header type
445 */
446 @Macro Void setHdrType(Hdr *pHdr, HdrType hdrType);
447
448 /*!
449 * ======== getPayloadEndianness ========
450 * gets the payload endianness bit from the packet header
451 *
452 * Message header is always layed out as big endian (network order).
453 * This macro is designed to work on both little endian and
454 * big endian targets, since 32b long words are consistently
455 * handled for both endianness - it is only when converting
456 * from bytes to longs that bit orders get swapped.
457 * #ifdef xdc_target__bigEndian can be used if necessary.
458 *
459 * @param(Hdr* msgHdr) pointer to the packet header
460 */
461 @Macro Bits32 getPayloadEndianness(Hdr *pHdr);
462
463 /*!
464 * ======== setPayloadEndianness ========
465 * sets the payload endianness bit from the packet header
466 *
467 * Message header is always layed out as big endian (network order).
468 * This macro is designed to work on both little endian and
469 * big endian targets, since 32b long words are consistently
470 * handled for both endianness - it is only when converting
471 * from bytes to longs that bit orders get swapped.
472 * #ifdef xdc_target__bigEndian can be used if necessary.
473 *
474 * @param(Hdr* msgHdr) pointer to the packet header
475 * @param(Hdr* msgHdr) Endianness of the payload
476 */
477 @Macro Bits32 setPayloadEndianness(Hdr *pHdr, PayloadEndian endianess);
478
479 /*!
480 * ======== getMsgLength ========
481 * gets the packet length (in bytes) from the packet header
482 *
483 * Message header is always layed out as big endian (network order).
484 * This macro is designed to work on both little endian and
485 * big endian targets, since 32b long words are consistently
486 * handled for both endianness - it is only when converting
487 * from bytes to longs that bit orders get swapped.
488 * #ifdef xdc_target__bigEndian can be used if necessary.
489 *
490 * @param(Hdr* msgHdr) pointer to the packet header
491 */
492 @Macro Int32 getMsgLength(Hdr *pHdr);
493
494 /*!
495 * ======== setMsgLength ========
496 * sets the packet length (in bytes) from the packet header
497 *
498 * Message header is always layed out as big endian (network order).
499 * This macro is designed to work on both little endian and
500 * big endian targets, since 32b long words are consistently
501 * handled for both endianness - it is only when converting
502 * from bytes to longs that bit orders get swapped.
503 * #ifdef xdc_target__bigEndian can be used if necessary.
504 *
505 * @param(Hdr* msgHdr) pointer to the packet header
506 * @param(pktLength) the new packet length
507 *
508 */
509 @Macro Void setMsgLength(Hdr *pHdr, UInt16 pktLength);
510
511 /*!
512 * ======== getEventLength ========
513 * Gets the packet length (in bytes) from the packet header
514 *
515 * Includes the packet header
516 *
517 * @param(Hdr* msgHdr) pointer to the packet header
518 */
519 @Macro Int32 getEventLength(Hdr *pHdr);
520
521 /*!
522 * @_nodoc
523 * ======== getMinEventLength ========
524 * Gets the packet length (in bytes) from a MinEvent packet header
525 * (for testing).
526 *
527 * Includes the packet header
528 *
529 * @param(Hdr* pHdr) pointer to the packet header
530 */
531 @Macro Int32 getMinEventLength(Hdr *pHdr);
532
533 /*!
534 * ======== setEventLength ========
535 * Sets the packet length (in bytes) from the packet header
536 *
537 * Includes the packet header
538 *
539 * @param(Hdr* msgHdr) pointer to the packet header
540 * @param(pktLength) the new packet length
541 *
542 */
543 @Macro Void setEventLength(Hdr *pHdr, Bits32 pktLength);
544
545 /*!
546 * ======== setEventLengthFast ========
547 * Sets the packet length (in bytes) from the packet header
548 * by just writing the length, instead of reading the old
549 * value, setting the length, and writing it back.
550 *
551 * Includes the packet header
552 *
553 * @param(Hdr* msgHdr) pointer to the packet header
554 * @param(pktLength) the new packet length
555 *
556 */
557 @Macro Void setEventLengthFast(Hdr *pHdr, Bits32 pktLength);
558
559 /*!
560 * ======== setMinEventPacketLength ========
561 * Set UIA packet length of the completed packet
562 *
563 * @param(Hdr* msgHdr) pointer to the packet header
564 * @param(pktLength) the new packet length
565 * @param(loggerInstanceId) the logger's instanceId
566 * @param(senderAdrs) the sender address (i.e. DNUM or endpoint ID, 0 if only 1 CPU per device)
567 */
568 @Macro Void setMinEventPacketLength(Hdr *pHdr, Bits32 pktLength,
569 UInt16 loggerInstanceId,
570 UInt16 senderAdrs);
571 /*!
572 * ======== getLength ========
573 * Gets the packet length (in bytes) from the packet header
574 *
575 * Includes the packet header
576 *
577 * @param(Hdr* msgHdr) pointer to the packet header
578 */
579 Int32 getLength(Hdr *pHdr);
580
581 /*!
582 * ======== getSequenceCount ========
583 * gets the sequence count from the packet header
584 *
585 * Message header is always layed out as big endian (network order).
586 * This macro is designed to work on both little endian and
587 * big endian targets, since 32b long words are consistently
588 * handled for both endianness - it is only when converting
589 * from bytes to longs that bit orders get swapped.
590 * #ifdef xdc_target__bigEndian can be used if necessary.
591 *
592 * @param(Hdr* msgHdr) pointer to the packet header
593 */
594 @Macro UInt16 getSequenceCount(Hdr *pHdr);
595
596 /*!
597 * ======== setSequenceCount ========
598 * sets the packet sequence count in the packet header
599 *
600 * Message header is always layed out as big endian (network order).
601 * This macro is designed to work on both little endian and
602 * big endian targets, since 32b long words are consistently
603 * handled for both endianness - it is only when converting
604 * from bytes to longs that bit orders get swapped.
605 * #ifdef xdc_target__bigEndian can be used if necessary.
606 *
607 * @param(Hdr* msgHdr) pointer to the packet header
608 * @param(seqCount) the new packet sequence count
609 */
610 @Macro Void setSequenceCount(Hdr *pHdr, Bits16 seqCount);
611
612 /*!
613 * ======== setSequenceCountFast ========
614 * Sets the packet sequence count in the packet header
615 * by directly writing the word, and not reading it first.
616 *
617 * Message header is always layed out as big endian (network order).
618 * This macro is designed to work on both little endian and
619 * big endian targets, since 32b long words are consistently
620 * handled for both endianness - it is only when converting
621 * from bytes to longs that bit orders get swapped.
622 * #ifdef xdc_target__bigEndian can be used if necessary.
623 *
624 * @param(Hdr* msgHdr) pointer to the packet header
625 * @param(seqCount) the new packet sequence count
626 */
627 @Macro Void setSequenceCountFast(Hdr *pHdr, Bits16 seqCount);
628
629 /*!
630 * ======== setSequenceCounts ========
631 * sets the packet sequence count and the event sequence count for the first
632 * event in the packet header
633 *
634 * Message header is always layed out as big endian (network order).
635 * This macro is designed to work on both little endian and
636 * big endian targets, since 32b long words are consistently
637 * handled for both endianness - it is only when converting
638 * from bytes to longs that bit orders get swapped.
639 * #ifdef xdc_target__bigEndian can be used if necessary.
640 *
641 * @param(Hdr* pHdr) pointer to the packet header
642 * @param(pktSeqCount) the new packet sequence count
643 * @param(eventSeqCount) the event sequence count for the first event in the packet
644 */
645 @Macro Void setSequenceCounts(Hdr *pHdr, Bits16 pktSeqCount, Bits16 eventSeqCount );
646
647 /*!
648 * ======== setMinEventPacketSequenceCountFast ========
649 * stores the current event sequence number and
650 * 12 msbs of last timestamp in the packet header
651 *
652 * Message header is always layed out as big endian (network order).
653 * This macro is designed to work on both little endian and
654 * big endian targets, since 32b long words are consistently
655 * handled for both endianness - it is only when converting
656 * from bytes to longs that bit orders get swapped.
657 * #ifdef xdc_target__bigEndian can be used if necessary.
658 *
659 * @param(Hdr* pHdr) pointer to the packet header
660 * @param(pktSeqCount) the new packet sequence count
661 * @param(eventSeqCount) the event sequence count for the first event in the packet
662 */
663 @Macro Void setMinEventPacketSequenceCount(Hdr *pHdr, Bits16 pktSeqCount, Bits16 eventSeqCount);
664
665 /*! @_nodoc
666 * ======== getLoggerPriority ========
667 * gets the logger priority field from the event packet header
668 *
669 * Message header is always layed out as big endian (network order).
670 * This macro is designed to work on both little endian and
671 * big endian targets, since 32b long words are consistently
672 * handled for both endianness - it is only when converting
673 * from bytes to longs that bit orders get swapped.
674 * #ifdef xdc_target__bigEndian can be used if necessary.
675 *
676 * @param(Hdr* msgHdr) pointer to the packet header
677 * @a(return) the priority of the logger that logged the events
678 * @see IUIATransfer#Priority
679 */
680 @Macro IUIATransfer.Priority getLoggerPriority(Hdr *pHdr);
681
682 /*! @_nodoc
683 * ======== setLoggerPriority ========
684 * sets the logger priority field in the event packet header
685 *
686 * Message header is always layed out as big endian (network order).
687 * This macro is designed to work on both little endian and
688 * big endian targets, since 32b long words are consistently
689 * handled for both endianness - it is only when converting
690 * from bytes to longs that bit orders get swapped.
691 * #ifdef xdc_target__bigEndian can be used if necessary.
692 *
693 * @param(Hdr* msgHdr) pointer to the packet header
694 * @param(priority) the logger priority ( @see IUIATransfer#Priority )
695 */
696 @Macro Void setLoggerPriority(Hdr *pHdr, IUIATransfer.Priority priority);
697 /*!
698 * ======== getLoggerModuleId ========
699 * gets the logger ID from the event packet header
700 *
701 * Message header is always layed out as big endian (network order).
702 * This macro is designed to work on both little endian and
703 * big endian targets, since 32b long words are consistently
704 * handled for both endianness - it is only when converting
705 * from bytes to longs that bit orders get swapped.
706 * #ifdef xdc_target__bigEndian can be used if necessary.
707 *
708 * @param(Hdr* msgHdr) pointer to the packet header
709 */
710 @Macro Bits16 getLoggerModuleId(Hdr *pHdr);
711
712 /*!
713 * ======== setLoggerModuleId ========
714 * sets the module ID in the event packet header
715 *
716 * Message header is always layed out as big endian (network order).
717 * This macro is designed to work on both little endian and
718 * big endian targets, since 32b long words are consistently
719 * handled for both endianness - it is only when converting
720 * from bytes to longs that bit orders get swapped.
721 * #ifdef xdc_target__bigEndian can be used if necessary.
722 *
723 * @param(Hdr* msgHdr) pointer to the packet header
724 * @param(loggerModuleId) the moduleID of the logger that logged the events
725 */
726 @Macro Void setLoggerModuleId(Hdr *pHdr, Bits16 loggerModuleId);
727
728 /*!
729 * ======== getLoggerInstanceId ========
730 * gets the logger instance ID from the event packet header
731 *
732 * Message header is always layed out as big endian (network order).
733 * This macro is designed to work on both little endian and
734 * big endian targets, since 32b long words are consistently
735 * handled for both endianness - it is only when converting
736 * from bytes to longs that bit orders get swapped.
737 * #ifdef xdc_target__bigEndian can be used if necessary.
738 *
739 * @param(Hdr* msgHdr) pointer to the packet header
740 */
741 @Macro Bits16 getLoggerInstanceId(Hdr *pHdr);
742
743 /*!
744 * ======== setLoggerInstanceId ========
745 * sets the sequence count in the packet header
746 *
747 * Message header is always layed out as big endian (network order).
748 * This macro is designed to work on both little endian and
749 * big endian targets, since 32b long words are consistently
750 * handled for both endianness - it is only when converting
751 * from bytes to longs that bit orders get swapped.
752 * #ifdef xdc_target__bigEndian can be used if necessary.
753 *
754 * @param(Hdr* msgHdr) pointer to the packet header
755 * @param(seqCount) the new packet sequence count
756 */
757 @Macro Void setLoggerInstanceId(Hdr *pHdr, Bits16 loggerInstanceId);
758
759 /*!
760 * ======== getMsgType ========
761 * gets the packet type from the packet header
762 *
763 * Message header is always layed out as big endian (network order).
764 * This macro is designed to work on both little endian and
765 * big endian targets, since 32b long words are consistently
766 * handled for both endianness - it is only when converting
767 * from bytes to longs that bit orders get swapped.
768 * #ifdef xdc_target__bigEndian can be used if necessary.
769 *
770 * @param(Hdr* pHdr) pointer to the packet header
771 */
772 @Macro MsgType getMsgType(Hdr *pHdr);
773
774 /*!
775 * ======== setMsgType ========
776 * sets the packet type in the packet header
777 *
778 * Message header is always layed out as big endian (network order).
779 * This macro is designed to work on both little endian and
780 * big endian targets, since 32b long words are consistently
781 * handled for both endianness - it is only when converting
782 * from bytes to longs that bit orders get swapped.
783 * #ifdef xdc_target__bigEndian can be used if necessary.
784 *
785 * @param(Hdr* msgHdr) pointer to the packet header
786 * @param(msgType) the new packet type
787 */
788 @Macro Void setMsgType(Hdr *pHdr, MsgType msgType);
789
790 /*!
791 * ======== getCmdId ========
792 * gets the packet type from the packet header
793 *
794 * Message header is always layed out as big endian (network order).
795 * This macro is designed to work on both little endian and
796 * big endian targets, since 32b long words are consistently
797 * handled for both endianness - it is only when converting
798 * from bytes to longs that bit orders get swapped.
799 * #ifdef xdc_target__bigEndian can be used if necessary.
800 *
801 * @param(Hdr* msgHdr) pointer to the packet header
802 */
803 @Macro UInt16 getCmdId(Hdr *pHdr);
804
805 /*!
806 * ======== setCmdId ========
807 * sets the command Id in the packet header
808 *
809 * Message header is always layed out as big endian (network order).
810 * This macro is designed to work on both little endian and
811 * big endian targets, since 32b long words are consistently
812 * handled for both endianness - it is only when converting
813 * from bytes to longs that bit orders get swapped.
814 * #ifdef xdc_target__bigEndian can be used if necessary.
815 *
816 * @param(Hdr* msgHdr) pointer to the packet header
817 * @param(cmdId) the new command Id
818 */
819 @Macro Void setCmdId(Hdr *pHdr, UInt16 cmdId);
820
821 /*!
822 * ======== getServiceId ========
823 * gets the packet type from the packet header
824 *
825 * Message header is always layed out as big endian (network order).
826 * This macro is designed to work on both little endian and
827 * big endian targets, since 32b long words are consistently
828 * handled for both endianness - it is only when converting
829 * from bytes to longs that bit orders get swapped.
830 * #ifdef xdc_target__bigEndian can be used if necessary.
831 *
832 * @param(Hdr* msgHdr) pointer to the packet header
833 */
834 @Macro UInt16 getServiceId(Hdr *pHdr);
835 /*!
836 * ======== setServiceId ========
837 * sets the packet type in the packet header
838 *
839 * Message header is always layed out as big endian (network order).
840 * This macro is designed to work on both little endian and
841 * big endian targets, since 32b long words are consistently
842 * handled for both endianness - it is only when converting
843 * from bytes to longs that bit orders get swapped.
844 * #ifdef xdc_target__bigEndian can be used if necessary.
845 *
846 * @param(Hdr* msgHdr) pointer to the packet header
847 * @param(serviceId) the new service Id
848 */
849 @Macro Void setServiceId(Hdr *pHdr, UInt16 serviceId);
850
851 /*!
852 * ======== getTag =========
853 * gets the 32b tag field from the packet header
854 *
855 * @param(Hdr* msgHdr) pointer to the packet header
856 */
857 @Macro Bits32 getTag(Hdr *pHdr);
858
859 /*!
860 * ======== setTag =========
861 * sets the 32b tag field in the packet header
862 *
863 * @param(Hdr* msgHdr) pointer to the packet header
864 * @param(tagValue) the tag value to store in the header
865 */
866 @Macro Void setTag(Hdr *pHdr, Bits32 tagValue);
867
868 /*!
869 * ======== getDestAdrs ========
870 * gets the packet destination address from the packet header
871 *
872 * Message header is always layed out as big endian (network order).
873 * This macro is designed to work on both little endian and
874 * big endian targets, since 32b long words are consistently
875 * handled for both endianness - it is only when converting
876 * from bytes to longs that bit orders get swapped.
877 * #ifdef xdc_target__bigEndian can be used if necessary.
878 *
879 * Example1 :
880 * Void example1(UIAPacket_Object *obj){
881 * Int16 destAdrs = UIAPacket_getDestAdrs(&obj->hdr);
882 * ...
883 * }
884 * Example2 :
885 * Void example2(UIAPacket_Hdr *pHdr){
886 * Int16 destAdrs = UIAPacket_getDestAdrs(pHdr);
887 * ...
888 * }
889 *
890 * @param(Hdr* msgHdr) pointer to the packet header
891 */
892 @Macro UInt16 getDestAdrs(Hdr *pHdr);
893
894 /*!
895 * ======== setDestAdrs ========
896 * sets the packet destination address in the packet header
897 *
898 * The destination address identifies which endpoint (i.e. which
899 * CPU or process) the packet should be sent to.
900 * 0 is used to broadcast the packet.
901 * 1 is used for point-to-point connections.
902 * Replies to a packet always use the sender address in the
903 * originating packet as the destination address.
904 * Destination addresses other than the above can be determined
905 * via a discovery process.
906 *
907 * Message header is always layed out as big endian (network order).
908 * This macro is designed to work on both little endian and
909 * big endian targets, since 32b long words are consistently
910 * handled for both endianness - it is only when converting
911 * from bytes to longs that bit orders get swapped.
912 * #ifdef xdc_target__bigEndian can be used if necessary.
913 *
914 * @param(Hdr* msgHdr) pointer to the packet header
915 * @param(destAdrs) the new destination address
916 */
917 @Macro Void setDestAdrs(Hdr *pHdr, UInt16 destAdrs);
918
919 /*!
920 * ======== getSenderAdrs ========
921 * gets the packet sender address from the packet header
922 *
923 * Message header is always layed out as big endian (network order).
924 * This macro is designed to work on both little endian and
925 * big endian targets, since 32b long words are consistently
926 * handled for both endianness - it is only when converting
927 * from bytes to longs that bit orders get swapped.
928 * #ifdef xdc_target__bigEndian can be used if necessary.
929 *
930 * @param(Hdr* msgHdr) pointer to the packet header
931 */
932 @Macro UInt16 getSenderAdrs(Hdr *pHdr);
933
934 /*!
935 * ======== setSenderAdrs ========
936 * sets the packet sender address in the packet header
937 *
938 * The sender address identifies which endpoint (i.e. which
939 * CPU or process) the packet is coming from
940 * 1 is used by default.
941 * Sender addresses other than 1 can be set via configuration
942 * (e.g. to identify which CPU core a packet originated from).
943 *
944 * Message header is always layed out as big endian (network order).
945 * This macro is designed to work on both little endian and
946 * big endian targets, since 32b long words are consistently
947 * handled for both endianness - it is only when converting
948 * from bytes to longs that bit orders get swapped.
949 * #ifdef xdc_target__bigEndian can be used if necessary.
950 *
951 * @param(Hdr* msgHdr) pointer to the packet header
952 * @param(senderAdrs) the new destination address
953 */
954 @Macro Void setSenderAdrs(Hdr *pHdr, UInt16 senderAdrs);
955
956 /*!
957 * ======== initMsgHdr ========
958 * initializes all bitfields in the message header
959 *
960 * @param(Hdr* msgHdr) pointer to the packet header
961 * @param(endianness) endianness of the payload
962 * @param(msgType) the packet type
963 * @param(msgLength) the number of Bytes in the packet, including the
964 * header and footer
965 * @param(serviceId) the service Id
966 * @param(seqCount) the sequence number for the packet
967 * @param(cmdId) the command Id
968 * @param(tag) the tag value to store in the header
969 * @param(destAdrs) the destination address
970 * @param(senderAdrs) the sender address
971 */
972 @Macro Void initMsgHdr(Hdr *pHdr, PayloadEndian endianness,
973 MsgType msgType, UInt16 msgLength,
974 UInt16 serviceId, UInt16 seqCount,
975 UInt16 cmdId, UInt32 tag,
976 UInt16 destAdrs, UInt16 senderAdrs);
977
978 /*!
979 * ======== initEventRecHdr ========
980 * initializes all bitfields in the message header
981 *
982 * @param(Hdr* msgHdr) pointer to the packet header
983 * @param(endianness) endianness of the payload
984 * @param(eventLength) the number of Bytes in the packet, including
985 * the header and footer
986 * @param(seqCount) the sequence number for the packet
987 * @param(priority) the logger's priority
988 * @param(moduleId) the logger's module Id
989 * @param(instanceId) the logger's instanceId
990 * @param(destAdrs) the destination address
991 * @param(senderAdrs) the sender address
992 */
993 @Macro Void initEventRecHdr(Hdr *pHdr, PayloadEndian endianness,
994 UInt32 eventLength, UInt16 seqCount,
995 IUIATransfer.Priority priority, UInt16 moduleId,
996 UInt16 instanceId, UInt16 destAdrs,
997 UInt16 senderAdrs);
998
999 /*!
1000 * ======== initMinEventRecHdr ========
1001 * initializes all bitfields in the minimum event packet header,
1002 * setting the length, sequence count and last timestamp fields to 0
1003 *
1004 * @param(Hdr* pPktHdr) pointer to the packet header
1005 * @param(endianness) endianness of the payload
1006 * @param(loggerInstanceId) the logger's instanceId
1007 * @param(senderAdrs) the sender address (i.e. DNUM / endpoint ID for the CPU core)
1008 */
1009 @Macro Void initMinEventRecHdr(Hdr *pHdr, PayloadEndian endianness,
1010 UInt16 loggerInstanceId,
1011 UInt16 senderAdrs);
1012 /*!
1013 * ======== getFooter ========
1014 * returns the integer to use as the packet footer
1015 *
1016 * @param(Hdr* pHdr) pointer to the packet header
1017 */
1018 @Macro Int32 getFooter(Hdr *pHdr);
1019
1020 /*!
1021 * ======== setInvalidHdr ========
1022 * Used to set the header type as invalid
1023 *
1024 * @param(Hdr* pHdr) pointer to the packet header
1025 * @param(eventLength) the number of Bytes in the packet of memory
1026 * that is invalid (including the first word of the 32-bit hdr)
1027 */
1028 @Macro Void setInvalidHdr(Hdr *pHdr, UInt32 eventLength);
1029 }


Enter stock symbols
Tip: Use comma to separate multiple quotes
New Stock List
Delete Current List
-
Symbol Open High Low Close Change Avg(3m) Volume Avg(3m) Strike Price(1y) Web
Enter stock symbols
Tip: Use comma to separate multiple quotes
New Stock List
Delete Current List


--- layout: post title: MoMotorola date: 2006-01-23 00:00:00 categories: interfaces-&-interaction mobile ---
More on the new Motorola UI. I know I shouldn't snipe on the basis of a couple of screenshots, but mmmmm a "Manage" menu: descriptive. And as the writer of this piece notes, cascading submenus, windows... all the kind of stuff you want to lose on a handset UI IMHO.


Introduce
This lists similar commands between Windows and Unix command lines.
To get help on a Windows command, use the /? option, for example date /?.
| Windows command | Unix command | Notes |
|---|---|---|
arp |
arp |
|
assign |
ln |
Create a file link |
assign |
ln -s |
On Unix, a directory may not have multiple links, so instead a symbolic link must be created with ln -s. |
assoc |
file |
|
at |
at batch cron |
See also schtasks. |
attrib |
chown chmod |
Sets ownership on files and directories |
cd |
cd |
On Windows, cd alone prints the current directory, but on Unix cd alone returns the user to his home directory. |
cd |
pwd |
On Windows, cd alone prints the current directory. |
chkdsk |
fsck |
Checks filesystem and repairs filesystem corruption on hard drives. |
cls |
clear Control-L |
Clear the terminal screen |
copy |
cp |
|
date time |
date |
Date on Unix prints the current date and time. Date and time on Windows print the date and time respectively, and prompt for a new date or time. |
del |
rm |
|
deltree |
rm -r |
Recursively deletes entire directory tree |
dir |
ls |
"dir" also works on some versions of Unix. |
doskey /h F7 key |
history |
The Unix history is part of the Bash shell. |
edit |
vi emacs etc. |
edit brings up a simple text editor in Windows. On Unix, the environment variable EDITOR should be set to the user’s preferred editor. |
exit |
exit Control-D |
On Unix, pressing the control key and D simultaneously logs the user out of the shell. |
explorer |
nautilus etc. |
The command explorer brings up the file browser on Windows. |
fc |
diff |
|
find |
grep |
|
ftp |
ftp |
|
help |
man |
"help" by itself prints all the commands |
hostname |
hostname |
|
ipconfig /all |
ifconfig -a |
The /all option lets you get the MAC address of the Windows PC |
mem |
top |
Shows system status |
mkdir |
mkdir |
|
more |
more less |
|
move |
mv |
|
net session |
w who |
|
net statistics |
uptime |
|
nslookup |
nslookup |
|
ping |
ping |
|
lpr |
Send a file to a printer. |
|
reboot shutdown -r |
shutdown -r |
|
regedit |
edit /etc/* |
The Unix equivalent of the Windows registry are the files under /etc and /usr/local/etc. These are edited with a text editor rather than with a special-purpose editing program. |
rmdir |
rmdir |
|
rmdir /s |
rm -r |
Windows has a y/n prompt. To get the prompt with Unix, use rm -i. The i means "interactive". |
schtasks |
at batch cron |
|
set |
env |
Set on Windows prints a list of all environment variables. For individual environment variables, set <variable> is the same as echo $<variable> on Unix. |
set Path |
echo $PATH |
Print the value of the environment variable using set in Windows. |
shutdown |
shutdown |
Without an option, the Windows version produces a help message |
shutdown -s |
shutdown -h |
Also need -f option to Windows if logged in remotely |
sort |
sort |
|
start |
& |
On Unix, to start a job in the background, use command &. On Windows, the equivalent is start command. See How to run a Windows command as a background job like Unix ?. |
systeminfo |
uname -a |
|
tasklist |
ps |
"tasklist" is not available on some versions of Windows. See also this article on getting a list of processes in Windows using Perl |
title |
? |
In Unix, changing the title of the terminal window is possible but complicated. Search for "change title xterm". |
tracert |
traceroute |
|
tree |
find ls -R |
On Windows, use tree | find "string" |
type |
cat |
|
ver |
uname -a |
|
xcopy |
cp -R |
Recursively copy a directory tree |
Please note
Links open in a separate window. The links on the Unix commands go to an online version of the FreeBSD manual page.


| Phone number:<PHONE_NUMBER> |
| Email<EMAIL_ADDRESS>|
| Address: 4561 Kings ave, Kings Landing, Seven Kingdoms |
| Monday: | 9am - 4pm |
| Tuesday: | 9am - 4pm |
| Wendsday: | 9am - 4pm |
| Thursday: | 9am - 4pm |
| Friday: | 9am - 4pm |
| Saturday: | 9am - 2pm |
| Sunday: | 9am - 2pm |
I do not own this map link can be found in the footer.


Communication in the business environment has metamorphosed in many ways. It is no longer enough to derive strategies to reach out to people in the spectrum: consumers, stakeholders, associates, employees etc. through traditional mode of communication. Today, brand communication is all about individually connecting with people and retaining that connect.
Managing and maintaining this connects in the highly competitive market is a complex and an expensive task. Mobisol4u’s unique combination of robust technology and innovative commercial model allows us to offer compelling propositions for our clients. MobiSol4u provides the cost effective End-to-End Enterprise Mobile Messaging Service with high service level availability that is unmatched in the industry. MobiSol4u provides Bulk SMS, Voice OBD and Mass Mailing and empowers customers with best quality, technologically advanced and highly secure customizable services. Our Services encompass the whole gamut of mobility solutions adding immense value to enterprises by: • Increasing the communication speed which in turn increases the efficiency of an organization. • Reducing the external as well as internal communication costs considerably. • Personalizing all the communication. • Introducing the new customer touch point. • This is really useful for Schools, Retailers, Agents, Doctors and hospitals, Banks Tour/Travel companies, hosting and other service provider companies. MobiSol4u is a trusted name in India for mobile value added services like Mobile Advertising, SMS Marketing, Bulk SMS Messaging services, Voice OBD and Mass Mailing. Features as below: Personalized SMS, support upto 500 character. Build your Brand as the SMS is sent using your Sender ID. Web based and Desktop based Application One Price for All India, So you can save on STD sms cost. No false promises, what you see is what you get. Best Prices, Highest Quality of Service. Extremely simple, convenient and easy to use. Every module is designed keeping the user in mind. No Hardware modems or mobile handsets required.
| # | No. of Messages (Credits) | Rate per message (₹) | Validity | Pack Cost (₹) |
|---|---|---|---|---|
| 1 | 5,000 | 0.200 | 1year | 1000 |
| 2 | 10,000 | 0.180 | 1year | 1800 |
| 3 | 50,000 | 0.160 | 1year | 8000 |
| 4 | 100,000 | 0.140 | 1year | 14000 |
| 5 | 200,000 | 0.130 | 1year | 26000 |
| 6 | 500,000 | 0.120 | 1year | 60000 |
| # | Quantity | Rate Per Call (30 Sec) | Validity | Total |
|---|---|---|---|---|
| 1 | 5000 | 50 Paise | 3 Months | 2500 |
| 2 | 10000 | 45 Paise | 6 Months | 4500 |
| 3 | 50000 | 35 Paise | 9 Months | 17500 |
| 4 | 100000 | 30 Paise | 12 Months | 30000 |


3 writes to _writeOffset
System.Management.Automation (3)
engine\remoting\common\fragmentor.cs (3)
794
_writeOffset
= 0;
813
_writeOffset
+= amountToWriteIntoStream;
837
_writeOffset
= 0;
3 references to _writeOffset
System.Management.Automation (3)
engine\remoting\common\fragmentor.cs (3)
799
int dataLeftInWriteStream = _writeStream.Capacity -
_writeOffset
;
804
dataLeftInWriteStream = _writeStream.Capacity -
_writeOffset
;
810
_writeStream.Position =
_writeOffset
;


Haitian Body Order is a 18-track album that consists of some production from August Fanon, Xavier Anderson, Roc Marciano and Camouflage Monk. It also has features from Conway and Keisha Plum. The album reflects the era of hip-hop where simplicity was everything. The production and the rhymes are very catchy, but all in all extremely straight forward and direct.
Droog is an interesting enough personality with witty enough punchlines to not need guest stars, but they occur on “It Wasn’t Even Close” anyway. You can find (MF) DOOM and Mach-Hommy on “RST”, Roc Marciano on “Chasing Ghosts” and so on. What’s funny is that when you talk about magnetic attraction level rappers, I’d put DOOM at superconductive levels, while Roc Marciano is at the rare earth end of magnets. Despite that potential to be robbed of the spotlight, Droog keeps himself the focus on any track where he graciously shares the mic.
Prolific powerhouses, Mach-Hommy & Tha God Fahim return with the sequel to their “Dollar Menu” project. Featuring production from SADHUGOLD and Camoflauge Monk. This one is not for the traditionalist.
First original collective effort by the GxFR (read Griselda) family: presents Conway, Westside Gunn and the affiliate Mach-Hommy, at the time (2016) signed with the Buffalo label, which angrily delivers an hardcore EP that brings back the gangsta at its origins, it's one of the grimiest efforts you can face. Daringer's production is typical of the collective sound and is based on jazzy and slow rhythms that need to be left to breathe in order to be more appreciated.
FLYGOD is Griselda head-honcho WestsideGunn's debut studio album. Production by the likes of Daringer, The Alchemist, Apollo Brown, Camouflage Monk, Tha God Fahim, Statik Selektah on this project is simply awesome. The gritty stripped-down 90s throwback aesthetic that would become Griselda's forte, is done to perfection on FLYGOD. This is the project that started getting Griselda its proper buzz. FLYGOD is the epitome of what the label is about. A hard as nails release filled with uncompromising rhymes and a street essence, arguably re-pioneered by Roc Marciano with albums like Marcberg (2010) and Reloaded (2012). This rarity recently sold for $2,500 on Discogs.
Following his appearance on Kendrick Lamar's To Pimp a Butterfly, Los Angeles producer Knxwledge returns with a robust collection of dusty soul samples and trunk rattling beats. Hud Dreems is a 26-track collection of short-bursting vignettes sequenced without breaks for a seamless listening experience.
The album starts out in these signature dark mood these guys are known for but the Roc Marci featured ROSES lifts the darkness a bit, form there , it's just a rollercoaster ride of Eto's grim stories backed by a Muggs styled symphony of that ultra-grimey, thugged out, insane loop over battle drum sound that only he can craft. Muggs has a way of tailoring his arrangements to match the artist and he found the right sound to suit Eto's darkside.The features bring their pens to the table, especially Eto's frequent collab partner, Willie The Kid who sound fierce over the Muggs backdrop.
Sitting at 14 songs, and produced entirely by Alchemist and in-house producer Daringer, the project is all the things you love about everything Griselda ever drops, but with this extra layer of sonic consistency crafted by the two upper-echelon grimy beatsmiths. They form like Voltron for one of the project’s centerpieces, the two-part “‘97 Hov.”


|
SGCoreCs
v1.3.1
SenseGlove C# API
|
A Sense Glove device that is not yet added to the API. More...
Public Member Functions | |
| BetaDevice (string constants, string id, string hwVer, string fwVer) | |
| Creates a new instance of a Beta Device. More... | |
| override string | GetDeviceID () |
| Retrieve this device's unique identifier. More... | |
| override DeviceType | GetDeviceType () |
| Retrieve the DeviceType of this SGDevice. More... | |
| override string | GetHardwareVersion () |
| Retrieve this device's hardware version. More... | |
| override int | GetFirmwareVersion () |
| Retireve this device's firmware version. More... | |
| override int | GetSubFirmwareVersion () |
| Retrieve this device's sub firmware version. v4.12 returns 12. More... | |
| string | GetConstantsString () |
| Retrieve the Constants string for additional processing. More... | |
| string | GetSensorData () |
| Retrieve a raw sensor string from this Beta Device. More... | |
| string | GetLastCmd () |
| Retireve a the last command retrieved from this Beta Device. More... | |
| bool | SendCmd (string command) |
| Send a raw string command to this device. More... | |
| bool | SendHaptics (string haptics) |
| override string | ToString () |
| Retrieve a string representation of this BetaDevice. More... | |
| Public Member Functions inherited from SGCore.SGDevice | |
| virtual string | FirmwareString () |
| Retreive the Device's firmware as a string. Ex. "v4.7" More... | |
| string | GetAddress () |
| Retrieve this Device's Serial/Bluetooth address. More... | |
| ConnectionType | GetConnectionType () |
| Retrieve the connection type of this Sense Glove. More... | |
| bool | IsConnected () |
| Check if this device is currently connected to the system. More... | |
| int | PacketsPerSecondReceived () |
| Retrieve the device's Packets per Second Variable More... | |
| int | PacketsPerSecondSent () |
| Retrieve the device's Packets per Second Variable More... | |
| int | GetDeviceIndex () |
| Retrieve the index of this device within SenseComm. More... | |
| virtual bool | IsWireless () |
| Returns true if this device is connected over a connection other than usb cable. More... | |
| virtual bool | HasBattery () |
| Returns true if this device operates on abattery More... | |
| virtual bool | IsCharging () |
| Returns true if this device is currently charging More... | |
| virtual bool | GetBatteryLevel (out float battLvl) |
| Returns the device's battery level, as a value between 0 (empty) and 1 (full). More... | |
| override string | ToString () |
| Retrieve a String representation of this object. More... | |
Static Public Member Functions | |
| static SGDevice | Parse (string cString) |
| Parse a Beta Device from a cString. More... | |
Protected Attributes | |
| string | cString |
| The constants string retrieved when the device is first connected. More... | |
| string | deviceID |
| The deviceID of this Beta Device. More... | |
| string | hwVersion |
| The hardware (sub) version of this Beta Device. More... | |
| int | fwVersionMain |
| The firmware version of the Beta Device. More... | |
| Protected Attributes inherited from SGCore.SGDevice | |
| int | deviceIndex = -1 |
| The index of this device inside the SenseComm program. Used to access shared memory. More... | |
| string | ipcAddress = "device" |
| Internal shared memory adress. More... | |
| int | lastCmdID = 0 |
| used to generate new cmd ids when sending special commands More... | |
Additional Inherited Members | |
| Public Types inherited from SGCore.SGDevice | |
| enum class | ConnectionType { Unknown = -1 , Serial , BluetoothSerial , BluetoothAndroid } |
| The type of connection this device is using More... | |
A Sense Glove device that is not yet added to the API.
| SGCore.BetaDevice.BetaDevice | ( | string | constants, |
| string | id, | ||
| string | hwVer, | ||
| string | fwVer | ||
| ) |
Creates a new instance of a Beta Device.
| string SGCore.BetaDevice.GetConstantsString | ( | ) |
Retrieve the Constants string for additional processing.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| string SGCore.BetaDevice.GetLastCmd | ( | ) |
Retireve a the last command retrieved from this Beta Device.
| string SGCore.BetaDevice.GetSensorData | ( | ) |
Retrieve a raw sensor string from this Beta Device.
|
virtual |
Retrieve this device's sub firmware version. v4.12 returns 12.
Reimplemented from SGCore.SGDevice.
|
static |
Parse a Beta Device from a cString.
| cString |
| bool SGCore.BetaDevice.SendCmd | ( | string | command | ) |
Send a raw string command to this device.
| command |
| bool SGCore.BetaDevice.SendHaptics | ( | string | haptics | ) |
| override string SGCore.BetaDevice.ToString | ( | ) |
Retrieve a string representation of this BetaDevice.
|
protected |
The constants string retrieved when the device is first connected.
|
protected |
The deviceID of this Beta Device.
|
protected |
The firmware version of the Beta Device.
|
protected |
The hardware (sub) version of this Beta Device.


Rawlings appeals for work to restart on Volta roads
by Maxwell Awumah, GNAHo, Nov. 14, GNA - Former President Jerry John Rawlings has appealed to the Minister of Roads and Highways to urgently instruct contractors working on the main road entering the Ho township to restart work.
He noted that roads in some parts of the Region were in very deplorable states and needed urgent attention to prevent road crashes and other inconveniences road users faced.
President Rawlings made the appeal when he signed the book of condolence for the late Victoria Adzagli Ametefee, wife of Mr Henry K. Ametefee, Volta Regional Chairman of the National Democratic Congress (NDC) in Ho.
He also called for the Eastern Corridor segment to be given maximum attention to facilitate movement of goods and services.
Former President Rawlings said the linkages between road infrastructure and economic growth could not be detached from each other and prayed that urgent attention be given to roads in the Region.
He called for love in families, saying, “it was a wrong time to lose one's wife.”
President Rawlings donated US$1,000 to the family and promised to be present at the burial and funeral service.
Mr Ametefee said the presence of President Rawlings had assuaged his pain and hoped the whole NDC fraternity, political partners, family and friends would assist him to give a befitting burial to his wife.
Reverend Samuel K. Dzamesi, Ho Central Pastor, Church of Christ and Proprietor of Sonrise Christian High School, on behalf of the bereaved family thanked President Rawlings for his presence to commiserate with them.
Mr James Gunu, Regional Secretary, NDC, on behalf of the Party thanked the Founder of the NDC for showing leadership and empathising with the bereaved family.
GNA


Congrats - you did it!
scroll down to see how you can continue to better our planet
Congratulations!
You have formed a new habit that positively affects the world around you — success! You saved your virtual planet from destruction, and you’re equipped to continue your new found habit of recycling to rescue our physical space on Earth.
We’ve said it before, but it’s more pertinent now than ever. Don’t stop now. Do something — recycle.


MARIE BAIE DES ANGES
Reviewed by Harvey Karten, Ph.D. Sony Pictures Classics Director: Manual Pradal Writer: Manual Pradal Cast:Vahina Giocante, Frederic Malgras
"Vahina Giocante is France's answer to Viagra.  "So," said a friend, "Go see 'Mary Bear'" (as he pronounces the title). "It will get your juices flowing." This guy, who probably owns a respectable supply of testosterone, understands two things: 1) the power of movies to "get your juices flowing" and 2) the fact that Vahina Giocante is the only reason to see this French muddle. You see, Manuel Pradal, who introduces this new femme fatale to the cinema-loving world, probably thinks she's the next Brigitte Bardot. But while this fourteen-year-old who shows little personality has substantial good looks, there's nothing there that you won't find in any high school from the island of Jersey to the streets of Jersey City. If you will indulge another comparison, Mr. Pradal is no Harmony ("Kids") Korine, whose eponymous tykes fill their merry-go- roundelays with considerable humor in an equally plotless picture.
Marie (Vahina Giocante), who is nicknamed "Baie des Anges" (the bay of angels) because she hangs around a body of water in Nice which was once the home of a shark called ("anges de mer"), seems to have no home, or at least no curfew. She intends to make the most of this asset by throwing herself hedonistically into a gang of American sailors at a base where the Yanks appear alternately to be rehearsing for "South Pacific" and for "On the Town," with one naval hero doing a comic Gene Kelly shtick and others crowding around the jail-bait in a choreographed, lusty songfest. When one of the young French wanderers gets stabbed by a Yank whom he has just robbed and others in the youth gang call for "war" against the U.S. base, Marie doesn't give a fig. She's having fun with people who talk quite a bit less than Eric Rohmer's characters, her own countrymen.
But just as the Americans tire of her, she runs into a kid fresh out of reform school, a good-looking, feral, devil-may- care Orso (Frederic Milagras), who sneaks into swank homes on the Riviera to take the jewels but is not against picking the pockets of Americans who are swimming and are careless enough to leave their francs, their watches and their clothes in the nearby bushes.  They drink, tussle, and make merry as only teens know how to do, but this being a French movie that needs to make like Truffaut, it has an ending which is not in the typical Hollywood tradition.
The Montpelier-born director, Manuel Pradal, intends this first feature to be a fairy tale combining the natural beauty of the Riviera with the sordid delinquencies of roving bands of recent immigrants from Yugoslavia and Albania. To ornament the hoped-for fabulous aspect, he haphazardly throws in scenes from a Grand Prix, from Carnaval and from other Mediterranean elements. He allegedly spent a year hunting for young non-professionals, met 15,00 kids, and looked for performers who could best express their resentment at being outsiders. Though he deserves credit for casting young people right out of juvenile prisons in France and Italy, the title "Marie Baie des Anges" sounds better than the film looks.  Rated R. Running time: 90 minutes. (C) Harvey Karten 1998
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


2 references to OnUnblockJobCompleted
System.Management.Automation (2)
engine\remoting\client\Job2.cs (2)
1307
OnUnblockJobCompleted
(new AsyncCompletedEventArgs(new ObjectDisposedException(TraceClassName), false, null));
1351
OnUnblockJobCompleted
(new AsyncCompletedEventArgs(null, false, null));


How can we assign a geo-location tag to tweets for users who don't choose to share location? Researchers employ a cool convex optimization method and statisical learning model to infer location for over 101, 846, 236 Twitter users. Although, the prescreening of data seems to generously pad the success classification rate, this is still a very interesting read.