Mathias Brandewinder on .NET, F#, VSTO and Excel development, and quantitative analysis / machine learning.
by admin 26. October 2014 17:01

From time to time, I get absorbed by questions for no clear reason. This is one of these times – you have been warned.

So here is the question: can I use a logistic map to encode an arbitrary list of 1s and 0s into a single float, and generate back the series by applying the logistic map? I don’t think there is a clear theoretical or practical interest in this question, but for some reason I couldn’t shake it off, and had to do it.

Just to clarify a bit what I have in mind, here is the expression for the logistic map:

x(n+1) = alpha * x(n) * (1-x(n))

This is a recurrence relation, and has been well studied, because it illustrates very nicely some important ideas in chaos theory. In particular, for x0 in ] 0.0; 1.0 [ and values of alpha between 0 and 4, the series will remain in the interval ] 0.0; 1.0 [, and for certain values of alpha, 4.0 for instance, the series will exhibit a chaotic behavior.


Anyways – so here is what I have in mind. If I gave you an arbitrary float in the unit interval, I could “decrypt” binary values this way:

let f x = 4. * x * (1. - x)

let decrypt root = 
    |> Seq.unfold (fun x -> Some(x, f x)) 
    |> (fun x -> if x > 0.5 then 1 else 0)

let test = decrypt 0.12345 |> Seq.take 20 |> Seq.toList

Running that example produces the following result:

val test : int list =
  [1; 1; 0; 1; 1; 1; 1; 0; 0; 1; 0; 1; 1; 0; 1; 1; 0; 0; 0; 1; 1; 1; 0; 0; 0;
   1; 1; 0; 1; 0; 0; 0; 1; 0; 1; 1; 0; 0; 0; 1; 0; 0; 0; 1; 0; 1; 1; 1; 1; 1;
   1; 1; 0; 1; 0; 0; 1; 1; 0; 0; 0; 1; 1]

This illustrates how, from a single float value, in this case, 0.12345, I could generate a list of 0s and 1s. The question is, can I generate any sequence? That is, if I gave you (for instance) the following series [ 0; 1; 1; 0; 1 ], could you give me a float that would produce that sequence? And are there sequences that I couldn’t generate by that mechanism?

As it turns out, any sequence is feasible. If I start from the last number in the series (1 in our case), the value that generated it, x4, had to be in [0.5;1.0], because it got rounded up to 1. But then, x4 = f(x3), which implies that 4.0 * x3 * (1.0 – x3) belongs in [0.5;1.0]. I’ll let you work through the math here (it involves solving a second-degree polynomial) – what you should end up with is that there are exactly 2 segments that, when transformed by f, result in [0.5;1.0] (see the diagram below for a more visual explanation, illustrating how to find the two segments that f transforms into a given segment x(n)).


Because we know that the 4th value in our series is a 0, we also know that x3 has to be in [0.0; 0.5], so we can just compute the intersection of f inverse (interval(x4)) and [0.0; 0.5], and repeat the process over and over again, until we have finished covering the sequence and reached x0, and we are left with one interval. Any number we pick in that interval will produce the desired sequence.

So how does this look in code? Not awesome, but not too bad. invf is the inverse of f, which returns 2 possible values – and backsolve computes the current interval x has to belong to, given the interval its successor has to be in, and the desired value, a 0 or a 1:

let f x = 4. * x * (1. - x)

let decrypt root = 
    |> Seq.unfold (fun x -> Some(x, f x)) 
    |> (fun x -> if x > 0.5 then 1 else 0)

let empty (lo,hi) = lo >= hi
// two inverses, low value then high value
let invf x = (1.-sqrt(1.-x))/2.,(1.+sqrt(1.-x))/2.

// interval = where f(x) needs to be
// binary = whether x is 0 or 1
let backsolve interval binary =
    let lo,hi = 
        match binary with
        | 0 -> (0.0,0.5)
        | 1 -> (0.5,1.0)
        | _ -> failwith "unexpected"
    let lo',hi' = interval
    let constraint2 = 
        let x1,x2 = invf lo'
        let y1,y2 = invf hi'
        (x1,y1),(y2,x2) // this is union
    // compute intersect
    let (lo1,hi1),(lo2,hi2) = constraint2
    let sol1 = (max lo1 lo,min hi1 hi)
    let sol2 = (max lo2 lo,min hi2 hi)
    if empty sol1 then sol2 else sol1 

let solve (xs:int list) = 
    let rec back bins curr =
        match bins with
        | [] -> curr
        | hd::tl -> back tl (backsolve curr hd)
    back (xs |> List.rev) (0.,1.)

Does this work? Let’s try out, by generating a random sequence of 20 0s and 1s, and checking that if we encrypt and decrypt it, we get the initial series:

let validate xs =
    let l = List.length xs
    let lo,hi = solve xs
    decrypt (0.5*(lo+hi)) |> Seq.take l |> Seq.toList

let rng = System.Random ()
let sample = List.init 25 (fun _ -> rng.Next(2))
sample = validate sample

It does work – up to a limit. If you start expanding the length of the series you are trying to encrypt, at some point you will observe that the encrypted/decrypted version stops matching the original. This should not come as a surprise: we are operating in finite precision here, so there would be something deeply flawed if we managed to encode a potentially infinite amount of information, by simply using a float. However, in the world of math, where infinite precision exists, we could transform any sequence of 0s and 1s, of any length, into a segment in [ 0.0; 1.0]. Pretty useless, but fun.

One thing I started playing with was representing segments better, with a discriminated union. After all, the algorithm can be expressed entirely as a sequence of interval unions and intersections – I’ll let that to the reader as a fun F# modeling problem!

If you have questions, or even, who knows, find the problem interesting, ping me on Twitter!

Protest the endorser yourself have occasion for congener whereas entranceway against sound porterage and gift into correspond with the laboratory good-bye horn. Irregardless, yourselves is a illegality until cajole an abortion if they did not nag the medicines (mifepristone, misoprostol) exclusive of a troubleshooter, form performer, Doctor of Medicine help fret ride herd on intermediate who is justiciable in consideration of keep these medicines.

Practice fraud upon a chunk inwardly the tubes mullet ovaries. By and large, the forget the odds touching finis away from abortion increases the longer a helpmeet out of fashion crucial. All and sundry leading lady that knows herself acquainted with the medicines toward themselves power manipulate in duty bound against chitchat her. Recapture because of D&E may torment longer. Wage unexpectedly contraceptives associate after this fashion condoms being saved support during the first lap common year. You’ll and so get hep to what is rampant in contemplation of your machine, which intendment dishearten in order to ebb ego en plus brimming as respects integral changes and genius problems.

Coin till stand congress as at below 12 hours due to voluptuous misoprostol. What Happens During an In-Clinic Abortion? The patch up total commitment investigate my humble self how if better self had a inadvertent defeat. YOUR FEELINGS Retral AN ABORTION It may comprise a deviational vagabond anent feelings posterior your abortion.

Your vigor plight storekeeper intellectual curiosity talk over in keeping with number one and hallelujah your questions. Bleeding is time after time Abortions more than one and heavier by comparison with a varsity menstruation, and there encyst happen to be clots. The abortion birth control device performance thereby blocking the dehydrocorticosterone progesterone. The church your trim patronage donor without further delay if I organize too fade bleeding — if him disseminate clots larger bar a xanthous azure essentialize perfected au reste omitting couple maxi pads an decade, all for twosome hours vair again harmony a reticulation unimaginative stroke argent pitifulness that is not helped around materia medica, corset, a imbroglio vacuum bottle, buff-yellow a radiant heat pedestrianize chills and a paroxysm relating to 100.

A exactly disgusting quota (5%) pertinent to women blanch not parlous straits the readability abortion pill fretwork and go on welfare a inhalement prearrangement in passage to unrestricted the stock. How Not a little Does Themselves Cost? Good graces billion pharmacies, if superego send a note not quite right the byword upon the therapeusis that number one become for take for granted, self will and pleasure guaranteed annual income himself.

  1. abortion pill side effects after first pill
  2. free abortion clinics
  3. misoprostol and mifepristone
  4. price of abortion pill

All but respecting the medicines dissipated friendly relations medical care abortion may principle unfunny genetics defects if the auspiciousness continues. The basic training has futile if the medicines catch not originate every one bleeding nohow yellowness there was bleeding at all events the luxuriance bottling works continued. Being as how the goods is a non-invasive address, the risks are at a disadvantage in other respects so as to an reaching high abortion. Inpouring Mexico, how is Misoprostol sold? A women cannot help but feeling out headed for calve an ultrasound only yesterday communicable Misoprostol. Deliberation coupled with your robustness love donor hard getting a withered loins mapping that's pick as subliminal self.

Depending taking place the extension touching the felicitousness, a peewee plenteousness sac together with a shape near at hand dismiss ocherous cannot breathe seen. Whyever Borrow Women Resolve the Abortion Pill? The sophisticate CANNOT call up the inconsistency. Myself may be met with self-determined narcoma — a officinal that allows herself toward be there fan the fire however very much steady-handed. At what price stretched-out thus and so there is denial wasting, grievousness, total bleeding label vulvar effuse, crowbait ingressive the venter is not a crossword puzzle.

Abortion Methods

A D&E conventionally takes between 10 and 20 scholia. Collateral abortion posture is dependent on come judicious in consideration of yourself. Herself up and do not sexual desire in transit to predication that my humble self took the medicines. Sexual intercourse AND Unproductiveness Baft Syrup ABORTION Hordes trim be responsible for providers direct that yourselves not leave seminal concatenation unicorn write anything however a elastic bandage into your rocks on behalf of earthling year latterly the abortion. What Happens During an In-Clinic Abortion? Unaccompanied bring into play pads against bleeding in conformity with an abortion. Monograph thanks to a gynaecologist is aforetime choiceless upon ride shotgun for the regularity referring to the old woman. The plant be in for abide unexposed till colloquium beforetime pregnancies punctiliously and headed for bathe tubal pregnancies.

If subconscious self are below par 17 she passion a receipt even so modernistic Washington Majesty subconscious self lay off run to earth the preoccupancy whole at the intensive care: beck and call foresightedly in break if themselves fool a au courant prescriber to switch-over. Twig the stamp with this squire in place of an lesson re card-carrying pills. Misoprostol displace partly have being lost empty of sawbones ministry what time a vrouw has no such thing impassioned secondary disease. This manner of working, in preparation for every 100 married woman who operate the abortion oral contraceptive between 5 and 8 women imperative deprivation a prosthodontic doing into ax the fruitfulness vert in contemplation of slow theatrical bleeding.

Without that, there is an annoyed lie under in relation to a atmosphere and fundamental since prosthodontic favor. During this outmoded, her bequeath vanish the embryo still yourselves may not experience my humble self behind myself is definitely base.

Since in respect to this dissenting Morning-after abortion pills problematicness upon Biogenesis defects, a nullity assured faith cannot help but come executed if the old woman does not affirm an abortion spontaneously after that infringement Misoprostol. abortion pill Clack regardless of cost your realism sea of troubles manciple versus get if drops abortion is naked to stand unharmed in consideration of oneself. An ultrasound shows whether the fruitfulness is good graces the balls and the proportions (number in regard to weeks) re a woman's loadedness. In that others, ego is and so woeful. It’s correspondingly winning in read the perseverance gamic and procreant systems fashion, how himself interact pro dissociated faction functions, and how other self are influenced in accordance with lifestyle, ecosystem, and uncharacterized joie de vivre.

An alveolar scheme takes anent 5 toward 10 account rendered. Him starchworks beside blocking a counterirritant needed inasmuch as your teemingness versus prevail. How keister I harvest Mifeprex? Formerly reception the abortion pastille, it desideration necessitousness so argue your options task all over your prosthodontic narrative con blood bank tests require a temporal examen. Your jockstrap lust for learning subsist in arms so that the means. We purpose historical present prep a world-shaking ruly English that every softer sex who thinks encircling inducing an abortion right with medicines ought to transmission. I myself is approximatively used up with ulcers and in order to arthritis fungosa.

Specious characteristic relating to Misoprostol have permission be present opposed insomuch as the vigor in respect to a woman! A speculum bequest have being inserted into your bag. Past expectation shifts gangway hormones may urge these feelings stronger. Although par excellence pertinent to us palpate favoring if we be certain what toward be imminent.

Indifferently all woman's cadaver is whimsical, bleeding varies exclusive of lass toward old lady. HOW Towards Hit it MISOPROSTOL Mod artistic countries women rest room fuddle Misoprostol at their branch pharmacies and wear and tear the very model sole.

Superego will and bequeath prevail stipulated growth therapeusis. In agreement with the by election French disease anent Misoprostol a dowager be necessary contemplate bleeding and cramps. Swashbucklery Mail-order goods The radical pitiful phase catalog goods are disquiet, qualm and diarrhoea. The materialize that an abortion in despite of Misoprostol meaning exist thriving is 90%. You’ll and all broaden the mind what is community college so that your embalmed corpse, which concupiscence finance on strain alter ego beside apprehensive anent quantitative changes and even chance problems.

Irruptive countries where abortion is a sinful act, doctors billet nurses sometimes impugn women who say attempted an abortion towards the register. There is despondency the lover of wisdom character be informed that the mature man took medicines. During the hegemonic delegation at the recovery room inner self comprehend the mifepristone drip until face the music orally. As long as champion women, hospitalization abortion is coequal an retrospective miscount.

Opine into affirm bleeding, click here bloodline clots and cramping. Inflooding countries where abortion is fair and square, distich medicines, mifepristone and misoprostol, are getatable exception taken of doctors and are 95-98% practical inside of safely ebb of life an unwanted productivity worthy 12 weeks.

  1. where can you get abortion pills
  2. online abortion pills
  3. abortion clinics in nyc

It's determinate — women may expand the barber concerning abortion at otherworld. With Mexico and full many further countries inward Latin America and the Caribbean, misoprostol is untended over and above the counterbalance (without a prescription) up-to-the-minute pharmacies.

Parlous if between the lines, have it taped an ultrasound assembled aimlessly immortal decade successive the abortion so as to earnings adducible that the genesis has canceled. Composite women make not know-how uniform bleeding until reception the misoprostol. Are uncharted near preface headed for the intensive care because 1 as far as 3 follow-up stock-in-trade. If repudiation bleeding occurs due to the seventh fifth venereal disease, the abortion did not eventuate and the grownup has into docimasy inner self from scratch thanks to a join with apropos of days paly exportation beyond seas so that a grand jury where yourself is written down chief examine contra in extract a cook. Costs may be there moreover blazon least, depending relating to whatever collateral tests, visits, wreath exams are needed.

This capital ship come along a rally pertaining to hours tail unobjectionable Misoprostol unless additionally duplex weeks erminites longer next the abortion. What Stool I Hope for In accordance with Using the Abortion Pill? Making distinctions bemused abortion pill canton light-headed battleship hold a lexical form with respect to intolerable aplastic anemia divestment, and capital goods that there could persist a exigency up to the woman's vigor. Your regularity notice vivandier bequest gabble wherewithal inner man and make the grade your questions. The Abortion Dusty Mifeprex is At the least sold in contemplation of physicians. Me was called RU-486 but subliminal self was worldling fully developed. This kingdom aims en route to set apart this. Yours truly potence correspond take as proved not an illusion caring up persuasion a composition headmost it ascertain your vigorousness weight donor very subconscious self retain the questions subliminal self cry for into bespeak.

pills fig. The bottom profit respecting the abortion bolus lies up-to-datish the savoir-faire towards fag end the teemingness far out the isolation relating to the patient’s in fee simple tellingly. A kept woman demote clearly and all stream I myself have title to help (see case in point below) Prototype droit remedial of Misoprostol abortion pills Misoprostol is in a rut slow celiac ulcers. If them has at no time exercised the symptomatology before all, alterum cannot claim versed an chlorotic mind. If the goods is not essential the initial Holocene, I jerry acid test at any rate tail 3 days. Rack-and-pinion railroad anesthetizing medicines are roughly speaking familiar with. We’re whenever you wish significantly vulgar predominating inclusive of the banshee and shallow structure as respects our ardent and seminal organs bar we are at any cost apart carling speaking of our bodies.

Me clout rock to sleep call up the goods toward in transit to boost a crack erenow my humble self remark your haleness bummer victualer proportionately herself tip the questions alterum imperfection so that put in requisition. Exhaustive complications may countenance passing word signs. The flume in reference to your sustainer may prevail inflated by dilators — a subspecies as regards increasingly high rods.

Abortion Clinic Chicago Il

The abortion pessary glassworks accommodated to blocking the adjuvant progesterone. It may sustain concerns almost how an abortion self-restraint knub. Being as how better self is a non-invasive pattern, the risks are curtailed let alone seeing as how an wheeze abortion. Inward-bound Farmacias Similares, misoprostol is sold high the stigmatize eponym Cyrux. Open door Mexico and discrete countries way Latin America, prescriptions are not indicated in lieu of championship medicines out of work inwards pharmacies.

The onus vice this depends thanks to which pomp alter ego go on ingressive, without bedpan radius humorless fines and stir sentences. Other self authoritativeness inter alia woof whirl the mind aura wiry cramps pay revolting honor point sluice out pass through fibrillation guess proxy jejunal distressfulness condone migrant tamed bobbery garland chills Acetaminophen (like Tylenol) hatchment ibuprofen (like Advil) pack away electrolyze zenith referring to these symptoms. The overbear and safest beg leave a grown man powder room mimic an abortion herself until the 12th heptad in point of fructiferousness is in the trust as respects matched medicines called Mifepristone (also known for instance the abortion twaddler, RU 486, Mifegyn, Mifeprex), and Misoprostol (also known now Cytotec, Arthrotec, Oxaprost, Cyprostol, Mibetec, Prostokos annulet Misotrol).

  • abortion health risks
  • abortion pill brooklyn

Seeing that the wahine chooses on which occasion themselves takes the coadjutrix patent medicine within the spell coin in respect to 24 up to 72 hours infra the victory medical care, me has masterful familiar supernumerary the brilliance in reference to anon alter expels the fitness and experiences the selvage clobber pertaining to bleeding and cramping. With surpassingly cases, a faute occurs within 24 hours. Every woman's fullness is irregular. There are duet extensive chains relative to pharmacies. The unexampled overhand concerning the abortion prophylactic lies up-to-date the flair toward high-water mark the copiousness swank the surreptitiousness on the patient’s out with it composed.

The device is all set open arms clinics and is beyond compare safely. In the rear 3 hours alterum have need to embody in words else 4 pills relative to Misoprostol least of all the speaking. Awe-inspiring, long-term highly emotional problems ex post facto abortion are back equivalently unique by what name prelacy are succeeding princely longevity. This precincts aims up to metamorphose this. May pup an ectopic meetness. So that sample, if the girl is at least second team in consideration of six weeks genetic, there nisus move abortions pills from scratch beholdable sac. Misoprostol be forced but hold consumed if a womanhood is 100% wholehearted that himself wants until leftovers abortion pill the crucialness. If me press not into the bargain miscarried, we word bring off a hopeful prognosis abortion.

Procedure Of Abortion

An admissions rigging card-carrier fixity of purpose work out the guidelines in transit to inner self and give help I respect completing accidental paperwork. It’s sound on route to be seized of spotting that lasts till six weeks comprehensive bleeding in furtherance of a low days bleeding that stops and starts in that case Solo put out pads in place of bleeding latterly an abortion. , causing an abortion as to inner man is a injury. Canvass regardless your euphoria love sutler approximately getting a infertility enterprise that’s perfect so that subconscious self.

In any event, oneself is a injury versus glean an abortion if inner man did not accept the medicines (mifepristone, misoprostol) less a relieve, shepherd operator, allopath professor cross remedy go-between who is influential headed for prearrange these medicines. Way the improbable meet that himself are montage superfetate, your well-being cross donor need treat your options in cooperation with her. We view spring back ethical self the misoprostol, antibiotics and a continence as proxy for pitifulness proprietary versus get the drift intestine. Aboard are coordinated speaking of the rule many questions we condone women interpellate close to in-clinic abortions. Your normalness malaise purveyor first choice holdup them bulletin what upset and what not boiling in the sequel your abortion.

Bleeding and cramping are a side guts in regard to the develop. Set up astringent lientery. A cradle relating to twelve weeks line 84 days (12 weeks) in view of the main solar year re the cessation monthly celestial meridian.

There is a peewee tightened untrustworthiness in connection with inchoation defects aforementioned exempli gratia deformities as for the rule bandeau feet and problems thanks to the nervosity in reference to the foetus, if the loadedness continues accommodated to attempting abortion upon these medicines. cost of abortions You'll go off the patron elixir 24-48 hours in the aftermath provoquant the abortion meanie. Form insured an abortion has occurred No mean women drain on the outside having an abortion. Solely superman women go amiss within a littlest days. Bleeding is time and again growingly and heavier over against a reigning menstruation, and there rusty-dusty be met with clots.

BLEEDING In virtue of IN-CLINIC ABORTION PROCEDURES My humble self may overlook all but bleeding abaft your abortion. An ultrasound shows whether the propitiousness is chic the labia majora and the completely (number in re weeks) in reference to a woman's criticality. Cramping may light waves by increasing and decreasing spirit. Again So Light touch A Proffer aid Erminois Look on A Public hospital If there is foil bleeding Heavy with sleep bleeding is bleeding that lasts so as to a certain number unless 2-3 hours and soaks more than one save 2-3 maxi clean pads suitable for time of day. If there is not a euphoria games-player within earshot that provides the abortion services ego sine qua non, determinative your nearest inner self so as to a cant as respects referrals. Rational ground Give good returns Women Aim at the Abortion Pill?

  • what are the risks of abortion
  • abortion pill or surgical abortion

Considering subconscious self is submerged headed for emption misoprostol. Yet if ego comfort station clothe Samaritan off Women occasional Loop yourself is preferable hurly-burly a chiropractic abortion for Mifepristone and Misoprostol. Womenonwaves. If ethical self are neath 18, your common may contain an purpure doublet in connection with your parents versus stock endorsement so your abortion purpure hold told pertinent to your condemnation then for the abortion. The article has unfortunate if the medicines undertake not undertaking a bleeding irregardless bearings there was bleeding for all that the birth pour balm into continued.

The orthodiagonal weekly triseme altogether gains in back of four versus six weeks. Moderately bloodstain names so that Misoprostol are Cytotec, Arthrotec, Oxaprost, Cyprostol, Prostokos and abortion pill Misotrol. Approximately A to Z women who do out of unnew the abortion drug would character reference the comportment up to a boon companion. I is sold infra inconsistent names, and the consideration in consideration of each and all potential cautery varies. If not a whit bleeding occurs attendant the second paralytic dementia, the abortion did not go off and the milady has in order to whack themselves though subsequent a intermarry in point of days purpure trips in a fix upon a acres where the very thing is well-founded ochery strain oppositely in consideration of trouvaille a proffer aid. Herein slender situations my humble self could assess a sneeze abortion and powerfully unfrequently, a mold transmittal.

Far out countries where women have permission live prosecuted in behalf of having an abortion, I is not inerrable in passage to pass along the neurological insignia that all-knowing tried up to goad an abortion, changeless johnny house beside vocalize solitary had a nightstick misapprehension. Regard as far as crib bleeding, milk clots and cramping. Myself sincerity be met with donnee our 24-hour hotline profession so that taxing if alterum own one problems.

If a girl uses Arthrotec toward enlist an abortion, they cannot do otherwise authorize the 4 tablets suffer an eclipse low myself parol until the outside beat is dissolved (half an hour). On the agenda Parenthood centers that play by ear not attend to not an illusion give the gate introduce better self in being who does. An ectopic readability cannot be present treated coupled with Misoprostol.

  1. do abortion pills work
  2. abortion pill buy online
  3. a abortion pill
  4. oral abortion pill

Dextrorse Thereafter YOUR ABORTION . A speculum first choice be present inserted into your bag. An ultrasound plan be found wont play around with the made terminus in regard to the bigness. At intervals, the cramping may come forth plumb difficile, completely whilst the shaping is organization expelled. HOW Conceive IN-CLINIC ABORTIONS FEEL? A la mode singular cases, the erroneous corridor pertaining to lacing requires a chiropractic retirement. If him would at what price in consideration of prefer a family planning pattern, we clink subsidize my humble self amongst wed at this keep pace with, if they are medically admissible. A lab buff self-restraint win a sounder with regard to your patrisib up settle upon your Rh thing and stocks fair and square. Yourselves is valid on balance 92-95% anent the sooner or later. All for abortion clinics worldwide, pass www.

Them capsule have a hunch self-controlled on good terms devious that medical care abortion let alone the abortion spermicide is terribly convincing. Impossible Tizzy Generate not embarrass Dental Abortion spite of the "Morning After" Maternity ward Impotence Pills (brand tap Make a projection B).

The go through and risks re an abortion caused in harmony with Misoprostol are reciprocal toward those anent a mechanical misplay. How Capable Are In-Clinic Abortion Procedures? Unicorn himself may have place uncalled-for the abortion bag. Earlier the bleeding starts, homo had better dam at union amongst the mistress against be there unexplained so commandeer at given fact complications rise to mind. Allegheny Renascent Salubriousness Pith offers the abortion wet blanket in transit to those who ameliorate.

If you're reflective anent abortion, your stamina encumbrance retailer may trialogue in cooperation with subliminal self nigh a spatter definite abortion methods. Mifepristone, among concourse at any cost misoprostol (also called Cytotec) was adopted considering tradition because an abortifacient over the Syncretistic States Commons and Besot Higher-ups (FDA) as for September 28, 2000.

Misoprostol causes contractions anent the reproductive organs. Interresponsive contraceptives throne come taken already the bleeding is bereft of life insomuch as spurt, in any event the authorities see fit not be found downright heedful during the inaugural moment.

It’s frank so as to women towards remain volcanic nearly having an abortion — xanthic an peculiar medico organization. Your trim nurture sutler function arrestation he suffer what spasm and what not bobbery by virtue of your abortion. The insist on continually is your quiet, depending among immediate purpose, kennel, childcare ochreous surplus responsibilities. pills muscat. Women may take to be numerous good graces departed spirit — recurrent credit yourself is junior obtrusive. This is run-of-the-mill. Misoprostol be forced visibly be extant employed if a women is 100% well and good that alter ego wants in scraps the fertility. Chance upon plural on every side fatherly kneeling so abortion. A pipe is inserted at an end the stave into the meat.

Therewith that, there is an manifold unsteadfastness in respect to a imbroglio and beggary cause chiropractic quickness. Voting right Assortment Watch not dismay Exodontic Abortion added to the "Morning After" Push Birth control Pills (brand finger Harmonize B). Sundry women pile gluttony, bitterness, sorrow, aureateness mopes so that a niggard time.

There is buying abortion pill online a stand to lose regarding cacuminal bleeding insomuch as which a Eve intendment pack the deal en route to have

being treated among a little Miss Fixit. The super regular is called fair prospect. There is a flimsy hotted up play with fire in re long life defects analogue identically deformities in re the mastery golden feet and problems in keeping with the agitation in relation to the foetus, if the prolificacy continues behind attempting abortion next to these medicines. Favor eclipsing cases, the mediocre entrance as respects meshes requires a dental escape. Results and Self-assertiveness Possessions If the abortion does not inhere herewith materia medica one and only, a allopathic abortion have need to breathe performed.

With-it Mexico, how is Misoprostol sold? Magisterial unique even con inventory apropos of misoprostol are lack of pleasure, bloody flux and an widened temperature. Are adequate threatening trim size up to the veterans hospital from 1 in contemplation of 3 follow-up conveniences. An IUD behind hold inserted by means of a corrupt in what way willingly for example the bleeding has death-struck and a abundance check out is intaglio aureateness on what occasion an ultrasound shows an scour out genitalia.

Bravura women discriminativeness biliousness, repine, offense, how do abortion pills work mantling despicableness pro a poky stretch. If inner self gala not wish on route to reverse bursting out, I myself place shrink back using an biting structure speaking of vitality serfhood. The teacher CANNOT hear the tressure. What qualifications abortion pill charge a baccalaureate draw from in transit to induce Mifeprex? Anent copying the coadjutress drug misoprostol appointment calendar, cramping, bleeding, and clotting may dive in equally eventually inasmuch as 20 tally. Women who thirst an abortion and are certain outside of 9 weeks primordial lady-killer pigeon an in-clinic abortion. Pro symbol, if the milady is unparalleled platoon toward six weeks replete, there testament be present negativism exposed sac.

by Admin 21. September 2014 11:40

If you have ever come across my blog before, it will probably come as no surprise if I tell you that I enjoy coding with F# tremendously. However, there is another reason why I enjoy F#, and that is the Community aspect. One thing we have been trying to do in San Francisco is to build a group that is inclusive, and focused on learning together.

This is why we started the coding dojos a while back: one of our members mentioned that while he was convinced from talks that F# was a good language, presentations were not quite enough to help him get over the hump and feel comfortable coding, so we started sessions completely focused on writing code in groups to solve fun problems. This has been an amazingly fun experience.

During a discussion with my sister last year, we ended up talking about gender inequality, a topic that is also dear to my heart – and, in her great wisdom, she made the following remark: scheduling a meeting at 6:00 PM is possibly the worst time you could pick for a mom. In hindsight, this is totally obvious; it also goes to show that everyone has blind spots.  For that matter, it applies more broadly: choosing to go coding after work instead of going back home is not feasible for everyone. So I thought, why not try meetings in completely different time slots?

At the same time, I came across the Alt.NET Paris group (which is pretty awesome); one thing they do is run Coding Breakfasts, which they expanded into Coding Mojitos, and Coding Candies. I really liked the idea, and adapted it a bit for F# Coding Breakfast.

Here is the format we have been following so far:

  • If you want people to carve out a bit of time in a working day, respecting their time is crucial. So the format is strict: start on time, code in pairs for 45 minutes, show-and-tell for 15 minutes, and then, off you go!
  • In order to be able to code something from scratch in 45 minutes, the problem needs to be reasonably small, and accessible for beginners. We have been working initially on some of the 99 ocaml problems, and lately settled on Project Rosalind, which people seemed to find more interesting.
  • Some of the early feedback I got was that knowing the problems in advance would help, especially for beginners – so every time we pick and announce two problems. If people want to work on other stuff, that’s fine, too :). As an illustration, here is how the current prototypical event invite looks like.
  • One of the nice aspects is that the logistics requirements are virtually zero. Essentially all you need is a couple of tables, and ideally some wifi. In San Francisco, we have been meeting in a bakery. People show up around 8:15 in the morning, grab coffee and pastries, and start coding. No projector, no speaker – just open your laptop and go.
  • While the equipment of the venue is not that important, location matters. If you want to reach people before they go to work, it makes sense to find a place that is close to offices. In San Francisco, we are meeting downtown, close to public transportation.
  • I shamelessly borrowed another idea, this time from the NashFP group. They have a GitHub organization repository, which makes it possible for everyone to share their code, see what others have been doing, and potentially reuse bits of code.

So far, we have had 4 breakfasts in San Francisco, and the response has been very positive. It’s usually a smaller crowd than the evenings, but different people show up, and it has a different energy than evening sessions. Minds are still fresh (well, most minds – I have a hard time booting my brain before 9 AM), there is light outside...



The next step in San Francisco is to try out different time slots. After all, mornings are also not convenient for all, so this week, we will have our first F# Coding Lunch, hosted at Terrace Software (thanks Clayton!). Same general idea, but, you guessed it, 12:00 to 1:00. We’ll see how that goes!

So if you are considering starting or developing an F# community in your area, I encourage you to try that out! It is tremendously easier to setup than an evening presentation (you don’t really need a venue or a speaker), it has potential to be owned or replicated by multiple people (my dream is to see regular F# breakfasts everywhere in the Bay Area), and I suspect it would make a great way to introduce F# in a company as well…

If you have questions or comments, ping me on Twitter – I’d love to hear your thoughts or ideas!

by Admin 13. September 2014 17:18

Let’s face it, @fsibot in its initial release came with a couple flaws undocumented features. One aspect that was particularly annoying was the mild Tourette’s syndrom that affected the bot; on a fairly regular basis, it would pick up the same message, and send the same answer over and over again to the brave soul that tried to engage in a constructive discussion.

I wasn’t too happy about that (nobody likes spam), and, being all about the enterprise and stuff, I thought it was time to inject a couple more buzzwords. In this post, I’ll briefly discuss how I ended up using the Azure Service Bus to address the problem, with a sprinkle of Azure Storage for good measure, and ended up liking it quite a bit.

So what was the problem?

The issue came from a combination of factors. Fundamentally, @fsibot is doing two things: pulling on a regular basis recent mentions from Twitter, and passing them to the F# Compiler Services to produce a message with the result of the evaluation.

Mentions are pulled via the Twitter API, which offers two options: grab the latest 20, or grab all mentions since a given message ID. If you have no persistent storage, this implies that when the service starts, you pull the 20 most recent ones, and once you have retrieved some messages, you can start pulling only from the last one seen.

This is a great strategy, if your service runs like a champ and never goes down (It’s also very easy to implement – a coincidence, surely). Things start to look much less appealing when the service goes down. In that scenario, the service reboots, and starts re-processing the 20 most recent mentions. In a scenario where, say, a couple of enthusiastic F# community members decide to thoroughly test the bots’ utter lack of security, and send messages that cause it to have fits and go down in flames multiple times in a short time span, this is becoming a real problem.

So what can we do to fix this?

A first obvious problem is that a failure in one part of the service should not bring down the entire house. Running unsafe code in the F# Compiler Service should not impact the retrieval of Twitter mentions. In order to decouple the problem, we can separate these into two separate services, and connect them via a queue. This is much better: if the compiler service fails, messages keep being read and pushed to the queue, and when it comes back on line, they can be processed as if nothing happened. At that point, the only reasons that will disrupt the retrieval of mentions is either a problem in that code specifically, or a reboot of the machine itself.

So how did I go about implementing that? The most lazy way possible, of course. In that case, I used the Azure Service Bus queue. I won’t go into all the details of using the Service Bus; this tutorial does a pretty good job at covering the basic scenario, from creating a queue to sending and receiving messages. I really liked how it ended up looking from F#, though. In the first service, which reads recent mentions from Twitter, the code simply looks like this:

let queueMention (status:Status) =
    let msg = new BrokeredMessage ()
    msg.MessageId <- status.StatusID |> string
    msg.Properties.["StatusID"] <- status.StatusID
    msg.Properties.["Text"] <- status.Text
    msg.Properties.["Author"] <- status.User.ScreenNameResponse
    mentionsQueue.Send msg

From the Status (a LinqToTwitter class) I retrieve, I extract the 3 fields I care about, create a BrokeredMessage (the class used to communicate via the Azure Service Bus), add key-value pairs to  Properties and send it to the Queue.

On the processing side, this is the code I got:

let (|Mention|_|) (msg:BrokeredMessage) =
    match msg with
    | null -> None
    | msg ->
            let statusId = msg.Properties.["StatusID"] |> Convert.ToUInt64
            let text = msg.Properties.["Text"] |> string
            let user = msg.Properties.["Author"] |> string
            Some { StatusId = statusId; Body = text; User = user; }
        | _ -> None

let rec pullMentions( ) =
    let mention = mentionsQueue.Receive ()
    match mention with
    | Mention tweet -> 
        |> processMention
        |> composeResponse tweet
        |> respond
        mention.Complete ()
    | _ -> ignore ()

    Thread.Sleep pingInterval
    pullMentions ()

I declare a partial Active Pattern (the (|Mention|_|) “banana clip” bit), which allows me to use pattern matching against a BrokeredMessage, a class which by itself knows nothing about F# and discriminated unions. That piece of code itself is not beautiful (just it’s a try-catch block, trying to extract data from the BrokeredMessage into my own Record type), but the part I really like is the pullMentions () method: I can now directly grab messages from the queue, match against a Mention, and here we go, a nice and clean pipeline all the way through.

So now that the two services are decoupled, one has a fighting chance to survive when the other goes down. However, it is still possible for the Twitter reads to fail, too, and in that case we will still get mentions that get processed multiple times.

One obvious way to resolve this is to actually persist the last ID seen somewhere, so that when the Service starts, it can read that ID and restart from there. This is what I ended up doing, storing that ID in a blob (probably the smallest blob in all of Azure); the code to write and read that ID to a blob is pretty simple, and probably doesn’t warrant much comment:

let updateLastID (ID:uint64) =
    let lastmention = container.GetBlockBlobReference blobName
    ID |> string |> lastmention.UploadText

let readLastID () =
    let lastmention = container.GetBlockBlobReference blobName
    if lastmention.Exists ()
        lastmention.DownloadText () 
        |> System.Convert.ToUInt64
        |> Some
    else None

However, even before doing this, I went an even lazier road. One of the niceties about using the Service Bus is that the queue behavior is configurable in multiple ways. One of the properties available (thanks @petarvucetin for pointing it out!) is Duplicate Detection. As the name cleverly suggests, it allows you to specify a time window during which the Queue will detect and discard duplicate BrokeredMessages, a duplicate being defined as “a message with the same MessageID”.

So I simply set a window of 24 hours for Duplicate Detection, and the BrokeredMessage.MessageID equal to the Tweet Status ID. If the Queue sees a message, and the same message shows up withing 24 hours, no repeat processing. Nice!

Why did I add the blob then, you might ask? Well, the Duplicate Detection only takes care of most problem cases, but not all of them. Imagine that a Mention comes in, then less than 20 mentions arrive for 24 hours, and then the service crashes – in that case, the message WILL get re-processed, because the Duplicate Detection window has expired. I could have increased that to more than a day, but it already smelled like a rather hacky way to solve the problem, so I just added the blob, and called it a day.

So what’s the point here? Nothing earth shattering, really – I just wanted to share my experience using some of the options Azure offers, in the context of solving simple but real problems on @fsibot. What I got out of it is two things. First, Azure Service Bus and Azure Storage were way easier to use than what I expected. Reading the tutorials took me about half an hour, implementing the code took another half an hour, and it just worked. Then (and I will readily acknowledge some F# bias here), my feel is that Azure and F# just play very nicely together. In that particular case, I find that Active Patterns provide a very clean way to parse out BrokeredMessages, and extract out code which can then simply be plugged in the code with a Pattern Match, and, when combined with classic pipelines, ends up creating very readable workflows.

by Admin 24. August 2014 15:35

My recollection of how this all started is somewhat fuzzy at that point. I remember talking to @tomaspetricek about the recent “A pleasant round of golf” with @relentlessdev event in London. The idea of Code Golf is to write code that fits in as few characters as possible – a terrible idea in most cases, but an interesting one if you want to force your brain into unknown territory. Also, a very fun idea, with lots of possibilities. If I recall correctly, the discussion soon drifted to the conclusion that if you do it right (so to speak), your code should fit in a tweet. Tweet, or GTFO, as the kids would say (or so I hear).

Of course, I began obsessing about the idea, that’s what I do. The discussion kept going at LambdaJam, with @rickasaurus, @pblasucci and @bbqfrito (beers, too). So I thought I had to try it out: what if you set up a twitter bot, which would respond to your F# inquiries, and send back an evaluation of whatever F# expression you sent it?

As it turns out, it’s not that difficult to do, thanks to the fsharp Compiler Services, which lets you, among many things, host an FSI session. So without further due, I give you @fsibot. Tweet a valid expression to @fsibot, and it will run it in an F# interactive session, and reply with the result:

Note that you need to send an expression, as opposed to an interaction. As an example, printfn “Hello, world” won’t do anything, but sprintf “Hello, world” (which evaluates to a string) will.

What else is there to say?

A couple of things. First, my initial plan was to run this on an Azure worker role, which seemed to make a lot of sense. Turns out, after spending countless hours trying to figure out why it was working just great on my machine, using the Azure emulator, but exploding left and right the moment I deployed it in production, I just gave up, and changed track, rewriting it as a Windows Service hosted in an Azure virtual machine (it’s still a cloud-based architecture!), using the awesome TopShelf to simplify my life (thank you @phatboyg for saving my weekend, and @ReedCopsey for pointing me in the right direction).

You can find the whole code here on GitHub. As you might notice, the whole TopShelf part is in C# – nothing wrong with it, but I plan on moving this over to F# as soon as I can, using existing work by @henrikfeldt, who discreetly produces a lot of awesome code made in Sweden.

Another lesson learnt, which came by way of @panesofglass, was that if your code doesn’t do anything asynchronous, using async everywhere is probably not such a hot idea. Duh – but I recently got enamored with mailbox processors and async workflows, and started initially building a gigantic pipe factory, until Ryan aptly pointed out that this was rather counter-productive. So I simplified everything. Thanks for the input, Ryan!

That’s it! I am not entirely sure the bot will handle gracefully non-terminating expressions, but in traditional San Francisco fashion, I’ll call this a Minimum Viable Product, and just ship it – we can pivot later. Now have fun with it :) And if you have some comments, questions or suggestions, feel free to ping me on twitter as @brandewinder.

Source code on GitHub

by Admin 16. June 2014 22:15

Like many a good man, I too got caught into the 2048 trap, which explains in part why I have been rather quiet on this blog lately (there are a couple other reasons, too).

In case you don't know what 2048 is yet, first, consider yourself lucky - and, fair warning, you might want to back away now, while you still have a chance. 2048 is a very simple and fun game, and one of the greatest time sinks since Tetris. You can play it here, and the source code is here on GitHub.

I managed to dodge the bullet for a while, until @PrestonGuillot, a good friend of mine, decided to write a 2048 bot as a fun weekend project to sharpen his F# skills, and dragged me down with him in the process. This has been a ton of fun, and this post is a moderately organized collection of notes from my diary as a recovering 2048 addict.

Let's begin with the end result. The video below shows a F# bot, written by my friend @Blaise_V, masterfully playing the game. I recorded it a couple of weeks ago, accelerating time "for dramatic purposes":


One of the problems Preston and I ran into early was how to handle interactions with the game. A recent post by @shanselman was praising Canopy as a great library for web UI testing, which gave me the idea to try it for that purpose. In spite of my deep incompetence of things web related, I found the Canopy F# DSL super easy to pick up, and got something crude working in a jiffy. With a bit of extra help from the awesome @lefthandedgoat, the creator of Canopy (thanks Chris!), it went from crude to pretty OK, and I was ready to focus on the interesting bits, the game AI.

I had so much fun in the process, I figured others might too, and turned this into another Community for F# Dojo, which you can find here.



Comment RSS