Methods
Create a request string (header and body)
buildRequest(string $host, string $method, string $url, string $body) : string
Parameters
Returns
string
- assembled HTTP request string
Create a one-time HTTP connection by opening a socket to the server
It is the caller's responsibility to close the socket
createConnection(ConnectionOptions $options) : resource
Parameters
Exceptions
Returns
resource
- socket with server connection, will throw when no connection can be established
Execute an HTTP request on an opened socket
It is the caller's responsibility to close the socket
transfer(resource $socket, string $request) : string
Parameters
$socket
resource
- connection socket (must be open)
$request
string
- complete HTTP request as a string
Returns
string
- HTTP response string as provided by the server
Validate an HTTP request method name
validateMethod(string $method) : bool
Parameters
Exceptions
Returns
bool
- always true, will throw if an invalid method name is supplied
Constants
Chunk size (number of bytes processed in one batch)
CHUNK_SIZE
End of line mark used in HTTP
EOL
HTTP DELETE string constant
METHOD_DELETE
HTTP GET string constant
METHOD_GET
HTTP POST string constant
METHOD_POST
HTTP PUT string constant
METHOD_PUT
HTTP protocol used
PROTOCOL


people of march 2016
Claire Peckham
Claire Peckham’s work has appeared in several publications, including Blind Glass and HOUND, and several galleries, including 4Culture and Jacob Lawrence in Seattle, Washington. She holds a BFA in Photomedia, and a BA in English from the University of Washington, and currently lives in Seattle where she studies ballet in her free time.
Beyza Ozer
beyza ozer would like you to know that you are literally made of moon dust. beyza's work has appeared in & is forthcoming from the offing, pinwheel, vinyl poetry, witchcraft magazine, the feminist wire, & others. beyza is the author of GOOD LUCK WITH THE MOON & STARS & STUFF (bottlecap press 2015) & the forthcoming I DON'T MEAN TO REDSHIFT (maudlin house 2016). they are deputy director of social media at yesyes books & a co-editor of the journal inferior planets. beyza lives in chicago where they attend columbia college, work at the feminist bookstore, and intern at the poetry foundation.
Guy Melvin
Guy Melvin has recently returned to North Philadelphia from South East London. He has an MA in Literary Theory, and works in IT. His work can be found in Have U Seen My Whale, Keep This Bag Away From Children, Different Interest, Electric Cereal, and occasionally on his Twitter @GuyMelvinGuy.
Jessica Rhodes
Jessica Rhodes is a twenty year old poet, currently studying for her undergraduate degree in English Literature with Creative Writing at the University of East Anglia.
Phil SaintDenisSanchez
Phil SaintDenisSanchez is originally from New Orleans and currently lives in Bushwick, Brooklyn. He was bitten by a poisonous snake on the Thai island of Koh Phangan in January 2014.
Faye Chevalier
Faye Chevalier is the assistant web manager at APIARY Magazine as of December 2015 and a baby-goth Sailor Mercury. Her poetry and essays have been featured in Metazen, OCHO, Voicemail Poems, and elsewhere. She currently lives in Philadelphia where she is a first-year MA student at Temple University studying feminist theory. Find her online at @bratcore.
TS Hidalgo
TS Hidalgo (43) holds a BBA (Universidad Autónoma de Madrid), a MBA (IE Business School), a Master in Creative Writing (Hotel Kafka) and a Certificate in Arts Administration (New York University). His works have been published in magazines like Otoliths and By&By, and has been winner of prizes like Criaturas feroces (Editorial Destino) or Pandora Magazine in short story or finalist at Festival Eñe in novel. He has developed his career in finance and stock-market.
William James
William James is a poet, aging punk rocker, and train enthusiast from Manchester, NH. He's a contributing editor for Drunk In A Midnight Choir and the author of rebel hearts & restless ghosts (Timber Mouse Publishing, 2016). Follow him on Twitter (@thebilljim) or online at http://www.williamjamespoetry.com
Megan Willoughby
Megan Willoughby is a human from Los Angeles. She edits at tNY.Press. You may read her words at: theEEEL, Queen Mob’s Tea House, Electric Cereal, Potluck Mag, and the 3rd page of Google search. She half-heartedly blogs at flusteredpoet.tumblr.com.
Felino A. Soriano
Felino A. Soriano directs supported living and independent living programs providing supports to adults with developmental disabilities. His poetry appears in CHURN, BlazeVOX, 3:AM Magazine, The National Poetry Review, Small Po[r]tions, and elsewhere. His books of poetry include sparse anatomies of single antecedents (2015), Of isolated limning (2014), Pathos|particular invocation (2013), Of language|s| the rain speaks (2012), and Intentions of Aligned Demarcations (2011). He publishes the online journal Of/with. Visit felinoasoriano.info for more information.
Katie Burke
Katie Burke is a writer living in Chicago and the last thing she googled was "Conor Oberst shirtless?". She is a reviewer for Probably Crying and she has work featured in Electric Cereal and The Fanzine.


AttachmentId |
typealias AttachmentId = SecureHash |
AttachmentStorage |
An attachment store records potentially large binary objects, identified by their hash. interface AttachmentStorage : CordaServiceInjectable, CordaFlowInjectable |
NotaryLookupService |
Lookup of notary services and their types on the network. interface NotaryLookupService : CordaFlowInjectable, CordaServiceInjectable |
StateLoaderService |
interface StateLoaderService : CordaServiceInjectable, CordaFlowInjectable |
StatesToRecord |
Controls whether the transaction is sent to the vault at all, and if so whether states have to be relevant or not in order to be recorded. Used in TransactionService.record enum class StatesToRecord |
TransactionMappingService |
interface TransactionMappingService : CordaServiceInjectable, CordaFlowInjectable |
TransactionService |
interface TransactionService : TransactionStorage, TransactionMappingService, TransactionVerificationService, CordaServiceInjectable, CordaFlowInjectable |
TransactionStorage |
interface TransactionStorage : CordaServiceInjectable, CordaFlowInjectable |
TransactionVerificationService |
Provides a transaction verification service. interface TransactionVerificationService : CordaServiceInjectable, CordaFlowInjectable |
DuplicateAttachmentException |
Thrown to indicate that an attachment was already uploaded to a Corda node. class DuplicateAttachmentException : FileAlreadyExistsException |
isValidating |
Returns true if and only if the given Party is a validating notary. fun NotaryLookupService.isValidating(party: Party): Boolean |


01 May 1997
Disease Outbreak Reported
Lassa fever re-emerged as a public health problem in Kenema in eastern Sierra Leone during 1997. From January to 19 April 1997, 799 cases with 148 deaths (CFR 18.5%) were reported. In the endemic Lassa fever situation an annual average of 40-50 cases normally occurred in this region. An elevated number of Lassa fever cases has continued to occur in 1997 with 45 cases reported in January, 75 in February and 147 in March. The increased occurrence is closely related to massive population movements with subsequent crowding, poor sanitation, unsafe food handling and storage practices combined with an increase in the rat population. Furthermore, with the improving political and security situation in Sierra Leone, the populace is moving about more freely to access health care facilities resulting in increased case reporting.
The Ministry of Health, WHO, the Centers for Disease Control and Prevention, USA and MERLIN, United Kingdom have worked together to monitor the outbreak and to mitigate its impact. Patients are brought to and treated at an isolation ward established in Kenema which has been expanded to accommodate the increase in cases. Several workshops have been held to train health staff and to educate the general public about measures to avoid contact with rodents. Supplies of ribavirin, the antiviral drug used to treat Lassa virus infections, were nearly depleted. The Red Cross was contacted regarding this need and the Chinese Red Cross responded with a donation of 120,000 doses of the drug to the Government of Sierra Leone. WHO is working with the pharmaceutical industry on a long-term solution..
(Based on a report from WHO representative in Sierra Leone.)
Comment: Transmission of the Lassa virus in the community is mainly due to contact with rats of the genus Mastomys. Infected rats continually shed viruses in their urine and humans are infected by ingestion of food contaminated with rat urine or inhalation of virus-containing aerosols. Minimizing contact with rodents by the safe handling and storage of food or restricting access of rats to homes, remains therefore the most effective preventive measure. Person-to-person transmission occurs primarily in health care institutions caring for Lassa patients. Nosocomial spread can easily be prevented by managing patients in isolation wards and with appropriate protective measures (barrier nursing). The risk of transmission during international travel is low unless the traveller is in contact with a severely ill and bleeding case. A recent incident involving a virus which causes a similar clinial syndrome occurred in South Africa where a nurse was infected with Ebola virus while caring for a patient from an endemic area. This underscores the importance of health care staff awareness and use of special precautions when treating patients who have travelled abroad.


31 January 1997
Disease Outbreak Reported
Togo. As at 30 January 1997 a total of 961 cases with 143 deaths (CFR 14,4%) had been reported in the outbreak which started in November 1997. A team including an epidemiologist from the WHO Office for the African Region is investigating the outbreak to assess the epidemiology of the oubreak and speed up laboratory confirmation. The work of this team will be further supported by technical experts and materials from MSF and AMP arriving this weekend. To ensure the the continuation of the vaccination campaign started by the Ministry of Health, WHO is sending an additional 100,000 doses of vaccine and injection material.
Burkina Faso. As at 28 January, 461 cases with 64 deaths (CFR 13.9%) have been reported. Vaccine is available to start a vaccination campaign. Last year a large epidemic of meningococcal meningitis occurred in Burkina Faso with over 42 000 cases reported.
Other countries having reported cases of meningitis are Ghana (181 cases, 17 deaths, CFR 9.4%) and Mali (180 cases, 26 deaths, CFR 14.4%).


Welcome to the University of Portsmouth Bioinformatics Group Website
Welcome to the website of Dr Sam Robson, Lead Bioinformatician at the Centre for Enzyme Innovation at the University of Portsmouth. I set up this group having recently moved from the University of Cambridge, and hope to develop the group further over the coming years. I am going to aim to post regularly on this blog with posts relating to data analysis, experimental design, advances in sequencing technology, and other related matters that may be of interest to visitors.
I have kicked things off with a tutorial for those of you that are interested in learning how to use the statistical programming language R. This language is incredibly useful for anybody looking to perform any kind of statistical analysis, and the Bioconductor packages offer countless extensions to the base functionality to allow you to work with data of any type that you might care to mention. If you are interested in data analysis, I thoroughly recommend checking it out, and if you find it useful or if you splot any issues please comment.
In addition, I have begun to build a list of commonly used bioinformatics tools, which may help other people to see which tools are currently available for a variety of different bioinformatics tasks. It is a work in progress, so please bear with me while I continue to populate it. I hope to keep this up to date as I discover new tools.
In the short time that I have been at the University of Portsmouth, I have had similar conversations with a number of researchers and so will focus on discussing some of these commonly occurring questions in my first few posts (e.g. sample size for experimental design, number of reads required for a sequencing experiment, where to sequence your data, differences between sequecning technologies, etc.). Some of these may then develop further into additional resources.


Google enables RCS messaging for US smartphones (without any carrier help)
by Brad LinderGoogle has been trying to upgrade SMS messaging for years, by supporting the next-gen RCS protocol that enables features like read receipts, transferring high-quality photos and videos, and chatting over WiFi.
But the rollout of RCS support for Android phones has been hampered in the US by wireless carriers, who have been slow to support the technology.
Last month carriers announced that they’d finally jump aboard the RCS train.
So Google’s announcement today that it’s finally ready to bypass the carriers seems oddly timed… but maybe it make sense when you consider that Google wants you to use its own Messages app, while the carriers are going to roll out a new messaging app.
Anyway, The Verge has a breakdown of how RCS works and how Google is going to let you use it even if your wireless carrier doesn’t support it yet.
But here are the key takeaways:
- Want to use RCS in the US today? Your best bet is through Google’s Messages app.
- You can check to see if RCS is enabled for you by opening the app and checking the status in the “Chat Features” menu.
- If you have a Samsung phone, you may need to download the Messages app from the Play Store. Most other Android phones have it pre-loaded.
Once enabled, RCS allows SMS messaging to work a little more like dedicated chat apps such as WhatsApp or iMessage — at least when you’re chatting with another user that also has RCS enabled.
Optional chat features available via the Google Messages app include:
- Support sending data over WiFi when it’s available.
- Send read receipts to let other users know when you’ve read their messages.
- Show typing indicators to let other users know when you’re inputting text.
- Resend a message automatically if it fails to go through the first time (when you’re not roaming).
- Automatically download files you receive by using mobile data (you can set file size limits for this feature).


{$ campaigns.campaign.status.running $}
{$ campaigns.campaign.status.scheduled $}
{$ campaigns.campaign.status.draft $}
{$ campaigns.campaign.status.finished $}
{$ campaign.conversions $}
{$ campaign.journey $}
{$ campaign.visitors $}
{$ campaign.report.drop $}
{$ campaign.report.droprate $}
{$ campaign.report.funnel.compared $}


Lebanese army opens roads closed by protesters amid scuffles
DUBAI: Iran's intelligence ministry on Tuesday said any cooperation with the British Council was banned and would result in prosecution, the ministry's website reported.
"Britain ... was planning to implement a project for cultural networking purposes in cooperation with the British Council in Iran ... any cooperation with the British Council is prohibited and will result in prosecution," the ministry said in a statement.
In August, Iran's Supreme Court upheld a 10-year prison sentence for spying against an Iranian woman, Aras Amiri, who worked for the British Council in London. Amiri was arrested last year during a family visit to Iran.


Reports duplicated branches in
&&
or
||
expressions. Such constructs almost always represents a typo or cut-and-paste error.
Powered by InspectionGadgets


AMERICAN BUFFALO A film review by James Berardinelli Copyright 1996 James Berardinelli
RATING (0 TO 10): 7.5 Alternative Scale: *** out of ****
United States, 1996 U.S. Release Date: 9/13/96 (limited) Running Length: 1:28 MPAA Classification: R (Profanity, mature themes) Theatrical Aspect Ratio: 1.85:1
Cast: Dustin Hoffman, Dennis Franz, Sean Nelson Director: Michael Corrente Producer: Gregory Mosher Screenplay: David Mamet based on his play Cinematography: Richard Crudo Music: Thomas Newman U.S. Distributor: The Samuel Goldwyn Company
It opens with images of a late-night poker game: cards, chips, sweaty palms, concerned faces, and a woman's fingernails. Then, as night turns to day, the camera moves into the streets of New York, and, with the first bit of dialogue, we know we've slipped into the world of David Mamet.  This isn't just a Mamet-scripted movie, either. It's a Mamet-scripted movie based on a Mamet play. Like GLENGARRY GLEN ROSS and OLEANNA, it's clear that AMERICAN BUFFALO started life on the stage.
Mamet doesn't write for the ordinary movie-goer, which is why AMERICAN BUFFALO has received such limited distribution, irrespective of Dustin Hoffman's presence. The writer is an acquired taste. Although GLENGARRY GLEN ROSS won much critical praise, popular opinion was less kind. And views on OLEANNA were so widely divergent that, when the film came out, it was difficult to find two people with exactly the same impression. Whether you like him or hate him, though, Mamet usually provokes a strong reaction.
AMERICAN BUFFALO starts out torturously slowly, with lots of cryptic dialogue about not confusing business with pleasure, a "broken toaster", and some kind of "job" that a couple of down-on-their-luck guys are preparing to pull. Those men are Don (Dennis Franz), the owner of a New York junk shop, and Teach (Dustin Hoffman), a '90s version of MIDNIGHT COWBOY's Ratso Rizzo. The third character in the story is a teenage boy named Bobby (Sean Nelson) -- a kid without any apparent home, who views Don as a father-figure. He wants to help in the upcoming job, but the two adults are reluctant to get him involved.
It's an understatement to say that the film improves after the unpromising opening. As we become more comfortable with the erratic rhythm of Mamet's dialogue, the plot starts to emerge. Don and Teach are planning to rob some rich guy's coin collection (the title, AMERICAN BUFFALO, refers to the pre-Jefferson nickel), but they don't have a plan or a clear sense of what they're doing. Fundamentally, they're both losers. Teach, a take-things-as-they-come person, wants to get down to the action. Don, a more careful man, wants everything planned out in advance. This conflict leads to a fascinating scene where the two men, sitting in the back of Teach's car, discuss the psychology of home safes -- why people have them, what combinations they use for the locks, and where they hide the piece of paper they write the combination on.
Like a well-written musical composition, AMERICAN BUFFALO builds to a crescendo. The climax, which features a three-way confrontation between Teach, Don, and Bobby, and raises the specter that one or more might be double-dealing and committing a betrayal, is explosive. The sense of paranoid claustrophobia makes the tension almost unbearable.
Director Michael Corrente, who debuted with the derivative gangster film, FEDERAL HILL, does justice to Mamet's script. He elects not to open up the story, but still manages to remind us that the dying city of New York lies just beyond the junk shop's doors. And, after the uncertain first third, Corrente builds a grim, edgy mood that never abates. When the rain and thunder start outside, their fury is nothing compared to the storm building around the characters.
Dustin Hoffman plays Teach with caged energy. He's all mannerisms and nervous tics -- the waiting is unbearable; he wants to act. He's the consummate failure who never gives up hoping for that one big score. It should come as no surprise that Al Pacino played the part on stage. But, by harkening back to MIDNIGHT COWBOY and resurrecting aspects of the long-dormant Ratso Rizzo, Hoffman makes this role his own. It's the kind of towering performance that, if it came in a bigger film, would start talk of an Oscar nomination.
Dennis Franz, an Emmy winner for NYPD BLUE, holds his own opposite Hoffman. His Don is the picture of a man wracked by uncertainty. Should he do the job or not? Should he bring in a third man? Should he trust Bobby? Should he trust Teach? Does he need the money badly enough to put up with all this aggravation? Meanwhile, Sean Nelson, who first appeared in FRESH, brings an enigmatic mixture of hardness and innocence to his portrayal of Bobby, keeping us unsure, until the end, of the character's motives. Unfortunately, he doesn't quite have the screen presence to stand toe-to-toe with his experienced co-stars.
In the final analysis, AMERICAN BUFFALO is an intense, but flawed, piece of drama. The ending winds the tension so tautly that everything feels ready to snap, but, to reach that point, it's necessary to plod through a murky beginning. Mamet's play may be twenty years old, but the themes of loyalty, betrayal, and ruthlessness are as applicable to the current social and economic environment as they were in the '70s. And that's a compelling reason why, if you don't mind the initial discomfort, it's worth staying for the entire film.
- James Berardinelli e-mail<EMAIL_ADDRESS>ReelViews web site: http://www.cybernex.net/~berardin
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


App Resource Data
Pause data updates
App Info
App status
Network Class ID
Tasks (pid)
CPU
Memory
Add swap data
Statistics
Times memory limit reached
Swappiness


January 29
And the ruler of the synagogue answered with indignation, because that Jesus had healed on the sabbath day, and said unto the people, There are six days in which men ought to work: in them therefore come and be healed, and not on the sabbath day.
Luke 13:14
Religion is dangerous. Religion would rather debate about healing than see somebody healed. Religion would rather argue about deliverance than see somebody set free.
You can see an example of that in Luke 13. Jesus healed a woman who had been bowed over for 18 years. Think of it, a dear old woman--a daughter of Abraham Jesus called her--set free after being bound by the devil for nearly two decades. You'd think the temple rulers would have been rejoicing at what Jesus had done. But, no! They were angry because He'd done it on the wrong day.
Do you know what's worse? Those very same religious leaders who criticized Jesus for healing on the Sabbath could have ministered healing to that woman themselves on any of the other six days of the week if they'd cared enough to do it.
That's why Jesus was so indignant with them. They had the same covenant of Abraham as Jesus. But their religion had kept that woman bound instead of setting her free. It always does.
Remember that next time someone tries to get you sidetracked into a religious debate about healing or deliverance. If someone needs to be delivered from a demon, just do it! Don't get all hung up on theological questions about where the demon is.
"Is it in his body? Or his brain? Or his spirit? Or his pocket?" While you're arguing about questions like that, the demon will be driving the poor guy up the wall.
The question isn't, "Where is the demon?" The question is, "Why haven't we gotten this man delivered? He's our blood brother in the Name of Jesus and he ought to be free!"
Once you start asking that question, you won't care whether that demon is inside or outside, hovering over or sitting under. All you'll care about is getting that person free!
That's the difference between religion and the love of God. Religion argues. Love acts. Choose love today.
Scripture Reading: Luke 13:11-17


Class NamedTypeDependencyResolverPolicy
An implementation of IDependencyResolverPolicy that stores a type and name, and at resolution time puts them together into a NamedTypeBuildKey.
Inheritance
System.Object
NamedTypeDependencyResolverPolicy
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Unity.ResolverPolicy
Assembly: Unity.Abstractions.dll
Syntax
public class NamedTypeDependencyResolverPolicy : IDependencyResolverPolicy, IBuilderPolicy
Constructors
| Improve this Doc View SourceNamedTypeDependencyResolverPolicy(Type, String)
Create an instance of NamedTypeDependencyResolverPolicy with the given type and name.
Declaration
public NamedTypeDependencyResolverPolicy(Type type, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | type | The type. |
| System.String | name | The name (may be null). |
Properties
| Improve this Doc View SourceName
The name that this resolver resolves.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Type
The type that this resolver resolves.
Declaration
public Type Type { get; }
Property Value
| Type | Description |
|---|---|
| System.Type |
Methods
| Improve this Doc View SourceResolve(IBuilderContext)
Resolve the value for a dependency.
Declaration
public object Resolve(IBuilderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| IBuilderContext | context | Current build context. |
Returns
| Type | Description |
|---|---|
| System.Object | The value for the dependency. |


There’s no dashboard by the name of “{{activePluginId}}
”.
You can select a dashboard from the list above.
No dashboards are active for the current data set.
Probable causes:
- You haven’t written any data to your event files.
- TensorBoard can’t find your event files.
If you’re new to using TensorBoard, and want to find out how to add data
and set up your event files, check out the
README
and perhaps the
TensorBoard tutorial.
If you think TensorBoard is configured properly, please see
the section of the README devoted to missing data problems
and consider filing an issue on GitHub.


4.0 General Concepts
The terms used to describe classes of units have precise meanings that are important to understanding these rules. For instance, “ground units” describes a broader range of units than “combat units” (which are a subset of ground units), and “Attack-Capable units” are a further subdivision of combat units. Use of the word “units” by itself (not modified as in “independent units” or “DG Mode units”) refers collectively to all units—ground, naval, and air—when a narrower context is not obvious.
4.1 Rounding Rule
Players will often be required to round decimals to whole numbers. When the fractional part is less than .5, round down. When the fractional part is .5 or more, round up.
4.2 Fractions
Round the final odds in combat, but do not round fractional strengths prior to determining odds. Fractional barrage factors are combined and then rounded to determine the barrage column. Never round fractional Movement Allowances.
Design Note: Players should take note of the important effect of this rounding rule on odds calculation. In this series, a 15 to 6 attack rounds to 3:1.
Example: Three units attack with modified combat strengths of 2.5, 3.25, and 4 (for a total strength of 9.75) against the defender’s strength of 2. Combat odds would be figured as 4.875 to 1, which is rounded to 5:1.
4.3 Cumulative Effects
In all cases where a value is subject to multiple modifiers, the effects are cumulative. For instance, quarter the strength of a combat unit halved for terrain and halved for supply.
4.4 Attack-Capable Units
Combat units with printed Combat Strengths are Attack-Capable, unless the strength is parenthesized or the unit is in Strat Mode or Reserve Mode. A printed Combat Strength of zero still makes a unit Attack-Capable (9.14a).
4.4a Attacking units (in both combat and overrun) must be Attack-Capable.
4.4b Attack-Capable units in Combat Mode and not currently marked Out of Supply have a Zone of Control (4.5).
4.4c Ground movement into a hex with an enemy non-combat unit (a port, air base, supply dump, Transport Point, or hedgehog) requires an Attack-Capable unit. This may result in destruction or capture, per 9.14.
Player Note: Attack-Capable units are no longer required for movement into “empty” enemy villages or cities.
4.5 Zone of Control
Attack-Capable units in Combat Mode have a Zone of Control (ZOC) unless currently marked Out of Supply. Units in other modes do not have a ZOC. (Exception: Exploitation Mode, 5.9c.) A unit’s ZOC limits enemy actions in the six hexes adjacent to the unit. This is true regardless of the terrain in those hexes or the hexsides between them.
4.5a The following actions cannot be taken in an enemy ZOC. An action marked <Negation>, however, is allowed if the ZOC has been negated (4.5b); negation is not possible for the others.
- A) Truck Movement. <Negation> A unit with Truck MP (mobility types are explained in 3.1a that enters an enemy ZOC must either end its movement or else conduct an overrun. One overrun might lead to another, thus allowing the unit to continue through more than one ZOC. Note that units starting a phase in an enemy ZOC can exit that hex using Truck MP, and that movement using Leg or Track MP is unaffected by ZOCs.
- B) Supply Lines. <Negation> An enemy ZOC blocks all kinds of supply paths (e.g., draw, throw, Extenders) traced with Truck MP in or out of a hex. Note an HQ or Extender with Leg or Track mobility is unaffected by ZOCs.
- C) Rail Transport - Literal. Units using Rail Cap.
- D) Rail Transport - Trace Supply <Negation>
- E) Rail Conversion operations.
- F) Port Operations - Trace Supply. <Negation> Specific Game Note: In either edition of DAK, units do not negate EZOCs for Port Operations (F).
- G) Port Operations-Literal, Using Sea Cap.
- H) Aircraft Refit. <Negation>
- I) Reserve Mode. Units cannot enter Reserve Mode in an enemy ZOC (5.7c). Once in Reserve Mode, they can enter/exit ZOC normally.
- J) Strat Mode. Units cannot change to Strat Mode in an enemy ZOC (5.8a), nor can they ever enter a ZOC while in Strat Mode.
- K) Repl Rebuilds.
4.5b Negating ZOC. Per 4.5a, some ZOC effects can be negated. An enemy ZOC in a hex is negated if that hex contains a friendly combat unit at that moment and, further, the unit doing the negating will not spend MP later in the current phase. (It is allowed to leave the hex via actions such as advance after combat or Breakout, which do not require expenditure of MP.) The friendly combat unit doing the negation need not have a ZOC itself. Note that when a unit starts the phase in an enemy ZOC, negation is not needed to exit that hex.
Example: Aircraft refit can still be done even if a Combat Mode enemy unit is adjacent to the base, provided a friendly combat unit (of any mode) is in the hex.
4.5c ZOCs and Retreats. See 9.12e.
Design Note: The lack of ZOC effects on Leg and Track movement can cause anomalous events until a player masters the implications of this feature. Players need to think carefully about unit placement, both along the front lines and in the rear area!
4.6 Regimental Equivalents
The concept of Regimental Equivalents (RE) is used to figure the size of a unit (important for things like stacking and transport). Only ground combat units have RE sizes, as only they need them.
- Multi-step units have their RE size shown on the counter.
- Battalions are 1/2 RE.
- Repl units and company-sized units are 1/4 RE.
- All other sizes count as 1 RE. (There may be game-specific exceptions.)
A multi-step unit’s RE size is reduced by one for each step loss (9.11). All other combat units are 1 step for loss purposes, regardless of RE size. (Some games have exceptions to this rule.)
Design Note: The RE concept has its roots in the GDW Europa games.
4.7 Transportation Equivalents
Combat units, Transport Points, and SP can be transported by rail (13.3), air (14.9), Landing Craft (18.4), and abstract shipping (19.0f). A Transport Point (13.2) can only carry SP.
4.7a RE and SP are interchangeable transportation equivalents. One point of rail capacity can move either 1 SP or 1 RE (or a combination, such as 2T of supply and 1/2 RE of units).
4.7b If a unit’s printed MA in Move Mode is from 1 to 6 Leg MP, inclusive, its transportation equivalent is halved. For all other units, the transportation cost is the same as the RE size.
4.7c Transport Points can load (and carry) a number of SP equal to their point value. Transport Points can be carried by landing craft, rail, or shipping (but not by air). Count only the size of the Transport Points when figuring the transportation equivalent—whether loaded with SP or not, it always takes 1 point of capacity to ship 1 Transport Point.
4.7d Movement and Transport. A unit cannot be moved by more than one type of transport in a phase—for instance, a unit is not allowed to move by rail to an airbase, and then immediately use air transport. Furthermore, ground units cannot spend any movement points in the phase they make Air Drops (14.10) or Beach Assaults (18.6), or when they move by Shipping (19.0f). Sometimes, however, half MA can be spent by units being transported:
- before when using rail cap (13.3c).
- before and/or after when using Air Transport (14.9d).
- after an ALT landing (18.5h) that requires a roll (but never in cases where no ALT roll is made).
4.8 Stacking
Stacking is having more than one unit in a hex. The maximum number of combat units allowed to stack in a hex is 10 RE. Any number of SP or Transport Points can stack together in a hex, but never more than one port, one air base, and one hedgehog. Stacking in Off-Map Holding Boxes is unlimited. Air and naval stacking is described in 14.2a and 18.1b. There is no movement cost for stacking or unstacking. Usually only one side’s units can be in a given hex, but on rare occasions friendly and enemy units are allowed to stack together (see 4.8c). Nationality differences among friendly units has no effect on stacking (unless game-specific rules contain restrictions).
4.8a Overstacking is having more than 10 RE of combat units in a given hex at the end of any segment or phase. There is one exception: stacking is not enforced in the Reinforcement Phase (see 13.6). The owning player is required to reduce any overstacked hexes by eliminating the units of his choice. Units can temporarily overstack during movement except when conducting an overrun, when the overrunning units and any other friendly units in the hex cannot exceed the 10 RE limit.
4.8b Order of Stacking. The player can to a certain degree arrange his stacks in any order that makes sense to him, but there are some requirements related to fog of war and ease of play.
- A) Mode and Out of Supply markers should always be placed on top of all such units in the hex. Except where another such marker comes between them, the markers imply that all units beneath them in the stack are in that mode (or Out of Supply). Some units can never be in a certain mode or status, and those units simply ignore any such marker above them in the stack. For example, SP and Inactive air units under a DG marker are not in Disorganized Mode.
- B) Put Low, Exhausted, or Step Loss markers beneath each and every affected unit.
- C) If a unit with a ZOC is in a hex, it should be the top combat unit (to make ZOCs obvious).
- D) An HQ can be the top combat unit in the hex when no enemy ground units are adjacent (to help the owning player see his logistical net). The enemy player must be told if the hex has a ZOC.
- E) Active planes are put on top of any ground units, but on request the enemy player can also see the top combat unit and any hedgehog. If an Active fighter is in the stack, it should be the top air unit (to make Patrol Zones obvious).
- F) If a hedgehog is present, it should be the top ground unit (to make Hogs obvious). Again, the enemy player can see the top combat unit on request.
4.8c Enemy Stacks. Friendly units can move or retreat into hexes with enemy units in the following cases only. There is no extra MP cost. If an unlisted type of enemy unit is in the hex, friendly units cannot enter.
- A) Attack-Capable units can enter hexes with enemy ships, planes, and non-combat units. Resolve the Specialized Combat per 9.14.
- B) Ships can enter hexes with enemy non-combat units and air units. (They coexist.)
- C) Planes conducting a mission can enter hexes containing all kinds of enemy units
- D) Rail transport and supply paths can be traced through enemy noncombat units, planes, and ships (but cargo cannot detrain in these hexes).
Reminder: Non-combat units are SP, Transport Points, hedgehogs, air bases, and ports. See 3.3.
4.9 Fog of War
4.9a A player can never look through an enemy stack. However, the enemy player may always see the hedgehog, top Combat Mode Attack-Capable unit (or top combat unit if none have a ZOC), and top Active plane in any hex. While the player will know if the top unit is Strat Mode, DG, or Out of Supply, he is not entitled to know about internal stocks status or steps lost.
4.9b During combat (both regular and overrun), both players must reveal their Action Rating, AT Effects (9.4e), and total Combat Strength. Neither side is required to show actual units (other than per 4.9a).
4.9c During a barrage, the barraging player should reveal his total Barrage Strength, and be informed of all relevant table shifts or Flak Points.
4.9d During Air Combat, both players should reveal all aircraft present and which are involved in each round.
4.9e Players normally make die rolls in the open, after stating their purpose (such as “this is my Variable Repl roll”). If players agree, they can make certain rolls in secret to increase the fog of war.


Specialization Courses
-
Google Data Analytics Professional Certificate , Google, Coursera (In Progress)
-
Machine Learning , Stanford, Coursera (Completed)
-
Data Science Fundamentals with Python and SQL Specialization , IBM, Coursera (In Progress)
-
Deep Learning Specialization , DeepLearning.AI, Coursera (In Progress)
-
DeepLearning.AI TensorFlow Developer Professional Certificate , DeepLearning.AI, Coursera (In Progress)
-
Python for Everybody Specialization , University of Michigan, Coursera (Completed)
Course Certifications
-
Foundations: Data, Data, Everywhere, Google, Coursera (Completed)
-
2021 Complete Python Bootcamp From Zero to Hero in Python, Jose Portilla, Udemy (Completed)
-
Sequence Models , DeepLearning.AI, Coursera (In Progress)
-
Structuring Machine Learning Projects , DeepLearning.AI, Coursera (In Progress)
-
Neural Networks and Deep Learning , DeepLearning.AI, Coursera (In Progress)
-
Convolutional Neural Networks, DeepLearning.AI, Coursera (In Progress)
-
Improving Deep Neural Networks: Hyperparameter tuning, Regularization and Optimization, DeepLearning.AI, Coursera (In Progress)
© Darshan DS 2020-2021


1. Exploring ZTF Alerts¶
This first tutorial shows how to open, explore and display information contained in an alert from ZTF. You can play this tutorial in a Jupyter notebook, an interactive Python session, or a Python script.
Before starting
Make sure fink-client
is correctly installed (see the index page of the tutorial).
1.1. Set up¶
Import necessary packages and set up matplotlib parameters for readable plots
import matplotlib.pyplot as plt
import matplotlib
import numpy as np
from fink_client.avroUtils import AlertReader
from fink_client.visualisation import show_stamps
from fink_client.visualisation import extract_field
# For plots
font = {
'weight': 'bold',
'size': 22
}
matplotlib.rc('font', **font)
# Bands
filter_color = {1: '#1f77b4', 2: '#ff7f0e', 3: '#2ca02c'}
# [
# '#1f77b4', # muted blue
# '#ff7f0e', # safety orange
# '#2ca02c', # cooked asparagus green
# '#d62728', # brick red
# '#9467bd', # muted purple
# '#8c564b', # chestnut brown
# '#e377c2', # raspberry yogurt pink
# '#7f7f7f', # middle gray
# '#bcbd22', # curry yellow-green
# '#17becf' # blue-teal
# ]
filter_name = {1: 'g band', 2: 'r band', 3: 'i band'}
1.2. Load alert data¶
ZTF alert data are serialised in Avro format. Since this format is not widely spread in the astronomy community, we provide the class AlertReader
to ease the alert manipulation. You can pass to it a single alert file, or a folder containing alerts:
# you will find datatest/ in the tutorial repo.
r = AlertReader('datatest')
The reader has methods to load data, and you will probably find useful the to_pandas
method that loads alert data into a Pandas DataFrame:
# Store alert data in a Pandas DataFrame
df = r.to_pandas()
Similarly, you have a method to_list
, that loads the data into a list of dictionaries (each alert being a dictionary), or to_iterator
that returns a generator.
Exercise: Explore the content of alerts. What information is available? You will find the description of each field at https://zwickytransientfacility.github.io/ztf-avro-alert/
1.3. Display cutouts¶
You might have noticed the fields cutout*
in each alert. These fields are 60x60 pixels image around the position of the alert. You have 3 such fields:
cutoutScience
: the observation made by ZTFcutoutTemplate
: the reference image used to make the comparison with the observationcutoutDifference
: The difference between the observation and the reference image.
These cutouts are stored in binary (gzip-compressed FITS cutout image). We expose the function show_stamps
to ease their visualisation.
# Take the first alert
alert = r.to_list(size=1)[0]
# Display the cutouts contained in the alert
print(alert['objectId'])
fig = plt.figure(num=0, figsize=(12, 4))
show_stamps(alert, fig)
1.4. Display lightcurve data¶
Each alert has the information about the current observation (field candidate
), but it also contains historical information at the same location up to one month (field prv_candidates
). Fink exposes routine to retrieve the full information as one vector:
# Extract all measurement dates contained in the alert
all_dates = extract_field(alert, 'jd')
This allows us to reconstruct the lightcurve for example. Note that we use the magnitude from PSF-fit photometry here (we could also have derived the apparent magnitude from the different fields)
# Load alert data
alerts = r.to_list()
# and plot the difference magnitude as function of time.
# Measurements and upper limits are treated separately.
for alert in alerts:
# extract current and historical data as one vector
mag = extract_field(alert, 'magpsf')
error = extract_field(alert, 'sigmapsf')
upper = extract_field(alert, "diffmaglim")
# filter bands
fid = extract_field(alert, "fid")
# Rescale dates to end at 0
jd = extract_field(alert, "jd")
dates = np.array([i - jd[0] for i in jd])
# Title of the plot (alert ID)
title = alert["objectId"]
# loop over filters
fig = plt.figure(num=1, figsize=(12, 4))
# Loop over each filter
for filt in filter_color.keys():
mask = np.where(fid == filt)[0]
# Skip if no data
if len(mask) == 0:
continue
# y data
maskNotNone = mag[mask] != None
plt.errorbar(
dates[mask][maskNotNone], mag[mask][maskNotNone],
yerr=error[mask][maskNotNone],
color=filter_color[filt], marker='o',
ls='', label=filter_name[filt], mew=4)
# Upper limits
plt.plot(
dates[mask][~maskNotNone], upper[mask][~maskNotNone],
color=filter_color[filt], marker='v', ls='', mew=4, alpha=0.5)
plt.title(title)
plt.legend()
plt.gca().invert_yaxis()
plt.xlabel('Days to candidate')
plt.ylabel('Difference magnitude')
plt.show()
You could also plot data directly from pandas DataFrame, using built-in pandas tools.
1.5. Visualising alerts with CLI¶
fink-client
exposes also the program fink_alert_viewer
to visualise alerts from the terminal directly:
fink_alert_viewer -h
usage: fink_alert_viewer [-h] [-filename FILENAME]
Display cutouts and lightcurve from a ZTF alert
optional arguments:
-h, --help show this help message and exit
-filename FILENAME Path to an alert data file (avro format)
Make sure that $FINK_CLIENT_HOME/bin
is in your $PATH
(see the beginning of this tutorial). Go to a folder with alerts (e.g. dataset/
in the tutorial repository), and call it on one file:
fink_alert_viewer -filename ZTF19acihgng.avro
# display cutouts & lightcurve


Sayana started her journey in the beauty industry at the age of 18. Shortly after, she became a leading esthetical in Russia and now resides in the USA. Sayana call New York City her home now, and established impeccable reputations among her clients. Sayana is perfectionsit by nature and a lifetime learner, she is persistent and hardworking. She always cares about wellbeing of her clients and uses only the best products in her practice.
At EyeLastic she offer different tiers of pricing based on the speed and experience of lash and microblading artists. No matter the technique you may choose, you will get the same quality and beauty that your've come to extpect from EyeLastic.


{% include "base/autocomplete.html" %}
{% csrf_token %}
Edit Group {{groupName}}
Group Name
:
Enter Unique Name - Maximum of 50 Characters
Description of Group
:
Brief Description of Group - Maximum of 100 Characters
Administrative E-Group
:
Enter an E-Group name
Comment
:
Enter Comments about the group(Useful for Logging)- Maximum of 3000 Characters


| Top |
GObject ╰── GtkEventController ╰── GtkGesture ╰── GtkGestureSingle ╰── GtkGestureMultiPress
GtkGestureMultiPress is a GtkGesture implementation able to recognize multiple clicks on a nearby zone, which can be listened for through the “pressed” signal. Whenever time or distance between clicks exceed the GTK+ defaults, “stopped” is emitted, and the click counter is reset.
Callers may also restrict the area that is considered valid for a >1
touch/button press through gtk_gesture_multi_press_set_area()
, so any
click happening outside that area is considered to be a first click of
its own.
GtkGesture *
gtk_gesture_multi_press_new (GtkWidget *widget
);
Returns a newly created GtkGesture that recognizes single and multiple presses.
Since: 3.14
void gtk_gesture_multi_press_set_area (GtkGestureMultiPress *gesture
,const GdkRectangle *rect
);
If rect
is non-NULL
, the press area will be checked to be
confined within the rectangle, otherwise the button count
will be reset so the press is seen as being the first one.
If rect
is NULL, the area will be reset to an unrestricted
state.
Note: The rectangle is only used to determine whether any non-first click falls within the expected area. This is not akin to an input shape.
Since: 3.14
gboolean gtk_gesture_multi_press_get_area (GtkGestureMultiPress *gesture
,GdkRectangle *rect
);
If an area was set through gtk_gesture_multi_press_set_area()
,
this function will return TRUE
and fill in rect
with the
press area. See gtk_gesture_multi_press_set_area()
for more
details on what the press area represents.
Since: 3.14
“pressed”
signalvoid user_function (GtkGestureMultiPress *gesture, gint n_press, gdouble x, gdouble y, gpointer user_data)
This signal is emitted whenever a button or touch press happens.
gesture |
the object which received the signal |
|
n_press |
how many touch/button presses happened with this one |
|
x |
The X coordinate, in widget allocation coordinates |
|
y |
The Y coordinate, in widget allocation coordinates |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.14
“released”
signalvoid user_function (GtkGestureMultiPress *gesture, gint n_press, gdouble x, gdouble y, gpointer user_data)
This signal is emitted when a button or touch is released. n_press
will report the number of press that is paired to this event, note
that “stopped” may have been emitted between the
press and its release, n_press
will only start over at the next press.
gesture |
the object which received the signal |
|
n_press |
number of press that is paired with this release |
|
x |
The X coordinate, in widget allocation coordinates |
|
y |
The Y coordinate, in widget allocation coordinates |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.14
“stopped”
signalvoid user_function (GtkGestureMultiPress *gesture, gpointer user_data)
This signal is emitted whenever any time/distance threshold has been exceeded.
gesture |
the object which received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.14


SDK¶
After importing:
import tracker_ml.tml as tml
-
tml.
login
(username: str, password: str)¶ Set username and password to automatically upload run results to tracker.ml :param username: tracker.ml username :param password: tracker.ml password
-
tml.
model
(model_name: str)¶ Set the model for this run to by tied to. Creates model if it does not exist :param model_name: Name of model (ie “Logistic Regression”)
-
tml.
record
(key: str, value)¶ Use to record a value relevant to the model :param key: String key that will be used to tag and compare with other models :param value: Value of type str, int, or float
-
tml.
mrecord
(key: str, value)¶ Use to record a series of values :param key: String key that will be used to tag data :param value: Value of type str, int, or float
-
tml.
accuracy
(value)¶ Record the accuracy (same as tml.record(“accuracy”, value)) :param value: Value of type str, int, or float


Nigerian govt postpones Abuja Carnival 2019
by Oge UdegbunamNigeria’s Ministry of Information and Culture has rescheduled the 2019 Abuja Carnival.
The announcement was contained in a statement sent to PREMIUM TIMES by the ministry’s spokesperson, Joseph Metu, on Tuesday.
In April 2019, the Guardian Newspaper reported how a new date for the annual Abuja carnival was disclosed.
According to the newspaper, the carnival was to hold from November 23 – 25. The earlier postponement was to enable the ministry plan adequately for a robust event.
A new date is yet to be announced for this second postponement.
“The Ministry apologises to all invited guests for any inconvenience the postponement might have caused,” the statement said.
Funding challenge?
Earlier, the minister, Lai Mohammed, was reported as seeking sponsorship from arts and culture outfits to support the carnival.
He noted that organising “a befitting carnival” requires serious funding.
Also, he stressed the need for restructuring the cultural fiesta ”to be purposeful and colourful at the same time, with sponsorship from art and culture enthusiasts”.
“If we restructure the carnival in a manner that our finances can handle, we will do it. The key to this is sponsorship.
“We hope to persuade culture enthusiasts and multinationals to partner with us. We are talking to a couple of them,” he had said.
Mr Mohammed confirmed that 21 states had shown interest in participating at the carnival, adding that ”with God’s and stakeholders’ support, the carnival would be held”.


Kaushik Panda
My journey so far: I joined Dr. Keith Slotkin’s lab as a graduate student at The Ohio State University in 2012. Over the years I enjoyed developing and leading the bioinformatics segment of the lab and graduated with a PhD in Molecular Genetics. Towards the end of my graduate career I learned about Keith moving to the Danforth Center in St. Louis. I saw it as an opportunity to continue to work in a wonderful lab environment, and in a state-of-the-art plant research facility with a different work culture. So, I moved with Keith, literally in the same moving truck, to St. Louis. Since then I have had the opportunity to form exciting collaborations, attend unique events, and participated in the mostly-fun-sometimes-nerve-wrecking, but definitely enlightening, Big Ideas 2.0 event
Current projects: Transposable elements (TEs) are fascinating genetic units which can change their location in the genome and this mechanism is leveraged to develop cutting-edge biological tools. Working with Keith, I have always had the opportunity to move beyond the current expertise in lab and explore new techniques or new frontiers in TE biology. One of the challenges of genome wide TE studies is the absence of transcriptional annotation. So, I focused primarily on using long read Oxford Nanopore cDNA sequencing to fill this gap and propel TE bioinformatics. This annotation, is now public. Additionally, I am currently working on a collaborative project to investigate chromatin accessibility and understand its correlation with TE expression. It’s an exciting time for TE biology!
Life outside work: My favorite thing to do outside of work is to travel. Using the opportunity of an US visa I have travelled multiple times to South America and would love to explore Europe in future. I enjoy cooking, especially Indian cooking, and I am always up for trying out new recipes. Coincidently, I am also in a lab that believes in exploring food and for our weekly lunch we try to visit a new restaurant every two weeks.


Hello And Welcome to My website
intersteller
inception
godfather
dark knight
Shawshank
Goodfellas
Suspects
Once Upon
My top 10 Movie
General information
- I've graduated from Al-Zaytoonah University of Jordan
- faculty of Information Technology
- 2years expernice in Customer Support (helpdesk)


Successfully signed out {{attendance.childName}}
On {{attendance.date.month}}/{{attendance.date.day}}/{{attendance.date.year}} at
{{time}}
{{time}}
Successfully scheduled an extra class for {{attendance.childName}}
On {{attendance.date.month}}/{{attendance.date.day}}/{{attendance.date.year}}
Successfully signed out {{attendance.childName}}
from an extra class
on {{attendance.date.month}}/{{attendance.date.day}}/{{attendance.date.year}}
Successfully scheduled an absence for {{attendance.childName}}
on {{attendance.date.month}}/{{attendance.date.day}}/{{attendance.date.year}}


{% extends "basic/base.html" %} {% load template_extras %} {% block header %}{% endblock %} {% block content %}
There are some important points to note about the electronic peer review tool that will be used in this course.
To use this system you are agreeing to sharing the above information from points 1, 2 and 3 with the website that electronically handles the process.


backtracking
design
]
Leetcode 1286. Iterator for Combination
https://leetcode.com/problems/iterator-for-combination
There are different ways to solve this problem, one of them is to generate all possible combination and then when we asked to return next, just take the next one. Also we can use bitmasks, where we try to generate next combination and check if we choose correct number of elements or not. However I prefer to do it in a bit different way, I say it is honest iterator, where we find next permutation, given current one. Let me consider and example:
acfxyz
, where we can use full alphabet. How can we find the next combination? We need to look at the end of our combination and try to increment it. Can we increment z
? No, we can not, the same for y
and x
. What we can increment is f
, so next combination will be acghij
.
This is the key remark of my method. Let us consider function next()
:
- First we check if we already have some combination before, if not, just create the first one.
- Now, we need to find the longest commont suffix, like we did in our example between current state and our string. I do this, using
commonprefix
function. - Now, we need to find the place for previous symbol in our
characters
. Why? Because in our example we have alphabetabc...xyz
, but we can have something likeacdehkxyz
, and we need to know, what is going afterh
. It isi
? No, in this case it isk
. - Finally, we construct new state, taking first
len(character) - end - 1
elements from previous state and addingend + 1
elements starting fromplace + 1
from ourcharacters
. - To implement
hashNext()
we just need to check if we reached the last state.
Complexity of hasNext()
is O(k)
, where k = combinationLength
. Complexity of next()
is also O(k)
, because we need to find the longest suffix, also we need to find element in string, using index()
(this can be reduced to O(1)
, using hash table) and finally, we need to construct and return new state, which has length k
, which can not be improved.
from os.path import commonprefix
class CombinationIterator:
def __init__(self, characters, combinationLength):
self.c = characters
self.len = combinationLength
self.state = ""
def next(self):
if self.state == "":
self.state = self.c[:self.len]
else:
end = len(commonprefix([self.c[::-1], self.state[::-1]]))
place = self.c.index(self.state[-end-1])
self.state = self.state[:-end-1] + self.c[place + 1: place + 2 + end]
return self.state
def hasNext(self):
return self.state != self.c[-self.len:]
If you like the solution, you can upvote it on leetcode discussion section: Problem 1286


Press "Sample MusicVAE trio" to sample a new sequence of a trio of instruments (drum kit, bass, lead) using MusicVAE and send it to the given MIDI output. The sequence will loop.
Reload the page to stop.
Sample MusicVAE trio Select MIDI output:


I obtained my M.S.E in Computer Science at Johns Hopkins University and my B.S in Computer Science and Technology at South China Agricultural University. During my undergraduate, I studied abroad for a semester at the University of California, Berkeley in 2015. I have a passion for utilizing my coding skills and quantitative abilities to help improve efficiencies and make contributions.
GPA: 3.7
GPA: 3.6
GPA: 4.0
• Worked closely with researchers and traders to develop and back-test trading algorithm that is able to make decisions automatically, achieving a total return of 16.97% and max drawdown of 7.1%
• Developed a robust financial risk calculating system and provided reporting to facilitate executive-level decision making
• Performed data analysis(e.g. financial statement fraud detection, stock price manipulation detection) in support of investment portfolio optimization
• Designed and built a big data platform with SSM(Spring, Spring MVC, Mybatis) framework. It helped employees get quick access to the company’s user data, and make changes to them through data visualization. The platform greatly increased employees’ work efficiency by about 50%
• Responsible for database(Oracle) maintenance and back-end development
• Designed and built a cross-modal retrieval system utilizing deep visual-semantic hashing, which incorporating convolutional neural network and recurrent neural network and mapped with hashing. Trained on 100,000+ images
• Responsible for designing neural network architecture, training the model and building the system
• Built a pipeline for network compression using pruning, weight sharing, and Huffman coding on AWS Deep Learning AMIs with PyTorch. It reduces the storage requirement of neural networks by 35x to 49x without affecting their accuracy. Built using Python
• Responsible for constructing the pipeline, and exploring the effects of several settings
• Built a real-time online price comparison software tool that automatically searches the products of many different online stores to locate the most affordable rates for customers. Built using Python
• Responsible for data extraction, transformation and software development
• Built a classifier for resolving various forms of lexical ambiguity using the vector space model.
• Optimized the classifier with Naïve Bayes, k nearest neighbor, clustering and expectation maximization algorithms. It achieved classification accuracy higher than 90%.
• Responsible for vector classification model implementation and further extension on the model.  I enjoy playing badminton with friends, running and swimming.


This is an International and interructual Company .It has go many in-cultural activities which are brought together through the Designs, Craft and Art.
When you join us , one experience working with interructual professinals from all over the global and get connected easily and fast for the global ideas and skills.
Contact Us!
Welcome
Alma Designs and Craft
2020


- unbind() - Static method in class com.github.mathiewz.slick.opengl.TextureImpl
-
Clear slick caching of the last bound texture so that an
external texture binder can play with the context before returning
control to slick.
- unbindCommand(Control) - Method in class com.github.mathiewz.slick.command.InputProvider
-
Unbinds the command associated with this control
- UnicodeFont - Class in com.github.mathiewz.slick
-
A Slick bitmap font that can display unicode glyphs from a TrueTypeFont.
- UnicodeFont(String, String) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Create a new unicode font based on a TTF file
- UnicodeFont(String, HieroSettings) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Create a new unicode font based on a TTF file and a set of heiro configuration
- UnicodeFont(String, int, boolean, boolean) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Create a new unicode font based on a TTF file alone
- UnicodeFont(Font, String) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Creates a new UnicodeFont.
- UnicodeFont(Font, HieroSettings) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Creates a new UnicodeFont.
- UnicodeFont(Font) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Creates a new UnicodeFont.
- UnicodeFont(Font, int, boolean, boolean) - Constructor for class com.github.mathiewz.slick.UnicodeFont
-
Creates a new UnicodeFont.
- UnicodeFont.DisplayList - Class in com.github.mathiewz.slick
-
A simple descriptor for display lists cached within this font
- union(Shape, Shape) - Method in class com.github.mathiewz.slick.geom.GeomUtil
-
Join to shapes together.
- union(Shape) - Method in class com.github.mathiewz.slick.geom.Shape
-
Join this shape with another.
- UP - Static variable in class com.github.mathiewz.slick.command.ControllerDirectionControl
-
The direction indicating we're waiting for the user to press up
- update(long) - Method in class com.github.mathiewz.slick.Animation
-
Update the animation, note that this will have odd effects if auto update
is also turned on
- update(GameContainer, int) - Method in interface com.github.mathiewz.slick.Game
-
Update the game logic here.
- update() - Method in class com.github.mathiewz.slick.ibxm.OpenALMODPlayer
-
Poll the bufferNames - check if we need to fill the bufferNames with another
section.
- update() - Static method in class com.github.mathiewz.slick.openal.AudioLoader
-
Allow the streaming system to update itself
- update() - Method in class com.github.mathiewz.slick.openal.OpenALStreamPlayer
-
Poll the bufferNames - check if we need to fill the bufferNames with another
section.
- update(ParticleSystem, int) - Method in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
- update(ParticleSystem, int) - Method in class com.github.mathiewz.slick.particles.effects.FireEmitter
-
- update(int) - Method in class com.github.mathiewz.slick.particles.Particle
-
Update the state of this particle
- update(ParticleSystem, int) - Method in interface com.github.mathiewz.slick.particles.ParticleEmitter
-
Update the emitter, produce any particles required by requesting
them from the particle system provided.
- update(int) - Method in class com.github.mathiewz.slick.particles.ParticleSystem
-
Update the system, request the assigned emitters update the particles
- update(GameContainer, int) - Method in class com.github.mathiewz.slick.ScalableGame
-
- update(GameContainer, StateBasedGame, int) - Method in interface com.github.mathiewz.slick.state.GameState
-
Update the state's logic based on the amount of time thats passed
- update(GameContainer, int) - Method in class com.github.mathiewz.slick.state.StateBasedGame
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.BlobbyTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.CombinedTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.CrossStateTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.EmptyTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.FadeInTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.FadeOutTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.HorizontalSplitTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.RotateTransition
-
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.SelectTransition
-
- update(StateBasedGame, GameContainer, int) - Method in interface com.github.mathiewz.slick.state.transition.Transition
-
Update the transition.
- update(StateBasedGame, GameContainer, int) - Method in class com.github.mathiewz.slick.state.transition.VerticalSplitTransition
-
- update_sample_idx(int) - Method in class com.github.mathiewz.slick.ibxm.Channel
-
- updateMorphTime(float) - Method in class com.github.mathiewz.slick.geom.MorphShape
-
Update the morph time and hence the curent frame
- updateMorphTime(float) - Method in class com.github.mathiewz.slick.svg.SVGMorph
-
Update the morph time index by the amount specified
- updateParticle(Particle, int) - Method in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
- updateParticle(Particle, int) - Method in class com.github.mathiewz.slick.particles.effects.FireEmitter
-
- updateParticle(Particle, int) - Method in interface com.github.mathiewz.slick.particles.ParticleEmitter
-
Update a single particle that this emitter produced
- USE_POINTS - Static variable in class com.github.mathiewz.slick.particles.Particle
-
Indicates the particle should explicitly use points
- USE_QUADS - Static variable in class com.github.mathiewz.slick.particles.Particle
-
Indicates the particle should explicitly not use points
- useAdditive - Variable in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
True if the additivie blending mode should be used for particles owned by
this emitter
- useAdditive() - Method in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
- useAdditive() - Method in class com.github.mathiewz.slick.particles.effects.FireEmitter
-
- useAdditive() - Method in interface com.github.mathiewz.slick.particles.ParticleEmitter
-
Check if this emitter should use additive blending
- useOriented - Variable in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
True if the quads should be orieted based on velocity
- usePoints - Variable in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
The points indicate
- usePoints(ParticleSystem) - Method in class com.github.mathiewz.slick.particles.ConfigurableEmitter
-
- usePoints(ParticleSystem) - Method in class com.github.mathiewz.slick.particles.effects.FireEmitter
-
- usePoints(ParticleSystem) - Method in interface com.github.mathiewz.slick.particles.ParticleEmitter
-
Check if this emitter should use points based on it's own settings
and those of the particle system
- usePoints() - Method in class com.github.mathiewz.slick.particles.ParticleSystem
-
Check if this engine should use points to render the particles
- UseProcessor - Class in com.github.mathiewz.slick.svg.inkscape
-
Processor for the "use", a tag that allows references to other elements
and cloning.
- UseProcessor() - Constructor for class com.github.mathiewz.slick.svg.inkscape.UseProcessor
-
- userData - Variable in class com.github.mathiewz.slick.UnicodeFont.DisplayList
-
Application data stored in the list
- usingFBO() - Static method in class com.github.mathiewz.slick.opengl.pbuffer.GraphicsFactory
-
Check if we're using FBO for dynamic textures
- usingPBuffer() - Static method in class com.github.mathiewz.slick.opengl.pbuffer.GraphicsFactory
-
Check if we're using PBuffer for dynamic textures
- Util - Class in com.github.mathiewz.slick.svg.inkscape
-
A set of utility for processing the SVG documents produced by Inkscape
- Util() - Constructor for class com.github.mathiewz.slick.svg.inkscape.Util
-


A transducer produces a voltge in the range from 0-10 V and is connected to an analog-to-digital converter covering that full range that produces a 10-bit output.
What is the number of available digital increments covering the full range?


?Andros:
logging
road,
2
miles
northwest
of
Love
Hill.
Pineland.
Shrub
2
m.
Fruit
green.
S.R.Hill
No.
3043
May
2k,
1975
<*Y>
IMAGED
NEW
YORK
BOTANICAL
GARDEN
01264071
vJ*
BOTANICAL*
vgardeH>
Herbarium
Fairchild
Tropical
Garden
01264071
Legend -
Level of confidence that token is an accurately-transcribed word
extremely low
very low
low
undetermined
medium
high
very high


A program needs some fields, just like an asset:
*If you share the link to a distribution before the program is available, or after it isn't, you're in trouble.
***Maximum views is important because SDL bills you, in part, by the number of times your distribution gets viewed.
| Folder | Where you store it |
| Title | Title of your program |
| Description | Description of the program |
| Keywords | Metadata for the program |
| Available from | When is the program available?* |
| Available until | When is the program no longer available?* |
| Maximum Views | Number of times the program should be viewed?*** |


What is Radar?
Tech Radar is like a portfolio to visualize the technologies and methodologies that an institution uses and trusts, monitor new trends and also identify which tools can be discontinued. Your goal is to keep teams strategically updated.
How it works?
Radar has four quadrants, with their respective categories: languages and frameworks, platforms, techniques and services. In each of the quadrants there are four rings, where the level of importance and relevance of the technology and/or methodology is identified. Our rings are named Strategic, Essential, Potential and Discontinued. The closer the technology is to the center of the radar, the more important it is.
For example, to choose a tool, language or methodology, we will prioritize the one that the team already knows or masters. In some cases, it is important to check if there is any study regarding this new demand. If two teams need to know a tool, all engineering will know that there is a new front with this objective, thanks to Radar.
Tech Radar within teams
Within the open source team at Zup, we use Tech Radar for knowledge management and also to help us make a quality solution.
Discover our main motivations:
Manage the information that circulates between different teams: knowing the tools each team uses or wants to use makes it easier to establish effective communication between projects and also avoid knowledge silos.
Motivate and train: once the technologies that teams need to learn and/or improve are mapped, it is possible to organize study groups, lectures, workshops and research, including cross-times.
Avoid losing focus and the “herd effect”: even though there is plenty of opportunity to learn about new tools in external events, it is important to pay attention to the real motivations behind the pile used, as they will certainly have tools that “scale”, " perform”, etc. Care must be taken not to turn the projects into a “laboratory in production”.
Prevent the technology stack from becoming a “fruit salad”: very similar to the previous case and, sometimes, derived from it, the big point is to avoid having several tools that do the same thing. After all, if within the group there is already a solution that solves a problem, what is the motivation to use a new one for the same purpose?
Code quality: a focused team with high cohesion in the technology stack facilitates knowledge management, resulting in good practices and fluency between teams, as well as better written and worked codes.
Being truly open source: one of the critical points in these types of projects is that they really need to be open source, that is, that their dependencies have licenses compatible with our projects.
Our rings
Strategic: everything considered fundamental to the projects. The teams have knowledge, security and fluency.
Essential: everything that is already in the process of adoption, knowledge is vital to the team’s success. Therefore, teams need training and/or experience.
Potential: everything that adheres to the culture, the necessary licenses and has the potential to be adopted in current projects or in future engagements. For this, it is interesting to carry out studies and tests to validate the effectiveness in the respective application scenario.
Discontinued: anything that is currently used but must be removed. The reasons for such a measure are due to the cohesion of the technological stack or the break in culture and/or open source licenses adopted.


Zebra_Dialog Demos
1. Default dialog box, no custom settings. Click here to open.$.Zebra_Dialog('Zebra_Dialog, a small, compact and highly configurable dialog box plugin for jQuery');
2. The five dialog box types, with titles: error, warning, question, information and confirmation.
// this example is for the "error" box only
// for the other types the "type" property changes to "warning", "question", "information" and "confirmation"
// and the text for the "title" property also changes
$.Zebra_Dialog('Zebra_Dialog, a small, compact and highly configurable dialog box plugin for jQuery', {
'type': 'error',
'title': 'Error'
});
3. Custom buttons and the callback function. Click here to open.
Note that the onClose event is executed *after* the dialog box is closed! see the next example for executing functions *before* the closing of the dialog box
$.Zebra_Dialog('Zebra_Dialog, a small, compact and highly configurable dialog box plugin for jQuery', {
'type': 'question',
'title': 'Custom buttons',
'buttons': ['Yes', 'No', 'Help'],
'onClose': function(caption) {
alert((caption != '' ? '"' + caption + '"' : 'nothing') + ' was clicked');
}
});
3.1 Custom buttons with attached callback functions. Click here to open.
Note that the callback functions attached to custom buttons are executed *before* the dialog box is closed and as soon as a button is clicked! see the previous example for executing functions *after* the closing of the dialog box
$.Zebra_Dialog('Zebra_Dialog, a small, compact and highly configurable dialog box plugin for jQuery', {
'type': 'question',
'title': 'Custom buttons',
'buttons': [
{caption: 'Yes', callback: function() { alert('"Yes" was clicked')}},
{caption: 'No', callback: function() { alert('"No" was clicked')}},
{caption: 'Cancel', callback: function() { alert('"Cancel" was clicked')}}
]
});
4. Position the dialog box in the top-right corner. Click here to open.
$.Zebra_Dialog('Zebra_Dialog, a small, compact and highly configurable dialog box plugin for jQuery', {
'title': 'Custom positioning',
'position': ['right - 20', 'top + 20']
});
5. Use as a notification widget - no buttons and close automatically after 2 seconds.
Note how the plugin needs to be instantiated with the "new" keyword or only the last opened box will close!
Click here to open.
new $.Zebra_Dialog('Zebra_Dialog, a small, compact and highly configurable dialog box plugin for jQuery', {
'buttons': false,
'modal': false,
'position': ['right - 20', 'top + 20'],
'auto_close': 2000
});
6. Customizing the appearance - make the title bar have a dark-blue background and show a custom icon!
The CSS is
/* Notice how we're targting the dialog box's title bar through the custom class */
.myclass .ZebraDialog_Title { background: #330066 }
.myclass .ZebraDialog_Body { background-image: url('coffee_48.png') }
Click here to open.new $.Zebra_Dialog('Buy me a coffee if you like this plugin!', {
'custom_class': 'myclass',
'title': 'Customizing the appearance'
});


World Cities Word Guess Game
Press any key to get started!
Wins
Loses
Current Word
Guesses Remaining
Letters Guessed


BEMS Change Log
Back to the app
Open Issues
2.1.4 Dec 8, 2016
2.1.3 May 26, 2016
2.1.2 May 24, 2016
2.1.1 May 18, 2016
- Added help text and new email recipient to change request.
2.1.0 May 17, 2016
- Added name, email, phone number, and agency to report a problem widget.
2.0.2 May 16, 2016
- SGID10.HEALTH.EMSServiceAreas service types and levels have been updated.
Service levels are now: 2009 AEMT, 2009 EMT, 2009 PARAMEDIC, FIRST RESPONDER
Service types are: 911 RESPONSE WITH TRANSPORT, 911 RESPONSE WITHOUT TRANSPORT, MEDICAL TRANSPORT, RESCUE
2.0.1 May 2, 2016
- Removed Dixie Ambulance Service and Leeds Area Special Service District from Agency filter.
2.0.0 Feb 10, 2016
- Update basemaps to web mercator and the discover appliance.
1.7.0 Oct 7, 2015
- Find address queries boundaries.
1.6.3 Sep 23, 2015
- Clear all graphics on Reset.
- Fix bug with filters.
- Added a no data message to filters.
- All boundaries are not shown when there are no filters applied.
- Adjust secondary title font size.
1.6.2 Sep 16, 2015
- Update logo and reorganize side bar.
- Hide boundary layer until a filter is applied.
- Update service type's and levels.
1.6.0 Sep 2, 2015
- Show search results in grid.
1.5.0 Sep 2, 2015
- County filter can now be combined with other filters.
- Fixed regression introduced by resetting the map where the grid would not appear.
1.4.0 Aug 26, 2015
- Ability to reset filters and map state.
- Ability to submit a border change request.
- Introduce a legend.
1.3.0 Mar 16, 2015
- Ability to filter by agency
1.2.0 Nov 18, 2014
- Ability to print with a title.
- Service providers clicked on in the result grid are zoomed to.
- Filtering service types zooms to their extent.
1.1.1 Nov 13, 2014
- Fixed bug with changing basemaps.
- Updated mxd symbology.
- Clicking on grid rows will zoom and highlight the selected boundary.
1.1.0 Nov 6, 2014
- Users have the ability to filter by service type.
- Urls are copy paste sharabele.
1.0.0 Nov 5, 2014
- Added temp health layer.
- Click to open grid with results
- Added a layer transparency slider
- Added a print button
0.1.0 Nov 5, 2014


Notice Group : {{object.name}} count: {{items.count}}
| Notification ID | To | Type | Loans | Actions | |
|---|---|---|---|---|---|
| {{i.id}} | {{i.customer}} | {{i.medium_type}} | {{i.loans.count}} | Delete |
{%extends "_base.html"%} {%load static%} {%load django_tables2%} {%block content%}
| Notification ID | To | Type | Loans | Actions | |
|---|---|---|---|---|---|
| {{i.id}} | {{i.customer}} | {{i.medium_type}} | {{i.loans.count}} | Delete |


Smog: Scores of Indian farmers arrested over polluting fires
by AFPNEW DELHI: More than 80 farmers have been arrested in northern India for starting fires that contributed to the recent pollution crisis in New Delhi and other cities, officials said on Thursday.
Each winter the post-harvest burning of crop stubble covers swaths of the region in toxic smog, which combines with car and factory emissions to turn Delhi into the world’s most polluted capital.
India’s top court this week ordered a crackdown on illegal stubble-burning, but the fires continued across Punjab and Haryana states – with many started at night to try and avoid detection.
An Indian senior Punjab police officer said more than 17,000 farm fires had been reported in the state in the past three days, with 4,741 on Wednesday alone.
“More than 84 people have been arrested for violating the law. Cases have been filed against 174 farmers,” the officer told AFP.
Punjab and Haryana make up a key agricultural region that produces nearly 18 million tonnes of rice each year. This, in turn, creates nearly 20 million tonnes of crop stubble – most of which is burnt.
Authorities said more than 48,000 farm fires had been reported in the two states since late September – a dramatic increase from 30,000 cases in 2018.
The Supreme Court ordered a complete stop to the fires on Monday and on Wednesday slammed local governments for not taking action, instructing them to pay hard-up farmers to stop burning the stubble.
“You just want to sit in your ivory towers and rule. You are not bothered and are letting the people die,” said Justice Arun Mishra.
Pollution levels in the Indian capital remained bad on Thursday, four days after one of its worst pollution attacks in several years during which schools were closed and a public health emergency declared.
Dirty air causes hundreds of thousands of premature deaths in Indian cities each year, according to medical studies.
Tiny particles from the fires, which can enter the bloodstream and penetrate the lungs and heart, get blown over New Delhi.
In the winter, cooler temperatures prevent pollutants from dispersing, while smoke from millions of Diwali firecrackers also help turn the capital’s skies a putrid yellow.
Meanwhile, in Pakistan, air pollution forced the closure of thousands of schools in Lahore, with a local environment agency spokesperson blaming the poisonous haze on crop-burning in India.
Lahore, home to at least six million people, is less than an hour from the Indian border
However Punjab Chief Minister Usman Buzdar said similar burning takes place in Pakistan, and his administration is tackling the problem.
“Administration is already on high alert and have tasked them to escalate actions against crop burning and other factors that contribute to smog,” he said.
Twitter user Ammar Ali Jan wrote that the city was unbearable.
“The smog is impossible to escape. We destroyed our water resources. Now our air is hazardous. We have turned elements of life into vehicles of death,” said Jan.


Hello friends,this is my No.76 seven pushups for 77 days challenge which is initiated by @nathanmars.
I did it in my office.
Thanks for watching.
I am glad to be a member of the seven77 family..
Friends, You are welcom to be a member of @dtube seven77 family.
▶ DTube
▶ IPFS
This page is synchronized from the post: No.76 seven pushups for 77 days challenge


Getting Started with "Terminal" - MUST READ Before You Start Programming
Programmers use "Terminal" to issue commands, instead of the graphical user interface - which is meant for common users.
You MUST have some basic knowledge on using the Terminal and the file system. Read "Unix Survival Guide for Mac & Ubuntu - Terminal, File System and Users".
How to Install JDK and Get Started with Java Programming on Mac
Read HERE.
Programming Text Editors for Mac
TextEdit for Mac
TextEdit (the default text editor in Mac OS X) is NOT a programming text editor, as it lacks features like syntax highlighting. I strongly suggest you install a programming text editor.
To use TextEdit to write source file, you need to open a new file ⇒ choose "Format" ⇒ "Make Plain Text".
You can open an existing file in TextEdit from Terminal by issuing:
$ open -e filename
nano (or pico) Command-line Text Editor
nano is a GNU text editor that is available for Unix Systems (including Mac OS X), that is suitable for creating/editing small files. To start nano, open a Terminal and issue:
$ nano // Create a new file $ nano filename // Edit an existing file
You can run nano with superuser (for accessing restricted directories), as follows:
$ sudo nano // Run nano with superuser to create a new file $ sudo nano filename // Run nano with superuser to edit an existing file
JEdit for Mac
jEdit is a popular open-source cross-platform (Mac, Windows, Linux) programming text editor. The mother site is http://www.jedit.org.
Step 1: Download and Install jEdit for Mac
- Download jEdit package from http://www.jedit.org ⇒ Download ⇒ Select Mac OS X package (stable version).
- Double click the downloaded Disk Image ("
.dmg
") file. Drag the "jEdit" icon to "Applications" folder. - Eject the Disk Image "
jedit.dmg
".
Step 2: Install "Console" plugins
- Launch jEdit (from "Applications").
- Open plugin manager: From "Plugins" menu ⇒ Plugin Manager.
- Select "Install" tab.
- Search and select "Console" plugin. "ErrorList" plugin will selected automatically ⇒ Install.
Step 3: Write a Hello-World Java Program
- Open a new file by selecting "File" menu ⇒ "New".
- Enter the following Java source code and save the file as "
Hello.java
".public class Hello { // saved as "Hello.java" public static void main(String[] args) { System.out.println("Hello, world!"); } }
Step 4: Compile and Run the Hello-World Java Program
You can start a "Terminal" to compile and run your Java program as described in the above JDK section.
You can also use the "Console" plugin:
- To compile: From Plugins ⇒ Console ⇒ Compile Current Buffer. Click on the "Console" button to view the console. If message "Process javac exited with code 0" appears, the program is compiled successfully.
- To run: From Plugins ⇒ Console ⇒ Run Current Buffer.
gedit for Mac
gedit is the official text editor of the GNOME desktop environment. The mother site for gedit is http://projects.gnome.org/gedit/.
- Download gedit for Mac (DMG version) from http://projects.gnome.org/gedit/ ⇒ "gedit mac os x" ⇒ Choose your specific Mac OS version.
- To install:
- Double-click the downloaded Disk Image ("
.dmg
") file. - Drag the "gedit" icon to the "Applications" folder.
- Eject the Disk Image "
gedit.dmg
".
- Double-click the downloaded Disk Image ("
Notes: To use "gedit" commands in Terminal, you need to add "/Applications/gedit.app/Contents/MacOS/
" to PATH environment variable.
Sublime
How to Install Eclipse on Mac
To use Eclipse for Java programming, you need to first install JDK. Read "How to install JDK on Mac".
To install Eclipse:
- Download Eclipse from http://www.eclipse.org/downloads/. Choose "Mac OS X" ⇒ "Eclipse IDE for Java Developers" (or "Eclipse Classic"). You will receive a TAR file (e.g., "
eclipse-java-juno-SR1-macosx-cocoa-x86_64.tar.gz
") in "~/Downloads
" folder. - Double-click the downloaded TAR file to expand it into an folder called "eclipse".
- Drag the expanded "eclipse" folder to the "
Applications
" folder.
To start Eclipse, open the "eclipse" folder and click on the "Eclipse" icon. You may drag the "Eclipse" icon to the dock.
Notes: To uninstall Eclipse, drag the "/Applications/eclipse
" folder to trash.
How to Install NetBeans on Mac
To use NetBeans for Java programming, you need to first install JDK. Read "How to install JDK on Mac".
To install NetBeans:
- Download NetBeans from http://netbeans.org/downloads/. Choose platform "Mac OS X" ⇒ "Java SE" (e.g., "
netbeans-7.x-ml-javase-macosx.dmg
"). - Double-click the download Disk Image (DMG) file.
- Double-click the "
NetBeans 7.x.mpkg
", and follow the instructions to install NetBeans. NetBeans will be installed under "/Applications/NetBeans
". - Eject the Disk Image ("
.dmg
").
You can launch NetBeans from the "Applications".
Notes: To uninstall NetBeans, drag the "/Applications/NetBeans
" folder to trash.
How to Install MySQL 5.6 on Mac OS X 10.7 Lion
Install MySQL using the DMG Package
Reference: "Installing MySQL on Mac OS X" @ http://dev.mysql.com/doc/refman/5.6/en/macosx-installation.html.
Step 1: Download and Install MySQL
Download the MySQL "DMG Archive":
- Go to http://dev.mysql.com/downloads/mysql/. In platform, select the "Mac OS X".
- Select the appropriate "DMG Archive" for your specific Mac OS version:
- Click the Apple logo ⇒ "About this Mac" to check your Mac OS version.
- Read http://support.apple.com/kb/ht3696 to check if your OS is 32-bit or 64-bit.
- Click "No thanks, just start my download".
To install MySQL:
- Go to "Downloads" ⇒ Double-click "
.dmg
" file downloaded. - Double-click "
mysql-5.5.{xx}-osx10.x-xxx.pkg
" ⇒ Follow the instructions to install MySQL. Click continue if "unindentified developer" warning dialog appeared. - MySQL will be installed in "
/usr/local/mysql-5.5.{xx}-osx10.x-x86_xx
" directory. A symbolic link "/usr/local/mysql
" will be created automatically to the MySQL installed directory. - Eject the ".
dmg
" file.
Step 2: Configuring MySQL - Change TCP Port Number for MySQL Server
- The default TCP port number used by MySQL Server is 3306.
- [For novices: SKIP THIS STEP to run the MySQL Server on port 3306. Goto Step 3.]
You can change the port number by editing the configuration file "my.cnf
" at directory "/usr/local/mysql
".[mysqld] ..... port=8888 ..... [client] port=8888
To create this file, open a new "Terminal" and run the "nano" editor using this command:sudo nano /usr/local/mysql/my.cnf
Modify the lines in green and add in the lines in red; and press ctrl-X to exit. (We use the "nano" editor in this case, you can use any text editor, but run in superuser.)
Notes: On Unix/Mac, the MySQL read the options file in this order: "/etc/my.cnf
", "SYSCONFDIR/mf.cnf
", "$MYSQL_HOME/my.cnf
", "~/.my.cnf
".
Step 3: Start/Shutdown the MySQL Server
Open a new "Terminal" and issue these commands to start the MySQL server:
$ cd /usr/local/mysql/bin $ sudo ./mysqld_safe --console Enter your password: xxxxxx xx:xx:xx mysql_safe logging to '/usr/local/mysql/data/xxxxxx.err' xxxxxx xx:xx:xx mysql_safe Starting mysqld daemon with databases from /usr/local/mysql/data
To shutdown the server, start a new terminal and issue:
$ cd /usr/local/mysql/bin $ sudo ./mysqladmin -u root shutdown // BEFORE you set a password for root // OR $ sudo ./mysqladmin -u root -p shutdown // AFTER you set a password for root
Step 4: Start/Stop a MySQL Client
Open a new "Terminal" and issue this command to start a MySQL client with superuser root
:
$ cd /usr/local/mysql/bin $ ./mysql -u root // BEFORE you set a password for root // OR $ ./mysql -u root -p // AFTER you set a password for root
To terminate the client, issue command "exit
" (or "quit
") from the "mysql>
" prompt:
mysql> exit
Notes:
- You can use "Activity Monitor" (under Applications/Utilities) to check if the MySQL Server is running. Look for process starting with
mysqld
. - The log messages are written to
/usr/local/mysql/data/xxx.err
, wherexxx
denotes your machine name. Issue "sudo cat /usr/local/mysql/data/xxx.err
" to view the messages. - If you get the following error message when starting a client: "Can't connect to local MySQL server through socket '....', check your "Activity Monitor" to see if the MySQL server has been started.
Step 5: (For Java Programmers) Install MySQL JDBC Driver
- Download the latest JDBC driver from http://www.mysql.com/downloads ⇒ MySQL Connectors ⇒ Connector/J ⇒ Compressed TAR archive (e.g.,
mysql-connector-java-{5.x.xx}.tar.gz
, where{5.x.xx}
is the latest release number). - Double-click on the downloaded TAR file to expand into folder "
mysql-connector-java-{5.x.xx}
". - Open the expanded folder. Copy the JAR file "
mysql-connector-java-{5.x.xx}-bin.jar
" to JDK's extension directory at "/Library/Java/Extension
".
How to Uninstall and Remove MySQL 5
- Open a Terminal ⇒ Run the "
nano
" editor to edit/etc/hostconfig
, as follows:sudo nano /etc/hostconfig Enter your password: ....
Delete this line if present: "MYSQLCOM=-YES-
". Press cntl-x to exit "nano" and enter "Y" to save the file. The line "MYSQLCOM=-YES-
" starts MySQL automatically during startup. - Make sure that MySQL is not running (Open the "Activity Monitor" under the "Applications/Utilities", and check for the process "
mysqld
"). Open a Terminal and issue "rm -r
" to remove these directories and their sub-directories (with "f
" indicating no confirmation prompt).sudo rm /usr/local/mysql sudo rm -rf /usr/local/mysql* sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/My* sudo rm -rf /Library/Receipts/mysql* sudo rm -rf /Library/Receipts/MySQL* sudo rm /etc/my.cnf
That's all!
(Advanced) Install MySQL using Tarball
Reference: http://dev.mysql.com/doc/refman/5.5/en/macosx-installation-pkg.html.
[TODO]
How to Install Tomcat 7 on Mac
Step 1: Download and Install Tomcat
- Goto http://tomcat.apache.org ⇒ Download ⇒ Tomcat 7.0 ⇒
7.0.{xx}
(where{xx}
denotes the latest release) ⇒ Binary distribution ⇒ Core. Download the "tar.gz
" package (e.g., "apache-tomcat-7.0.{xx}.tar.gz
"). - To install Tomcat:
- Goto "
~/Downloads
", double-click the downloaded TAR file (e.g., "apache-tomcat-7.0.{xx}.tar.gz
") to expand it into a folder (e.g., "apache-tomcat-7.0.{xx}
").(Notes for Advanced Users) Alternatively, you can use thetar
command to expand the tarball as follow:$ cd ~/Downloads $ tar xvf apache-tomcat-7.0.{xx}.tar.gz
- Move the extracted folder (e.g., "
apache-tomcat-7.0.{xx}
") to "/Applications
". - Rename the folder "tomcat", for ease of use.
- Goto "
(Notes for Advanced Users):
- It is probably better to keep the tomcat in "
/usr/local
" or "/Library". - Instead of renaming the tomcat's folder, it it better to create a symlink called tomcat as follows:
$ cd /Applications $ sudo ln -s apache-tomcat-7.0.{xx} tomcat
- For security reason, you should not run Tomcat as root user. Instead, assign Tomat to user nobody (of group nobody):
$ sudo chmod -R nobody:nobody /Applications/tomcat // -R: recursive thru sub-directories // {user}:{group} // To start tomcat as user nobody $ cd /Applications/tomcat/bin $ sudo -u nobody ./startup.sh // No console message $ sudo -u nobody ./catalina.sh run // See console message // To stop tomcat $ sudo -u nobody ./shutdown.sh
Step 2: Configure Tomcat Server
Read "Configure Tomcat Server".
Step 3: Start the Tomcat Server
To start the Tomcat server, open a new "Terminal" (Go ⇒ Utilities ⇒ Terminal) and issue:
$ cd /Applications/tomcat/bin $ ./catalina.sh run
Check for the Tomcat server's TCP port number from the console messages. The default is 8080.
To verify if the Tomcat server is started, start a browser (Safari) and issue URL http://localhost:8080
, suppose that Tomcat is running on the default TCP port number of 8080.
Also try URL http://localhost:8080/examples
which shows the Servlet/JSP examples.
Step 4: Shutdown the Tomcat Server
To shutdown the Tomcat server, you can simply press control-c (NOT command-c) on the tomcat console, or issue command:
$ cd /Applications/tomcat/bin $ ./shutdown.sh
Step 5: Servlet API
To write Java servlets, you need to COPY the Servlet API JAR file ("servlet-api.jar
") from "/Applications/tomcat/lib
" to the JDK's extension directory at "/Library/Java/Extension
".
Installing GCC and Get Started with C/C++ Programming on Mac
To install
- Goto http://connect.apple.com, and login with your AppleID.
- Download "Command Line Tools (OS X xxxx) for XCode" Disk Image (DMG).
- Double-click the download disk image (DMG) ⇒ Open "
Command Line Tools (xxx).mkpg
" ⇒ Follow the instructions to install. - Eject the disk image.
To verify:
// Show the location of gcc $ which gcc /usr/bin/gcc // Show gcc/g++ version $ gcc --version ... (GCC) 4.2.1 ... $ g++ --version ... (GCC) 4.2.1 ... // Compile and run a C program $ cd path-to-hello.c $ gcc -o hello hello.c $ ./hello
Installing XCode & Get Started
XCode is the development toolset for Mac, iPhone/iPad, which includes the Mac OS SDK (for Mac) and iOS SDK (for iPhone/iPad).
To install:
- Goto http://connect.apple.com, and login with your AppleID.
- Download "XCode 4.x" Disk Image (DMG) - It is HUGE!
- Double-click the download disk image (DMG) ⇒ Open "XCode" ⇒ Follow the instructions to install.
- XCode will be installed in "
/Developer/Applications/Xcode
". - Eject the disk image.
To start Xcode, launch "XCode" from "/Developer/Applications
".
[TODO] Getting Started
More on Terminal & Bash Shell
Goto "Terminal & Bash Shell".
Mac's Tips & Tweaks
Root (or Superuser, or Administrator)
In some cases (such as installing software and starting server), you need to be the so-called root
user (or superuser or administrator) of your machine to complete some commands that require high privilege.  Only authorized user can issue sudo
command. For example, to start the MySQL server:
$ sudo /usr/local/mysql/bin/mysqld_safe --console password:
How to View All Files in Finder
- Open a terminal and enter this commands:
$ defaults write com.apple.finder AppleShowAllFiles -bool true
- Stop the Finder via:
$ killall Finder
- Re-start the Finder. You shall see all the files (including the dot files and dot folders) now.
Miscellanous
- The equivalent of Windows' "Task Manager" in Mac is called "Activity Monitor" under "Applications/Utilities".
- The page-up, page-down, home and end keys are fn-up-arrow (or command-up-arrow), fn-down-arrow (or command-down-arrow), fn-left-arrow and fn-right-arrow, respectively.
Contributed by Wang Qiang (WANG0586@e.ntu.edu.sg).


Crisil Q3 net jumps 16% to Rs 105 crore
For the nine months ended September 30, the agency reported a marginal dip in post tax profit at Rs 248.6 crore as against Rs 249.9 crore, the release said.
by PTILeading rating agency Crisil has reported a 16.77 percent jump in net profit at Rs 105.1 crore in September quarter as against Rs 90 crore in the year-ago period.
For the nine months ended September 30, the agency reported a marginal dip in post tax profit at Rs 248.6 crore as against Rs 249.9 crore, the release said.
The company attributed the decline in profit on a year to date basis due to adverse movements in foreign exchange.Get access to India's fastest growing financial subscriptions service Moneycontrol Pro for as little as Rs 599 for first year. Use the code "GETPRO". Moneycontrol Pro offers you all the information you need for wealth creation including actionable investment ideas, independent research and insights & analysis For more information, check out the Moneycontrol website or mobile app.


TRY A FREE 3 DAY GYM PASS
GET YOUR PASSLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
ALL PROGRAMSIt has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
Contrary to popular belief, Lorem Ipsum is not simply random text.
Name 1
Contrary to popular belief, Lorem Ipsum is not simply random text.
Name 2
BIG, FASTER, STRONGER