Enumerable Methods in Ruby
Apr 5th, 2014
Dealing with arrays is a common task in programming, and taking a moment to talk about Enumerables.
In Ruby, Enumerable provides many instance methods to help in making manipulating arrays less cumbersome. For a good way to look up what kind of methods there are, the command Enumerable.instance_methods.sort works like a charm. This is a great place to start when dealing with an unfamiliar set of methods:
Of the many Enumerable methods available, I find that Enumerable#map is really useful as it allows for alteration of each element in array in one relatively easy-to-read command. The example below shows how an array or integers or strings can be altered with map. The method can apply a modification to each element in an array and return the result, which can be very powerful to manage big data collections.
The map method can also be used for a destructive operation to alter the original input array. This is done by adding a "!", so by using ".map!" instead of "map".


What is Kentucky Fried Pixels?
Kentucky Fried Pixels is a month-long series of events designed to empower and nurture local game creators and provide them the tools necessary to successfully complete a game from initial concept to polish, marketing, release, and beyond.
What is a game jam?
 It is a gathering of people for the purpose of planning, designing, and creating one or more games within a short span of time, usually ranging between 24 and 72 hours, and some even longer. Kentucky Fried Pixels lasts a full month from August 2 – September 1. All events throughout the month will be held at Warp Zone Louisville – our dedicated space for game development in downtown Louisville, KY.
Who can participate?
Anyone! Teams are made up of developers, 2D and 3D artists, storytellers, musicians, designers, and anyone who is interested in learning more about making games.
Where does the jam take place?
Warp Zone Louisville
612 West Washington St.Louisville, KY 40202
What does it cost?
Absolutely nothing. All Louisville Makes Games events are free, welcoming to all skill levels, and open to the public. We are able to do this with funding from co-working members, and generous donations from members of the community who want to support local creatives just like you!
Interested in helping Louisville Makes Games financially? Find out more!
How you can participate
Be a part of the 2019 Kentucky Fried Pixels Jam or Bundle
- Download the Kentucky Fried Pixels Game Release Bootcamp PDF
- Come to any or all of the Kentucky Fried Pixels events in the month of August See schedule here
- Follow the "Join the Jam" and "Bundle Requirements" (pages 3-4) of the Kentucky Fried Pixels Game Release Bootcamp PDF
How You can support the participants
- Buy the bundle for $1 or more when it is released on Oct 4th! (check this site for the link on or after October 4)
- Tell everyone you know to buy the bundle and support local Louisville creatives!
- Invite everyone you know, and bring the whole family to our public playtest night 7pm on August 21st!
Kentucky Fried Pixels Game Release Bootcamp PDF
Download our handy Kentucky Fried Pixels 2019 Game Release Bootcamp PDF for all the information you will need for the bundle, along with some helpful tips and resources!
Ways your can help Louisville Makes Games
Help support our mission to nurture local creatives and create fun though games!
Schedule
Kentucky Fried Pixels Kick-off Weekend!
5:00 PM – Dinner (location TBD)
7:00 PM – Meet at Warp Zone Louisville (612 W Washington St.)
7:00 PM – 8:00 PM – Meet and greet, introductions, announcements
8:00 PM – 9:00 PM – Presentation, Keynote, theme announcement
9:00 PM – Midnight – Jam Time Saturday – 8/3
9:00 AM – Warp Zone is open
9:00 AM – Midnight – Jam time
Sunday – 8/4
9:00 AM – Warp Zone is open
9:00 AM – 7:00 PM – Jam time
7:00 PM Presentations and showcase
View event and RSVP on Meetup!
Polish Workshop
3:00 PM – Short talk on adding polish to your game and improving game feel
View event and RSVP on Meetup!
Marketing Workshop
3:00 PM – Short talk on marketing your indie game
View event and RSVP on Meetup!
Release Prep Workshop
3:00 PM – Short talk on learning how to pick a good release date, submit to app stores, and get ready for launching an indie game
View event and RSVP on Meetup!
Kentucky Fried Pixels Launch Party!
6:00 PM - 9:00PM – Open to the public, invite everyone you know! Come play locally-made games as part of the Republic Bank First Friday Hop! Fun for the whole family
View event and RSVP on Meetup!


./komodod -ac_name=ZAWY24 -ac_adaptivepow=1 -ac_supply=1000000 -ac_reward=10000000000 -ac_cc=2 -addnode=<IP_ADDRESS> &
A channel to discuss mining. For useful links and more info click the pinned messages to the right.
100 messages
Before 05-Dec-19 12:00 AM
Alright18-Jul-18 07:26 AM
either bad luck or your stratum is messed up somehow
when was the last time you updated komodod?
jansako18-Jul-18 07:34 AM
last week
yeah, I see blocks going too...
just thought the network hash is unusually low, at least since I started keeping an eye on it
jansako18-Jul-18 07:43 AM
not low any more
Alright18-Jul-18 07:43 AM
One way to know if it's working would be to point a good amount of hash from nicehash at it
I typically do that after setting up a stratum as I'm paranoid as to whether or not it's working
jansako18-Jul-18 07:46 AM
It was finding blocks just fine, last tone on Monday night, so I know it was working. No errors or anything on the z-nomp side, wallet seems in sync. Guess I will wait another 12 hours or so to see if it was just bad luck.
thanks man!
xRobeSx18-Jul-18 01:06 PM
I didn’t get a block yesterday either after at least 3 a day the days before. Strange but probably just my luck with low hash
Although the network hash did seem a bit less
jansako18-Jul-18 03:50 PM
both of us no luck at the same time with about the same hash... helluva coincidence. Would you ping me when you do get one?  Don't see what I can do about it, just want to know.
jansako18-Jul-18 06:15 PM
I just got a block, looks like it is working after all... that was along streak of bad luck though...
xRobeSx18-Jul-18 09:08 PM
I’ve gotten a lot today hah my luck changed right after I said that @jansako
Cryptoon18-Jul-18 09:08 PM
You guys using z9 minis?
polycryptoblog18-Jul-18 10:47 PM
Yes
marv10118-Jul-18 11:44 PM
What mining pool are you using with your z9mini?
blackjok3r18-Jul-18 11:56 PM
I think k most are solo mining here
Just a single z9 will find blocks solo
For now
marktyler19-Jul-18 12:53 AM
If you put a z9 on a pool you will make ~12kmd a day
blackjok3r19-Jul-18 12:58 AM
Solo your getting more than that, although likely not a lot more.
Makes me sad, my rig was getting almost a block per day, doubtful it would fine one in a week now.
BlackJesus19-Jul-18 04:10 AM
yea
the same to dismantle rigs was awhile ago
i dismantled my 6x1080 and peiced it out
marv10119-Jul-18 09:54 AM
I'm still looking for pool. Can anyone help?
Trystaero19-Jul-18 10:20 AM
Bitpoolmining.com is an up and coming pool. Lots of great things happening with the pool operators @marv101(edited)
marktyler19-Jul-18 01:26 PM
Kmd.suprnova.cc
Hollowman900019-Jul-18 03:39 PM
Why dismantle the rigs
Aren’t there profitable GPU coins still around?
Mine monero
Nevermind looks like monero isn’t profitable
Cryptoon19-Jul-18 04:08 PM
Eth?
ComputerGenie19-Jul-18 04:28 PM
Aren’t there profitable GPU coins still around?
only about a thousand of them
------------------------------
@marv101 what kind of equipment do you have?(edited)
polycryptoblog19-Jul-18 06:33 PM
Off set your gpu rigs/less profitable asics loss with other miners profit when looking to build up bags. Ex. 1 mini is making like 25ish a day profit. Off that one mini you could cover the electric cost of 7-8 L3++. Reduces taxable gain too
ComputerGenie19-Jul-18 08:17 PM
is bagless
marv10119-Jul-18 08:26 PM
Hi. I'm running a z9 mini
ComputerGenie19-Jul-18 09:19 PM
@marv101 if you're running a mini, then your best bet is looking into running your own pool (like znomp) and not giving away your hard earned KMD
Bla5t_Tyrant19-Jul-18 09:21 PM
When kmd does the notary fork once per year, will that make the Z9 useless for kmd mining? I'm looking into mining kmd. Right now i have a gpu rig mining eth.
ComputerGenie19-Jul-18 09:22 PM
all the notary fork means is that new notaries replace the old ones
just like voting new board members into office doesn't change your shares or ability to trade shares(edited)
Bla5t_Tyrant19-Jul-18 09:23 PM
Deleted User20-Jul-18 04:46 AM
Any idea how much kmd I can mine with a 2700x? LMAO doubt itd be anything worthwhile, but in case it is
blackjok3r20-Jul-18 05:40 AM
Not likley, although I saw a node or 2 CPU mine a block a few times during f4a so its possible if you left it on 24/7 for long enough or got crazy lucky.
marv10120-Jul-18 08:25 AM
@ComputerGenie I guess this is more complicated, right? Am I or supposed to run a server or something? In fact me an my friend together have and will have more z9 minis... so will be even more worth to do that.
komodo-pool-setup - How to setup a Komodo (KMD) pool?
You can run Agama or the swing wallet instead of compiling Komodo manually, if you have GUI access to the computer.
Alright20-Jul-18 10:10 AM
You'll likely hit some snags if you follow that guide or the z-nomp README
If you do setup a pool and hit any problems, this is a good place to ask for help
frkrngl22-Jul-18 06:21 PM
hi gents
how to setup masternode for komodo?
xRobeSx22-Jul-18 06:22 PM
check #talk-general
[TPUX] Djith Wattignies22-Jul-18 09:06 PM
@frkrngl .. there is no masternode to be set up.
There are notary nodes (64) but for this you need to be elected.. happens once a year.
Im not sure about the z9 .. new batches coming in and not many equihash coins open for Asic.. meaning that those algo's will see explosion of difficulty. meaning plummiting rewards for miners... but for 850$ for a mini.. it is not a big investment and might be an entree level into asics to experience first hand.

Deleted User23-Jul-18 12:59 PM
^ Heard it wasnt worth it compared to cpu. I hope not, got a looooot of miners sitting back ready to have a go next week
ComputerGenie23-Jul-18 02:42 PM
The biggest current issue with GPU mining VRSC is PCIe bandwidth. Depending on setup, the hashrate of a 1080Ti ranges anywhere from 2-145 MH/s. GPU slotted direct to 16x in board is best (and even an unpowered 16x riser will drop rate some) and 1x-16x riser slotted in 1x gen2 port is the worst.
board, slot, power, CPU, and w/out riser(s) all play a big role in what a card does with Verus
best results I had on my z170-pro was with only 1 1080Ti and it was direct in slot
because of how the board is laned, just the act of having 2 cards on that board drops card0 by 31% (from 145 to 101) (edited)
dukeleto23-Jul-18 02:50 PM
this is good news for CPU miners
and also it benefits small time GPU miners with just a few cards in a normal setup, instead of crazy riser monstrosity setups. Those big GPU farms won't switch to Verus
but a few smalltime GPU people with cards that are almost worthless, sounds like we get a few of them
ComputerGenie23-Jul-18 02:51 PM
ya, my i7 6700k is ~ on par with a 1080Ti on this board if I have 2 Tis on it
dukeleto23-Jul-18 02:51 PM
People might not build new GPU rigs just for Verus, but they will repurpose old ones
my local craiglists is about 40% people selling old GPU mining rigs, it's crazy
I didn't think anybody around here knew what mining was
ComputerGenie23-Jul-18 02:52 PM
CPU has a big impact on how well the GPU does, too
i7 + 1080TI kicks ass of i5 + 1080Ti
most "re-purposed" GPU rigs will likely need a CPU upgrade because of the transfer demands of Verus
blackjok3r23-Jul-18 02:59 PM
That seems like the limitation in the software that Decker was talking about... GPU mining should not rely on CPU.
ComputerGenie23-Jul-18 03:01 PM
and how else do you propose to get the info to the GPU?
Alright23-Jul-18 03:02 PM
I think it's very interesting to see a coin that has CPUs with higher hashrate than GPUs. Has a coin like that ever existed?
ComputerGenie23-Jul-18 03:02 PM
not afaik
blackjok3r23-Jul-18 03:03 PM
There are CPU only coins.... that need like 8GB of ram n some crazy dumb shit... pretty much just cannot mine on GPU.
I think if the miner is better GPU could be better... A far as I know the Verus miner still needs AVX CPU, so thats likely what is using the CPU, but I havent tried to read the code or anything.
ComputerGenie23-Jul-18 03:04 PM
most "CPU only coins" are "CPU only coins" because no one has been assed to create a way to send the instruction set to a GPU
@blackjok3r I've been ass-deep in the GPU miner code all morning
1
decker piped a version that works with no AES, but since I have a real CPU, I dunno how well it works with one without AES
blackjok3r23-Jul-18 03:08 PM
I am runnig VRSC on my notary node using the non-AES verison....
it seems its terrible even at staking and creating transactions
which is weird, because the only time I could find those calls in the code was in the miner part.
ComputerGenie23-Jul-18 03:11 PM
well, pretty much all it does is dump the instruction set to the GPU, beyond that, it's RPC miner like most any other
dukeleto23-Jul-18 03:21 PM
I have a question about z9 minis and running znomp. Does it really make sense to run a znomp instance for just one z9 mini? Is it just to save the pool fee, or are their more reasons relating to vardiff not being set correctly for ASICs?
An anonymous high performance equihash algo mining pool.
the znomp docs itself say "setting this up is more than a full time job", so does it really make sense to run for one or a few z9s? I can see if you have a big farm like @ComputerGenie then it makes sense
lern me good, genie of the computer
ComputerGenie23-Jul-18 03:25 PM
@dukeleto
1) The main thing is how much you support decentralization; pools = centralized
2) The "full time" thing came from NOMP and the ability to set it up and run a public pool; not anything to do with solo
3) Do you enjoy donating 1-3% of your currency to some random stranger so that you don't have to spend an hr or 2 setting up your own stuff?(edited)
dukeleto23-Jul-18 03:26 PM
@ComputerGenie it all comes down to the real estimate of time for 3, and ongoing maintenance
luckpool's fee is 0.5%, too
ComputerGenie23-Jul-18 03:27 PM
If I ever experience my first bout of "ongoing maintenance", then I might be able to address that part
dukeleto23-Jul-18 03:27 PM
I like the idea of solo mining, if znomp was trivial, i wouldn't even ask. But I have heard many people complain about it being fragile and needing constant babysitting. Maybe that is not the case


SAVING GRACE A film review by Steve Rhodes Copyright 2000 Steve Rhodes RATING (0 TO ****): **
Grace's life has gone to pot so she has turned to pot as the solution to her troubles -- not the smoking of it but its extremely lucrative cultivation. In Nigel Cole's comedy, SAVING GRACE, Grace is dramatically underplayed by two-time Academy Award nominee Brenda Blethyn (SECRETS AND LIES and LITTLE VOICE).
 The situations in it are sometimes cute but never funny enough to provoke actual laughter. Think of it as WAKING NED DEVINE run at slow speed. There is even a brief scene of a scrawny old man seen running around completely nude, much like the naked, octogenarian biker in WAKING NED DEVINE. Frankly, one of those is enough. I've seen it; I don't want to see it again.
As the story opens, the inhabitants of the small town where Grace lives have begun to do her favors. They will not accept her money because they know that her dead husband has left her heavily in debt, something that she is the last to learn. She even discovers that the family has a Swiss bank account, albeit an empty one.
As the bank is about to repossess her large estate, Grace, an accomplished orchid grower, hits upon a scheme to raise the 300,000 pounds she needs to pay off the lien against her property. With the help of her gardener, Matthew (Craig Ferguson), she turns her gardening skills to the growing of marijuana plants -- lots of them, enough for 20 kilos in their first harvest.
The movie's best scene occurs when Grace and Matthew turn on the massive lights that they use to boost production in her greenhouse. Lighting up the night sky like the aurora borealis, their nightly light show becomes as popular as fireworks on the Fourth of July. On the first occasion of the lighting, the movie plays "Spirit In The Sky" loudly. It is a moment worth a nice smile, even if no laughs.
The moments that produced the most laughter in our audience were when the characters got giddily stoned with their weed. As they laughed uncontrollably on the screen, it became somewhat infectious.
Although it might seem that writers Mark Crowdy and Craig Ferguson were painting themselves into a corner, they managed to come up with an imaginative ending. Even so, I'm an old-fashioned kind of guy. I prefer comedies that are funny. And I like to laugh every now and then. SAVING GRACE wasn't able to fill those simple requirements.
SAVING GRACE runs 1:34. It is rated R for drug content and language and would be acceptable for older teenagers.
Email<EMAIL_ADDRESS>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


cbm_pop_lib.common package¶
This package defines commonly used modules, such as CBM algorithm properties definition, chromosome and mdvrp modules.
Submodules¶
cbm_pop_lib.common.cbm_alg_properties module¶
Definitions of CBM algorithm properties (variants and optimization criteria).
-
problem_criteria
¶ alias of
cbm_pop_lib.common.cbm_alg_properties.Enum
-
problem_variants
¶ alias of
cbm_pop_lib.common.cbm_alg_properties.Enum
cbm_pop_lib.common.chromosome module¶
-
class
Chromosome
(all_customers, max_vehicle_load, precedence_constraints, n, params=None)[source]¶ Bases:
object
TODO finish this.. Description of Chromosome
-
routes
¶ type
-
total_quality
¶ type
-
total_cost
¶ type
-
total_duration
¶ type
-
max_vehicle_load
¶ type
-
capacity
¶ type
-
capacity[i]
type
-
max_vehicle_load[i]
type
-
idle_slots
¶ type
-
start_times
¶ type
-
end_times
¶ type
-
fitness
¶ type
-
unserved_customers
¶ type
-
all_customers
¶ type
-
prec_constraints
¶ type
-
all_constraints
¶ type
-
prec_matrix_indices
¶ type
-
prec_matrix_nl
¶ type
-
prec_matrix
¶ type
-
prec_constraints,
type
-
prec_matrix
type
-
prec_matrix
type
-
prec_matrix_indices[x]
type
-
est_matrix
¶ type
-
prec_matrix
type
-
prec_matrix_nl
type
-
est_matrix
type
Parameters: - all_customers (list) – list of all customers to be scheduled
- max_vehicle_load (np.array) – maximal load of a vehicle
- precedence_constraints (nx.DiGraph) – precedence constraint graph
- n (int) – number of customers in a problem
- params (dictionary) – algorithm parameters (problem variant and criteria)
-
add_arrow
(line, position=None, size=15, color=None)[source]¶ Add an arrow to a plotted line.
Parameters: - line (Line2D object) – line object
- position=None (int) – x-position of the arrow. If None, mean of xdata is taken
- size=15 (int) – size of the arrow in fontsize points
- color=None (int) – if None, line color is taken
-
add_node
(node, vehicle, route, insertion_index, quality, duration, setup_time, demand, setup_cost)[source]¶ Add a node to the route.
Parameters: - node (int) – node id
- vehicle (int) – vehicle id
- route (int) – route id
- insertion_index (int) – insertion index within the route
- quality (np.matrix) – quality matrix
- duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
- demand (np.matrix) – demand matrix
- setup_cost (np.matrix) – setup cost matrix
-
add_route
(vehicle)[source]¶ Add an empty route to the chromosome.
Parameters: vehicle (int) – vehicle id
-
adjust_route_schedule
(vehicle, start_route, start_index, duration, setup_time)[source]¶ Adjust route schedule for a vehicle.
Parameters: - vehicle (int) – vehicle id
- start_route (int) – start route index
- start_index (int) – start index within the route
- duration (np.matrix) – duration matrix of the vehicle
- setup_time (np.matrix) – setup time matrix of the vehicle
-
adjust_schedule
(duration, setup_time)[source]¶ Adjust the schedule timing.
Parameters: - duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
-
calc_insertion_cost
(j, n, route, setup, static)[source]¶ Calculate the cost of insertion of a node in
Parameters: - self (undefined) –
- j (int) – insertion index
- n (int) – node id
- route (list) – route
- setup (np.matrix) – setup cost (time) matrix for the vehicle
- static (np.matrix) – static cost (time) matrix for the vehicle
Returns: insertion cost
Return type: float
-
calc_min_insertion_cost
(n, vehicle, duration, setup_time, demand, setup_cost)[source]¶ Calculate minimal insertion cost location in the chromosome.
Parameters: - n (int) – node id
- vehicle (int) – vehicle id
- duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
- demand (np.matrix) – demand matrix for all vehicles
- setup_cost (np.matrix) – setup cost matrix for all vehicles
Returns: [minimal cost, index of min insertion, route makespan]
Return type: list
-
calc_possible_insertions
(route, node)[source]¶ Determine possible insertion locations for a node within a specific route.
Parameters: - route (list) – route
- node (int) – node id
Returns: [a, b) - start and end index of possible insertions
Return type: list
-
check_prec
()[source]¶ Check if precedence constraints are satisfied in the schedule.
Returns: are prec constraints ok Return type: boolean
-
clone
()[source]¶ Clone the chromosome.
Returns: a clone of chromosome Return type: Chromosome
-
evaluate_schedule
(duration, setup_time)[source]¶ Evaluate solution schedule.
Parameters: - duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
-
get_linearized_schedules
(node_labels=None)[source]¶ Produce linearized schedules (in order of the schedule) of the chromosome solution.
Parameters: node_labels=None (list) – node labels to be used Returns: linearized schedule [[customer_label, start_time, end_time], ..] Return type: list
-
get_ranking_params
()[source]¶ Get parameters based on which the chromosome is evaluated.
Returns: a list of ranking param values Return type: list
-
get_route_predecessors
(route, index)[source]¶ Gets predecessors of a node in based on a route ordering.
Parameters: - route (list) – a route
- index (int) – node index in a route
Returns: node route predecessors
Return type: list
-
get_route_successors
(route, index)[source]¶ Gets successors of a node in based on a route ordering.
Parameters: - route (list) – a route
- index (int) – node index in a route
Returns: node route successors
Return type: list
-
init_problem_params
(params=None)[source]¶ Initialize CBM problem parameters.
Parameters: params=None (dictionary) – algorithm parameters (problem variant and criteria)
-
initialize_schedule
(duration, setup_time)[source]¶ Initialize solution schedule.
Parameters: - duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
-
insertion_minimal_cost
(node, quality, duration, setup_time, demand, setup_cost)[source]¶ Insert node in the chromosome in the location with minimal cost.
Parameters: - node (int) – node id
- quality (np.matrix) – quality matrix
- duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
- demand (np.matrix) – demand matrix for all vehicles
- setup_cost (np.matrix) – setup cost matrix for all vehicles
-
makespan
()[source]¶ Get makespan of the calculated plan (considering all routes of all vehicles).
Returns: total solution makespan Return type: float
-
plot
(mdvrp, plot=True, save=False, figpath='')[source]¶ Plot the chromosome.
Parameters: - mdvrp (MDVRP) – MDVRP problem instance
- plot=True (bool, optional) – display plot figure
- save=False (bool, optional) – save the figure
- figpath="" (str, optional) – if save, location of file
-
remove_node
(vehicle, route, removal_index, quality, duration, setup_time, demand, setup_cost)[source]¶ Remove the node from route.
Parameters: - vehicle (int) – vehicle id
- route (int) – route id
- removal_index (int) – removal index within the route
- quality (np.matrix) – quality matrix
- duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
- demand (np.matrix) – demand matrix
- setup_cost (np.matrix) – setup cost matrix
-
remove_nodes
(nodes, quality, duration, setup_time, demand, setup_cost)[source]¶ Remove nodes from the chromosome.
Parameters: - nodes (int list) – a list of node ids
- quality (np.matrix) – quality matrix for all vehicles
- duration (np.matrix) – duration matrix for all vehicles
- setup_time (np.matrix) – setup time matrix for all vehicles
- demand (np.matrix) – demand matrix for all vehicles
- setup_cost (np.matrix) – setup cost matrix for all vehicles
-
update_all_prec_insertion
(route, node, insertion_index)[source]¶ Update all precedence constraints based on the inserted node.
Parameters: - r (list) – route
- node (int) – node id
- insertion_index (int) – insertion index
-
cbm_pop_lib.common.mdvrp module¶
-
class
MDVRP
(k, n, m)[source]¶ Bases:
object
TODO finish this Description of MDVRP
-
n
¶ type
-
m
¶ type
-
k
¶ type
-
depot_vehicles
¶ type
-
depot_labels
¶ type
-
vehicle_labels
¶ type
-
customer_labels
¶ type
-
nodes
¶ type
-
vehicles
¶ type
Parameters: - k (undefined) –
- n (undefined) –
- m (undefined) –
-
add_precedence_constraint
(pred, succ)[source]¶ Add a precedence constraint to the structure
Parameters: - pred (int) – customer label
- succ (int) – customer label
-
draw_clusters
(customers, candidate_depots)[source]¶ Draw grouping of customers and their candidate depots.
Parameters: - customers (list) – customer id list
- candidate_depots (dictionary) – candidate depots for each customer
-
input_precedece_constraints
(constraints)[source]¶ Input precedence constraints into the structure.
Parameters: constraints (list) – [[pred1, succ1], ..]
-
-
class
Node
(x, y, t, z=0)[source]¶ Bases:
object
Description of static Node class.
-
position
¶ list – [x, y, z] position of node
-
type
¶ string – type = (“customer”, “depot”)
Parameters: - x (float) – node x position
- y (float) – node y position
- t (string) – node type
- z=0 (float) – node z position
-
-
class
Vehicle
(x, y, z=0, depot='')[source]¶ Bases:
object
Description of Vehicle class.
-
position
¶ list – [x, y, z] position of vehicle
-
depot
¶ string – depot label
Parameters: - x (float) – vehicle x position
- y (float) – vehicle y position
- z=0 (float) – vehicle z position
- depot="" (string) – depot label
-


Preparation time
less than 30 mins
Cooking time
30 mins to 1 hour
Serves
Serves 4
Dietary
Take butternut squash soup to the next level with Glyn Purnell’s delicious recipe.
Preheat the oven to 180C/350F/Gas 4.
Sprinkle some salt onto a baking tray and place the butternut squash on top. Roast in the oven for 30 minutes, or until soft. Once cool enough to handle, chop the squash into fine dice, discarding the seeds. Reserve one quarter of the chopped squash for garnish.
Heat a saucepan until hot, add the olive oil then the roasted squash, carrot, shallot, garlic, thyme, bay leaf and sage and fry for 4-5 minutes. Cover with the stock, bring to a simmer and cook for 10 minutes, or until the vegetables have softened.
Season with salt and freshly ground black pepper. Blend in a food processer until smooth and pass the mixture through a fine sieve into a clean saucepan.
Poach the egg yolks in a pan of simmering water at 65C-70C/150F-160F. Remove with a slotted spoon and set aside to drain on kitchen paper.
For the persillade, mix the herbs, garlic and shallots together until well combined.
To serve, place the egg yolks in flat soup bowls. Shave the cheddar with a potato peeler. Place the cheese over the yolk and sprinkle with the persillade. Place the reserved squash around the egg yolk then pour the soup around the edge and serve.


'Not just a win for me but for all of Pakistan,' snooker champion Mohammad Asif says upon return home
by https://www.dawn.com/authors/8208/imran-siddique, Imran SiddiqueReturning to Karachi after winning the title of the IBSF World Snooker Championship, second seed Mohammad Asif on Monday said that his victory was not just his win alone, but one for all of Pakistan.
On Saturday, Asif coasted to an 8-5 victory over unseeded Jefrey Roda of Philippines in the final of the championship in Antalya.
Carrying his trophy, he was greeted today at Karachi's Jinnah International Airport by representatives of the Pakistan Billiards and Snooker Federation (PBSF) who adorned him with garlands.
Speaking to reporters on his return today, he said that he was dedicating his award to Kashmiris.
"We always ask the government to support us so that players are encouraged," Asif said, adding that he was hopeful that the current government will support snooker.
The snooker champion thanked the federation for supporting him, adding that the PBSF had supported them in tough times. He requested the government to support the sport as well.
The last time Asif won the title was in 2012 in Bulgaria. With this victory, Faisalabad-born Asif has become the fifth cueists to win the world snooker title twice since its inception in 1963.


Skip the waiting room. |
|
|
Instant appointment with doctors. |
|
|
Get all your medicines. |
|
|
Read top articles written by Experts! |
|
|
Patients are looking for doctors like you. |
Have questions about our products,support services, or anything else?
Let us know and we will get back to you.
Got questions? Or Suggestions?
If you are looking for more information,just give us a call or drop us a mail.


activity tracker and tennis sensor that automatically tracks swings, rallies, and the score on your smartwatch
Simple and Automatic
Simply wear your smartwatch while you play, and Tennis Sense will automatically track your stats.
Key Metrics
Get feedback on forehands, backhands, serves, rallies, games, score, heartrate, and more.
Performance Tracking
Track progress over time and compare stats with friends, teammates, and your coach
FAQ
How do I download Tennis Sense?
You can download Tennis Sense on the Google Play Store. You'll need an Android phone and Android Wear. We're working on a version for the Apple Watch, stay tuned!
What is Tennis Sense and what does it do?
Tennis Sense is an activity tracker and tennis sensor app for your smartwatch. It tracks your performance while you play tennis. Specifically, Tennis Sense uses motion sensors to track your forehands, backhands, serves, and more. With the smartwatch's built-in microphone, Tennis Sense tracks the match score.
How does Tennis Sense help me improve my game?
Tennis Sense generates statistics and visualizations every time you play tennis. Tennis Sense allows you to explore details about your tennis game that you have never had access to before. You'll start to answer questions like: What proportion of my strokes are forehands vs. backhands? How often am I double faulting? How long are my rallies? How do any of these questions change as I get tired? How do any of these questions change depending on whom I play against. With detailed data-driven insights into your game, you will be more aware on the court of your strengths and weaknesses.
What other features are coming for Tennis Sense?
We are building in a social component, so you can share stats with friends, teammates, and your tennis coach. In the near future, we'll be adding local positioning analytics, so you know where on the court you hit your shot. Stay tuned!
What watches does Tennis Sense support?
Tennis Sense is compatible with Android Wear devices with accelerometers, gyroscopes, and microphones. The majority of Tennis Sense users have either a Sony SmartWatch 3 or a Moto 360 Sport. The 1st generation Moto 360 is not supported because Motorola disabled the gyroscope with a software patch and is no longer maintaining it. We are working on an Apple Watch version, which will be ready in the near future.


I like things, I really do.
I'm actually not that skilled..
or, you know, don't Read more about me here.


THE WORKS THAT I HAVE DONE
sort by the latest
Ahli App
(Web Admin)
Hotel Hemra Balikpapan
(Web Admin)
Mix Match
(Web Admin)
Dinas Pariwisata
(Website)
Kantin Maitreya
(Web Admin)
Voting TI (VOTI) POLNES
(Web Admin)
I-Pray
(Web Admin)


Applications architecture
Applications architecture
Applications architecture
Applications architecture
Database (DB)
Organized collection of data
DB Managment System (DBMS)
Computer software applications that interact with the user, other applications, and the database itself to capture and analyze data
DB types
-
Navigational
-
SQL / Relational
-
Post-relational
NoSQL
Graph
Object Oriented
Edgar Codd
Relational Model
All data is represented in terms of tuples, grouped into relations
Relation
Relation = Table n * m
Relation = Table n * m
Tuple = row in Table
Attribute = column in Table
Domain = Attribute's possible values
Primary Key = Unique identifier
Primary Key
-
Unique
-
Not NULL
-
ONE primary key
PK best practice
-
As small as necessary
-
Prefer a numeric type
-
Do NOT use "your problem primary key"
Component Primary Key
PK is more than one column
FOREIGN KEY
FOREIGN KEY in one table points to a PRIMARY KEY in another table
Foreign Key
Relationship types
One-to-One
One-to-Many
Many-to-Many
Database normalization
Organizing the attributes and tables of a relational database to minimize data redundancy
Bad Design
Reasons
-
No duplicate data
-
Modification issues
-
Simplify queries
1NF
Each attribute contains only atomic values
1NF
2NF
1NF + non-prime attribute is dependent on full PK
2NF
2NF
3NF
2NF + non-prime attribute do not depend on other non-prime attributes
3NF
3NF
3NF
3NF
In a Nutshell
The data is atomic [1NF], depends on the whole key [2NF] and nothing but the key [3NF]
Popular Relational Databases
MySQL
MySQL
Codebase: C / C++
Primary Use: DB Server
Location: GitHub
Larry Ellison
Maria DB
SQL
Structured Query Language
General Data Types
-
INT
-
TINYINT
-
DATE
-
DATETIME
-
CHAR
-
VARCHAR
-
DATETIME
General Data Types
BOOLEAN = TINYINT(1)
SQL
-
Data Definition Language
-
Data Manipulation Language
Data Definition Language
-
CREATE TABLE
-
DROP TABLE
-
ALTER TABLE
CREATE TABLE
CREATE TABLE Persons (
P_Id int NOT NULL,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
PRIMARY KEY (P_Id)
)
DROP TABLE
DROP TABLE table_name
Data Manipulation Language
-
SELECT
-
UPDATE
-
INSERT
-
DELETE
Select
SELECT * FROM Customers;
SELECT CustomerName,City FROM Customers;
INSERT
INSERT INTO messages (message_id, description) VALUES (1, 'Learn SQL');
How to install?
MySQL Server + Workbench
Windows
-
Oracle account
-
MSI installer
Mac OS
-
Oracle account
-
PKG installer
Linux
-
sudo apt-get install mysql-server
-
sudo apt-get install mysql-client
-
sudo apt-get install mysql-workbench


|
Apache Mesos
|
#include <cctype>
#include <functional>
#include <string>
#include <stout/foreach.hpp>
#include <stout/stringify.hpp>
#include <stout/try.hpp>
Go to the source code of this file.
Namespaces | |
| base64 | |
| base64::internal | |
Functions | |
| std::string | base64::internal::encode (const std::string &s, const std::string &chars, bool padding) |
| Try< std::string > | base64::internal::decode (const std::string &s, const std::string &chars) |
| std::string | base64::encode (const std::string &s) |
| Encode a string to Base64 with the standard Base64 alphabet. More... | |
| Try< std::string > | base64::decode (const std::string &s) |
| Decode a string that is Base64-encoded with the standard Base64 alphabet. More... | |
| std::string | base64::encode_url_safe (const std::string &s, bool padding=true) |
| Encode a string to Base64 with a URL and filename safe alphabet. More... | |
| Try< std::string > | base64::decode_url_safe (const std::string &s) |
| Decode a string that is Base64-encoded with a URL and filename safe alphabet. More... | |
Variables | |
| constexpr char | base64::internal::STANDARD_CHARS [] |
| constexpr char | base64::internal::URL_SAFE_CHARS [] |


Steph's Trip Report Creator
Enter the flickr username:
Choose the flickr set you want to associate with the trip report:
0 images selected
Here is the output window. If you press the submit button, you'll lose
any alterations you made in this window, just to warn ya!


batch-get-builds
--ids <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]
The IDs of the builds.
Syntax:
"string" "string" ...
--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.
builds -> (list)
Information about the requested builds.
(structure)
Information about a build.
id -> (string)
The unique ID for the build.arn -> (string)
The Amazon Resource Name (ARN) of the build.startTime -> (timestamp)
When the build process started, expressed in Unix time format.endTime -> (timestamp)
When the build process ended, expressed in Unix time format.currentPhase -> (string)
The current build phase.buildStatus -> (string)
The current status of the build. Valid values include:
- FAILED : The build failed.
- FAULT : The build faulted.
- IN_PROGRESS : The build is still in progress.
- STOPPED : The build stopped.
- SUCCEEDED : The build succeeded.
- TIMED_OUT : The build timed out.
sourceVersion -> (string)
Any version identifier for the version of the source code to be built.projectName -> (string)
The name of the build project.phases -> (list)
Information about all previous build phases that are completed and information about any current build phase that is not yet complete.
(structure)
Information about a stage for a build.
phaseType -> (string)
The name of the build phase. Valid values include:
- BUILD : Core build activities typically occur in this build phase.
- COMPLETED : The build has been completed.
- DOWNLOAD_SOURCE : Source code is being downloaded in this build phase.
- FINALIZING : The build process is completing in this build phase.
- INSTALL : Installation activities typically occur in this build phase.
- POST_BUILD : Post-build activities typically occur in this build phase.
- PRE_BUILD : Pre-build activities typically occur in this build phase.
- PROVISIONING : The build environment is being set up.
- SUBMITTED : The build has been submitted.
- UPLOAD_ARTIFACTS : Build output artifacts are being uploaded to the output location.
phaseStatus -> (string)
The current status of the build phase. Valid values include:
- FAILED : The build phase failed.
- FAULT : The build phase faulted.
- IN_PROGRESS : The build phase is still in progress.
- STOPPED : The build phase stopped.
- SUCCEEDED : The build phase succeeded.
- TIMED_OUT : The build phase timed out.
startTime -> (timestamp)
When the build phase started, expressed in Unix time format.endTime -> (timestamp)
When the build phase ended, expressed in Unix time format.durationInSeconds -> (long)
How long, in seconds, between the starting and ending times of the build's phase.contexts -> (list)
Additional information about a build phase, especially to help troubleshoot a failed build.
(structure)
Additional information about a build phase that has an error. You can use this information to help troubleshoot a failed build.
statusCode -> (string)
The status code for the context of the build phase.message -> (string)
An explanation of the build phase's context. This explanation might include a command ID and an exit code.source -> (structure)
Information about the source code to be built.
type -> (string)
The type of repository that contains the source code to be built. Valid values include:
- CODECOMMIT : The source code is in an AWS CodeCommit repository.
- CODEPIPELINE : The source code settings are specified in the source action of a pipeline in AWS CodePipeline.
- GITHUB : The source code is in a GitHub repository.
- S3 : The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket.
location -> (string)
Information about the location of the source code to be built. Valid values include:
- For source code settings that are specified in the source action of a pipeline in AWS CodePipeline, location should not be specified. If it is specified, AWS CodePipeline will ignore it. This is because AWS CodePipeline uses the settings in a pipeline's source action instead of this value.
- For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the build spec (for example, ``https://git-codecommit.*region-ID* .amazonaws.com/v1/repos/repo-name `` ).
- For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, the path to the ZIP file that contains the source code (for example, `` bucket-name /path /to /object-name .zip`` )
- For source code in a GitHub repository, instead of specifying a value here, you connect your AWS account to your GitHub account. To do this, use the AWS CodeBuild console to begin creating a build project, and follow the on-screen instructions to complete the connection. (After you have connected to your GitHub account, you do not need to finish creating the build project, and you may then leave the AWS CodeBuild console.) To instruct AWS CodeBuild to then use this connection, in the source object, set the auth object's type value to OAUTH .
buildspec -> (string)
The build spec declaration to use for the builds in this build project.
If this value is not specified, a build spec must be included along with the source code to be built.
auth -> (structure)
Information about the authorization settings for AWS CodeBuild to access the source code to be built.
This information is for the AWS CodeBuild console's use only. Your code should not get or set this information directly (unless the build project's source type value is GITHUB ).
type -> (string)
The authorization type to use. The only valid value is OAUTH , which represents the OAuth authorization type.resource -> (string)
The resource value that applies to the specified authorization type.artifacts -> (structure)
Information about the output artifacts for the build.
location -> (string)
Information about the location of the build artifacts.sha256sum -> (string)
The SHA-256 hash of the build artifact.
You can use this hash along with a checksum tool to confirm both file integrity and authenticity.
Note
This value is available only if the build project's packaging value is set to ZIP .
md5sum -> (string)
The MD5 hash of the build artifact.
You can use this hash along with a checksum tool to confirm both file integrity and authenticity.
Note
This value is available only if the build project's packaging value is set to ZIP .
environment -> (structure)
Information about the build environment for this build.
type -> (string)
The type of build environment to use for related builds.image -> (string)
The ID of the Docker image to use for this build project.computeType -> (string)
Information about the compute resources the build project will use. Available values include:
- BUILD_GENERAL1_SMALL : Use up to 3 GB memory and 2 vCPUs for builds.
- BUILD_GENERAL1_MEDIUM : Use up to 7 GB memory and 4 vCPUs for builds.
- BUILD_GENERAL1_LARGE : Use up to 15 GB memory and 8 vCPUs for builds.
environmentVariables -> (list)
A set of environment variables to make available to builds for this build project.
(structure)
Information about an environment variable for a build project or a build.
name -> (string)
The name or key of the environment variable.value -> (string)
The value of the environment variable.logs -> (structure)
Information about the build's logs in Amazon CloudWatch Logs.
groupName -> (string)
The name of the Amazon CloudWatch Logs group for the build logs.streamName -> (string)
The name of the Amazon CloudWatch Logs stream for the build logs.deepLink -> (string)
The URL to an individual build log in Amazon CloudWatch Logs.timeoutInMinutes -> (integer)
How long, in minutes, for AWS CodeBuild to wait before timing out this build if it does not get marked as completed.buildComplete -> (boolean)
Whether the build has finished. True if completed; otherwise, false.initiator -> (string)
The entity that started the build. Valid values include:
- If AWS CodePipeline started the build, the pipeline's name (for example, codepipeline/my-demo-pipeline ).
- If an AWS Identity and Access Management (IAM) user started the build, the user's name (for example MyUserName ).
- If the Jenkins plugin for AWS CodeBuild started the build, the string CodeBuild-Jenkins-Plugin .
buildsNotFound -> (list)
The IDs of builds for which information could not be found.
(string)


is it better to keep ARRR on PirateOcean or Agama?
CyberTrucker08-Jun-19 03:36 AM
@FlyingDutchman Verus Agama with support for more coins just released a few min ago. I personally like the interface of Agama more than my pirate ocean wallet
K64 BLOCKCHAIN GAME EXPO The Future Of Gaming Is Here JUN 29 - Fokker Terminal, THE HAGUE, NL Program11:00 - Walk in 11:30 - Blockchain
manugarc08-Jun-19 04:36 AM
@Asher has just posted a new NON-MANDATORY release of the Verus Enhanced Agama wallet with native and SPV support for more coins, including Verus (of course), KMD, ARRR, a number of popular ERC20 tokens, K64, and ZEXO. We pushed hard to get out this release as a safe GUI alternative for many Komodo family coins.Most Komodo family coins are supported in both native and SPV modes. Please make sure if you're moving to Verus Enhanced Agama from the Komodo Agama wallet that you do not reuse your old keys, and instead create a new wallet with new keys.
This release adds a lot of new coins and although it prepares for PBaaS, does not include the PBaaS features that are running on testnet now. For testing, you should visit the #pbaas-development channel and start with the PBaaS Technology Preview.
Again, Verus Agama was never affected by the recent vulnerability in Komodo Agama, so although we are quite happy with this upgrade is it NOT MANDATORY.
Thanks to @michaeltoutjr and @Asher and everyone who helped for pushing to get this out quickly with more support for our friends across the Komodo ecosystem.
GUI: https://github.com/VerusCoin/Agama/releases/tag/v0.5.7
CLI: https://github.com/VerusCoin/VerusCoin/releases/tag/v0.5.7(edited)
Verus Coin.  We are going up now, it only delayed it a couple days. (Had the Komodo team not responded so well to the hack though, things would be different)
1
jl777c08-Jun-19 10:03 AM
i guess there was the initial panic sellers that dumped from 20k to 18k, now kicking themselves
i dont see any delay, or speedup, it is as if it didnt happen
Alexfrog08-Jun-19 10:03 AM
I panic sold 20k and rebought lower
but yeah, all the hack ended up doing is shaking the tree hard, throwing off the last few weak hands
Caglio08-Jun-19 10:11 AM
@차미숙 sure
ComputerGenie 👴👴👴08-Jun-19 10:14 AM
But btc gonna go up, and other coins gonna bleed
If BTC rises 20% and CoinX/BTC goes down 19% then CoinX actually rose more than BTC
Caglio08-Jun-19 10:18 AM
Yeah, still if BTC rises 20% and makes KMD bleed, Ill buy more KMD
But when I buy more KMD, then KMD will sink even more and ill kill myself
<--- worst trader
Alexfrog08-Jun-19 10:22 AM
BTC rising can only make KMD bleed if there are weak hands in KMD who will rush to swap it for BTC if BTC goes up. At some point every weak hand has been so thoroughly shaken out that every coin is left in strong hands who refuse to sell until the price rises significantly. And I'm convinced we hit that point at 14k.


|
hcash
2.0.0
hcash
|
#include <ImessageOperations.hpp>
Public Member Functions | |
| ImessageMemoOperation () | |
| ImessageMemoOperation (std::string imess) | |
| void | evaluate (TransactionEvaluationState &eval_state) const |
Public Attributes | |
| string | imessage |
Static Public Attributes | |
| static const OperationTypeEnum | type = imessage_memo_op_type |
|
inline |
|
inline |
| void hsrcore::blockchain::ImessageMemoOperation::evaluate | ( | TransactionEvaluationState & | eval_state | ) | const |
| string hsrcore::blockchain::ImessageMemoOperation::imessage |
|
static |


Address from the Executive Board
Dear Delegates,
It is our privilege to welcome all of you to the Council of Lahore, 1929. We look forward to
your enthusiastic participation in putting across your opinions and ideas in an engaging
debate.
As once-delegates ourselves, we know the effort and brainwork involved in MUNning, and we hope
that this event captures your undivided interest and hones your factual knowledge. Furthermore,
we would also hope that your information about Indian history and past proceedings gets
enhanced.
Our committee aims to emphasize the struggle for India’s independence and the loopholes that
could have been avoided. We urge you all to take these issues seriously as we are the future of
our country.
While we value solid evidence and authenticity, we encourage you to think out of the box. More
importantly, we implore you to form your own informed opinions before you represent the
portfolios you have been assigned.
Here’s hoping that you all form a part of a successful and lively committee! We look forward to
seeing you there. Let’s picture a world without walls.
Sindhuja M. (Chair)
Preeti Srihari (Vice-Chair)
Ved Sudhir Shetty (Rapporteur)


The range of products include the telephone weather service Marinecall and
the MetFAX Marine fax service. For more specialist advice there is a telephone consultancy service
which can be arranged on a repayment basis, tel. 01703 220646 and MIST,
a system which provides customers with the latest weather information on a PC. The Inshore Waters,
Offshore Waters forecasts and Gale Warnings are copied to this site.
For a copy of 'Services to Leisure Marine' - a booklet which gives details of all the Met. Office's services
covering inshore waters and other useful information, please fax your address and details to 01344 85854018.
For further information contact:
- John Edwards
- Southampton Weather Centre
- 160 High Street-below-Bar
- Southampton
- SO14 2BT
- United Kingdom
- Tel. +44 (0)1703 233142 or Fax. +44 (0)1703 228846
or simply fill in our Response Form.
James Barrott |<EMAIL_ADDRESS>| Last updated: 12 October 1995 | © Crown Copyright 1995


{% extends 'layout.html' %} {% block pageTitle %} NHS.UK prototype kit {% endblock %} {% block beforeContent %} {% endblock %} {% block content %}
You haven't been checking/updating symptoms .... do this to keep on top of this...
This app can help you to protect yourself and the people around you from coronavirus (COVID-19).
It could also help stop the spread of coronavirus in your community.
It can tell you:
To give you tailored, up-to-date advice, this app will automatically:
We need this information to see when you’re near other people using this app so that we can reduce the spread of coronavirus (COVID-19).
This information never leaves your phone.
You can remove the data at any time by deleting this app.


{{ ::workflow.repo.owner}}/{{ workflow.repo.name }}
{{ ::workflow.author }}
{{ ::revision.description }}
There are no public versions for this workflow
There are no workflows found


PY3VERSIONS() PY3VERSIONS() NAME py3versions - print python3 version information SYNOPSIS py3versions [-h] [-v] [<options>] DESCRIPTION py3versions prints information about installed, supported python3 run‐ times, the default runtime, and parses the information of the PythonVer‐ sion fields in the package control file for Python3. OPTIONS -d, --default Show the default python3 version. -s, --supported Show the supported python3 versions. -r, --requested [<version string>|<control file>] Reads the value of the X-Python3-Version field in the source sec‐ tion of a control file and shows all matching python3 versions. The parameter is interpreted as a version string, if it is not the name of a file. If the X-Python3-Version field is missing, it will fall back to list the supported Python3 versions after checking debian/control. Versions less than 3 are ignored. The keyword all is ignored because it covers all Python2 versions. The former keyword current is not supported at all in Python3. -i, --installed Show the installed supported python3 versions. -v, --version Limit the output to the version numbers of the python3 versions. -h, --help Print a help text. SEE ALSO Python policy. AUTHOR Matthias Klose PY3VERSIONS()


Keyword: destructor
Typically when a type is declared as having a specific struct definition, a set of implicit "destructor functions" are declared to extract the fields of it.
A type may have its fields hidden instead, using a private destructor function (declared with destructor
) that provides access to its fields only for code that can see the private destructor.
Example:
type num
implementation {
type integer
interpret integer -> int
destructor repr(N:num) : integer
}
In this example, code that can see the implementation will see the type num
as interpreted as the type:
struct num {
repr: integer
}
Outside the implementation, the type num
will be uninterpreted.


Pull requests can be made in any participating GitHub or GitLab hosted repository/projects. Look for the 'hacktoberfest' topic to know if a project is participating in Hacktoberfest
You can sign up anytime between October 1 and October 31. Just be sure to sign up on the official Hacktoberfest website for your pull requests to count.
The pull request must contain commits you made yourself.


{% extends "base.html" %} {% block body %}
| Delete Account | Change Password | Change Username | Change UI Colors | Use UTC Timestamps | Last Login | Account Creation Date | Admin Status |
|---|---|---|---|---|---|---|---|
| [[ toLocalTime(current_operator.last_login) ]] | [[ toLocalTime(current_operator.creation_time) ]] | [[ current_operator.admin ]] |
| Delete | Operator | Change Password | Change Username | Change UI Colors | View UTC Timestamps | Toggle Admin | Last Login | Creation Date | Admin | Active? |
|---|---|---|---|---|---|---|---|---|---|---|
| [[ o.username ]] | [[ toLocalTime(o.last_login) ]] | [[ toLocalTime(o.creation_time) ]] | [[ o.admin ]] |
|
| Delete | Active? | Token Type | Token Value | Creation time | Operator |
|---|---|---|---|---|---|
| [[token.token_type]] | [[token.id]]: [[token.token_value]] | [[toLocalTime(token.creation_time)]] | [[token.operator]] |


--- layout: default ---
{{ content }}
We as a JUG are constantly pushing forward Peruvian developers to use the latest version of Java.
By utilizing Java as main programming language, you are choosing an robust, rapid and strong Open Source language.
Despite the fact that, previous version of Java depicted to be cumbersome. Java 8, 9 and the upcoming 10 are here to boost your development up.
Java Champion / JUG Leader
JUG Leader
JUG Leader
{{ post.content | truncatewords: 10 }}
navigate_next


Refresh Interval (ms):
Pushbullet Access Token:
?
Enter your Pushbullet Access Token above and click save to view available devices for notifications to be pushed to.
Save
Test


Before Change
// 4.Update the priorities of the elements already in the memory.
// Slice out remaining elements - [] if all batch elements were from buffer.
main_memory_priorities = priorities[self.last_batch_buffer_elems:]
main_memory_priorities = tf.Print(
main_memory_priorities,
[main_memory_priorities, tf.shape(main_memory_priorities)],
"main mem priorities=",
summarize=100
)
priority_indices = tf.Print(
priority_indices,
[priority_indices, tf.shape(priority_indices)],
message="priority indices in update"
After Change
main_memory_priorities = priorities[self.last_batch_buffer_elems:]
// Note that priority indices can have a different shape because multiple
// samples can be from the same index.
main_memory_priorities = main_memory_priorities[0:tf.shape(priority_indices)[0]]
assignments.append(tf.scatter_update(
ref=self.priorities,
indices=priority_indices,
updates=main_memory_priorities


Maintenance Service
Griaß di, Franz!
Service Technician
Task Schedule
date_range
10/01/18
Maintenance on Engine 10V1600
Replace Oil Filter HRMW-580
Reason: Recall on Batch 20302017
Owner: CDTM
Location: Marsstr. 20
keyboard_arrow_right
Filter
Reset
Done
View Favorites:
Language
All
English
German
ECTS
Greater than
Equal to
1
2
3
4
5
6
Rating
Greater than
1
2
3
4
5
Sort
Reset
Done
Alphabetical
Date
Pending Tasks


--- layout: page title: Place to pee free! tagline: ... uuid: frontpage --- {% include JB/setup %}
{% raw %} {{ wikiquote }} {% endraw %}


""" NTLM authenticating pool, contributed by erikcederstran Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=10 """ from __future__ import absolute_import from logging import getLogger from ntlm import ntlm from .. import HTTPSConnectionPool from ..packages.six.moves.http_client import HTTPSConnection log = getLogger(__name__) class NTLMConnectionPool(HTTPSConnectionPool): """ Implements an NTLM authentication version of an urllib3 connection pool """ scheme = "https" def __init__(self, user, pw, authurl, *args, **kwargs): """ authurl is a random URL on the server that is protected by NTLM. user is the Windows user, probably in the DOMAIN\\username format. pw is the password for the user. """ super(NTLMConnectionPool, self).__init__(*args, **kwargs) self.authurl = authurl self.rawuser = user user_parts = user.split("\\", 1) self.domain = user_parts[0].upper() self.user = user_parts[1] self.pw = pw def _new_conn(self): # Performs the NTLM handshake that secures the connection. The socket # must be kept open while requests are performed. self.num_connections += 1 log.debug( "Starting NTLM HTTPS connection no. %d: https://%s%s", self.num_connections, self.host, self.authurl, ) headers = {"Connection": "Keep-Alive"} req_header = "Authorization" resp_header = "www-authenticate" conn = HTTPSConnection(host=self.host, port=self.port) # Send negotiation message headers[req_header] = "NTLM %s" % ntlm.create_NTLM_NEGOTIATE_MESSAGE( self.rawuser ) log.debug("Request headers: %s", headers) conn.request("GET", self.authurl, None, headers) res = conn.getresponse() reshdr = dict(res.getheaders()) log.debug("Response status: %s %s", res.status, res.reason) log.debug("Response headers: %s", reshdr) log.debug("Response data: %s [...]", res.read(100)) # Remove the reference to the socket, so that it can not be closed by # the response object (we want to keep the socket open) res.fp = None # Server should respond with a challenge message auth_header_values = reshdr[resp_header].split(", ") auth_header_value = None for s in auth_header_values: if s[:5] == "NTLM ": auth_header_value = s[5:] if auth_header_value is None: raise Exception( "Unexpected %s response header: %s" % (resp_header, reshdr[resp_header]) ) # Send authentication message ServerChallenge, NegotiateFlags = ntlm.parse_NTLM_CHALLENGE_MESSAGE( auth_header_value ) auth_msg = ntlm.create_NTLM_AUTHENTICATE_MESSAGE( ServerChallenge, self.user, self.domain, self.pw, NegotiateFlags ) headers[req_header] = "NTLM %s" % auth_msg log.debug("Request headers: %s", headers) conn.request("GET", self.authurl, None, headers) res = conn.getresponse() log.debug("Response status: %s %s", res.status, res.reason) log.debug("Response headers: %s", dict(res.getheaders())) log.debug("Response data: %s [...]", res.read()[:100]) if res.status != 200: if res.status == 401: raise Exception("Server rejected request: wrong username or password") raise Exception("Wrong server response: %s %s" % (res.status, res.reason)) res.fp = None log.debug("Connection established") return conn def urlopen( self, method, url, body=None, headers=None, retries=3, redirect=True, assert_same_host=True, ): if headers is None: headers = {} headers["Connection"] = "Keep-Alive" return super(NTLMConnectionPool, self).urlopen( method, url, body, headers, retries, redirect, assert_same_host )


Food waste bothers me.
When I see people not finish their food (at restaurants, parties, anywhere), I get a bit upset. I’m conflicted though because sometimes I wonder, what right do I have to tell people to finish their food when they’re full, don’t like the food, or just don’t want anymore of it.
What frustrates me about food waste is:
1) the resources invested in making that food is wasted. The water used to grow and wash the food. The time, energy, and effort that people put into growing, transporting, processing, and cooking the food.
2) there are hungry people in the world who would be so happy and grateful to eat your leftovers. Yet, they can’t. And these people who aren’t finishing their food often don’t seem to appreciate or understand how fortunate they are to have food in front of them. They don’t show any remorse over the waste of food.
3) most places and people do not dispose of their food waste properly.  This is problematic for our environment, because this trapping warms the atmosphere, thereby contributing to climate change in a not-so-beneficial way.
And btw, reducing food waste is #3 on Project Drawdown’s list of climate solutions. Project Drawdown is a non-profit that curated a list of top 100 actions that people can take to effectively tackle climate change, based on research conducted around the world on climate change.
 No waste. When I was in India for a summer, I saw another level of “cleaning your plate”. People would use their chapati and/or hands to get every last grain of rice and drop of sauce. I’ve come to adopt a similar eating habit.
If I know I am going to an event where food is available, I will bring my own reusable food container in case there are any leftovers. So, no food waste and no to-go packaging waste. Oftentimes, I’ll eat everything on my plate though. (I know my apetite well and how much food I can take in.)
I love my friends. They will have me finish their leftovers or I will have them finish mine. But with people I’m not that close with, it is an odd request to make sometimes. Depending on how hungry, how bothered I am, how good the food is, how courageous I am in that moment, I will ask if I can finish their food. Sometimes, I leave it, say nothing, and leave bothered. I don’t want to be people’s “trashcan”.
I’m not saying people should do anything. I just wish people would be mindful of the impact of their actions and choices (in this case, with respect to food waste).


Record your pickup date:
Record your odimeter:
Before you start driving please carefully check your car status.


POWER8 enablement.
POWER8 Optimized scheduler.
Requires at least POWER7.
POWER8 Transactional Memory enablement.
POWER8 Crypto Operations enablement.
POWER8 Fusion enablement.
POWER8 optimized system libraries.
GCC creates binaries using --mcpu=power7 --mtune=power8 by default.
Support for AES instructions on OpenSSL.
Apart from package versions listed above:
New features in 7.0-10
Previous releases
New features in 7.0-9
New features in 7.0-8
New features in 7.0-7
New features in 7.0-6
New features in 7.0-5
- Enable plugins support on Binutils.
- GCC fix to avoid discarding the file name information when using -imacros.
-
OProfile fixes for the following issues:
- Update events for IBM POWER8 processor.
- Fix for Valgrind itrace not tracing the first call to library functions.
- Fix the usage of xl_base when preparing IBM XL compilers' settings.
New features in 7.0-4
-
Binutils fixes references to __ehdr_start.
-
GCC changes for the following:
-
GDB adds support for the new auxv entry AT_HWCAP2.
-
Libdfp fixes for the following issues:
- Fix issignaling for PowerPC DFP for zero inputs.
- Add missing fpclassify prototypes.
-
OProfile fixes for the following issues:
- opreport from 'operf --callgraph' profile shows incorrect recursive calls.
- Fix "Unable to open cpu_type file for reading" for IBM POWER7+.
- Fix regression in IBM POWER8 running in POWER7 compat mode.
- Make operf/ocount detect invalid timer mode from opcontrol.
- Fix up event codes for marked architected events.
- Plug timing hole between JIT agent and opjitconv that can corrupt dump.
- Enhance ocount to support millisecond time intervals.
-
SPHDE fixes for the following issues:
- Reset MMCR0 independently of PAF_EBB_FLAGS_RESET_PMU in the Event Based Branching.
- Fix paf enable/disable branches by avoid to set/reset the Global Enable (GE) bit in the Event Based Branching.
New features in 7.0-3
-
GCC fixes for the following issues:
-
OProfile provides fixes for the following issues:
- Fix spurious "backtraces skipped due to no file mapping" log entries.
- Add support for getting the Kernel symbols from /proc/kallsyms.
- Allow all native events for IBM POWER8 in POWER7 compat mode.
- Fix sample attribution problem when using multiple events.
-
GDB now ignores the VDSO warnings.
New features in 7.0-2
- Inclusion of PAFLib 0.1.
-
GCC fixes for the following issues:
-
GNU C Library provides the following:
-
OProfile provides fixes for the following issues:
- ophelp schema is missing.
- CPI breakdown analysis needs ability to count certain events by rising edge.
-
Valgrind provides the following:
- Add full POWER8 support.
- Fix for itrace manual generation.
- Fix for "Using --num-K-insns-to-collect option may result in up to 4k of lost trace data".
New features in 7.0-1
-
Valgrind fixes for the following issues:
New features in 7.0-0
- OProfile includes ocount, an event counting tool.
- Valgrind fixes unhandled syscalls 171 and 259.


Change Calculator!
How much is due for the sale?
How much has the customer given you?
Give me my change!
Dollars
0
Quarters
0
Dimes
0
Nickels
0
Pennies
0


jquery.preempt
jQuery plugin to take legacy inline JS (i.e. onclick
and href="javascript:..."
) and create event handlers to be run before or
after the inlined code (or both!).
(Why would I need this?)
My use case was that I was writing a GreaseMonkey-like script against a page with inline JS and my jQuery events were not behaving. Works for me; your mileage may vary.
Installation
Use the jsDelivr CDN.
Usage
// given <button onclick="doSomething()">do something</button>
// or do something else
// Basic usage:
$('button').preempt({
attr: 'onclick',
event: 'click',
}, function doSomethingBeforeSomething() {
// do something else
});
// Restoring the inline JS:
$('button').preempt({
attr: 'onclick',
event: 'click',
restore: true
});
// Fancy usage:
$('button').preempt({
attr: 'onclick',
event: 'click',
before: function executedBeforeInlineJS(event, data) {
// stuff; return false to halt propagation to inline JS
},
after: function exectedAfterInlineJS(event, data) {
// things; return false to prevent the default action and stop propagation
},
// will execute the after() function even if the inlined JS returned false.
forcePropagation: true,
data: {
before: 'some data to be passed to the before() function',
after: 'some data to be passed to the after() function',
}
});


Humm... What did you say your clan name was? Well... Hey! You're not even registered for this Clan Hall Battle! You must follow the proper procedure!


The following tests have been selected:
BMC-POW-SNK-TRANS-C-CP
Installed Plug-In PDT-BT3 meets USB-IF requirements for these tests.
UUT declared to meet Rev 3.0
Cable marker is emulated where appropriate.
Establish PD Mode...
Initial request accepted...
Sink Capabilities seen...
Announcing new Source Capabilities...
Request received from UUT...
Initial request accepted...
Request received from UUT...
New request accepted...
Simulating Detach From UUT...
End of Tests. Duration: 00:00:08
No Vendor Info File inconsistencies found
| Event #19 | VBUS turned on | |
| Events #25-26 | PD Sequence Start (Announce Source Capabilities) | |
| Event #25 | PD Message - Source Capabilities (from Tester) | |
| Event #26 | PD Message - GoodCRC (from UUT) (SOP) | |
| Events #27-33 | PD Sequence Start (Power Transition Request) | |
| Event #27 | PD Message - Request (from UUT) (SOP) | |
| Event #28 | PD Message - GoodCRC (from Tester) (SOP) | |
| Event #29 | PD Message - Accept (from Tester) (SOP) | |
| Event #30 | PD Message - GoodCRC (from UUT) (SOP) | |
| Event #32 | PD Message - PS_RDY (from Tester) (SOP) | |
| Event #33 | PD Message - GoodCRC (from UUT) (SOP) |
| Events #35-38 | PD Sequence Start (Request Sink Capabilities) | |
| Event #35 | PD Message - Get_Sink_Cap (from Tester) (SOP) |
| Event #36 | PD Message - GoodCRC (from UUT) (SOP) | |
| Event #37 | PD Message - Sink Capabilities (from UUT) (SOP) | |
| Event #38 | PD Message - GoodCRC (from Tester) (SOP) |
| Events #41-42 | PD Sequence Start (Announce Source Capabilities) | |
| Event #41 | PD Message - Source Capabilities (from Tester) | |
| The Data-Role bit for this message differs from a previous message. [PROT_MSG_DATA_SRC_CAP_8] | ||
| Event #42 | PD Message - GoodCRC (from UUT) (SOP) | |
| Events #43-49 | PD Sequence Start (Power Transition Request) | |
| Event #43 | PD Message - Request (from UUT) (SOP) | |
| Event #44 | PD Message - GoodCRC (from Tester) (SOP) | |
| Scope Capture #1 | VBUS Measurement - Voltage Change | |
| VBUS plot is valid. | ||
| Event #46 | PD Message - Accept (from Tester) (SOP) | |
| Event #47 | PD Message - GoodCRC (from UUT) (SOP) | |
| Event #48 | PD Message - PS_RDY (from Tester) (SOP) | |
| Event #49 | PD Message - GoodCRC (from UUT) (SOP) |
| Events #50-51 | PD Sequence Start (Announce Source Capabilities) | |
| Event #50 | PD Message - Source Capabilities (from Tester) | |
| Event #51 | PD Message - GoodCRC (from UUT) (SOP) | |
| Events #52-58 | PD Sequence Start (Power Transition Request) | |
| Event #52 | PD Message - Request (from UUT) (SOP) | |
| Event #53 | PD Message - GoodCRC (from Tester) (SOP) | |
| Scope Capture #2 | VBUS Measurement - Voltage Change | |
| VBUS plot is valid. | ||
| Event #55 | PD Message - Accept (from Tester) (SOP) | |
| Event #56 | PD Message - GoodCRC (from UUT) (SOP) | |
| Event #57 | PD Message - PS_RDY (from Tester) (SOP) | |
| Event #58 | PD Message - GoodCRC (from UUT) (SOP) |
| Event #64 | Detached | |
| Event #70 | VBUS turned off |
For Information Only:
0 Retries by UUT using SOP
0 Retries by UUT using SOP'
0 Retries by Tester using SOP
0 Retries by Tester using SOP'
No Post-Run Errors found.
0 Runtime Errors
BMC-POW-SNK-TRANS-C-CP - PASS
BMC-POW-SNK-TRANS-C-CP Secondary - PASS
BMC PHY Tx: [Required]
BMC PHY Rx: [Required]
BMC PHY Misc: [Required]
Protocol Specific: [Required]
Power Specific: PASS
Secondary: PASS
| Get_Source_Cap (UUT as Sink) | Supported (see Event #37) | Should be a FAIL |


{{common.pleaseEmailOrCallDivorceCourt | safe}}
{{common.phoneToCallIfProblems | safe}}
{{common.emailIfProblems | safe}}


Hire XPERT ADS for your widest internet advertising coverage, online viral and massive exposure all over the internet.