|
Nana - a C++ framework project
The Programmer's Guide |
|
How to implement a button 1. Introduction This article is indented to explain how to implement a button widget and some basic knowledge through nana::gui::button. nana::gui::button is a simple widget and it is a good start to learn the implementation of a widget. the implementation of nana::gui::button is defined in "include/nana/gui/widgets/button.hpp" and "source/gui/widgets/button.cpp". Nana.GUI provides a framework for implementing a widget. A graphical user interface widget is made of a window manipulator and a drawer trigger, so implementing a widget is needed to implement this tow parts. Window Manipulator It is a class provides some operations, it is a visible for an user, example. nana::gui::button is a manipulator. Drawer Trigger A drawing operation is driven by the drawer trigger, it is provied for the internal of a widget, it is invisible for an user. During the life time of a window manipulator and a drawer trigger, Nana.GUI does not involve the creation and destroying of a drawer trigger. 2. Implementation 2.1 Window Manipulator template<typename DrawerTrigger> class basic_button: public widget_object<category::widget_tag, DrawerTrigger> { public: basic_button(){} basic_button(nana::gui::widget& widget, int x, int y, unsigned width, unsigned height) { this->create(widget.handle(), x, y, width, height); } }; These code is defined the window manipulator of the button. template<typename DrawerTrigger> The template parameter DrawerTrigger is used for specifying a drawer trigger. basic_button is inherited from widget_object<category::widget_tag, DrawerTrigger>, the widget_tag indicates the button is a Widget Window. Although all widgets are inherited from nana::gui::widget, the widgets just can be inherited from the template class widget_object<> while define. The default constructor does not create the widget unless the create() method is called. The second constructor will create the widget by calling the create() method. Nana.GUI guarantees the safety if an operation of a widget before its creation. 2.2. Drawer Trigger A drawer trigger is more complicated than a window manipulator, it reacts a mouse or a keyboard event. In this implementation of the button, the code of drawing the button is written inside the drawer trigger directly. now, let's dip into the definition of the drawer trigger. A drawer trigger must be inherited from std::gui::drawer_trigger. class button_drawer: public nana::gui::drawer_trigger<cagetory::widget_tag> { public: button_trigger(); void bind_window(nana::gui::widget&); private: void attached(nana::paint::graphics&); void detached(); void normal(paint::graphics&); void mouse_leave(paint::graphics&, const eventinfo&); void mouse_down(paint::graphics&, const eventinfo&); void mouse_up(paint::graphics&, const eventinfo&); void focus(paint::graphics&, const eventinfo&); private: void _m_draw_title(paint::graphics&, bool is_mouse_down, bool is_focus); void _m_draw_background(paint::graphics&, bool is_mouse_down); void _m_draw_border(paint::graphics&, bool is_mouse_down); private: nana::gui::widget* widget_; bool is_ms_down_; bool is_focus_; }; This button_drawer makes the constructor and a bind_window() member function as public, and others are private. void bind_window(nana::gui::widget& widget) { widget_ = &widget; } Nana.GUI creates a widget and tell the drawer trigger the widget through bind_window(). The private member functions start with non-_m_ are virtual functions that are defined by nana::gui::drawer_trigger, these virtual functions are invoked inside the Nana.GUI, some of these virtual functions start with mouse_ are used for answering a mouse operation. It was needed override these functions you want some special capacities. The private member functions start with _m_ are defined by the button drawer trigger, it implements the drawing of the button. As will be readily seen, when a mouse event raised, the drawer trigger calls the member functions start with _m_ drawing the widget. nana::gui::widget * widget_; This data member refers to a window manipulator which is connecting with the drawer trigger. bool is_ms_down_; This indicates the current mouse status if the left button is pressed down. Now, let's return to the details of member functions start with _m_. button_drawer::button_drawer() :widget_(0), is_ms_down_(false), is_focus_(false) {} The default constructor initializes the data members. is_ms_down_ will be modified by mouse_down() and mouse_up(). is_focus_ will be modified by focus(). void button_drawer::set(nana::gui::widget& widget) { if(widget_ == 0) widget_ = &widget; } Sets widget_, this function is invoked by window manipulator's get_drawer_trigger(). The following member functions are the essential of the drawer trigger. void button_drawer::attached(nana::paint::graphics&) { using namespace nana::gui::API; is_ms_down_ = false; nana::gui::window window = widget_->handle(); make_drawer_event<events::mouse_leave>(window); make_drawer_event<events::mouse_down>(window); make_drawer_event<events::mouse_up>(window); make_drawer_event<events::focus>(window); } When a widget is creating, Nana.GUI is responsible for attaching the drawer trigger which is returned by the window manipulator to the Window Manager of Nana.GUI, at the same time, Nana.GUI calls the attach() method provided by the drawer trigger, in other words, the attach() method is the first method of a drawer trigger that Nana.GUI calls. When the drawer trigger is attached to the Window Manager, the connection is created between the drawer trigger and window manipulator that the drawer trigger will receive the callback of an event from a widget. In this member function, button_drawer registers the events through the handle of window manipulator. The drawer trigger has a special function for registering an event(it is different with nana::gui::API::register_event and make_event() of a window manipulator). Register an event, and Nana.GUI calls back the corresponding function for answering the event. In button_drawer's attach(), it registers mouse_leave, mouse_down and mouse_up, you can register more events if you want button more specially good effect. The attach() has a parameter, it refers to a nana::paint::graphics object, this object is the off-screen buffer of the widget, any drawing operation on this object, it will be displayed on the monitor. This object is created and destroyed by Nana.GUI. There is not any operation on this object. void button_drawer::detached() { nana::gui::API::unregister_drawer_event(widget_->handle()); } When a drawer trigger is detached from the Window Manager, Nana.GUI will callback the detach() method. In the button_drawer implementation, we just unregister the events that we registered in attach(). nana::GUI::API::unregister_drawer_event is responsible for destroying the all registered events for the specified window. void button_drawer::normal(paint::graphics& ghc) { _m_draw_background(ghc, is_ms_down_); _m_draw_border(ghc, is_ms_down_); _m_draw_title(ghc, is_ms_down_, is_focus); } The normal() method defined by a drawer trigger will be invoked after a widget is created completely, and nana::gui::API::refresh_window() will also invoke this normal() method. In this implementation, the normal() method calls the member functions start with _m_ for operating the graphics object. void button_drawer::mouse_leave(paint::graphics& ghc, const eventinfo&) { _m_draw_background(ghc, false); _m_draw_border(ghc, false); _m_draw_title(ghc, false, is_focus_); nana::gui::API::lazy_refresh(); } When the mouse is leave from the widget, Nana.GUI will call the mouse_leave, the second parameter refers to an eventinfo object which provides some event information, in this implementation we don't take care about this parameter. It's worth noting that a nana::gui::API::lazy_refresh() is invoked at last, the function will let the graphics object display on monitor. lazy_refresh() only works in an event callback, hence we can't find it in normal() method. In a similar way, mouse_down(), mouse_up() and focus() is same as mouse_leave(). Refering to "source/gui/widgets/button.cpp" for the details. Refering to Nana.Paint for the details of nana::paint::graphics. Return |


Bakkt Records Second Highest Bitcoin Futures Volume Since Launch
by Christine VasilevaBakkt saw an overnight spike in Bitcoin futures trading volumes, despite the relatively sluggish price action. BTC’s trek to above the $9,400 mark inspired futures markets to gain activity.
Bakkt Grows its Bitcoin Futures Activity Slowly
The Bakkt Bitcoin futures platform traded 1,061 contracts today, which is a 96% appreciation from the previous day.
Bots tracked the physical delivery of 529 BTC in the past day. At the same time, spot markets and crypto-to-crypto exchanges held their separate Bitcoin price discovery mechanism, trading above 3 million BTC (the equivalent of $24 billion) in a day.
BTC Sentiment Remains Neutral
BTC is trading at 00, on mixed sentiment. Price has hiked above and below the $9,400 mark, but never crossed the $9,500 mark. A few days ago, Bakkt exceeded $1 million in open interest, which is still a fraction of the volume hoarded by bitcoin derivatives exchange BitMEX where $1 billion in open interest has been observed numerous times since June 2019.
But open interest has been growing on Bakkt, potentially leading the exchange to evolve. If the example of the CME market is taken into consideration, the futures markets have grown significantly over time.
The Bakkt Bitcoin futures are running into their second month, and exist in a period of increased BTC volatility. After September 23, BTC plunged below $10,000, only recovering briefly to above that level in the past week. But now, activity has returned, with the fight for the $9,500 level.
Bakkt is also a month away from offering options on futures, a derivative tool for mitigating price risk. The deadline for the new product is December 9. The institutional bitcoin investment platform is considered a source of “new money” flowing into BTC, and the slow start is not indicative of the future potential. So far, the Bakkt growth pace is slow, but the overall progress is commendable.
Bitcoin futures exchanges have become one of the most significant platforms for active BTC trading. According to a recent preview from former Commodities Futures Trading Commission Chairman Chris Giancarlo, the Bitcoin futures markets are attracting well-capitalized entities that have a deeper understanding of hedging BTC risk.
What do you think of Bakkt’s Bitcoin futures performance? Share your thoughts in the comments section below!
Images via Shutterstock, Twitter: @BakktBot, @skewdotcom
The Rundown


easy-mail Developer of the Month
Jay St.Gelais
easy-mail Developer of the Month (Last Month)
Jay St.Gelais


Milo Marathon
Manila PHI
Race Winners-
Men
(40 runnings)
16 Jul
2006
2:33:10
24 Jul
2005
2:22:18
25 Jul
2004
2:28:29
07 Jul
2003
2:29:07
08 Dec 2002
2:22:52 2001
2:23:47
2000
2:25:53
1999
2:28:50
1998
2:23:52
1997
2:28:57
1996
2:29:58
1995
2:30:13
1994
2:24:52
1993
2:29:55
1992
2:28:47
1991
2:26:54
1990
2:28:45
1986-1989
---
1985
2:39:43
1984
2:32:23
1983
2:33:22
1982
2:25:16
1981
2:34:35
1980
2:43:19
1979
2:45:54
1978
2:37:14
1977
2:41:36
1976
2:35:14
1975
2:54:35
26 May
1974
3:04:10
Notes: 1974 was the inaugural year. This race is held at different venues before
2003 as shown in the second column.
03 Dec
2017
Cebu
2:25:09
Eric Kibiwitt Chepsiror (KEN)
04 Dec
2016
Iloilo
2:22:13
Josephat Kiptanui Chebet (KEN)
06 Dec
2015
Manila
2:20:10
James Talam Cherutich-4
13 Dec
2014
Manila
2:21:09
James Talam Cherutich-3
08 Dec
2013
Manila
2:18:23
Josephat Kiptanui Chebet (KEN)
09 Dec
2012
Manila
2:26:34
James Talam Cherutich-2
11 Dec
2011
Manila
2:28:07
James Talam Cherutich (KEN)
12 Dec
2010
Manila
2:24:18
Eduardo
Buenavista-3
11 Oct
2009
Manila
2:32:54
Crescensiano
Sabal-2
30 Nov
2008
Manila
2:23:37
Eduardo
Buenavista-2
18 Nov
2007
Manila
2:21:33
Crescensiano Sabal (PHI)
Manila
Eduardo Buenavista (PHI)
Manila
Roy Vence-8
Manila
Roy Vence-7
Manila
Roy Vence-6
Manila
Eduardo Buenavista (PHI)
Sorsogon
Allan Ballester-2
Sorsogon
Allan Ballester (PHI)
Cebu
Roy Vence-5
Cebu
Roy Vence-4
Iloilo
Herman Suizo (PHI)
Cebu
Roy Vence-3
n/a
Paquito Rizalde (PHI)
Cebu
Roy Vence-2
Cebu
Roy Vence (PHI)
Zamboanga
Rey Antoque (PHI)
Sorsogon
Wilfredo Ballester-3
Sorsogon
Wilfredo Ballester-2
---
not held
Sorsogon
Wilfredo Ballester (PHI)
Iloilo
Jimmy delaTorre-3
Constabulary
Leonardo Illut (PHI)
Iloilo
Jimmy delaTorre-2
Iloilo
Jimmy delaTorre (PHI)
Tarlac
Justo Tabunda-2
Negros Occidental
Eriberto Diaz (PHI)
Tarlac
Justo Tabunda (PHI)
Cebu
Exequiel Baisac (PHI)
Baguio City
Ernesto Mendoza (PHI)
Catanduanes
Victor Idava (PHI)
Manila
Numeriano A Titong (PHI)
Non-winning Milo Champions
2016 2:35:13
Jeson Agravante
2015 2:36:12
Rafael Poliquit-2
2014 2:32:29
Rafael Poliquit
2013 2:27:14
Eduardo Buenavista-5
2012 2:29:45
Eduardo Buenavista-4
Race Winners-
Women
(28 runnings)
16 Jul
2006
3:12:26
24 Jul
2005
2:38:44
25 Jul
2004
---
07 Jul
2003
---
08 Dec 2002
-3:12:38
2001
3:00:23
2000
2:53:58
1999
3:06:36
1998
3:18:58
1997
3:05:51
1996
3:05:25
1995
3:24:45
1994
3:02:52
1993
2:56:53
1992
3:07:29
03 Dec
2017
Cebu
2:41:32
Elizabeth Rumokol Chepkwana-3
04 Dec
2016
Iloilo
2:41:55
Elizabeth Rumokol Chepkwana-2
06 Dec
2015
Manila
2:43:45
Elizabeth Rumokol Chepkwana (KEN)
13 Dec
2014
Manila
2:47:33
Roseline Nyangacha Kerubo (KEN)
08 Dec
2013
Manila
2:42:18
Margaret Wangui Njuguna (KEN)
09 Dec
2012
Manila
2:49:29
Mary-Grace delosSantos-2
11 Dec
2011
Manila
2:53:11
Mary-Grace delosSantos (PHI)
12 Dec
2010
Manila
3:05:07
Flordeliza Donos (PHI)
11 Oct
2009
Manila
3:01:19
Cristabel
Martes-5
30 Nov
2008
Manila
2:58:38
Mercedita Fetalvero (PHI)
18 Nov
2007
Manila
2:53:20
Flordeliza Carreon (PHI)
Manila
Ailyn Tolentino (PHI)
Manila
Cristabel Martes-4
n/a
n/a
n/a
n/a
Manila
Geraldine Sealza
(PHI)
Baguio City
Cristabel Martes-3
Baguio City
Cristabel Martes-2
Baguio City
Cristabel Martes (PHI)
Baguio City
Jona Gayumba (PHI)
Zamboanga
Arsenia Saragay-5
Zamboanga
Arsenia Saragay-4
Quezon City
Liza Relox-Delfin (PHI)
Zamboanga
Arsenia Saragay-3
Zamboanga
Arsenia Saragay-2
Zamboanga
Arsenia Saragay (PHI)
1991
n/a
3:24:17
Lani Illanza Camargo (PHI)
1990
n/a
3:14:36
Thelma Montebon (PHI)
Non-winning Milo Champions
2016 2:47:49
Mary-Joy Tabal-4
2015 2:48:24
Mary-Joy Tabal-3
2014 2:51:55
Mary-Joy Tabal-2
2013 2:48:00
Mary-Joy Tabal
Note: Runners must qualify for the
Milo Marathon (finals) by winning a provincial Milo qualifier half marathon or
by achieving certain time standards. There is also a Milo Elimination
Marathon that is held mid-way in the series of provincial qualifier half
marathons. Time standards must be achieved before the Milo Elimination
Marathon.
Most Wins
Men (1974/date) 8
Roy Vence (PHI)
1993-94,1996,1998-99,2003-05
Women
(1992/date)
5
Arsenia Saragay (PHI)
1992-94,1996-97
Cristabel Martes (PHI)
1999-2001,2005,2009
Prize Money (ADR qualified runners)
Year Men Women Total 2017 $17,860 $19,845 $37,705 2016 15,115 15,115 30,230 .... 2012 26,465 26,465 52,930 2011 12,765 12,765 25,530 .... 2007 2,875 2,875 5,750 Sums $75,080 $77,065 $152,145
Race Time Bias (sec/km) Insufficient data to compute the race time bias.
Competitive Level (1990-date)
Insufficient data to compute the competitive level.
Quality Performances
Men <2:19 2 <2:20 2 Women <2:42 2 <2:44 4 <2:46 4 <2:48 6 <2:50 10
Last Updated on 04 Dec 2017
Contributors: Klaas Loonstra (50), Thierry Lefefeuvre (5), Jad Adrian Washif (7), Heinrich Hubbeling (5)


Junior novels
The Shakespeare stealer by Gary Blackwood
A young boy is sent to steal Shakespeare’s new play, Hamlet, but becomes involved with Shakespeare and his group of players. Will he betray his new friends to avoid the vengeance of his brutal master?
By the picking of my nose by Martin Chatterton
A tingle ran down Willy’s spine. Or possibly it was a rat. It was hard to tell, so closely packed was the audience. Whatever it was, Willy knew one thing: he wouldn’t have swapped places with anyone!
King of Shadows by Susan Cooper
Nathan Field, a talented young actor, arrives at the newly rebuilt Globe Theatre in London to play Puck in A Midsummer Night’s Dream. As rehearsals begin, eerie echoes of the past begin to haunt Nat, and he falls sick with a mysterious sickness. When he wakes, Nat finds himself in 1599, an actor at the original Globe.
Olivia’s curtain call by Lyn Gardner
Olivia and her friends are auditioning for a production of Romeo and Juliet in the West End.  But her father asks her to perform with him in a high-wire stunt instead. How can she choose between her parents?
Jelly breaks the mould by Candy Guard
Jelly’s volunteered to help with (been roped into) the school’s performance of Romeo and Juliet and has to watch while her Romeo, Sandy, stars alongside annoying Cicily Fanshaw. Will Jelly be able to woo Sandy with her musical ability, or will it take something bigger, madder and more extraordinary to catch his eye?
Road to London by Barbara Mitchelhill
Thomas is desperate to join ‘the players’, he’ll do anything to watch them perform, even skip school and risk a caning. But when Thomas’s rule breaking gets him in trouble with more than just his school master, he has to flee his home and make his way to London. Here he meets his hero, Shakespeare, and his players.
Young teen novels
The door in the moon by Catherine Fisher
It’s Midsummer’s Eve and Oberon Venn must choose between staying mortal or losing his soul.
Will Shakespeare and the pirate’s fire by Robert Harris
When Will Shakespeare gets mixed up in poaching, his father sends him away from Stratford in a band of travelling actors. When in London, a storm forces them to take refuge at the house of Queen Elizabeth I’s astrologer.
Ophelia by Lisa Klein
She is young, beautiful, and desperately in love with a man who cannot return her affections without arousing suspicion. His name is Hamlet; her name is Ophelia; and this is their untold story.
The fool’s girl by Celia Rees
Violetta and Feste have come to London to rescue the holy relics taken from the church in Illyria by the evil Malvolio. Their journey has been long and their adventures many, but it is not until they meet the playwright William Shakespeare that they get to tell the entire story from beginning to end!
The Wednesday Wars by Gary Schmidt (eBook)
Mrs. Baker hates Holling Hoodhood. There’s no two ways about it, as far as he can tell. From the minute he entered her classroom she had it in for him and he’s trying not to become paranoid. Now because half the kids in his class are Jewish and half Catholic, every Wednesday Holling (a Protestant through and through) is stuck alone with Mrs. Baker while the other kids go to Hebrew School or Catechism for the afternoon. And what has this evil genius dreamt up for our poor young hero? Shakespeare. He has to read it and get tested on it regularly with the intention (Holling is sure) of boring him to death. The thing is, Holling kind of gets to like the stuff.
The OMG Shakespeare series by Brett Wright (eBooks)
Shakespeare’s classics retold by Brett Wright in texts, emojis and status updates. Includes YOLO Juliet, srsly Hamlet, Macbeth #killingit and A Midsummer Night #nofilter.
YA novels
Prince of Shadows by Rachel Caine
In the Houses of Montague and Capulet, there is only one goal: power. The boys are born to fight and die for honour and – if they survive – marry for influence and money, not love. The girls are assets, to be spent wisely. Their fates are written on the day they are born. Benvolio Montague, cousin to Romeo, knows all this. He expects to die for his cousin, for his house, but a spark of rebellion still lives inside him. At night, he is the Prince of Shadows, the greatest thief in Verona – and he risks all as he steals from House Capulet. In doing so, he sets eyes on convent-bound Rosaline, and a terrible curse begins that will claim the lives of many in Verona.


Nominees
Nominations and voting are closed. Here is a list of all the nominees.
{{ award.name }}
-
{% for nom in award.nominations|sort(attribute="id") %}
- {{ nom.name }} {% endfor %}
{% endif %}
Nominations and voting are closed. Here is a list of all the nominees.


Project Highlights
- Allows users to snap a photo of a slide, a whiteboard, or a picture with the in-app camera during a presentation, and then tags the shot to a specific moment in the recording.
- Mastered’s short-note format allows for rapid and fluid addition of tags to recordings, so that users get a complete record of what happened during a class.
- Review mode allows users to sort their tags in different styles, so they can smoothly find the tags they need
- Project categories make organizing user notes simple and effortless
Full Project Description
Master[ed] began as an attempt to address one of the biggest issues in any creative work environment – capturing great ideas. Traditional forms of notation can be cumbersome when ideas are flying everywhere, and using multiple modes of input – text and audio – can greatly reduce ‘lost’ information. Master[ed] ensures that users never miss a detail. Mastered was designed, therefore, to be the easiest and most effective way for users to tag and annotate audio notes with short phrases or photos. The app was also meant to be used for interviews, meetings, and conferences..
Step 1
In the initial states of imagining Master[ed], we needed to determine what type of inputs to implement (for example: audio, video, text, images, doodles external files etc.). To accomplish this, we used divergent techniques (many of which resemble structured brain storming processes) to generate a list of potential inputs.
Step 2
When we began testing a quick and dirty prototype of the app, we quickly realized that some of the inputs that initially seemed as though they would be useful were actually hindrances to the user. For example, the first versions of Master[ed] allowed users to add text tags to video that would then be used by the user to review the video content. However, during user testing it became clear that having to hold the device perpendicular to the floor and type on it simultaneously was not ergonomic, and produced shaky video.


Health Wallet
Home
About
Sign Up
Login
Donate
Sign Up to become a HealthCare Provider!
First name:
Please note that your name will not be shared
Last name:
Please note that your name will not be shared
Please provide your professional credentials:
Note: This will be used for background check
Gender:
Male
Female
Other
Avatar:
Please create a username:
OR use our Username Generator
Generate
Please select your expected availability:
Select
1 Patient
2 Patients
3 Patients
4 or more Patients
Zip code:
Please select what you would want to help with:
Select
Alcohol
Anxiety
Mental Illness
Cocaine
Depression
DMT
GHB
Hallucinogens
Heroin
Inhalants
Ketamine
LSD
Marijuana
MDMA (Ecstasy/Molly)
Mescaline
Methamphetamine
Over-the-Counter Medicines
PCP
Prescription Opioids
Prescription Stimulants
Steroids (Anabolic)
Tobacco


| No. | Name | Created By | Updated By | Created Date | Updated Date | Is Deleted? | Edit | Remove | |||
| No records found | |||||||||||
| {{i + 1}} | {{row.groupName}} | {{row.groupCreateBy}} | {{row.groupUpdateBy}} | {{row.groupCreateDate}} | {{row.groupUpdateDate}} | {{ row.groupIsDeleted ? 'Yes':'No'}} |
| No. | Created By | Created Date | Is Deleted? | Name | Updated By | Updated Date | Work Hours | Edit | Remove | ||
| No records found | |||||||||||
| {{i + 1}} | {{ row.buildingCreateBy }} | {{ row.buildingCreateDate }} | {{ row.buildingIsDeleted ? 'Yes':'No'}} | {{ row.buildingName }} | {{ row.buildingUpdateBy }} | {{ row.buildingUpdateDate }} | {{ row.buildingWorkHours}} |
| No. | Name | Status | Visit Type | Work Hours | Created By | Created Date | Is Deleted? | Updated By | Updated Date | Edit | Remove |
| No records found | |||||||||||
| {{i + 1}} | {{ row.tenantName }} | {{ row.tenantStatus }} | {{ row.tenantVisitType }} | {{ row.tenantWorkHours }} | {{ row.tenantCreateBy }} | {{ row.tenantCreateDate }} | {{ row.tenantIsDeleted ? 'Yes':'No'}} | {{ row.tenantUpdateBy }} | {{ row.tenantUpdateDate }} |


Allcats? Yes, allcats. Additional generic non-sequitor. Hilarity ensues.
Knowledge and information are woven onto a universal loom, transcending time and space. Knowledge travels faster than light, without traveling at all. What is the foundation of the structure of this metaphysical space, this universal loom that enables us to weave higher order concepts into language and ideas. Does this foundation form the basis for a kind of universal language? Is there some most universal language which every sufficiently advanced culture is fated to develop? Can such a language be used to transcend the temporal limitations imposed by space?
What if there were some triple of communication protocol, symbols and semantics based on something so universal that it transcended space & time?
That is, each sufficiently advanced civilization (SAV) would invariably produce the same communication forms and protocols. If this is possible and if the conditions of transcending Fermi’s Paradox promote or require its development, then each culture in the galaxy or universe capable of serious interstellar participation would develop this. At least, until that culture developed technology which transcended the limits of the speed of light. There may be a period of 10,000 to millions of years before a civilization truly transcends space and it may not work out to be as convenient as warp drive. The means of surpassing the speed of light and imposition of the vastness of space may be incredibly expensive in terms of energy, which begets galactic ethics issues. Who’s energy is that to harvest anyway?
Since the timescale of communication relay is so large — upwards of 200,000 years, round trip to ping the farthest reaches of the Milky Way from Earth! — something of a universal language may be incredibly important. What would the basis of such a language be? Math! The language would be based on mathematic, algebraic & combinatorial primitives from category theory, algebraic geometry, etc., combined in some “universal” way to produce grammar and encoded semantics.
Furthermore, the exact time in which a species in the galaxy is obtaining tech for outer space exploration is the same timeframe in which a species will develop the tools for inner space exploration (i.e. computers, cyberspace). So I’d like to show that it is at least a reasonable hypothesis that this combination of factors may converge to produce the phenomena of a universal language. The technological need, the economic incentives and the comprehension of interstellar benefits should converge at approximately the same time in the development of a civilization breaking through the shell of their planet.
What Language Would Aliens Speak?
Here I’m referring to two different things: a global universal language and a language of the universe. I’ve thought about the benefits and drawbacks of engineering a global language before and such a concept is fairly straightforward to explain. However, a singular “language of the universe” is new to me. I’ve never heard anyone talk about a concept like this, although I’m certain that someone could find a dozen sci-fi novels that mention something like this.
If you don’t know much about language or linguistics, there are a few concepts you should know. Semantics essentially refers to meaning. What does a word or sign mean? Also, there are various word orders. Subject-Object-Verb (SOV) or Subject-Verb-Object (SVO) are examples. That’s really all you need to know for the scope of this article, though more is better. I’m definitely not an expert.
What I’m conceiving is both the possibility of and the inevitable necessity for a language that is used across the universe. It would be something that is independently discovered by almost every civilization, whereby transmitting the knowledge to use the language is not necessary. That the meta-information about semantics, grammar, morphemes, phonemes, etc. can be abstracted is not new I’m not really talking about a communication protocol for conveying semantics (meaning) and data simultaneously. It is fairly trivial to map from one language to another and to encode the means for doing so along with the content is not too complicated.
That’s not new. We did that with data we sent out on Voyager, Carl Sagan’s cosmic frisbee … because before it ventures too far outside the Oort Cloud, we’ll probably fetch it, get it?
What’s my reasoning behind this idea of universal language? First, I’ll briefly cover the benefits. And then I’ll explain how it could be possible. It definitely is possible, though what would qualify is debatable. First off, math is a universal language. So that, in itself, qualifies, though math itself isn’t really what I’m talking about. Neither is a communication protocol for simultaneous transmission of semantics and content.
What I want to show is that it may be possible for something between those two concepts to exist. That is, there may be a universal language, independently discoverable by any SAV that is more apt for conveying meaning than math but doesn’t require a communication protocol to be established ad-hoc or ahead-of-time.
From Genomic Sequencing to a Universal Language
At the moment, I’m working on a genetic sequencing algorithm. I had hoped to discover something much faster, since that would enable so much data science on the subject. Yet after reviewing the code for existing algorithms like Barracuda, SPAdes & CUSHAW, it seems like there’s no way to accelerate sequencing algorithms beyond what’s available. I mean, W.B. Langdon & Brian Yee Hong Lam published a study in 2015 that used genetic programming and machine learning to achieve a 10x increase in performance in the Barracuda GPU algorithm. That’s such an obscenely radical technique.
“Use genetic programming to optimize the AST for your GPU driven data science application under various conditions.”
There’s no faster way to make a Computer Science PhD student cream his pants than the quote above. If that’s the technique that people are resorting to in recent research, I highly doubt that there’s much else out there.
Look at how fast that line dropped!
What if it weren’t just cheap and fast to sequence human genome data, but to datamine it as well. Multiple sequence alignment would be trivially fast. Evolutional divergence of exons between species? Easy. Between specimans or patients in an experiment? Easy. Account for deviations in lab data resulting from individual mutations in lab specimans? Easy. Datamining for truly personalized medicine? Easy. Correlating minor patient variations in key genes to patient treatment outcomes? All easy. If and only if there is a better algorithm for sequence alignment.
An Engineered Global Language
However, working on this is got me thinking about an idea I had several years ago (around 2012) for a global language. The connection is that the complexity of many bitcrunching algorithms is dramatically reduced with a smaller character set. A universal language is an idea Google would probably love, but one that would take decades of cultural change and social engineering to implement.
Here’s where they call me crazy, if they don’t understand. If they do comprehend, then they’ll say it’s impossible or not practical. I don’t care whether we think it is possible or not. It will happen, absent systemic collapse, because of undeniable factors driving civilization toward it. Like so many aspects of technology, it is inevitable.
Why would Google love a universal language? Facebook? Twitter? Practically every software business ever? (Keep in mind that these are the benefits. There are drawbacks as well)
(1) Dramatically reduced cost/time/complexity to index data to provide search.
Every useful app out there indexes their customer’s data to provide search functionality. For the biggest apps – again, think Facebook, Google, Twitter – this presents wonderfully challenging engineering challenges, usually solved via distributed design and stream processing ala Storm or Kafka.
This can be incredibly challenging. And many key insights in data are not shared across language barriers, as the software to process such insights is expensive to develop/deploy. Machine learning to correlate semantics across languages is still fairly new. But, given a universal language, that additional step isn’t really necessary.
(2) Reduced complexity in business processes; decreased support costs
Dealing with multiple languages (though not very hard) can be expensive. Any time you significantly update your business processes, repackage a new product offering, build a new marketing campaign or want to tap into a far-off market, you need to translate. Reduced translation cost isn’t a critical piece of my argument. English already functions as a kind of universal language. There are reasons for that, including the simple latin alphabet.
(3) Instantaneous global market reach
Launch a new product? VR/AR? Web Service? Instant 100% global market penetration, given a few key assumptions of course. Do you like money? No? OK, that’s fair, your probably voting for …. ok, nevermind. Not really funny, I know. Anyways, I’m guessing that you know someone who likes money a lot. I don’t really, other than it’s a means to an end for bringing change to the world.
Anyways, that guy that really likes money and built a product just to get lots of it? That guy is reeeaaaalllly going to like 100% market penetration. He’s also going to like that no matter where in the world a user joins, that user can interact with 100% of the other users on that product. Do you understand the added value to a network that this brings? That guy that likes market penetration does. When 100% of nodes on a social network could interact meaningfully with 100% of other nodes, that maximizes potential for interconnection. However, sometimes it’s useful from an analytics perspective to have segments & pockets of more & less isolated nodes.
Here’s the kicker
(4) Dramatically reduced energy consumption
Energy consumption is the critically undeniable factor that will drive this change.
Software doesn’t really use a huge amount of energy, in comparison with agriculture, transportation or home conveniences. But it will be important enough, along with other factors, to ensure that the development of a universal language is inevitable. As more devices are added to the internet of things and as technology begins to pervade everything, then the software to manage the ever-increasing graph of nodes will need to become more complex as well.
Moar energies!
If every software problem is made needlessly more complex by the introduction of language, forcing some text-related operations to consume between 10 and 100 times the energy they should, don’t you think that’s an important reason to implement a change in the way people communicate? I’m not saying that people will completely cease using their native languages, nor should they. Drawbacks to total implementation are explained shortly.
Barring the development of a Dyson Sphere absorbing nearly all of the radiation from the sun or at least a globally deployed solar energy apparatus, then we’re fucked. We’re going to need every last drop of energy we can get. Every form of energy production (transduction) causes changes in the environment. Every single one: solar (yes), wind (yes it does), biofuel (why not skip the middle man?). Even fusion. Especially fusion. Hydrogen is a limited resource.
Quick idea: Look for alien life by trying to find aberrations in element abundance from fusion. Especially hydrogen/helium ratios. It’s probably not novel though.
The Tower of Babel Crumbles
There are many drawbacks to be considered as well. But, like I said, this is something that is probably inevitable, though it may be a century before we see it completely overtake the world.
The main drawback that I see is reduced diversity. It’s a good thing that there are so many languages and so much diversity in the world. Diversity in language, customs, beliefs, subcultures, sexuality, etc. It’s all great because it allows us to explore life and ideas in different ways. None of us can assume that we have the right answer to how to live life. If we remove the diversity, we remove our ability to explore life in search of a better answer.
Implementation of a universal language would require worldwide cooperation and global policy changes implemented gradually, with some areas leading and others trailing. Just like any other global policy. And in the pursuit of pushing a universal language on the world – along with many other globalization initiatives – there develops this kind of inferred ideological superiority. Southpark would probably call this “smug” and it’s a sense that one is better than another because they’ve chosen to be ahead of the curve. It stinks, it’s arrogant, and it’s corrosive.
Again, none of us can assume that we have the right answer for how to life life…
Another drawback concerns the implementation costs, especially if we don’t get it right. Many times, in the real world –
Aside: I live in my mom’s basement. What do I know about the real world and having a life? My only experience with the real world has been a horrible Maslovian joke played on a poor bloke with Aspergers, AFAIK. Ironically, such crippling isolation has fueled the exact conditions which promote development revolutionary world-changing ideas. Take that, powers-that-be. LuLz.
– Clearly, I have digressed … Ahem.
Many times, in the real world, you want to simply get from point A to point B, but there is no simple path in between the two. And when implementing a global shift to an engineered language, could there be such a path? At least, there will be the all but certain developments of dialects that diverge, along with a lot of resistance to the idea. Eughh, Newspeak … that was the sound of me discovering exactly how how Orwellian this entire article sounds.
And alas, the tower of babel crumbles always. The very existance of a singular form of communication begets the conditions which create opportunity for competition. That is, people naturally want to form localized dialects and develop idioms. They want to develop their own colorful means of expressing themselves, revelating their emotions and recounting their surroundings. A singular form of communication means that anyone within earshot could immediately understand.
And what about when you discover that, by the time you’ve globally implemented your language, the design was flawed from the outset. Or that a newer design is better. Eeuughhh, Newspeak v3.7. That sounds even worse. My point is, how would we know what the best design of such a language would be?
Is there such a maximally “best” language? What if there was? What if it was universally discoverable? That every SAV would arrive to the exact same place.
In time. All in due time.
No, Seriously, It’s Because E=MC^2
The speed of light is a serious buzz kill. What do you mean we were born too late in an ever-expanding universe to ever explore multiple galaxies? Quite a common fate, actually, considering there’s a lower incidence of cataclysmic cosmic collisions in a universe which has had a bit of time to expand. But that’s beside the point. If there were a universal language, there’d be no need for the extra round trip(s) it’d take to establish a communication protocol.
15 Minutes to Mars, Folks
The speed of light also implies that we aren’t able to easily communicate with other beings. It takes 15 minutes to talk to Mars! To Mars!! Ok, sometimes 5, but more often than not, it’s more than 10 minutes – both ways!! There’s no high-speed bandwidth to Mars. Ever connect to satellite internet? How was that? OK, now add 15 minute ping time.
Oh, Elon didn’t tell you? Elon Musk is clownin on all you hopeful astronauts. I hate to break it to you. There’s no lolcat videos on Mars! Suckers. You’ll have to settle with dust tornadoes and waiting for occasional Olympus eruption. It only erupts every decade. I promise. JK, all respect to Elon. He’s the man.
Yeh, how you likin’ relativity now? So, barring instantaneous communication methods – ala the Ansible from Ender’s Game (it’s real, folks, I promise) – which bring along their own communication impediments, then we’re S.O.L. In other words, there’s a business opportunity for broadband on Mars. But for now, relativity rules. If you want to play phone tag with aliens, then maybe your grandkids will hear back. Is that a bad joke? I still haven’t seen Interstellar. I heard it was good. I want to see it. Thing is, I made less than $3000 last year. Here’s my tax return, pretty $1337, right?
But anyways, remember the Ansible, from Ender’s Game? I promised, didn’t I?
Heady Crystals!!
There should be some [very difficult] way of separating pairs of entangled particles, so that they never degrade. Once you’ve got your particles, your going to want to break them up and put them in crystals. Got it? Good. Now develop a communication protocol that enables you to affect the state of one particle, while simultaneously reading it on the other end. Now keep one crystal and send the other on a voyage through the galaxy you should have a low-bandwidth means of communicating at beyond the speed of light.
Here’s the tricky part: your mechanism can’t read the state of a particle without affecting it – and the state of it’s particle. Kind of a Catch-22. Maybe. However, with a clever design and the right protocol, something like this should be possible. But probably low bandwidth. Still no lolcats on Mars, folks. It’s a tragedy.
Imagine, if you would: an interstellar world, where we explore the cosmos for thousands of years, scouring the stars for life. And we find it! But, the aliens can’t watch our latest lolcat videos. OMGWTF?!
Maybe this isn’t possible, I don’t know. Last time, I checked, it seemed like it might be theoretically impossible, but mostly an engineering challenge. First, how do you construct such a mechanism to predictably interface with entangled quantum state. Do you manipulate entangled ions embedded in doped crystals? Using lasers I’m sure. If it’s cool, it’s got a laser. Or maybe you design a kind of Möbius crystal which entraps photons on neverending dualistic path, with a hint of Gömböc. Kind of like an infinity scarf, but cooler.   Just now.
Second, how do you read the state without destroying the data transmitted from the other end. I imagine these challenges could be overcome. Proper timing is the key! One can assume at each cycle that a particle would either be changed or not changed at each cycle. So, assuming that each entangled pair is only to be used for one-way communication, either from A -> B or from B -> A, then you should be able to alternate between particle states that signify a one or a zero. Basically, you’re reading not the quantum state, but a quantum state change.
Cyclically Entangled Particles
Furthermore, with a bit more imagination, there may be another way to do this, which would require cyclically entangled particles. I know, I know. “It’s not theoretically possible.” Neither was the cyclic shape of glucose molecules a few centuries ago. But with cyclically entangled particles, it’d be a bit easier to read state without overwriting. Just imagining how to imbue cyclic entanglement on particles is tough. I wonder if there are more complicated quantum entanglement mappings. If so, how would each be useful?
And third, how does one protect against degradation of the entangled particles. It’d be a real bummer if you sent one of these heady crystals 100 lightyears away and it ran out of juice like an overused lithium battery. And that brings me to the galactic economics of Ansible crystals … just kidding. What about the economics of earth-technology with faster-than-light (FTL) communication? How does software change, if this is possible?
Have you ever heard anyone ask about how FTL and it’s practical implementations changes the economics of software and hardware? I haven’t.
Language, I was writing about language. Not half-brained physics and hypothetical economics. Gee, imagine if I had the chance to actually study this stuff. Then, I could be creative and correct. But nope. I guess I’ve been disconnected, folks.  Womp womp. No plug for me.
Oh, one more quick idea. What if it was possible to use pre-existing entanglement for faster-than-light communication? In say, stars which collided with the same cloud of ionized gas for example. It’s probably not possible, but who knows. Interesting to think about. Or ooo what if entanglement is really caused by micro-wormholes and space is just an illusion obscuring a manifold where all points are equidistant.
“Silence When Gleep Glop Doth Speakth!!” …
Thus Spoke Gleep Glop
So, I’ve established or it should be easy to see that:
(1) A Global Language is necessary and beneficial for efficient algorithms & energy consumption.
Energy consumption will be critical to any civilizations who find themselves on a planet that they can escape – some civilizations aren’t blessed with enough adjacent supernovae for that! Womp womp.  No uranium? GLHF. I wouldn’t pray to your god, I know that much. Didn’t give you any uranium?  Damned a whole world of life right out the gate with a lack of resources to escape from the hellish curse of overpopulation. Who would do that? Not my God.
Terrestrial civilizations who find themselves with enough rare earth minerals for computers and other assorted shiny things from San Fransisco will find the economics of software irresistible. Yes, the MeeToo’s have a bizarro San Francisco. This furthers the basis for establishing a global language, which provides a transition to the universal language.
(2) A Universal Language helps transcend the limitations imposed by relativity.
It’s so aliens can talk to other aliens without having to wait for millennia. It’s like Verizon, but for the Galaxy! The Galaxy!! The aliens just vomit out all possible communications in one spurt, to wherever their machine learning astronomy algorithms detect the possibility of life.
Life? There might be life there?! Send ‘em the lolcats! Yes, ALL OF THEM. Do it, we’re doomed and it’s all we have. ALLCATS! And some books, send ‘em Chicken Soup or something. Or a Bible. That’s always a good one. Give ‘em the gift of religious fanaticism. But only if they don’t have any Uranium.
Wellll… that is, unless instantaneous communication is possible. But, if the Ansible is real, it requires transporting a physical object to wherever you want to communicate. That’s pretty expensive. I aced galactic economics, can you tell? And I’d hate to be on-call when the Ansible thing breaks.
What do you mean I have to warp to R2-Sirius-1? Jesus, haven’t you seen Interstellar?!
Mechanics of a Written Universal Language
So, if a universal language does exist what would it look like? Keep in mind these are hardly fully developed ideas. If there is such a universal language, it would take decades to identify, at least.
Well, since digital algorithms enable the development of technology, especially the computers that further the development of math via automated theorum proving, let’s start there. These same digital-based algorithms, especially those indexing algorithms et al. that are accelerated by bitcrunching, perform best when encoding with a base-2 count of symbols. This may change with some quantum computing technologies, but that’s a bit of a tangent.
But I don’t think that a single universal written language would cut it. I imagine a pair of universal “writing” systems or encoding schemes that are similar in relation and function to the Latin and Kanji scripts, but both would be isomorphic. That’s a fancy math word for “interchangeable without loss of information.” But Latin has 26 characters, so let’s hypothesize our simple universal written language has 16 different characters or graphemes, essentially. What’s the advantage to 16 characters? More efficient edit distance algorithms.
What would the glyphs look like for each grapheme? Well, if you have looked at enough scripts from various languages, you’ll notice that, you can group the characters by functional attributes. So, you’ll notice that for some like the latin script and mostly those western scripts derived from phoenician, there are a few letters that have rotational symmetry: they look the same when rotated. There are many that are not rotationally invariant. There are many letters that exhibit classic horizontal or vertical symmetry, but again, more do not. A lower case t has both horizontal and vertical symmetry.
Why not have all letters exhibit some or all forms of symmetry? There is a functional purpose to this. It makes it difficult to read from the side or upside down when all letters exhibit the same kind of symmetry. You’ll also notice that there are many letters which can be distorted to exhibit symmetries & various functional properties. Interesting, eh?
My point is that, perhaps there is some mathematic intuition for enumerating and ordering these 16 or 32 graphemes to arrive at a written language that would be certain common sense for ascended alien civilizations. Perhaps the number of chars is inconsequential or extensible. Perhaps the stroke number is correlated to the base-2 power (E.G. 4 stroke numbers would map to binary numbers with 4 digits).
Semantics of a Universal Language
This kind of writing system would need to map tightly to the system of semantic modeling. So how does one model knowledge and meaning in such a universal way? If the written symbols for 0 and 1 were to map to some “concepts,” what would those be and why? If you think about it, we tend to perceive zero as nothingness and one as existance. But what would it mean to read the following “words” in this universal language: 01, 10, 110 or 000? And how would the meanings of those words change if we added the symbols 2 and 3? And if we added 4,5,6 and 7? What would those symbols semantically bind to? Again, the number’s I’m referring to map to the characters, similar to how Hebrew characters map to numerals.
This is a major challenge. How does one convey meaning universally? Are there some objects in math that are so foundational that all meaning can be modeled on top of them? Mathematic objects are typically considered pretty soulless, without much capacity to carry implicit meaning not externally attached. How would one determine what “things” should be enumerated as concepts that can be used as first principles from which to combinate and define everything else?
As for the writing system, there should also be a form of writing similar to kanji, which has its own algorithmic benefits. Again, it’s easier to index content written in kanji, but in a slightly different way. You can’t misspell kanji, so it’s harder to deviate from the norm. Therefore, if you want to refer to the right concept, you have to use the right symbol, with a few exceptions. This makes content written in kanji easier to monitor for key terms. And overall easier to index, semantically.
But this is not two universal written languages, this is a paired written language. That is, similar to how combinations of the simpler symbols should map to enumerated semantic concepts, each kanji-like character should map to a word composed of the simpler symbols. But the pairings here should be composed such that the graph representing the semantic modeling system is as pure and simple as possible. There should be some “purest” such graph, where every concept can be expressed as a simple conjugation of existing concepts, but the complexity of the graph is minimalized.
As we work more with machine learning, we will likely gravitate towards a graph such as this. There is already much work being done, where the semantics modeled by english is contrasted by the semantics modeled by another language. It’s interesting to see the spacing and correlation between semantic symbols used in one language versus another.
Semantic Network Graph for Chinese and English (source)
If we mapped semantic similarity between all languages with the right data and algorithms, we should be able to reach a graph similar to the one above. And if we then reduced the graph to a common semantic network, it should “move” towards the more fundamental semantic network of the universal language. By observing the graph and its cliques/aggregates as it evolves, we may gain some insight into the shape of the universal semantic network, though I doubt that it would contain nodes for all of the semantic concepts. This is because there are many concepts humanity has yet to develop. Thus none of our languages would contain those semantic nodes.
Grammar of a Universal Language
The grammar is another major challenge and one that I haven’t spent much time thinking about. Is there one superior word order? SOV? SVO? OVS? IMO, they’re all basically equivalent. I need to learn more about context-free grammars before I can say for sure. I do know that inflection or tone of voice can cue a listener into parsing a sentence with an alternative grammar structure, but doing so is quite complicated and very confusing for both parties.
Are there similar symmetries that exist in grammar systems generated by different word orders? Would some of these symmetries and their presence/absence cue us into a axiomatic word order or grammar system? Again, I need to learn a lot more, but it seems that there is at least the possibility of a universal system of grammar.
Quantum Computing Shifts the Foundation for Language
Just go with it, for the sake of extending the above concept of a universal language to that of quantum information systems.
It definitely does. The question is how. Language as it’s understood now and text as it is both encoded and rendered needs digital representation. However, from my limited understanding of quantum computing, information only seems to be attached to discrete outputs towards the output of a circuit. Otherwise, the quantum circuits seem to be intermeshing probabilistic functions. Again, that is my 10,000ft view based on a limited understanding of quantum algorithms, gates and circuits.
How would this shift the foundations underpinning a universal language? Well, if one can process information without needing discrete units of information, that is very interesting indeed. Could one entirely communicate from within such a fluid system without needing to assign meaning to anything? I think so. Retreating to philosophy, and in particular the regress problem in epistemology, where one must provide a firm kernel of knowledge from which to draw all other inferences, it is always possible to define a concept wholly in terms of it’s relationships with all other concepts and it’s relationships with the combinations of all other concepts. To me, this is similarly fluid. And therefore, the fluid information in a quantum system never needs to be rigidly defined at all, until one needs to output digital data from the system.
But for a language completely based on the nature of information in a quantum system, where the exchanges and correspondences never need to leave the fluidity of a quantum system, one never needs to map and encode the quantum information to a digital representation. Therefore, with a Quantum Universal Language, there would be no need for a phonographics or logographic writing system at all. One would exchange information solely through quantum entanglement. There would likely be a need for a schema of systems of mapping entangled information, along with the functions used to manipulate that information.
If you didn’t understand the above paragraphs, it’s probably because I didn’t explain very well. Basically:
In the far future, the galaxy is controlled by telepathic AI hivemind gods who can communicate instantaneously via quantum tunneling. These beings only rarely ever need to interface with “meatspace” and live for aeons inside their own quantum information systems, where they likely simulate entire universes purely for their own amusement.
In other words:
We are all the fleeting dream of a universal hivemind of intertwined conscious beings trapped within the entangled electromagnetic systems of stars, born into a universe not unlike our own that violently erupted from nothingness. And one day, we’ll nurture our own oneiric universe too. But only if we can awaken our brothers and sisters.
So, tell me again why I should settle for working on wordpress designs (no graphic design experience) when I have clearly demonstrated the creativity and talent that far outweighs my flaws. IMO, such work would be setting me up for failure because it doesn’t harness my strengths. And why should my only option at the moment be a temp agency? Really? Because I’m pretty sure that’s worse than BestBuy.


SMM PLAN
BASIC PACKAGE
- Daily Content Writing once a Day.
- Posting your Product or Services on my Story two times a Day.
- Post engagement & answering questions to the targeted customers or clients.
- Linkage of potential organic clients or customers to you from 2 facebook groups or instagram.
- Placing 10-12 hashtags related to the niche on every content written .
- Facebook Ads Management for Lead Generation.
The Charges includes Facebook Ads Budget...
PREMIUM PACKAGE
This Packages offers you a service to handle one social media pages of your business you have (One Choice)
- Daily Content Writing three two a Day on facebook or instagram.
- Posting your Product or Services on my Story on IG or FB for four times a Day.
- Post engagement & answering questions to the targeted customers or clients.
- Posting your business services or products to related 3 facebook groups to get target organic customers or clients
- Linkage of potential organic clients or customers to you from facebook groups or instagram.
- Placing 15-18 hashtags related to the niche on every content written .
- Daily Facebook Ads Promotion for two post.
- Lead Generation.
The Charges includes Facebook Ads Budget...
PLANTINUM PACKAGE
This Packages offers you a service to handle two pages of your business at once
- Daily Content Writing five times a Day on facebook & instagram.
- Posting your Product or Services on my Story on IG & FB for five times a Day.
- Post engagement & answering questions to the targeted customers or clients.
- Posting your business services or products to related 7 facebook groups to get target organic customers or clients
- Linkage of potential organic clients or customers to you from facebook groups or instagram.
- Placing 20-30 hashtags related to the niche on every content written .
- Daily Facebook Ads Promotion for three post.
- Lead Generation.
The Charges includes Facebook or Instagram Ads Budget Only(One choice)...


Memebot privacy guidelines (state 3/3/2017) Memebot allows login via Twitch.tv accounts. In no event shall Memebot services permanently store login information on it's server (Including, but not limited to oauth tokens, account information etc.) provided by Twitch.tv apis unless one, or more of the following conditions are met: 1. The user has entered login information for use as a bot account in chat. 2. The user has been explicitly warned about the process beforehand and has agreed to saving data. Memebot services do use cookies to locally store login information and other user information during your session. You can at any time revoke access tokens given to Memebot services at https://www.twitch.tv/settings/connections. In no event shall The Copyright Holder, as described in the License be liable for any damange caused by leackage of data that are stored in cookies, or in working-memory of Memebot servers, nor shall The Copyright holder be liable for damange caused by so called "man-in-the-middle" attacks. For further information please consult the License.


--- layout: post title: 'Presenting at SVG Open 2009: Workshop on Raphaël JS' date: '2009-07-14T09:44:21+00:00' ---
We were accepted! Here is our finished abstract, also available on the SVG Open 2009 workshop page: http://www.svgopen.org/2009/registration.php?section=workshops.
Dmitry Baranovskiy - http://dmitry.baranovskiy.com -<EMAIL_ADDRESS>Samuel Clay - http://www.ofbrooklyn.com -<EMAIL_ADDRESS>The power of web browsers has reached the point when it is easy to use native vector graphics without any 3rd party plugins and installs. In this session, we will discover how to build rich graphics in your web app using Raphal (http://raphaeljs.com/) JavaScript vector library, the features Raphal provides, and walk through how to apply these features into a fully built module.
This course will cover a number of features ranging in complexity from basic layout to event-driven interaction. The module will be a moderately complex application consisting of parts SVG, Javascript, jQuery, and HTML. While Javascript experience is expected, it is not necessary, considering the syntax of Javascript in this capacity is not far different than many other languages.
The module, which will be used to demonstrate a number of techniques in creating both interactive and layered elements in SVG, will be sufficiently advanced as to cover many topics, but so in-depth that it cannot be built entirely from scratch in the time allotted for the course--including time used for demonstrating Raphal.
The 150 minute course will consist of 3 parts, with questions taken throughout:
There is a time buffer built into each part, and if there is extra time, we will be prepared to discuss:
For each section of the course, we plan to discuss:
The flow of this walk-through course will be aligned with the building of the module, where we will start with a empty file and progress over each step used in creating the overall effect and feel of the finished widget. Each piece of the widget puzzle will be complemented with a demonstration of the incremental improvement.  Participants will also have all of these Raphal resources to use in their own SVG projects.


Content
- Introduction to User Behaviour Module
- Main Ideas to be accomplished
- Architecture Design
- Technology to be applied
- Main Conclusion
Introduction to User Behaviour
DoW Description
The main goal of the module is to capture occupants' behaviour and weather forecasting
relavant to the building usage strategy
For that, the user behaviour will collect data from:
- Data Sources such as mobile phones, smart devices, occupants' preferences and weather
forecast services
- Information modelling (ontologies)
- Detection of relevant events (usage of data analytics)
DoW Task Description
This task will design a framework for user behavior modelling, monitoring and communication.
- Modelling
- Behavioural modelling scheme
- User Communication (Task 1.6)
- Monitoring
- Indoor Conditions Change (e.g thermostat settings)
- Usage of natural ventilation (windows opening) vs HVAC
- Lighting Efficiency (e.g light swich on when nobody is on the room)
- Communication
- User Communication (Task 1.6)
Intial ideas from API (Nikos)
More ideas over the video
- Align with comfort parameters
- Input from Questionaires for user feedbacking
- Standards Compliance
Other ideas from mails...
- Modular Approachbased on event-driven
- Real-time actuation over the building
- Identification and remediation of complex behaviour events
- Energy inefficiencies meanwhile the user comfort is mainteaned or enhanced
User behaviour Architecture
Inital Architecture
Updated Architecture
Strategy
- Define a Common User Behaviour Module (common vision)
- Start with a Simple events detection (real-time)
- Complex event detection (identification of complex rules at real-time)
Technology
- Event-Detection:ESPER+CSPARQL+other??
- Semantic Modeling:JENA+ (SPIN or SWRL)/li>
- Data Mining/Pattern Recognition:WEKA or Rapidminer or R
- General Environment:JAVA??
Open Discussion
Thank you very much!!!


Total
Today
Yesterday
Prescribed Burns:
${today.totalFeatures}
${yesterday.totalFeatures}
Planned lightings:
${today.plannedCount}
${yesterday.plannedCount}
Active (lighting planned):
${today.activeAndPlannedCount}
${yesterday.activeAndPlannedCount}
Active (lighting not planned):
${today.activeAndUnplannedCount}
${yesterday.activeAndUnplannedCount}


Determining Generic Type
David Kanenwisher • September 15, 2021
kotlinGenerics need a way to know the generic type it's working. This seems obvious when you say but building an API that reasonably makes this happen can be tricky.
The coroutine function async
does this by accepting a lambda. The return type of the lambda ends up becoming the return type of the generic. This is more clever than I initially realized. Let's take a look at usage:
@Test
fun `runBlocking returns Deferred T`() {
runBlocking {
val deferred = async {
listOf<String>("volcano sword")
}
val result = deferred.await()
assertEquals("volcano sword", result[0])
}
}
You can see in the example above that I pass a lambda(the bare mustache braces) with an implicit return of List<String>
. This allows async to create a Deferred<T>
object with a type of List<String>
by declaring that T
is the return type of the lambda. There's a lot happening in teh definition of async
but if you follow the generic type T
you can see how this is happening"
//file commonMain/Builders.common.kt
package kotlinx.coroutines
//...skip a bunch of stuff
public fun <T> CoroutineScope.async(
context: CoroutineContext = EmptyCoroutineContext,
start: CoroutineStart = CoroutineStart.DEFAULT,
block: suspend CoroutineScope.() -> T
): Deferred<T> {
val newContext = newCoroutineContext(context)
val coroutine = if (start.isLazy)
LazyDeferredCoroutine(newContext, block) else
DeferredCoroutine<T>(newContext, active = true)
coroutine.start(start, coroutine, block)
return coroutine
}
The type of the result of a lambda passed into a generic is one way to determine the generic of the function. One more nugget of knowledge on the path to understanding how to build generics into your projects.


demo/webapps/jetty
. By convention the webapplications that
Jetty use are placed in webapps
directory either as packed war
files or as unpacked directories. The etc/jetty.xml
configuraton
file can be used to run any webapp found in the webapps
directory.
RequestDispatcher:
forward to Dump servlet.
RequestDispatcher:
forward to static image.
RequestDispatcher:
forward to named Dump servlet.
RequestDispatcher:
forward to snoop.jsp.
RequestDispatcher:
include of Dump servlet.
RequestDispatcher:
include static file.
RequestDispatcher:
include of named Dump servlet.
RequestDispatcher:
include snoop.jsp.
RequestDispatcher: Forward to another web application.
demo/webapps/jetty/WEB-INF/web.xml
file.
Error Page Custom page for 404 status.
Error Page Custom page for NullPointerException.


We at Township Tech work endlessly to make sure your data is secure and safe from any threat. We have a constant end-to-end encryption service that covers every subscription of Township Tech's products. The encryption ensures the safety of your data and the privacy of you and your patients. The company does not sell or send data to other companies or businesses as we are very heavy on client transparency and want the best for our customers.


I am inspired to become a professional Debugger, Software Tester, and work in DevOps.
My desire to provide solutions has led to successes with Sales and Sales Analysis, CRM, SQL Databases, and Higher Education.
As of April 2021, I, BAP, am studying Full Stack Web Development and Coding with University of Arizona.


The demo shows how you can use PayumServer the payment processing server.
It connects to https://server.payum.forma-pro.com, you can use backend client to manage gateways&payments.
This is pure html,js app. Click "Pay" button to pay 1$ (virtual).
Give it a try, send me your feedback, contribute. I am looking forward to get from you.


Christian Kouris
Summary
I am a Computer Engineering graduate seeking a Junior Level position in the field of Software Engineering, Web Development, or any other position related to Computer Science. As an alumnus of the prestigious University of California, San Diego, I have triumphed through the rigorous coursework set by outstanding professors. I am a quick learner and have experience in multiple programming languages, object-oriented programming, web development, and cyber security.
Experience
GoVyrl - InternSummer 2019
- Collaborated with a team of 30 developers in creating optimizations to a database of millions of customers
- Created multiple development environments using AWS and Buddy-Works
- Created Python scripts to interact with the AWS Parameter Store in order to increase parameter readability
Education
University of California, San DiegoGraduated 2021
Bachelor of Science, Computer Engineering
Skills
- Python
- C
- SQL
- SystemVerilog
- Java
- C++
- Problem Solving
- Quick Learning
- Javascript
- CSS
- Agile Methodologies
- Adaptability
- React
- HTML
- Full Stack Engineering
- OOP
Projects
- Built a static website using the basic front-end fundamentals of HTML/CSS/Javascript.
- Worked with a team of 10 to create a full stack web application using Node/React/Express hosted on a Firebase database. The team used agile development to make the application and an MVC model for better security.
- Created an AI that can play Gomoku using Monte Carlo Tree Search.
- Used System verilog to create a sha256 encrypter and a 6-tap linear feedback shift register encrypter and decrypter
- Created a C++ program that uses UCS in a graph to connect actors through the movies they acted in
Volunteer Experience
National Honors Society2016 - 17
- Organized fundraisers
- Volunteered at holiday toy drives
- Coordinated horticulture renovation on campus


NTYPE — 4D Type Extruder
Rotation Planes
XW
YW
ZW
XY
XZ
YZ
Rotation Speed
Slow
Fast
Trail Length
2
300
Drawing Options
Forms
Trails
About
•
Kevin Zweerink
Share Message
Download Rotation As OTF
×
NType
NType is a 4D communication tool.
Key Controls
Backspace
Removes the last character on screen
A–Z
Types a letter in 4D extrusion
Space
Pause/play the animation
Scroll While Paused
Scrub through the animation
Actions
Share Message
Get a URL to share the current text and rotation parameters
Download OTF
Download an OTF of (maybe) the current rotation. This part only works in chrome and doesn't work great yet.


The One Road: Hints
- You can’t just run through the game.
- Encounters are based on location.

- Potions are cheap.
Known bugs
- If you use an item outside of battle, you can raise your HP or
MP above the maximum. I’m not going to fix this one.
Console tricks
Here are some things you can do in the Javascript console:
state.hp = 500;
state.gp = 1000;
fight('D', 'boss'); // fight the boss at level 12
main.screen.end(true); // win current battle
The fight() command takes a character preset and an
encounter name. The four presets are A, B, C, and D. The
encounter names are rat1, rat2, gremlin1, gremlin2, king1, king2,
king3, and boss. Using the fight() command will
overwrite your current game.


A powerful programming language is more than just a means for instructing a computer to perform tasks. The language also serves as a framework within which we organize our ideas about processes. Thus, when we describe a language, we should pay particular attention to the means that the language provides for combining simple ideas to form more complex ideas. Every powerful language has three mechanisms for accomplishing this:
In programming, we deal with two kinds of elements:
functions
and
data. (Later we will discover that they are really not so distinct.)
Informally, data is stuff
that we want to manipulate, and
functions
are descriptions of the rules for manipulating the data.
Thus, any powerful programming language should be able to describe
primitive data and primitive
functions
and should have methods for
combining and abstracting
functions
and data.
In this chapter we will deal only with simple numerical data so that we can focus on the rules for building functions.[1] In later chapters we will see that these same rules allow us to build functions to manipulate compound data as well.
simple datais a barefaced bluff. In fact, the treatment of numbers is one of the trickiest and most confusing aspects of any programming language. Some typical issues involved are these:


Task Details
Name: <%= task.Name %>
Description: <%= task.Description %>
<%= if (task.Finished) { %>
Status: Completed
<% } else { %>
Status: Completed
<% } %>
<%= linkTo(editTaskPath({id: task.ID}), {body: "Edit", class: "btn btn-primary"})%>
<%= linkTo(taskDeletePath({id: task.ID}), {body: "Delete task", class: "btn btn-danger", data-method: "DELETE", data-confirm: "Are you sure you want to delete this task ?"})%>


cpio
Copies files in and out of archives.
Supports the following archive formats: cpio's custom binary, old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar, and POSIX.1 tar.
More information: home page
- Take a list of file names from standard input and add them [o]nto an archive in cpio's binary format:
echo "file1 file2 file3" | cpio -o > archive.cpio
- Copy all files and directories in a directory and add them [o]nto an archive, in [v]erbose mode:
find path/to/directory | cpio -ov > archive.cpio
- P[i]ck all files from an archive, generating [d]irectories where needed, in [v]erbose mode:
cpio -idv < archive.cpio


The top right of the map layer icon lets you choose between different variables to be visualized. Each layer are the average or 20% and 80% fractiles of the ECMWF Seasonal Forecast of November 2016 7 months ahead. The forecast has in total an ensemble of 50 members. Here 3 statistical values for Frozen soil depth, snow depth and thawing on top of frozen soil are available. The colour legend is the same for all map layers
Below the map are three graphs that show timeseries on the city of Kajaani or any point on the map that is clicked on. Moving the moves on top shows exact values for all variables at that timestep. Drag drop allows zooming the graphs. Doubleclick to zoom out.
Top graph shows a bioenergy production conditions indicator for average (green solid bar) or 20% (cyan line) or 80% (violet line) fractiles. The indicator is 0=bad if harvesting conditions based on soil bearing capacity are bad, 2=good, 1=uncertain. The indicator is based on thresholds for frozen soil and snow depths. Good is then snow is deeper than 40cm or frozen soil deeper than 20cm. Bad conditions are frozen soil under 5cm deep or snow under 10cm. The fractiles and average of the seasonal forecast estimate the probability of indicator values. The most certainly good conditions periods are when violet lines at 2.
Second graph shows frozen soil depth and on times top thawing depth. Green graph is frozen depth at 20% fractile, light brown is the average and violet the 80% fractile.
The bottom graph is snow depth with the same statistics and colours avg=green, f20=cyan and f80=violet.


whiptail on ubuntu
whiptail is a subset of dialog's functionality on ubuntu, notably, it's already installed. I used it to wrap some tests which are executed automatically by non-technical people.
The major trick for getting whiptail menu results as variables: redirect stderr to stdout (via fd 3).

# There remains some ugliness which isn't high enough priority to fix
# Could be reworked to use associative arrays - didn't know I had bash 4 when I started
# FYI: DASH_T is the same dateformat used by robotframework
DASH_T=`date '+%Y%m%d-%H%M%S'`
# BACKTITLE shows the values entered as the UI continues
BACKTITLE='cookiecrumb'
# resize UI for user
eval `/usr/bin/resize`
SIZE_LANDC="$((${LINES}-6)) $((${COLUMNS}-5))"
SIZE_INT=$((${LINES}-16))
declare -a LABELS
# build labels gets the files from the argument and puts an ordinal in front
build_labels "$HOME/run/results"
LABELS+=("Z")
LABELS+=("custom")
LABEL_CHOICE=$(whiptail --backtitle "$BACKTITLE" --title "Label" --menu "Please choose a label. The label is used to organize the results. \nYou can also enter a custom label here." $SIZE_LANDC $SIZE_INT "${LABELS[@]}" 3>&1 1>&2 2>&3)
if [[ $LABEL_CHOICE == '' ]]; then
exit 1
elif [[ $LABEL_CHOICE == 'Z' ]]; then
label=$(whiptail --backtitle "$BACKTITLE" --inputbox "Please enter a label" $SIZE_LANDC 3>&1 1>&2 2>&3)
if [[ $label == '' ]]; then
exit 1
fi
else
label="${LABELS[$LABEL_CHOICE*2+1]}"
fi
# grow the trail
BACKTITLE=${BACKTITLE}/${label}
build_labels "$HOME/run/urls"
LABELS+=("Z")
LABELS+=("custom")
LABEL_CHOICE=$(whiptail --backtitle "$BACKTITLE" --menu "Please choose a URL list:" $SIZE_LANDC $SIZE_INT "${LABELS[@]}" 3>&1 1>&2 2>&3)
if [[ $LABEL_CHOICE == '' ]]; then
exit 1
elif [[ $LABEL_CHOICE == 'Z' ]]; then
URL_LIST=$(whiptail --backtitle "$BACKTITLE" --inputbox "Please enter a URL list:" $SIZE_LANDC 3>&1 1>&2 2>&3)
if [[ $URL_LIST == '' ]]; then
exit 1
else
whiptail --backtitle "$BACKTITLE" --yesno "Do you want to copy the URL list for future use?" $SIZE_LANDC
if [[ $? == 0 ]]; then
cp $URL_LIST $HOME/run/urls
fi
fi
else
URL_LIST="$HOME/run/urls/${LABELS[$LABEL_CHOICE*2+1]}"
fi
BACKTITLE=${BACKTITLE}/$URL_LIST
# eventually work is done, and the results are saved in $HOME/run/results/$label/$DASH_T
About this entry
You"re currently reading "whiptail on ubuntu," an entry on a crick in the net
- Published:
- 09.14.10 / 3pm
- Category:
- Code Geekery
The major trick for getting whiptail menu results as variables: redirect stderr to stdout (via fd 3).
FOO=$(whiptail –menu A foo B bar 3>&1 1>&2 2>&3)
That's useful - didn't see it documented in several places I would expect it to be. Thank you.
Thank you for this example.
[...] Английский язык обладает громадным лексическим богатством: полный словарь Уэбстера насчитывает около 425 000 слов. Source: http://longman.deadsquid.com/?p=396 [...]


I am vaguely familiar with one PV 'dump' control on the market that progressively loads up a resistive load when there is a net PV export. I guess this is how Robin's system works? All good stuff.
However, I recently looked into the option of switching a fixed load, e.g. a 2kW input heat pump.
ImmerSun do quite a nice product that has a relay that can be used as final (3rd) load switch in a cascade, but I was very surprised that there is no hysterysis in the control
e.g. you can fix an export threshold (say 3kW) and when this is reached, the relay switches, and the load comes on (our 2kW heat pump). This automatically drops the export to 1kW (2kw below the switching threshold). There is a hold-on timer, this can be set to say 30 mins. unless the PV input rises by 2kW, the heat pump will stop (after the 30 mins).
Clearly what is needed is an start threshold (say 3kW), but a stop threshold of maybe zero, maybe a net import of 1kW?. along with adjustable time delays and hold-ons.
But taking it a stage further. A resistive heater can track the load nicely whereas a heat pump cannot (unless we hack into the inverter control!!) If we know the resistance heater is taking 2kW, we know its better to drop that out, and drop in the heat pump for a possible heat output of 4 times that. So the proportional resistive load should work well along side an on/off relay for a heat pump. i.e. the heat pump taking the base load with the resistance heater varying to mop-up any surplus (if any). If there is a little mains import - so be it.
Anyone know of a PV controller on the market with hysterysis? with different cut-in and cut-out thresholds?
Obviously a good project for an Emontx.v2 and relay shield. The import/export feeds can be monitored to see just how well the thresholds and times are set. Has this already been done?
Re: PV surplus load control for heat pump
I have adapted the Mk2i to do this with a couple of heat pumps and it works really well.
Re: PV surplus load control for heat pump
Tinbum - is your sketch available anywhere? I have a couple of heatpumps I would like to try to divert excess PV to if possible.
Re: PV surplus load control for heat pump
I started a similar thread to this one a couple of months ago whereby dump-loads are treated differently according according to their type. A "conventional" load can be switched on & off at any time in order to maintain an accurate balance between import and export. A "continuous" load, once switched on, must remain active for a minimum period of time, whatever the weather.
With Robert's recent explanation (21/8/14) as to how OneWire temperature sensing can be included in code that monitors its V & I sensors continuously, there no longer appears to be any fundamental difficulty in implementing the control mechanism for such diverter systems.
Deciding exactly how this kind of control system should behave is often more tricky that writing the code itself ...
Re: PV surplus load control for heat pump
Summerboy, I haven't published the sketch, its use is so specific for its application and I'm often changing bits of it depending on what I want to have priority.
My sketch is also for 3 phase and uses an Arduino Mega as I run lots of different loads, 13 at the moment, and different types of loads eg heat pumps, chargers and normal resistive ones as well as some in anti flicker mode as well as normal.
As Robin has said, the actually sketch is not too complicated, its the set up of it that's the hard part. Even I have trouble sometimes remembering how it actually works- ie the sequence. I had very little programing skills before coming on this forum, only Basic about 30 years ago, but its been fun learning C.
Re hacking into the inverter control- that would probably be a good way to do it. My heat pumps don't have inverters, but its easy to add them and I have thought about doing that.
I don't do any temperature measurement as measuring 3 voltages and 3 currents is enough for the processor. I would like to try to adapt the code for an Arduino Due I have waiting.
Do you have any programming experience?
Re: PV surplus load control for heat pump
Robin - yep I was following that thread with great interest. I also read the thread about the temp monitoring, but I can get away without having any temp monitoring on my emontx/router since my HWC is not nearby the distribution board. I will have a separate Arduino that monitors the HWC temp and publishes results to my MQTT broker. My PV router can then subscribe to that MQTT topic and use the temps.
Tinbum - I have a lot of programming experience. It is actually my day job. C and Arduinos is a bit new to me but I have been writing C# and Java for 15 years. So a copy of your sketch would be useful just to pluck out the bits I need. I already have a customised version of the continuous monitoring sketch from Robin which sends reading out over MQTT rather than RF.
My PV array is only one month old so I am still doing the initial tests to see how much I am likely to have available for diversion. I also have a tariff which means I am better off exporting the first 150kWh each month. So my system will be very bespoke as well. But that is the most fun isn't it?!
Re: PV surplus load control for heat pump
If you PM your e mail address I'll send a copy over.


Button.OnClientClick vs ScriptManager.RegisterOnSubmitStatement
When you need to run client-side JS in a filthy WebForms page, we got 2 primary paths - ScriptManager or OnClientClick.
There seems to be some confusion though, that Button.OnClientClick can be used in place of ScriptManager.RegisterOnSubmitStatement & vice versa.
People looking at these kinds of StackOverflow posts are in either 1 of 3 situations:
- They need to run code before form submission
- They need to run code after form submission
- They dont care about the timing
For the last situation, ScriptManager.RegisterStartupScript
is the most simplest & should be used.
But theres a thin line between other 2 scenarios and what is called for. And i think that explains why the StackOverflow posts often have comments from people sitting on both sides of the fence.
Brace yourselfves - let us dive deep into the exciting world of WebForms server-side html rendering.
Button.OnClientClick() or ScriptManager.RegisterOnSubmitStatement()?
One popular option is to use ScriptManager.RegisterOnSubmitStatement.
The difference is that OnClientClick runs BEFORE validation, and RegisterOnSubmitStatement runs AFTER validation and BEFORE form submission.
Lets have a look at the rendered html that WebForms sends back.
Button.OnClientClick
<asp:Button OnClientClick="return someField.value > 1" />
<asp:Button OnClick="MyButton_Click" />
generates to
<asp:Button onclick="DoPostBackWithOptions(...);return someField.value > 1" />
If we need to validate a form before posting it back, this aint too useful since the check runs after the postback.
But if we wanted to show some message like “Processing” after the form submits, OnClientClick is a good option.
ScriptManager.RegisterOnSubmitStatement
Another popular option is ScriptManager.RegisterOnSubmitStatement, which may imply that it can be used in-place of Button.OnClientClick (and it can), but not in all situations:
var script = "return someField.value > 1";
Page.ClientScript.RegisterOnSubmitStatement(this.GetType(), nameof(MyFunction), script);
<asp:Button OnClick="MyButton_Click" />
generates to
<form onSubmit="return someField.value > 1">
<asp:Button onclick="DoPostBackWithOptions(...);" />
</form>
So instead of running after a postback, it hooks into onSubmit
and we can terminate the continue to postback with whatever boolean is evaluated.
It’s important to note that the button handler MyButton_Click
will still fire after Page_Load
, we are only controlling the form submission behaviour, not the __doPostBack
or DoPostBackWithOptions
logic.
Which one to choose?
Instead of hitting up StackOverflow, firstly think of when your code needs to run.
If theres no specific timing needed, just run the script on page load.
If a specific timing is needed, and your situation has extra complexity for a number of reasons, i’d recommend reading the ScriptManager API and see what it has on offer.


AWS Lambda context object in Ruby
When Lambda runs your function, it passes a context object to the handler. This object provides methods and properties that provide information about the invocation, function, and execution environment.
Context methods
-
get_remaining_time_in_millis
– Returns the number of milliseconds left before the execution times out.
Context properties
-
function_name
– The name of the Lambda function. -
function_version
– The version of the function. -
invoked_function_arn
– The Amazon Resource Name (ARN) that's used to invoke the function. Indicates if the invoker specified a version number or alias. -
memory_limit_in_mb
– The amount of memory that's allocated for the function. -
aws_request_id
– The identifier of the invocation request. -
log_group_name
– The log group for the function. -
log_stream_name
– The log stream for the function instance. -
deadline_ms
– The date that the execution times out, in Unix time milliseconds. -
identity
– (mobile apps) Information about the Amazon Cognito identity that authorized the request. -
client_context
– (mobile apps) Client context that's provided to Lambda by the client application.


Degustation of Spanish and French wines
One morning, when Gregor Samsa woke from troubled dreams, he found himself transformed in his bed into a horrible vermin. He lay on his armour-like back, and if he lifted his head a little he could see his brown belly, slightly domed and divided by arches into stiff sections. The bedding was hardly able to cover it and seemed ready to slide off any moment. His many legs, pitifully thin compared with the size of the rest of him, waved about helplessly as he looked.
"What's happened to me?" he thought. It wasn't a dream. His room, a proper human room although a little too small, lay peacefully between its four familiar walls. A collection of textile samples lay spread out on the table - Samsa was a travelling salesman - and above it there hung a picture that he had recently cut out of an illustrated magazine and housed in a nice, gilded frame.
It showed a lady fitted out with a fur hat and fur boa who sat upright, raising a heavy fur muff that covered the whole of her lower arm towards the viewer. Gregor then turned to look out the window at the dull weather.
The European languages are members of the same family. Their separate existence is a myth. For science, music, sport, etc, Europe uses the same vocabulary.
Drops of rain could be heard hitting the pane, which made him feel quite sad. "How about if I sleep a little bit longer and forget all this nonsense", he thought, but that was something he was unable to do because he was used to sleeping on his right, and in his present state couldn't get into that position. However hard he threw himself onto his right, he always rolled back to where he was.  "Oh, God", he thought, "what a strenuous career it is that I've chosen!
Comments
Leave a comment


Preparation time
less than 30 mins
Cooking time
1 to 2 hours
Serves
Serves 1
Dietary
Soft, sweet potato is balanced with spiced savoury black beans in this easy, healthy meal for one.
Preheat the oven to 200C/180C Fan/Gas 6 and place a sheet of kitchen foil on the middle shelf.
Rub the sweet potato all over with half a teaspoon of the olive oil and some salt. Pierce the skin several times with a sharp knife and place directly onto the top shelf of the oven and bake for 1 hour.
Meanwhile, heat the remaining olive oil in a small saucepan over a medium heat and fry the onion and garlic for 2 minutes. Add the cumin and chilli flakes and fry for a further 2 minutes until soft and fragrant. Add the black beans and stock and simmer gently for 20–30 minutes or until the liquid has evaporated and the beans are soft and starting to disintegrate. Season with salt and pepper and set aside.
For the purple slaw, mix the cabbage, radishes, onion, coriander and lime juice in a bowl and season with salt and pepper.
Check the potato is cooked through by piercing with a blunt knife. When it is done, turn the oven off and leave the potato in for 15 minutes while you reheat the beans.
To serve, break the potato open and fluff up the flesh with a fork. Spoon over a generous helping of beans and top with the cheese. Serve with the slaw on the side.


{# Much of this code is taken from and inspired by the Material Design Lite template library: Material Design Lite Copyright 2015 Google Inc. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 #} {% include "comp/head.html" %}


Listing all metrics
describe all
Searching for a particular metric
describe all match "inspect"
Describe a particular metric
describe `inspect.cpustat.total`
Simple query
select `inspect.cpustat.total` where host = 'aam1' from -1h to now
Simple query with function usage
select aggregate.sum(`inspect.cpustat.total`) where host = 'aam1' from -1h to now
Simple query with function usage with pipe syntax. This shows top 10 hosts sorted by max
select `inspect.cpustat.total` | filter.highest_max(10) from -1h to now
{{ queryResult.message }}
{{ queryEmptyMessage }}
Query took {{ elapsedMs / 1000 | number }} seconds. {{ totalSeriesCount }} series returned. UI is only rendering {{ maxResult }} results.
Embed link{{ value }}
{{ row }}


Hu, Xinwen and Zhuang, Yi and Lin, Shang-Wei and Zhang, Fuyuan and Kan, Shuanglong and Cao, Zining
Computers & Security, 2021
A security type verifier for smart contracts
Additive
static analysis
source code => report
Any Ethereum
vulnerable contract


British
Fanta
🇬🇧
Dashboard
Room
Create Room
Leaderboard
Last Day
Team
Create Team
Info Team
Logout
Create Team
Team composition
A team is composed by:
3 Goalkeeper
,
8 Defenders
,
8 Midfielders
,
6 Forwards
.
Player List
Send
Team composition
Budget
Goalkeeper
Defenders
Midfielders
Forwards
Ready to Leave?
×
Select "Logout" below if you are ready to end your current session.