|
F´ Flight Software - C/C++ Documentation
NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
|
Auto-generated base for ActiveRateGroup component. More...
#include <build-fprime-automatic-native/F-Prime/Svc/ActiveRateGroup/ActiveRateGroupComponentAc.hpp>
Public Types | |
| enum | { NUM_CYCLEIN_INPUT_PORTS = 1, NUM_PINGIN_INPUT_PORTS = 1 } |
| enum | { NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS = 10, NUM_PINGOUT_OUTPUT_PORTS = 1, NUM_TLM_OUTPUT_PORTS = 1, NUM_TIME_OUTPUT_PORTS = 1, NUM_LOG_OUTPUT_PORTS = 1, NUM_LOGTEXT_OUTPUT_PORTS = 1 } |
| Public Types inherited from Fw::ActiveComponentBase | |
| enum | { ACTIVE_COMPONENT_EXIT } |
| Public Types inherited from Fw::QueuedComponentBase | |
| enum | MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT } |
Static Public Member Functions | |
| static void | m_p_PingIn_in (Fw::PassiveComponentBase *callComp, NATIVE_INT_TYPE portNum, U32 key) |
| Static Public Member Functions inherited from Fw::ActiveComponentBase | |
| static void | s_baseBareTask (void *) |
| function provided to task class for new thread. More... | |
Friends | |
| class | ActiveRateGroupComponentBaseFriend |
Additional Inherited Members | |
| Protected Member Functions inherited from Fw::ObjBase | |
| ObjBase (const char *name) | |
| ObjBase constructor. More... | |
| virtual | ~ObjBase () |
| Destructor. More... | |
| void | init (void) |
| Object initializer. More... | |
Auto-generated base for ActiveRateGroup component.
Definition at line 43 of file ActiveRateGroupComponentAc.hpp.
| anonymous enum |
| Enumerator | |
|---|---|
| NUM_CYCLEIN_INPUT_PORTS | |
| NUM_PINGIN_INPUT_PORTS |
Definition at line 319 of file ActiveRateGroupComponentAc.hpp.
| anonymous enum |
| Enumerator | |
|---|---|
| NUM_RATEGROUPMEMBEROUT_OUTPUT_PORTS | |
| NUM_PINGOUT_OUTPUT_PORTS | |
| NUM_TLM_OUTPUT_PORTS | |
| NUM_TIME_OUTPUT_PORTS | |
| NUM_LOG_OUTPUT_PORTS | |
| NUM_LOGTEXT_OUTPUT_PORTS |
Definition at line 369 of file ActiveRateGroupComponentAc.hpp.
|
virtual |
Destroy a ActiveRateGroupComponentBase object
Definition at line 470 of file ActiveRateGroupComponentAc.cpp.
| Svc::InputCyclePort * Svc::ActiveRateGroupComponentBase::get_CycleIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get input port at index
| portNum | The port number |
Definition at line 84 of file ActiveRateGroupComponentAc.cpp.
| Svc::InputPingPort * Svc::ActiveRateGroupComponentBase::get_PingIn_InputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Get input port at index
| portNum | The port number |
Definition at line 91 of file ActiveRateGroupComponentAc.cpp.
| NATIVE_INT_TYPE Svc::ActiveRateGroupComponentBase::getNum_Log_OutputPorts | ( | void | ) |
Get the number of Log output ports
Definition at line 551 of file ActiveRateGroupComponentAc.cpp.
| NATIVE_INT_TYPE Svc::ActiveRateGroupComponentBase::getNum_PingIn_InputPorts | ( | void | ) |
Get the number of PingIn input ports
Definition at line 519 of file ActiveRateGroupComponentAc.cpp.
| NATIVE_INT_TYPE Svc::ActiveRateGroupComponentBase::getNum_PingOut_OutputPorts | ( | void | ) |
Get the number of PingOut output ports
Definition at line 527 of file ActiveRateGroupComponentAc.cpp.
| NATIVE_INT_TYPE Svc::ActiveRateGroupComponentBase::getNum_Time_OutputPorts | ( | void | ) |
Get the number of Time output ports
Definition at line 543 of file ActiveRateGroupComponentAc.cpp.
| NATIVE_INT_TYPE Svc::ActiveRateGroupComponentBase::getNum_Tlm_OutputPorts | ( | void | ) |
Get the number of Tlm output ports
Definition at line 535 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::init | ( | NATIVE_INT_TYPE | queueDepth, |
| NATIVE_INT_TYPE | instance = 0 |
||
| ) |
Initialize a ActiveRateGroupComponentBase object
| queueDepth | The queue depth |
| instance | The instance number |
Definition at line 258 of file ActiveRateGroupComponentAc.cpp.
| bool Svc::ActiveRateGroupComponentBase::isConnected_Log_OutputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Check whether port Log is connected
| portNum | The port number |
Definition at line 613 of file ActiveRateGroupComponentAc.cpp.
| bool Svc::ActiveRateGroupComponentBase::isConnected_PingOut_OutputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Check whether port PingOut is connected
| portNum | The port number |
Definition at line 583 of file ActiveRateGroupComponentAc.cpp.
| bool Svc::ActiveRateGroupComponentBase::isConnected_Time_OutputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Check whether port Time is connected
| portNum | The port number |
Definition at line 603 of file ActiveRateGroupComponentAc.cpp.
| bool Svc::ActiveRateGroupComponentBase::isConnected_Tlm_OutputPort | ( | NATIVE_INT_TYPE | portNum | ) |
Check whether port Tlm is connected
| portNum | The port number |
Definition at line 593 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::log_WARNING_HI_RateGroupCycleSlip | ( | U32 | cycle | ) |
Log event RateGroupCycleSlip
| cycle | The cycle where the cycle occurred |
Definition at line 824 of file ActiveRateGroupComponentAc.cpp.
|
static |
Callback for port PingIn
| callComp | The component instance |
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 939 of file ActiveRateGroupComponentAc.cpp.
|
pure virtual |
Handler for input port PingIn.
| portNum | The port number |
| key | Value to return to pinger |
Implemented in Svc::ActiveRateGroupImpl.
| void Svc::ActiveRateGroupComponentBase::PingIn_handlerBase | ( | NATIVE_INT_TYPE | portNum, |
| U32 | key | ||
| ) |
Handler base-class function for input port PingIn
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1013 of file ActiveRateGroupComponentAc.cpp.
|
virtual |
Pre-message hook for async input port PingIn
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 1079 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::PingOut_out | ( | NATIVE_INT_TYPE | portNum, |
| U32 | key | ||
| ) |
Invoke output port PingOut
| portNum | The port number |
| key | Value to return to pinger |
Definition at line 489 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::set_Log_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Fw::InputLogPort * | port | ||
| ) |
Connect port to Log[portNum]
| portNum | The port number |
| port | The port |
Definition at line 142 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::set_PingOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Svc::InputPingPort * | port | ||
| ) |
Connect port to PingOut[portNum]
| portNum | The port number |
| port | The port |
Definition at line 112 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::set_RateGroupMemberOut_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Svc::InputSchedPort * | port | ||
| ) |
Connect port to RateGroupMemberOut[portNum]
| portNum | The port number |
| port | The port |
Definition at line 102 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::set_Time_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Fw::InputTimePort * | port | ||
| ) |
Connect port to Time[portNum]
| portNum | The port number |
| port | The port |
Definition at line 132 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::set_Tlm_OutputPort | ( | NATIVE_INT_TYPE | portNum, |
| Fw::InputTlmPort * | port | ||
| ) |
Connect port to Tlm[portNum]
| portNum | The port number |
| port | The port |
Definition at line 122 of file ActiveRateGroupComponentAc.cpp.
| void Svc::ActiveRateGroupComponentBase::tlmWrite_RgCycleSlips | ( | U32 | arg | ) |
Write telemetry channel RgCycleSlips
| arg | The telemetry value |
Definition at line 682 of file ActiveRateGroupComponentAc.cpp.
|
friend |
Friend class for white-box testing
Definition at line 53 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad0__ |
Definition at line 181 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad10__ |
Definition at line 498 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE Svc::ActiveRateGroupComponentBase::__pad11__ |
Definition at line 511 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE Svc::ActiveRateGroupComponentBase::__pad12__ |
Definition at line 525 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE Svc::ActiveRateGroupComponentBase::__pad13__ |
The component instance
Definition at line 557 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE Svc::ActiveRateGroupComponentBase::__pad14__ |
Definition at line 579 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE Svc::ActiveRateGroupComponentBase::__pad15__ |
Definition at line 589 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE Svc::ActiveRateGroupComponentBase::__pad16__ |
Definition at line 603 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad1__ |
The port number
Definition at line 210 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad2__ |
The port number
Definition at line 230 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad3__ |
The port number
Definition at line 252 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad4__ |
The port number
Definition at line 276 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad5__ |
Definition at line 296 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad6__ |
Definition at line 324 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad7__ |
Definition at line 378 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad8__ |
Definition at line 434 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::__pad9__ |
Channel ID for RgMaxTime.
Definition at line 467 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::CHANNELID_RGCYCLESLIPS = 1 |
Channel ID for RgCycleSlips.
Definition at line 475 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED NATIVE_UINT_TYPE Svc::ActiveRateGroupComponentBase::context |
< The call order
Definition at line 286 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::TimerVal & Svc::ActiveRateGroupComponentBase::cycleStart = 0 |
< Cycle start timer value
Definition at line 220 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE NATIVE_INT_TYPE Svc::TimerVal& Svc::ActiveRateGroupComponentBase::cycleStart |
< Cycle start timer value
Definition at line 568 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::EVENTID_RATEGROUPCYCLESLIP = 1 |
Definition at line 442 of file ActiveRateGroupComponentAc.hpp.
| bool Svc::ActiveRateGroupComponentBase::m_first_update_RgCycleSlips |
Initialized to true; cleared when channel RgCycleSlips is first updated
Definition at line 601 of file ActiveRateGroupComponentAc.hpp.
| U32 Svc::ActiveRateGroupComponentBase::m_last_RgCycleSlips |
Records the last emitted value for channel RgCycleSlips
Definition at line 615 of file ActiveRateGroupComponentAc.hpp.
| Fw::OutputLogPort Svc::ActiveRateGroupComponentBase::m_Log_OutputPort[NUM_LOG_OUTPUT_PORTS] |
Output port Log
Definition at line 549 of file ActiveRateGroupComponentAc.hpp.
| Svc::InputPingPort Svc::ActiveRateGroupComponentBase::m_PingIn_InputPort[NUM_PINGIN_INPUT_PORTS] |
Input port PingIn
Definition at line 523 of file ActiveRateGroupComponentAc.hpp.
| Svc::OutputPingPort Svc::ActiveRateGroupComponentBase::m_PingOut_OutputPort[NUM_PINGOUT_OUTPUT_PORTS] |
Output port PingOut
Definition at line 537 of file ActiveRateGroupComponentAc.hpp.
| Fw::OutputTimePort Svc::ActiveRateGroupComponentBase::m_Time_OutputPort[NUM_TIME_OUTPUT_PORTS] |
Output port Time
Definition at line 545 of file ActiveRateGroupComponentAc.hpp.
| Fw::OutputTlmPort Svc::ActiveRateGroupComponentBase::m_Tlm_OutputPort[NUM_TLM_OUTPUT_PORTS] |
Output port Tlm
Definition at line 541 of file ActiveRateGroupComponentAc.hpp.
| PRIVATE NATIVE_INT_TYPE Svc::ActiveRateGroupComponentBase::portNum |
The port number
Definition at line 567 of file ActiveRateGroupComponentAc.hpp.
| PROTECTED Svc::ActiveRateGroupComponentBase::PROTECTED |
Definition at line 445 of file ActiveRateGroupComponentAc.hpp.


|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ilu.movingletters.Line
class Line
a line for a letter.
| Field Summary | |
|---|---|
private int |
mEnd
end of line (as index to real coordinates) |
private MovingLetters |
mMovingLetters
reference to letters |
private int |
mStart
start of line (as index to real coordinates) |
| Constructor Summary | |
|---|---|
Line(MovingLetters pMovingLetters,
int pStart,
int pEnd)
create a line with letter coordinates. |
| Method Summary | |
|---|---|
(package private) int |
getWidth()
get the width of the line in the letter coordinate space. may be 1, 2 or 3. |
(package private) void |
paint(int pBaseX,
int pBaseY,
int pDotSize,
int pLineWidth)
draw this line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int mStart
private int mEnd
private MovingLetters mMovingLetters
| Constructor Detail |
|---|
Line(MovingLetters pMovingLetters, int pStart, int pEnd)
pMovingLetters
- the reference to the letters instance.pStart
- start of line as letter coordinate.pEnd
- end of line as letter coordinate.| Method Detail |
|---|
void paint(int pBaseX, int pBaseY, int pDotSize, int pLineWidth)
pBaseX
- x-base position of letter coordinate 0.pBaseY
- y-base position of letter coordinate 0.pDotSize
- size of dots at start and end. 0 for no dot.pLineWidth
- line width.int getWidth()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


York shop bans cheesy Christmas music for sake of staff
by PA MediaGin store ‘confident’ customers will also appreciate a festive break from Mariah, Slade et al
A shop in York has banned cheesy Christmas songs for the sake of staff morale, the owners have said.
Neither Mariah Carey’s All I Want For Christmas Is You nor Slade’s Merry Xmas Everybody will be played this year at York Gin because having to endure such music for hours each day would ruin Christmas for shop-floor employees, the shop’s director said.
Emma Godivala said the move would be welcomed by shoppers tired of the constant festive playlist pumped through the speaker systems of many high street shops from mid-November.
Her shop, which is in a 16th-century Tudor building in the heart of historic York, did not suit modern music, she said.
“We do love Christmas, but we want our gin shop to be a cheese-free zone. We’ve tested lots of songs to see which sound OK and which sound weird. And there’s a cut-off in the 1960s. Anything after that has been banned.
“Our lovely team are happy with the decision.  That said, if Mariah appeared in the shop, we might just overturn the ban for a while and play All I Want For Christmas Is You.”
Instead the shop will play Christmas carols, music from seasonal ballets such as The Nutcracker and classics from Bing Crosby, Frank Sinatra and Ella Fitzgerald.
Sandie Tanner-Smith, the shop’s manager, said: “We’re confident we’ll have the happiest staff and customers around. Our playlist is big enough to make sure no one hears the same Christmas song more than twice in a week.”


--- authors: - brad-czerniak #categories: ["one", "two"] contact: "ao5357 [at] gmail.com" #date: 2020-03-03 02:02:02 from: "Lincoln Park, Michigan, USA" #hero_classes: "background-color--main-dark color--white" job_title: "Groom" meta: description: "Drupal dev team lead, librarian, renaissance man" image: alt: "Brad Czerniak" src: 1200x630/brad-czerniak.jpg # robots: "index,follow" # title: "Overrides the tab title and social titles" #permalink: /people/brad-czerniak/ #published: true #sitemap: true short_name: brad #tags: ["three", "four"] title: "Brad Czerniak" twitter: creator: "@ao5357" weight: 2 --- {% include atoms/heading.html children="About Brad" classes="text-shadow--second-light--solid" level="2" %}
Brad is a known quantity.
He worked pretty much non-stop for a decade-and-a-half, then took a couple months off in 2020. Brad thinks weird thoughts and expresses them, and sometimes does semi-strange things, but is overwhelmingly chill. Often you can find him doing bar trivia with friends or having a quick dinner out with Shelby before getting back home where the TV and snacks are. He makes websites and says nice things about libraries and Detroit.


Index
A B C D E F G H I L M N O P R S T U V W X
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
M
- main(String[]) - Static method in class testapp.Main
- Main - Class in testapp
- Main() - Constructor for class testapp.Main
- mCharacteristic - Variable in class com.welie.blessed.BluetoothGattDescriptor
-
Back-reference to the characteristic this descriptor belongs to.
- mCharacteristics - Variable in class com.welie.blessed.BluetoothGattService
-
List of characteristics included in this service.
- mDescriptors - Variable in class com.welie.blessed.BluetoothGattCharacteristic
-
List of descriptors included in this characteristic.
- mDevice - Variable in class com.welie.blessed.BluetoothGattService
-
The remote device his service is associated with.
- meanArterialPressure - Variable in class testapp.BloodPressureMeasurement
- Media1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: org.bluez
Interface: org.bluez.Media1
Object path:
[variable prefix]/{hci0,hci1,...}
- MediaControl1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: org.bluez
Interface: org.bluez.MediaControl1
Object path:
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
Supported properties:
boolean Connected [readonly]
object Player [readonly, optional]
Addressed Player object path.
- MediaEndpoint1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: unique name
Interface: org.bluez.MediaEndpoint1
Object path:
freely definable
- MediaFolder1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: unique name (Target role)
Interface: org.bluez.MediaFolder1
Object path:
freely definable (Target role)
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/playerX
(Controller role)
Supported properties:
uint32 NumberOfItems [readonly]
Number of items in the folder
string Name [readonly]
Folder name:
Possible values:
"/Filesystem/...": Filesystem scope
"/NowPlaying/...": NowPlaying scope
Note: /NowPlaying folder might not be listed if player
is stopped, folders created by Search are virtual so
once another Search is perform or the folder is
changed using ChangeFolder it will no longer be listed.
Offset of the first item.
Default value: 0
uint32 End:
Offset of the last item.
Default value: NumbeOfItems
array{string} Attributes
Item properties that should be included in the list.
Possible Values:
"title", "artist", "album", "genre",
"number-of-tracks", "number", "duration"
Default Value: All
- MediaItem1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: unique name (Target role)
Interface: org.bluez.MediaItem1
Object path:
freely definable (Target role)
[variable
prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/playerX/itemX
(Controller role)
Supported properties:
object Player [readonly]
Player object path the item belongs to
string Name [readonly]
Item displayable name
string Type [readonly]
Item type
Possible values: "video", "audio", "folder"
string FolderType [readonly, optional]
Folder type.
Possible values: "mixed", "titles", "albums", "artists"
Available if property Type is "Folder"
boolean Playable [readonly, optional]
Indicates if the item can be played
Available if property Type is "folder"
dict Metadata [readonly]
Item metadata.
Possible values:
string Title
Item title name
Available if property Type is "audio"
or "video"
string Artist
Item artist name
Available if property Type is "audio"
or "video"
string Album
Item album name
Available if property Type is "audio"
or "video"
string Genre
Item genre name
Available if property Type is "audio"
or "video"
uint32 NumberOfTracks
Item album number of tracks in total
Available if property Type is "audio"
or "video"
uint32 Number
Item album number
Available if property Type is "audio"
or "video"
uint32 Duration
Item duration in milliseconds
Available if property Type is "audio"
or "video"
- MediaPlayer1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: org.bluez (Controller role)
Interface: org.bluez.MediaPlayer1
Object path:
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/playerX
Supported properties:
string Equalizer [readwrite]
Possible values: "off" or "on"
string Repeat [readwrite]
Possible values: "off", "singletrack", "alltracks" or
"group"
string Shuffle [readwrite]
Possible values: "off", "alltracks" or "group"
string Scan [readwrite]
Possible values: "off", "alltracks" or "group"
string Status [readonly]
Possible status: "playing", "stopped", "paused",
"forward-seek", "reverse-seek"
or "error"
uint32 Position [readonly]
Playback position in milliseconds. - MediaTransport1 - Interface in org.bluez
-
File generated - 2018-07-25.
Based on bluez Documentation: media-api.txt.
Service: org.bluez
Interface: org.bluez.MediaTransport1
Object path:
[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX/fdX
Supported properties:
object Device [readonly]
Device object which the transport is connected to.
string UUID [readonly]
UUID of the profile which the transport is for.
byte Codec [readonly]
Assigned number of codec that the transport support.
The values should match the profile specification which
is indicated by the UUID.
array{byte} Configuration [readonly]
Configuration blob, it is used as it is so the size and
byte order must match.
string State [readonly]
Indicates the state of the transport. - mergeArrays(byte[]...) - Static method in class com.welie.blessed.BluetoothBytesParser
-
Merge multiple arrays intro one array
- Message - Class in com.welie.blessed.internal
- Message(Runnable, long) - Constructor for class com.welie.blessed.internal.Message
- Message1 - Interface in org.bluez.obex
-
File generated - 2018-07-25.
Based on bluez Documentation: obex-api.txt.
Service: org.bluez.obex
Interface: org.bluez.obex.Message1
Object path:
[Session object path]/{message0,...}
Supported properties:
string Folder [readonly]
Folder which the message belongs to
string Subject [readonly]
Message subject
string Timestamp [readonly]
Message timestamp
string Sender [readonly]
Message sender name
string SenderAddress [readonly]
Message sender address
string ReplyTo [readonly]
Message Reply-To address
string Recipient [readonly]
Message recipient name
string RecipientAddress [readonly]
Message recipient address
string Type [readonly]
Message type
Possible values: "email", "sms-gsm",
"sms-cdma" and "mms"
uint64 Size [readonly]
Message size in bytes
string Status [readonly]
Message reception status
Possible values: "complete",
"fractioned" and "notification"
boolean Priority [readonly]
Message priority flag
boolean Read [read/write]
Message read flag
boolean Deleted [writeonly]
Message deleted flag
boolean Sent [readonly]
Message sent flag
boolean Protected [readonly]
Message protected flag
- MessageAccess1 - Interface in org.bluez.obex
-
File generated - 2018-07-25.
Based on bluez Documentation: obex-api.txt.
Service: org.bluez.obex
Interface: org.bluez.obex.MessageAccess1
Object path:
[Session object path]
- Mouth - testapp.TemperatureType
- MoveFile(String, String) - Method in interface org.bluez.obex.FileTransfer
-
From bluez documentation:
Move a file within the remote device from source file
to the target file.
- mPermissions - Variable in class com.welie.blessed.BluetoothGattCharacteristic
-
Characteristic permissions.
- mPermissions - Variable in class com.welie.blessed.BluetoothGattDescriptor
-
Permissions for this descriptor
- mProperties - Variable in class com.welie.blessed.BluetoothGattCharacteristic
-
Characteristic properties.
- mService - Variable in class com.welie.blessed.BluetoothGattCharacteristic
-
Back-reference to the service this characteristic belongs to.
- mUuid - Variable in class com.welie.blessed.BluetoothGattCharacteristic
-
The UUID of this characteristic.
- mUuid - Variable in class com.welie.blessed.BluetoothGattDescriptor
-
The UUID of this descriptor.
- mUuid - Variable in class com.welie.blessed.BluetoothGattService
-
The UUID of this service.
All Classes|All Packages


Synchronous invocation
When you invoke a function synchronously, Lambda runs the function and waits for a
response. When the function
completes, Lambda returns the response from the function's code with additional data,
such as the version of the
function that was invoked. To invoke a function synchronously with the AWS CLI, use
the invoke
command.
aws lambda invoke --function-name my-function --payload '{ "key": "value" }' response.json
You should see the following output:
{ "ExecutedVersion": "$LATEST", "StatusCode": 200 }
The following diagram shows clients invoking a Lambda function synchronously. Lambda sends the events directly to the function and sends the function's response back to the invoker.
The payload
is a string that contains an event in JSON format. The name of the file where the
AWS CLI
writes the response from the function is response.json
. If the function returns an object or error, the
response is the object or error in JSON format. If the function exits without error,
the response is
null
.
The output from the command, which is displayed in the terminal, includes information from headers in the response from Lambda. This includes the version that processed the event (useful when you use aliases), and the status code returned by Lambda. If Lambda was able to run the function, the status code is 200, even if the function returned an error.
For functions with a long timeout, your client might be disconnected during synchronous invocation while it waits for a response. Configure your HTTP client, SDK, firewall, proxy, or operating system to allow for long connections with timeout or keep-alive settings.
If Lambda isn't able to run the function, the error is displayed in the output.
aws lambda invoke --function-name my-function --payload value response.json
You should see the following output:
An error occurred (InvalidRequestContentException) when calling the Invoke operation: Could not parse request body into json: Unrecognized token 'value': was expecting ('true', 'false' or 'null') at [Source: (byte[])"value"; line: 1, column: 11]
The AWS Command Line Interface (AWS CLI) is an open source tool that enables you to interact with AWS services using commands in your command-line shell. To complete the steps in this section, you need the following:
You can use the AWS CLI to retrieve logs for an invocation using the --log-type
command option. The response contains a LogResult
field that contains up to 4 KB of base64-encoded logs from the invocation.
Example retrieve a log ID
The following example shows how to retrieve a log ID from the LogResult
field for a function named my-function
.
aws lambda invoke --function-name my-function out --log-type Tail
You should see the following output:
{ "StatusCode": 200, "LogResult": "U1RBUlQgUmVxdWVzdElkOiA4N2QwNDRiOC1mMTU0LTExZTgtOGNkYS0yOTc0YzVlNGZiMjEgVmVyc2lvb...", "ExecutedVersion": "$LATEST" }
Example decode the logs
In the same command prompt, use the base64
utility to decode the logs. The following example shows how to retrieve base64-encoded
logs for my-function
.
aws lambda invoke --function-name my-function out --log-type Tail \ --query 'LogResult' --output text | base64 -d
You should see the following output:
START RequestId: 57f231fb-1730-4395-85cb-4f71bd2b87b8 Version: $LATEST "AWS_SESSION_TOKEN": "AgoJb3JpZ2luX2VjELj...", "_X_AMZN_TRACE_ID": "Root=1-5d02e5ca-f5792818b6fe8368e5b51d50;Parent=191db58857df8395;Sampled=0"",ask/lib:/opt/lib", END RequestId: 57f231fb-1730-4395-85cb-4f71bd2b87b8 REPORT RequestId: 57f231fb-1730-4395-85cb-4f71bd2b87b8 Duration: 79.67 ms Billed Duration: 80 ms Memory Size: 128 MB Max Memory Used: 73 MB
The base64
utility is available on Linux, macOS, and Ubuntu on Windowsbase64 -D
.
For more information about the Invoke
API, including a full list of parameters, headers, and
errors, see Invoke.
When you invoke a function directly, you can check the response for errors and retry. The AWS CLI and AWS SDK also automatically retry on client timeouts, throttling, and service errors. For more information, see Error handling and automatic retries in AWS Lambda.


{% extends "layout.html" %} {% block content %}
With integration to your CRM system, DocuMan is able to auto complete contracts and integrate back seamlessly to your CRM system
DocuMan allows for manual completion of your contracts, plus adds integration to your CRM systems
Go!


Post edited 1 x times, last by
BrainFooLong
Administrator
Topicstarter
A little adjustment for import export button...they cover the number of release
https://dl.dropboxusercontent.com/u/66402/cssadjustment.gif
.bblog-options .importexport {
position: absolute;
right: 4px;
top: 19px;
in addition small margins will be fine
.bblog-checkbox {
margin-right: 4px;
margin-top: 8px;
}


--- layout: page title: About Me description: This is what I do. background: '/img/bg-about.jpg' ---
I'm Mingxi Huang, a graduating senior at Cornell University studying Cmoputer Science and minoring in Operations Research and Management Science.
The passion for computer science carried me through the education at Cornell University, where I got to learn algorithms, systems, databases, machine learning, and higher mathematics with great professors and peers, where I got many opportunities to practice necessary and advanced skills for software development and data analysis tasks.
Knowing how much there is yet to learn, I plan to pursue a Master's Degree after graduating in May 2021, an MEng degree that sharpens my weapon as a software engineer within a compact but fruitful year. Moreover, with two software internship experiences in Shenzhen and Beijing, China, I also value the ability to solve real-world industrial problems with software and learn new knowledge as I proceed.
Languages: Python, Java, C++, R
Academic Interests: System Programing, Databases, Machine Learning


Write the letters as fast as you can, before they reach the red mark.
Author: Juan Carlos Garcia (for Claudia)
Copyright Notice
: All images and sounds are trademark of their respective author.


The data synchronization configurations below can be scheduled as tasks.
When run they will trigger the program rsync to syncronize the source directory to the destination directory.
Excludes are comma separated file name patterns which will be excluded from the sync. ie ( *.git, .*)
Options are to be used by advanced rsync users to add specific options to the rsync command run.
If the destination directory does not exist, it will be created.
If you want data synchronized to an external drive it should be mounted first:
System Storage
If real-time sync is enabled on a configuration, you may not want that the same config scheduled as a task.


Duplication count
Number of copies
* total number of layers
Scale
while duplicating
Direction
X and Y
X only
Y only
Increment in
Pixels
Percentage
Randomly
Increment by
(px)
Recommended range: 5-20
Increment by
(%)
Recommended range: 50-130
Randomize by +/-
(%)
Recommended range: 5-20
Move
while duplicating
Direction
Horizontally
Vertically
Diagonally
Randomly
Increment by
(px)
Recommended range: 1-500
Width
(px)
Height
(px)
Form a grid
No. of Cols
No. of Rows
Horizontal margin
(px)
Vertical margin
(px)
Rotate
while duplicating
Auto rotate to form a circle
Manually rotate
Angle
(degrees)
Recommended range: 1-359
Increment
Linear
Sinusoidal
Random
Sin Factor
Recommended range: 0.02-10
Randomize by +/- (px)
Recommended range: 5-20
Update opacity
while duplicating
Randomly
Increase from 0 to 100%
Decrease from 100 to 0%


My recipe was fairly simple: Approximately three tablespoons of finely ground, good commercial grade marijuana, and 70% diluted Isopropyl alcohol (30% water). I used a mason jar as my container. I carefully spooned the powder into the bottom of the jar, careful because the finely ground grass dust likes to stick to the glass and its hard to get off. I then carefully poured in enough alcohol to just cover the ground grass. I let it soak in my bathroom closet for approximately twenty-hours. I then strained it into a small, medium high casserole dish and set it by the heater vent to evaporate. I used a fine metal mesh fry pan splash protector.
After it dried I scraped out the resin. I was worried for a moment because Iíd read it was supposed to be black to golden brown in color, but mine was green.  It has an odd consistency, a little drier than opium. I used approximately three tablespoons of fine ground, good commercial grade grass and gotten a yield of between a gram, gram and a half (a bit over the weight of a large paper clip, which I think this the approximation for a gram anyhow). Read the ďConclusionĒ section to view my thoughts on whether this is a good way to conserve on grass. I was told/read that it can be very economic to turn half, or all of you stash into hashish.
Adult Male, 230 lbs
Consumed: (2x) 1 milligram hashish (a nice little dollop on a pinhead) on top half an average bowl pack.
6oz of red wine (about 13% alcohol).
Condition: Relaxed, excited. Iíd slept in way late, like 2pm, and didnít really do anything all day except smoke two pinner joints and listen to music. But, I am a graduate student during the week so there is always an element of stress in my life. Iíd also had a beer or two through out the day. However, Iíd dinner shortly before I smoked and was basically sober (that weird feeling one gets after smoking early in the day, then not for six hours or so).
 I watch the bowl and can see the hash burning/boiling away. The smoke was viscous, but surprisingly cool. The hashish actually burned before the grass, I am somewhat concerned it may have been residual alcohol. The first rip was kind of bizarre, being fairly cool but very harsh. I coughed for about a minute and a half, nothing terrible. Iím a half a pack a day smoker, plus my grass consumption which is also daily. I donít know if it was the coughing or not but I got a huge head rush for about thirty seconds and felt like a trip was coming on. These sensations died off fairly quickly.
T+15 minutes: I took about two more large hits and most of the grass was gone, but I think there is still some hashish left in there. Itís a very clear body high, not too cerebral. Right after the last hit the high was extremely intense for a while, all body though. It almost felt like a hard roll and being drunk at the same time.
T+30 Listening to music and writing this report. Nice mild body high has gotten slowly more cerebral. My vision is a little fuzzy and itís hard to focus my sight, but this happens at times just smoking bud. Probably going to try a little more before the next check in.
T+40 OK, this stuff is officially harsh. Just packed another 1/3-1/2 bowl of dry grass and another dollop on a pinhead size of hashish. I didnít cough as much as the first time, but damn. I defiantly felt the effects soon after the hit. I hit it, coughed after holding the smoke for 45 seconds maybe. I coughed for about thirty seconds. Sat for a minute or two and thought, ďWow, Iím way more high than I was a minute ago.Ē
T+55 I beginning to think it might be worth packing a batch once a month. It would be handy if I were low on bud. Putting a pinhead dollop or two on top of even half a bowl will get me a very pleasant buzz. Iíd imagine I can probably get bombed on this stuff. I may give a go to trying a larger chunk of hashish this evening. Getting extremely high as I type, pleasant pressure in the base of my skull sends rushing waves of through my body. Great auditory stimulation. Iíve got some nervous twitches, but I donít feel paranoid. The high is certainly getting a little trippy. Major rush passed, pleasant skull pressure still present.
T+65 Smoked the remainder of the second bowl. Feeling great.
Recipe Conclusions:
Itís a simple recipe with a good yield and a nice mellow high. It is the kind of high that cannabis has, but 3-5 times more powerful.
 And these days arenít you the connected party host when you break out *GASP* hashish! I live in the mid-west and I have never been able to find it, nor had I tried it before making it myself. I could really get blasted on this stuff, like getting rock-star wasted. Also, it is a lot more inconspicuous to carry. I could easily carry ten grams of it. A small chunk, about the size of a hershy bar section, could easily get six people (probably eight even) as high as they want.
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.


{0} {1} added a comment to {2} {3}'s post.
Original message:
{4}
{0} {1} says:
{5}
To read ful post history follow the link bellow
{6}USER/Wall.aspx
Musicman team.


Redditors Leverage Robinhood Bug, Earn Millions in the Process
by Ali RazaRecent reports have surfaced about an anomaly within the Robinhood trading application that has let users make crazy money.
Cryptocurrency market critics often complain about the lack of security and worry about the users potentially cheating the system. However, as it turns out, the stock market is not always as safe as many would like to believe, either.
Robinhood Bug Lets People Make Millions
A recent glitch in the Robinhood stock trading app allowed users to misuse the margin trading feature, and borrow up to $1.7 million for stock investing, even though they originally had only around $2,000. The leverage used by some of the traders goes all the way up to 500x, which is far from what the exchanges usually allow.
It was not long before news of the glitch spread throughout the internet, with the most activity seen on Reddit. One user claimed that they managed to use margin trading to buy 100 shares of AMD, with only $3,800 or so to begin with. After that, they sold the purchased shares and got the money back, eventually using the newly-earned funds to buy even more AMD shares. They repeated the process over and over again and used margin trading to maximize their gains.
On the other hand, even if the stock price dropped by 10% or so, they would only owe around $170,000, according to estimates.
Consequences of Leveraging the Bug
Bugs Discovered in Bitcoin Lightning Network Implementations, Fixed
Of course, as many may be aware, this process is not exactly legal, and it is only a matter of time before the exchange — and the regulators — react. Not to mention that many assume that users who misused the glitch will likely be unable to cash out, as the transfers usually take a couple of days.
Meanwhile, authorities and the exchange’s officials have likely already realized what is going on, and any account that may have misused the glitch might be frozen or prevented from cashing out in some other way.
For now, it remains unknown how the situation might be handled. It also remains to be seen whether or not Robinhood will actually have to allow users to cash out, and how that might impact the exchange’s own funds.
What do you think about Robinhood’s new glitch? Do you think that it was a good idea for some of these users to try it out? Let us know your thoughts in the comments below.
Images via Shutterstock, Flickr: @DJANDYW, Twitter: @Austen
The Rundown


Notebooks
Story: A drum
A drum
Title
A drum
Collection
Summary
A description of the drum (called !gauru) made and played by the !kun.
Comments
1) This story is found in Book XI & XII-10
Contributors
Date
8 April 1881
Categories
Keywords
musical instrument (the drum of the !kun called !gauru) , drum (called !gauru) , drum (made and used by the !kun) , drum (the making of) , drum (the method of playing) , drum (is beaten with hands) , drum (a description of) , musical instrument (drum called !gauru) , name (!kun, a drum called !gauru)
Story Pages
9789v


Stores Opening Hours
You can shop 7 days a week in our stores. Only the hours differ per day, on Monday the shops open later and on Friday there is late-night shopping.
Measures coronavirus
In response to the coronavirus the government has taken additional measures. Some stores have adjusted their opening hours and others are closed until April 6 at least. Therefore, keep a close eye on the social media and websites of different stores for current information.
Read more info about the measures to contain the coronavirus.
City Centres
Most of the shops in the city centre open at 10:00 until 18:00, and at Friday until 21:00. The Markthal is open until 20:00 nearly every day and until 21:00 on Friday and 18:00 on Sunday. Department stores, like Dubai and Lima, are almost daily open until 19.00.
| Day | Opening Hours |
|---|---|
| Monday | 11:00-18:00 |
| Tuesdya | 10:00-18:00 |
| Wedensday | 10:00-18:00 |
| Thursday | 10:00-21:00 |
| Friday | 10:00-21:00 |
| Saturday | 10:00-18:00 |
| Sunday | 12:00-18:00 |


Video: Klopp makes brilliant Van Dijk argument to win Ballon d’Or ahead of Messi
by Ron CarneIt’s unlikely that this is a view shared by Barcelona fans, but Jurgen Klopp has made his case as to why Virgil van Dijk deserves to win the Ballon d’Or this year.
The Dutchman and Lionel Messi will undoubtedly be two of the frontrunners for the award, while Cristiano Ronaldo will hope to have something to say when the winner is announced on December 2.
However, Klopp has done his best to get the Van Dijk argument out there, as he simply believes that the Liverpool defender has deserved it more for what he has done over the past 12 months.
As seen in the video below, the Reds boss conceded that if the award was for the best player of all time then Messi would walk away with it.
That said, his point is that Van Dijk helped to lead Liverpool to the Champions League last season in what was a stellar campaign for the centre-half both for club and country, and so there is certainly a case to be made that he should land the award this time round.
Time will tell if that’s a sentiment shared in the voting though, as while Klopp does make a logical, albeit biased, argument for Van Dijk, it will surely take some doing to deny both Messi and Ronaldo for a second consecutive year after Luka Modric secured the award in 2018.


Lisbeth by PadSoft
GitHub Repo
PadSoft
Entity Generator
Generate Lisbeth Entities from your current database setup.
Database Connection
Host
User
Password
Database
Generate


Account Selector
Primary Filters
Alias
Accounting combination
Organization
Account
Product
Business Partner
Project
Campaign
Search
Save
DataGrid
Loading...
OK
Cancel


class: center, middle, inverse, title-slide # Regression Analysis ## Machine Learning in Economics ### Hüseyin Taştan ### Yildiz Technical University --- class: my-medium-font <style type="text/css"> .remark-slide-content { font-size: 28px; padding: 1em 4em 1em 4em; } .my-large-font { font-size: 40px; } .my-small-font { font-size: 20px; } .my-medium-font { font-size: 30px; } </style> # Lecture Outline - [Simple Linear Regression Model](#simple) - [Goodness-of-fit Measures, Statistical Inference](#fit) - [Multiple Linear Regression Model](#multiple) - [Categorical `\(X\)` Variables](#categoricalX) - [Interaction Variables](#interaction) - [Diagnosing potential problems](#problems) --- name: simple # Simple Linear Regression Model * Assume that `\(f(x)\)` is linear in parameters (approximately) and there is a single predictor. Then the Population Regression Function (PRF) is `$$y = \beta_0 + \beta_1 X + \epsilon$$` * Using training data, `\(\{y_i, x_i: i=1,2,\ldots,n\}\)`, the prediction is `$$\hat{y}_i = \hat{\beta}_0 + \hat{\beta}_1 x_i$$` * Observed = prediction + residual: `$$y_i = \underbrace{\hat{\beta}_0 + \hat{\beta}_1 x_i}_{\hat{y}_i} + e_i$$` * Estimation method: Ordinary Least Squares (OLS) chooses `\(\hat{\beta}_j\)` such that the sum of squared residuals is minimum. --- # OLS Estimation Optimization problem for the simple case: `$$\min_{\hat{\beta}_0, \hat{\beta}_1} SSR = \sum_{i=1}^n (y_i - \hat{\beta}_0 - \hat{\beta}_1 x_i)^2$$` SSR: sum of squared residuals (note: sometimes called RSS - residual sum of squares) * First Order Conditions (FOC): `$$\frac{\partial SSR}{\partial \hat{\beta}_0 } = -2 \sum_{i=1}^n (y_i - \hat{\beta}_0 - \hat{\beta}_1 x_i) = 0$$` `$$\frac{\partial SSR}{\partial \hat{\beta}_1 } = -2 \sum_{i=1}^n x_i(y_i - \hat{\beta}_0 - \hat{\beta}_1 x_i) = 0$$` --- # OLS Estimation * Solving FOC * Slope parameter `$$\hat{\beta}_1 = \frac{\sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})}{\sum_{i=1}^n (x_i - \bar{x})^2}$$` * Intercept `$$\hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x}$$` where `\(\bar{y}\)` and `\(\bar{x}\)` are the sample averages. `$$\bar{y} = \frac{1}{n}\sum_{i=1}^n y_i,\quad \bar{x} = \frac{1}{n}\sum_{i=1}^n x_i$$` --- # OLS Estimation: Example $$\widehat{Sales} = 7.03 + 0.0475~ TV Advertisements $$ .center[![:scale 65%](img/reg1.PNG)] <small>(figure source: James et al. (ISLR), Fig.3.1, p.62)<small> --- # OLS Objective Function Contour plot (left), Surface plot (right) .center[![:scale 80%](img/reg2.PNG)] <small>(figure source: James et al. (ISLR), Fig.3.2, p.63)<small> --- # Population vs Sample Regression Function * Population regression function (PRF) is unknown in practice. * We estimate PRF using training data. As training data changes, parameter estimates also change. * Unknown parameters (coefficients): `\(\beta_0\)`, `\(\beta_1\)` * OLS estimators: `\(\hat{\beta}_0\)`, `\(\hat{\beta}_1\)`, these are random variables because they are functions of data (which is random). * In practice, we only have a single data set. How can we assess the accuracy of the model? --- # PRF vs SRF Assume that PRF is given by `\(Y= 2 + 3X + \epsilon\)` (we can simulate data) .center[![:scale 75%](img/reg3.PNG)] Left: PRF (red), Prediction (black); Right: several predictions based on repeated sampling <small>(figure source: James et al. (ISLR), Fig.3.2, p.64)<small> --- # Algebraic properties of OLS estimators * The sum and sample average of residuals are zero `$$\sum_{i=1}^n \hat{e}_i = 0,~~~~~\bar{\hat{e}_i} = 0$$` * The sample covariance between residuals and `\(x\)` is zero `$$\sum_{i=1}^n x_i\hat{e}_i = 0$$` * The point `\((\bar{x},\bar{y})\)` is always on the regression line * Average of predicted values is equal to the average of observed values: `\(\bar{y}=\bar{\hat{y}}\)` --- name: fit # Model's explanatory power * For each observation: `\(y_i = \hat{y}_i + \hat{\epsilon}_i\)`. Subtract sample averages from both sides and square and sum: .pull-left[ * Total Sum of Squares (SST) `$$SST = \sum_{i=1}^n (y_i -\bar{y})^2$$` * Explained Sum of Squares (SSE) `$$SSE = \sum_{i=1}^n (\hat{y}_i -\bar{y})^2$$` ] .pull-right[ * Residual Sum of Squares (SSR) `$$SSR = \sum_{i=1}^n \hat{u}_i^2$$` * Total variability decomposition: `$$SST = SSE + SSR$$` ] --- class: my-small-font # A Goodness-of-fit Measure * The total variability in `\(y\)` can be written as `$$SST = SSE + SSR$$` * Divide both sides by SST `$$1 = \frac{SSE}{SST} + \frac{SSR}{SST}$$` * Coefficient of determination, `\(0\leq R^2\leq 1\)`: `$$R^2 = \frac{SSE}{SST} = 1 - \frac{SSR}{SST}$$` * Interpretation: Approximately `\(100\times R^2\)` percent of the variability in `\(y\)` can be explained by variations in `\(x\)` * Shortcoming: As we add new variables `\(R^2\)` always increases or remains the same, it never decreases. It cannot be used in model selection. --- # Standard errors of OLS estimators * Assume constat variance: `\(Var(\epsilon)=\sigma^2\)`. Then for the simple linear regression model, the standard errors are given by `$$\operatorname{SE}\left(\hat{\beta}_{0}\right)^{2}=\sigma^{2}\left[\frac{1}{n}+\frac{\bar{x}^{2}}{\sum_{i=1}^{n}\left(x_{i}-\bar{x}\right)^{2}}\right]$$` `$$\operatorname{SE}\left(\hat{\beta}_{1}\right)^{2}=\frac{\sigma^{2}}{\sum_{i=1}^{n}\left(x_{i}-\bar{x}\right)^{2}}$$` SE = standard error * These standard errors can be used in hypothesis testing and calculating confidence intervals. --- # Hypothesis Tests .pull-left[ * Always about PRF: `\(Y=\beta_0 + \beta_1 X + \epsilon\)` * Null hypothesis: No relationship between `\(X\)` and `\(Y\)` `$$H_0: \beta_1 = 0$$` * Alternative hypothesis: There is a relationship between `\(X\)` and `\(Y\)` `$$H_a: \beta_1 \neq 0$$` ] .pull-right[ * We can use `\(t\)` test. The `\(t\)` statistic under `\(H_0\)` : `$$t = \frac{\hat{\beta}_1-0}{\operatorname{SE}\left(\hat{\beta}_{1}\right)}$$` * If there is no relationship between `\(X\)` and `\(Y\)` (in other words the null is correct) then `\(t\)` statistic follows `\(t\)` distribution with `\(n-2\)` degrees of freedom. ] --- # Decision rule for the t-test * In the simple linear regression, the decision rule for `\(H_0: \beta_1 = 0\)` and the alternative `\(H_a: \beta_1 \neq 0\)` is > For a given Type-I error probability, `\(\alpha = Pr(|T|>c_{\alpha/2}~|~H_0)\)`, if the absolute value of the computed `\(t\)` statistic is larger than the critical value `\(c_{\alpha/2}\)` then we can reject the null hypothesis. `$$\mbox{Reject}~H_0~\mbox{if}~ t>c_{\alpha/2}~~ \mbox{or}~~ t<-c_{\alpha/2}$$` (Note: `\(T\)` is a random variable that follows a `\(t\)` distribution with `\(n-2\)` degrees of freedom.) --- # Decision rule for the t-test * In practice, we never know if `\(H_0\)` is true or not. Thus we can make two types of errors in our decision. The probabilities of these errors are * Type-I error probability: `\(Pr(REJECT~~ H_0|~H_0~is~TRUE)\)`. * Type-II error probability: `\(Pr(ACCEPT~~ H_0|~H_0~is~WRONG)\)`. * In classical testing framework, we set the Type-I error probability, usually denoted by `\(\alpha\)`, at some small value, say `\(0.05\)` and conduct the test. * Using `\(p\)`-value may be more practical. --- # p-Value * Instead of looking up critical values every time we run the test, we may attempt to estimate `\(\alpha\)` based on the data * `\(p\)`-value: Given that the null is correct, what is the probability of obtaining a `\(t\)` random variable larger than the calculated `\(t\)` statistic in absolute value (for two-sided tests)? * A small `\(p\)`-value implies that there is evidence against the null hypothesis in the data. --- # p-value * Example: `\(n-2=65\)`, Computed `\(t\)` statistic is `\(t=1.82\)`. Then `$$p-value=Pr(T>1.82|H_0) + Pr(T<-1.82|H_0) = 0.0367 + 0.0367 = 0.0734$$` .pull-left[ * Here is the `R` code ```r 2*pt(1.82, df=65, lower.tail = FALSE) ``` ``` ## [1] 0.07336374 ``` * The smallest significance level that would lead to the rejection of `\(H_0\)` is 7.34%. ] .pull-right[ * We reject `\(H_0\)` for all `\(\alpha\)` levels larger than the p-value. * For example, if we use `\(\alpha=0.05\)`, then we cannot reject `\(H_0\)`. A small `\(p\)`-value implies that there is strong evidence against the null hypothesis. (under the assumption that the null is correct) ] --- name: multiple # Multiple Linear Regression Model `$$y = \beta_0 + \beta_1 x_1 + \beta_2x_2 \ldots + \beta_p x_p +\epsilon$$` * If we have several predictors or features, we can add them simultaneously. * Since the model is still linear in parameters, we can use OLS method. Based on a training data the fitted value is: `$$\hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x_1 + \hat{\beta}_2 x_2 \ldots + \hat{\beta}_p x_p$$` * Interpretation of coefficients: assuming that all other variables are fixed (ceteris paribus) then in response to a unit change in `\(x_j\)`, the outcome, `\(y\)`, is predicted to change by `\(\hat{\beta}_j\)` on average, `\(j=1,2,\ldots,p\)`. --- # OLS Prediction Surface .pull-left[ ![:scale 100%](img/reg4.PNG) ] .pull-right[ * When there are two predictors, `\(X_1\)` and `\(X_2\)`, the OLS regression line turns into a surface. * Red dots: observations * OLS minimizes the distance of these points to the surface. ] <small>(figure source: James et al. (ISLR), Fig.3.4, p.73)<small> --- # Example (Table 3.4, p. 74) .pull-left[ | | Estimate| Std. Error| t value| Pr(>|t|)| |:-----------|--------:|----------:|-------:|------------------:| |(Intercept) | 2.939| 0.312| 9.422| 0.0000| |TV | 0.046| 0.001| 32.809| 0.0000| |radio | 0.189| 0.009| 21.893| 0.0000| |newspaper | -0.001| 0.006| -0.177| 0.8599| Multiple regression: `\(sales = \beta_0 + \beta_1 TV + \beta_2 Radio + \beta_3 Newspaper + \epsilon\)` ] .pull-right[ | | Estimate| Std. Error| t value| Pr(>|t|)| |:-----------|--------:|----------:|-------:|------------------:| |(Intercept) | 12.351| 0.621| 19.876| 0.0000| |newspaper | 0.055| 0.017| 3.300| 0.0011| Simple regression: `\(sales = \alpha_0 + \alpha_1 Newspaper + \epsilon\)` ] --- # F Test * We can test if the model is statistically significant as a whole using the `\(F\)` statistic. The null and alternative hypotheses are `$$H_0:\beta_1=\beta_2=\ldots=\beta_p=0$$` `$$H_a: \mbox{at least one}~\beta_j\neq 0$$` * F statistic `$$F = \frac{R^2/p}{(1-R^2)/(n-p-1)}\sim~F_{p,n-p-1}$$` `$$F = \frac{(SST-SSR)/p}{SSR/(n-p-1)},~~~~~~R^2=1-\frac{SSR}{SST}$$` --- name: categoricalX # Categorical X variables * Two groups: gender = Male, Female `$$x_{i}=\left\{\begin{array}{ll} 1, & \text { if } i . \text { person is female} \\ 0, & \text { if } i . \text { person is male. } \end{array}\right.$$` `$$y_{i}=\beta_{0}+\beta_{1} x_{i}+\epsilon_{i}=\left\{\begin{array}{ll} \beta_{0}+\beta_{1}+\epsilon_{i}, & \text { if } i . \text {person is female} \\ \beta_{0}+\epsilon_{i}, & \text { if } i . \text {person is male. } \end{array}\right.$$` * `\(\beta_0\)`: intercept for the Male group * `\(\beta_{0}+\beta_{1}\)`: intercept for the Female group * Single dummy is sufficient for two groups * For multiple categories, say `\(m\)`, we just need `\(m-1\)` dummy variables. For example, if ethnicity has 3 categories we need to add 2 dummies. The excluded group will be represented by the intercept (comparison or base group). --- name: interaction # Interactions * In some cases, the marginal impact of one predictor may depend on another vaariable * For example in the sales and advertising example, the radio advertisements may increase the impact of the TV advertisements `$$sales = \beta_{0}+\beta_{1}~ TV+\beta_{2}~ Radio + \beta_3~ (TV\times Radio) + \epsilon$$` or `$$sales = \beta_{0}+(\beta_{1}+\beta_3 Radio)~ TV+\beta_{2}~ Radio + \epsilon$$` Thus `$$\frac{\Delta Sales}{\Delta TV}=\beta_{1}+\beta_3 Radio,\quad \frac{\Delta Sales}{\Delta Radio}=\beta_{2}+\beta_3 TV$$` --- # Interaction: Example | | Estimate| Std. Error| t value| Pr(>|t|)| |:-------------|--------:|----------:|-------:|------------------:| |(Intercept) | 6.7502| 0.2479| 27.2328| 0.0000| |TV | 0.0191| 0.0015| 12.6990| 0.0000| |radio | 0.0289| 0.0089| 3.2408| 0.0014| |I(TV * radio) | 0.0011| 0.0001| 20.7266| 0.0000| * TV, radio: advertising expenditures in USD * What is the impact of a 1000 USD increase in radio advertisements? * `\(\Delta Sales = (0.0289+0.0011TV)\times 1000 = 28.9 + 1.1TV\)` * In the sample, average TV ads is 147USD. Substituting this into the equation above we find that the average impact is 190.6 USD. --- # Nonlinear relationships * Using appropriate transformations of `\(y\)` and `\(x\)` variables, we can flexibly model nonlinear relationships. * In practice, the most widely used transformations are the natural logarithm transformation and power (or exponential) transformations. * Polynomial regression: We add powers of `\(X\)` variables such as `\(X^2\)` and `\(X^3\)`. For example, quadratic model: `$$Y = \beta_0 + \beta_1 X + \beta_2 X^2 + \epsilon$$` This is in fact an interaction of `\(X\)` variable with itself. The impact of `\(X\)` on `\(Y\)` depends on where the change occurs. --- # Nonlinear relationships * Step function: We obtain categorical variables by dividing the values of `\(X\)` into non-overlapping intervals. * Spline and Smoothing spline: by applying step functions and polynomials together we try to find the best fit. * Local regression * Generalized Additive Models (GAMs) * We will cover these extension in the future classes (for details see ch7. in the ISLR text) --- # Diagnosing potential problems Nonlinear relationships: ![](img/reg5.PNG) --- name: problems # Diagnosing potential problems Autocorrelation in the residuals, `\(\rho\)`, (in time series regressions) .pull-left[ ![:scale 100%](img/reg6.PNG) ] .pull-right[ * Autocorrelation coefficient = `\(\rho\)` * `\(\rho=0\)` means no autocorrelation. * As `\(\rho\)` increases we observe a visible pattern in the residuals. No autocorrelation implies random scatter of residuals around zero. But if they are autocorrelated, then the probability of observing a positive (negative) value following a positive (negative) value increases. ] --- # Diagnosing potential problems Nonconstant error variance (heteroskedasticity) ![:scale 100%](img/reg7.PNG) --- # Diagnosing potential problems Outliers: extremely large or small `\(y_i\)` values ![:scale 100%](img/reg8.PNG) point 20 is an outlier. RED: outlier included. Dashed blue: outlier excluded. Not much difference in this example but it can effect the stadard errors and model accuracy significantly. --- # Diagnosing potential problems High leverage points: Extremely large or small `\(x_i\)` values ![:scale 100%](img/reg9.PNG) Observation 41 is a high leverage point. Excluded (blue dashed). Estimation results are sensitive (left). Middle: red obs. is a high leverage point. Right: diagram of standardized residuals and leverage values, `\(h_i\)`. (see ISLR, equation 3.37, p.98) --- # Diagnosing potential problems Collinearity or Multicollinearity ![:scale 100%](img/reg10.PNG) --- # Diagnosing potential problems: Collinearity .pull-left[ ![:scale 100%](img/reg11.PNG) ] .pull-right[ - Under perfect multicollinearity OLS estimators are undefined. - But under high multicollinearity arising from highly correlated *X* variables, OLS standard errors become larger. Thus it becomes difficult to obtain precise estimates. ] - **Left**: Contour plot of OLS objective function with low correlation between `\(X\)` variables; **Right**: Contour plot with highly correlated `\(X\)` variables


AFTER ALICE (director/writer: Paul Marcus; screenwriter: Jeff Miller; cinematographer: Brian Pearson; editors: Kate Evans/Liz Webber; cast: Kiefer Sutherland (Det. Mickey Hayden), Henry Czerny (Harvey), Polly Walker (Professor of Para-psychology, Vera Swann), Stephen Ouimette (Gideon Woods), Gary Hudson (John Hatter), Eve Crawford (Margaret Ellison), Colin Glazer (Tom Ellison), Ronn Sarosiak (Detective Ray); Runtime: 101; Promark/HBO; 1999-UK/Ger)
Reviewed by Dennis Schwartz
A mediocre thriller that seems to be made just for a video release and not for the theater. It's entertaining in a limited way, as it plays like a conventional crime TV series drama. But it infortunately gets bogged down with a clichéd alcoholic and despondent detective as its star, a predictable and uninvolving formula serial killer story, and plot devices that are unbelievable. But what really brings this film down, is its ludicrous ending. It can best be viewed as a laffer, in a negative sense.
Mickey Hayden (Sutherland) is a veteran burned-out detective; he is constantly drunk because his wife left him for his slimy boss, Lt. John Hatter (Hudson). While off-duty, he chases a shoplifter and in his pursuit he takes a fall. This triggers in him the ability to experience psychic reactions, as he starts seeing things about the crime; and, he also notices by touching an article of clothing, that's part of the crime, he could be stimulated to see even more. At first skeptical of this ESP, he learns how to deal with it as the story progresses.
 Harvey tells him--I see things, too. When the newspapers start pushing a serial killer story in their headlines and he's assigned the case, he gets the help through Harvey of a para-psychology professor, Vera Swann (Walker).
To the drunk detective's surprise, he's put in charge of this glamorous case by the boss who hates him. It doesn't make sense at present, but by the time this predictable story winds down it becomes evident why he was given the case over more capable detectives.
The serial killer who is known as Jabberwocky, leaves signed notes on his dead vics. When newspaperman Tom Ellison, who receives warnings from the killer when he'll strike again, goes to meet him. But he disappears. After a series of gruesome and unconnected killings, all with the trade mark of Jabberwocky, Mickey is able to see things that took place ten years earlier in the death of Alice Lurie in a house owned by Magaret Ellison, the newspaper publisher sister of Tom. He says that's when the serial killer started. Hatter is so upset that he's pursuing that angle, that he takes him off the case; but, this seems to be forgotten since Mickey just continues working the case without any repercussions.
The middle part of the film takes its time developing as it shows many suspects as the possible serial killer, as the film wearily builds to the finale. The action shots are of Kiefer seeing the brutal crimes being committed in his mind.
It's all very forgettable stuff, as the actors are going through the motions of acting and this lame script fails to develop anything interesting to say about the psychic policeman.
REVIEWED ON 9/30/2001 GRADE: C-
Dennis Schwartz: "Ozus' World Movie Reviews"
http://www.sover.net/~ozus
<EMAIL_ADDRESS>© ALL RIGHTS RESERVED DENNIS SCHWARTZ
========== X-RAMR-ID: 29702 X-Language: en X-RT-SourceID: 873 X-RT-AuthorID: 1315 X-RT-RatingText: C-
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


Movie Seeker
Which categories did you enjoy best?


--- layout: post authors: ["Anthony Scopatz"] title: University of Chicago in January date: 2013-01-16 time: "09:00:00" tags: ["University of Chicago", "Workshop", "Report", "Reflection"] ---
This last Saturday and Sunday, Katy Huff and I had the pleasure of organizing a Software Carpentry workshop at the University of Chicago. We had 77 people attend in total and by the end of the day on Sunday we remained 45+ strong. (Frankly, who doesn't want to listen to me rant about documentation at 4 pm on a Sunday afternoon?!) This weekend was unique in that we had a host of first time instructors:
Of note, John Blischak was an attendee of the April 2012 bootcamp at the University of Chicago. Cait Pickens also came up from Michigan State University and did some extensive surveying of the students prior- and post-bootcamp. So be on the watch for her analysis when it becomes available.
Support & Thanks
One thing that made running this bootcamp significantly different and easier than all prior workshops I have been involved in was the generous institutional support from the Graduate Student Affairs office and Kalee Ludeks. In addition to providing free lunches catered by Z&H on both days, Kalee also helped us reserve a room, contact departments and graduate students, create a flier, and all of the other minutia that goes into organizing one of these events. I can safely say that without their help, this bootcamp would not have happened! So if you get an opportunity, please take the time to thank them. And, as always, thanks again to Greg Wilson and the Software Carpentry crowd for enabling this kind of activity.
Pictures
For the visually inclined, here are some pictures taken by Cait of the workshop in progress.


Train Schedule
All aboard!
Current Train Schedule
Train Name:
Destination:
Frequency (min):
Next Arrival:
Minutes Away:
Add your train below...
Train Name:
Destination:
First Train Time (HH:mm - military time):
Frequency (in minutes):
Submit Train data


Five-day scientific symposium opens in Accra
Accra, Nov. 19, GNA - A five-day Scientific Symposium of the West African Postgraduate College of Environmental Health (WAPCEH) is underway in Accra to chart the way forward in addressing the challenges of climate change.
The symposium brings together environmental health practitioners in the sub-region and is being held on under theme: "Climate Change and one Health Implications for Human, Animal and Environmental Health".
In a speech read on her behalf, Mrs Cecilia Abena Dappah, the Minister of Sanitation and Water Resources, said the theme was timely because over the years discussions on climate change were focused on human health, neglecting animals which help promote the sustainability of the ecosystem.
She said Ghana has formulated several policies aimed at promoting ‘One Health’ concerns, including the National Anti-microbial policy, 2018.
The Minister said the Ministry has initiated projects and programmes aimed at achieving the objectives of ‘one health’.
"Currently, the Ministry is supporting selected institutions with litter bins to reduce the amount of filth which may end up polluting the environment", she added.
She said the Ministry was also collaborating with the Ministry of Local Government and Rural Development to strengthen the enforcement of sanitary laws to punish recalcitrant individuals whose activities destroy the ecosystem.
Dr Sunday A.Ojewale, the Secretary General, said WAPCEH had over the years pursued excellence with emphasis on diligence, discipline and determination.
These values have contributed to the successful accreditation of three Faculties of College in three Nigerian Universities-Health Promotion and Environmental Education, Public Health Entomology and Pest Control and Environmental Epidemiology.
The conference will discuss topics including Environmental Health and Maternal Child Health Mortality, Environmental Epidemiology and Climate Change and Community Sanitation Technology in Sub-Saharan Africa.
The event witnessed the induction of 21 new Fellows from West Africa to the Fellowship out of which seven were Ghanaians.
GNA


UNEP-WCMC does not assert any intellectual property rights in the data made available to it by data providers.
Access to UNEP-WCMC datasets is provided on the understanding that you read and consent to be bound by the Terms and Conditions set out in our policies.
UNEP-WCMC does not assert any intellectual property rights in the data made available to it by data providers.
Access to UNEP-WCMC datasets is provided on the understanding that you read and consent to be bound by the Terms and Conditions set out in our policies.
Status and distributions of global mangroves have been mapped using recently available Global Land Survey (GLS) data and the Landsat archive. Approximately 1000 Landsat scenes were interpreted using hybrid supervised and unsupervised digital image classification techniques.
The World Atlas of Biodiversity is the first map-based view of the world's living resources and so addresses the remarkable growth in concern at all levels for living things and the environment. It provides a wealth of facts and figures on the importance of forests, wetlands, marine and coastal environments and other key ecosystems.
The maintenance and enhancement of natural carbon stocks is now considered a key climate change mitigation measure. Emissions from land use change, mainly tropical forest loss, contribute an estimated 17.4% of total anthropogenic greenhouse gas emissions (IPCC 2007a), equivalent to around 5.8 Gigatonnes (Gt) of carbon dioxide (CO2) per year.
ProtectedPlanet.net is the online interface for the World Database on Protected Areas (WDPA), a joint project of IUCN and UNEP, and the most comprehensive global database on terrestrial and marine protected areas. ProtectedPlanet.net lets you discover the protected areas of the world through exploring the maps and intuitive searching, feeding you information from the WDPA, photos from Panoramio© and text descriptions from Wikipedia©.
UNEP-WCMC provides a wide range of services to the European Commission in support of the effective implementation of the EU Wildlife Trade Regulations, the legislation that provides for the enforcement of CITES within the European Union.
IBAT for Business, a subscription based service was launched in 2010, it facilitates access to information about high priority sites for conservation - namely protected areas and key biodiversity areas - to inform the implementation of corporate biodiversity policies and enhance environmental management systems.
The GCDD is the result of a collaboration between UNEP-WCMC and NOAA NMFS. The project aims to collate information on the global distribution of coral diseases, in order to contribute to the understanding of coral disease prevalence.


{% trans 'Set position coordinates' %}
{% trans 'Please select the position to set to these coordinates:' %}
{% include 'site/fragment_location.html' with location=coordinates %}{% trans 'Please select the position to set to these coordinates:' %}
{% include 'site/fragment_location.html' with location=coordinates %}


Swift vs. Objective C
Introduction
So you’re interested in developing software in Swift or Objective-C, but how do you know which to choose? I work at an enterprise level company that has recently researched this question, and I want to briefly share with you my findings so that you can make an informed decision.
I will begin with a simple Q & A.
Can I write a complete Swift framework without depending on Objective-C?
Yes, many popular apps such as lyft, Yahoo Weather, and LinkedIn are now entirely built in Swift. The process for creating a framework is similar except Objective-C is now replaced with Swift.
Reference: http://www.apple.com/swift/
Are Swift frameworks compatible with app’s written in Objective-C?
Yes, Swift frameworks are compatible with apps previously written in Objective-C with some caveats. The following Swift only features will not be available to Objective-C apps:
- Generics
- Tuples
- Enumerations defined in Swift without Int raw value type
- Structures defined in Swift
- Top-level functions defined in Swift
- Global variables defined in Swift
- Type aliases defined in Swift
- Swift-style variadics
- Nested types
- Curried functions
Are there any popular SDK’s or open source libraries already written in Swift? (e.g. Alamofire)
Yes, 1/3 of the SDK’s found on this website are written in Swift.
What are the downsides of using SDK’s written in Swift?
Some features in Swift are not available to Objective-C as mentioned earlier. Also, because Swift is a fairly new language, the support for it is not as thorough as Objective-C. This is changing though!
Is Swift compatible with CocoaPods?
Yes, you can use any pod written in Objective-C, Swift or both with an app written in Objective-C, Swift, or both. Just remember that some Swift features are not compatible with Objective-C.
What’s going to be changed in Swift in the near future?
All information regarding upcoming changes to Swift can be found here: https://github.com/apple/swift-evolution
Conclusion
After asking these questions myself, I determined this:
-
There are still many companies out there using Objective-C. With that said, I’ve decided to continue to write SDK’s in Objective-C, because I know that they will be compatible with both Objective-C apps and Swift apps. This is not the case however if we decide to write SDK’s solely in Swift.
-
If I’m building an application that will have zero possible Objective-C dependencies, then Swift is a sure way to go because of its clean style and easy to learn syntax.
-
I will reassess this decision in the next year as the next Swift versions are introduced and I can determine that my clients will no longer need Objective-C frameworks.


[position-x] channel encodes [GDP Per Capita, Happiness Score, Happiness Rank, Family-friendly Score, Freedom Score, or Generosity Score depending on user].
[position-y] channel encodes [GDP Per Capita, Happiness Score, Happiness Rank, Family-friendly Score, Freedom Score, or Generosity Score depending on user].
[size of circle] channel encodes [population].
Map Interactions:
Hover and change color:
show the readers the areas for each country.
It is especially useful for some countries, like the US, which has
areas that are not adjacent to each other (e.g. Alaska). By allowing
the readers to hover over a country and show the size and areas of
that country, we can provide the readers with a more accurate way of
representing the country’s boundaries.
Hover and appear name:
It is not possible to show the name of every
country on the map at the same time since that will lead to a clustered
data representation. So we decide to allow users to hover a country and
we will show the name of that country using tooltip.
Zoom & Drag:
Since there are many (and small) countries, we realized
that it will be hard for the users to see properly due to the limitation
of small screens. Therefore, we decided to implement the “zoom” function
to our visualization, which allows users to zoom in and out on the map
using two fingers (two fingers sliding down the control pad together → zoom in;
two fingers sliding up the control pad together → zoom out). Furthermore, after
zooming, we see that some of the countries are inaccessible since it is not
of the zoomed area. So we also implemented “dragging” on the map. Readers can
drag the map by clicking on any of the areas on the map and move the mouse while
holding on the click.
Click:
We wanted to link the map and the scatterplot as the first provides a
higher-level view of the world and the latter presents a detailed view on the
relationship between different variables (happiness rank, happiness score, GDP
per Capita, Family-friendly, freedom, and generosity) for each country. So, we
enabled click on each capital of a country (circles on the map). Each time the
reader clicks on a country’s capital, the scatterplot will refresh and highlight
the chosen country, enabling us to understand how it compares to others in regards
to the different variables.
Scatter-Plot Interactions:
Choose variable through the two dropdown menus for the x-axis and y-axis: since
we want to explore the relation between GDP Per Capita and other variables
(happiness rank, happiness score, Family-friendly, freedom, and generosity),
we need to reuse the scatterplot. Therefore, we decided to allow readers to choose
what they want to see on the x-axis and y-axis by adding a drop down menus for both axis.
Brush & zoom in, double click & zoom out: Similar to the case in the map,
there are a lot of countries (153 to be precise). So we think that the bubbles
(circles) that represent the countries will be overlapping with each other.
Thus, we decide to implement “brush” to zoom in. Readers can put their cursor
on the scatterplot and when “+” appears, they can brush an area on the scatterplot
to zoom in. Also, if readers double click on the scatterplot, the scatterplot will
zoom out to the original state.


handles scripting of input controller commands from JS /interface/src/scripting/ControllerScriptingInterface.h September 16th, 2014
Factory to create an InputController
Generated using TypeDoc
handles scripting of input controller commands from JS /interface/src/scripting/ControllerScriptingInterface.h September 16th, 2014


Idle Queue
Goal
We want to delay third party js. To achieve this goal, we use a solution based on idle-until-urgent
idea developed by Philip Walton
HTML required
We want to create a queue for two different cases.
Inline self-executable functions
Let's looks at this Facebook function
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
We need to modify this script, to have a named function that will be launched once in the queue.
<script>
function facebookSdk() {
var js, fjs = document.getElementsByTagName('script')[0];
if (document.getElementById('facebook-jssdk')) return;
js = document.createElement('script'); js.id = 'facebook-jssdk';
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
};
window.xwpQueue.push(facebookSdk);
</script>
So now the function is not anonymous and self-executable anymore.
And we can notice a new line of code window.xwpQueue.push(facebookSdk);
This is our queue, an array that we must declare in the DOM before pushing the function inside.
So in the head, we need:
<script>
window.xwpQueue = [];
</script>
Script links
In the HTML, we will find script link to library or scripts like this.
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-77255286-1"></script>
We will modify the source to not launch the script, replacing the src
by an attribute: data-queue-src
And we can remove the async
attribute because our queue will call the script when the browser is available.
<script data-queue-src="https://www.googletagmanager.com/gtag/js?id=UA-77255286-1"></script>
Then in our js code, we will rewrite the script in a function to launch this link the head, then pushing this function in our queue.


--- layout: post title: Curriculum to Command Line subtitle: Why teachers make great coders, and what your team can learn from them date: 2019-09-19 categories: blog ---
This article is adapted from a talk I gave at JavaScript & Friends and Music City Code. You can find the slides from that talk here. You can also read this article on Medium.
Hello! My name is Christine Zekis, but I go by ‘Tine Zekis, which also happens to be my Twitter handle (tinezekis). My pronouns are she, her, hers. I’m a Software Engineer and a former High School Math Teacher.
Before we dig in, I’d like you to take a moment to consider this question: Who was your favorite teacher and why? This could be anyone from your preschool teacher to a college professor, or anything in between. And it doesn’t need to be from a traditional education setting…maybe it’s your Sunday school teacher, or a dance instructor, or a soccer coach.
Here’s what I came up with when I did this exercise:
My favorite teacher was my high school geometry teacher, Ms. Hardin.

While planning any lesson, most teachers will start with the learning objectives. What will students be able to do as a result of this lesson? A learning objective might be something like, “As a student in Ms. Zekis’s Algebra class, I can apply the quadratic formula to solve word problems involving trajectory.” Perhaps you’ve seen something similar in your work, only developers would call this a user story. A user story could be, “As a user with admin access, I can edit the names and email addresses of other users.”
So let’s talk about the learning objectives, or user stories, for this article:
Consider these various roles and decide what your goals will be for the remainder of your reading here. Try to focus on one or two of these objectives as we continue on.
After establishing the learning objectives, teachers will typically move on to the assessment. How do we know we met our objectives? Translating this to the world of coding isn’t too much of a stretch: this is when we would write our tests or specs. How do we know the code does what we say it does?
When I used to write math exams, I would start by making sure the students can solve a particular type of problem with an intuitive solution. For instance, the answer is a positive, whole number. Developers might call this the happy path. But I also want to make sure the students can solve problems with harder solutions. Maybe the answer is negative, or zero. Maybe it’s a very large number or a decimal. These are our edge cases.
And not until the assessment is done do I start to figure out what the students must do to get from where they are to where they will need to be to meet the objectives. In education, we call this Backward Planning, or Outcome-Based Education. In the tech industry, we might call this test-driven development (TDD).
Then, after all the planning, it’s time to actually teach the lesson. This is usually around the time that 90% of the plan gets thrown out the window. I’m going to call this part deployment. Throw it out there and wait for something to go wrong.
Various studies have estimated that teachers make anywhere from 1,000 to 3,000 decisions per day in their classrooms. I’ve seen 1,500 cited most often, so we’ll stick with that for the sake of argument. If we assume a day from 8:00am to 3:00pm with a 30-minute lunch break, that’s more than 230 decisions per hour, which is almost 4 per minute. So that’s a decision just about every 15 seconds. Teachers are constantly adjusting to the changing situations in their classrooms — moving closer to the student who seems distracted, pausing to assess understanding, switching gears if the class isn’t getting it or just seems restless.
I’m not sure about you, but that’s the kind of person I want troubleshooting support issues on my team. Plus, who better to have on an Agile team doing CI/CD? Our teams need to be nimble, able to pivot when we get new requirements or feedback from our users. And teachers are trained in that kind of flexibility and willingness to change directions.
One more transferable skill teachers can bring to development is their commitment to lifelong learning. Teachers are constantly growing, adjusting, and learning new things. I’m not going to change this one. This applies to coders without any updates. Technology is always changing, and to do well in this field, coders need to be constantly growing, adjusting, and learning new things.
Okay, let’s bring it back to our initial conversation. Think about that favorite teacher you remembered earlier, and consider this: Would your favorite teacher make a great coder? Why or why not?
Here are some things I came up with when I did this. Reasons a teacher might make a great coder:
Maybe your favorite teacher just gave really good hugs. Is that something that could translate to being an empathetic programmer?  How could that be useful on an engineering team?
And now we’ve come to the most important part of this article…
What does any of this have to do with you? Well, let’s revisit that last point about teachers and coders: they are both lifelong learners.
I hope we can all agree that, in order to excel in this field, we need to be willing and able to continue learning. Now, there are countless studies on how people learn, but I’m going to go way back to some early thinking on the topic. Aristotle once said, “Teaching is the highest form of understanding.” (Source) Since then, people have done tons of research on the matter, and this seems to actually be the case.
Psychologists call it the Protégé Effect. The Protégé Effect is the improved short-term and long-term comprehension one gets from preparing to teach and carrying out a lesson on a new concept. In other words, if you want to learn something, the best thing you can do is teach it.
Some of the statistically significant results of the effect include:
So with all of these benefits, it’s pretty compelling as an advantageous and effective way to learn new things.
There are multiple ways to experience these benefits. First, you can simply prepare to teach the concept. Organize the information, consider the answers to potential questions your audience might ask, etc. Planning the lesson alone has been shown to produce some form of the Protégé Effect.
You can also pretend to teach the topic. Go through the content out loud, as if you are teaching.
However, the strongest benefits of the Protégé effect will come if you actually teach a lesson on the topic.
There are also lots of ways to teach. One is to give a talk. You can give a lightning talk, host a lunch & learn, lead a meeting, or put together some other form of group presentation.
Not a fan of public speaking? No problem! Write it down instead. You can break down concepts in writing through a blog tutorial, or maybe some detailed documentation.
You can also teach in a one-on-one setting by taking on the role of mentor.
And I’m sure you can think of other ways to start teaching.  Just as long as you’re communicating information to an audience of some sort.
So, what can you do differently this coming Monday?
Over the next couple of days, try to think about what kinds of things you can teach. Maybe you want to talk about a fun side project you’re working on, or a new technology you’re considering for your team. Or you could talk about the problem you figured out most recently. I’ve found a good rule of thumb to be that if any problem ends up being more than a quick Google search or visit to StackOverflow to solve, write it down. It’s probably a good candidate for a lightning talk or a blog post.
Additionally, I’d like you to think about what else you can do in your current role to help create a culture of teaching and learning on your team. For instance, my team has a designated time for weekly 5-minute lightning talks, and people can just sign up. We also have bi-weekly tech demos where teams show off something they’ve been working on. Last month, our summer interns got the chance to present a feature they built, which was a great opportunity to showcase their work and answer questions about it.
And finally, I want you to think about what your favorite teacher would do. What’s something that made that teacher awesome? Could you do something similar in your own role?
My favorite teacher, Ms. Hardin, could always lighten the mood and create a positive environment by telling silly jokes. And I was the person on my team who helped keep up a tradition of starting every day with a Dad joke on Slack.
So what’s something you can do that your awesome teacher did?
Special thanks to all the people who made and released these awesome resources for free:


FITSIO Home
Next:
1. Introduction
Up:
CFITSIO
Previous:
CFITSIO
Contents
1. Introduction
1.1 A Brief Overview
1.2 Sources of FITS Software and Information
1.3 Acknowledgments
1.4 Legal Stuff
2. Creating the CFITSIO Library
2.1 Building the Library
2.1.1 Unix Systems
2.1.2 VMS
2.1.3 Windows PCs
2.1.4 Macintosh PCs
2.2 Testing the Library
2.3 Linking Programs with CFITSIO
2.4 Using CFITSIO in Multi-threaded Environments
2.5 Getting Started with CFITSIO
2.6 Example Program
3. A FITS Primer
4. Programming Guidelines
4.1 CFITSIO Definitions
4.2 Current Header Data Unit (CHDU)
4.3 Function Names and Variable Datatypes
4.4 Support for Unsigned Integers and Signed Bytes
4.5 Dealing with Character Strings
4.6 Implicit Data Type Conversion
4.7 Data Scaling
4.8 Support for IEEE Special Values
4.9 Error Status Values and the Error Message Stack
4.10 Variable-Length Arrays in Binary Tables
4.11 Multiple Access to the Same FITS File
4.12 When the Final Size of the FITS HDU is Unknown
4.13 CFITSIO Size Limitations
5. Basic CFITSIO Interface Routines
5.1 CFITSIO Error Status Routines
5.2 FITS File Access Routines
5.3 HDU Access Routines
5.4 Header Keyword Read/Write Routines
5.4.1 Keyword Reading Routines
5.4.2 Keyword Writing Routines
5.5 Primary Array or IMAGE Extension I/O Routines
5.6 Image Compression
5.7 ASCII and Binary Table Routines
5.7.1 Create New Table
5.7.2 Column Information Routines
5.7.3 Routines to Edit Rows or Columns
5.7.4 Read and Write Column Data Routines
5.7.5 Row Selection and Calculator Routines
5.7.6 Column Binning or Histogramming Routines
5.8 Utility Routines
5.8.1 File Checksum Routines
5.8.2 Date and Time Utility Routines
5.8.3 General Utility Routines
6. The CFITSIO Iterator Function
6.1 The Iterator Work Function
6.2 The Iterator Driver Function
6.3 Guidelines for Using the Iterator Function
6.4 Complete List of Iterator Routines
7. World Coordinate System Routines
7.1 Self-contained WCS Routines
8. Hierarchical Grouping Routines
8.1 Grouping Table Routines
8.2 Group Member Routines
9. Specialized CFITSIO Interface Routines
9.1 FITS File Access Routines
9.2 HDU Access Routines
9.3 Specialized Header Keyword Routines
9.3.1 Header Information Routines
9.3.2 Read and Write the Required Keywords
9.3.3 Write Keyword Routines
9.3.4 Insert Keyword Routines
9.3.5 Read Keyword Routines
9.3.6 Modify Keyword Routines
9.3.7 Update Keyword Routines
9.4 Define Data Scaling and Undefined Pixel Parameters
9.5 Specialized FITS Primary Array or IMAGE Extension I/O Routines
9.6 Specialized FITS ASCII and Binary Table Routines
9.6.1 General Column Routines
9.6.2 Low-Level Table Access Routines
9.6.3 Write Column Data Routines
9.6.4 Read Column Data Routines
10. Extended File Name Syntax
10.1 Overview
10.2 Filetype
10.2.1 Notes about HTTP proxy servers
10.2.2 Notes about the stream filetype driver
10.2.3 Notes about the gsiftp filetype
10.2.4 Notes about the root filetype
10.2.5 Notes about the shmem filetype:
10.3 Base Filename
10.4 Output File Name when Opening an Existing File
10.5 Template File Name when Creating a New File
10.6 Image Tile-Compression Specification
10.7 HDU Location Specification
10.8 Image Section
10.9 Image Transform Filters
10.10 Column and Keyword Filtering Specification
10.11 Row Filtering Specification
10.11.1 General Syntax
10.11.2 Bit Masks
10.11.3 Vector Columns
10.11.4 Good Time Interval Filtering
10.11.5 Spatial Region Filtering
10.11.6 Example Row Filters
10.12 Binning or Histogramming Specification
11. Template Files
11.1 Detailed Template Line Format
11.2 Auto-indexing of Keywords
11.3 Template Parser Directives
11.4 Formal Template Syntax
11.5 Errors
11.6 Examples
12. Local FITS Conventions
12.1 64-Bit Long Integers
12.2 Long String Keyword Values.
12.3 Arrays of Fixed-Length Strings in Binary Tables
12.4 Keyword Units Strings
12.5 HIERARCH Convention for Extended Keyword Names
12.6 Tile-Compressed Image Format
13. Optimizing Programs
13.1 How CFITSIO Manages Data I/O
13.2 Optimization Strategies
A. Index of Routines
B. Parameter Definitions
C. CFITSIO Error Status Codes


Use the options that are located under the Query tool node of the tree control to personalize the behavior of the Query tool.
Use the fields on the Query editor dialog to specify workspace preferences for the Query editor:
Use the fields displayed on the Colours dialog to select colours for items displayed in the Query tool:
Use the fields on the Results Grid dialog to specify display preferences for the results grid.
Result copy quoting - Use the Result copy quoting drop-down listbox to specify how fields in a result set should be quoted when copied to the clipboard from the result list. Please Note Disabling this option may prevent copying and pasting rows in the edit grid from functioning properly if the result set contains special characters like line breaks. Specify:
- None to omit quotes when copied.
- Strings to quote string values when copied (numeric columns will not be quoted).
- All to quote all copied values (regardless of data type).
Result copy quote character - Use the Result copy quote character drop-down listbox to select a character that will be used to quote the values when copied to the clipboard from the result list. It has no effect if Result copy quoting is set to None.
Result copy field separator - Use the Result copy field separator drop-down listbox to select a character that will be used to separate the fields copied to the clipboard from the result list.
Show NULL values as <NULL> - Check the box next to Show NULL values as <NULL> to cause NULL values to be shown as <NULL> in the Query Tool’s results grid. Note that this option does not affect data that is exported from the grid, only what is displayed.
Use the fields on the Query File dialog to specify UTF-8 details, and file saving preferences:
Use the fields on the Favourites dialog to specify a location for the Query tool’s Favourites file:
Use the fields on the Macros dialog to specify a location for the Query tool’s Macros file:
Use the fields on the History File dialog to specify user preferences for the Query tool’s history file:


|
Entry Accounts
The Book Explorer shows a number of Entry accounts, or if none is shown,
you simply click on the Entry account node with your right mouse button to
bring up the menu, then select the "Insert..." button
to create a new
entry account. This is typically a current account, or a savings account you
have with your bank, although you can also create an Entry account without an
external account, like one which lists all your expenses etc. Click on this
icon
to
see the entry screen for an Entry account. Note that you can enter your
opening balance, and the date this balance is relevant for. It is important to
note that running balance shown in the transactions section below will take
into account this date, so you should make sure it is earlier than the first
entry in the list of transactions, unless you know for sure this is the
balance for that date from the statement of your bank account. The blue title
at the top of your transaction list will display the opening balance and the
date this balance is relevant for, as a reminder that you should take this
into account when looking at the running balances for the transactions.
Transaction Editor
You can call up the editor for the row you select be either double clicking
on it or by pressing CONTROL+E. The editor should superimpose exactly on the
fields for that entry. The following columns can be entered:
- Invoice Date: the date the entry is recorded into your account. Note that this
date is different from the transaction (effective) date, which is the date the money
actually leaves or enters your account. You should use this column to put in
the date you put in your cheque, or the date when you actually withdraw
money from your bank account, even though this is not the date shown in your
bank statement
- Transaction Date: the date in which the transaction is actually effective.
This date should be used to reconcile against your bank statement
- Reference: free format field to denote a reference, say an invoice
number, a cheque number, or other free format text of your choice
- Description: the description of the transaction. This field is used in
reports and should be used to identify the transaction visually
- Account: use this field if you are transferring the amount between your
accounts. These internal transfers can be excluded from the business reports
for reporting purposes
- Debit: put the amount into this column if the amount is a payment
- Credit: put the amount into this column if the amount is a deposit or
income
- Balance: this field is automatically calculated as the running balance
and is not editable
- Allocation popup: popup up the Allocator to specify the ledger postings
you want to make. The Allocator has a dropdown of the pre-configured
Allocation Rules you can use to send percentages of your total amount into
different ledger accounts. This facility is useful if you are entering tax
related transactions
Popup Calendars can be shown for the first two date columns by clicking on
the calendar icons on the entry editor, or by using the key bindings
CONTROL+DOWN ARROW.
The Reference and Description fields have associated with them pop ups of
memorised entries which have been entered before. Also, when you tab out of
the description field, the application will attempt to fill in the amount the
the Allocations automatically from the last entry of the same description.
These features are designed to aid speedy data entry.
Allocator Popup
The Allocator can be brought up by either clicking on the allocation button
in the last column of the entry editor above, or you can use ALT+L key
binding. The Allocator shows a number of empty rows, each of which will
represent a percentage of your total amount, and the Ledger Account that
percentage will be debited or credited against. Built in Allocation Rules
should make it easy for you to enter tax related entries
The
first column controls the Ledger account the row will affect. Ledger accounts
do not have to be pre-created, as you can type in a new name and the ledger
will be created automatically. However, you will have to right click on the
Ledger Account subsequently and select Edit...
in
order to specify whether that Ledger Account falls into the category Income,
Expense, Asset or VAT
. The
categories are used for reporting purposes. |
Transcraft Home
My Accountant Home
Home
Legends
Overview
Entry Accounts
Ledger Accounts
Invoices
Reports
Scheduled Entries
Allocation Rules
Password Protection
Preferences
Year end operation
Ad hoc Reporting
Contact us
|


Kazi Amit Hasan
Currently, I am working as a Machine Learning Engineer at ACI Limited. I graduated from
Rajshahi University of Engineering & Technology with major in Computer
Science & Engineering. I have been in the research domain on Machine Learning, Health Analytics and Statistical Analysis for 2.5 year and my lastest
publication is:
"Identification and Analysis of Risk Factors of Lower Back Pain Using Machine Learning Approaches"
Mostly my interest is towards Data Science and different Machine Learning techniques. I mostly worked with
Python. Besides the university
curriculum, I am also engaged with different volunteering organizations to interact with
different people and develop my soft skills. I also have experience in working different web-based projects,
algorithmic sports programming. I have been solving problems in Codeforces, Hackerrank, etc. I have worked on
different projects and participated in different Hackathon competitions. I always
try to improve my software skills and knowledge base to fit with the latest technologies and market trends.
I also run a YouTube channel where I put videos on Data Science and try to implement my learnings from various
online
courses.
Besides, I always put a high priority on my fitness, so I’m passionate about fitness. I work out four or five
times a
week and keep a daily journal of my meals. This has helped me stay disciplined, learn what works for me and
where I can improve.