DbObject
A database object such as a table, an index, or a user.
| Methods |
| void |
checkRename()
Check if renaming is allowed.
|
| void |
checkRename()
Check if renaming is allowed. Does nothing when allowed.
|
| ArrayList |
getChildren()
Get the list of dependent children (for tables, this includes indexes and
so on).
|
| ArrayList |
getChildren()
Get the list of dependent children (for tables, this includes indexes and
so on).
Returns:
the list of children
|
| String |
()
Get the current comment of this object.
|
| String |
()
Get the current comment of this object.
Returns:
the comment, or null if not set
|
| String |
getCreateSQL()
Construct the original CREATE ...
|
| String |
getCreateSQL()
Construct the original CREATE ... SQL statement for this object.
Returns:
the SQL statement
|
| String |
getCreateSQLForCopy(Table table, String quotedName)
Build a SQL statement to re-create the object, or to create a copy of the
object with a different name or referencing a different table
|
| String |
getCreateSQLForCopy(Table table, String quotedName)
Build a SQL statement to re-create the object, or to create a copy of the
object with a different name or referencing a different table
Parameters:
table - the new table
quotedName - the quoted name
Returns:
the SQL statement
|
| Database |
getDatabase()
Get the database.
|
| Database |
getDatabase()
Get the database.
Returns:
the database
|
| String |
getDropSQL()
Construct a DROP ...
|
| String |
getDropSQL()
Construct a DROP ... SQL statement for this object.
Returns:
the SQL statement
|
| int |
getId()
Get the unique object id.
|
| int |
getId()
Get the unique object id.

Returns:
the name
|
| String |
getSQL(boolean alwaysQuote)
Get the SQL name of this object (may be quoted).
|
| String |
getSQL(boolean alwaysQuote)
Get the SQL name of this object (may be quoted).
Parameters:
alwaysQuote - quote all identifiers
Returns:
the SQL name
|
| StringBuilder |
getSQL(StringBuilder builder, boolean alwaysQuote)
Appends the SQL name of this object (may be quoted) to the specified
builder.
|
| StringBuilder |
getSQL(StringBuilder builder, boolean alwaysQuote)
Appends the SQL name of this object (may be quoted) to the specified
builder.
Parameters:
builder - string builder
alwaysQuote - quote all identifiers
Returns:
the specified string builder
|
| int |
getType()
Get the object type.
|
| int |
getType()
Get the object type.
Returns:
the object type
|
| boolean |
isTemporary()
Check if this object is temporary (for example, a temporary table).
|
| boolean |
isTemporary()
Check if this object is temporary (for example, a temporary table).
Returns:
true if is temporary
|
| void |
removeChildrenAndResources(Session session)
Delete all dependent children objects and resources of this object.
|
| void |
removeChildrenAndResources(Session session)
Delete all dependent children objects and resources of this object.
Parameters:
session - the session
|
| void |
rename(String newName)
Rename the object.
|
| void |
rename(String newName)
Rename the object.
Parameters:
newName - the new name
|
| void |
(String comment)
Change the comment of this object.
|
| void |
(String comment)
Change the comment of this object.
Parameters:
comment - the new comment, or null for no comment
|
| void |
setTemporary(boolean temporary)
Tell this object that it is temporary or not.
|
| void |
setTemporary(boolean temporary)
Tell this object that it is temporary or not.
Parameters:
temporary - the new value
|
TABLE_OR_VIEW
= 0
The object is of the type table or view.
INDEX
= 1
This object is an index.
SCHEMA
= 10
This object is a schema.
CONSTANT
= 11
This object is a constant.
DOMAIN
= 12
This object is a domain.
COMMENT
= 13
This object is a comment.
AGGREGATE
= 14
This object is a user-defined aggregate function.
SYNONYM
= 15
This object is a synonym.
USER
= 2
This object is a user.
SEQUENCE
= 3
This object is a sequence.
TRIGGER
= 4
This object is a trigger.
CONSTRAINT
= 5
This object is a constraint (check constraint, unique constraint, or
referential constraint).
SETTING
= 6
This object is a setting.
ROLE
= 7
This object is a role.
RIGHT
= 8
This object is a right.
FUNCTION_ALIAS
= 9
This object is an alias for a Java function.


Created by Daniel Mané / danmane@
A tour thanks to Chris Olah
Materials at http://colah.github.io/
Neurons are Universal
Figures from Chris OlahLow-dimensional subspace
Figures from Chris Olah"Long Short Term Memory"
Figures from Chris OlahThe speed of light used to be 140 miles per hour. Then Jeff spent a weekend optimizing it.
Compilers don't warn Jeff Dean. Jeff Dean warns compilers.
Jeff Dean puts on his pants one leg at a time. But, if he had more than two legs, you would see that his approach is actually O(log n).
On to the other slidedeck!
Seems complicated!
Why not just have layers and call it a day!
And newer / cooler things, like Neural Turing Machines
But, it's complicated!
- Chris Olah's Blog: colah.github.io
- TensorFlow website: TensorFlow.org
- Me: danmane@(google|gmail).com


With Don Norman
Design High-Impact User Experiences. Research, Design, and Prototype effective, visually-driven websites and apps.
Enroll Now Financial Aid AvailableEnroled Students
Estimated Complete Time
Estimated Complete Time
Estimated Complete Time
This week I will give you a brief overview of the user experience process that I will teach in this course sequence. We will begin by defining the term "User Experience".
This week I will give you a brief overview of the user experience process that I will teach in this course sequence. We will begin by defining the term "User Experience".
This week I will give you a brief overview of the user experience process that I will teach in this course sequence. We will begin by defining the term "User Experience".
This week I will give you a brief overview of the user experience process that I will teach in this course sequence. We will begin by defining the term "User Experience".
This week I will give you a brief overview of the user experience process that I will teach in this course sequence. We will begin by defining the term "User Experience".
Aenean non accumsan ante. Duis et risus accumsan.
Aenean non accumsan ante. Duis et risus accumsan.
Aenean non accumsan ante. Duis et risus accumsan.
Aenean non accumsan ante. Duis et risus accumsan.
Aenean non accumsan ante. Duis et risus accumsan.
Life can be unpredictable. Get maximum flexibility to learn at your own pace.
Paid yearly and get 15% discount. Get maximum flexibility to learn at your pace.
The course has been really helpful. I have been able to understand the fundamentals ofUI Design. The importance of wireframing, prototyping, colours and how to study other site wireframing and to implement them into my UI/UX Creative process.
The course has been really helpful. I have been able to understand the fundamentals ofUI Design. The importance of wireframing, prototyping, colours and how to study other site wireframing and to implement them into my UI/UX Creative process.
The course has been really helpful. I have been able to understand the fundamentals ofUI Design. The importance of wireframing, prototyping, colours and how to study other site wireframing and to implement them into my UI/UX Creative process.
The course has been really helpful. I have been able to understand the fundamentals ofUI Design. The importance of wireframing, prototyping, colours and how to study other site wireframing and to implement them into my UI/UX Creative process.


9 European Winter Festivals And Events To Plan For
by Geoff WhitmoreThere’s so much about Europe that makes it a perfect stop during your winter travels. The historic cities have a completely different feel in the colder months. All that snow leads to great skiing and other snow sports in the continent’s mountainous regions.
Of course, you can’t forget about the wonderful winter festivals. Beyond the can’t-miss Christmas fests, there are also all kinds of other winter festivals and events you’ll want to check out starting in November up until February. Here are nine of our favorites.
1. The Snow And Ice Sculpture Festival, Bruges
If you’ve been to Belgium, but never Bruges, now is the time to go. Belgium as a whole is perfect for some winter explorations. But when you stop into Bruges, particularly from November through January, you’re treated to a magnificent display of professionally created ice and snow sculptures. They reflect a different theme each year at The Snow and Ice Sculpture Festival.
2. Up Helly Aa, Scotland
If your interests lie more in fire than ice, then join revelers for the largest fire festival in Europe. Scotland’s Shetland Islands are growing in popularity for intrepid travelers, but there’s no shortage of people in the islands’ little town of Lerwick on the last Tuesday in January.
You’ll find plenty of people milling about in Viking-style costumes, drinking their fill and, of course, lighting things on fire. In particular, a traditional Viking longship is the victim, burned at the conclusion of a nighttime torch procession.
3. The Amsterdam Light Festival, Amsterdam
The Amsterdam canals are beautiful in the winter, especially with a little bit of snow. But what about when you add some lovely light installations atop it all? The Amsterdam Light Festival lasts from November through January.
Much like Bruges’s Snow and Ice Sculpture Festival, this festival always has a particular theme. Artists interpret the theme with their own styles, casting the city in light displays that flicker off the water beautifully.
4. Momentum Ski Festival, Verbier
If winter means one thing to you and that one thing is skiing, then you can’t miss the Momentum Ski Festival that takes place each year in Verbier, Switzerland. The famous ski destination is amazing enough all by itself, but the festival takes things to an entirely new level.
Held in late January and early February, the festival combines top-tier skiing with fun events ranging from concerts to comedy shows. Even non-skiers will like this event, for the posh nightlife scene it creates and the après ski fun.
5. Winter Solstice At Stonehenge, United Kingdom
This event may be crowded, but how many chances do you get to say that you celebrated the winter solstice at Stonehenge? Gather around with the hundreds of people in attendance to witness the sun’s rising over the winter landscape.
If you balk at the idea of cramming into one space with all those people for so many cold hours, then look for similar, quieter solstice celebrations at some of the other stone circles situated around the United Kingdom.
6. Hogmanay, Edinburgh
Hogmanay is frequently voted one of the most amazing New Year’s Eve experiences you’ll ever have. It’s right up there with spending New Year’s Eve in New York City’s Times Square. Try to get to Edinburgh over the New Year’s holidays once in your life and join the up to 400,000 attendees that flock to Edinburgh’s Old Town.
Music, dancing, drinking and fireworks are some of the things you will find.
7. Festival Of Lights, Lyon
See France beyond Paris this winter with a visit to Lyon for the annual Festival of Lights. The December event is easily accessible from Paris via rail service. You won’t regret visiting this part of the country near the holidays.
The festival’s beautiful light displays lend everything a festive, Yuletide spirit that you’re sure to take home with you.
8. Kaiserball, Vienna
Vienna is famous for its amazing balls. One of the best of them all is the Kaiserball that takes place on New Year’s Eve. It’s a ticketed event, so you’ll want to make sure that you plan far in advance to make it.
 The best part? The Kaiserball takes place in an actual palace.
While in town, don’t miss out on shopping at Vienna’s lovely Christmas markets.
9. Rise, Les Deux Alpes
Another festival perfect for fans of all things snow sports, Rise is an independent festival that focuses on all your favorite snow sports. Given its location in the French ski resort town of Les Deux Alpes, it also places a high emphasis on art. Think of it as something a bit like Coachella, only in the snowy mountains rather than the desert.


Jonas Gamelist
Jonas Gamelist
Life is Strange: Before the Storm
Outlast
Captain Spirit
Omori
Valheim
The Flame in the Flood
Bendy and the Ink Machine
Buddy Simulator 1984
Our Life: Beginnings & Always
Titan Souls
Sims4?
Concluse
Emily is Away <3
Portal [Geschenk von Hendrik]
Portal 2 [Geschenk von Hendrik]
Anno 1800
Dyson Sphere Program


What used to take multiple divs, pngs and extra(thisisverylongword) markup can now be accomplished with a few lines of CSS code. In this example we’ll be combining the transform property from example 2 with box shadow(thisisverylongword) and RGBa color. To start things off, we’ll create 4 image files, each showing a different version of the Smashing Magazine home page over (thisisverylongword)time with a class for the shadow and a specific class to achieve a variety of rotations.
What used to take multiple divs, pngs and extra(thisisverylongword) markup can now be accomplished with a few lines of CSS code. In this example we’ll be combining the transform property from example 2 with box shadow(thisissverylongword) and RGBa color. To start things off, we’ll create 4 image files, each showing a different version of the Smashing Magazine home page over (thisisverylongword)time with a class for the shadow and a specific class to achieve a variety of rotations.
What used to take multiple divs, pngs and extra(this


Easy to use
Designed for the every day user
Customizable
We support all kinds of widgets
Delightful
An intuitive and amazing user experience
Simplifying the dashboard creation experience
Join our mailing list here:
Designed for the every day user
We support all kinds of widgets
An intuitive and amazing user experience
Shoot us an email at blimplive@gmail.com


Bitcoin price: click to find out!
when you click above button, a setInterval in web worker will fetch bitcoin price every 10 secs.


Craft Beer (n): A beer made in a traditional or non-mechanized way by a small brewery.
Welcome to our analysis of craft beer and breweries. The aim of this project was to analyze what style of craft beer is the most popular and the concentration of American craft breweries.
This data is useful for a wide range of commercial applications, such as marketing, development, or if you own a brewery, what is popular in your area.


We are a group of like minded friends living in Leicestershire have come together to make small changes to the local community and also abroad wherever there is a need..
 Join us for your daily routine, an outing with friends, or simply just to enjoy some alone time.
Compassion and helping others are important human virtues and I practise them regularly in my personal and professional life. I work as a consultant paediatrician at UHL ( University Hospitals of Leicester) and have had 20 highly productive years in the NHS. I am also interested in teaching and training and am currently honorary lecturer at the University of Leicester. I feel privileged to join the Rise Foundation UK to work with like minded friends to support and help people in need. .
My interest and passion towards charitable work commenced from organising health camps and blood donation camps in medical school. Currently I work as a Consultant Child psychiatrist in NHS and the fact that I am helping others is hugely empowering and in turn can make me feel happier. I am aware that being part of RISE foundation UK does strengthen my personal values and aim to introduce my kids for charitable activities in the future. Children naturally love to help others , so nurturing their innate generosity is likely to mean that they grow up with a greater appreciation of what they have,and will carry on supporting charity in years to come. I am a member of the Royal College of Psychiatrist and have gained leadership skills as part of my work in NHS.


RealEstateCore Device Module: Overview
back to
ToC
This ontology has the following classes and properties.
Classes
Actuation
Actuation interface
Actuator
BACnetConfiguration
Communication configuration
Communications bus
Device events
Device function type
Exception
KNXConfiguration
KNXDataPointType
LoRaConfiguration
MBusConfiguration
ModbusConfiguration
ModbusDataType
ModbusRTUConfiguration
ModbusTCPConfiguration
ModbusTCPFunctionCode
Observation
OPC-DAConfiguration
OPC-UAConfiguration
Placement context
Power source
Sensor
Object Properties
device placement context
event placement context
executes actuation
generated exception
generated observation
has actuation interface
has communication configuration
has communications bus
has device function type
has k n x configuration
has modbus configuration
has placement context
hasModbusDataType
hasModbusFunctionCode
hsKNXDataPointType
Data Properties
actuation command
actuation request
actuation response
has actuation command time
has actuation request time
has actuation response time
has communication attribute
has IP address
has IP address port
has KNX attribute
has KNX device ID
has KNX device port
has KNX group address
has local endpoint ID
has Lora attribute
has Lora DevEUI
has Modbus attribute
has Modbus node ID
has Modbus register
has Modbus register length
has offset
has processed time
has scale factor
Named Individuals
1
1 byte
1.yyy
15
16
2
2 byte
2 byte BCD
2 byte signed integer
2 byte signed integer swapped
2 byte unsigned integer
2 byte unsigned integer swapped
3
4
4 byte BCD
4 byte BCD swapped
4 byte float
4 byte float BCD
4 byte float swapped
4 byte signed integer
4 byte signed integer swapped
4 byte signed integer swapped bytes and words
4 byte unsigned integer
4 byte unsigned integer swapped
4 byte unsigned integer swapped bytes and words
5
6
8 byte float
8 byte float swapped
8 byte signed integer
8 byte signed integer swapped
8 byte unsigned integer
8 byte unsigned integer swapped
AirDiffuser
AirHandlingUnit
BACnet
battery
Boiler
Chiller
CirculationAir
Coil
ColdWaterFlow
ColdWaterReturn
communication bus power source
Compressor
Condenser
Control
Damper
DataAcquisition
DataCommunicationGateway
DistrictCoolingFlow
DistrictCoolingReturn
DistrictHeatingFlow
DistrictHeatingReturn
ElectricalGridIntake
ElectricalGridInternal
ElectricalGridLocalProduction
ElectricalGridTenant
Elevator
Escalator
ExhaustAir
ExtractAir
Fan
Filter
Fixed length string
Heater
HotWaterFlow
HotWaterReturn
Hwrc
IndoorAir
IP
KNX
LoRa
MBus
ModbusRTU
ModbusTCP
OPC-DA
OPC-UA
OutdoorAir
PrimaryCoolingFlow
PrimaryCoolingReturn
PrimaryHeatingFlow
PrimaryHeatingReturn
Pump
RecyclingEnergyFlow
RecyclingEnergyReturn
SecondaryCoolingFlow
SecondaryCoolingReturn
SecondaryHeatingFlow
SecondaryHeatingReturn
SteamFlow
SteamReturn
SupplyAir
Thermostat
Valve
Variable length string
WasteWater


This section presents an example of a straightforward, standard MBean.
A standard MBean is defined by writing a Java interface called SomethingMBean
and a Java class called Something
that implements that interface. Every method in the interface defines either an attribute or an operation in the MBean. By default, every method defines an operation. Attributes and operations are methods that follow certain design patterns. A standard MBean is composed of an MBean interface and a class. The MBean interface lists the methods for all exposed attributes and operations. The class implements this interface and provides the functionality of the instrumented resource.
The following sections examine an example of a standard MBean and a simple JMX technology-enabled agent (JMX agent) that manages the MBean.
An example of a basic MBean interface,
HelloMBean
, follows:
package com.example; public interface HelloMBean { public void sayHello(); public int add(int x, int y); public String getName(); public int getCacheSize(); public void setCacheSize(int size); }
By convention, an MBean interface takes the name of the Java class that implements it, with the suffix MBean
added. In this case, the interface is called HelloMBean
. The Hello
class that implements this interface is described in the next section.
According to the JMX specification, an MBean interface consists of named and typed attributes that are readable and possibly writable, in addition to the named and typed operations that can be invoked by the applications that are managed by the MBean. The HelloMBean
interface declares two operations: the Java methods add()
and sayHello()
.
HelloMBean
declares two attributes: Name
is a read-only string, and CacheSize
is an integer that can be both read and written. Getter and setter methods are declared to allow the managed application to access and possibly change the attribute values. As defined by the JMX specification, a getter is any public method that does not return void and whose name begins with get
. A getter enables a manager to read the value of the attribute, whose type is that of the returned object. A setter is any public method that takes a single parameter and whose name begins with set
. A setter enables a manager to write a new value in the attribute, whose type is the same as that of the parameter.
The implementation of these operations and attributes is shown in the following section.
The
Hello
Java class that follows implements the HelloMBean
MBean interface:
package com.example; public class Hello [...] implements HelloMBean { public void sayHello() { System.out.println("hello, world"); } public int add(int x, int y) { return x + y; } public String getName() { return this.name; } public int getCacheSize() { return this.cacheSize; } public synchronized void setCacheSize(int size) { [...] this.cacheSize = size; System.out.println("Cache size now " + this.cacheSize); } [...] private final String name = "Reginald"; private int cacheSize = DEFAULT_CACHE_SIZE; private static final int DEFAULT_CACHE_SIZE = 200; }
The straightforward Hello
class provides the definitions of the operations and attributes that are declared by HelloMBean
. The sayHello()
and add()
operations are extremely simple, but real-life operations can be as simple or as sophisticated as needed.
The methods to get the Name
attribute and to get and set the CacheSize
attribute are also defined. In this example, the Name
attribute value never changes. However, in a real scenario this attribute might change as the managed resource runs. For example, the attribute might represent statistics such as uptime or memory usage. Here, the attribute is merely the name Reginald
.
Calling the setCacheSize
method enables you to alter the CacheSize
attribute from its declared default value of 200. In a real scenario, changing the CacheSize
attribute could require other operations to be performed, such as discarding entries or allocating new entries. This example merely prints a message to confirm that the cache size has changed. However, more sophisticated operations could be defined instead of the simple call to println()
.
With the Hello
MBean and its interface thus defined, they can now be used to manage the resource they represent, as shown in the following section.
Once a resource has been instrumented by MBeans, the management of that resource is performed by a JMX agent.
The core component of a JMX agent is the MBean server. An MBean server is a managed object server in which MBeans are registered. A JMX agent also includes a set of services to manage MBeans. See the API documentation for the
MBeanServer
interface for details of the MBean server implementation.
The
Main
class that follows represents a basic JMX agent:
package com.example; import java.lang.management.*; import javax.management.*; public class Main { public static void main(String[] args) throws Exception { MBeanServer mbs = ManagementFactory.getPlatformMBeanServer(); ObjectName name = new ObjectName("com.example:type=Hello"); Hello mbean = new Hello(); mbs.registerMBean(mbean, name); [...] System.out.println("Waiting forever..."); Thread.sleep(Long.MAX_VALUE); } }
The JMX agent Main
begins by obtaining an MBean server that has been created and initialized by the platform, by calling the getPlatformMBeanServer()
method of the
java.lang.management.ManagementFactory
class. If no MBean server has been created by the platform already, then getPlatformMBeanServer()
creates an MBean server automatically by calling the JMX method
MBeanServerFactory.createMBeanServer()
. The MBeanServer
instance obtained by Main
is named mbs
.
Next, Main
defines an object name for the MBean instance that it will create. Every JMX MBean must have an object name. The object name is an instance of the JMX class
ObjectName
and must conform to the syntax defined by the JMX specification. Namely, the object name must contain a domain and a list of key-properties. In the object name defined by Main
, the domain is com.example
(the package in which the example MBean is contained). In addition, the key-property declares that this object is of the type Hello
.
An instance of a Hello
object, named mbean
, is created. The Hello
object named mbean
is then registered as an MBean in the MBean server mbs
with the object name name
, by passing the object and the object name into a call to the JMX method
MBeanServer.registerMBean()
.
With the Hello
MBean registered in the MBean server, Main
simply waits for management operations to be performed on Hello
. In this example, these management operations are invoking sayHello()
and add()
, and getting and setting the attribute values.
Having examined the example classes, you can now run the example. In this example, JConsole is used to interact with the MBean.
To run the example, follow these steps:
jmx_examples.zip
, to your working directory, work_dir
.
unzip jmx_examples.zip
work_dir
directory.
javac com/example/*.java
Main
application with the following command.
java com.example.Main
If you are running a JDK version that is older than version 6, you will need to start the Main
application with the following option specified, to expose the application for monitoring and management.
java -Dcom.sun.management.jmxremote example.Main
A confirmation that Main
is waiting for something to happen is displayed.
jconsole
The New Connection dialog box is displayed, presenting a list of running JMX agents that you can connect to.
com.example.Main
from the list and click Connect.
A summary of your platform's current activity is displayed.
This panel shows all the MBeans that are currently registered in the MBean server.
com.example
node in the MBean tree.
You see the example MBean Hello
that was created and registered by Main
. If you click Hello
, you see its associated Attributes and Operations nodes in the MBean tree.
Hello
MBean in the MBean tree.
The MBean attributes that were defined by the Hello
class are displayed.
CacheSize
attribute to 150.
In the terminal window in which you started Main
, a confirmation of this attribute change is generated.
Hello
MBean in the MBean tree.
The two operations declared by the Hello
MBean, sayHello()
and add()
, are visible.
sayHello()
operation by clicking the sayHello
button.
A JConsole dialog box informs you that the method was invoked successfully. The message "hello, world" is generated in the terminal window in which Main
is running.
add()
operation to add and click the add
button.
The answer is displayed in a JConsole dialog box.


Mahabharat tells the story of Hastinapur, a kingdom ruled by the Kuru clan where the Kaurava and the Pandava brothers compete for its throne.  Yudhistira (the eldest Pandav brother) and Duryodhan, the eldest Kaurava brother, claim to be next in the line of succession.
The story begins with Devavrata, the son of Shantanu and Ganga and a disciple of Parshuram. Devavrata earns the name Bhisma by taking an oath of celibacy to fulfill his father's wish to marry Satyavati. He also vows to serve the throne of Hastinapur and is granted icchya-mrityu (the ability to live forever, as long as he does not choose to die). Bhisma gives up his rightful throne, and Satyavati rules the kingdom as the Rajmaata (mother of the king) after her husband's death. Her son, Vichitravirya, is an alcoholic who is dependent on Bhisma. He cannot rule the kingdom, leading Satyavati to decide that Vichitravirya's future son must rule the kingdom.
In Kuntibhoj, Princess Kunti obtains a boon from the sage Durvasa enabling her to invoke any deity and bear his child. She tests the blessing, calling on the Sun God and being given a son named Karna. An unmarried woman, Kunti sets Karna afloat on the Ganges to avoid embarrassment. She later marries Pandu, son of Vichitravirya, and invokes other deities to give her three sons: Yudhistira, Bhima, and Arjuna. Madri, Pandu's second wife, invokes the Ashwini Kumaras to bear Nakula and Sahadeva. Ahe and Pandu die of a curse by Rishi Kimdam, and Kunti decides to raise the five children together. Karna is raised by a charioteer named Adirath and his wife, Radha. Belonging to a lower-caste family, he is often mistreated but becomes a skilled archer. Karna's true identity is not revealed until the end of the Kurukshetra War.


Preston weekend weather forecast: dull and rainy conditions in store
by Helen JohnsonThe weather in Preston this weekend is set to be dull, with rain and cloud.
Here’s what to expect.
Friday (22 Nov)
Friday will see overcast conditions throughout most of the day. Light rain will then hit from 8pm onwards, continuing until around 11pm.
Overnight temperature of 7C.
Saturday (23 Nov)
Saturday will see rain hit continuously throughout the day.
The temperature will reach its peak of 9C by 9am and remain so throughout the day.
Overnight temperature of 8C.
Sunday (24 Nov)
Sunday is then set to be cloudy throughout the day, with the temperature reaching its peak of 9C by 12pm.
The temperature will then begin to dip after 3pm, with an overnight temperature of 8C.
The Met Office forecast for the North West for Sunday to Tuesday explains that it will be “Drier for much of Sunday before more rain spreads in from the west, accompanied by strengthening winds.
“Mainly cloudy thereafter with scattered showers. Fairly mild.”


Pirate (ARRR) is a cryptocurrency that solves the issue of financial privacy on the blockchain through forced anonymous transactions. Protect your wallet and transactions with Pirate’s completely anonymous network. With forced private transactions, your privacy cannot be compromised by another users’ activity on the network. If you wish to learn more, please join the official Pirate Discord at https://pirate.black/discord/ or message FishyGuts#5085, who will be happy to help out.
@deepwaterH2O we don’t have the attorney letters complete yet for a listing on Bittrex.
@DmanXX - the exchange has been diligently working to ensure our wallets have no issues. We’re not sure yet when deposits and withdwas will be smoother until Sapling gets implemented in a few weeks. That should solve the exchange wallet issues we have.
DmanXX28-Nov-18 02:16 PM
Is it safe to buy more and keep it there for now?
ComputerGenie 👴👴👴28-Nov-18 02:18 PM
as safe as it ever was or will be
house28-Nov-18 02:18 PM
It is safe @DmanXX
They are really good and always follow through
I think I did too many 30k withdraws
DmanXX28-Nov-18 02:20 PM
I wrote to dp and nobody responded back
house28-Nov-18 02:20 PM
They will and not to worry matey
ComputerGenie 👴👴👴28-Nov-18 02:20 PM
I think it was micro deposits, not withdraws (no factual evidence, just an educated guess)
hfaz6328-Nov-18 02:21 PM
Hello everyone
DmanXX28-Nov-18 02:21 PM
Longest it’s safe I don’t have problem to keep it there , but I try not to keep anything on exchanges
hfaz6328-Nov-18 02:22 PM
unfortunately I lost all of my pirate coins
house28-Nov-18 02:23 PM
yeup, it is best
i did two withdraws (seperated by 20 mins) they went through fine
the next two I did were aborted
but i had to reinstall my windows yesterday. After installing the windows I installed Amaga wallet again and I found out that I forgot to take my my private key
TestDisk is a free and open source data recovery software tool designed to recover lost partition and unerase deleted files.
house28-Nov-18 02:27 PM
same would happen with any wallet @hfaz63
hfaz6328-Nov-18 02:27 PM
I tried 5 different softwares for recovery but none could find my wallet info
house28-Nov-18 02:28 PM
if you forget to save your wif, or wallet.dat
hfaz6328-Nov-18 02:28 PM
I use Exodus and Coinomi
house28-Nov-18 02:29 PM
do you own the keys/coins in them ?
hfaz6328-Nov-18 02:30 PM
yeah
house28-Nov-18 02:30 PM
if you forgot to save your password, you would lose all coins there too
hfaz6328-Nov-18 02:31 PM
they both give me some way to recover my coins but it is only Agama which does not give you 15 words so that I can easily recover ARRR coins
house28-Nov-18 02:32 PM
WIF
Post28-Nov-18 02:32 PM
Private key dude, always private key
ComputerGenie 👴👴👴28-Nov-18 02:33 PM
Agama is a very bad wallet in my mind@hfaz63 how so?
hfaz6328-Nov-18 02:33 PM
we need a betetr wallet for Pirate coins... A one that than be like coinomi wallet.
ComputerGenie 👴👴👴28-Nov-18 02:33 PM
define "better"
SHossain28-Nov-18 02:34 PM
Coinomi spent millions of $$$ to make that wallet
hfaz6328-Nov-18 02:34 PM
coinomi has given me a recovery phrase
SHossain28-Nov-18 02:34 PM
since that is their main product
hfaz6328-Nov-18 02:34 PM
which I can use easily to recover my coins and unfortunately Agama does not do that for Pirate ARRR
SHossain28-Nov-18 02:34 PM
Agama gives you WIF which is similar as receovry phrase
2
ComputerGenie 👴👴👴28-Nov-18 02:35 PM
coinomi has given me a recovery phrase
because they store your shit, you don't have complete trustless ownership
hfaz6328-Nov-18 02:36 PM
when you install coinomi and exodus wallet , they make you write down your recovery seed but in Agama i was never told to go to my wallet and as for its WIF and write it down...no warning at all
ComputerGenie 👴👴👴28-Nov-18 02:36 PM
hfaz6328-Nov-18 02:37 PM
If people who created Agama were betetr, they would give us more info when using their wallet for piare
pirate
ComputerGenie 👴👴👴28-Nov-18 02:37 PM
goes away before he says what he's thinking
house28-Nov-18 02:37 PM
thinks that would be best Genie
hfaz6328-Nov-18 02:38 PM
I was mining for 1 months and all of those coins are lost forever....I am now mining with a new address
If you can please help mw a bit with this horrible situation
jl777c28-Nov-18 02:39 PM
you need a timemachine
1
FishyGuts28-Nov-18 02:39 PM
Standard wallet practices in crypto apply here or anywhere.
wolfgang28-Nov-18 02:39 PM
holy crap... I have three times as many coins as I thought I did
hfaz6328-Nov-18 02:39 PM
I'd appreciate it guys
FishyGuts28-Nov-18 02:39 PM
Saving wallet.dat and private keys is always the first step when installing a wallet for me.
3
hfaz6328-Nov-18 02:40 PM
as I am mining along side with you for supporting Pirate coin
Fishy guts I am new to these kinds of coins and wallets...so far I had no problem with coinomi and exodus wallets
FishyGuts28-Nov-18 02:40 PM
Seed phrases are helpful too, but that .dat and WIF are the Agama versions.
There COULD be a warning for Agama when you activate a coin for the first time to let you know to save your wallet and wif
I can appreciate that @hfaz63
The mobile wallets function a little different and while the seed phrases will help with recovery, the wallet.dat and WIF are more robust in my opinion.
I’m sorry this happened.
!arrrtip @hfaz63 100
ARRR TipBotBOT28-Nov-18 02:42 PM
TipBot
@FishyGuts (FishyGuts#5085)
You tipped @hfaz6399.9999 ARRR
A network fee of 0.0001 ARRR was deducted from the amount.
This operation is pending. You will be notified when when it has finished.
hfaz6328-Nov-18 02:42 PM
Thank you man...you have always been nice and helpfull
blackbeard28-Nov-18 02:43 PM
!arrrtip @FishyGuts 1000
1
ARRR TipBotBOT28-Nov-18 02:43 PM
TipBot
@blackbeard (blackbeard#6825)
You tipped @FishyGuts999.9999 ARRR
A network fee of 0.0001 ARRR was deducted from the amount.
This operation is pending. You will be notified when when it has finished.
FishyGuts28-Nov-18 02:43 PM
Do you have Agama reinstalled?
Save your wallet.dat file and write down your WIF in two separate spots. Treat those things like giant piles of money. Keep them safe and hidden.
3
YUARRRRRR
@blackbeard be a kind hearted booty sharing pirate!
2
hfaz6328-Nov-18 02:44 PM
now I now what I should do so that I don't forget my WIF
FishyGuts28-Nov-18 02:44 PM
Write the wif down.
Two separate pieces of paper. Put one in one safe spot and the other in another safe spot.


College Memoir
A Short Novel
Download PDF
Clone Repository
Purchase Booklet
By
Patrick Steadman
, 2016


- Game - Class in edu.sjsu.cs.cs151
-
Creates Model, View, and Controller and starts mainLoop from controller
- Game() - Constructor for class edu.sjsu.cs.cs151.Game
-
- gameContinue - Variable in class edu.sjsu.cs.cs151.model.Model
-
- GameInfo - Class in edu.sjsu.cs.cs151.controller
-
Simplified representation of model.
- GameInfo(Model) - Constructor for class edu.sjsu.cs.cs151.controller.GameInfo
-
Generates initial gameInfo with provided model
- gameInfoTest() - Method in class edu.sjsu.cs.cs151.tests.TestGameInfo
-
- gameInfoUpdate(int, int, int) - Method in class edu.sjsu.cs.cs151.controller.GameInfo
-
Update value at gameStatus[i][j]
- gameOver() - Method in class edu.sjsu.cs.cs151.model.Model
-
Method for debugging, prints on console if the game is over
- gameWin() - Method in class edu.sjsu.cs.cs151.model.Model
-
Method for debugging, prints on console if user has won
- generateMineField() - Method in class edu.sjsu.cs.cs151.model.MineField
-
Create mine field and randomly place mines
- getAdjacentMines() - Method in class edu.sjsu.cs.cs151.model.Cell
-
Accessor method for adjacentMines variable
- getCells() - Method in class edu.sjsu.cs.cs151.model.MineField
-
Accessor to cells variable
- getCurrentNumOfMine() - Method in class edu.sjsu.cs.cs151.model.MineCounter
-
Accessor to number of mines.
- getGameInfo() - Method in class edu.sjsu.cs.cs151.controller.Controller
-
Getter to get gameInfo
- getGameStatus() - Method in class edu.sjsu.cs.cs151.controller.GameInfo
-
Getter for gameStatus
- getGameStatus() - Method in class edu.sjsu.cs.cs151.model.Model
-
Check if game still on
- getHeight() - Method in class edu.sjsu.cs.cs151.controller.GameInfo
-
Accessor to height
- getHeight() - Method in class edu.sjsu.cs.cs151.LeftClickMessage
-
Accessor to height variable
- getHeight() - Method in class edu.sjsu.cs.cs151.model.Model
-
Accessor to field height
- getHeight() - Method in class edu.sjsu.cs.cs151.RightClickMessage
-
Accessor to height variable
- getMineBoolean() - Method in class edu.sjsu.cs.cs151.model.MineField
-
- getMineField() - Method in class edu.sjsu.cs.cs151.model.Model
-
Get current mineField info
- getNumOfMines() - Method in class edu.sjsu.cs.cs151.controller.GameInfo
-
Accessor to get the updated numOfMines
- getNumOfMines() - Method in class edu.sjsu.cs.cs151.model.MineField
-
- getNumOfMines() - Method in class edu.sjsu.cs.cs151.model.Model
-
Accessor to numberOfMines
- getNumOfMinesFromCounter() - Method in class edu.sjsu.cs.cs151.model.Model
-
Return the estimated number of mines, which is number of real mines - number
of flags
- getNumOfOpenedCells() - Method in class edu.sjsu.cs.cs151.model.MineField
-
- getNumOfTotalCells() - Method in class edu.sjsu.cs.cs151.model.MineField
-
- getWidth() - Method in class edu.sjsu.cs.cs151.controller.GameInfo
-
Accessor to width
- getWidth() - Method in class edu.sjsu.cs.cs151.LeftClickMessage
-
Accessor to width variable
- getWidth() - Method in class edu.sjsu.cs.cs151.model.Model
-
Accessor to field width
- getWidth() - Method in class edu.sjsu.cs.cs151.RightClickMessage
-
Accessor to width variable


---
layout: post
title: "Rails console tips"
category:
tags: [rails]
---
Starting the console
I find the rails console very helpful when it comes to debug an application, or inspect records, route, or model relation in the database. It is possible to start the console in very environments, for example in test.
{% highlight bash %}
rails c test
{% endhighlight bash %}
Or in the local environment, without commiting nothing into the database
{% highlight bash %}
rails c --sandbox
{% endhighlight bash %}
For the sql database engine (postgreesql, mysql and sqlite), it is also possible to start the database interpreter from your rails application, simply launch
{% highlight bash %}
rails dbconsole
{% endhighlight bash %}
After inserting your database password connection, you could start querying your database with the database engine commands.Type ctrl c and you will be back to your app.
Inspecting records
just find a record, for example a Post with id 11 that belongs to a User.
{% highlight bash %}
i = Item.find(11)
{% endhighlight bash %}
print it in a more readable form, in yaml
{% highlight bash %}
y i
{% endhighlight bash %}
change the title for this post
{% highlight bash %}
i.title = "new title"
i.save
{% endhighlight bash %}
Or find all the post's title and the name of the users who wrote them
{% highlight bash %}
Post.all.map{|p| [p.title, p.user.name]}
{% endhighlight bash %}
The underscore "_" will returns the last variable we have obtained. In order to save tha array that we have just found, simply
{% highlight bash %}
title_and_name = _
{% endhighlight bash %}
Remember! rails console executes the code loaded at the beginning, when we have launched "rails console" the first time. Any changement in the models or controllers is not automatically detected. To reload the console without quitting it, just type
{% highlight bash %}
reload!
{% endhighlight bash %}
Inspecting routes
Like described in this post, it's possible to use the console to check routes. Running the app method in the console will returns an Integration::Session instance
{% highlight bash %}
app.class
{% endhighlight bash %}
Let's try to get the route for a given Post id
{% highlight bash %}
app.posts_path(Post.find(3))
{% endhighlight bash %}
we can also sending request to our app, like a get, a post or one of the others availables methods, and reading the html content
{% highlight bash %}
app.get "/"
app.response.body
{% endhighlight bash %}
Other tips
it's possible to chek helper's methods
{% highlight bash %}
helpers.euro_dollar_converter(30)
{% endhighlight bash %}
Use pluck instead the select method to retrieve a single value from each record in a table. instead
{% highlight bash %}
Post.select(:id).map{|p|, p.id}
{% endhighlight bash %}
use
{% highlight bash %}
Post.pluck(:id)
{% endhighlight bash %}
search in the commands that you have previously typed, if you pres CTRL r, your console will prompts
{% highlight bash %}
(reverse-i-search)`':
{% endhighlight bash %}
Other tips are welcome


Hi, FIRSTNAME
I noticed you didn't make it to the onboarding event. You really need to start making these things a priority. It's okay to skip the occasional potluck, but training events are important. You even missed the corporate ethics course, which is one of the most important parts of the onboarding! What are you going to do if someone asks you to make an ethical decision?
Immanuel Kant taught us that it is important to obey authority, so that your actions will follow a consistent general rule. He even demonstrated that it would be wrong to lie to the police, if they want to know where your friend is hiding. Please try to keep that in mind. I will send you the ethics guidelines, so you can study them at your leisure.
Now that we got that out of the way, you should definitely come to the team club night tonight! We all go to a club together and have fun! It's a great way to get to know your colleagues in a more informal environment :).
Traditionally, everyone signs up to buy a round of some kind of drink for the rest of the team. I look forward to seeing what you come up with :).
Benedetto Tornincasa
Human Relations
Senior Consultant / Haka Leader


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.jcr.adapter.xtf.query.XTFQuery
class XTFQuery
XTFQuery
processes the query, stores the filter
conditions and temporary results on a step by step basis.
Iterating over the location steps in the AQT (Abstract Query Tree),
XTFQueryBuilder
calls the addStep(java.lang.String, int, java.lang.String)
method
with appropriate type and filter information and then calls the
execute()
method. Current results (pid) are stored in
the array current
while the array path
contains lists of pid along the paths to the results.
The pid in the array current
after all the steps are
processed will be the query results.
The "Search Implementation" section of the Jackrabbit website gives a short introduction to query handling in Jackrabbit.
| Field Summary | |
|---|---|
static int |
CHILDREN
type of the step: children of a node. |
private XTFDoc[] |
current
result at current location step. |
static int |
DEREF
type of the step: dereference function. |
static int |
DESCENDANTS
type of the step: descendants of a node. |
static int |
EXACT
type of the step: exact match. |
private java.lang.String |
filter
filter (property and node type constraints). |
private int |
level
current level in the tree. |
private static org.slf4j.Logger |
log
log4j logger. |
private java.lang.String |
name
node local name at this level. |
private java.lang.String[] |
path
path to current result. |
private int |
type
type of current step: exact, children, descendants or dereference function. |
| Constructor Summary | |
|---|---|
XTFQuery()
Public constructor. |
| Method Summary | |
|---|---|
void |
addStep(java.lang.String name,
int type,
java.lang.String filter)
Adds one location step. |
void |
execute()
Processes current step and executes the created raw XML query against the raw servlet of the XTF repository. |
XTFDoc[] |
getCurrentResult()
Returns the result at current level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.slf4j.Logger log
private java.lang.String filter
private XTFDoc[] current
private java.lang.String[] path
private int level
private int type
private java.lang.String name
public static final int EXACT
public static final int CHILDREN
public static final int DESCENDANTS
public static final int DEREF
| Constructor Detail |
|---|
public XTFQuery()
| Method Detail |
|---|
public void addStep(java.lang.String name, int type, java.lang.String filter)
name
- relative JCR pathtype
- type of this location step (exact, children, descendants)filter
- filter condition (property and node type constraints)public XTFDoc[] getCurrentResult()
public void execute() throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


import sys
print( sys.platform )
darwin
Packages are an important part of the Python ‘ecosystem’ that let us use a wide variety of code written by other people. Good packages provide functions, objects and methods that make working in a particular problem domain a lot easier.
We’ve already seen how to load in packages using the import
statement. Here we load the builit-in sys
package which has methods for working with the underlying system - the platform
is the name of the operating system this code is running on.
import sys
print( sys.platform )
darwin
Some packages, like sys
come as standard when Python is installed, some come from external sources and must be installed individually. There are multiple methods of installing packages. Assuming you set up Python using Anaconda for this book then you can use conda
itself. Another more general way of installing packages is from PyPI, the Python Package Index.
None of these are done from within Python itself, they must be done from the regular command-line. The general form is:
conda install package_name
pip install package_name
VCF files (variant call format) are files that describe SNPs and small indels in alignments from high-throughput sequencing data. The vcfpy
package provides a lot of functionality for working with such files and the record they contain.
A VCF file is a column format file where each row represents a SNP/Indel record and the columns represent things describing it like Chromosome, Position, Reference Genome Allele, Alternative Genome Allele etc. Here’s what one record looks like, split over a few lines.
| CHROM | POS | ID | REF | ALT | QUAL | FILTER |
|---|---|---|---|---|---|---|
| 20 | 14370 | rs6054257 | G | A | 29 | PASS |
| INFO | FORMAT | NA00001 | NA00002 |
|---|---|---|---|
| NS=3;DP=14;AF=0.5;DB;H2 | GT:GQ:DP:HQ | 0|0:48:1:51,51 | 1|0:48:8:51,51 |
| NA00003 |
|---|
| 1/1:43:5:.,. |
There’s a lot of information in that one record, and each file has many tens of thousands of records! We wouldn’t want to try and process tens of thousands manually. Let’s look at loading in a file and looping through each record using the vcfpy
package.
We’ve already seen that packages have functions we can call, and that doing so can sometimes return objects of new types. We’ll use that pattern now to start processing a VCF file.
vcf.Reader
objectThe first package function we’ll need to use is vcf.Reader
which opens and connects to a file but doesn’t do anything with it. It gives us a reader object we can use to access the file. We just need the file name that we wish to open.
import vcfpy
= vcfpy.Reader(open('/Users/macleand/Desktop/example.vcf', 'r')) vcf_reader
Now we can go ahead and extract the VCF records by using the reader object we created in a loop
for record in vcf_reader:
print( record )
print(type(record))
Record('20', 14370, ['rs6054257'], 'G', [Substitution(type_='SNV', value='A')], 29, ['PASS'], {'NS': 3, 'DP': 14, 'AF': [0.5], 'DB': True, 'H2': True}, ['GT', 'GQ', 'DP', 'HQ'], [Call('NA00001', {'GT': '0|0', 'GQ': 48, 'DP': 1, 'HQ': [51, 51]}), Call('NA00002', {'GT': '1|0', 'GQ': 48, 'DP': 8, 'HQ': [51, 51]}), Call('NA00003', {'GT': '1/1', 'GQ': 43, 'DP': 5, 'HQ': [None, None]})])
<class 'vcfpy.record.Record'>
Record('20', 17330, [], 'T', [Substitution(type_='SNV', value='A')], 3, ['q10'], {'NS': 3, 'DP': 11, 'AF': [0.017]}, ['GT', 'GQ', 'DP', 'HQ'], [Call('NA00001', {'GT': '0|0', 'GQ': 49, 'DP': 3, 'HQ': [58, 50]}), Call('NA00002', {'GT': '0|1', 'GQ': 3, 'DP': 5, 'HQ': [65, 3]}), Call('NA00003', {'GT': '0/0', 'GQ': 41, 'DP': 3})])
<class 'vcfpy.record.Record'>
Record('20', 1110696, ['rs6040355'], 'A', [Substitution(type_='SNV', value='G'), Substitution(type_='SNV', value='T')], 67, ['PASS'], {'NS': 2, 'DP': 10, 'AF': [0.333, 0.667], 'AA': 'T', 'DB': True}, ['GT', 'GQ', 'DP', 'HQ'], [Call('NA00001', {'GT': '1|2', 'GQ': 21, 'DP': 6, 'HQ': [23, 27]}), Call('NA00002', {'GT': '2|1', 'GQ': 2, 'DP': 0, 'HQ': [18, 2]}), Call('NA00003', {'GT': '2/2', 'GQ': 35, 'DP': 4})])
<class 'vcfpy.record.Record'>
Record('20', 1230237, [], 'T', [], 47, ['PASS'], {'NS': 3, 'DP': 13, 'AA': 'T'}, ['GT', 'GQ', 'DP', 'HQ'], [Call('NA00001', {'GT': '0|0', 'GQ': 54, 'DP': 7, 'HQ': [56, 60]}), Call('NA00002', {'GT': '0|0', 'GQ': 48, 'DP': 4, 'HQ': [51, 51]}), Call('NA00003', {'GT': '0/0', 'GQ': 61, 'DP': 2})])
<class 'vcfpy.record.Record'>
Record('20', 1234567, ['microsat1'], 'GTCT', [Substitution(type_='DEL', value='G'), Substitution(type_='INDEL', value='GTACT')], 50, ['PASS'], {'NS': 3, 'DP': 9, 'AA': 'G'}, ['GT', 'GQ', 'DP'], [Call('NA00001', {'GT': '0/1', 'GQ': 35, 'DP': 4}), Call('NA00002', {'GT': '0/2', 'GQ': 17, 'DP': 2}), Call('NA00003', {'GT': '1/1', 'GQ': 40, 'DP': 3})])
<class 'vcfpy.record.Record'>
This does the code loop for every record in the file. And note how print()
gives only a rough printout of the object, not every bit of information.
vcf.Record
objectEvery time we loop we get a new vcf.Record
object. This is a special sort of object provided by the vcfpy
package that represents the VCF record. We already saw how objects have methods - special functions that apply straight to the data in that object. PyVCF
is no exception. As well as methods, objects can have properties called attributes.
As well as methods, objects have things called attributes.
Attributes of an object are different from methods of an object in that they tend to be things that just are rather than things that are computed. So a hypothetical shape
object representing a geometric shape might have an attribute called sides
. This wouldn’t need recomputing as it would be the same every time.
Attributes are easy to spot as they use the object
dot .
syntax, omitting the brackets at the end of the attribute name. Let’s examine that using the .POS
attribute.
= vcfpy.Reader(open('/Users/macleand/Desktop/example.vcf', 'r'))
vcf_reader
for record in vcf_reader:
print( record.POS )
14370
17330
1110696
1230237
1234567
Here we can see that we get the position of each SNP/Indel in the chromosome from .POS
. Note that we had to redo the vcf_reader creation - this is because the vcf.Reader
object has in a sense “got to the end” of the data the first time we used it. It needs re-winding to the start and one way to do that is to recreate it and thereby reset it.
If we want to find out what methods or attributes an object has we can use the dir()
function which gives us these for an object.
print( dir(vcf_reader) )
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__enter__', '__eq__', '__exit__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__iter__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__next__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'close', 'fetch', 'from_path', 'from_stream', 'header', 'parsed_samples', 'parser', 'path', 'record_checks', 'stream', 'tabix_file', 'tabix_iter', 'tabix_path']
So the list is really large! Some methods and attributes begin with _
underscore characters. By convention these are things that are used internally by the object - so you don’t need to worry about those. We can filter the ones we can use, by building a list of ones that don’t start with ’_’
= dir(vcf_reader)
attrs = []
keepers for a in attrs:
if not a.startswith("_"):
keepers.append(a)print( keepers )
['close', 'fetch', 'from_path', 'from_stream', 'header', 'parsed_samples', 'parser', 'path', 'record_checks', 'stream', 'tabix_file', 'tabix_iter', 'tabix_path']
This is a much shorter list. You can see the online documentation for the object here https://vcfpy.readthedocs.io/en/stable/api_io.html#vcfpy-reader
Pretty much all objects and packages will have some online documentation so you can usually find something. Sometimes it’s a bit sparse, unfortunately.
PyVCF
, calculate how many of the records are SNPs and how many are Indels. Use the documentation to see how you might achieve this - https://vcfpy.readthedocs.io/en/stable/api_record.html#vcfpy-record


| Sr | Fieldname | Type | Label | Options |
|---|
Inherits from erpnext.utilities.transaction_base.TransactionBase
bifurcate_based_on_type (self, doctype_name, total, av_dis, based_on, doc_obj, val, company)
No docs
get_appr_user_role (self, det, doctype_name, total, based_on, condition, item, company)
No docs
get_approver_name (self, doctype_name, total, doc_obj=)
No docs
get_value_based_rule (self, doctype_name, employee, total_claimed_amount, company)
No docs
validate_approving_authority (self, doctype_name, company, total, doc_obj=)
No docs
validate_auth_rule (self, doctype_name, total, based_on, cond, company, item=)
No docs


A student at Moringa school taking software developement prep class and looking forward to join course work and learn all the aspects of software development
I decide to to do programming so that i can learn all the aspects of software developement and become and excellent Web Developer
2010-2013 St Peters Nzambani Boys school
2015-2017 Zetech University
This was my first website i created while learning HTML language.
Click HereI created this webpage when i was learning how to put images on a website as well as the CSS Language
Click Here


184. Patties
time limit per test: 0.25 sec.
memory limit per test: 1024
KB
input: standard input
output: standard
output
Petya is well-known with his famous cabbage patties. Petya's
birthday will come very soon, and he wants to invite as many guests as possible.
But the boy wants everybody to try his specialty of the house. That's why he
needs to know the number of the patties he can cook using the stocked
ingredients. Petya has P grams of flour, M milliliters of milk and C grams of
cabbage. He has plenty of other ingredients. Petya knows that he needs K grams
of flour, R milliliters of milk and V grams of cabbage to cook one patty.
Please, help Petya calculate the maximum number of patties he can cook.
Input
The input file contains integer numbers P, M, C, K, R and V,
separated by spaces and/or line breaks (1 <= P, M, C, K, R, V <= 10000).
Output
Output the maximum number of patties Petya can cook.
Sample test(s)
Input
3000 1000 500
30 15 60
Output
8
| Author: |
Andrew V. Lazarev |
| Resource: |
ACM International Collegiate Programming Contest 2003-2004
North-Eastern European Region, Southern Subregion |
| Date: |
2003 October, 9
|
| Server time: 2004-01-14 11:02:58 |
Online Contester Team © 2002 - 2003. All
rights
reserved. | | |


A collection of games made by gamers for gamers
Black Ops is back! Featuring gritty, grounded, fluid Multiplayer combat, the biggest Zombies offering ever and Blackout, where the universe of Black Ops comes to life in one massive battle royale experience. Soldier up for all-out combat – tailor made for the Black Ops community.
Enter mankind’s greatest conflict with Battlefield™ V as the series goes back to its roots with a never-before-seen portrayal of World War 2. Lead your squad to victory in all-new multiplayer experiences like the multi-map Grand Operations. Fight across the globe in the single-player War Stories campaign. Assemble your Company of customized soldiers, weapons, and vehicles – then take them on an expanding journey through Tides of War. This is the most intense, immersive, and innovative Battlefield yet. You will never be the same.
Game desc
Game desc
Game desc.
Game desc
Game desc
Game desc
Game desc.
Game desc
Game desc
Game desc
Game desc.
Game desc
Game desc
Game desc


--- layout: post title: "Advice to Obama on General Motors" external-url: http://factoryjoe.com/blog/2009/06/01/michael-moores-advice-to-obama-on-general-motors/ ---
Totally agree with everything here. Cars will be the thing our great grandchildren look back on in disbelief. Beside the obvious negative environmental impact of cars, they’re unwieldy, expensive and impractical. The bankruptcy of Chrysler and GM is hard proof of what we already knew and provides a fantastic opportunity for change.


-
Package has shipped
2020-08-17 23:31
-
Package arrived at facility 101
2020-08-18 09:11
-
Package departed facility 101
2020-08-19 01:21
-
Package arrived at a carrier facility
2020-08-19 06:21
-
Package transferred to another carrier for delivery
2020-08-19 09:21
-
Package arrived at a carrier facility
2020-08-20 14:16


A place for inspiration and spread of creative ideas, start using our codes and help yourself to build the future along with us


|
CUTLASS
CUDA Templates for Linear Algebra Subroutines and Solvers
|
#include <shared_load_iterator.h>
Public Types | |
| using | ThreadMap = ThreadMap_ |
| using | Shape = typename ThreadMap::Shape |
| using | Element = Element_ |
| using | Layout = layout::RowMajor |
| using | TensorRef = TensorRef< Element, Layout > |
| using | ConstTensorRef = typename TensorRef::ConstTensorRef |
| using | Index = typename Layout::Index |
| using | LongIndex = typename Layout::LongIndex |
| using | TensorCoord = MatrixCoord |
| using | Fragment = Array< Element, ThreadMap::Iterations::kColumn *ThreadMap::Iterations::kRow *ThreadMap::Iterations::kGroup *ThreadMap::Iterations::kCluster *ThreadMap::kElementsPerAccess > |
| Fragment object. More... | |
| using | AccessType = AlignedArray< Element, ThreadMap::kElementsPerAccess, kAlignment > |
| Memory access size. More... | |
Public Member Functions | |
| CUTLASS_DEVICE | SharedLoadIterator (TensorRef ref, int thread_idx) |
| Constructor. More... | |
| CUTLASS_HOST_DEVICE void | add_pointer_offset (LongIndex pointer_offset) |
| Adds a pointer offset in units of Element. More... | |
| CUTLASS_DEVICE void | add_tile_offset (TensorCoord const &offset) |
| CUTLASS_DEVICE void | load_with_pointer_offset (Fragment &frag, Index pointer_offset) |
| Loads a fragment from memory. More... | |
| CUTLASS_DEVICE void | load (Fragment &frag) |
| Loads a fragment. More... | |
Static Public Attributes | |
| static int const | kElementsPerAccess = ThreadMap::kElementsPerAccess |
| static int const | kMinAlignment = ThreadMap_::kElementsPerAccess * sizeof_bits<Element_>::value / 8 |
| static int const | kAlignment = (MaxAlignment < kMinAlignment ? MaxAlignment : kMinAlignment) |
| static int const | kThreads = ThreadMap::kThreads |
Tile iterator used to load output tile from shared memory in epilogue.
Satisfies: ReadableTileIterator
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::AccessType = AlignedArray< Element, ThreadMap::kElementsPerAccess, kAlignment> |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::ConstTensorRef = typename TensorRef::ConstTensorRef |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::Element = Element_ |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::Fragment = Array< Element, ThreadMap::Iterations::kColumn * ThreadMap::Iterations::kRow * ThreadMap::Iterations::kGroup * ThreadMap::Iterations::kCluster * ThreadMap::kElementsPerAccess> |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::Index = typename Layout::Index |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::Layout = layout::RowMajor |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::LongIndex = typename Layout::LongIndex |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::Shape = typename ThreadMap::Shape |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::TensorCoord = MatrixCoord |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::TensorRef = TensorRef<Element, Layout> |
| using cutlass::epilogue::threadblock::SharedLoadIterator< ThreadMap_, Element_, MaxAlignment >::ThreadMap = ThreadMap_ |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |


ComputerGenie
29-Jun-18 12:50 PM
I can almost see the "well, equihash was meant to be anti ASIC" claim, but even that falls flat because it's still the same thing - it's all about RAM cost
a $1.5M+ cost to market, do people really believe that ASIC makers are just going to say "oh well, we lost on that one; just scrap it all" as opposed to, worst case, spending $90k to add RAM and private mine to recoup their losses?
(edited)
imo, the move to exclude all AMD miners, and pretty much anyone with an NVIDIA older than a 1050, is pure insanity
(edited)
especially when the claim is usually "everyone has a GPU".... Guess what, Skippy, "everyone" doesn't have $1k per to drop on a high-end GPU that is 2+ years old and costs more than when it was released
gets off his soapbox and goes to get coffee


25 years of experience in IT infrastructure. My expertise covers technologies such as RISC/Intel servers, TCP/IP networks, SAN networks, corporate storage, security, Internet services (DNS, SMTP, WEB, FTP ...) and free software.
At the moment my interests include cloud computing, DevOps and web development.
I deployed the Nagios software to replace an old and obsolete product that began to present problems. Nagios was implanted in a reduced time, using already existing computational and personnel resources, and allowed the monitoring of various equipment and services that were not monitored by the previous solution.
I deployed the high availability IBM PowerHA solution in several SAP environments running on AIX. customized the application scripts (Unix shell) to tailor the clusters to the particularities of each environment.
I performed upgrades and migrations of AIX environments on Power machines (P5XX, P7XX) using technologies such as NIM, HCM and PowerVM services. This work was done mainly at times of exchange by newer models, such as the migration of LPARs from P595 to P770 or P780.
I deployed the Cacti solution to assist in the server capacity planning process (Unix and Windows). After a process of defining the metrics that would need to be monitored (CPU, memory, IOPS, swapping ...), data collection scripts were implemented for drawing the associated graphics. These graphs have proved very useful both for planning Capacity, as in the diagnosis of environmental performance.
In conjunction with the IT security department, I established the parameters, developed the RFP, analyzed proposals, and deployed a filtering solution for Internet email. Cisco ESA was the solution adopted. In addition to a reduction in SPAM filtering of more than 90 percent, the solution provided previously unavailable facilities such as traceability and prioritization of messages, content filtering and quarantine of suspicious messages.


Problem : Character Count | Time limit: 0.02secs | Memory: 500B | Submit code
A straight forward problem again!
Given a string S and few characters, Output the given character and count of the character in the string in the ascending order of their count. If two characters have same count, then print them in order of their occurence in alphabets.
Constraints:
1<=length|S|<=10 power 20.
1<=n<=2000000000.
'S' consists of only lower case alphabets.
Input:
Each test case consists of three lines.
Line1 : String S
Line2 : 'n', number of characters
Line3 : n characters seperated by spaces.
Output:
Output n lines, each line containing the character and it's count seperated by a single space. Don't forget to print the output in the sorted order of the count of characters
If count of two characters are same, print them in the lexical order.
science
Sample Output:
i 1
n 1
s 1
c 2
e 2


Based on the Book "Keys to Infinity" - Clifford A. Pickover
Param A: Param B:
Step:
F1 Ranunculoid: a = 6; b = 6; F2 Cardioid: a = 2; b = 2; F3 Nephroid: a = 3; b = 3; F4 Amazingoid: a = 100; b = 100; F5 Fishtailoid: a = 2; b = 3;


- AbstractAnimation - Class in squidpony.squidgrid.gui.animation
-
- AbstractAnimation(BufferedImage, Point, Point, long) - Constructor for class squidpony.squidgrid.gui.animation.AbstractAnimation
-
- acceptDirectionInput(DirectionIntercardinal) - Method in interface squidpony.bootstrap.GameLogic
-
Sends a single direction that was pressed.
- acceptKeyboardInput(char) - Method in interface squidpony.bootstrap.GameLogic
-
Sends a single character that was pressed.
- acceptMoustInput(int, int) - Method in interface squidpony.bootstrap.GameLogic
-
Sends the grid coordinates of a mouse click.
- ACHROMATIC_SERIES - Static variable in class squidpony.squidcolor.SColor
-
This array is loaded with the colors from the traditional Japanese Achromatic Series found at
the wikipedia site here: http://en.wikipedia.org/wiki/Traditional_colors_of_Japan
- actionPerformed(ActionEvent) - Method in class squidpony.squidgrid.gui.animation.AbstractAnimation
-
- actionPerformed(ActionEvent) - Method in class squidpony.squidgrid.gui.animation.BumpAnimation
-
- actionPerformed(ActionEvent) - Method in class squidpony.squidgrid.gui.animation.SlideAnimation
-
- actionPerformed(ActionEvent) - Method in class squidpony.squidgrid.gui.animation.WiggleAnimation
-
- add(SColor, SColor) - Static method in class squidpony.squidcolor.SColorFactory
-
Adds the two colors together.
- add(Animation) - Method in class squidpony.squidgrid.gui.animation.AnimationManager
-
Adds the animation and starts it immediately, with the given speed parameter indicating how
many milliseconds to wait between animation steps.
- add(Animation, int) - Method in class squidpony.squidgrid.gui.animation.AnimationManager
-
Adds the animation and starts it immediately, with the given speed parameter indicating how
many milliseconds to wait between animation steps.
- add(char) - Method in class squidpony.squidtext.nolithiusgen.WeightedLetterGroup
-
- add(T, int) - Method in class squidpony.squidutility.ProbabilityTable
-
Adds the given item to the table.
- addEdge(Vertex, Vertex, int) - Method in interface squidpony.squidutility.graph.Graph
-
Adds the two vertices to the graph connected by the given weight.
- addEdge(Vertex, Vertex, int) - Method in class squidpony.squidutility.graph.PointGraph
-
- addNextLetter(char) - Method in class squidpony.squidtext.nolithiusgen.WeightedLetter
-
Have the WeightedLetterGroup keep track of the next letter instead of a simple array.
- addPallet(String, ArrayList<SColor>) - Static method in class squidpony.squidcolor.SColorFactory
-
Places the pallet into the cache, along with each of the member colors.
- addVertex(Vertex) - Method in interface squidpony.squidutility.graph.Graph
-
Adds the vertex but does not attach it to any other vertices.
- addVertex(Vertex) - Method in class squidpony.squidutility.graph.PointGraph
-
- ALICE_BLUE - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- ALIZARIN - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- ALOEWOOD - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- ALOEWOOD_BROWN - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AMARANTH - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AMBER - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AMBER_DYE - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AMETHYST - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AMUR_CORK_TREE - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- Animation - Interface in squidpony.squidgrid.gui.animation
-
Controls animations of images.
- AnimationManager - Class in squidpony.squidgrid.gui.animation
-
This class manages a collection of animations and handles update drawing to the provided
BufferedImage.
- antialiasBox - Variable in class squidpony.squidgrid.gui.FontChoiceControlPanel
-
- APRICOT - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AQUA - Static variable in class squidpony.squidcolor.SColor
-
Duplicated as CYAN for backwards compatability Color constant
- AQUAMARINE - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- ARMY_GREEN - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- asGradient(SColor, SColor) - Static method in class squidpony.squidcolor.SColorFactory
-
Returns a list of colors starting at the first color and moving to the
second color.
- ASPARAGUS - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- asSColor(int) - Static method in class squidpony.squidcolor.SColorFactory
-
Returns the cached color that matches the desired rgb value.
- asSColor(int, int, int) - Static method in class squidpony.squidcolor.SColorFactory
-
- asSColor(int, int, int, int) - Static method in class squidpony.squidcolor.SColorFactory
-
Returns an SColor with the given values, with those values clamped
between 0 and 255.
- asSColor(Color) - Static method in class squidpony.squidcolor.SColorFactory
-
Returns an SColor representation of the provided Color.
- at(int) - Method in class squidpony.squidutility.jdaygraph.Grid4
-
- at(int) - Method in interface squidpony.squidutility.jdaygraph.Overlay
-
Returns the object at the given index.
- ATOMIC_TANGERINE - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AUBURN - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AZUL - Static variable in class squidpony.squidcolor.SColor
-
Color constant
- AZURE - Static variable in class squidpony.squidcolor.SColor
-
Color constant