Random promotions
Spent a little time learning about the Peter Principle today and found an agent-based model of company promotion strategies.
Spent a little time learning about the Peter Principle today and found an agent-based model of company promotion strategies.
Another italicizing issue. This time going from R to latex using xtable.
As a general rule, most bacterial groups and species should be italicized. However, I’m working with a few oddities that are not italicized. This led to some issues with axis labelings. Through some troubleshooting I found a pretty workable solution to generating multiple font-faces in axes labels using ggplots. I also customized the color for good measure. Plot and code below.
In this I need to extract baseline and final values from a time series for one set of bacteria based on the analysis of another set. The final time varies by person and is derived in the separate analysis so that must be extracted individually then I must use this time to find the final value. In the end I want to combine the information from that separate analysis with the values I extracted. This is the ugliest code I’ve ever written.


| SystemBWRSEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemCSPsrkEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemDesmukhMather |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemDuanSun |
This class defines a thermodynamic system using the SRK EoS and Pitzer for liquids
|
| SystemElectrolyteCPA |
This class defines a thermodynamic system using the Electrolyte CPA EoS of Equinor
|
| SystemElectrolyteCPAstatoil |
This class defines a thermodynamic system using the Electrolyte CPA EoS of Equinor
|
| SystemEos |
|
| SystemFurstElectrolyteEos |
SystemFurstElectrolyteEos class.
|
| SystemFurstElectrolyteEosMod2004 |
SystemFurstElectrolyteEosMod2004 class.
|
| SystemGERG2004Eos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemGERGwaterEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemGEWilson |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemKentEisenberg |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemNRTL |
This class defines a thermodynamic system using the SRK EoS amd NRTL for liquids
|
| SystemPCSAFT |
This class defines a thermodynamic system using the PC-SAFT EoS equation of state
|
| SystemPCSAFTa |
This class defines a thermodynamic system using the PC-SAFT with association equation of state
|
| SystemPrCPA |
This class defines a thermodynamic system using the PR-CPA equation of state
|
| SystemPrDanesh |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemPrEos |
This class defines a thermodynamic system using the Peng Robinson equation of state
|
| SystemPrEos1978 |
This class defines a thermodynamic system using the Peng RObinson v.
|
| SystemPrEosDelft1998 |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemPrGassemEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemPrMathiasCopeman |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemProperties |
|
| SystemPsrkEos |
This class defines a thermodynamic system using the Predictive SRK-EoS equation of state
|
| SystemRKEos |
This class defines a thermodynamic system using the RK equation of state
|
| SystemSrkCPA |
This class defines a thermodynamic system using the CPA EoS equation of state
|
| SystemSrkCPAs |
This class defines a thermodynamic system using the sCPA-EOS equation of state
|
| SystemSrkCPAstatoil |
This class defines a thermodynamic system using the CPA-EOS of Equinor equation of state
|
| SystemSrkEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemSrkMathiasCopeman |
This class defines a thermodynamic system using the SRK with Mathias Copeman equation of state
|
| SystemSrkPenelouxEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemSrkSchwartzentruberEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemSrkTwuCoonEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemSrkTwuCoonParamEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemSrkTwuCoonStatoilEos |
SystemSrkTwuCoonStatoilEos class.
|
| SystemThermo |
|
| SystemTSTEos |
This class defines a thermodynamic system using the SRK equation of state
|
| SystemUMRCPAEoS |
This class defines a thermodynamic system using the UMR-PRU with MC paramters equation of state
|
| SystemUMRPRUEos |
This class defines a thermodynamic system using the UMR-PRU equation of state
|
| SystemUMRPRUMCEos |
This class defines a thermodynamic system using the UMR-PRU with MC paramters equation of state
|
| SystemUMRPRUMCEosNew |
This class defines a thermodynamic system using the UMR-PRU with MC paramters equation of state
|
| SystemUNIFAC |
This class defines a thermodynamic system using the SRK equation of state for gas and Unifac for
liquids
|
| SystemUNIFACpsrk |
This class defines a thermodynamic system using the SRK equation of state
|


You should see: A weirdly moving Silly Spinner.
You should see: Some kind of error message.
You should see: Nothing fancy.
You can display loading spinners inline. Sometimes (nope!) they just load. Others (yippie!) are done already. Errors happen as well.
You should see: Some inline spinners.


Hi
I am new to home automation but am keen to do something in this area. I have been scanning the internet for a couple of months and have been disappointed that there seemed to be lots of competing proprietary systems available that tied you in to their system, but few open source systems that allow yo to build a complete solution from discrete devices.
Now I have found you site, I have settled on starting simply with emonTX, emonGLCD and use my Raspberry Pi as the emonBase.
At this time I am a consumer of Power and Gas only, I do not have any solar supply although I hope to do this one day. By monitoring my usage of Gas and Electricity closely, I hope to find ways reduce that usage.
My questions are :-
Can I monitor specific appliances or sockets with emon procucts.
I want to also be able to remotely control sockets and lighting (WiFi if possible) but do not want to be tied into a closed system. What are other people who have emon products using for this?
Remote wireless radiator valves are now available from a lot of manufacturers. Has anybody integrated these devices into their home automation setup?
Re: System Intergration
Welcome, Paul.
It seems as if we're ignoring you! I think it might be because I don't know of anybody active on the forums who is doing/has done the sort of things you have in mind. Trystan is working on recognising individual loads from their signatures, but I think that might have been put on the back burner for now. If that approach isn't feasible, then it starts to get expensive if you want to measure each appliance individually. This is where the multiplexer approach comes into its own, but you still need a lot of c.t's. And there lies another problem: our standard c.t. is 100 A rated and cannot reliably and accurately measure below about 200 W. You might find a solid core c.t. that is suitable and cheap, but I don't know of one off-hand.
Re: System Intergration
Hi Paul,
There's lots of interesting stuff on Jack Kelly's blog and also on Ollie Parson's
http://jack-kelly.com
http://blog.oliverparson.co.uk
Aideen
Re: System Intergration
Hi
Thanks for the feedback.
I figure I may not want to monitor every single socket. The big users, like washing machines, electric oven and dishwashers should be OK with a second TX unit and as they are close together in the kitchen the cables for the c.t should reach I hope.
I guess I am looking for a way to be able to tell my son has left his TV in standby and he game console on but has gone to work and I want to be able to turn them off :)


Let me introduce you to
SAMIM
JAHIN
He is a self-taught graphic designer and front-end developer.
Currently a CSE Undergrad, he loves to write code
and to create beautiful designs.
He is a self-taught graphic designer and front-end developer. Currently a CSE Undergrad, he loves to write code and to create beautiful designs.


@(top: Seq[(String, Int)], bottom: Seq[(String, Int)], surfaceTop: Seq[(String, Int)], topLeIdent: Seq[(String, Int)])(implicit request: RequestHeader, messagesProvider: MessagesProvider)
@import helper._
@main{
Airport information
Report option
This option print 10 countries with highest number of airports (with count) and countries with lowest number of airports.
TOP10 Countries with highest number of airports
| Country name | Number of airports |
@top.map { country =>
| @country._1 |
@country._2 |
}
BOTTOM10 Countries with lowest number of airports
| Country name | Number of airports |
@bottom.map { country =>
| @country._1 |
@country._2 |
}
TOP10 list by runways's surface type
| Type of surface | Number |
@surfaceTop.map { surface =>
| @surface._1 |
@surface._2 |
}
TOP10 list by runways's "le_ident" type
| Le_ident type | Number |
@topLeIdent.map { le_ident =>
| @le_ident._1 |
@le_ident._2 |
}
@*Bonus: Print the top 10 most common runway identifications (indicated in "le_ident" column)
*@
}


We provide support for the following clients:
A Company
B Ltd.
C & D
E Corp.
F & Partners
G & Co.
H Group
I & Sons
J Ent.


[Unofficial] API for Teespring
To use the API is really easy! Currently this supports 2 endpoints. A general lookup of a specific campaign as well as a full search of all campaigns.
http://teespring-api.cloudapp.net/v01/[campaign-name]
This will return the available information about a specific campaign.
Expected output:
{
"status":"ok",
"tee":"campaign-name]",
"url":"[campaign-url]",
"images":{
"front":"[front-image-url",
"back":"[back-image-url]"
},
"total_sold":"[amount-currently-sold",
"goal_amount":"[goal-amount]",
"goal_date":"[goal-end-date]",
"details":"[campaign-details]"
}
GET: http://teespring-api.cloudapp.net/v01/search/[search query]
This will return an array of JSON objects for a given search query.
Expected output:
{
hits: [ ],
nbHits: 0,
page: 0,
nbPages: 0,
query: "sample search query",
}
Each item in hits returns the following:
{
id: ,
name: ,
description: ,
url: ,
tippingpoint: ,
ordered: ,
front_text: ,
back_text: ,
endcost: ,
enddate: ,
amount_ordered: ,
primary_pic_url: ,
secondary_pic_url: ,
user_id: ,
active_to_i: ,
tag_names: ,
publicly_searchable: ,
tags: [ ],
objectID: ,
highlightResult: {
name: {
value: ,
matchLevel: ,
matchedWords: [ ]
},
description: {
value: ,
matchLevel: ,
matchedWords: [ ]
},
url: {
value: ,
matchLevel: ,
matchedWords: [ ]
},
tag_names: {
value: ,
matchLevel: ,
matchedWords: [ ]
}
}
}
If there's a problem, we'll also let you know
{
"status":"error",
"message":"Looks like the campaign you requested may not exists..."
}
Here is a simple Node.JS example:
var request = require('request');
request('teespring-api.cloudapp.net/v01/tudev', function (error, response, body) {
if (!error && response.statusCode == 200) {
JSON.parse(body);
}
})


Ball State President highlights successes, areas for improvement and future plans
Numbers show increase in enrollment, diversity, degree attainment at Ball State
Looking back at Ball State’s switch from coal to geothermal energy
President Mearns reflects on MCS-Ball State partnership
The five best achievements in Ball State Athletics this decade
How Ball State’s campus transformed over the decade
A look back at the mayors who served Muncie
Illustrations: Emily Wright
Design and Development: Emily Wright and Will English


Please combine the testing condition to build your test case
G1 Account
HBAP
HBEU
CounterParty
HSBC
PLASP
BLACK
TradeType
Stock Borrow and Lending
Collateral
Collateral and Swap
ActivityType
Pending Lend
Settlement
Cancel Trade
Other
Pending Lend
Settlement
Cancel Trade
Generate
Reset
TestScripts
TestCaseName
Submit


Alphasense Particulate Monitor (OPC-N2)¶
- The Optical Particle Monitor (OPC-N2) measure PM1, PM2.5 and PM10.
- More information on the Particulate Sensor can be found on the Alphasense website: http://www.alphasense.com/index.php/products/optical-particle-counter/
OPC-N2 Custom cable¶
Make a custom cable for connecting the Particulate monitor to the board
| Qty | Description | Vendor | Part # |
|---|---|---|---|
| 1 | Wire, 28 AWG, Black | Digikey | W2628B-50-ND |
| 1 | Connector recept, 6 pos, 1 mm | Digikey | WM7919-ND |
| 6 | Terminal crimp for use with 1mm connector | Digikey | WM7933-ND |
| 1 | Connector recept, 6 pos, 2.5 mm | Digikey | 455-2218-ND |
| 6 | Terminal crimp for use with 2.5 mm connector | Digikey | 455-2261-1-ND |
Other tools you will need to make the cable: hand crimp e.g. Molex hand crimp.
Connecting to the board¶
- The Safecast Air Board has a designated header (P9) for the OPC-N2 particulate monitor.
- Connect the OPC-N2 custom cable to the front of the OPC-N2 monitor and the P9 header on the Safecast Air Board.


Secretly, fridays have always been the days I hated the most.
I take fridays as I take airplanes and trains: a suffocating place in time where you are compelled to experience and wonder about existence.
For me, what happens in a Friday night is the logical conclusion, or symbolic representation, of one's experience of life.
And my logical conclusion had mostly been one of an alienating and unescapable boredom and loneliness.
The reason was simple. Alhough epicurean, I always took joissance as a fundamental value in my life. Each drop of sweat, each email sent, these were all for the expectation of never-ending pleasure and consumption.
It was unavoidable: on fridays, I had to find enjoyment and pleasure; I had to justify the sweat and reassure joissance as the fundamental value of life.
I could never do it.
Okay, perhaps once.
Still, today is strange - one I never experienced, I had to document it.
I feel lonely, maybe melancholic, but there's no suffocating alienation screaming down the throats of existence.
Perhaps, I'm getting old, and old people just like to sleep.
Perhaps, I'm experiencing something real, plastics would likely evaporate.
Perhaps, I'm stronger, or wiser, or more patient.
Regardless, I'm finally finding the right use of my sweat.
Regardless, today is a happy day.
It is a happy day because it's strange.
It's strange because this friday is just another day.


KJD IT Solutions Limited have been providing Consultancy and Support Services to many companies over many years and have grown from strength to strength.
Here are some highlights:
2021
March: Enhanced our own Infrastructure to ensure we have the future capabilities for greater remote capabilities,
with new and faster network storage which will align with our existing virtual and cloud capabilities.
ensuring we have the infrastructure in place to strive forward with future business expectations.
February: Improved and enhanced the Help Desk to allow new
and existing Clients to submit support tickets and request project resource.
January: We are working closely with our external vendors to ensure we have the capabilities for any future regulatory changes including IR35.
This enables us to take contacts both inside and outside IR35 whilst ensuring both ourselves and our clients are working
within any new or existing regulations
2020
December: Contract agreed with HexagonSI to enhance the virtual, cloud and physical infrastucture.
July: Contract agreed with Ricoh to Provide automated Linux benchmarking to Vodafone.
March: Sponsored the Barney and Echo Internet Safety Campaign.
March: Agreement to provide support to Educational facilities within the SN postcode area.
February: Implemented a new Jira /Help Desk to our existing Clients.
January: Continued with Altran implementing a Virtual Testing solution for NATS.
2019
December: Contract agreed with Altran to implement a Virtual Testing solution for NATS.
August: Contract Extended with Accenture to Design the Linux CID infrastructure at Dyson UK.
July: Contract agreed with Accenture to automate Linux device builds at Dyson UK.
May: Contract further extended with Oxford University Press to provide Project Consultancy.
February: Contract extended with Oxford University Press to provide Project Consultancy.
2018
November: Contract agreed with Oxford University Press to provide further Project Consultancy.
October: Contract agreed with Cisco to enhance the virtual and physical infrastucture.
August: Contract agreed with University of Bristol to reconfigure Puppet and Github.
May: Contract agreed with Abbott Diabetic Care to migrateSQL databases and storage.
2017
November: Contract agreed with Oxford University Press to provide Project Consultancy.
June: Contract extended with Electronic Arts to add centralised configuration.
January: Contract agreed with Electronic Arts to analyse and reconfigure infrastucture.
2016
August: Contract extended with Three Mobile to decommsion infrastucture.
February: Contract extended with Three Mobile to produce adhoc scripts.
2015
December: Became incorporated as KJD IT Solutions Limited.
August: Contract extended with Three Mobile to migrate to Office 365.
February: Contract agreed with Thee Mobile to provide support Services.
2014
October: Contract agreed with Nanopore Technologies to upgrade clusters.
March: Contract agreed with Tibco Software to migrate infrastructure.
2012
June: Contract ageed with National Trust to provide specialised support.
February: Contract extended with GE Aviation to partition Applications.
2011
October: Contract agreed with GE to complete a Software Audit.
January: Contract agreed with Schlumberger to upgrade the RHEL infrastucture.
2010
September: Contract agreed with TSSI Limited to upgrade applications.
June: Contract agreed with 1E Software to produce testing scripts.
February: Contract agreed with DSDA to support the Ministery of Defence.
2009
May: Contract with Motorola UK to provide critical support servcies.
2007
August: Contract with TSTech UK to implement am MRP system.
April: Contract with PrePay Tech to provide database analyse.
2006
October: Contract with Lister Petter to provide Support Services.
1996
September: Contract with Motorola UK to provide Support Services. |


| MPI_FILE_DELETE(filename, info) | |
| IN filename | name of file to delete (string) |
| IN info | info object (handle) |
int MPI_File_delete(char *filename, MPI_Info info)
MPI_FILE_DELETE(FILENAME, INFO, IERROR)
CHARACTER*(*) FILENAME
INTEGER INFO, IERROR
static void MPI::File::Delete(const char* filename, const MPI::Info& info)
MPI_FILE_DELETE deletes the file identified by the file name filename. If the file does not exist, MPI_FILE_DELETE raises an error in the class MPI_ERR_NO_SUCH_FILE.
The info argument can be used to provide information regarding file system specifics (see Section File Info , page File Info ). The constant MPI_INFO_NULL refers to the null info, and can be used when no info needs to be specified.
If a process currently has the file open, the behavior of any access to the file (as well as the behavior of any outstanding accesses) is implementation dependent. In addition, whether an open file is deleted or not is also implementation dependent. If the file is not deleted, an error in the class MPI_ERR_FILE_IN_USE or MPI_ERR_ACCESS will be raised. Errors are raised using the default error handler (see Section I/O Error Handling , page I/O Error Handling ).


| |
Class methods defined here:
- get_sources()
from builtins.type
- Request all available sources from News API.
Returns:
dictionary: The return value. Keys are names of sources. Values are IDs of sources.
- request_json(url, key)
from builtins.type
- Request JSON from the given URL with a formatted query string.
Args:
url: Target URL with formatted query string.
key: Key for the target value within the returned JSON object.
Returns:
string: The return value. Value from the returned JSON object based on the given key.
- search_term(term,
sources)
from builtins.type
- Search the given news sources for articles containing the given term.
Args:
term: Target term to search for within articles.
sources: Comma separated list of news source IDs.
Returns:
dictionary: The return value. Keys are titles of articles. Values are objects containing contents of articles.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes defined here:
- api_key = ''
- api_param = 'apiKey'
- headlines_ep = 'top-headlines'
- news_url = 'http://newsapi.org/v2/'
- page_param = 'pageSize'
- sources_ep = 'sources'
- sources_param = 'sources'
- term_param = 'q'
|


Doctrine is a collection of projects built for PHP. Each project can be used standalone and installed with Composer.
These are projects that integrate Doctrine with other libraries and/or frameworks and are officially supported by Doctrine.
{% include "projects-short-list.html.twig" with {projects:integrationProjects} %}These were once active and maintained projects. If you are interested in helping to maintain any Doctrine project take a look at the open issues on GitHub and submit pull requests.
{% include "projects-short-list.html.twig" with {projects:inactiveProjects} %}These project are no longer maintained with no chance of revival and have been archived.
{% include "projects-short-list.html.twig" with {projects:archivedProjects} %}


stdlib v22.1.4 ms_transform
This module provides the parse transformation that makes calls to ets
and dbg:fun2ms/1
translate into literal match specifications. It also provides the back end for the same functions when called from the Erlang shell.
The translation from funs to match specifications is accessed through the two "pseudo functions" ets:fun2ms/1
and dbg:fun2ms/1
.
As everyone trying to use ets:select/2
or dbg
seems to end up reading this manual page, this description is an introduction to the concept of match specifications.
Read the whole manual page if it is the first time you are using the transformations.
Match specifications are used more or less as filters. They resemble usual Erlang matching in a list comprehension or in a fun used with lists:foldl/3
, and so on. However, the syntax of pure match specifications is awkward, as they are made up purely by Erlang terms, and the language has no syntax to make the match specifications more readable.
As the execution and structure of the match specifications are like that of a fun, it is more straightforward to write it using the familiar fun syntax and to have that translated into a match specification automatically. A real fun is clearly more powerful than the match specifications allow, but bearing the match specifications in mind, and what they can do, it is still more convenient to write it all as a fun. This module contains the code that translates the fun syntax into match specification terms.
Link to this section Summary
Functions
Takes an error code returned by one of the other functions in the module and creates a textual description of the error.
Implements the transformation at compile time. This function is called by the compiler to do the source code transformation if and when header file ms_transform.hrl
is included in the source code.
Implements the transformation when the fun2ms/1
functions are called from the shell. In this case, the abstract form is for one single fun (parsed by the Erlang shell). All imported variables are to be in the key-value list passed as BoundEnvironment
. The result is a term, normalized, that is, not in abstract format.
Link to this section Functions
format_error/1
Takes an error code returned by one of the other functions in the module and creates a textual description of the error.
parse_transform/2
parse_transform(Forms, Options) -> Forms2 | Errors | Warnings when Forms :: [erl_parse:abstract_form() | erl_parse:form_info()], Forms2 :: [erl_parse:abstract_form() | erl_parse:form_info()], Options :: term(), Errors :: {error, ErrInfo :: [tuple()], WarnInfo :: []}, Warnings :: {warning, Forms2, WarnInfo :: [tuple()]}.
Implements the transformation at compile time. This function is called by the compiler to do the source code transformation if and when header file ms_transform.hrl
is included in the source code.
For information about how to use this parse transformation, see ets
and dbg:fun2ms/1
.
For a description of match specifications, see section Match Specification in Erlang in ERTS User's Guide.
transform_from_shell/3
transform_from_shell(Dialect, Clauses, BoundEnvironment) -> term() when Dialect :: ets | dbg, Clauses :: [erl_parse:abstract_clause()], BoundEnvironment :: erl_eval:binding_struct().
Implements the transformation when the fun2ms/1
functions are called from the shell. In this case, the abstract form is for one single fun (parsed by the Erlang shell). All imported variables are to be in the key-value list passed as BoundEnvironment
. The result is a term, normalized, that is, not in abstract format.


The symptom checker results show a list of possible conditions, not an actual diagnosis. Consult your doctor if you are concerned.
The most reliable way to determine the cause of your symptom.Thank you for using the Symptom Checker.
This tool allows you to choose a variety of factors related to your symptom, in order to help you narrow the potential medical
This tool allows you to choose a variety of factors related to your symptom, in order to help you narrow the potential medical
They can also advice someone whether to seek advice from a healthcare professional and the level of urgency in which to do so.
Using computerised algorithms, the self diagnosis tool will then give a range of conditions that might fit the problems a user is experiencing.


Edge colors in both nplot()
and set_edge_gpar()
can be specified using
a formula based on ego()
and alter()
(source and target). This way the
user can set various types of combination vaying the mixing of the colors,
the alpha levels, and the actual mixing colors to create edge colors.
color_formula(x, col, alpha, env, type, mix = 1, postfix = NULL) ego(...) alter(...)
| x | An object of class netplot. |
|---|---|
| col | Any valid color. Can be a single color or a vector. |
| alpha | Number. Alpha levels |
| env, type, postfix | For internal use only. |
| mix | Number. For mixing colors between |
| ... | Passed to |
library(igraph) library(gridExtra) library(magrittr) net <- make_ring(4) set.seed(1) np <- nplot(net, vertex.color = viridis::viridis(4), vertex.size.range=c(.1, .1)) np %<>% set_edge_gpar(lwd = 4) grid.arrange( np, np %>% set_edge_gpar(col =~ego + alter), np %>% set_edge_gpar(col =~ego(alpha=0) + alter), np %>% set_edge_gpar(col =~ego + alter(alpha=0)), np %>% set_edge_gpar(col =~ego(mix=0) + alter(mix=1)), np %>% set_edge_gpar(col =~ego(mix=1) + alter(mix=0)) )


Great Hill Corporation Step 4: Drawing Something Interesting |
[Prev] [Next] [Tutorial2] |
Enough of this boring stuff. Let's draw something interesting.
Make the changes marked in red in the file sample2.cpp (as it exists after step 3) and recompile and run the program.
You should see a red cone next to a green cylinder. Now we're getting somewhere.
The 'ani' part of the word VRaniML means animation, so in the next couple of steps we will learn how to animate things.
#include "windows.h" #include "vraniml.h" LRESULT APIENTRY WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_DESTROY: PostQuitMessage( 0 ); break; } return DefWindowProc(hWnd, message, wParam, lParam); } HWND InitWindow(HINSTANCE hCurrentInst, char *className, char *windowName) { WNDCLASS wndClass; HWND hWnd; /* register window class */ wndClass.style = CS_HREDRAW | CS_VREDRAW; wndClass.lpfnWndProc = WindowProc; wndClass.cbClsExtra = 0; wndClass.cbWndExtra = 0; wndClass.hInstance = hCurrentInst; wndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION); wndClass.hCursor = LoadCursor(NULL, IDC_ARROW); wndClass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH); wndClass.lpszMenuName = NULL; wndClass.lpszClassName = className; RegisterClass(&wndClass); /* create window */ hWnd = CreateWindow(className, windowName, WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0, 0, 640, 480, NULL, NULL, hCurrentInst, NULL); ShowWindow(hWnd, SW_SHOW); UpdateWindow(hWnd); return hWnd; } // // Create a shape object of the given color using the given geometry // This function simply makes it easier to build shapes. // vrShape *BuildShape(const SFColor& color, vrGeometryNode *node) { // In a certain sense the following code is very similar // to the format of a VRML file. Notice also the use of // the 'Set' functions which are available for all exposed // members of all classes. vrShape *shape = new vrShape; vrAppearance *app = new vrAppearance; vrMaterial *mat = new vrMaterial; mat->SetDiffuseColor(color); app->SetMaterial(mat); shape->SetAppearance(app); shape->SetGeometry(node); return shape; } int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPreviousInst, LPSTR lpszCmdLine, int nCmdShow) { HWND hWnd = InitWindow(hInstance, "VRaniML", "VRaniML Sample Program 2"); vrBrowser *browser = new vrBrowser(hWnd); delete this line --->// Create a sphere delete this line --->vrSphere *sphere = new vrSphere; delete this line --->// Create a shape to hold the sphere delete this line --->vrShape *shape = new vrShape; delete this line --->// Add the sphere to the shape and the shape to the browser delete this line --->shape->SetGeometry(sphere); delete this line --->browser-AddChild(sphere); // The transform node allows one to build a hierarchy. // After the next few lines the scene graph will contain // four nodes, two top level transforms each with its // own shape node. This again reflects the VRML file // format very closely. // // Notice also the use of the predefined colors 'Red' and 'Green'. // VRaniML has a large set of predefined colors. // Add a red cone, slightly away from the origin vrTransform *t = new vrTransform; t->SetTranslation(SFVec3f(-1.0, 0.0, 0.0)); t->AddChild(BuildShape(Red, new vrCone)); browser->AddChild(t); // Add a green cylinder in a slightly different place t = new vrTransform; t->SetTranslation(SFVec3f(1.0, 0.0, 0.0)); t->AddChild(BuildShape(Green, new vrCylinder)); browser->AddChild(t); browser->Traverse(); while (1) { MSG msg; if (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) { if (GetMessage(&msg, NULL, 0, 0) != TRUE) { // cleanup -- the browser -- deletes the scene graph delete browser; return msg.wParam; } TranslateMessage(&msg); DispatchMessage(&msg); } } // cleanup -- the browser -- deletes the scene graph delete browser; return FALSE; }


CNIT 133
JavaScript
Home
Basic Ops
Functions
Loops
Arrays
Objects
jQuery
Ajax
Homework 7
Part 1
Link to part 1
Part 2
Part 3
Part 4


Creates an instance of the class specified by the path by running the "G#Object_Create.vi" of the class. Override this construcor, else the default constructor runs. If the external create process is running, an event will be sent to let this process create and own the VI.
Be careful when using this VI when building executables, since paths must be correct and make sure that all needed VIs are included in the build. Do not exclude unused dynamic dispatch VIs in the build script.
Note: Will not work on RT systems.
|
error in (no error) The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
status The status boolean is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
code The code input identifies the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
source The source string describes the origin of the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
control values Array of variants that could be passed to the default constructor. |
| Value |
|
class path Specifies the path to the LabVIEW class. |
|
timeout in ms (-1) Timeout in ms to wait for the creating event before returning an error. |
|
error out The error out cluster passes error or warning information out of a VI to be used by other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
status The status boolean is either TRUE (X) for an error, or FALSE (checkmark) for no error or a warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
code The code input identifies the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
source The source string describes the origin of the error or warning. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
|
reference out Object reference out. |
|
external creator running? Indicates if an external creator process is running. |


Class TransactionRetryScope
Provides support for retry policy-aware transactional scope.
Inheritance
Implements
Inherited Members
Namespace: MilestoneTG.TransientFaultHandling
Assembly: MilestoneTG.TransientFaultHandling.Data.dll
Syntax
public sealed class TransactionRetryScope : IDisposable
Constructors
TransactionRetryScope(RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified retry policy.
Declaration
public TransactionRetryScope(RetryPolicy retryPolicy, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| RetryPolicy | retryPolicy | The retry policy that determines whether to retry the execution of the entire scope if a transient fault is encountered. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(Action)
Initializes a new instance of the TransactionRetryScope class. Implements no retry policy, but just invokes the unit of work exactly once.
Declaration
public TransactionRetryScope(Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(Transaction, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified retry policy and sets the specified transaction as the ambient transaction, so that transactional work performed inside the scope uses this transaction.
Declaration
public TransactionRetryScope(Transaction tx, RetryPolicy retryPolicy, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.Transaction | tx | The transaction to be set as the ambient transaction, so that transactional work performed inside the scope uses this transaction. |
| RetryPolicy | retryPolicy | The retry policy that determines whether to retry the execution of the entire scope if a transient fault is encountered. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(Transaction, Action)
Initializes a new instance of the TransactionRetryScope class and sets the specified transaction as the ambient transaction, so that transactional work performed inside the scope uses this transaction. Implements no retry policy, but just invokes the unit of work exactly once.
Declaration
public TransactionRetryScope(Transaction tx, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.Transaction | tx | The transaction to be set as the ambient transaction, so that transactional work performed inside the scope uses this transaction. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(Transaction, TimeSpan, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified time-out value, and sets the specified transaction as the ambient transaction, so that transactional work performed inside the scope uses this transaction. Uses the specified retry policy.
Declaration
public TransactionRetryScope(Transaction tx, TimeSpan scopeTimeout, RetryPolicy retryPolicy, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.Transaction | tx | The transaction to be set as the ambient transaction, so that transactional work performed inside the scope uses this transaction. |
| System.TimeSpan | scopeTimeout | The TimeSpan after which the transaction scope times out and aborts the transaction. |
| RetryPolicy | retryPolicy | The retry policy that determines whether to retry the execution of the entire scope if a transient fault is encountered. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(Transaction, TimeSpan, Action)
Initializes a new instance of the TransactionRetryScope class with the specified time-out value, and sets the specified transaction as the ambient transaction, so that transactional work performed inside the scope uses this transaction. Implements no retry policy, but just invokes the unit of work exactly once.
Declaration
public TransactionRetryScope(Transaction tx, TimeSpan scopeTimeout, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.Transaction | tx | The transaction to be set as the ambient transaction, so that transactional work performed inside the scope uses this transaction. |
| System.TimeSpan | scopeTimeout | The TimeSpan after which the transaction scope times out and aborts the transaction. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(TransactionScopeOption, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements and retry policy. Uses the ReadCommitted isolation level by default.
Declaration
public TransactionRetryScope(TransactionScopeOption scopeOption, RetryPolicy retryPolicy, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.TransactionScopeOption | scopeOption | One of the enumeration values that specifies the transaction requirements associated with this transaction scope. |
| RetryPolicy | retryPolicy | The retry policy that determines whether to retry the execution of the entire scope if a transient fault is encountered. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(TransactionScopeOption, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements. Implements no retry policy, but just invokes the unit of work exactly once.
Declaration
public TransactionRetryScope(TransactionScopeOption scopeOption, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.TransactionScopeOption | scopeOption | One of the enumeration values that specifies the transaction requirements associated with this transaction scope. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(TransactionScopeOption, TimeSpan, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified time-out value, transaction scope options, and retry policy. Uses the ReadCommitted isolation level by default.
Declaration
public TransactionRetryScope(TransactionScopeOption scopeOption, TimeSpan scopeTimeout, RetryPolicy retryPolicy, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.TransactionScopeOption | scopeOption | One of the enumeration values that specifies the transaction requirements associated with this transaction scope. |
| System.TimeSpan | scopeTimeout | The TimeSpan after which the transaction scope times out and aborts the transaction. |
| RetryPolicy | retryPolicy | The retry policy that determines whether to retry the execution of the entire scope if a transient fault is encountered. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(TransactionScopeOption, TimeSpan, Action)
Initializes a new instance of the TransactionRetryScope class with the specified time-out value and requirements. Implements no retry policy, but just invokes the unit of work exactly once.
Declaration
public TransactionRetryScope(TransactionScopeOption scopeOption, TimeSpan scopeTimeout, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.TransactionScopeOption | scopeOption | One of the enumeration values that specifies the transaction requirements associated with this transaction scope. |
| System.TimeSpan | scopeTimeout | The TimeSpan after which the transaction scope times out and aborts the transaction. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(TransactionScopeOption, TransactionOptions, RetryPolicy, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements and retry policy.
Declaration
public TransactionRetryScope(TransactionScopeOption scopeOption, TransactionOptions transactionOptions, RetryPolicy retryPolicy, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.TransactionScopeOption | scopeOption | One of the enumeration values that specifies the transaction requirements associated with this transaction scope. |
| System.Transactions.TransactionOptions | transactionOptions | A System.Transactions.TransactionOptions structure that describes the transaction options to use if a new transaction is created. If an existing transaction is used, the time-out value in this parameter applies to the transaction scope. If that time expires before the scope is disposed, the transaction is aborted. |
| RetryPolicy | retryPolicy | The retry policy that determines whether to retry the execution of the entire scope if a transient fault is encountered. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
TransactionRetryScope(TransactionScopeOption, TransactionOptions, Action)
Initializes a new instance of the TransactionRetryScope class with the specified requirements. Implements no retry policy, but just invokes the unit of work exactly once.
Declaration
public TransactionRetryScope(TransactionScopeOption scopeOption, TransactionOptions transactionOptions, Action unitOfWork)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Transactions.TransactionScopeOption | scopeOption | One of the enumeration values that specifies the transaction requirements associated with this transaction scope. |
| System.Transactions.TransactionOptions | transactionOptions | A System.Transactions.TransactionOptions structure that describes the transaction options to use if a new transaction is created. If an existing transaction is used, the time-out value in this parameter applies to the transaction scope. If that time expires before the scope is disposed, the transaction is aborted. |
| System.Action | unitOfWork | A delegate that represents the executable unit of work that will be retried upon failure. |
Properties
RetryPolicy
Gets the policy that determines whether to retry the execution of the entire scope if a transient fault is encountered.
Declaration
public RetryPolicy RetryPolicy { get; }
Property Value
| Type | Description |
|---|---|
| RetryPolicy |
Methods
Complete()
Indicates that all operations within the scope have been completed successfully.
Declaration
public void Complete()
Dispose()
Ends the transaction scope.
Declaration
public void Dispose()
InvokeUnitOfWork()
Executes the underlying unit of work and retries as prescribed by the current retry policy.
Declaration
public void InvokeUnitOfWork()


WITNESS LIST Education Committee April 23, 1997-9:00A HB 1404 Registering, but not testifying: On: Brown, Don W. (Tx Higher Ed Coord Brd), Austin Flack, Teri (Tx Higher Ed Coord Brd), Austin SB 622 For: Brandenberg, Pamela (City of Benbrook), Benbrook Dunn, Jerry J. (City of Benbrook), Benbrook Gahagan, Kevin R. (City of Benbrook), Benbrook Williams, Ellen (City of Benbrook), Austin Against: Johnson, Rubidel (Ft. Worth ISD), Ft. Worth Parker, Donna R. (Fort Worth Chamber), Ft. Worth Shaw, Larry (United Educators Assn), Ft. Worth Tocco, Dr. Thomas (Supt., Ft. Worth ISD), Ft. Worth On: Klos, Elaine F. (Ft. Worth ISD), Ft. Worth Registering, but not testifying: Against: Backus, Jane (Tx Assn School Broards), Austin Glover, Bob (Tx School Alliance), Abilene McClung, Jean (Ft. Worth ISD), Ft. Worth Needham, Judy G. (Ft. Worth ISD & Board), Ft. Worth Powell, Richard (Tx Assn School Admin), Austin SB 1042 For: Green, Robert T. (Self), Austin On: Cooper, Kerry (Self), College Station SB 1825 For: Nelson, James (Educator Certif St. Brd), Austin Against: Kelly, Jack (TSTA), Austin Taebel, Holly S. (Tx. Classrm Teach Assn.), Austin On: Gregg, Brock (Assn Tx Prof Educators), Austin Korcheck, Stephanie (Educator Certif St Brd), Austin Registering, but not testifying: For: Borden, Sandi (Tx Elem Principals & Sp), Austin Lain, Jackie (TASB), Austin Phillips, Cynthia T. (SBEC), Austin Shaddix, Julian (2ndary Schl Princ Assn), Austin Against: Lara, Rene (Tx Fedrn of Teachers), Austin On: Littleton, Mark (Educator Certif St Brd), Austin SCR 74 On: Thompson, Dr. Barry B. (Texas A&M Univ. System), College Statio Registering, but not testifying: On: Lee, Dr. J. Charles (Texas A&M Univ. System), College Station


{% extends "base.html" %} {% block title %}User Profile {{ author }}{% endblock %} {% load thumbnail %} {% block content %} {{ author.get_full_name }} {{ author }} Followers: {{ author.following.count }} Followings: {{ user.following.count }} Posts: {{ author.author_posts.count }} {% include "posts/post_item.html" with post=post %} {% include "posts/comments.html" with comment=comment %} {% endblock %}


Alibaba to exercise full retail tranche in Hong Kong listing: sources
3 sources told Reuters the Chinese e-commerce giant would raise up to $12.9 bn in the listing.
by ReutersHONG KONG: Alibaba has exercised its full retail tranche, from 2.5 per cent to 10 per cent, in its Hong Kong secondary listing, thanks to oversubscription, three sources with direct knowledge of the matter told Reuters.
Earlier, three sources told Reuters the Chinese e-commerce giant would raise up to $12.9 billion in the listing.


A NEW GENERATION OF VINTAGE BIKE
Lorem Ipsum is simoly dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry`s standart dummy text ever
since the 1500s, when an unkown printer took a galley of type and scrambled it to made a type specimen book. It has survived not only
five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
VINTAGE OLIVA
lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry`s
standart dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to
make a type specimen book. It has survived.
LA BORIOSA
lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry`s
standart dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to
make a type specimen book. It has survived.
RETRO BIKE - M. HULOT
lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry`s
standart dummy text ever since the 1500s, when an
unknown printer took a galley of type and scrambled it to
make a type specimen book. It has survived.


--- layout: archive title: Zulip Chat Archive permalink: /stream/113489-new-members/topic/unsafe.20casts.20in.20meta.20land.3F.html ---
In a meta function, is there some way to do "unsafe casts"?
unchecked_cast
it's just cast
with a fake proof
But it's not recommended. There are very few safe but type incorrect casts
and the ones that exist already have names, like unquot
Last updated: Apr 24 2020 at 19:02 UTC


|
SdFat
|
Boot sector for a FAT12/FAT16 volume. More...
#include <FatStructs.h>
Public Attributes | |
| uint8_t | bootCode [448] |
| uint8_t | bootSectorSig0 |
| uint8_t | bootSectorSig1 |
| uint8_t | bootSignature |
| uint16_t | bytesPerSector |
| uint8_t | driveNumber |
| uint8_t | fatCount |
| char | fileSystemType [8] |
| uint16_t | headCount |
| uint32_t | hidddenSectors |
| uint8_t | jump [3] |
| uint8_t | mediaType |
| char | oemId [8] |
| uint8_t | reserved1 |
| uint16_t | reservedSectorCount |
| uint16_t | rootDirEntryCount |
| uint8_t | sectorsPerCluster |
| uint16_t | sectorsPerFat16 |
| uint16_t | sectorsPerTrack |
| uint16_t | totalSectors16 |
| uint32_t | totalSectors32 |
| char | volumeLabel [11] |
| uint32_t | volumeSerialNumber |
Boot sector for a FAT12/FAT16 volume.
| uint8_t fat_boot::bootCode[448] |
X86 boot code
| uint8_t fat_boot::bootSectorSig0 |
must be 0X55
| uint8_t fat_boot::bootSectorSig1 |
must be 0XAA
| uint8_t fat_boot::bootSignature |
0X29 if next three fields are valid
| uint16_t fat_boot::bytesPerSector |
The size of a hardware sector. Valid decimal values for this field are 512, 1024, 2048, and 4096. For most disks used in the United States, the value of this field is 512.
| uint8_t fat_boot::driveNumber |
Related to the BIOS physical drive number. Floppy drives are identified as 0x00 and physical hard disks are identified as 0x80, regardless of the number of physical disk drives. Typically, this value is set prior to issuing an INT 13h BIOS call to specify the device to access. The value is only relevant if the device is a boot device.
| uint8_t fat_boot::fatCount |
The number of copies of the FAT on the volume. The value of this field is always 2.
| char fat_boot::fileSystemType[8] |
A field with a value of either FAT, FAT12 or FAT16, depending on the disk format.
| uint16_t fat_boot::headCount |
Number of heads for interrupt 0x13. Not used otherwise.
| uint32_t fat_boot::hidddenSectors |
Count of hidden sectors preceding the partition that contains this FAT volume. This field is generally only relevant for media visible on interrupt 0x13.
| uint8_t fat_boot::jump[3] |
The first three bytes of the boot sector must be valid, executable x 86-based CPU instructions. This includes a jump instruction that skips the next non-executable bytes.
| uint8_t fat_boot::mediaType |
This dates back to the old MS-DOS 1.x media determination and is no longer usually used for anything. 0xF8 is the standard value for fixed (non-removable) media. For removable media, 0xF0 is frequently used. Legal values are 0xF0 or 0xF8-0xFF.
| char fat_boot::oemId[8] |
This is typically a string of characters that identifies the operating system that formatted the volume.
| uint8_t fat_boot::reserved1 |
used by Windows NT - should be zero for FAT
| uint16_t fat_boot::reservedSectorCount |
The number of sectors preceding the start of the first FAT, including the boot sector. The value of this field is always 1.
| uint16_t fat_boot::rootDirEntryCount |
For FAT12 and FAT16 volumes, this field contains the count of 32-byte directory entries in the root directory. For FAT32 volumes, this field must be set to 0. For FAT12 and FAT16 volumes, this value should always specify a count that when multiplied by 32 results in a multiple of bytesPerSector. FAT16 volumes should use the value 512.
| uint8_t fat_boot::sectorsPerCluster |
Number of sectors per allocation unit. This value must be a power of 2 that is greater than 0. The legal values are 1, 2, 4, 8, 16, 32, 64, and 128. 128 should be avoided.
| uint16_t fat_boot::sectorsPerFat16 |
Count of sectors occupied by one FAT on FAT12/FAT16 volumes. On FAT32 volumes this field must be 0, and sectorsPerFat32 contains the FAT size count.
| uint16_t fat_boot::sectorsPerTrack |
Sectors per track for interrupt 0x13. Not used otherwise.
| uint16_t fat_boot::totalSectors16 |
This field is the old 16-bit total count of sectors on the volume. This count includes the count of all sectors in all four regions of the volume. This field can be 0; if it is 0, then totalSectors32 must be non-zero. For FAT32 volumes, this field must be 0. For FAT12 and FAT16 volumes, this field contains the sector count, and totalSectors32 is 0 if the total sector count fits (is less than 0x10000).
| uint32_t fat_boot::totalSectors32 |
This field is the new 32-bit total count of sectors on the volume. This count includes the count of all sectors in all four regions of the volume. This field can be 0; if it is 0, then totalSectors16 must be non-zero.
| char fat_boot::volumeLabel[11] |
A field once used to store the volume label. The volume label is now stored as a special file in the root directory.
| uint32_t fat_boot::volumeSerialNumber |
A random serial number created when formatting a disk, which helps to distinguish between disks. Usually generated by combining date and time.


Robbie Savage's Premier League predictions as Man Utd tipped for surprise result
Man Utd face Sheffield United, while Man City and Chelsea is the biggest game of the weekend. Liverpool travel to Crystal Palace as Jose Mourinho starts at Tottenham
by Alex SmithRobbie Savage has predicted Manchester United to drop points to Sheffield United on Sunday.
Ole Gunnar Solskjaer's side travel to Bramell Lane hoping to extend their winning streak to three matches, having beaten Partizan Belgrade and Brighton before the international break.
But Savage reckons that the Red Devils could struggle against the Blades - who are two places and a point ahead of them in the table after a stunning start to the season following their promotion from the Championship.
The former Birmingham midfielder has plucked for a score draw in the clash to leave United's hopes of qualifying for next season's Champions League in tatters.
The biggest game of the weekend comes at the Etihad Stadium, where Manchester City host Chelsea .
And the reigning champions are forecast to suffer a second defeat in a row and lose yet more ground on table toppers Liverpool .
City lost 3-1 to the Reds before the international break but haven't tasted defeat at home since April 2018.
Jose Mourinho makes his debut in the Tottenham dugout on Saturday lunchtime, having taken over from Mauricio Pochettino earlier this week - but West Ham are predicted to win the London derby and stun the Portuguese's big return.
Meanwhile, Arsenal and Leicester are both expected to win and keep up their battle for the top four, with Everton's resurgence continuing versus Norwich.
There will also be draws for Bournemouth and Wolves , Watford and Burnley , and Aston Villa and Newcastle .
Here's how Sav sees the weekend action panning out...
Robbie Savage's Premier League predictions
West Ham 2-1 Tottenham
Arsenal 2-0 Southampton
Bournemouth 1-1 Wolves
Brighton 0-2 Leicester
Crystal Palace 0-2 Liverpool
Everton 2-0 Norwich
Watford 0-0 Burnley
Manchester City 1-2 Chelsea
Sheffield United 1-1 Manchester United
Aston Villa 1-1 Newcastle


Handbook Sections¶
IN DEVELOPMENT - More sections will release over the coming weeks/months/as time permits. Feel free to contribute as you have an idea or time to assist, otherwise stay tuned!
This handbook has 7 sections covering common tasks for developing Python scripts for use in DFIR. Each section contains short, portable code blocks that can drop into a new script with minimal tweaking. This way, you can quickly build out your custom script without needing to re-invent the wheel each time.
This handbook is not intended to be read in order - if anything this outline is the main launching point to find the correct page containing the code block you wish to reference.
Please feel free to contribute your own sections with the snippets that have worked well for you, even if a similar section already exists. This handbook is hosted on GitHub at https://github.com/chapinb/python-forensics-handbook and available to read online at https://chapinb.com/python-forensics-handbook. Please consider submitting a pull request with your additions!
Section 1 - Essential Script Elements¶
This chapter covers code blocks that are useful across scripts and are not DFIR specific, but solid practices to integrate into projects to allow for uniformity.
- Argparse
Command line parameter handling
- Logging
Writing status and error messages to the console and log file
- Open Files
Read text files with varying UTF encodings.
- CSV Generation
For better or worse, CSV reports are very common in DFIR and this code block covers several methods for generating a CSV
- Recursive File Exploration
Quick example of code to explore directories and access nested files.
- Parallel Processing
Simple implementation of multithreading and multiprocessing
Section 2 - Registry Hives with YARP¶
- Using yarp to open a single hive
Opening a hive and recovering data available in transaction logs
- Parse registry hive keys and values
Building off our prior code to parse specific artifacts from an NTUSER.DAT hive, including string and binary values. Uses classes in a manner that is very flexible and permits extending functionality as needed with minimal effort.
- Searching for a pattern across hive keys and values.
Looking for a provided pattern across the entire hive.
Section 3 - Event Logs¶
- Using python-evtx
Opening evtx files
- Parsing Logins (with types, levels, privs)
Parse out the commonly investigated 4624/4672 events
- Parsing Logouts (durations)
Parse 4624/4634 events to get information on user sessions
- Parsing Powershell decoding
Reassemble PowerShell strings in events and decode commands
Section 4 - Text logs¶
- Handling IIS Logs
Parse common fields in IIS logs into a report
- Handling Syslog
Parse common syslog formats into a report
- Adding in GeoIP
Function to add GeoIP recognition
Section 5 - API calls & JSON data¶
VirusTotal
HybridAnalysis
Manipulating JSON
Section 6 - SQLite & macOS/mobile/browsers¶
- macOS Activity
KnowledgeC
Andriod SMS
Google Chome History DB
Section 7 - Opening forensic images¶
- LibEWF
Expose an E01 as a raw image
- PyTSK
Read data from a raw image (MBR)
Read data from a file (hashing)
Iterate through folders (file listing)
Perform targetted reads (file sigs)


Enter the name of your project folder which you have created in the work directory. #NOTE: It is case sensitive and do not use spaces when naming the project folders. Instead use underscores like this: Sample_Project or This_is_a_project etc.
Enter the title of your project. This will be the heading of your project too, so you can use spaces, letters and numbers here.
Enter the catagory in which your work falls like, graphic design, photography, UI design etc. You can use spaces, letters and numbers here.
Enter the name of your client. You can use spaces, letters and numbers here.
Enter the date of your project like, 1st Jan 2016. You can use your own format of date too and you can use spaces, letters and numbers here.
Enter the description and other details of your work. You can use spaces, letters and numbers here. You can press enter to separate lines or paragraphs in this section that means you do not have to manually add the line breaks for this section in the generated code.
 Write in numbers not letters like 1 instead of one.
Specify the format of your images.  #NOTE: Do not type a dot with jpg or png here.


Geode ensures that all copies of a region eventually reach a consistent state on all members and clients that host the region, including Geode members that distribute region events.
Consistency Checking by Region Type
Geode performs different consistency checks depending on the type of region you have configured.
Configuring Consistency Checking
Geode enables consistency checking by default. You cannot disable consistency checking for persistent regions. For all other regions, you can explicitly enable or disable consistency checking by setting the
concurrency-checks-enabled
region attribute incache.xml
to “true” or “false.”Overhead for Consistency Checks
Consistency checking requires additional overhead for storing and distributing version and timestamp information, as well as for maintaining destroyed entries for a period of time to meet consistency requirements.
How Consistency Checking Works for Replicated Regions
Each region stores version and timestamp information for use in conflict detection. Geode members use the recorded information to detect and resolve conflicts consistently before applying a distributed update.
How Destroy and Clear Operations Are Resolved
When consistency checking is enabled for a region, a Geode member does not immediately remove an entry from the region when an application destroys the entry. Instead, the member retains the entry with its current version stamp for a period of time in order to detect possible conflicts with operations that have occurred. The retained entry is referred to as a tombstone. Geode retains tombstones for partitioned regions and non-replicated regions as well as for replicated regions, in order to provide consistency.
Transactions with Consistent Regions
A transaction that modifies a region having consistency checking enabled generates all necessary version information for region updates when the transaction commits.


6:00 a.m
I am not sure how much of this is true or actually real so I going to tell it like I know it. I have been using diphen as a sleep aid for years. It also works as an anti depressant and anti anxiety-or so I read on the internet. Right now I am listening to some music. Its Sailing by Christopher Cross which I usually love but it is getting on my nerves. It sounds like it keeps pulsating and getting louder. I just took 200 mg diphen-HCL.
1:00 a.m. (earlier)
I took 5 diphen HCL in an attempt to go to sleep. I was laying in my bed after chatting up a couple of guys.  I keep looking up at the ceiling fan. Something keeps catching my eye. Oh, I think, its probably a flash back. I notice the thing again. My dogs aren't barking which is surprising me because they are usually very perceptive. Its like something is flying through the room near the ceiling. Ok, there it is. I am getting up this time to check it out. Its a big bat. There is a big bat flying around.
I begin screaming. No, shreaking. I grab the phone and a towel.  My dogs are looking at me like I am nuts. Its flying around my dogs. They have never seen me behave this way. I have two pugs and they are looking at me like two cows in a pasteur. My Ex doesn't answer. We are still friends so I know he is home. I IM him I have an EMERGENCY. The bat takes a few laps over my head. This is not completely out of the question. I mean that there is a real bat. I live upstairs in an old victorian house. I call again and he answers! Finally! I am shreeking into the phone and he says he will come over. I take myself and the dogs into the closet and call another friend.  I open the door a crack and see the bat fly through the room.
I get up the courage to break for the first door that will put me into a stairwell to the security door. I can wait there for my ex. I let the dogs out and we run for it. No sign of the bat. We make it out alive. My ex shows up with the pool skimmer that now adorns my living room adding a weird recreational feel to it. We go in and look around.  He always has been. No bat flying. We search all over.  I want the sucker caught and I am pissed because I know I won't be sleeping until we get it out. I decide not to finish the scary movie. I want nothing more scary at the moment. I chat with my friends online. I start to wonder if I hallucinated the bat so I go online to look up diphen. Sure enough.
6:47 a.m. I have been up all night. I ate too much earlier but I feel hungry. I do not know if there is a bat in here. Earlier I decided to drop some more diphen out of boredom and being pissed cuz I can't sleep. I keep hearing some noises. It could be the bat. The thing is, I am not afraid of the bat anymore in a way. I am like 'bring it!!'. On the other hand my skin is creeping and crawling and I keep letting out little screams because I think it is crawling on me. It feels like it is touching my foot or leg. I feel almost sure it is close by. I don't care but I hope I see it first.
The dogs are sleeping. I think I am hearing thunder and I can't tolerate music at all. It is extremely obnoxious. I wonder what it is like to do peyote and be skinny. My dogs are so cute sleeping there. I hope they don't die. I just had to get up for a minute. I debated dropping more because of the bat. I don't want to freak if it comes out again.   I need to shave my legs but that bat is probably in the shower. Rationally I know it can't be more than one place at a time but I am sure it will be in either one should I try to go there. The bat is my destiny.
I hear a chirping. It could be birds outside-or it could be the bat. I am trying to tell how far away the sound is but my mind can't do it. I guess I want a sandwich but do not have the gumption to make one. I have a magic picture on my wall and I think the bat is hiding behind it or in it. I think it is a master of camoflag. It can change colors. Blend in. I like life regardless. I realize once again that I am in love with someone. I don't know why I love him. I am going to discuss a few things with him in my head and watch a little TV. I can tell him things in my head that I can't say in person.
Next Day @ 7:55 p.m.
Well. That was weird. There is still no sign of my little house guest. I have checked the apartment really well. This morning I had layed down to disrupted sleep @ 7:00 a.m. I dozed but kept having weird dreams that woke me up. I couldn't really tolerate any noise from TV or radio. I finally slept pretty heavy and woke up at 3:00 in the afternoon. I was feeling a little strange. I feel groggy, my limbs are heavy and I can't remember sleeping much. I remember last night somewhat. I feel lethargic and sluggish.
I don't want to experiment with diphen again. It just didn't do a whole lot for me. If that bat was a hallucination it was the most frighteningly real on I ever experienced. I have never done that before so I am allowing myself to assume there really was a bat and it is either hiding or it left the apartment. Hopefully the latter-although I am not that afraid of it anymore. I was hoping to find it so I could catch it. I had a little anxiety when I went to bed. I was afraid of the bat and that I wouldn't wake up.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


| Package | Description |
|---|---|
| org.xmlunit.builder |
Provides fluent builders for core parts of XMLUnit.
|
| org.xmlunit.diff |
Contains XMLUnit
DifferenceEngine that is
at the heart of all comparisons as well as supporting interfaces
and implementations. |
| org.xmlunit.matchers |
Hamcrest matchers on top of XMLUnit's core.
|
| org.xmlunit.util |
Internal utilities hiding the differences between .NET and Java
implementations.
|
| Modifier and Type | Method and Description |
|---|---|
DiffBuilder |
DiffBuilder.withAttributeFilter(Predicate<Attr> attributeFilter)
Registers a filter for attributes.
|
DiffBuilder |
DiffBuilder.withNodeFilter(Predicate<Node> nodeFilter)
Registers a filter for nodes.
|
| Modifier and Type | Field and Description |
|---|---|
static Predicate<Node> |
NodeFilters.Default
Suppresses document-type and XML declaration nodes.
|
| Modifier and Type | Method and Description |
|---|---|
protected Predicate<Attr> |
AbstractDifferenceEngine.getAttributeFilter()
Provides access to the configured ComparisonController.
|
protected Predicate<Node> |
AbstractDifferenceEngine.getNodeFilter()
Provides access to the configured ComparisonController.
|
| Modifier and Type | Method and Description |
|---|---|
static ElementSelector |
ElementSelectors.conditionalSelector(Predicate<? super Element> predicate,
ElementSelector es)
Applies the wrapped ElementSelector's logic if and only if the
control element matches the given predicate.
|
void |
AbstractDifferenceEngine.setAttributeFilter(Predicate<Attr> af) |
void |
DifferenceEngine.setAttributeFilter(Predicate<Attr> attributeFilter)
Sets the optional strategy that decides which attributes to
consider and which to ignore during comparison.
|
void |
AbstractDifferenceEngine.setNodeFilter(Predicate<Node> nf) |
void |
DifferenceEngine.setNodeFilter(Predicate<Node> nodeFilter)
Sets the optional strategy that decides which nodes to
consider and which to ignore during comparison.
|
ElementSelectors.ConditionalSelectorBuilderThen |
ElementSelectors.ConditionalSelectorBuilder.when(Predicate<? super Element> predicate)
Sets up a conditional ElementSelector.
|
| Modifier and Type | Method and Description |
|---|---|
CompareMatcher |
CompareMatcher.withAttributeFilter(Predicate<Attr> attributeFilter) |
CompareMatcher |
CompareMatcher.withNodeFilter(Predicate<Node> nodeFilter) |
| Modifier and Type | Class and Description |
|---|---|
class |
IsNullPredicate
A function that tests whether an object is null.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
Linqy.all(Iterable<T> sequence,
Predicate<? super T> predicate)
Determines whether a given predicate holds true for all
elements.
|
static <T> boolean |
Linqy.any(Iterable<T> sequence,
Predicate<? super T> predicate)
Determines whether a given predicate holds true for at least
one element.
|
static <T> Iterable<T> |
Linqy.filter(Iterable<T> sequence,
Predicate<? super T> filter)
Exclude all elements from an iterable that don't match a given
predicate.
|
Copyright © 2001–2017 XMLUnit. All rights reserved.


We are a proud sponson of the American Diabetes Association Consult your Healthcare Professional to learn how light & Fit can be included as part of a balanced diet.
Freeeze has a balanced lineup of yogurt products to fit your active lifestyle. Just more reasons why we are simply irresistible!
Eat a variety of nutrient-dense foods from each of the food groups every day. Dietary Guidelines for Americans recommend including in your diet a variety of foods from each of the main food groups: grains, vegetables, fruits, dairy and protein
As part of its commitment to bring through delicious food to as many people as possible, we are proud to announce its sponsorship of the American Diabetes Association's Stop Diabetes movement. Together we are committed to raising awareness about Diabetes and the importance of a healthy, balanced diet.


Norwegian Bombshell Hilde Osland Rocks Skintight Bodysuit In Sexy Selfie
November 17, 2019
Norwegian Bombshell Hilde Osland Rocks Skintight Bodysuit In Sexy Selfie
Norwegian beauty Hilde Osland looked stunning as she flaunted her fabulous figure while wearing a skintight bodysuit in her most recent Instagram update.
 A couple of barstools next to a bar could be seen off to the side in the photo.
Hilde’s gray bodysuit had high-cut legs that drew attention to her slender stems and curvy hips.  Her bronze skin looked flawless as she posed for the snap.
The ribbed bodysuit featured a mock turtleneck and long sleeves, and while it did not show much skin, it highlighted Hilde’s incredible hourglass shape. She paired the suit with gray crew socks to complete the sexy, casual look. In the post’s caption, the stunner said the suit was from popular brand Fashion Nova.
Hilde’s makeup was flawless in the snap, and her application included smoky eye shadow, eyeliner, blush on her cheeks, and a coral shade on her lips. Her signature blond hair was pulled up in a messy bun with a few tendrils framing her face. She wore a pair of hoop earrings to add a bit of bling to the outfit. The stunner gave the camera a sultry look as she snapped the selfie.
The post was a smash hit among her 1.6 million followers, racking up more than 35,000 likes within an hour of going live. Hilde wished her fanbase a nice day in the caption. Judging from many of the comments, she made their day a little bit brighter with the post.

Loading...
“God definitely broke the mold after he made you.
“Omg! I can not believe how beautiful and sexy you are! Your [sic] a heart attack waiting to happen lol!” joked a third follower.
“The beauty you posses is breathtaking,” said a fourth admirer.
There is little doubt that Hilde is a natural beauty. A quick scroll through her Instagram shows that she was blessed with good looks and a great physique. She frequently puts those looks on display in a variety of ensembles that range from sexy dresses to casual outfits. However, bikinis seem to be a favorite for the bombshell, who often likes to showcase them on the beautiful shores of Australia.


|
Congratulations!
If you are reading this in your web browser, then the only logical conclusion is that the http://ninegag.dev:80/ virtualhost was set up correctly. :) You can find the configuration file for this virtual host in:
You will need to place all of your website files in:
For the latest version of this script, tips, comments, donations, etc. visit:
|


Update
Nodemcu car controller
Car control
Pwm config
Duty Cycle limit
Duty Cycle turn limit
Response time (ms)
Custom commands
Direction:
Forward
Backward
MotorA PWM
MotorB PWM
Duty Cycle
Logs
MILLIS
ENA
ENB
RESPONSE
DIRECTION
STATUS
DURATION


CMS
Crisis Management System
Crisis Management System
Dashboard (Operator)
{{incident.location}} - {{incident.name}}


Casino Load Sheet
Generator
Home
About Us
Build Your Mock Casino Below
Client:
Location:
Truck:
Cooler
Freezer
Rental
Blackjack
Celeb Table
Craps
Table Size
6'-1
6'-2
6.5'
7'
8'
10'-1
10'-2
10'-3
12'-1
12'-2
Roulette
Wheel Size
19"
22"
25"
32"
Table Size
Small
Medium
Large
Texas Hold'em
Chairs
Confirm Equipment
Selected Equipment
Edit
Print Preview


Onboarding
Compare Metrics
NEA Countries
SCA Countries
View data source
NEA Home
SCA Home
NEA/SCA
Near East Asia (NEA)
South Central Asia (SCA)
Near East Asia Region
This tool uses data from the CIA World Factbook to compare different countries in your region.


ACADEMIC PROGRAMS OVERVIEW
De La Salle University offers programs for both undergraduate and graduate students. You may choose from a variety of fields (Business and Economics, Education, Engineering, Arts, Sciences, and Computer Studies).
View the Programs
Undergraduate Degree Programs
Graduate Degree Programs


Hi.
I power my emonTX with a 5V adapter. I'd like to power it with batteries to let it run outside the house.
It worked with two 1.5V batteries, but I'd rather use rechargeable batteries.
My accumulators are NiMH (1.2 V). When using these, the ATMega does not seem to run. It is said to run at (Operating Voltage: 1,8V - 5.5V) but I guess the rest of the board needs power as well.
NiZn are apparently more expensive but should work : 1.6 V.
What kind of battery do you guys use to power your TX ?
Re: Battery powered emonTX
What about a LiPo which is 3.7-4.2V. I ordered a few of these to do some tests: http://hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=20386
Re: Battery powered emonTX
I run my glcd from a 3.7v lipo pack with great success. So can't see why this would not work.
just make sure you charge them correctly.
Re: Battery powered emonTX
I run my glcd from a 3.7v lipo pack with great success.
How long does it last between charges?
P.
Re: Battery powered emonTX
Over a week between charges and even more if I connect a solar cell to the lipo charger on board. I should be able to get more but have not optimised the code at all.
Will take some pics.
Re: Battery powered emonTX
I'm also interested in what LiPo you use, which charger etc :-).
Re: Battery powered emonTX
I'm interested in references as well.
Does it fit nice inside the TX case ?
(BTW, the case is provided with metal contacts for the batteries but only at the battery/wire interface. I had to stuff some sort of tin foil on the over end to connect the two batteries together.)
Re: Battery powered emonTX
This is for the emonGLCD only.. My TX is powered by a usb charger as it monitors Voltage as well as current so has to be next to a power point any way..
The Charger is a lipo charger from https://www.adafruit.com/products/390
the battery is a 6000mah battery.. Iv also used a 2000 and 2700mah with great success.. 5days and 6days ish with some code changes.. Could get more but i was new at ardunio programming then.. Must revisit this. got side tracked because of the crashing issue and throught it was my bad code..
See thread for some pics (very early stages and lipo run time tests.
http://openenergymonitor.org/emon/node/541#comment-4430
All of my Jeenodes are also Lipo powered and run happly on this.. Will make a post about the other to save clogging up this one..
Pics attached.
Rob
Forgot to say the solar panel just connects to the lipo charger and is a cheep 1w 5v (ish) panel. Seems to do the job fine.
Re: Battery powered emonTX
Do you think it would be possible to reach several weeks/months autonomy ? What if you want to instrument a building for several weeks, even months, but you can't go there every three days to replace the batteries, or ask your client to do it ?
Some USB keys can record the temperature during two years (or so they say). They don't transmit anything, though. They are useful for the study of a building's behavior in time, but not for remote supervision.
Apart from instrumenting your own house, I don't see use cases where you can afford to replace the battery so often.
Re: Battery powered emonTX
I got a 3.7 V LiPo battery and a mini usb charger:
This should allow me to charge the battery in place, with the charger feeding both the battery and the emonTX, and the battery taking over when the system is taken off grid.
The output of the device is 4V. For those who didn't know it either, it only works with a battery plugged in, even if it is plugged to an energy source. In other words, the grid (through the USB adapter) fills the battery which in turns feeds the circuit.
I didn't dare connecting it to the battery input of the emonTX, the one that is labeled" max 3.3 V, so I did an ugly soldering to the mini USB input pins on the TX. I get 4 V instead of 5V, but it seems to work.
Is that the right way or should I use the battery input ? Or do it completely differently ?
Re: Battery powered emonTX
6000 mAh for less than a week?
Is the backlight of your display always on, the RF-Chip always in tranceiver mode and the Arduino running at full speed?
Re: Battery powered emonTX
I'm rephrasing in case my question went unnoticed.
Where on the TX would you plug a LiPo battery charger ?
The battery input is clearly labeled Max 3.3 V so the obvious answer might be not here.
So I decided to solder the wires to the USB alim socket, but that makes a bit of a dodgy connection. I could take a photo but I suppose you get the idea.
I didn't know if I could use the pinholes around the ATMega (JeePorts). Could I ?
I saw on the post "emonTx New Dev Ideas" that a LiPo charger might be added. I think it could be a good idea. This is what I want to check by testing the autonomy with mine.
Re: Battery powered emonTX
As a follow up, see this thread with another suggestion:
A step-up regulator can be used to provide a constant 3.3 V from AA batteries.
Re: Battery powered emonTX
In deciding where to connect an external supply, you must take account of the maximum voltage of the various components present in your configuration.
The most obvious limit is the RFM12B, at 3.8 V, followed by DS18B20 (if fitted) at 5.5 V, then the ATmega at 6.0 V, then the MCP1702 at 14.5 V but this might also have a maximum power limitation that will apply at a lower voltage.
Clearly, you cannot apply greater than 3.8 V to the 3.3 V battery connection without risking maloperation or damage to the RFM12B. If you use the nominal 5 V input (via the USB connector or indeed any point labelled PWR, then the upper limit is set by anything (possibly DS18B20 temperature sensors) connected to the PWR (nominally 5 V) rail or the regulator, whichever is the lower; and the lower limit is set by the drop-out voltage of the regulator, which could be as high as 4.275 V.
Re: Battery powered emonTX
Thanks you Robert for making that clear.
So if my understanding is correct, there is a regulator that cuts everything off when the input power goes under a given level. If that level is around 4V, then I'm in trouble, since the {LiPo battery + charge} provides 4 V.
Which means that my 4 V source is not fitted either for the "battery" 3.3 V input or for the 5 V input.
In practice it seems to work well. But maybe the drop-out voltage is a bit lower than what I get from my source. Except it may cut anytime if the source weakens a bit.
Re: Battery powered emonTX
"So if my understanding is correct, there is a regulator that cuts everything off when the input power goes under a given level."
NO! The regulator doesn't operate correctly (i.e. it won't regulate) if it hasn't got enough voltage across it. Typically, the output voltage will drop and will be subject to large changes due to load variations and supply variations.
Re: Battery powered emonTX
OK, now I'm lost. Sorry. I supposed I misunderstood this sentence:
Which regulator are you talking about. Is it something inside the TX or in the charger I'm referring to in this post ?
I realized afterwards that there is a regulator in the charger, that ensures a constant voltage (I think the voltage is hardcoded):
This specific part aside, what happens to the TX when supply voltage goes down ?
Re: Battery powered emonTX
I'm not surprised you're lost - it is a minefield!
The "5 V" supply to the emonTx goes to some peripherals - as selected by solderable links - and feeds a MCP1702 regulator that provides the 3.3 V to everything else on the board. It is that regulator that I am referring to. I misread the data sheet, I looked at the wrong line - the "dropout voltage" below which it will not regulate is 0.725 V maximum, typically 0.525 V, and no minimum is specified. So if the "5 V" supply drops below the maximum output voltage + 0.725 V (which ought to be 3.3 V + 0.725 V = 4.025 V), correct operation is not guaranteed. But "typically" it will work down to 3.825 V ( = 3.3 V + 0.525 V), which explains why yours works
Most parameters of the ATmega are specified down to 1.8 V. The emonTx will not operate correctly at that, the inputs will clip to start with - you could only measure mains voltage below 140 V. If you do want to run the ATmega below 3.3 V, then all the resistors that scale the inputs will need changing to deliver a lower voltage.
Re: Battery powered emonTX
Thank you, Robert.
So when using the battery input, you need to solder the links to as to use 3.3 V for peripherals, and ensure this voltage is sufficient for the sensors you use.
For instance, when using AA batteries, as proposed by John in that other thread, either choose the 3.3 V regulator and connect it to battery input, or if it is not enough for the sensors and more than 3.3 V is needed, pick the 5 V, and solder it to a PWR pin.
If this feature (the step-up regulator) is to be added to the next TX, the 5 V might be a safer choice, but perhaps does it mean more power loss, because the 5 V needs to go through the MCP1702.
The picture is much clearer now. I largely overlooked the electronics in the TX, as the code was enough to worry about. I shouldn't lean over that to much, it may become addictive...
Re: Battery powered emonTX
How will it work reliably when not charging? A Li-Po cell is nominally 3.7 V and 2.7 V when discharged. I know you shouldn't fully discharge the cell, but even so it seems the nominal cell voltage is below the specified range of the MCP1702.
Re: Battery powered emonTX
Well, here's a picture to make things clearer (click to enlarge):
Even when not charging, the battery is connected through the regulator of the charger (MCP73831T).
I reckon that because of the regulator, the fact that the LiPo keeps a relatively constant voltage is not relevant.
The capacity of the LiPo is not that great (850 mAh), but it fits inside the box, even with the charger. I can close the box when not charging.
Re: Battery powered emonTX
I've read the data sheet for the charger and see no mention of voltage regulation when not charging. So my understanding is that the output voltage will be the battery voltage when not charging i.e a nominal 3.7 V.
The voltage regulation referred to in the data sheet is part of the charging cycle. It goes through constant current charging and then continues with constant voltage charging.
So my point is that the battery voltage when not charging will quickly go below the specified range of the MCP1702.
Re: Battery powered emonTX
If you look very carefully, the temperature link is pre-made to 5 V with a thin track between the solderable pads, which can be cut if not required, and soldered to 3.3 V instead. The pulse/IRQ input needs to be soldered in each case.
If you don't have anything that requires 5 V ( temperature sensors on long leads?), a clean 3.3 V feed from an external step-up/step down switching regulator would be my choice, and leave out the MCP1702.
Re: Battery powered emonTX
Please consider me as a noob when it comes to electronics. I almost didn't read the datasheet (shame on me) but 4,2 V is what I measure even when not charging (unplugged from the grid).
Re: Battery powered emonTX
I think 4.2 V is typical for a fully charged Li-Po cell, but it drops fairly quickly. I don't know what cell you're using but here is a typical performance curve.
It would seem that around 30% depth of discharge the voltage might be close to or below the range of the MCP1702. That's only 255 mAh i.e. 30% x 850 mAh.
Re: Battery powered emonTX
I've been running a TX on LiPo for a few weeks now.
At some point, I begun missing a lot of data frames. I checked the voltage and it was still more than 4 V.
I think it might be due to the cold. It seems to operate better on daytime.
This would be a noticeable drawback to the LiPo.
I shall investigate the step-up regulator lead.
Alternatively, I could use 3 AA accumulators (but that does not fit in the case).
I also have a rectangular 8.4 V accumulator. I could solder the links to have everything go through the MCP1702, which accepts up to 13.2 V, and feed the sensors with 3.3 V, I suppose.
Re: Battery powered emonTX
A friend gave me a little explanation about the cold affecting the battery. Basically, the cold increases the Thevenin's resistance of the battery (a non-ideal voltage source can be seen as an ideal voltage source in series connection with a resistance).
Without load (without current), the measured voltage is normal, but when loaded (when the circuit asks for current, in my case when the RF module transmits), the current increases, and the resistance wastes voltage, therefore the voltage outside the battery is limited. To verify this, I'd need to measure the voltage just when the RF module is emitting.
Anyway.
I could try a 9V battery. I might have temperature issues, I don't know. I'm not sure I'll do that, but I think this is possible if plugged not to the battery input, but to any PWR line (see message submitted by Robert Wall on Wed, 26/06/2013 - 15:11.) provided the sensors are on the 3.3V line, not the 5V (this is not the default connection !). For any noobier than me here, this means soldering wires somewhere. The TX (at least for v1) is not sold so as to do this.
I like the idea of the step-up. Seems safer. Can be 3.3 V or 5 V. Perhaps if 5V is not needed, 3.3V will have better efficiency. I think I'll go for this. The examples I'm providing are 6€ breakout board with a few additional components but a naked step-up is much cheaper (around 1 or 2 €). Perhaps would that be a nice add to the TX (or perhaps is there already something similar on the new version).
Edit: Searching the internet to get the step-up regulator from a reseller in France, I found an equivalent product, the PowerPOD NCP1402 3V3, that is sold by Ciseco, in UK, who also produces the Open Kontrol Gateway.
Edit 2: An equivalent product, Polulu NCP1402, and another one, a bit different, the U1V11F3. The latter seems more featured and more powerful, but has a lower efficiency in the low current range which I think is ours.
Re: Battery powered emonTX
I just ordered the 5V step-up from Sparkfun. The maximal input voltage to it is 4V, but someone says the 4.2V of my LiPo won't hurt it. I should be able to use either AA batteries or the LiPo.
Re: Battery powered emonTX
Hi, i am powering my 2 emonTx's from a LiPo battery being charged by a solar panel, with Seeedstudio's LiPo Rider Pro as charger. The system works (see details here), but i get a very low efficiency (2 days on a 1600mAh cell), and i assume it is because the charger has a step-up to 5V which the emonTx's then regulate down to 3.3V.
I am considering to connect the LiPo directly to the emonTx's, but if i would use the onboard MCP1702 voltage regulator it will only work as long as the LiPo voltage is above 3.825 V ( = 3.3 V + 0.525 V) as Robert pointed out above. Without regulator the RFM12B might burn above 3.8V. And using a step-up to 5V, as in my current setup (LiPo Rider charger) seems to lead to very low efficiencies. Any suggestions?
As the emonTx seems to work very well with around 3V from AA batteries, i think a solution could be to replace the 3.3V voltage regulator to one of 3V, then the LiPo voltage can go down to 3 + 0.525 V before the regulator stops working; does that make sense?
Re: Battery powered emonTX
I would look at replacing the regulator in the emonTx (or bypassing it) and use a single buck-boost converter that is capable of accepting an input that ranges from the minimum voltage of your cell up to the maximum voltage on charge (plus a little for safety). Some claim 96% efficiency, which should be seriously better than the combination of a boost converter followed by a linear regulator.


Except for the exemptions at 22.604, all contracts subject to 41 U.S.C. chapter 65, Contracts for Materials, Supplies, Articles, and Equipment Exceeding $15,000 (the statute), and entered into by any executive department, independent establishment, or other agency or instrumentality of the United States, or by the District of Columbia, or by any corporation (all the stock of which is beneficially owned by the United States) for the manufacture or furnishing of materials, supplies, articles, and equipment (referred to in this subpart as supplies) in any amount exceeding $15,000, shall include or incorporate by reference the stipulations required by the statute pertaining to such matters as minimum wages, maximum hours, child labor, convict labor, and safe and sanitary working conditions.
The requirements in 22.602 apply to contracts (including for this purpose, indefinite-delivery contracts, basic ordering agreements, and blanket purchase agreements) and subcontracts under Section 8(a) of the Small Business Act, for the manufacture or furnishing of supplies that—
(a) Will be performed in the United States, Puerto Rico, or the U.S. Virgin Islands;
(b) Exceed or may exceed $15,000; and
(c) Are not exempt under 22.604.
Contracts for acquisition of the following supplies are exempt from the statute:
(a) Any item in those situations where the contracting officer is authorized by the express language of a statute to purchase “in the open market” generally (such as commercial items, see Part 12); or where a specific purchase is made under the conditions described in 6.302-2 in circumstances where immediate delivery is required by the public exigency.
(b) Perishables, including dairy, livestock, and nursery products.
(c) Agricultural or farm products processed for first sale by the original producers.
(d) Agricultural commodities or the products thereof purchased under contract by the Secretary of Agriculture.
(a) Contracts for the following acquisitions are fully exempt from the statute (see 41 CFR 50-201.603):
(1) Public utility services.
(2) Supplies manufactured outside the United States, Puerto Rico, and the U.S. Virgin Islands.
(3) Purchases against the account of a defaulting contractor where the stipulations of the statute were not included in the defaulted contract.
(4) Newspapers, magazines, or periodicals, contracted for with sales agents or publisher representatives, which are to be delivered by the publishers thereof.
(b)(1) Upon the request of the agency head, the Secretary of Labor may exempt specific contracts or classes of contracts from the inclusion or application of one or more of the Act’s stipulations; provided, that the request includes a finding by the agency head stating the reasons why the conduct of Government business will be seriously impaired unless the exemption is granted.
(2) Those requests for exemption that relate solely to safety and health standards shall be transmitted to the—
Assistant Secretary for Occupational Safety and Health
U.S. Department of Labor
Washington, DC 202l0.
All other requests shall be transmitted to the—
Administrator of the Wage and Hour Division
U.S. Department of Labor
Washington, DC 202l0.
(a) As authorized by the Act, the Secretary of Labor has issued rulings and interpretations concerning the administration of the statute (see 41 CFR 50-206). The substance of certain rulings and interpretations is as follows:
(1) If a contract for $15,000 or less is subsequently modified to exceed $15,000, the contract becomes subject to the statute for work performed after the date of the modification.
(2) If a contract for more than $15,000 is subsequently modified by mutual agreement to $15,000 or less, the contract is not subject to the statute for work performed after the date of the modification.
(3) If a contract awarded to a prime contractor contains a provision whereby the prime contractor is made an agent of the Government, the prime contractor is required to include the stipulations of the statute in contracts in excess of $15,000 awarded for and on behalf of the Government for supplies that are to be used in the construction and equipment of Government facilities.
(4) If a contract subject to the statute is awarded to a contractor operating Government-owned facilities, the stipulations of the statute affect the employees of that contractor the same as employees of contractors operating privately owned facilities.
(5) Indefinite-delivery contracts, including basic ordering agreements and blanket purchase agreements, are subject to the statute unless it can be determined in advance that the aggregate amount of all orders estimated to be placed thereunder for 1 year after the effective date of the agreement will not exceed $15,000. A determination shall be made annually thereafter if the contract or agreement is extended, and the contract or agreement modified if necessary.
(b) [Reserved]
(a) Award. When a contract subject to the statute is awarded, the contracting officer, in accordance with regulations or instructions issued by the Secretary of Labor and individual agency procedures, shall furnish to the contractor DOL publication WH-1313, Notice to Employees Working on Government Contracts.
(b) Breach of stipulation. In the event of a violation of a stipulation required under the statute, the contracting officer shall, in accordance with agency procedures, notify the appropriate regional office of the DOL, Wage and Hour Division (see 29 CFR part 1, Appendix B), and furnish any information available.
The contracting officer shall insert the clause at 52.222-20, Contracts for Materials, Supplies, Articles, and Equipment Exceeding $15,000, in solicitations and contracts covered by the statute (see 22.603, 22.604, and 22.605).