| 1 |
Riordan_2011 |
Culling-Induced Changes in Badger (Meles meles) Behaviour, Social Organisation and the Epidemiology of Bovine Tuberculosis |
Riordan, Philip; Delahay, Richard John; Cheeseman, Chris; Johnson, Paul James; Macdonald, David Whyte |
2011 |
2011-12-14 |
COMM-USE |
N |
PMC3237560 |
22194946.0 |
10.1371/journal.pone.0028904 |
cmiegygs |
0.783498 |
|
|
| 2 |
Tizzoni_2018 |
The impact of news exposure on collective attention in the United States during the 2016 Zika epidemic |
Michele Tizzoni; André Panisson; Daniela Paolotti; Ciro Cattuto |
2018 |
2018-06-17 |
BioRxiv |
N |
|
|
10.1101/346411 |
ricb63xp |
0.605606 |
|
Tizzoni_2020, Kim_L_2019 |
| 3 |
Tizzoni_2020 |
The impact of news exposure on collective attention in the United States during the 2016 Zika epidemic |
Tizzoni, Michele; Panisson, André; Paolotti, Daniela; Cattuto, Ciro |
2020 |
2020-03-12 |
COMM-USE |
N |
PMC7067377 |
32163409.0 |
10.1371/journal.pcbi.1007633 |
9amampof |
0.565046 |
|
Tizzoni_2018, Kim_L_2019 |
| 4 |
Giles_2016 |
Models of Eucalypt phenology predict bat population flux |
Giles, John R.; Plowright, Raina K.; Eby, Peggy; Peel, Alison J.; McCallum, Hamish |
2016 |
2016-09-21 |
COMM-USE |
N |
PMC5115174 |
27891217.0 |
10.1002/ece3.2382 |
wl1iibld |
0.527304 |
|
|
| 5 |
Rana_2013 |
Paradox of enrichment: A fractional differential approach with memory |
Rana, Sourav; Bhattacharya, Sabyasachi; Pal, Joydeep; N’Guérékata, Gaston M.; Chattopadhyay, Joydev |
2013 |
2013-09-01 |
PMC |
N |
PMC7127129 |
|
10.1016/j.physa.2013.03.061 |
amqs5lb6 |
0.484608 |
Bocharov_2018, Krause_2007, Leach_2010, Bifolchi_2013, Chowell_2017 |
Getz_2019, Samanta_2020 |
| 6 |
Bucini_2019 |
Risk Attitudes Affect Livestock Biosecurity Decisions With Ramifications for Disease Control in a Simulated Production System |
Bucini, Gabriela; Merrill, Scott C.; Clark, Eric; Moegenburg, Susan M.; Zia, Asim; Koliba, Christopher J.; Wiltshire, Serge; Trinity, Luke; Smith, Julia M. |
2019 |
2019-06-25 |
None |
N |
PMC6604760 |
31294037.0 |
10.3389/fvets.2019.00196 |
obzi61sa |
0.478467 |
|
Akhmetzhanov_2019 |
| 7 |
Ripperger_2020 |
Sickness behaviour reduces network centrality in wild vampire bats |
Simon P Ripperger; Sebastian Stockmaier; Gerald G Carter |
2020 |
2020-03-31 |
BioRxiv |
N |
|
|
10.1101/2<IP_ADDRESS>545 |
arwbvyul |
0.478288 |
Pacheco_2017, Welch_2011 |
Gómez_2017 |
| 8 |
Qi_J_2009 |
Dynamic modeling of cellular response to DNA damage based on p53 stress response networks |
Qi, Jinpeng; Ding, Yongsheng; Shao, Shihuang |
2009 |
2009-10-10 |
PMC |
N |
PMC7128557 |
|
10.1016/j.pnsc.2009.03.008 |
jz4zb8qp |
0.458397 |
|
|
| 9 |
Fountain‐Jones_2019 |
Endemic infection can shape exposure to novel pathogens: Pathogen co‐occurrence networks in the Serengeti lions |
Fountain‐Jones, Nicholas M.; Packer, Craig; Jacquot, Maude; Blanchet, F. Guillaume; Terio, Karen; Craft, Meggan E. |
2019 |
2019-03-12 |
PMC |
N |
PMC7163671 |
30861289.0 |
10.1111/ele.13250 |
vsl5k392 |
0.455428 |
|
|
| 10 |
VanderWaal_2018 |
Role of animal movement and indirect contact among farms in transmission of porcine epidemic diarrhea virus |
VanderWaal, Kimberly; Perez, Andres; Torremorrell, Montse; Morrison, Robert M.; Craft, Meggan |
2018 |
2018-09-30 |
PMC |
N |
PMC7104984 |
29673815.0 |
10.1016/j.epidem.2018.04.001 |
8feuijg8 |
0.427435 |
Li_C_2018 |
|
| 11 |
Getz_2019 |
A quantitative narrative on movement, disease and patch exploitation in nesting agent groups |
Wayne M. Getz; Richard Salter; Krti Tallam |
2019 |
2019-10-03 |
BioRxiv |
N |
|
|
10.1101/791400 |
5gzgfudh |
0.392158 |
Bocharov_2018 |
|
| 12 |
Lepzelter_2010 |
Oscillation, cooperativity, and intermediates in the self-repressing gene |
Lepzelter, David; Feng, Haidong; Wang, Jin |
2010 |
2010-04-26 |
PMC |
N |
PMC7094561 |
|
10.1016/j.cplett.2010.03.029 |
11esz6lk |
0.391161 |
Leach_2010, Welch_2011, Bifolchi_2013 |
|
| 13 |
Shen_2011 |
The nonparametric maximum likelihood estimator for middle-censored data |
Shen, Pao-Sheng |
2011 |
2011-07-31 |
PMC |
N |
PMC7126554 |
|
10.1016/j.jspi.2011.02.014 |
i12de6f2 |
0.390340 |
Höhle_2007, Zhao_2013, Pekalp_2019 |
Zhao_2013, Soubeyrand_2007, Kenah_2012 |
| 14 |
Chen_2015 |
The influence of cold weather on the usage of emergency link calls: a case study in Hong Kong |
Chen, Feng; Yip, Paul SF |
2015 |
2015-08-13 |
COMM-USE |
N |
PMC4654920 |
26590158.0 |
10.1186/s12911-015-0191-1 |
dqwzqyd4 |
0.384254 |
Zhao_2013 |
|
| 15 |
Fouchet_2009 |
Using Dynamic Stochastic Modelling to Estimate Population Risk Factors in Infectious Disease: The Example of FIV in 15 Cat Populations |
Fouchet, David; Leblanc, Guillaume; Sauvage, Frank; Guiserix, Micheline; Poulet, Hervé; Pontier, Dominique |
2009 |
2009-10-16 |
COMM-USE |
N |
PMC2770169 |
19888418.0 |
10.1371/journal.pone.0007377 |
nn09hh29 |
0.350897 |
Li_C_2018, O'Dea_2010, Welch_2011, Giardina_2017 |
Akhmetzhanov_2019 |
| 16 |
Fountain-Jones_2019 |
How to make more from exposure data? An integrated machine learning pipeline to predict pathogen exposure |
Nicholas Fountain-Jones; Gustavo Machado; Scott Carver; Craig Packer; Mariana Mendoza; Meggan E Craft |
2019 |
2019-03-06 |
BioRxiv |
N |
|
|
10.1101/569012 |
jc5c87b9 |
0.339188 |
Bocharov_2018, Leach_2010, Bifolchi_2013 |
Yin_W_2015, Bucini_2019 |
| 17 |
Blanchong_2006 |
TB-infected deer are more closely related than non-infected deer |
Blanchong, Julie A; Scribner, Kim T; Kravchenko, Alexandra N; Winterstein, Scott R |
2006 |
2006-10-24 |
PMC |
N |
PMC2373800 |
17443977.0 |
10.1098/rsbl.2006.0547 |
bynmuc3g |
0.338390 |
|
|
| 18 |
Garvey_2020 |
The rippled newsvendor: A new inventory framework for modeling supply chain risk severity in the presence of risk propagation |
Garvey, Myles D.; Carnovale, Steven |
2020 |
2020-10-31 |
PMC |
N |
|
|
10.1016/j.ijpe.2020.107752 |
28ytcg9c |
0.333894 |
Bocharov_2018, Bifolchi_2013 |
|
| 19 |
Verelst_2016 |
Behavioural change models for infectious disease transmission: a systematic review (2010–2015) |
Verelst, Frederik; Willem, Lander; Beutels, Philippe |
2016 |
2016-12-23 |
COMM-USE |
N |
PMC5221530 |
28003528.0 |
10.1098/rsif.2016.0820 |
de0y745b |
0.333880 |
Bocharov_2018, Chowell_2017 |
Safi_2011 |
| 20 |
Gardner_2019 |
Force of infection of Middle East respiratory syndrome in dromedary camels in Kenya |
Gardner, E. G.; Kiambi, S.; Sitawa, R.; Kelton, D.; Kimutai, J.; Poljak, Z.; Tadesse, Z.; Von Dobschuetz, S.; Wiersma, L.; Greer, A. L. |
2019 |
2019-09-24 |
COMM-USE |
N |
PMC6805735 |
31547888.0 |
10.1017/s0950268819001663 |
9wzqc6w0 |
0.326120 |
|
|
| 21 |
O’Dea_2015 |
Using heterogeneity in the population structure of U.S. swine farms to compare transmission models for porcine epidemic diarrhoea |
Eamon B. O’Dea; Harry Snelson; Shweta Bansal |
2015 |
2015-03-27 |
BioRxiv |
N |
|
|
10.1101/017178 |
1xxrnpg3 |
0.313105 |
Li_C_2018, O'Dea_2010, Giardina_2017, Welch_2011, Bocharov_2018 |
|
| 22 |
Pepin_2017 |
Inferring infection hazard in wildlife populations by linking data across individual and population scales |
Pepin, Kim M.; Kay, Shannon L.; Golas, Ben D.; Shriner, Susan S.; Gilbert, Amy T.; Miller, Ryan S.; Graham, Andrea L.; Riley, Steven; Cross, Paul C.; Samuel, Michael D.; Hooten, Mevin B.; Hoeting, Jennifer A.; Lloyd‐Smith, James O.; Webb, Colleen T.; Buhnerkempe, Michael G. |
2017 |
2017-01-16 |
None |
N |
PMC7163542 |
28090753.0 |
10.1111/ele.12732 |
havpodzk |
0.313029 |
Bifolchi_2013, Giardina_2017 |
|


|
|
Hero lets you...
|
Notify |
|
|
Cras mattis consecutur purus sit fermentum
|
|
Learn More
|
|
Share |
|
|
Cras mattis consecutur purus sit fermentum
|
|
Learn More
|
|
Connect |
|
|
Cras mattis consecutur purus sit fermentum
|
|
Learn More
|
|
|
|
World's most advanced App
with High-Tech solutions
|
|
The Strong museum has collected more than 55,000 video games
and related artifacts from the history of gaming.
|
|
|
|
The Strong museum has collected more than 55,000 video games
and related artifacts from the history of gaming.
|
|
|
|
|
|
|
Features All Joined Together in One App
|
|
|
Sync
|
|
Computer manufacturer Lenovo is getting flak.
|
|
Learn More
|
|
|
Share
|
|
Computer manufacturer Lenovo is getting flak.
|
|
Learn More
|
|
|
Stats
|
|
Computer manufacturer Lenovo is getting flak.
|
|
Learn More
|
|
|
|
|
Responsive Layout
|
|
|
Tanjin is one of nearly 2,000 people to have landed on Italy's southermost.
|
|
|
Retina Ready
|
|
|
Tanjin is one of nearly 2,000 people to have landed on Italy's southermost.
|
|
|
|
|
Various Skins
|
|
|
Tanjin is one of nearly 2,000 people to have landed on Italy's southermost.
|
|
|
Great Performance
|
|
|
Tanjin is one of nearly 2,000 people to have landed on Italy's southermost.
|
|
|
|
|
User Friendly Menus
|
|
|
Tanjin is one of nearly 2,000 people to have landed on Italy's southermost.
|
|
|
Social Share
|
|
|
Tanjin is one of nearly 2,000 people to have landed on Italy's southermost.
|
|
|
|
Interested in our App?
Muriel Bowser's administration says move is unrelated to
charges that encryption caused failures in Metro.
request a quote
|
|
|
|
|


Data Structures | |
| struct | usb_setup_req |
| A USB Device SETUP request. More... | |
| struct | usb_device_descriptor |
| Standard USB device descriptor. More... | |
| struct | usb_device_qualifier_descriptor |
| Standard USB device qualifier descriptor. More... | |
| struct | usb_configuration_descriptor |
| Standard USB configuration descriptor. More... | |
| struct | usb_interface_descriptor |
| Standard USB interface descriptor. More... | |
| struct | usb_endpoint_descriptor |
| Standard USB endpoint descriptor. More... | |
| struct | usb_string_descriptor |
| A standard USB string descriptor. More... | |
Modules | |
| USB Vendor, Product and Class Identifiers | |
| Mass Storage Class Definitions | |
Defines | |
| #define | USB_EP_ADDR_MASK 0x0f |
| Mask selecting the index part of an endpoint address. | |
| #define | USB_DIR_IN 0x80 |
| Endpoint transfer direction is IN. | |
| #define | USB_DIR_OUT 0x00 |
| Endpoint transfer direction is OUT. | |
| #define | USB_MAX_DESC_LEN 255 |
| Maximum length in bytes of a USB descriptor. | |
| #define | usb_setup_is_in(req) (!!((req)->bmRequestType & USB_DIR_IN)) |
| Return true if the setup request req indicates IN data transfer. | |
| #define | usb_setup_is_out(req) (!((req)->bmRequestType & USB_DIR_IN)) |
| Return true if the setup request req indicates OUT data transfer. | |
| #define | usb_setup_type(req) (((req)->bmRequestType >> 5) & 3) |
| Return the type of the SETUP request req. | |
| #define | usb_setup_recipient(req) ((req)->bmRequestType & 0x1f) |
| Return the recipient of the SETUP request req. | |
| #define | USB_CONFIG_ATTR_MUST_SET (1U << 7) |
| Must always be set. | |
| #define | USB_CONFIG_ATTR_SELF_POWERED (1U << 6) |
| Self-powered. | |
| #define | USB_CONFIG_ATTR_REMOTE_WAKEUP (1U << 5) |
| Supports remote wakeup. | |
| #define | USB_CONFIG_MAX_POWER(ma) (((ma) + 1) / 2) |
| Max power in mA. | |
| #define | usb_ep_index(desc) ((desc)->bEndpointAddress & USB_EP_ADDR_MASK) |
| Return the index of the endpoint represented by desc. | |
| #define | usb_ep_is_in(desc) (!!((desc)->bEndpointAddress & USB_DIR_IN)) |
| Return true if desc represents an IN endpoint. | |
| #define | usb_ep_is_out(desc) (!((desc)->bEndpointAddress & USB_DIR_IN)) |
| Return true if desc represents an OUT endpoint. | |
| #define | usb_ep_xfer(desc) ((desc)->bmAttributes & 0x03) |
| Return the transfer type of the endpoint represented by desc. | |
Enumerations | |
| enum | usb_device_state { USB_STATE_ATTACHED = 0, USB_STATE_POWERED, USB_STATE_DEFAULT, USB_STATE_ADDRESS, USB_STATE_CONFIGURED, USB_STATE_SUSPENDED = 0x80 } |
USB device state. More... | |
| enum | usb_device_speed { USB_SPEED_UNKNOWN = 0, USB_SPEED_LOW, USB_SPEED_FULL, USB_SPEED_HIGH } |
USB device speed. More... | |
| enum | usb_reqtype { USB_REQTYPE_STANDARD = 0, USB_REQTYPE_CLASS = 1, USB_REQTYPE_VENDOR = 2 } |
USB request types (bmRequestType). More... | |
| enum | usb_recipient |
USB recipient codes (bmRequestType). More... | |
| enum | usb_reqid |
Standard USB requests (bRequest). More... | |
| enum | usb_device_feature { USB_DEV_STATUS_SELF_POWERED = 0, USB_DEV_FEATURE_REMOTE_WAKEUP = 1, USB_DEV_FEATURE_TEST_MODE = 2 } |
Standard USB device feature/status flags. More... | |
| enum | usb_endpoint_feature |
Standard USB endpoint feature/status flags. More... | |
| enum | usb_test_mode_selector |
Standard USB Test Mode Selectors. More... | |
| enum | usb_descriptor_type |
Standard USB descriptor types. More... | |
| enum | usb_ep_xfer_type |
Standard USB endpoint transfer types. More... | |
| enum | usb_langid { USB_LANGID_EN_US = 0x0406 } |
Standard USB language IDs for string descriptors. More... |
This module defines constants and data structures taken from the USB 2.0 specification.
| #define USB_CONFIG_ATTR_MUST_SET (1U << 7) |
Must always be set.
Definition at line 315 of file usb_protocol.h.
| #define USB_CONFIG_ATTR_REMOTE_WAKEUP (1U << 5) |
Supports remote wakeup.
Definition at line 317 of file usb_protocol.h.
| #define USB_CONFIG_ATTR_SELF_POWERED (1U << 6) |
Self-powered.
Definition at line 316 of file usb_protocol.h.
| #define USB_CONFIG_MAX_POWER | ( | ma | ) | (((ma) + 1) / 2) |
Max power in mA.
Definition at line 318 of file usb_protocol.h.
| #define USB_DIR_IN 0x80 |
Endpoint transfer direction is IN.
Definition at line 216 of file usb_protocol.h.
Referenced by at90usb_ep_alloc(), and at90usb_ep_enable().
| #define USB_DIR_OUT 0x00 |
Endpoint transfer direction is OUT.
Definition at line 220 of file usb_protocol.h.
| #define USB_EP_ADDR_MASK 0x0f |
Mask selecting the index part of an endpoint address.
Definition at line 212 of file usb_protocol.h.
Referenced by at90usb_ep_alloc(), at90usb_ep_enable(), and udc_lib_standard_request().
| #define usb_ep_index | ( | desc | ) | ((desc)->bEndpointAddress & USB_EP_ADDR_MASK) |
Return the index of the endpoint represented by desc.
Definition at line 348 of file usb_protocol.h.
| #define usb_ep_is_in | ( | desc | ) | (!!((desc)->bEndpointAddress & USB_DIR_IN)) |
Return true if desc represents an IN endpoint.
Definition at line 350 of file usb_protocol.h.
| #define usb_ep_is_out | ( | desc | ) | (!((desc)->bEndpointAddress & USB_DIR_IN)) |
Return true if desc represents an OUT endpoint.
Definition at line 352 of file usb_protocol.h.
| #define usb_ep_xfer | ( | desc | ) | ((desc)->bmAttributes & 0x03) |
Return the transfer type of the endpoint represented by desc.
Definition at line 354 of file usb_protocol.h.
| #define USB_MAX_DESC_LEN 255 |
Maximum length in bytes of a USB descriptor.
The maximum length of a USB descriptor is limited by the 8-bit bLength field.
Definition at line 228 of file usb_protocol.h.
| #define usb_setup_is_in | ( | req | ) | (!!((req)->bmRequestType & USB_DIR_IN)) |
Return true if the setup request req indicates IN data transfer.
Definition at line 250 of file usb_protocol.h.
Referenced by udc_lib_standard_request().
| #define usb_setup_is_out | ( | req | ) | (!((req)->bmRequestType & USB_DIR_IN)) |
Return true if the setup request req indicates OUT data transfer.
Definition at line 252 of file usb_protocol.h.
Referenced by udc_lib_standard_request().
| #define usb_setup_recipient | ( | req | ) | ((req)->bmRequestType & 0x1f) |
Return the recipient of the SETUP request req.
Definition at line 256 of file usb_protocol.h.
Referenced by udc_lib_standard_request().
| #define usb_setup_type | ( | req | ) | (((req)->bmRequestType >> 5) & 3) |
Return the type of the SETUP request req.
Definition at line 254 of file usb_protocol.h.
| enum usb_descriptor_type |
Standard USB descriptor types.
Definition at line 181 of file usb_protocol.h.
| enum usb_device_feature |
Standard USB device feature/status flags.
| USB_DEV_STATUS_SELF_POWERED |
Does not draw power from bus. |
| USB_DEV_FEATURE_REMOTE_WAKEUP |
Remote wakeup enabled. |
| USB_DEV_FEATURE_TEST_MODE |
USB test mode. |
Definition at line 154 of file usb_protocol.h.
| enum usb_device_speed |
USB device speed.
USB_SPEED_UNKNOWN indicates that the device has not yet seen a reset (i.e. it is in the POWERED or the ATTACHED state, possibly suspended.)
| USB_SPEED_UNKNOWN |
Speed not known yet. |
| USB_SPEED_LOW |
Low speed (1.5 Mb/s). |
| USB_SPEED_FULL |
Full speed (12 Mb/s). |
| USB_SPEED_HIGH |
High speed (480 Mb/s). |
Definition at line 92 of file usb_protocol.h.
| enum usb_device_state |
USB device state.
See the device state diagram in the USB 2.0 specification for more information.
Definition at line 62 of file usb_protocol.h.
| enum usb_endpoint_feature |
Standard USB endpoint feature/status flags.
Definition at line 163 of file usb_protocol.h.
| enum usb_ep_xfer_type |
Standard USB endpoint transfer types.
Definition at line 195 of file usb_protocol.h.
| enum usb_langid |
Standard USB language IDs for string descriptors.
Definition at line 205 of file usb_protocol.h.
| enum usb_recipient |
USB recipient codes (bmRequestType).
Definition at line 115 of file usb_protocol.h.
| enum usb_reqid |
Standard USB requests (bRequest).
Definition at line 130 of file usb_protocol.h.
| enum usb_reqtype |
USB request types (bmRequestType).
| USB_REQTYPE_STANDARD |
Request defined by USB specification. |
| USB_REQTYPE_CLASS |
Class-specific request. |
| USB_REQTYPE_VENDOR |
Vendor-specific request. |
Definition at line 102 of file usb_protocol.h.
Standard USB Test Mode Selectors.
Definition at line 170 of file usb_protocol.h.


--- layout: archive title: Zulip Chat Archive permalink: /stream/113488-general/topic/nested.20exception.3A.20no.20goals.html ---
Anyone ever seen this before:
The nested exception contains the failure state for the decreasing tactic. nested exception message: tactic failed, there are no goals to be solved state: no goals
Does it just mean that dec_tac
in using_well_founded
failed because a tactic inside expected goals when there weren't any, e.g. with an appeal to refl
at the end when everything is gone already?
Hmm... I was getting this without an explicit using_well_founded
!
Anyone, I seem to have found a workaround.
I would suspect that the culprit is something like the tactic.dunfold_target
s in init.meta.well_founded_tactics
(which run by default)
Probably there should be some try
s wrapping some of that code
ah... I had just found that same file. :-)
But this is in core :-(
So sad.
indeed
3.5...
I half typed a comment about that but thought it was a bit sassy
Ok, I've addressed this problem in #1419. It comes at a slight cost: having to add using_well_founded { dec_tac := well_founded_tactics.default_dec_tac' }
to half a dozen proofs across mathlib, to used the patched version of default_dec_tac
.
I think it's worth it however, to let us make simp
better at inequalities.
@Scott Morrison I think you could do better with the syntax by just defining a structure somewhere with a short name (e.g. wf_tacs
) and type well_founded_tactics
, equal to { dec_tac := well_founded_tactics.default_dec_tac' }
.
Then using_well_founded wf_tacs
works. Depending on how much of a hack using_well_founded
is in the parser (probably a lot), we could even define notation for that; maybe using_well_founded'
Yeah, I have no idea how to do the notation thing, probably not possible.
Actually, I think with some work I could make it work if you wrote recdef
instead of def
for the recursive definition, but I don't know a way to make using_well_founded wf_tacs
shorter.
Also, we should put default_dec_tac'
in lean 3.5.0
right away
What is the procedure for adding patched tactics in 3.5.0? We both replace the old broken tactic, and add the primed version as an alias for backwards compatibility?
Thanks for this syntax suggestion, I've added it to the PR now.
I think maybe no-one has patched a tactic yet?
Or just, maybe they have fixed bugs like stuff crashing all of lean if you use it wrong.---not a useful enough fix to warrant a copy to mathlib.
Last updated: Apr 24 2020 at 19:02 UTC


Recipe 16.8. Checking Whether a String Has Balanced ParenthesesCredit: Peter Cogolo ProblemYou need to check whether a certain string has balanced parentheses, but regular expressions are not powerful enough for this task. SolutionWe want a "true" parser to check a string for balanced parentheses, since parsing theory proves that a regular expression is not sufficient. Choosing one out of the many Python parser generators, we'll use David Beazley's classic but evergreen PLY: # define token names, and a regular expression per each token tokens = 'OPEN_PAREN', 'CLOS_PAREN', 'OTHR_CHARS' t_OPEN_PAREN = r'\(' t_CLOS_PAREN = r'\)' t_OTHR_CHARS = r'[^( )]+' # RE meaning: one or more non-parentheses def t_error(t): t.skip(1) # make the lexer (AKA tokenizer) import lex lexer = lex.lex(optimize=1) # define syntax action-functions, with syntax rules in docstrings def p_balanced(p): ''' balanced : balanced OPEN_PAREN balanced CLOS_PAREN balanced | OTHR_CHARS | ''' if len(p) == 1: p[0] = '' elif len(p) == 2: p[0] = p[1] else: p[0] = p[1]+p[2]+p[3]+p[4]+p[5] def p_error(p): pass # make the parser (AKA scanner) import yacc parser = yacc.yacc( ) def has_balanced_parentheses(s): if not s: return True result = parser.parse(s, lexer=lexer) return s == result DiscussionHere's an example of use of this recipe's code: >> s = 'ba(be, bi(bo, bu))' >> print s, is_balanced(s) ba(be, bi(bo, bu)) True >> s = 'ba(be, bi(bo), bu))' >> print s, is_balanced(s) ba(be, bi(bo), bu)) False The first string has balanced parentheses, but the second one has an extra closed parenthesis; therefore, its parentheses are not balanced. "How do I check a string for balanced parentheses?" is a frequently asked question about regular expressions. Programmers without a computer science background are often surprised to hear that regular expressions just aren't powerful enough for this apparently simple task and a more complete form of grammar is required. (Perl's regular expressions plus arbitrary embedded expressions kitchen sink does sufficewhich just proves they aren't anywhere near "regular" expressions any more!) For this very simplified parsing problem we're presenting, any real parser is overkilljust loop over the string's characters, keeping a running count of the number of open and yet unclosed parentheses encountered at this point, and return False if the running count ever goes negative or doesn't go back down to exactly 0 at the end: def has_bal_par(s): op = 0 for c in s: if c=='(': op += 1 elif c==')': if op == 0: return False op -= 1 return op == 0 However, using a parser when you need to parse is still a better idea, in general, than hacking up special-purpose code such as this has_bal_par function. As soon as the problem gets extended a bit (and problems invariably do grow, in real life, in often unpredictable directions), a real parser can grow gracefully and proportionally with the problem, while ad hoc code often must be thrown away and completely rewritten. All over the web, you can find oodles of Python packages that are suitable for lexing and parsing tasks. My favorite, out of all of them, is still good old PLY, David Beazley's Python Lexx and Yacc, which reproduces the familiar structure of Unix commands lexx and yacc while taking advantage of Python's extra power when compared to the C language that those Unix commands support. You can find PLY at http://systems.cs.uchicago.edu/ply/. PLY is a pure Python package: download it (as a .tgz compressed archive file), decompress and unarchive it (all reasonable archiving tools now support this subtask on all platforms), open a command shell, cd into the directory into which you unarchived PLY, and run the usual python setup.py install, with the proper privileges to be able to write into your Python installation's site-packages directory (which privileges those are depends on how you installed Python, and on what platform you're running). Briefly, install it just as you would install any other pure Python package. As you can see from this recipe, PLY is quite easy to use, if you know even just the fundamentals of lexing and parsing. First, you define your grammar's tokensmake a tuple or list of all their names (conventionally uppercase) bound to name tokens at your module's top level, define for each token a regular expression bound to name t_token_name (again at the module's top level), import lex, and call lex.lex to build your tokenizer (lexer). Then, define your grammar's action functions (each of them carries the relevant syntax ruleproductionin its docstring in BNF, Backus-Naur Form), import yacc, and call yacc.yacc to build your parser (scanner). To parse any string, call the parse method of your parser with the string as an argument. All the action is in your grammar's action functions, as their name implies. Each action function receives as its single argument p a list of production elements corresponding to the production that has been matched to invoke that function; the action function's job is to put into p[0] whatever you need as "the result" of that syntax rule getting matched. In this recipe, we use as results the very strings we have been matching, so that function is_balanced just needs to check whether the whole string is matched by the parse operation. When you run this script the first time, you will see a warning about a shift/reduce conflict. Don't worry: as any old hand at yacc can tell you, that's the yacc equivalent of a rite of passage. If you want to understand that message in depth, and maybe (if you're an ambitious person) even do something about it, open with your favorite browser the doc/ply.html file in the directory in which you unpacked PLY. That file contains a rather thorough documentation of PLY. As that file suggests, continue by studying the contents of the examples directory and then read a textbook about compilersI suggest Dick Grune and Ceriel J.H. Jacobs, "Parsing Techniques, a Practical Guide." The first edition, at the time of this writing, is freely available for download as a PDF file from http://www.cs.vu.nl/~dick/PTAPG.html, and a second edition should be available in technical bookstores around the middle of 2005. See AlsoPLY web page at http://systems.cs.uchicago.edu/ply/; Dick Grune and Ceriel J.H. Jacobs, "Parsing Techniques, a Practical Guide," a PDF, downloadable from http://www.cs.vu.nl/~dick/PTAPG.html. |


Key size
1024
2048
3072
4096
the key-size in bits defines the strength of the public/private key pair.
Subject
Enter the concatenated Subject string
Application URI
DNS names
enter a list of dns name, separated with semi-columns (;)
IP Address list
enter a list of ip addresses i.e. 123.456.789.012, separated with semi-columns (;)
Generate Private key and Self-Signed Certificate
PrivateKey
Certificate
Info
Verification


If you click the compile script icon this will display the script for your experiment in the Coder window.
This can be used for debugging experiments, entering small amounts of code and learning a bit about writing scripts amongst other things.
The code is fully commented and so this can be an excellent introduction to writing your own code.


1968 – Non-Proliferation Treaty
Signed in 1968, and entered into force in 1970, the Non-Proliferation Treaty is designed to prevent the proliferation of nuclear weapons, to encourage the world to reach total disarmament, and promote the peaceful use of nuclear technology. There are 191 countries that signed it. North Korea, Israel, Pakistan, and India did not sign or withdrew from it. The International Atomic Energy Agency conducts inspections to verify that the signatories are in compliance.


Perform Computations:
Mode
Result:
Range
Result:
Standard deviation
Result:
Variance
Result:
No Idea How Solved it :(


|
DigitalOwl
|
Class wrap up all Repositories make easier to use in Services More...
Public Member Functions | |
| void | SaveChanges () |
| Sync save method More... | |
| Task< int > | SaveChangesAsync () |
| Async save method More... | |
Properties | |
| IPollRepository | PollRepository [get] |
| Poll repository access point. More... | |
| IPollQuestionRepository | PollQuestionRepository [get] |
| Poll question access point. More... | |
| IPollAnswerRepository | PollAnswerRepository [get] |
| Poll question access point. More... | |
| IGroupRepository | GroupRepository [get] |
| Group repository access point. More... | |
| IGroupMemberRepository | GroupMemberRepository [get] |
| GroupMember repository access point. More... | |
| IGroupMessageRepository | GroupMessageRepository [get] |
| GroupMember repository access point. More... | |
| IGroupRoleRepository | GroupRoleRepository [get] |
| GroupRole repository access point. More... | |
| IGroupPoliceRepository | GroupPoliceRepository [get] |
| GroupPolice repository access point. More... | |
Class wrap up all Repositories make easier to use in Services
Definition at line 9 of file IUnitOfWork.cs.
| void DigitalOwl.Repository.Interface.Base.IUnitOfWork.SaveChanges | ( | ) |
Sync save method
Implemented in DigitalOwl.Repository.Repositories.Base.UnitOfWork.
| Task<int> DigitalOwl.Repository.Interface.Base.IUnitOfWork.SaveChangesAsync | ( | ) |
|
get |
GroupMember repository access point.
Definition at line 70 of file IUnitOfWork.cs.
|
get |
GroupMember repository access point.
Definition at line 79 of file IUnitOfWork.cs.
|
get |
GroupPolice repository access point.
Definition at line 97 of file IUnitOfWork.cs.
|
get |
Group repository access point.
Definition at line 61 of file IUnitOfWork.cs.
|
get |
GroupRole repository access point.
Definition at line 88 of file IUnitOfWork.cs.
|
get |
Poll question access point.
Definition at line 47 of file IUnitOfWork.cs.
|
get |
Poll question access point.
Definition at line 38 of file IUnitOfWork.cs.
|
get |
Poll repository access point.
Definition at line 29 of file IUnitOfWork.cs.


UpSet is an interactive, web based visualization technique designed to analyze set-based data. UpSet visualizes both, set intersections and their properties, and the items (elements) in the dataset.
Understanding relationships between sets is an important analysis task that has received widespread attention in the visualization community. The major challenge in this context is the combinatorial explosion of the number of set intersections if the number of sets exceeds a trivial threshold. To address this, we introduce UpSet, a novel visualization technique for the quantitative analysis of sets, their intersections, and aggregates of intersections.
UpSet is focused on creating task-driven aggregates, communicating the size and properties of aggregates and intersections, and a duality between the visualization of the elements in a dataset and their set membership. UpSet visualizes set intersections in a matrix layout and introduces aggregates based on groupings and queries. The matrix layout enables the effective representation of associated data, such as the number of elements in the aggregates and intersections, as well as additional summary statistics derived from subset or element attributes.
Sorting according to various measures enables a task-driven analysis of relevant intersections and aggregates. The elements represented in the sets and their associated attributes are visualized in a separate view. Queries based on containment in specific intersections, aggregates or driven by attribute filters are propagated between both views. UpSet also introduces several advanced visual encodings and interaction methods to overcome the problems of varying scales and to address scalability.
Alexander Lex, Nils Gehlenborg, Hendrik Strobelt, Romain Vuillemot, and Hanspeter
Pfister
UpSet: Visualization of Intersecting Sets
To appear in IEEE Transactions on Visualization and Computer Graphics (InfoVis '14).
Alexander Lex, Nils Gehlenborg
Points of view: Sets and intersections
Nature Methods, vol. 11, no. 8, pp. 779, 2014.
A very short introduction to UpSet.
A five minute demonstration of the UpSet concept and its features.
You can contact us, via<EMAIL_ADDRESS>If you found a bug, you can directly report it at GitHub project site.
Can I upload my own dataset to analyze in UpSet?
Yes, you can use upset with data that can be accessed over the Internet. Go here to learn hwo to do it.
Can I download UpSet and use it locally for my confidential data? Yes, you can download upset from the source code repository, which also provides some instructions on local deployment.
Do you provide documentation for UpSet? Yes, through our Wiki. Right now it only covers data import, but more will follow soon. Don't forget to watch the videos! They give you a good idea on how things are done.
Which Browsers are supported?
We currently test only on the latest version of Google Chrome. Other recent browsers might work too.
We wish to thank our collaborators, Anne Mai Wassermann, Soohyun Lee, Michele Coscia and Frank Neffke for their time and expertise. We also thank Bilal Alsallakh, Silvia Miksch and the whole Radial Sets team for providing feedback and datasets.
Explore other set visualization techniques at http://setviz.net/
UpSet is supported in part by the Austrian Science Fund (J 3437-N15), the Air Force Research Laboratory and DARPA grant FA8750-12-C-0300 and the United States NIH/National Human Genome Research Institute (K99 HG007583).
UpSet uses the D3 library for visualization. This website is based on Nils Gehlenborg's and Samuel Gratzl's design.
The music in the preview video is by Roulet, "I Can Make This", licensed under creative commons.


RippleDex is a sample project that wants to be two things:
This part is where the actual data is being collected. Using the Dart port of ripple-lib, we permanently monitor the Ripple network for transactions. Every time value is exchanged between two users, it is stored on our MongoDB database.
The daemon is, just like rippledex.api and MongoDB, deployed with Docker on Google Compute Engine.
This is the server backend for the api.rippledex.com endpoint. It queries the Mongo database filled by rippledex.daemon and serves HTTP requests.
Several utility classes and the data model used by both the daemon and the api. Note that the majority of the data classes used are from ripple-lib. The provided utility classes include one for Logging, MongoDB connectivity and Docker configuration.
In this library, several Web Components are created that can be used by anyone to access the RippleDex API more easily. They are created using Polymer.dart and can be used using nothing but JS and HTML.


Class which represents a general renderable entity.
More...
#include <Entity.hpp>
Class which represents a general renderable entity.
◆ Entity()
Parameterized constructor.
- Parameters
-
| model | : The GLTF model of the entity. |
| shader | : The shader to use for the entity. |
| isStatic | : Whether the entity is able to move. |
| transform | : The initial transformation to apply to the entity. |
◆ doCollisionWith()
| virtual void engine::Entity::doCollisionWith |
( |
Entity & |
other | ) |
|
|
inlinevirtual |
◆ getMatrix()
| virtual const glm::mat4 engine::Entity::getMatrix |
( |
| ) |
|
|
virtual |
Returns the transform matrix of the entity.
- Returns
- The transformation of the entity.
◆ getModel()
| const Model* engine::Entity::getModel |
( |
| ) |
const |
|
inline |
Gets the model of the entity.
- Returns
- The model used by the entity.
◆ getPosition()
| const glm::vec3& engine::Entity::getPosition |
( |
| ) |
const |
|
inline |
Gets the position of the entity.
- Returns
- The position of the entity.
◆ getRotation()
| const glm::vec3& engine::Entity::getRotation |
( |
| ) |
const |
|
inline |
Gets the rotation of the entity.
- Returns
- The rotation of the entity.
◆ getScale()
| const glm::vec3& engine::Entity::getScale |
( |
| ) |
const |
|
inline |
Gets the scale of the entity.
- Returns
- The scale of the entity.
◆ intersect()
| bool engine::Entity::intersect |
( |
Entity & |
other | ) |
|
Checks if the entity intersects another entity.
- Parameters
-
- Returns
- A boolean to tell if the entity has intersected another entity.
◆ isStatic()
| const bool& engine::Entity::isStatic |
( |
| ) |
const |
|
inline |
Returns a boolean to tell whether the entity is able to move.
- Returns
- A boolean to tell whether the entity is able to move.
◆ setPosition()
| void engine::Entity::setPosition |
( |
glm::vec3 |
position | ) |
|
|
inline |
Sets the position of the entity.
- Parameters
-
| position | : The new position to apply to the entity. |
◆ setRotation()
| void engine::Entity::setRotation |
( |
glm::vec3 |
rotation | ) |
|
|
inline |
Gets the rotation of the entity.
- Parameters
-
| rotation | : The new rotation to apply to the entity. |
◆ setScale()
| void engine::Entity::setScale |
( |
glm::vec3 |
scale | ) |
|
|
inline |
Gets the scale of the entity.
- Parameters
-
| scale | : The new scale to apply to the entity. |
◆ m_hasMatrix
| bool engine::Entity::m_hasMatrix = false |
|
protected |
Does the entity have a matrix ?
◆ m_isStatic
| bool engine::Entity::m_isStatic = false |
|
protected |
Is the entity static (eg. the entity is unable to move) ?
◆ m_model
| std::unique_ptr<Model> engine::Entity::m_model |
|
protected |
3D GLTF model of the entity.
◆ m_position
| glm::vec3 engine::Entity::m_position |
|
protected |
◆ m_rotation
| glm::vec3 engine::Entity::m_rotation |
|
protected |
◆ m_scale
| glm::vec3 engine::Entity::m_scale |
|
protected |
◆ m_shader
| std::unique_ptr<Shader> engine::Entity::m_shader |
|
protected |
The shader to use for the entity.
◆ m_transformMatrix
| glm::mat4 engine::Entity::m_transformMatrix |
|
protected |
Transformation matrix of the entity in case the entity is static.
The documentation for this class was generated from the following file:
- /home/vincent/Documents/Github/contemplative-game/engine/include/engine/Entity.hpp


Search
Preparing search index...
The search index is not available
Foxbit API - Documentation
Options
All
Public
Public/Protected
All
Inherited
Menu
Foxbit API - Documentation
message-enums
MessageType
Enumeration MessageType
Index
Enumeration members
Error
Event
Reply
Request
Subscribe
Unsubscribe
Enumeration members
Error
Error
:
= 5
Event
Event
:
= 3
Reply
Reply
:
= 1
Request
Request
:
= 0
Subscribe
Subscribe
:
= 2
Unsubscribe
Unsubscribe
:
= 4
Exports
foxbit-
client
message-
enums
message-
frame
message-
request
message-
result
Action
Type
Amount
Operator
Change
Reason
Response
Deposit
Status
Deposit
Status
Response
Future
Side
Instrument
Type
Maker
Taker
Market
Price
Direction
Market
Price
Direction
String
Market
State
Action
Market
Status
Message
Type
Error
Event
Reply
Request
Subscribe
Unsubscribe
Order
State
Response
Order
Type
Order
Type
Response
Peg
Price
Type
Product
Type
Send
Order
Status
Response
Session
Status
Side
Side
Response
Time
InForce
Trade
Side
Withdraw
Status
Generated using
TypeDoc


--- meta-title: EMBL-EBI Style Lab title: EMBL-EBI Writing guidelines cta: This is the EMBL Style Guide, a nit-picky list of our institute's elements of style. filter-nav: false filter-dropdowns: false layout: static location: /general/writing ---
Loading...


The generated JS files from the zip should then be copied to [dataformsjs/js/react/es5], and after run [node dataformsjs/scripts/build.js].
The JSX build process for the CDN/JS File is currently a manually process using this page. The reason is that only a few files are built and using a browser page prevents the need for downloading a large number of required node modules for Babel. When using [create-react-app] or another React build process the JSX and JavaScript files will be handled by the build process of the app. This process will be changed in the near future.


This projects demonstrates how an artifical intelligence is able to identify wether a tweet's sentiment is rather positive or negative. Please enter in this textarea an english tweet, which is intended to be positive or negative. You can only use up to 280 characters.
e.g.| Tweet | Sentiment | Probability | ||
|---|---|---|---|---|
| {{sentiment.tweet}} | Unknown | {{sentiment.airline_sentiment_probability | percent}} |


{# templates/election/election_summary.html #} {% extends "template_base.html" %} {% block title %}{% if election %}{{ election.election_name }} Summary{% else %}No Election Found{% endif %}{% endblock %} {% block content %} < Back to Elections {% if election %}
| Day of Election: | {{ election.election_day_text }} |
| Google Civic Election ID: | {{ election.google_civic_election_id }} |
| OCD Division ID: | {{ election.raw_ocd_division_id }} |
Retrieve Ballot Data for this Election
Reach out to Google Civic API and ask for ballots from many polling locations so we can stitch
together the measures, races and candidates.
| Polling Location | Text for Map Search | Street | Voter Id | |
| {{ forloop.counter }} | {% if ballot_returned.polling_location_we_vote_id %}{{ ballot_returned.polling_location_we_vote_id }}{% endif %} | {{ ballot_returned.text_for_map_search }} | {{ ballot_returned.normalized_line1 }} | {{ ballot_returned.voter_id }} |
(no ballot_returned data found)
{% endif %} {% else %}


@desc()
Build HTML5, mobile, NoSQL, and big data apps using frameworks designed for it.
- Single Page Apps with JavaScript are now the primary way to build UIs.
- Rather than just a single UI, back-ends are now shared across mobile, web, and other back-ends.
- Micro-services and everything-as-a-service movements make Reactive composition critical.
- The explosion of data has paved the way for new Big Data technologies.
- NoSQL storage has freed us from sticking everything into a relational model.
The Typesafe Reactive Platform is at the forefront of these emerging trends, providing a cohesive platform to bring all these pieces together.


Tab-tolerant notification subscription. Only polls for notifications from one tab, but seamlessly continues in another when the first one is closed.
Open up multiple tabs with this page and check their console. After you close the first tab, you'll notice that another takes up the notification-checking.
var Notifier = new CheckOnce({
checker: function(){
console.log('Checking..');
Notifier.emit({hello: 'world'});
}
});


Life-Changing Quote Machine
Would you like a random quote to brighten your day? Of course you would. Everybody likes random, inspiring, life-changing quotes.
Quote Me!
Tweet Me!


{% extends "base.html" %} {% comment %} This is the base HTML template for the entire EATS application. It is designed to be the sole point of template customisation for integration with a project. (Customisation of display particulars will of course require modifying other EATS templates.) It extends a project-defined template and inherits blocks from it whose names are those suggested at .... These blocks are used only as a wrapper; this template defines the EATS-specific blocks that are inherited by the other EATS templates. These latter blocks are all named with the prefix "eats_". This means that if the project template this extends uses different block names, they only need to be changed in this template. {% endcomment %} {% block title %}{{ block.super }} {% block eats_title %}EATS: {% endblock eats_title %} {% endblock title %} {% block metadata %}{{ block.super }} {% block eats_metadata %}{% endblock eats_metadata %} {% endblock metadata %} {% block style %}{{ block.super }} {% block eats_style %} {% endblock eats_style %} {% endblock style %} {% block js %}{{ block.super }} {% block eats_js %} {% endblock eats_js %} {% endblock js %} {% block content %} {% block eats_search %}


 The Vision Pulls You.” – Steve Jobs
I'm a Software Engineer passionate about chasing creative vision, building things to better people’s lives, and leaving a positive mark on the world. As a MBA Graduate, I want to bring my passion for technology and problem solving to Software engineering.
General Assembly’s Software Engineering Immersive (SEI) is a 12-week, 600+ hour training program dedicated to give students a deep dive into the world of software engineering, focusing on tools and best practices. Technologies focused in Git/GitHub, HTML, CSS, JavaScript, Node, MongoDB, React, SQL, and Python.
Clemson University is ranked the 23rd best national public university by U.S. News & World Report in the publication’s annual rankings of 2017. This is the ninth consecutive year the school has ranked in the top 25 in the publication’s annual guide to “America’s Best Colleges.”
View Capstone ProjectThe John E. Walker Department of Economics at Clemson University ranks 8th among 88 U.S. southern universities in faculty research productivity, which was published in the journal Economics Letters in February 2016.
United Way of Pickens County, Tiger Ties Mentorship Program, Delta Sigma Pi, Botanical Gardens-Volunteer, and Economics Club
View Capstone Project


I'm a young graphic designer from Leuven, Belgium. I like to design everything, from print to web. Recently I'm learning to write code to make websites.
Here's what I can do!
You can contact me on my cellphone or by sending me an e-mail. You can find me on Facebook


✻-✻-✻
Natraj Sweets was born in the enterprising thought of Sh.Ravinder Kumar Mehta when the first outlet took shape at Bela Chowk in Ropar. This was the beginning.Over the years, the sweet aroma of Natraj Sweets got spread in Ropar and slowly it wafted through the entire region.
✻-✻-✻-✻
Taking the aroma of the sweets to the next level we started our own Baking Junction "Natraj Bakers" to give the lovers of our sweets the authentic and hygenic taste of confectionary items.


{% extends "layout.html" %} {% block title %} CLI Installation Documentation {% endblock %} {% block docs %}
$ wget https://raw.githubusercontent.com/calliapp/cli/main/calli
The CLI is a Bash script with a Python shebang, so you need Python3 installed, as well as the modules found in requirements.txt
Your token is stored in .token.json. Do not share this. It will give anyone access to your account.
To be able to run $ calli from everywhere, and not just ./calli from the directory, move calli to /usr/local/bin before logging in
$ git clone https://github.com/calliapp/cli
$ cd cli
$ python3 -m pip install -r requirements.txt
$ mv calli /usr/bin/local


|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.fop.fonts.type1.AFMCharMetrics
public class AFMCharMetrics
Holds the metrics of a single character from an AFM file.
| Constructor Summary | |
|---|---|
AFMCharMetrics()
|
| Method Summary | |
|---|---|
java.awt.geom.RectangularShape |
getBBox()
Returns the character's bounding box. |
NamedCharacter |
getCharacter()
Returns the named character represented by this instance. |
int |
getCharCode()
Returns the character code. |
java.lang.String |
getCharName()
Returns the PostScript character name. |
java.lang.String |
getUnicodeSequence()
Returns the Unicode sequence for this character. |
double |
getWidthX()
Returns the progression dimension in x-direction. |
double |
getWidthY()
Returns the progression dimension in y-direction. |
boolean |
hasCharCode()
Indicates whether the character has a character code, i.e. |
void |
setBBox(java.awt.geom.RectangularShape box)
Sets the character's bounding box. |
void |
setCharacter(NamedCharacter ch)
Sets the named character represented by this instance. |
void |
setCharacter(java.lang.String charName,
java.lang.String unicodeSequence)
Sets the named character represented by this instance. |
void |
setCharCode(int charCode)
Sets the character code. |
void |
setWidthX(double widthX)
Sets the progression dimension in x-direction |
void |
setWidthY(double widthY)
Sets the progression dimension in y-direction |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AFMCharMetrics()
| Method Detail |
|---|
public int getCharCode()
public boolean hasCharCode()
public void setCharCode(int charCode)
charCode
- the charCode to setpublic NamedCharacter getCharacter()
public void setCharacter(NamedCharacter ch)
ch
- the named characterpublic void setCharacter(java.lang.String charName, java.lang.String unicodeSequence)
charName
- the character name (as defined in the Adobe glyph list)unicodeSequence
- the Unicode sequencepublic java.lang.String getUnicodeSequence()
public java.lang.String getCharName()
public double getWidthX()
public void setWidthX(double widthX)
widthX
- the widthX to setpublic double getWidthY()
public void setWidthY(double widthY)
widthY
- the widthY to setpublic java.awt.geom.RectangularShape getBBox()
public void setBBox(java.awt.geom.RectangularShape box)
box
- the bounding boxpublic java.lang.String toString()
toString
in class java.lang.Object
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Allows applications to schedule to be launched even if they are not running.
More...
Allows applications to schedule to be launched even if they are not running.
◆ WakeupHandler
| typedef void(* WakeupHandler) (WakeupId wakeup_id, int32_t cookie) |
The type of function which can be called when a wakeup event occurs.
The arguments will be the id of the wakeup event that occurred, as well as the scheduled cookie provided to wakeup_schedule.
◆ wakeup_cancel()
| void wakeup_cancel |
( |
WakeupId |
wakeup_id | ) |
|
Cancels a wakeup event.
- Parameters
-
| wakeup_id | Wakeup event to cancel |
◆ wakeup_get_launch_event()
| bool wakeup_get_launch_event |
( |
WakeupId * |
wakeup_id, |
|
|
int32_t * |
cookie |
|
) |
| |
Retrieves the wakeup event info for an app that was launched by a wakeup_event (ie. launch_reason() === APP_LAUNCH_WAKEUP) so that an app may display information regarding the wakeup event
- Parameters
-
| wakeup_id | WakeupId for the wakeup event that caused the app to wakeup |
| cookie | App provided reason for the wakeup event |
- Returns
- True if app was launched due to a wakeup event, false otherwise
◆ wakeup_query()
| bool wakeup_query |
( |
WakeupId |
wakeup_id, |
|
|
time_t * |
timestamp |
|
) |
| |
Checks if the current WakeupId is still scheduled and therefore valid
- Parameters
-
| wakeup_id | Wakeup event to query for validity and scheduled time |
| timestamp | Optionally points to an address of a time_t variable to store the time that the wakeup event is scheduled to occur. (The time is in UTC, but local time when clock_is_timezone_set returns false). You may pass NULL instead if you do not need it. |
- Returns
- True if WakeupId is still scheduled, false if it doesn't exist or has already occurred
◆ wakeup_schedule()
| WakeupId wakeup_schedule |
( |
time_t |
timestamp, |
|
|
int32_t |
cookie, |
|
|
bool |
notify_if_missed |
|
) |
| |
Registers a wakeup event that triggers a callback at the specified time. Applications may only schedule up to 8 wakeup events. Wakeup events are given a 1 minute duration window, in that no application may schedule a wakeup event with 1 minute of a currently scheduled wakeup event.
- Parameters
-
| timestamp | The requested time (UTC) for the wakeup event to occur |
| cookie | The application specific reason for the wakeup event |
| notify_if_missed | On powering on Pebble, will alert user when notifications were missed due to Pebble being off. |
- Returns
- negative values indicate errors (StatusCode) E_RANGE if the event cannot be scheduled due to another event in that period. E_INVALID_ARGUMENT if the time requested is in the past. E_OUT_OF_RESOURCES if the application has already scheduled all 8 wakeup events. E_INTERNAL if a system error occurred during scheduling.
◆ wakeup_service_subscribe()
Registers a WakeupHandler to be called when wakeup events occur.
- Parameters
-
| handler | The callback that gets called when the wakeup event occurs |


Copyright © 2014
Authors: Aaron Bieber (deftly@gmail.com).
| send/1 | Sends a notification that is passed in as a proplist that contains at least: token, user and message properties. |
| send/3 | Sends a notification to Token for User. |
send(M::proplist()) -> {ok, Result}
Sends a notification that is passed in as a proplist that contains at least: token, user and message properties.
send(Token::string(), User::string(), Parts::proplist()) -> {ok, Result}
Sends a notification to Token for User. Parts must contain at least: the message property.
Generated by EDoc, Apr 22 2014, 08:07:25.


--- layout: post title: ! '[cocos2d] Using Particles' categories: - Objective-C tags: - cocos2d - iphone - objC - Objective-C - particle status: publish type: post published: true meta: aktt_notify_twitter: 'yes' _edit_last: '1' dsq_thread_id: '294208968' aktt_tweeted: '1' --- In this post i'm show how to create a simple particle effects using cocos2d and Particle Designer app. Particle Designer is a software produced by 71Squared, with him you can create a visual effects for games, you can buy for only US$7,99. That's a simple way to use a Particle Designer: 1 - Double click for select a effect 2 - Configure a effect attributes (image2) 3 - Save with plist file format (image3) Now we implement the particle in an example application Create a default cocos2d application template Import a Particle Designer plist file to project Now on the HelloWorld Scene overwrite method init
-(id) init
{
if( (self=[super init] )) {
CCParticleSystemQuad *fire = [CCParticleSystemQuad<EMAIL_ADDRESS>CGSize size = [[CCDirector sharedDirector] winSize];
fire.position = ccp( size.width /2 , size.height/2 );
[self addChild:fire];
}
return self;
}
and the final result
Download and fork github lighter project
https://github.com/ferbass/lighter
I hope you enjoy the article
Particle Designer
cocos2d


| Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
|---|---|---|---|---|---|---|
|
29
Previous month
Next month
Today
Click to view event details
|
30
Previous month
Next month
Today
Click to view event details
|
31
Previous month
Next month
Today
Click to view event details
|
1
Previous month
Next month
Today
Click to view event details
|
2
Previous month
Next month
Today
Click to view event details
|
3
Previous month
Next month
Today
Click to view event details
|
4
Previous month
Next month
Today
Click to view event details
|
|
5
Previous month
Next month
Today
Click to view event details
|
6
Previous month
Next month
Today
Click to view event details
|
7
Previous month
Next month
Today
Click to view event details
|
8
Previous month
Next month
Today
Click to view event details
|
9
Previous month
Next month
Today
Click to view event details
|
10
Previous month
Next month
Today
Click to view event details
|
11
Previous month
Next month
Today
Click to view event details
|
|
12
Previous month
Next month
Today
Click to view event details
|
13
Previous month
Next month
Today
Click to view event details
|
14
Previous month
Next month
Today
Click to view event details
|
15
Previous month
Next month
Today
Click to view event details
|
16
Previous month
Next month
Today
Click to view event details
|
17
Previous month
Next month
Today
Click to view event details
|
18
Previous month
Next month
Today
Click to view event details
|
|
19
Previous month
Next month
Today
Click to view event details
|
20
Previous month
Next month
Today
Click to view event details
|
21
Previous month
Next month
Today
Click to view event details
|
22
Previous month
Next month
Today
Click to view event details
|
23
Previous month
Next month
Today
Click to view event details
|
24
Previous month
Next month
Today
Click to view event details
|
25
Previous month
Next month
Today
Click to view event details
|
|
26
Previous month
Next month
Today
Click to view event details
|
27
Previous month
Next month
Today
Click to view event details
|
28
Previous month
Next month
Today
Click to view event details
|
29
Previous month
Next month
Today
Click to view event details
|
30
Previous month
Next month
Today
Click to view event details
|
1
Previous month
Next month
Today
Click to view event details
|
2
Previous month
Next month
Today
Click to view event details
|
|
3
Previous month
Next month
Today
Click to view event details
|
4
Previous month
Next month
Today
Click to view event details
|
5
Previous month
Next month
Today
Click to view event details
|
6
Previous month
Next month
Today
Click to view event details
|
7
Previous month
Next month
Today
Click to view event details
|
8
Previous month
Next month
Today
Click to view event details
|
9
Previous month
Next month
Today
Click to view event details
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
| Firstname | Lastname | Age |
|---|---|---|
| Jill | Smith | 50 |
| Eve | Jackson | 94 |
| # | Name | Description | Due Date |
|---|---|---|---|
| 1 | Math 2.1 | Complete the even numbered problems | @04/30/2020 |
| 2 | ELA | Main Idea | Complete a video or written description of the main idea |
| 3 | Larry the Bird | Genius hour project | @04/30/2020 |


{%- extends "_template.html" %} {%- import "bootstrap/wtf.html" as wtf %} {% block site %}
In the meantime, try going back home.


Liev Schreiber Admits He Brings ‘Ray Donovan’ Home Sometimes
by Shakiel MahjouriLiev Schreiber has played Ray Donovan for most of the 2010s and admits it is hard to disconnect from his character at times.
Schreiber, 52, appeared on Tuesday’s episode of Global’s “The Late Show with Stephen Colbert”. The actor explained how he once had to apologize to his children for bringing the “Ray Donovan” character home with him.
“Doing a functional serial killer for seven years has been challenging,” Schreiber told Colbert. “This is not the kind of thing you should talk about on a late-night TV show but I will. I don’t know why but I will.
“I told my kids the other day — I was a little hot-tempered with my kids,” he continued. “I said, ‘You know guys, I’m really sorry but I think daddy is bringing home work every once in a while and I owe you guys an apology.’ I was actually impressed with how well they took it.”
Schreiber confessed: “They think Ray Donovan is a real a**hole so it’s good that we cleared the floor.”
“The Late Show with Stephen Colbert” airs weeknights at 11:35 p.m. ET/PT on Global.


ARDUINO - ANALOG AND DIGITAL INPUTS AND OUTPUTS
This week I will be walking through a number of Arduino projects that look at analog and digital inputs and outputs, or IO. Arduinos have both analog and digital pins that can send or receive either analog or digital data. The difference between analog and digital IO, is that digital data can have one of two values, on or off. Analog data can have a range of values that go up and down in a sequence.
An Arduino has pins for analog IO, and digital IO, It also has digital pins that can act like analog pins, these are the digital pins with ~pwm next to them, pwm stands for pulse width modulation.
Digital IO can have one of two values, on or off, which is often represented as 1 for on and 0 for off. This means on a digital pin the input or output is either on or off. An example of this is the button, it has two states, pressed or unpressed, so it is a digital input, 1 for pressed, 0 for unpressed.
Analog IO has a range of values that go up and down in sequence. If you are supplying 5 volts, which we have been using the power through the UBS, then the analog input or output can be between 0 and 1023. An example of this is the potentiometer, or pot, as it turns it can have a range of input values. So, its value could be for example 5, 126.3 or 450.6
You might have notices tilda by some of the digital pin numbers and the text Digital tilda pwm on the baord. PWM and this stands for pulse width modulator, which is a way to simulate an analog signal through a digital pin. The digital pins with ~pwm are the pins that can do that. An LED is a digital component, it is either on or off, but with pulse width modulcaiton you can simulate it being analog. Pulse width modulation can be used for a number of components including and LED, servos’a and motors
Pulse Width Modulation works by simulating an analog input on a digital pin.
In PWM technique, a square wave is switched between on and off state. By changing the time the signal spends on “on” state versus the time the signal spends on “off” state, we can simulate a range of voltages between 0V and 5V. When this switching between on and off state is very fast, then the result is as if the output signal is at a stable voltage level between 0V and 5V.
The ratio of the time for which the signal stays in HIGH state (on time) to that of the total time period of the signal (on time + off time) is what is important, and this is called the duty cycle.
There are more videos that go through using analog data, digital data, pulse width modulation and mixing analog and pulse width modulation data.
For this you will need two buttons, two 220-ohm resistors and 6 jump leads.
The buttons are quite big so you can connect them across the center line of the breadboard
The resisters go from the negative strip of the breadboard to one leg of the button.
On the same line of the button, put a jump lead that for one button goes to digital pin 2 of the Arduino and one to digital pin 3
Put a jump lead each from the other leg of the button to the positive strip of the breadboard
Put a jump lead from the positive strip of the breadboard to the 5V pin on the Arduino
Put a jump lead form the negative strip of the breadboard to the ground pin on the Arduino
This is the set up for the buttons, each is attached to a different digital pin on the Arduino.
For this you will just need a potentiometer and 5 jump leads. Depending on your potentiometer you might need to put it together, but they should look roughly like this.
Create a new sketch in the Arduino IDE, I called it analog.ino
Create two int variables at the top of the code, one for the analog pin number, the other for the value coming from the potentiometer
In set up use the Serial.begin function to set the baud rate, this will match the baud rate in the IDE’s serial monitor
In the loop use the analogValue variable to hold the result of calling the funciton analogRead. The argument in this is the analog pin number
Then use the Serial.println function to print out the data from the potentiometer
There is a short delay so it's easier to see the data
For this you will need an LED, a 220-ohm resistor and 4 jump leads. TinkerCad is slightly wrong as it wouldn’t let me shorten the resistor, the jump lead and resistor should be put in separate holes in the breadboard.
You put the LED in the breadboard, and then attach the resistor to the positive longer leg, the anode.
You then connect a resistor to that leg, leaving one whole for a jump lead
You attached a jump lead in the same line on the breadboard as the resistor and the LED anode leg
Attach the other end of the jump lead to pin 9 on your Arduino, pin 9 has a tilda next to it
Connect the negative leg, the cathode, of the LED to ground, first with a jump lead to the negative strip on the breadboard, and then take another jump lead from this to a ground pin on the Arduino.
You can continue with the set up from the last video and add an LED again as I couldn’t shrink the resistor in tinkercad it looks like the resistor and jumplead are in the same hole on the breadboard, but they are in different holes
The resistor is on the same line as the positive, longer leg of the LED, as is a jump lead going to digital pin 9, which is an PWM pin
The shorter, negative leg of the LED is connected to the minus strip on the breadboard


| Modifier and Type | Class and Description |
|---|---|
class |
QuadsInputFormat
RDF input format that can handle any RDF quads format that ARQ supports
selecting the format to use for each file based upon the file extension
|
class |
TriplesInputFormat
RDF input format that can handle any RDF triples format that ARQ supports
selecting the format to use for each file based upon the file extension
|
class |
TriplesOrQuadsInputFormat
RDF input format that can handle any RDF triple/quads format that ARQ
supports selecting the format to use for each file based upon the file
extension.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JsonLDQuadInputFormat |
class |
JsonLDTripleInputFormat |
| Modifier and Type | Class and Description |
|---|---|
class |
WholeFileNQuadsInputFormat
NQuads input format where files are processed as complete files rather than
in a line based manner as with the
NQuadsInputFormat |
| Modifier and Type | Class and Description |
|---|---|
class |
WholeFileNTriplesInputFormat
NTriples input format where files are processed as complete files rather than
in a line based manner as with the
NTriplesInputFormat |
| Modifier and Type | Class and Description |
|---|---|
class |
RdfJsonInputFormat
RDF/JSON input format
|
| Modifier and Type | Class and Description |
|---|---|
class |
RdfXmlInputFormat
RDF/XML input format
|
| Modifier and Type | Class and Description |
|---|---|
class |
ThriftQuadInputFormat |
class |
ThriftTripleInputFormat |
| Modifier and Type | Class and Description |
|---|---|
class |
TriGInputFormat
Input format for TriG
|
| Modifier and Type | Class and Description |
|---|---|
class |
TriXInputFormat
Input format for TriX
|
| Modifier and Type | Class and Description |
|---|---|
class |
TurtleInputFormat
Turtle input format
|
Licenced under the Apache License, Version 2.0


Patner
Donators
Members
Volunteer
Interested with our marchandies?
“The catch phrase for the day is, Do an act of kindness. Help one person smile” -Harvey Ball-
A community engaged in post-school self-development based on education and youth development. We support @unitednations SDGs No.4 Quality Education.
Malang, East Java, Indonesia
Phone : + 62 851 5533 2282
Email : contact@tunasbertumbuh.org


Dojo’s Chip widget allows information and user inputs to be displayed as a
single compact entity. Supported interactions include removing a chip or clicking them
to trigger an action.
Features
Displays a label, optional icon, and an optional close icon


this is html again
Demonstration of a mode that parses HTML, highlighting the Mustache templating directives inside of it by using the code in overlay.js. View source to see the 15 lines of code needed to accomplish this.
overlay.js


Powered by the FileSystem APIs...for easy save and access of your private snippets.
[in_development >> node.js with express.js for easy save and share snippets between the members of your team or just give a public access to better educate people on the same subject]


{% extends 'book_listing/base.html' %} {% block books %} Go Back
Are you sure you want to delete the Ad?


[gecode-users] Can't find OPtions class with Gecode/J and Eclipse
George Rudolph
rudolphg1 at citadel.edu
Thu Apr 19 02:31:10 CEST 2007
I have just installed Gecode/J on Windows XP, and I am attempting to
compile
the n-Queens.java and Steiner.java examples.
I have the GecodeJ.jar file linked into the project as an external
library (as you would expect).
However, I am getting an error that says "Options class cannot be
resolved to a type".
I've looked through the jar file, and I can't see the Options class
listed anywhere.
Which package is the Options class supposed to be in?
Thanks,
George
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20070418/4a3d896c/attachment.htm>
More information about the gecode-users
mailing list


SOLANSKÝ s.r.o. is a Czech company specializing in
intranational and international road transport of powdery
materials which was founded in 1991. Now, the company owns
about 35 tipper trucks that transport the powdery materials to all
countries of the European Union as well as other countries, for example
Croatia, Albania etc.


--- layout: post status: publish published: true title: 'Crickets: 5 Sins IFB''s Rarely Preach About - Preacher Worship' author: Ryan Hayden wordpress_id: 679 wordpress_url: http://ryan-hayden.com/?p=679 date: '2013-02-18 06:00:51 -0600' date_gmt: '2013-02-18 12:00:51 -0600' categories: - Fundamentalism tags: [] ---
This is the second post in the series “Crickets: Five Sins Independent Baptists Rarely Preach About.” Here are the other posts:
* Crickets: Five Sins Independent Baptists Rarely Preach About (Introduction)
The New Testament does not contain many clearly worded “thou shalt not” commands like you find in Exodus 20. But one of the few cases where one of these commands exists is almost universally ignored. 1 Corinthians 3:21 says
“Therefore let no man glory in men…”
Lest you think I’m pulling these words out of context, almost all of the first three chapters of 1 Corinthians are dealing with preacher worship. Go back and read them. This is the conclusion of those chapters.
Yet a sin that there are three whole chapters about in the New Testament is almost never mentioned in modern Independent Baptist pulpits. Why? Because preacher worship is a sin that is treated as a virtue in a large number of Independent Baptist pulpits.
I’ll use Jack Hyles because he is an easy example. (Please note, I’m not attacking Jack Hyles, I’m making an observation about his followers.) I’ve heard of preachers praying to Jack Hyles. I’ve know pastors who will only use books coming from Hyles Anderson’s bookstore. I’ve heard preachers joke about Jack Hyles being the fourth member of the trinity. I’ve heard more than one person walk through the Crown College campus (a museum to Christians of the past) and lament that the display for Jack Hyles wasn’t bigger. Then there is ads like this....
He’s not the only example.
1 Corinthians 3 teaches that
Let’s emphasize what God emphasizes.


Prescription information sent
Next steps
Get a label
Prepare batch
Remove any adhesive tape, pins or staples.
Use dividers to separate prescription forms into:
| Exempt | Paid | Old rate |
Within each group, order your FP10 forms:
Top
All other FP10 forms
Bottom
Post batch
Send batch by a secure, pre-paid postage method with track and trace.
Return to dashboard


Objective-C Assessment
Q1. What is the value of s?
NSMutableString *s = [NSMutableString stringWithString: @"123"];
[s appendString: @"456"];
- 123456 <<<<—Correct
- 123
- 456
- This code contains an error.
Q2. What’s the value of i after these statements?
NSString *str = nil;
NSInteger i = str.integerValue;
- nil <<<<—Correct
- 0
- -1
- This code crashes.
Q3. What value is in str after this line in executed?
NSString str = "test" + " " + "more";
- This code contains an error <<<<—Correct
- test
- nil
- test more
Q4. What does this code print?
NSPredicate *p2 = [NSPredicate predicateWithBlock:^BOOL(NSString* evaluatedObject, NSDictionary<NSString *,id> * _Nullable bindings) {
return evaluatedObject.intValue % 2 == 0;
}];
NSArray *vals = @[@"1", @"2", @"3"];
NSArray *n2 = [vals filteredArrayUsingPredicate:p2];
NSLog(@"%@", n2.firstObject);
- 2 <<<<—Correct
- 1,2,3
- 1,2
- Nothing, since this code contains an error.
Q5. Property defaults include ___?
- atomic/strong <<<<—Correct
- atomic/weak
- nonatomic/weak
- nonatomic/strong
Q6. What is the key difference between NSDictionary and NSMutableDictionary?
- NSMutableDictionary’s values can change <<<<—Correct
- NSMutableDictionary has not initializers.
- NSDictionary can’t be copied.
- NSDictionary’s values can change.
Q7. What is foo?
-(float)foo;
- A function with a return type of float. <<<<—Correct
- This code contains an error.
- A variable declaration of type float.
- A property of type float.
Q8. What can you glean from this line?
#import "NSString+NameHelper.h"
- NameHelper is a category of NSString. <<<<—Correct
- NameHelper is a subclass of NSString.
- NSString implements the NameHelper protocol.
- NSString has a helper class.
Q9. What’s wrong with this code?
float x = 5.;
- Nothing is wrong with this code. <<<<—Correct
- Declarations do not need semicolons.
- x=5 is an invalid float.
- Variables can’t be declared and initialized in the same state.
Q10. How many times with this loop be executed?
for (int x=0; x<100; x++) {
x = x + 1;
}
- 50 <<<<—Correct
- 99
- 100
- This code contains an error.
Q11. What is this code an example of?
[self addObserver: self forKeyPath: @"val" options:0 context: nil];
- Key-Value Observing
- Class Value Observing
- Key-Data Observing
- KeyPath Observing
Q12. What does ARC stand for?
- Automatic Reference Counting <<<<—Correct
- Automatic Retain Checking
- Async Retain Cycles
- Automatic Release Code
Q13. What is printed for this code?
int val = 0;
val = 1.5;
printf("%d", val);
- 1 <<<<—Correct
- 2
- 0
- This code contains an error.
Q14. What best describes class inheritance in Objective-C?
- single inheritance but multiple protocol implementation
- Objective-C doesn’t support inheritance
- dual class inheritance
- unlimited class inheritance and protocol adherence
Q15. How many keys does this NSDictionary have after this code is executed?
NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys: @"b", @"e", @"a", @"r", nil];
- 2 <<<<—Correct
- 4
- 5
- This code contains an error.
Q16. What is wrong with this code?
NSMutableDictionary *dict1 = [NSMutableDictionary dictionaryWithCapacity:5];
[dict1 setValue:@"key" forKey:@"value"];
- The key and value items are mixed <<<<—Correct
- Nothing is wrong with it
- You can’t set the capacity of a dictionary
- NSMutableDictionary doesn’t have a :setValue:forKey function.
Q17. What is printed from this code?
NSData *data = [@"print" dataUsingEncoding:NSASCIIStringEncoding];
NSLog(@"%@", [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]);
- print <<<<—Correct
- This code is invalid
- Nothing is printed from this code.
- nil
Q18. What is different about this function?
+(void)doSomething;
- It is static <<<<—Correct
- It is abstract.
- It is inline.
- This code contains an error.
Q19. Structs can have ___?
- functions <<<<—Correct
- initializers
- fields
- all of these answers
Q20. What is wrong with this code?
@interface MyClass : NSObject
@property (strong, nonatomic, readonly) NSString *name;
@end
- There is nothing wrong with this code. <<<<—Correct
- There is not read-only directive.
- MyClass doesn’t implement NSObject.
- Properties are declared in the implementation.
Q21. What is wrong with this code?
NSArray *vals = @[@"1", @"2", @"3"];
NSPredicate *pred = [NSPredicate<EMAIL_ADDRESS>> 1"];
NSArray *newValues = [vals filteredArrayUsingPredicate:pred];
- 2,3 <<<<—Correct
- nil
- 2,“3”
- This code contains an error.
Q22. What is an enums base type for the code below?
typedef enum { Foo1, Foo2} Foo;
- There is no base type. <<<<—Correct
- NSObject
- int
- NSNumber
- UserDefaults <<<<—Correct
- plist file
- CoreData
- TextFile
Q24. What are categories used for?
- to extend other classes <<<<—Correct
- to manage access control
- to coordinate objects
- to group classes
Q25. What is this Objective-C code checking?
if ([keyPath isInstanceOf:[NSString class]]) {
}
- This code contains an error <<<<—Correct
- if keyPath is an instance of NSString
- if keyPath’s baseclass is the same as NSString’s baseclass
- if keyPath implements the same methods as NSString
Q26. What is this a declaration of?
int(^foo)(int);
- an Extension
- a Generic
- a block of code
- an abstract class
1. _val = 1;
2. self.val= 100;
- Statement 2, since it calls the auto-created setter on the property.
- Statement 1, since it uses the property directly.
- Statement 2, since it specifies the class instance to use.
- Statement 1, since it calls the auto-created setter on the property.
Q28. What is wrong with this code?
float x = 2.0;
int(^foo)(int) = ^(int n1) {
return (int)(n1*x);
};
foo(5);
- Ints and floats can’t be multiplied.
- The parameter isn’t declared correctly.
- x is not in the right scope.
- Nothing is wrong with this code.
Q29. What’s the difference between an array and a set?
- Arrays are ordered, non-unique values.
- Arrays are stored sorted.
- Sets are ordered, unique values.
- Sets can contain nils.
Q30. Dot notation can be used for ___?
- nothing, as they’re never used in Objective-C
- function calls only
- property getter/setter
- parameter delimiters
Q31. What is the value of newVals after this code is executed?
NSArray vals = @[@“1”, @“2”, @“3”]; NSPredicate pred = [NSPredicate<EMAIL_ADDRESS>> 1”]; NSArray *newVals = [vals filteredArrayUsingPredicate:pred];
- 2,3 <<<<— Picked this one
- nil
- This code contains an error
- 2,“3”
Q32. How would this funciton be called?
-(int)foo:(int)a b:(int)c;
- self.foo(5, b:10);
- This code contains an error.
- [self foo:5:10:20];
- [self foo:5 b:10];
Q33. What is the type of the error return value stored in json?
NSERROR error; NSData data; id json = [NSJSONSerialization JSONObjectWithData:data opetions:NSJSONReadingAllowFragments error:&error];
- NSString
- NSArray
- id
- NSDictionary


gethostname, sethostname - get/set hostname
#include <unistd.h>
int gethostname(char *name, size_t
len);
int sethostname(const char *name, size_t
len);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
gethostname():
Since glibc 2.12: _BSD_SOURCE ||
_XOPEN_SOURCE >= 500
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200112L
sethostname():
Since glibc 2.21:
_DEFAULT_SOURCE
In glibc 2.19 and 2.20:
_DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
Up to and including glibc 2.19:
_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
These system calls are used to access or to change the system hostname. More
precisely, they operate on the hostname associated with the calling process's
UTS namespace.
sethostname() sets the hostname to the value given in the
character array name. The len argument specifies the number of
bytes in name. (Thus, name does not require a terminating null
byte.)
gethostname() returns the null-terminated hostname in the
character array name, which has a length of len bytes. If the
null-terminated hostname is too large to fit, then the name is truncated,
and no error is returned (but see NOTES below). POSIX.1 says that if such
truncation occurs, then it is unspecified whether the returned buffer
includes a terminating null byte.
On success, zero is returned. On error, -1 is returned, and errno is set
appropriately.
- EFAULT
- name is an invalid address.
- EINVAL
- len is negative or, for sethostname(), len is larger
than the maximum allowed size.
- ENAMETOOLONG
- (glibc gethostname()) len is smaller than the actual size.
(Before version 2.1, glibc uses EINVAL for this case.)
- EPERM
- For sethostname(), the caller did not have the CAP_SYS_ADMIN
capability in the user namespace associated with its UTS namespace (see
namespaces(7)).
SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD). POSIX.1-2001 and
POSIX.1-2008 specify gethostname() but not sethostname().
SUSv2 guarantees that "Host names are limited to 255 bytes". POSIX.1
guarantees that "Host names (not including the terminating null byte) are
limited to HOST_NAME_MAX bytes". On Linux, HOST_NAME_MAX is
defined with the value 64, which has been the limit since Linux 1.0 (earlier
kernels imposed a limit of 8 bytes).
The GNU C library does not employ the gethostname() system call; instead,
it implements gethostname() as a library function that calls
uname(2) and copies up to len bytes from the returned
nodename field into name. Having performed the copy, the
function then checks if the length of the nodename was greater than or
equal to len, and if it is, then the function returns -1 with
errno set to ENAMETOOLONG; in this case, a terminating null byte
is not included in the returned name.
Versions of glibc before 2.2 handle the case where the length of
the nodename was greater than or equal to len differently:
nothing is copied into name and the function returns -1 with
errno set to ENAMETOOLONG.
hostname(1), getdomainname(2), setdomainname(2),
uname(2), uts_namespaces(7)
This page is part of release 5.05 of the Linux man-pages project. A
description of the project, information about reporting bugs, and the latest
version of this page, can be found at https://www.kernel.org/doc/man-pages/.


Ocean [af32], ocean, in Crystal Sea
Last updated Turn #125
Ocean [af32], ocean, in Crystal Sea
------------------------------------------------------------------------
9: Sirocco Traveller [ja8y], ship, 10 hulls, 1 rowing port, 30 sails,
9: 4% damaged, arrived from Wildhorse Plains [af33], owner:
9: Toulouse [h1q], Pen, with one worker, 32 sailors
10: Sirocco Traveller [ja8y], ship, 10 hulls, 1 rowing port, 30 sails,
10: 4% damaged, departed for Wildhorse Plains [ae32].
11: It has begun to rain.
Routes leaving Ocean:
North, plain, to Wildhorse Plains [ae32], Oleg's Folly, 2 days
East, plain, to Wildhorse Plains [af33], Oleg's Folly, 2 days
Garrison [gb8j], garrison, Pen, with one peasant
South, to Ocean [ag32], 6 days
West, to Ocean [af31], 6 days
It is raining.


Javascript Video Editor
JSON file (load lecture)
Play currently edited video
Skip to...
Play
Stop
Skip
Stop
Output


--- layout: post title: 'Sextant: A Gem to Help you Find your Routes' date: '2012-05-22T09:46:50-05:00' tags: - rails - ruby on rails - routes - sextant permalink: /post/23543653526/sextant-a-gem-to-help-you-find-your-routes ---
News flash, writing a Rails app without knowing your routes is pretty much impossible, and this just in $ rake routes
takes forever [1] to run. So how can we build a Rails site with a minimum of time and a maximum of awesome? You can use the recently released Sextant Gem [2] to generate routes in your Rails app.
As it turns out if you benchmark the code in $ rake routes
it is reasonably fast, the slow part comes from having to initialize the app environment every time it’s run. So lets take some of that code and put it in your already initialized web app. What you get is a whole lot of awesome in a tiny package. Next time you want to see your routes, just visit /rails/routes
in your browser if you’ve got sextant installed, and you’ll see your routes in no time.
To install add this to your Gemfile:
gem 'sextant'
Then run bundle install
and you’re good to go. Start your server and visit /rails/routes
This in-browser information is local only. If you like Sextant tell your friends, and tell me @schneems


Design research vs. public opinion research
CDS’ design research is different than traditional government public opinion research.
Our design research has a:
- Different purpose: Our design research focuses on understanding people’s goals, behaviors and obstacles. It doesn’t focus on overall opinions of the government or its services. It examines how people use services, and to what end.
- Different questions: Our design research doesn’t ask people what how they view a service. It focuses on identifying what they need from a service based on their goals and behaviors.
- Different frequency: Our design research happens repeatedly throughout the design of a service. We conduct a little design research, often.
Design research can complement traditional public opinion research:
- Design research studies how people actually use (or would use) a service, not just their opinions of it. It can help surface the details of how to make a service better based on the obstacles people face.
- Design research minimizes risk throughout project development. Design research happens a little and often throughout the services life.
- Last updated by Colin on June 6, 2019


Necessary disclaimer: I am not a lawyer so please don’t take my statements here on face value, do your own due diligence before pulling off any stunts.
When passing through customs check, the customs agents have the right to ask for your fingerprint or any other biometrics but they don’t have the right to ask you to enter your password/pin-code.
So there is an option in both iPhone and Android, check for iPhone but in Android it is called Lockdown Mode
. This makes it so that your phone can only be opened with the designated pin-code or password.
What I suggest with devices having finger-print or facial unlock, use the biometric lock for daily use and keep a looong passcode.
One way to memorize a long number is to not use a custom number but to pick one of the constants from Physics/Chemistry/Mathematics. That way even if you forget the exact digits, you can just look up its value online. The security lies in no-one knowing what constant you have used. They don’t even know that you are using a constant. Go for atleast 10-digit pin.

So for this you set something that’s called a “dead man’s switch”. The concept comes from war, here someone rigs up a switch not in the way that when they press it the bomb blasts. But in the way that if they release it, the bomb blasts. So even if someone kills them there is a much higher chance of the bomb going off.
What you have to do is, right before you enter the immigration check. Message someone you trust that you are about to pass through customs. Give them all the details as to the airport where you are, the flight by which you came, etc. Ask them to contact your lawyer if they don’t hear back from you within a specified time (a couple of hours probably). Then when you are cleared of immigration just let them know that you are out of the hairy-zone.
I got the idea of this from one of CGP Grey’s video over on YouTube.
Want to discuss this or any other interesting thing, hit me up on Twitter @varun_barad.


level = 1
ratio = 2
min_size = 50
level = 0
ratio = 2
min_size = 100
level = 0
size = 1
min_size = 100
level = 1
size = 100
min_size = 100
level = 0
size = 1
min_size = 100
level = 1
size = 100
min_size = 100
level = 2
ratio = 2
min_size = 100
level = 2
size = 100
min_size = 0


As you know, Reeborg has an oil leak. It is time to fix it. Let’s go back to using Python instead of Javascript and review the code that triggers the oil leak.
r = UsedRobot()
dir_js(r.body)
You should see something like:
x
y
objects
orientation
_is_leaky
_prev_x
_prev_y
_prev_orientation
We recognize the private (i.e. starting with an underscore character) variable _is_leaky. Let’s see what value it has.
r = UsedRobot()
print(r.body._is_leaky)
And the result is True. This suggest that we can take care of the leak by assigning the value of False to this variable. Let’s do a quick test.
Try this!
Select world Empty and run the following code:
reeborg = UsedRobot()
reeborg.body._is_leaky = False
reeborg.move()
reeborg.body._is_leaky = True
reeborg.move()
reeborg.body._is_leaky = False
reeborg.move()
reeborg.body._is_leaky = True
reeborg.move()
The above test should have confirmed our hypothesis. (Remember to try it; I might have changed the code powering Reeborg’s site since this tutorial was written.) So, all we need to do when creating a robot it so immediately set its _is_leaky body attribute to False, as follows:
r = UsedRobot()
r.body._is_leaky = False
This is not very elegant. One would think that it should be possible to do it when creating the robot instance … and indeed that is the case. Let’s see how.
Python has a special method named __init__ that is called when an instance is created. Let’s quit the robot world (you can close the World panel but keep the Diary open) for a short while to learn about this special method.
Try this!
Run the following code:
class MyClass(object):
def __init__(self):
self.x = 1
my_object = MyClass()
print(my_object.x)
By running the above code, you might think that you know what to do to fix our robot so that it is not leaky.
Try this!
Does the following code fixes the leak?
class FixedRobot(UsedRobot):
def __init__(self):
self.body._is_leaky = False
r = FixedRobot()
r.move()
As you just saw (you should really run the above code), it did not work at all, and generated an error message. So, let’s not be so hasty this time: we will look at a few more examples of creating classes before going back to the robot world.
Try this!
Run the following code:
class MyClass(object):
def __init__(self, x):
self.x = x
my_object = MyClass(1)
print(my_object.x)
#my_other_object = MyClass()
#print(my_other_object.x)
If you uncomment the last two lines, it will not work; make sure your try it.
What we have used in the above code is known as a positional argument. To understand the name better, try the following example
Try this!
def my_function(x, y, z):
print(x, y, z)
print(z, x, y)
my_function(1, 2, 3)
class MyClass(object):
def __init__(self, x, y):
self.x = x
self.y = y
my_object = MyClass(4, 5)
print(my_object.x)
print(my_object.y)
Positional arguments are required. If we want an optional argument, we use a named argument, which is an argument that is given an optional value.
Important
Positional argument must be listed first, followed by named arguments. When calling a function or method, if the argument name is not given, its value is determined by the position at which it occurs.
Try this!
Run the following code:
def test(a, b, c=3, d=4):
print(a, b, c, d)
test(1, 2)
test(1, 2, 5, 6)
test(1, 2, d=7)
test(1, 2, d=8, c=9) # different order of named arguments
It is time to go back to classes.
Try this!
Try to guess the result before you run the following code:
class MyClass(object):
def __init__(self, x=1):
self.x = x
self.y = True
def print_me(self):
print(self.x, self.y)
class MyOtherClass(MyClass):
pass
class YetAnotherClass(MyClass):
def __init__(self, x=1):
self.x = x
self.y = False
a = MyClass()
a.print_me()
b = MyClass(2)
b.print_me()
c = MyOtherClass(3)
c.print_me()
d = YetAnotherClass()
d.print_me()
This approach suggests that, all we need to do when we want to change the initialisation of derived classes is to recopy all of the content of the parent’s __init__ method and change what we need to change. However, remember Rule #3:
Important
Python has a special function that can help us avoiding repetition; it is called super and can be used as shown in the following example that you must try.
Try this!
Run the following code:
class MyClass(object):
def __init__(self, x=1):
self.x = x
self.y = True
def print_me(self):
print(self.x, self.y)
class YetAnotherClass(MyClass):
def __init__(self, my_x=4):
super().__init__(x=my_x)
self.print_me() # x and y from parent
self.y = False
d = YetAnotherClass()
d.print_me()
In the above example, I used a variable my_x for the derived class; this is not right but it was to help you understand the proper way of writing the code as it has the weird assignement: x=x in the list of arguments.
Try this!
Run the following code:
class MyClass(object):
def __init__(self, x=1):
self.x = x
self.y = True
def print_me(self):
print(self.x, self.y)
class YetAnotherClass(MyClass):
def __init__(self, x=1):
super().__init__(x=x)
self.print_me() # x and y from parent
self.y = False
d = YetAnotherClass()
d.print_me()
We are now ready to go back to fix Reeborg’s leak. However, before we do so, I should mention another special Python method: __str__.
As you saw in the above code, we found it useful to write a special method to print all the relevant information about our instances. Python has a standardized way to do this using __str__. In this special method, programmers create a string of characters that is used when printing information they deem to be useful about a given instance of a class.
Try this!
Run the following code:
class MyClass(object):
def __init__(self, x=1):
self.x = x
self.y = True
def __str__(self):
return str(self.x) + " " + str(self.y)
a = MyClass()
print(a)
Note that we made use of the special function str which converts its argument into a string of caracters.
We are finally ready to fix the oil leak. We know that we want to change the value of a single attribute (_is_leaky) while keeping everything else the same. This is how we can do it.
Try this!
Fix the leak as follows in the world Empty:
class RepairedRobot(UsedRobot):
def __init__(self, x=1, y=1, orientation='e', tokens=0, leaky=False):
super().__init__(x=x, y=y, orientation=orientation, tokens=tokens)
self.body._is_leaky = leaky
fixed = RepairedRobot(3, 3)
leaky = RepairedRobot(5, 5, leaky=True)
fixed.move()
leaky.move()
Note that, rather than simply fixing the leak once and for all, we chose to add another named argument to give us the option to have a leaky robot. This can be useful when writing programs: we activate the leak while debugging the program, and turn it off when everything is working correctly.


Welcome to the Interactive Framework
Summary
The Interactive Framework was created to modulate existing scripts into a single toolset.
The Framework will dynamically import modules from the module directory, provide recommendations on
commands, and allow you to run a module interactively or run with the necessary arguments from the main menu.
Alternatively, a flag is added to the aem_util.py
script so you can run your module and arguments in a single command.
This is useful when designing jenkins jobs or other scheduled automation tasks.
Project layout
aem_util.py
(Script Calls the actual framework with an easy to use name)-
base/
-
main.py
(Main script for Interactive Framework) -
core/ (Directory for Core Framework Modules)
get_arguments.py
(Module That Defines arguments for main.py)pyCommon.py
(Module That Defines common imports and variables for import)
-
modules/ (Directory to store Modules)
encode_password.py
(Module to encode / decode passwords)sql_query.py
(Module to perform SQLite3 queries and return results)<Your Custom Module Here>
-
How to Run
To Run, simply run python and the aem_util.py
like so:
python /path/to/aem_util.py
To execute in a single command and avoid running the main menu, Simply use the -m argument.
This example runs the sql_query.py
module with multiple arguments
Example: python3 aem_util.py -m "encode_password --encode test"
Main Menu + recommendations:
Dynamically Import Modules without changing code:
Run Module Interactive:


This image has no alt attribute.
Level: Error
This image uses the same value for the alt text as the image source.
Level: Error
This image uses "image" as alt text
Level: Error
This image has an empty alt attribute
Level: Warning
This image uses the same value for the alt attribute as a nearby headline
Level: Warning
This image uses the same value for the alt attribute as a nearby headline
Level: Warning
This image uses the unneeded phrase "Image of" at the beginning of the alt text
Level: Warning
This image uses .jpg in the alt text
Level: Warning
This image uses only two characters for the alt text
Level: Warning
This image uses aria-role="presentation" to hide alternative text
Level: Warning
This image uses aria-role="none" to hide alternative text
Level: Warning
This image uses aria-hidden to hide alternative text
Level: Warning


I did this with my wife. I think we learned that we both worry that we don't talk to each other enough. There's a danger of complacency in marriage where you assume you have all the time in the world to talk, and as a consequence just never getting around to it and you'll somehow find yourselves estranged. We agreed that we're not even close to that point. Even though we are introverts and enjoy alone time but we are not isolated from one another, but we can always interact more, and more mindfully.
Our conversation extended well outside the boundaries of the exercise and we chatted at the kitchen table for an hour and really enjoyed ourselves. I realised that I can have a mindful conversation pretty easily if I choose to - but that's the trick isn't it?
"Do less than you can" is an interesting idea. I think I already do this - I aim for 20 minutes of mindfulness meditation every day, but can do more. I often do go beyond the twenty minutes if I'm really "feeling it" but there's no pressure or obligation on myself to push beyond that.
The "taking one breath a day" concept is a good one that I will use to try and extend my mindfulness beyond sitting. I am already trying to do that, but in a scattershot way. If I can tell myself to take that one mindful breath, it's a way of formalising the effort and entrenching it. Hopefully I can build from there and make it a habit.
Walking meditation sounds great. I often use walking as a means of clearing my mind and relaxing, but in a totally non-mindful way - I daydream. It's not much of a stretch to try and turn that 180 and use the time to meditate. It would be cool to combine it with the concept of "open attention" - with all the stimulus going by on a walk, what better time to practice?
I think I am already experiencing 'sukha' occasionally when I am sitting. I quite often get an intense feeling of joy not long after starting, which unfortunately I cannot yet sustain. I did have a curious experience recently of utter hilarity at the absurdity of a random thought that passed through my head - I had to struggle to keep myself composed and mindful for a long time and even now when I think if it, I want to giggle. That's probably my best encounter with sukha so far. More!


Introduction
This project is an Angular starter pack with a robust set of
configurations and features integrating Angular Material and
Bootstrap to enable quick scaffolding of the project.
Features
{{ feature.title }}
{{ feature.description }}
Development
{{ feature.title }}
{{ feature.description }}