A channel to discuss trading. For useful links and more info click the pinned messages to the right.
100 messages
Before 05-Dec-19 12:00 AM
Acura25-Mar-19 05:07 PM
*hopium
MyName25-Mar-19 05:11 PM
didn't the last parabolic come shortly before and the following year, rather than "a year before"?
jl777c25-Mar-19 05:12 PM
yes, but end of bear was year before
MyName25-Mar-19 05:14 PM
what I mean is that 1 year before the last was fairly flat (especially when you count the prior decline)
it was much closer, imo, to the halving than 1 year when any meaningful movement happened
MyName25-Mar-19 05:23 PM
~ 7 months of meh between bear and bull (which was closer to 9-10 months back from the halving for the 2 month long 2x)(edited)
Markus25-Mar-19 05:23 PM
btc flash crash but instantly bought back up
went to 3960 on bitfinex from 4030
mrtzmp325-Mar-19 05:23 PM
@jl777c i remember you saying we are still very much in a bear market one month or so ago , you have changed opinion
?
jl777c25-Mar-19 05:25 PM
the longer we go without retesting $3100, the more likely that becomes the bear market low
and as get closer to halving the odds reduce even more
if course, anything can happen but fundamentally the halving means half the coins for miners
and who is still holding BTC who hasnt sold, but will sell if the price goes down?
there will be a lot of resistance as the price climbs the wall of worry, until something happens and fomo sets in
Markus25-Mar-19 05:27 PM
Ppl often talk about a quick capulation candle being needed, what u guys think of that
jl777c25-Mar-19 05:27 PM
we are nowhere close to the next fomo moment
MyName25-Mar-19 05:27 PM
@Markus Wick aside, it was -0.34765334% (aka, not really worth mentioning)
jl777c25-Mar-19 05:27 PM
was $3100 the capitulation? only hindsight will know for sure
thats the thing about TA, after the fact it is "so obvious" where the bottom was, but as the prices are being experienced there is no such sense of "so obvious". in reverse, when things were at $20,000 which was the "so obvious" top in hindsight, was it really that obvious as it pulled back to $17k and then rallied again>
thats the thing, based on what actually happens, it totally changes things
so anybody that has any confidence about near term price points is delusional or a big giant whale who can paint whatever chart they want, since they have 100,000+ BTC and a few billion in trading capital
MyName25-Mar-19 05:31 PM
so, in other words, you "paint whatever chart you want"
Markus25-Mar-19 05:31 PM
Haha
@jl777c Do u believe in market cycle strategy when it comes to btc? Do u think the parabolic curve will apply all the way or at some point break out of its repeating style?
jl777c25-Mar-19 05:39 PM
i think the cycle comes out of the 4 year halving
the parabolic is a side effect of BTC starting at 0 and like a cork that is deep in the ocean, at first will rise parabolically
MyName25-Mar-19 05:44 PM
I'm personally curious what will happen if/when media/TV/movies stop perpetuation the notion that crypto is mainly only used "by criminals"
It will be interesting to see the effect the shift in psychology has on BTC price specifically given the it is the main target of the demonization
Markus25-Mar-19 05:47 PM
It will be interesting to see what will happen in the future with bitcoin when next halvenings happen, either price will sky rocket or miners and so on will turn towards another coin more profitable to mine
Or maybe mining wont be a thing later on
MyName25-Mar-19 05:50 PM
tbh, I don't see miners being a meaningful factor anymore
the last bubble created enough large farms that can afford the newest miners in bulk (and are in it for the long haul) that hobby miners could all go away and it wouldn't have more than a 2-4 week impact on anything
Markus25-Mar-19 05:52 PM
Yes but imagine halvening coming after 2020 halvening, block reward will be 3.125 per 10 min
thats not alot
jl777c25-Mar-19 05:53 PM
there is no other SHA256 coin of any meaningful value
miners will keep mining BTC until it doesnt pay for electricity
p.25-Mar-19 05:53 PM
KMD GO POOPOO CAKA
1
1
jl777c25-Mar-19 05:53 PM
yes massive 3% drop. its all over now
2
after losing 3% in a day, well, there can be no future
2
siu - Chainmakers25-Mar-19 05:55 PM
normal behaviour is for the price to never get too far from 8ema
right now, since we are on a new week, we are retesting the 8ema and at the same time confirming support at the 8/41 inflection point.
jl777c25-Mar-19 05:55 PM
well its behaving normally, so that is clearly the sign of the end
1
1
MyName25-Mar-19 05:56 PM
for those large farms, the slice of the $7.2M a day now and $3.6M a day in 2020 will more than offset the 2024 of "only" $1.8M a day if it stays flat forever and donkeys don't keep pushing up the price of tx fees
miners will keep mining BTC until it doesnt pay for electricity
Many go past that on prayers and spec of the next parabolic
Markus25-Mar-19 05:58 PM
Is 8ema crossing 200ma a big deal?
Buddz199325-Mar-19 06:34 PM
dumpppppp it
Cryptoon25-Mar-19 06:37 PM
tested the same local low of 3/21
testing*
Buddz199325-Mar-19 06:39 PM
some volatility is needed
I want to buy btc at 3k plzz
Cryptoon25-Mar-19 06:39 PM
Will we break below is the question
Buddz199325-Mar-19 06:40 PM
Im either waiting for the last big drop
or will there be more?
Cryptoon25-Mar-19 06:40 PM
if we go below next stop is 3700-3600ish?
Buddz199325-Mar-19 06:40 PM
who knows.
I guess.
Markus25-Mar-19 06:42 PM
Time for all that btc to float into kmd
1
Buddz199325-Mar-19 06:44 PM
so far its going to that maximine coin´
p.25-Mar-19 06:52 PM
@Markus wishful thinking
its called USDT
MyName25-Mar-19 06:52 PM
I want to buy btc at 3k plzz
You might could get that on a wick, but I think it will be a while before it drops back again as a real number
Current sentiment and the new 15-series miners, I don't see a floor below 3600
Caglio25-Mar-19 07:27 PM
Buy high, sell dip
1
CoinKing8825-Mar-19 08:28 PM
Load the dip, dont mind BTC dipping to 1K. Then i have a chance to get my hands on a full BTC to HODL (and some extra KMD which will be like 25 cents then)
ComputerGenie 👴👴👴25-Mar-19 08:30 PM
dont mind BTC dipping to 1K
imo, if that happened and everything else didn't follow, it wouldn't ever recover to top 10
"alts" is only a valid term if one subscribes to the belief that BTC is "the coin"
Tek25-Mar-19 08:47 PM
still believing in BTC legacy
in 2019
believing in lightning network
LMAO
p.25-Mar-19 08:48 PM
review this in 2 years
MyName25-Mar-19 08:51 PM
2 days, 2 months, 2 years, 2 decades, or 2 centuries and I'll still say that the space as a whole suffers by determining that every crypto is an "alternative" currency to BTC and that the term should only be used with the inclusion of BTC (whereby all crypto is an "alt" to fiat)
p.25-Mar-19 08:52 PM
if they have USD pairs
last time i checked BTC was still #1
must be millionaire though
2 centuries? immortal as well as brilliant
teach me please
MyName25-Mar-19 08:53 PM
last time i checked BTC was still #1
in market cap and similar metrics, yes, and that fact coupled with the fact that it's literally among the least innovative in the current sphere is a bad thing
p.25-Mar-19 08:54 PM
gold bricks dont have usb ports
MyName25-Mar-19 08:55 PM
if they have USD pairs
Because USD is the only fiat left in the world?
it's sad the narrow thinking that exists within this space that is supposed to be "outside the box"
ComputerGenie 👴👴👴25-Mar-19 08:59 PM
Free your mind, and the rest will follow
p.25-Mar-19 09:00 PM
the least innovative in the current sphere
only without it non of this exists
making it arguably the most innovative thing EVER
ComputerGenie 👴👴👴25-Mar-19 09:06 PM
Yes and a Model-A Ford is a better, more valuable car than a 2019 'supercar', right?
p.25-Mar-19 09:06 PM
GOOD COMPARISON
ComputerGenie 👴👴👴25-Mar-19 09:07 PM
It's actually more appropriate than one might think
the main difference is I don't see fanboys saying daily how great a Model-A is
p.25-Mar-19 09:09 PM
all well and good
but you buy KMD it moons, you sell to BTC
ComputerGenie 👴👴👴25-Mar-19 09:10 PM
Actually, I don't; I get more value for exchange with or without BTC, because BTC isn't the only thing to pair to/with (which is the point of a currency)
p.25-Mar-19 09:11 PM
i guess USD is also halvening in 2021
ComputerGenie 👴👴👴25-Mar-19 09:12 PM
again, why is your brain stuck on the myopic notion that BTC and USD are all that matter in the world?
What if I told you that the vast majority of the people in the world have not only never used USD, they've never even seen it?


--- layout: default title: Findafilm movie search meta_description: Find movies and TV shows based on your criteria current: home ---
Choose your movie/TV genre.


QuickStart Two
The previous QuickStart introduced configuration and mapping. This tutorial extends that information while working with a sharded data set. This tutorial also extends the mapping functionality to include list and object properties on the model class.
Sharded data introduces two complexities:
- How do I uniquely identify and locate a record, which could be on any shard?
- How do I manage data on one shard and related data on a foreign shard?
This walkthrough illustrates how both challenges are met.
Create the Project
Although you can download QuickStart2 as a completed project, this walkthrough will guide you as if this is a new project.
Create a new “ASP.NET Core Web Application” project. When prompted, select the “API” project type. Once the solutions is created, open your dependencies and add the following NuGet packages.
- ArgentSea.Sql or ArgentSea.Pg - for SQL Sever or PostgreSQL databases respectively
- Swashbuckle.Aspnetcore - for Swagger] and for invoking the API without creating a client
To follow a standard convention for an MVC project, create folders for Models, InputModels, and Stores (or “Repositories”).
The Sample Data
Our sample application is going to track Customers. The data set is not especially realistic and is completely made-up. Customers can have multiple Locations (1:∞). Customers can also have Contacts, but the Contacts can belong to more than one Customer (∞:∞). The Contact may not exist in the same shard as the Customer.
The data is set up this way to illustrate one of the difficulties with sharded data: managing relationships between sharded records. In this case, a Customer may be associated with a Contact on any shard. Consequently, querying the Customer’s Contacts may require accessing multiple shards, deleting a customer means removing the Customer link from each Contact, which could be on any shard, and updating a Customer’s Contacts could also impact multiple shards.
The SQL for the sample data is found in the GitHub source repository.
- PostgreSQL - https://github.com/argentsea/quickstarts/tree/master/QuickStart2.Pg/QuickStart2.Pg/Sql
- SQL Server - https://github.com/argentsea/quickstarts/tree/master/QuickStart2.Sql/QuickStart2.Sql/Sql
To create the QuickStart data sources, first run the ServerSetup.sql file. This will create four databases and two logins. The logins contain weak passwords (that are published on the Internet), so you might consider changing them; on the other hand, these will only have permission to execute procedures or functions in a specific namespace, so it’s not a big risk.
Note
Conceptually, these four databases would correspond to regional data stores in the United States, Brazil, Europe, and China. In my real global application I would replicate the data from each region to each other region. Therefore, each region would have one writable data store and three readable ones. In this way, the “local” shard is writeable, the “foreign” shards are read-only. Writes to a foreign shard must be done across the WAN. Your implementation may vary.
Our walkthrough, however, only needs four simple databases on one server. We’ll only imagine the rest.
The ShardId
Each of the four databases needs an identifier. This is perhaps more significant and may more fraught than it sounds. ArgentSea uses a “virtual compound key” consisting of the ShardId and the RecordId; this is called a ShardKey. A thorough discussion of the options and impact is here. The précis is that once established, the type (and values) of the ShardId cannot be easily changed. The ShardId is a part of record identification, so confusion or misconfiguration could result in data corruption.
In this sample application, the type of the ShardId for SQL Server is a byte
(SQL TinyInt); for PostgreSQL it is a short
(SQL SmallInt). ArgentSea uses a generic type to define the ShardId, so you can use one of many types in your application; however, the ShardId must be consistent throughout the application.
In each of the four databases, you will need to run the DbSetup.sql file. This creates the schemas, tables, and procedures in the database. The first function is called ws.ShardId
. Before you run the SQL script, change the return value (line 11) for each database:
| Database | Return Value |
|---|---|
| CustomerShardUS | 1 |
| CustomerShardEU | 2 |
| CustomerShardBR | 3 |
| CustomerShardZH | 4 |
After the tables are created, run the SQL file specific to that database (i.e. ShardBR.sql, ShardEU.sql, ShardUS.sql, or ShardZH.sql). This will populate the tables with sample data.
At this point, we should have four database with identical stored procedures or functions. ArgentSea will only invoke stored procedures or functions.
Configuring Connections
Because sharded data may require a large number of data connections, ArgentSea offers a more flexible way of managing this than by using connection strings. ArgentSea offers the “Hereditary Configuration Hierarchy”. This allows you to set an attribute at the parent level and all children will inherit this value, unless overwritten by a child. A more thorough discussion is here.
In our sample application, we can use the same server or host for all connections; each shard connection only changes the database name. (In a production deployment, the configuration might be exactly backwards: the databases have identical names, but each is on a different host). We also want to use the webWriter user for write connections and webReader for read connections.
So the configuration settings looks like this (with annotations):
{
"SqlShardSets": [¹
{
"ShardSetName": "Customers",²
"DataSource": ".",³
"Write": {⁴
"UserName": "webWriter",
"Password": "Pwd567890",
},
"Read": {⁴
"ApplicationIntent": "ReadOnly",
"UserName": "webReader",
"Password": "Pwd123456"
},
"Shards": [⁵
{
"ShardId": 1,⁶
"InitialCatalog": "CustomerShardUS"⁷
},
{
"ShardId": 2,⁶
"InitialCatalog": "CustomerShardEU"⁷
},
{
"ShardId": 3,⁶
"InitialCatalog": "CustomerShardBR"⁷
},
{
"ShardId": 4,⁶
"InitialCatalog": "CustomerShardZH"⁷
}
]
}
]
}
Annotations
¹ SqlShardSets
is the root JSON section for all the shard configuration metadata. It contains an array of shard sets.
² ShardSetName
is a required key for this specific shard set. Multiple shard sets are possible and each will be identified by this key. This value must exactly match the value used in your code to invoke this shard set.
³ DataSourceName
is a connection attribute. Connection attributes can appear anywhere in the hierarchy. Because it appears at the “shard set” level, all shards in the shard set will inherit this server name.
⁴ Read
and Write
are peculiar, and optional, members of shard set’s “inheritance” chain, as their children are indirect. Any attributes defined in the shard set’s Write
section apply only to write connections. Likewise, for Read
connections. These values can be overwritten by shard or connection attributes.
⁵ Shards
is an array of shard connections, one for each shard in the shard set.
⁶ ShardId
is a required identifier for the shard. This value is essential for finding and identifying a sharded record. It cannot be duplicated within a shard set. If the type of the ShardId is a string, then this value should have quotes around it in the JSON file.
⁷ InitialCatalog
is a connection attribute. Because it appears at the shard level, both read connections and write connections for this shard will inherit this value.
This hierarchy, then, defines a server name once, to be used for the entire shard set. The read and write logins are also defined once, to be used by all read or write connections in the shard set. Each shard has a distinct database name. ArgentSea can build read and write connections to each data store without the need to configure any of this data redundantly — the login, server name, and database names are each managed only once.
When you save this configuration to project’s appsettings file, be sure to update the JSON to the appropriate server references.
You might consider moving the login password information to the UserSecrets store, which is a best practice. Simply remove the password entries from the appsettings.json hierarchy and add them to the usersecrets.json file.
User Secrets Entry
{
"SqlShardSets": [
{
"Write": {
"Password": "Pwd567890",
},
"Read": {
"Password": "Pwd123456"
}
}
]
}
Warning
The configuration arrays in appsettings.json and usersecrets.json will not match if they do not appear in exactly the same order. In this sample, we have only one shard set and the passwords are not in the Shards
array, so this is not a concern.
Creating the Models
The process of creating a model class was introduced in Quickstart 1. Essentially, it simply requires adding attributes to properties, which the Mapper can then use. This QuickStart adds four new wrinkles: shard keys, object properties, list properties, and inheritance.
The complete code is on GitHub, at https://github.com/argentsea/quickstarts/tree/master/QuickStart2.Sql/QuickStart2.Sql for SQL Server, or https://github.com/argentsea/quickstarts/tree/master/QuickStart2.Pg/QuickStart2.Pg for PostgreSQL. The classes and SQL you need are located there; it is not fully reproduced here.
To use the attributes, each Model class should include a using
statement: using ArgentSea.Pg;
or using ArgentSea.Sql
depending upon the database platform.
ShardKey and ShardChild
Optionally, a second using
statement can reduce the redundancy of declaring generic arguments throughout the Model class.
using ShardKey = ArgentSea.ShardKey<byte, int>;
Within an application, the generic ShardId type cannot change, so this can simplify the Model code. You can implement an equivalent practice for the ShardChild object too. Obviously, this simplification won't work if you use different data types for the record id (integer vs bigint) in different sharded tables.
It would be even better to declare a subclass that inherits from ShardKey or ShardChild which defines the ShardId type; unfortunately, ShardKey and ShardChild are structs, so inheritance is not an option.
Object Properties
Our data contains location data with latitude and longitude values. Generally, these are usually managed as a value pair. Geographic functions would likely expect a single geographic coordinates argument, rather than the two separate values. It would be handy to map data directly to/from a coordinates class, which would be a property of the location class.
That is exactly what the MapToModel
attribute does. This attribute tells the mapper that the property is a child object that also has properties to be included in the mapping.
// The coordinates class:
public class CoordinatesModel
{
[MapToSqlFloat("Latitude")]
public double Latitude { get; set; }
[MapToSqlFloat("Longitude")]
public double Longitude { get; set; }
}
// The location, which contains the coordinates class as a property:
public class LocationModel
{
//include other properties here...
[MapToModel]
public CoordinatesModel Coordinates { get; set; }
}
If the Coordinates property is null, the Mapper will instantiate an instance before setting the properties. Of course, the CoordinatesModel must have a default constructor and the property must be settable. If you want to make the property read-only, just make sure that the Coordinates object exists:
[MapToModel]
public CoordinatesModel Coordinates { get; } = new CoordinatesModel();
List Properties
One of the most expensive activities an application can do is reach out to another server. Our high-performance application should do everything possible to minimize database server round-trips. This means getting all the data necessary to populate our Customer model in a single request. The ArgentSea Mapper can automatically handle multiple results from a single request.
Our Customer can have any number of Locations. Our customer can also have any number of Contacts. The stored procedure (or function in PostgreSQL) rd.CustomerGet
returns the Customer, Location and Contact information in a single round-trip. The Customer data is returned in output parameters, the Location data is in the first data reader result, and the Contact information is in the second result.
Tip
The base Customer record could be returned in either output parameters or in a single-row SELECT result. The first would use the Mapper’s MapOutput
method, the other requires the MapReader
method; both would use the data reader to handle list properties.
To map the multiple data reader results to the Model, we tell the Mapper the order of the results when we fetch:
var prms = new QueryParameterCollection()
.AddSqlIntInputParameter("@CustomerId", customerKey.RecordId)
.CreateOutputParameters<CustomerModel>(_logger);
return await _shardSet[customerKey].Read.MapOutputAsync<CustomerModel, LocationModel, ContactModel>(DataProcedures.CustomerGet, prms, cancellation);
The CustomerModel
type in the first generic position tells the Mapper that that is the base object type. The Mapper will automatically create a new instance of the CustomerModel type and populate its properties from the query’s output parameters.
The LocationModel
type in the next generic position indicates that the first data reader result contains this type. The Mapper will build a list of locations, find a property of type List<LocationModel>
or IList<LocationModel>
, and set the property to the list object.
Likewise, the third generic argument tells the Mapper that the next data reader result is a list of Contacts, which the Mapper will used to populate the Contacts property.
These two lines of code are all that is required to manage this complex result.
Model Inheritance
The sample application has a CusteromListItem
Model, which contains a record key and a customer name property. The CustomerModel
include those same values, plus some others. By inheriting from first Model, the CustomerModel
inherits the key and an customer name, including their mapping attributes.
Because database queries often return subsets of entity columns, this object inheritance technique may be useful in allowing the mapping attributes to be defined only once.
The ShardKey
The final object type which may combine multiple data records is the ShardKey and ShardChild types. These are described in detail here.
[MapShardKey('c', "@CustomerId")]
[MapToSqlInt("@CustomerId")]
public ShardKey CustomerKey { get; set; }
Note
The ShardKey in this example does not specify a ShardId. Because the client knows the ShardId, ArgentSea will populate the ShardId value from this configuration data. You can map the ShardId to a database result or parameter simply by adding a second “[MapTo*]” attribute and specifying the name in the [MapShardKey] attribute argument list.
The ShardChild
The ShardChild object supports table compound keys in your sharded data. In this sample application, the Customer Location records are identified by a compound key including both a CustomerId and LocationId.
[MapShardChild('L', "CustomerId", "LocationId")]
[MapToSqlInt("CustomerId")]
[MapToSqlSmallInt("LocationId")]
public ShardChild CustomerLocationKey { get; set; }
It would be possible for ArgentSea to include a ShardGrandChild struct, for larger compound keys, (or even a ShardGreatGrandChild) but the need for this hasn’t arisen.
The Services
Loading the injectable shard service is similar to the steps described in QuickStart 1. In that sample, we loaded the Databases
service; in this sample we also load the ShardSets
service.
One difference between the Databases
service (in the previous tutorial) and the ShardSets
service is that ShardSets
requires that a ShardId type be specified via a generic type argument for both the shard configuration and ShardSets
services.
Then you can load the ShardSets during start up as:
public void ConfigureServices(IServiceCollection services)
{
// add options, and logging services.
services.AddSqlServices<byte>(this.Configuration);
services.AddSingleton<SqlShardSets<byte>>();
// now add your application services, mvc, swagger, etc.
}
Note that unlike in QuickStart 1, the AddSqlServices
or AddPgServices
extension method now requires a generic ShardId type.
Obtaining the injectible ShardSets
service in you class is straightforward:
public class CustomerStore
{
private readonly SqlShardSets<short>.ShardSet _shardSet;
private readonly ILogger<CustomerStore> _logger;
public CustomerStore(SqlShardSets<short> shardSets, ILogger<CustomerStore> logger)
{
_shardSet = shardSets["Customers"];
_logger = logger;
}
....
In the examples so far, the generic ShardId type must be specified redundantly, while loading the service and every time the ShardSets
object is declared. If this gets tedious, or if you just like code clarity, you can use inheritance to limit this by creating a local class that defines the ShardId type for the entire project.
public class ShardSets : SqlShardSets<byte>
{
public ShardSets(
IOptions<SqlShardConnectionOptions<byte>> configOptions,
IOptions<SqlGlobalPropertiesOptions> globalOptions,
ILogger<ShardSets> logger
) : base(configOptions, globalOptions, logger)
{
//
}
}
With this approach, the ShardSets
references are somewhat simpllified:
public class CustomerStore
{
private readonly ShardSets.ShardSet _shardSet;
private readonly ILogger<CustomerStore> _logger;
public CustomerStore(ShardSets shardSets, ILogger<CustomerStore> logger)
{
_shardSet = shardSets["Customers"];
_logger = logger;
}
...
Loading your own service simply involves replacing the generic SqlShardSets
or PgShardSets
with your own type:
services.AddSqlServices<byte>(this.Configuration);
//services.AddSingleton<ShardSets<byte>>();
services.AddSingleton<ShardSets>();


Last year, we had a great performance, taking home the award for highest seeded rookie team. But, being a relatively new team, we still need funds to have another outstanding performance at the competition! With your sponsorship, we can keep our team running by being able to pay for our robots. Donations of tools, parts, or access to workshops are also greatly appreciated!
Xtraordinary Sponsor
Website: Business Name
Marketing Packet: Business Name
Thank You Letter and Gift
Up to $100Website: Business Name
Marketing Packet: Business Name
Pit (Booth at Competition): Business Name
Thank You Letter and Gift
Up to $500Website: Business Name and Small Logo
Marketing Packet: Business Name
Pit (Booth at Competition): Business Name
Banner: Small Logo
Thank You Letter and Gift
Up to $1000 or access to workshop and tools for 1 hour a weekWebsite: Business Name and Big Logo
Marketing Packet: Business Name
Pit (Booth at Competition): Business Name
Banner: Big Logo
Sweatshirt: Logo
Thank You Letter and Gift
Up to $2500 or access to workshops and tools for 5 hours a weekWebsite: Business Name and Big Logo
Marketing Packet: Business Name
Pit (Booth at Competition): Logo
Banner: Big Logo
Robot: Logo
Sweatshirt: Logo
Thank You Letter and Gift
More than $5000 or unlimited access to workshops and toolsIf you are interested in sponsoring us, email contact@team6962.com!


 We haven’t reached it quite yet, but in a few days 6to5 and 6to5-core will have been downloaded half a million times, and in a month or so it will be over a million times.
There has been a bit of confusion in the past as to 6to5’s role in the JavaScript community, which can largely be attributed to its name.
6to5 was not born to die.
Even when the next edition of JavaScript is supported across all environments, the work that has gone into 6to5 will continue to serve an important role in the community.
From minifiers to beautifiers, from linters to code coverage instrumentors, compile-to-javascript languages and syntax extensions, code highlighters and on and on. There are two things that almost any tooling of any programming language depends on really heavily: parsers and transpilers.
The history of these tools in JavaScript has been long and sad. Everyone is constantly reimplementing the same things and it’s created an absolute mess. It’s also the number one reason new language features take a long time to roll out (i.e. “I love using Arrow Functions, but it breaks our code coverage”).
Luckily a lot of work is happening to improve this.
Recently a number of people from Mozilla, Esprima, The jQuery Foundation, Acorn, 6to5, ESLint, and others have come together to create ESTree, a standard upon which all parser and transpiler tooling will be based on.
We want for 6to5 to solve the transpiler story. If the community could rally around a tool that provides a solid foundation for dealing with a lot of shared issues then we’ll all be much better off.
That might sound a bit absurd and like a fairly lofty goal. Many will think it’s out of scope for something named “6to5”.
I guess it’d be a good idea to rename the project then!
6to5 is now Babel.
Babel will continue to serve as a JavaScript transpiler for using the very latest standards, but will also begin to open up its API for other tools. Anyone who has worked on the project internally knows that Babel is incredibly easy to work with.
We’re incredibly excited for the future and we hope that we can make an even bigger impact on the JavaScript community.
Always bet on JavaScript.
— The recently Babel team


What is it?
End device templates define a device that is not created (yet). It can be used to create a device or many devices at once. Templates allows for using common values for many devices, such as a device profile.
Who is it for?
End device templates are primarily targeted at device makers and service providers who are managing and onboarding large amounts of devices.
Typical use cases
- Create a batch of end devices with the same profile and incrementing
DevEUI
from a range - Convert vendor-specific end device data, such as serial numbers and provisioning data, to a device template
- Migrate end devices from a different LoRaWAN server stack
How does it work?
End device templates can be used to quickly create large amounts of end devices with common settings. Templates can be created from existing devices or converted from an input file. By executing templates, you can create devices directly. See Creating Templates, Converting Templates and Executing Templates.
Templates can also be be mapped with other templates to combine fields. For example, you can convert root key provisioning data to device templates and map that with a template containing the device profile from a device repository. See Mapping Templates.
Tooling supports assigning the LoRaWAN JoinEUI
and DevEUI
from a range automatically to create a template file that can be used in mapping or executing templates to bulk create devices. See Assigning EUIs.


URL: http://<IP_ADDRESS>:3000/{{page.title}} http://<IP_ADDRESS>/...
Tags:
Template:
Publish Unpublish Save Delete


I wanted to setup proxy server for browsing. Tried http://www.squid-cache.org/ felt cumbersome to configure though it has advanced features.
Finally decided to setup http://www.privoxy.org/. I assume you have personal server where all the requests are forwarded.
Installation
__ Server Config__
sudo apt-get install privoxy
sudo vim /etc/privoxy/config
look for listen-address and add ip:port listen-address <IP_ADDRESS>:8118
To enable logging for all requests uncomment debug 1(you will need to rotate log file using cronjob).Done with server config.
Client Config
Firefox users using ubuntu Edit -> Preferences->Network->Connection->Settings, choose manual proxy and enter ip address and port.
Chromium/Chrome uses system proxy, Sytem->Network look for Configure HTTP Proxy and enter details.
For command line use, add HTTP_PROXY=http://ip:port to ~/.bashrc.
See also
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.


Follow these steps to install Anaconda on your computer:
- Download the latest 64-bit Graphical Installer for Windows.
- Run the installer and click Next.
- Read the licensing terms and click the I Agree check box.
- Select the Just Me check box and click Next.
- Select the destination folder to install Anaconda in (make sure this path does not contain spaces) and click Next.
- In the Advanced Options, enable the Add Anaconda3 to my PATH environment variable and Register Anaconda3 as my default Python 3.x check boxes and then click Install.
- After the installation has completed, restart your computer to make sure changes are propagated.
- Open a terminal and run:


Manage virtual hosts¶
A virtual host combines Apache virtual host functionality with publisher mapping within GEE Server so that you can publish databases securely. You create and register a virtual host in GEE Server, assign a security protocol to it, and then associate multiple databases, including portable globes and maps, with that single virtual host. Add another virtual host when you want to use different authentication and to associate different databases.
For example, you may have one or two security protocols but many databases and portable files to publish. Once you have created a virtual host for each security protocol and set up the appropriate authentication, you can associate different databases and portable globes and maps with the different virtual hosts, depending on the security protocols you need to apply.
You can also use the default virtual host configurations provided with GEE Server.
Tip
See Configure GEE Server 5.1.0 for SSL/HTTPS to add virtual hosts for HTTPS servers.
See geserveradmin in the Command reference for information about all the virtual host commands.
Note
You may configure a virtual server in Apache using
standard virtual host directives but it won’t be capable of
hosting a GEE database until it is registered using
geserveradmin
, as described in Create and register a
virtual host in GEE Server.
- Default virtual hosts
- Create and register a virtual host in GEE Server
- Configure virtual hosts with a custom port number
- Associate a database with a virtual host
- Naming virtual hosts
Default virtual hosts
By default, GEE Server has two registered virtual hosts: public and secure. The secure virtual host is a protected virtual host with basic authentication. The default credentials are:
- Username: geeuser
- Password: geeuser
To reset the username and password:
sudo /opt/google/gehttpd/bin/htpasswd
/opt/google/gehttpd/conf.d/virtual_servers/.vhpasswd geeuser
The public virtual host is unprotected and does not require any authentication.
Create and register a virtual host with digest authentication
You create and register a virtual host using the
geserveradmin --addvh
command. This action results in a
location-based virtual host for which you can configure
authentication and create a password for a given user name. The
following example shows how to set up digest authentication, one
of the standard authentication types (AuthType
) provided by
Apache server. See Apache HTTP Server 2.2
htdigest.
Tip
In GEE 4.4, virtual hosts were previously called virtual servers. Now, in GEE 5.x, virtual hosts specify a security protocol only and can also be associated with multiple published globes and maps. This change decouples the task of setting up security protocols from publishing maps and globes.
To create and register a virtual host with digest authentication:
Create and register a virtual host in GEE Server using the
geserveradmin
command:/opt/google/bin/geserveradmin --addvh digest [--vhurl <url>] [--vhcachelevel <level>]
geserveradmin
creates the default location-based virtual hostdigest_host.location
in/opt/google/gehttpd/conf.d/virtual_servers
and registers it in GEE Server.The
vhurl
specifies the location of the virtual host. It must match the corresponding server-side virtual host configuration.Optionally, modify virtual host settings in
digest_host.location
to set up authentication.
To set up digest authentication:
Edit the
digest_host.location
file to set up the authentication configuration:cd /opt/google/gehttpd/conf.d/virtual_servers sudo vi digest_host.location
Add the following content to the
digest_host.location
file:# The digest virtual host. RewriteEngine on <Location /digest_host/> SetHandler fdb-handler AuthType Digest AuthName "Private" AuthDigestProvider file AuthUserFile /opt/google/gehttpd/conf.d/virtual_servers/.htdigest Require valid-user </Location>
Create the password with a given user name using the password path that you specified in the
digest_host.location
file:sudo htdigest -c /opt/google/gehttpd/conf.d/virtual_servers/.htdigest Private username sudo chmod 755 /opt/google/gehttpd/conf.d/virtual_servers/.htdigest #Enter password twice at prompt
Restart
geserver
after virtual host settings have been modified.sudo /etc/init.d/geserver restart
Tip
A virtual host can also be configured for SSL/HTTPS. See Configure GEE Server 5.1.0 for SSL/HTTPS.
Configure virtual hosts with a custom port number
You may need to configure a virtual host to use a custom port setting
number, commonly to differentiate from any default port
(http:80
, https:443
) you may be using or when
standard port numbers are being used for other purposes. With some
edits to your Apache configuration files, you can set up custom
port numbers for any location-based virtual host.
When creating a location-based virtual host with a custom port
number, you need to rename and manually include the newly created
location file, *.location
or *.location_ssl
, in
<Apache path>/conf.d/virtual_servers/
into the corresponding
<Virtual Host>
section of the Apache configuration file and
restart GEE server.
To add a virtual host with a custom port number configured for SSL:
Run
geserveradmin
on the command line, e.g., adding a virtual hostmy_custom_port_ssl
with a virtual host URL and custom port number:# geserveradmin —addvh —ssl my_custom_port_ssl —vhurl https://myservername.com:4343
Change the extension of the newly created
my_custom_port_ssl.location_ssl
configuration file to differentiate from any default port (443) SSL virtual hosts you may have configured:<Apache path>/conf.d/virtual_servers/my_custom_port_ssl.location_ssl_custom
Then manually add the Include directives for your custom port virtual host to the SSL configuration file for Apache server,
/opt/google/gehttpd/conf/extra/httpd-ssl.conf
:<VirtualHost _non_default_:4343> # Include all SSL location-based virtual servers with custom port 4343. Include conf.d/virtual_servers/*.location_ssl_custom </VirtualHost>
Restart GEE Server:
sudo /etc/init.d/geserver restart
Associate a database with a virtual host
To associate a database or portable globe or map with a virtual host, you specify the virtual host when you publish in GEE Server.
See Publishing databases and portables.
Naming virtual hosts
Virtual hosts on GEE Server are name-based, meaning that you can have multiple names that serve assets running on a single IP address. With name-based virtual hosting, GEE Server relies on the client to report the host name as part of the HTTP headers. Using this method, many different hosts can share the same IP address.
Although usage of the virtual host names is hidden, reusing the name for other assets being served can cause conflicts. To that end, GEE Server checks the target path when you create a virtual host against reserved words and virtual host paths already registered in system, but does not check the virtual host name itself. Here is the list of reserved words that we check against: “fdb”, “htdocs”, “admin”, “cutter”, “earth”, “icons”, “js”, “maps”, “portable”, “shared_assets.”
Learn more


Do one thing and do it extremely well.
Tell your story with creative excellence.
{% endblock %}


You have propably heard of Kostas, it's a typical Greek name. Well Kostas is here to help you, you will learn with him how to speak basic Greek.
He will guide you from how to start a basic conversation, to how to order coffee, ask for directions, say how much you enjoy drinking ouzo and much more.
Ask Kostas!English: Good morning!
Greeklish: Kalimera!
Greek: Καλημέρα!
English: Good afternoon!
Greeklish: Kalispera!
Greek: Καλησπέρα
English: What is your name?
Greeklish: Pos se lene?
Greek: Πώς σε λένε?
English: My name is Jack.
Greeklish: To onoma mou einai Jack.
Greek: Το όνομα μου είναι Jack.
English: Where are you from?
Greeklish: Apo pou eisai?
Greek: Από που είσαι?
English: I am from England.
Greeklish: Eimai apo tin Agglia.
Greek: Είμαι από την Αγγλία.
English: What do you study?
Greeklish: Ti spoudazeis?
Greek: Τι σπουδάζεις?
English: I study Maths.
Greeklish: Spoudazw Mathimatika.
Greek: Σπουδάζω μαθηματικά.
English: Where do you live?
Greeklish: Pou meneis?
Greek: Που μένεις?
English: I live in Athens.
Greeklish: Menw stin Athina.
Greek: Μένω στην Αθήνα.
English: I like Greece.
Greeklish: Mou aresei i Ellada.
Greek: Μου αρέσει η Ελλάδα.
English: You are beatiful.
Greeklish: Eisai omorfi.
Greek: Είσαι όμορφη.
English: You are handsome.
Greeklish: Eisai omorfos.
Greek: Είσαι όμορφος.
English: Let's go for a coffee.
Greeklish: Pame gia enan kafe.
Greek: Πάμε για έναν καφέ.
English: I want a double espresso.
Greeklish: Thelw enan diplo espresso.
Greek: Θέλω έναν διπλό εσπρέσο.
English: I will drink a greek coffee.
Greeklish: Tha piw enan elliniko kafe.
Greek: Θα πιω έναν ελληνικό καφέ.
English: Where is the bathroom?
Greeklish: Pou einai i toualeta?
Greek: Που είναι η τουαλέτα?
English: I like filter coffee.
Greeklish: Mou aresei o kafes filtrou.
Greek: Μου αρέσει ο καφές φίλτρου.
English: Can I have a water please?
Greeklish: Mporw na exw ena nero parakalw?
Greek: Μπορώ να έχω ένα νερό παρακαλώ?
English: Can I have some biscuits please?
Greeklish: Mporw na exw liga biskota parakalw?
Greek: Μπορώ να έχω λίγα μπισκότα παρακαλώ?
English: The bill please!
Greeklish: Ton logariasmo parakalw!
Greek: Τον λογαριασμό παρακαλώ!
English: Go straight ahead.
Greeklish: Pigene eftheia.
Greek: Πήγαινε ευθεία.
English: Turn left.
Greeklish: Stripse aristera.
Greek: Στρίψε αριστερά
English: Turn right.
Greeklish: Stripse deksia.
Greek: Στρίψε δεξιά.
English: How to reach the urban train station?
Greeklish: Pws ftanw stin stasi tou metro?
Greek: Πώς φτάνω στην στάση του μετρό?
English: How can I go to Athens?
Greeklish: Pws mporw na ftasw stin Athina?
Greek: Πώς μπορώ να φτάσω στην Αθήνα?
English: Where is the airport?
Greeklish: Pou einai to aerodromio?
Greek: Που είναι το αεροδρόμιο?
English: I need some directions.
Greeklish: Xreiazomai odigies.
Greek: Χρειάζομαι οδηγίες.
English: Thank you for your advice!
Greeklish: Euxaristw gia tis sumboules!
Greek: Ευχαριστώ για τις συμβουλές!
English: Let's have a meal!
Greeklish: As fame ena geuma!
Greek: Ας φάμε ένα γεύμα!
English: I want to order.
Greeklish: Thelw na parageilw.
Greek: Θέλω να παραγγείλω.
English: For main dish I'll have a steak.
Greeklish: Ws kuriws piato tha faw mprizola.
Greek: Ως κυρίως πιάτο θα φάω μπριζόλα.
English: I would like a salad.
Greeklish: Tha ithela mia salata.
Greek: Θα ήθελα μια σαλάτα.
English: I want some French fries.
Greeklish: Thelw tiganites patates.
Greek: Θέλω τηγανητές πατάτες.
English: I will drink some red wine.
Greeklish: Tha piw kokino krasi.
Greek: Θα πιώ κόκκινο κρασί.
English: I would like some dessert.
Greeklish: Tha ithela epidorpio.
Greek: Θα ήθελα επιδόρπιο.
English: The bill please!
Greeklish: Ton logariasmo parakalw!
Greek: Τον λογαριαμό παρακαλώ!
English: Can I borrow your sun cream?
Greeklish: Mporw na daneistw to antiliako sou?
Greek: Μπορώ να δανειστώ το αντηλιακό σου?
English: Is swimming allowed?
Greeklish: Epitrepete to kolumpi?
Greek: Επιτρέπεται το κολύμπι?
English: How deep is the sea?
Greeklish: Poso batheia einai i thalasa?
Greek: Πόσο βαθειά είναι η θάλασσα?
English: You have a nice body!
Greeklish: Exeis oraio soma!
Greek: Έχεις ωραίο σώμα!
English: I am sunbathing.
Greeklish: Kanw iliotherapeia.
Greek: Κάνω ηλιοθεραπεία.
English: I like your swimsuit
Greeklish: Mou aresei to magio sou.
Greek: Μου αρέσει το μαγιό σου.
English: I want a coctail please.
Greeklish: Thelw ena kokteil parakalw.
Greek: Θέλω ένα κοκτέιλ παρακαλώ.
English: I want an ice cream please.
Greeklish: Thelw ena pagoto parakalo.
Greek: Θέλω ένα παγωτό παρακαλώ.


How do you suppose the person in this picture feels?
How do you suppose the person in this picture feels?
Depression and anxiety are a big problem in our country.
Jill couldn't be happier about the experience she had with our company.
Here is a nice button you can click:
Oh no, now you've gone and done it!!
Here is a nice button you can click:
Oh no, now you've gone and done it!!


Lead Team Preferences:
Your Name:
Your current LT:
Tick this box to enable assignment to your LT (ignore if they're not in LT)
The LT you were assigned to for the first quarter:
List your preferences of people to be assigned to:
Remaining Options:
List your preferences for the pillar projects:


The COVID-19 pandemic has interrupted the day-to-day life of all Sri Lankans. At the time of writing, the entire country is in lockdown. As of now, due to strict interventions, the disease spread seems to have slowed down. However, it is not completely clear what we should expect in the future, especially when interventions change. To shed some light, we have developed an interactive tool to model the spread of COVID-19 in Sri Lanka using a classical SEIR (Susceptible → Exposed → Infected → Removed (i.e recovered and fatal) infectious disease model. We also modified the model to account for the Sri Lankan setting.
In our model, the entire population is divided into the following classes:
Susceptible (\(S\)) individuals contract the disease from infected individuals in classes \(I_1, I_2,\) and \(I_3\). We assume that severe (\(I_2\)) and critical (\(I_3\)) cases do not infect others after hospitalization, due to higher caution and preventive measures in hospitals. Susceptible individuals then move to the exposed class (\(E\)). After an incubation period (~5 days) in \(E\), they move to a mildly symptomatic class (\(I_1\)).
According to literature, roughly 81% of the population recover after mild symptoms (in ~6 days) and move on to the recovered class (\(R\)). The remaining 19% in \(I_1\) develop severe symptoms and move to the \(I_2\) class. These severe cases require hospitalization. About three-fourths in \(I_2\) recover after hospitalization (in ~4 days), but the remaining one-fourth develop critical symptoms and require ICU treatment. About 40% of the critical cases are fatal and the rest recover after ICU treatment (in ~10 days). These numbers were derived from the published literature of the COVID-19 spread in China, and were used to calculate the rate parameters, \(a, \gamma_1, \gamma_2, \gamma_3, p_1, p_2,\) and \(\mu\).
While mild infections do not require hospitalization, according to our friends working at the ground level in Sri Lanka, many mild cases (not all) are also hospitalized. However, a stringent testing criteria is employed and therefore not all potential \(I_1\) cases are tested. Therefore, we further decomposed the \(I_1\) and \(R\) classes to two sub-categories: diagnosed (\(I_{1D}, R_D\)), and undiagnosed or hidden (\(I_{1H}, R_H\)). The parameter \(c\) is the fraction that gets diagnosed and moves to \(I_{1D}\) from \(E\). A hidden \(I_{1H}\) case can either move to the \(I_2\) stage and get diagnosed, or recover and move to a hidden recovered (\(R_H\)) class. These hidden cases are never reported, but at the \(I_{1H}\) stage they still contribute to the spread of the virus.
Next, we had a significant number of infected individuals (tested positive) who entered the country from abroad, but were strictly quarantined before they could infect others. We added another sub-category for those quarantined index (coming from abroad) individuals (\(I_{1Q}\)). We assumed that all these cases enter the country at the mildly infected stage \(I_1\), although it is possible that they enter duing the exposed (\(E\)) period as well. When we run the model, we add these cases to the population based on the date they tested positive.
Finally, we calibrated the model parameters \(\beta_1\) and \(c\) using the daily diagnosed cases in Sri Lanka. We also used the individuals in the \(I_3\) class and the \(R_D\) class (diagnosed and recovered) to validate the calibration at later dates, when those numbers became available.
Situation reports - Epidemiology unit, Ministry of Health, Sri Lanka
COVID-10 modeling app by Allison Hill
This model was developed by Dushan Wadduwage (wadduwage@fas.harvard.edu), Savithru Jayasinghe (savithru@mit.edu), and Suneth Agampodi (suneth.agampodi@yale.edu).
The Javascript code behind this web application is available on Github under an MIT license.


Toggle navigation
Meetup
Find
Start
Sign Up
Log in
English
Full Width Page
Sidebar Page
FAQ
404
Pricing Table
Login
Not registered with us yet?
Sign up
Username:
Password:
Forgot your password?
Keep me signed in
Log in


| |
SECTION
II
No. of Questions :
45
|
| |
DIRECTIONS
for questions 51 to 58: Choose the correct option. |
| Question
51. |
The
fifth term of an arithmetic progression is 16 and the ninth is 44.
Find its seventeenth term.
A.
86
B.
100
C.
12
D.
Cannot be determined
|
| Question
52. |
2
trains moving in opposite directions find themselves on the same track.
The slower train, moving at 81 km/hr sports the faster train, moving at
99 km/hr, at 10:46 am., when they are only 2250 mts. Apart.
The driver of the slower train comes to an immediate halt but the faster
train continues moving. At what time does the accident take
place?
A.
10:47:40
B.
40:48:10
C.
10:49:00
D.
10:50:22
|
| Question
53. |
From
a cube of side 9 cms, how many cubes can be formed of size
45mm?
A. 4
B. 8
C. 16
D. 32
|
| Question
54. |
In
a trapezium, the diagonals intersect at point O. The ratio of the length
of one of the diagonals from on vertex of the trapezium to the point O
to its entire length is 2:5. Find the ratio of its parallel sides
(smaller side:larger side).
A.
2:5
B.
2:3
C.
2:7
D.
5:7
|
| Question
55. |
The
8th digit of (303)3 is
A.
3
B.
7
C.
9
D.
1
|
| Question
56. |
If
xa +yb = zc, what is z, if a=bc?
A.
c(xc+y)/b
B.
a(xc+y)/c2
C. b(x+yc)/c
D. a(x+yc)c2
|
| Question
57. |
If the side of a cube is twice the radius of a sphere,
which of the following is true?
I. the cube completely fits into
the sphere
II. the sphere completely its into the cube
A.
I only
B.
II only
C.
both I and II
D.
Neither I nor II
|
| Question
58. |
‘A’
takes twice as much time as “B” does to complete a piece of work
but gets paid half of what ‘B’ gets paid for the same work. The
ratio of their hourly wages is (A:B).
A.
1:1
B.
1:2
C.
1:4
D.
4:1
|
| |
DIRECTIONS
for questions 59 to 64: Refer to the following data.
In
3 comprehensive tests taken by IMS students for part B, eight good students
A,B,C,D,E,F,G and H were identified and ranked . For each of the
tests, the following observations were made
I. no.2 students share the same rank
II. A has a better rank compared to H
III. C is exactly one rank better than G
IV. There is only one student ranked between B and F. this
student has a lower rank than A
V. D and G have a better rank than A
VI. E tops the ranking
|
| Question
59. |
Which of the following cannot have the
lowest rank
A.
B
B. F
C. H
D. I and II |
| Question
60. |
Who
is ranked fifth?
A. G
B. D
C. A
D. Insufficient Data
|
| Question
61. |
How
many positions can G occupy?
A. 1
B. 2
C. 3
D. 4
|
| Question
62. |
From
the given data, how many ranks are definitely determined?
A. 3
B. 4
C. 5
D. 6 |
| Question
63. |
If
‘H’ is ranked 7the what is D’s rank
A. 2
B. 3
C. 5
D. Insufficient data
|
| Question
64. |
Which
of the following arrangements is valid?
A.
E D G C H A B F
B.
E C G D A F H B
C.
E D C G B A F H
D.
E D B C G A F H
|
| |
DIRECTIONS
for questions 65 to 70: Choose the correct option. |
| Question
65. |
A
cylinder of base radius 5 cm and height 58 cm is inclined in such
a manner that the smallest vertical distance from the ground to its top
surface is 29 cms. Find the angle of inclination
A.
15°
B.
30°
C.
45°
D.
60°
|
| Question
66. |
If
‘MARY’=’Are bright stars visible. ‘Which of the following will answer
the question
A.
RAMY
B.
YMAR
C.
ARMY
D.
Both 2 and 3
|
| Question
67. |
A
point on the largest side of a triangle is equidistant from the vertices
of that side. A line passing through this point, and parallel to
the smallest side intersects the longest and second longest side
at a distance 17 cms apart. Find the length of the smallest side.
A.
8.5
B.
34
C.
51
D.
Can’t be determined
|
| Question
68. |
Which
is the largest 6 digit number that is a multiple of 9 but leaves
a remainder of 2 when divided by 11?
A.
999999
B.
999992
C.
999891
D.
None of these
|
| Question
69. |
In
how many ways can you arrange the letters of ‘APTITUDE’ so as to form
words that start and end with a vowel?
A.
64
B.
128
C.
144
D.
196
|
| Question
70. |
If
the speed of a boat when travelling downstream is three times its speed
when travelling upstream, then the speed of the current is what % of the
speed of the boat in still water
A.
50%
B.
66 2/3 %
C.
75%
D.
Can’t be determined
|
| |
DIRECTIONS
for questions 71 to 75: Refer to the following data
A,B,C,D,
and E belong to multinational companies in 5 different countries.
They attend an international conference in New York, however, communication
between them becomes a problem on account of the following restrictions.
I. A speaks only German and English
II. B speaks only Spanish, Italian and French
III. C speaks only German
IV. D speaks English and Italian
V. E speaks French and German
|
| Question
71. |
Which
of the following groups can communicate with an interpreter?
A.
A,D,E
B.
B,D,E
C.
A,C,E
D.
A,B,E
|
| Question
72. |
In
all how many groups of 3 is possible to form which will not require an
interpreter?
A. 1
B. 2
C. 4
D. 6 |
| Question
73. |
If
B and C have to communicate, who can serve as an Interpreter?
A. A
B. D
C. E
D. No Interpreter
required
|
| Question
74. |
How
many pairs can be formed where delegates can communicate with each other
without a third person assisting them?
A. 3
B. 4
C. 5
D. 6 |
| Question
75. |
In
the previous question, if ‘C’ were to speak one more language, which
language should it be so as to increase the number of pairs by maximum
possible value?
A.
English
B.
French
C.
Italian
D.
Either A, B,or C
|
| Question
76. |
If
2 is subtracted from a number, it becomes a perfect square. Which
of the following cannot be the l st digit of the original number?
A. 3
B. 6
C. 8
D. 0 |
| Question
77. |
A
sphere is melted and half the liquid is used to form 11 equal cubes, whereas
the remaining half is used to form 7 equal smaller spheres. The
ratio of the side of the cube to the radius of the new small spheres is
A.
1:Ö3
B.
2:Ö3
C.
2Ö3:1
D.
Ö3:Ö2
|
| Question
78. |
The
question x 2+ yx+ 16 has only one root. What is ‘y’?
A.
-4
B. 4
C. 8
D. Can't be
determined
|
| Question
79. |
71x
62x53x4 4equals
A.
8064000
B.
6428500
C.
9826520
D.
1246400
|
| Question
80. |
After
elections to 288 assembly seats, the spokesperson of a party observed
that had they obtained 16% more seats, they would then have had a simple
majority. How many seats has the party obtained
A. 110
B. 120
C. 125
D. 160
|
| Question
81. |
From
a bunch of 5 keys, 3 right keys have to be used to open a lock,
such that the first opens the lock and allows the second key to be used,
and the second key allows the third be used. What are the chance
of opening the lock in a random selection of 3 keys?
A.
1/30
B.
1/60
C.
1/120
D.
1/80
|
| Question
82. |
If
a/b> c/d then
A.
log a + log c > log b-logd
B.
log a+ logd> logb +logc
C.
log a+ log c = log b+ logd
D.
None of these
|
| Question
83. |
The
difference in the circumference of 2 circles is a multiple of 6p.
Which of the following statement is/are true?
i ) If the larger circle has a radius that is a multiple
of 3, then the smaller circle cannot have a radius that is multiple
of 3.
ii) If the smaller circle has a radius that is
a multiple of 3, then the larger circle cannot have a radius that
is a multiple of 3.
iii) The smaller circle cannot have a radius that is half the radius of
the larger circle
A.
i and ii only
B.
ii and iii only
C.
iii only
D.
None of them is true
|
| Question
84. |
When
you have an amount > 100 in hand, you deposit 20% of the
amount. When your in hand balance < 80 you withdraw 25%
of in-hand balance. What will be the amount in hand at the end of
the 19th transaction, if you had started with Rs.125
in-hand?
A.
80
B.
100
C.
125
D. 156.25 |
| Question
85. |
Three
years ago, A’s age was 4/5 times B’s age. Six years hence,
the ratio of their ages will be 7:8. Find their present ages.
A.
12,15
B.
15,18
C.
24,27
D.
36,48
|
| Question
86. |
Three
partners inverted capital in the ratio 1:3:7. The time period for
which each of them invested was in a ratio of the reciprocals of the amount
invested. Find the share of the partner who brought in the lowest
capital, if profit is Rs.900.
A.
100
B.
300
C.
81
D.
None of these
|
| Question
87. |
A
bank deposit earns Rs. 1200 interest in the 2nd year and Rs.1380
interest in the third year. How much will it earn in the 4th
year?
A.
1500
B.
1587
C.
1460
D.
1650
|
| Question
88. |
If
13 x2-15x+181 > 3x2-15x+18 then
A.
-3/2<x<3/2
B.
2<x<3
C.
x<2 or x>3
D.
Statement is self-contradictory
|
| |
DIRECTIONS
for question 89 to 92: Refer to the following data.
x
y = xy/z
z = (x2-y2)/(x+y) |
| Question
89.
|
What is 13 x (30
17) ?
A.
169
B.
510
C.
1620
D.
None of these
|
| Question
90. |
If
739
543 = -(x
739), what is ‘x’ ?
A.
543
B. -543
C. 196
D. -196
|
| Question
91. |
If
a
b is a natural number and either ‘a’ is odd and
‘b’ even or vice-versa, which of the following is true?
A.
a
b is always even
B.
a
b is always odd
C.
a
b could be either even or odd
D.
a
b is odd if a>b
|
| Question
92. |
If
‘a’ and ‘b’ are both even, then a
b will always be
A.
always even
B.
either even or odd
C.
always odd
D.
none of these
|
| |
DIRECTIONS
for questions 93 to 95: Choose the correct option |
| Question
93. |
A
train 170 m long is moving at 72km/hr. If it does not halt at Chinchpokli
station whose platform is 150 m long, how long will it take to cross the
platform?
A.
10 sec
B.
18 sec
C.
16 sec
D.
24 sec
|
| Question
94. |
In
an election between 2 candidates, 80% of the population cast their votes.
The losing candidate secured votes from 24% of the population .
If he lost by 15,000 votes, how much did the winner poll?
A.
25,000
B.
26,250
C.
25,750
D.
28,000
|
| Question
95. |
A
number is multiplied by 7, and then seven is added to the product.
If on dividing by 19, we get the quotient as a natural number, the smallest
such number is
A.
7
B.
18
C.
19
D.
20
|
| |
answers
scores next |


Stately, plump Buck Mulligan came from the stairhead, bearing a bowl of lather on which a mirror and a razor lay crossed. A yellow dressinggown, ungirdled, was sustained gently behind him on the mild morning air. He held the bowl aloft and intoned: —Introibo ad altare Dei. Halted, he peered down the dark winding stairs and called out coarsely: —Come up, Kinch! Come up, you fearful jesuit! Solemnly he came forward and mounted the round gunrest. He faced about and blessed gravely thrice the tower, the surrounding land and the awaking mountains. Then, catching sight of Stephen Dedalus, he bent towards him and made rapid crosses in the air, gurgling in his throat and shaking his head. Stephen Dedalus, displeased and sleepy, leaned his arms on the top of the staircase and looked coldly at the shaking gurgling face that blessed him, equine in its length, and at the light untonsured hair, grained and hued like pale oak.
Buck Mulligan peeped an instant under the mirror and then covered the bowl smartly. —Back to barracks! he said sternly. He added in a preacher's tone: —For this, O dearly beloved, is the genuine Christine: body and soul and blood and ouns. Slow music, please.  One moment. A little trouble about those white corpuscles. Silence, all. He peered sideways up and gave a long slow whistle of call, then paused awhile in rapt attention, his even white teeth glistening here and there with gold points. Chrysostomos. Two strong shrill whistles answered through the calm. —Thanks, old chap, he cried briskly. That will do nicely. Switch off the current, will you? He skipped off the gunrest and looked gravely at his watcher, gathering about his legs the loose folds of his gown. The plump shadowed face and sullen oval jowl recalled a prelate, patron of arts in the middle ages. A pleasant smile broke quietly over his lips. —The mockery of it! he said gaily. Your absurd name, an ancient Greek!
He pointed his finger in friendly jest and went over to the parapet, laughing to himself. Stephen Dedalus stepped up, followed him wearily halfway and sat down on the edge of the gunrest, watching him still as he propped his mirror on the parapet, dipped the brush in the bowl and lathered cheeks and neck.  —My name is absurd too: Malachi Mulligan, two dactyls. But it has a Hellenic ring, hasn't it? Tripping and sunny like the buck himself. We must go to Athens. Will you come if I can get the aunt to fork out twenty quid? He laid the brush aside and, laughing with delight, cried: —Will he come? The jejune jesuit! Ceasing, he began to shave with care. —Tell me, Mulligan, Stephen said quietly. —Yes, my love? —How long is Haines going to stay in this tower? Buck Mulligan showed a shaven cheek over his right shoulder. —God, isn't he dreadful? he said frankly. A ponderous Saxon. He thinks you're not a gentleman.  Bursting with money and indigestion. Because he comes from Oxford.  He can't make you out. O, my name for you is the best: Kinch, the knife-blade. He shaved warily over his chin. —He was raving all night about a black panther, Stephen said. Where is his guncase? —A woful lunatic! Mulligan said. Were you in a funk? —I was, Stephen said with energy and growing fear. Out here in the dark with a man I don't know raving and moaning to himself about shooting a black panther. You saved men from drowning. I'm not a hero, however. If he stays on here I am off. Buck Mulligan frowned at the lather on his razorblade. He hopped down from his perch and began to search his trouser pockets hastily. —Scutter! he cried thickly. He came over to the gunrest and, thrusting a hand into Stephen's upper pocket, said: —Lend us a loan of your noserag to wipe my razor. Stephen suffered him to pull out and hold up on show by its corner a dirty crumpled handkerchief. Buck Mulligan wiped the razorblade neatly. Then, gazing over the handkerchief, he said: —The bard's noserag! A new art colour for our Irish poets: snotgreen. You can almost taste it, can't you? He mounted to the parapet again and gazed out over Dublin bay, his fair oakpale hair stirring slightly. —God! he said quietly. Isn't the sea what Algy calls it: a great sweet mother? The snotgreen sea. The scrotumtightening sea. Epi oinopa ponton. Ah, Dedalus, the Greeks! I must teach you. You must read them in the original. Thalatta! Thalatta! She is our great sweet mother. Come and look. Stephen stood up and went over to the parapet. Leaning on it he looked down on the water and on the mailboat clearing the harbourmouth of Kingstown. —Our mighty mother! Buck Mulligan said. He turned abruptly his grey searching eyes from the sea to Stephen's face.  That's why she won't let me have anything to do with you. —Someone killed her, Stephen said gloomily.  I'm hyperborean as much as you.  And you refused. There is something sinister in you.... He broke off and lathered again lightly his farther cheek. A tolerant smile curled his lips. —But a lovely mummer! he murmured to himself. Kinch, the loveliest mummer of them all! He shaved evenly and with care, in silence, seriously. Stephen, an elbow rested on the jagged granite, leaned his palm against his brow and gazed at the fraying edge of his shiny black coat-sleeve. Pain, that was not yet the pain of love, fretted his heart.  Across the threadbare cuffedge he saw the sea hailed as a great sweet mother by the wellfed voice beside him. The ring of bay and skyline held a dull green mass of liquid. A bowl of white china had stood beside her deathbed holding the green sluggish bile which she had torn up from her rotting liver by fits of loud groaning vomiting. Buck Mulligan wiped again his razorblade. —Ah, poor dogsbody! he said in a kind voice. I must give you a shirt and a few noserags. How are the secondhand breeks? —They fit well enough, Stephen answered. Buck Mulligan attacked the hollow beneath his underlip. —The mockery of it, he said contentedly. Secondleg they should be.  I have a lovely pair with a hair stripe, grey. You'll look spiffing in them. I'm not joking, Kinch.  —Thanks, Stephen said. I can't wear them if they are grey. —He can't wear them, Buck Mulligan told his face in the mirror. Etiquette is etiquette. He kills his mother but he can't wear grey trousers. He folded his razor neatly and with stroking palps of fingers felt the smooth skin. Stephen turned his gaze from the sea and to the plump face with its smokeblue mobile eyes. —That fellow I was with in the Ship last night, said Buck Mulligan, says you have g. p. i. He's up in Dottyville with Connolly Norman. General paralysis of the insane! He swept the mirror a half circle in the air to flash the tidings abroad in sunlight now radiant on the sea. His curling shaven lips laughed and the edges of his white glittering teeth. Laughter seized all his strong wellknit trunk. —Look at yourself, he said, you dreadful bard! Stephen bent forward and peered at the mirror held out to him, cleft by a crooked crack. Hair on end. As he and others see me. Who chose this face for me? This dogsbody to rid of vermin. It asks me too. —I pinched it out of the skivvy's room, Buck Mulligan said. It does her all right. The aunt always keeps plainlooking servants for Malachi. Lead him not into temptation. And her name is Ursula. Laughing again, he brought the mirror away from Stephen's peering eyes. —The rage of Caliban at not seeing his face in a mirror, he said. If Wilde were only alive to see you! Drawing back and pointing, Stephen said with bitterness: —It is a symbol of Irish art. The cracked lookingglass of a servant. Buck Mulligan suddenly linked his arm in Stephen's and walked with him round the tower, his razor and mirror clacking in the pocket where he had thrust them. —It's not fair to tease you like that, Kinch, is it? he said kindly. God knows you have more spirit than any of them. Parried again. He fears the lancet of my art as I fear that of his. The cold steel pen. —Cracked lookingglass of a servant! Tell that to the oxy chap downstairs and touch him for a guinea. He's stinking with money and thinks you're not a gentleman.  God, Kinch, if you and I could only work together we might do something for the island. Hellenise it. Cranly's arm. His arm. —And to think of your having to beg from these swine. I'm the only one that knows what you are. Why don't you trust me more? What have you up your nose against me? Is it Haines? If he makes any noise here I'll bring down Seymour and we'll give him a ragging worse than they gave Clive Kempthorpe.


Emotional intelligence (EQ) is an active and ethical awareness of your feelings and emotions as well as others'. By active and ethical, I refer to the actual use of EQ to inform how you guide and take responsibility for your thinking and activities in relation to this awareness. For me, emotional intelligence is ideally a form of 'collective mindfulness'.
IQ stands for intelligence quotient and can be measured by a score taken from tests to assess a rigid and old-school measure of logic and externally (rather than internal) analytical 'intelligence'.
Emotional intelligence is important for creative, dynamic and collective approaches to learning and development. As an individual, EQ allows you to take responsiblity for your internal growth and collectively, you will enhance your relationships with your communities. Your measure of success will not be based on static tests, but will be based on the ever-changing world around you.
We are not individual islands isolated by IQ, we are connected by oceans of relationships bravely navigated by a dynamic view of EQ.


The best hampers for Christmas 2019
by Precious AdesinaIt wouldn't be Christmas without a giant hamper full of delicious food and drinks. And, we believe the bigger, the hamper the better.
The variety of hampers that you can get will leave you spoilt for choice, whether it's chocolate, wine, cheese or fruit or perhaps a mixture of lots of luxury items. Though, if you want to try making your own, you can read our guide to making the perfect hamper.
In our guide below, you'll find everything from selections of Champagne to breakfast hampers - we've got everything you heart could possibly desire for a truly unique gift.
Here is 16 of the best Christmas hampers for 2019 - and where your can buy them in the UK.
1. Cartwright & Butler Pocklington Hamper
This hamper from Yorkshire based Cartwright & Butler is filled with some of its most delicious products, including preserves, chutneys, cheese biscuits and tea and coffee. But what we like best is the cool blue metal hamper. One for those who prefer a sightly more Scandi sleek aesthetic.
2. The Magic of Christmas Hamper
Presented in a black rattan basket, you'll find a great mixture of sweet and savoury treats like mince pies, fudge, nuts and cheddar biscuits. And there's a bottle of Prosecco for good measure.
3. Charbonnel et Walker Luxury Celebration Hamper
Who doesn't love chocolate and bubbly? We certainly do. Indulge in a fine selection of chocolates including ones with interesting combinations of flavours such as sea salt, strawberry and Champagne and wash it down with a glass of Moet.
4. Fortnum & Mason Soirée Hamper
What we love about this hamper is that it was put together with the excitement of a soirée in mind. All that music and stimulating conversation is recreated in food form with a selection of wine, tea, biscuits and preserves. There's something for everyone and you won't be able to help feeling festive.
5. John Lewis & Partners Chelsea Hamper
You'll find all manner of delicacies in this lidded picnic basket, which is of course reusable. The handmade truffles sound too good to be true as do the milk chocolate macaroons. Wash it all down with a glass of the Tooma River Reserve Chardonnay/Shiraz.
6. Harrods The Belgravia Hamper
You'd expect a Harrods hamper to be special and this Belgravia collection is really rather luxurious. You'll find bottles of Grillo and Tempranillo alongside Darjeeling tea, salted hazelnut praline shortbread, rigatoni pasta, a rich tomato and chilli sauce and passion fruit caramel truffles, all packed in a stylish branded wicker basket.
7. Bettys The Ilkley Hamper Hamper
Anyone who has been to a Bettys Tearoom in Yorkshire will already know the delights of this legendary bakers and if you haven't, then this Bettys hamper should give you an idea. With a Yorkshire tea fruit cake, milk chocolate Langues De Chat and some buttery shortbread amongst other treats. Perfect for afternoon tea lovers.
8. Harrods Cartwright & Butler Hamper
This hamper couldn't be more extensive if it tried. You'll be discovering new biscuits, cakes, chutneys, tea, coffee for a very long time.
9. Harrods Champagne Trio
We wish every hamper was like this one. The one comes with a selection of three different Champagnes, perfect for celebrating the festive season. According to Harrods, the classic Grande Cru, a Rosé and a Blanc de Blancs were 'carefully chosen for this well-rounded hamper.'
10. The British Hamper Company Luxury Vegan Hamper
£67.85, Not On The High Street
Vegans love Christmas too you know, so why not make this an extra delicious one for the animal lovers in your life. In this stylish box they'll find Chilean wine, olives, popcorn, crisps, dark chocolate and more. Or buy this to stock your own shelves if you have some vegans coming to stay. They'll certainly appreciate the thoughtful gesture.
11. Marks & Spencer Fresh Fruit & Date Selection
Treat yourself or someone you know with this luxury fresh fruit and veg hamper - ideal for health and wellness lovers. Best of all, the fruit varies depending on the time of year which guarantees your selection will always at its very best.
12. Booths Miniature Spirits Gift Box
This carefully selected box includes miniatures of brandy, whisky, gin, vodka, rum and cognac and will make a fantastic addition to a Christmas drinks trolley.
13. Fortnum & Mason The Tea Basket
Tea obsessives (you know who you are) will love the smart blue tins of Assam, Royal Blend and Earl Grey teas which come with a tea infuser, three preserves and a stylish striped china mug. Ideal for anyone who loves a cuppa.
14. Hotel Chocolat All I Want For Christmas Hamper
Christmas is all about giving. And chocolate. So cover off both with this gift set from Hotel Chocolat. There are plenty of moreish treats to keep even the most sweet-toothed person happy.
15. Cadbury Ultimate Chocolate Hamper
So this is like all our Christmas selection box dreams come true. Fill your home with a month's worth of Cadbury deliciousness or give this amazing hamper to someone who deserves a tonne of chocolate this year. Packed to bursting with family favourites and Cadbury classics, this might just be the best hamper of all.
16. The Cheese Geek The Lionel
Dive into cheesy heaven with The Cheese Geek's cheesebox. With five different options, it's a cheese lover's dream. They hand pick the best seasonal cheeses, then make sure they have been matured to perfection before freshly cutting, wrapping and packing them.
For more Christmas features and gift guides, see www.telegraph.co.uk/christmas
All the products mentioned in this article are selected and reviewed independently by our journalists. The Telegraph makes money by adding affiliate links to some of the products.


Sign up
/
Log in
Cancel
Log in
Forgot password
Enter your email address on your account. An email will be sent with further instructions.
Request Password Reset
FRIENDABILITY
FRIENDABILITY
Terms of Use
/
Privacy Policy
/
Contact Us
© 2017 Friendability


{{#if paragraph}} {{paragraph}} {{else}} Easily create tasks for yourself or assign one to a teammate. {{/if}}


Protein Tracker Options
This is the protein tracker that you need in order to track your daily protein needs.
Protein Goal per day
Fullfill your daily dose of protein daily !


192. RGB
time limit per test: 0.4 sec.
memory limit per test: 1024
KB
input: standard input
output: standard
output
There are N segments on a plane (0<N<=300). Each segment
is defined by coordinates of the end points (Xi1, Yi1) and
(Xi2, Yi2) (i=1,2,...,N). All coordinates are in a range
from 0 to 32000. No two segments have more than one common point. Each segment
is painted in one of three colors: red (R), green (G), blue (B). All points of
all segments are projected to the axis OX (projection is made parallel to the
axis OY). Each projected point is painted in color of the point nearest to the
axis OX. You have to find the total lengths of the projections painted in red
(SR), green (SG) and blue (SB) colors.
Input
The first line contains natural number N. Each of the following
N lines contains coordinates of the ends of the segments (4 integer delimited by
a space) and the letter (R, G, B), determining the color of a segment.
Output
The first line must contain letter R and number SR delimited by
a space. The second line must contain letter G and number SG. The third line
must contain letter B and number SB. All numbers should be printed with
precision 0.01.
Sample test(s)
Input
4
1 1 3 2 R
2 1 4 2 G
3 1 5 2 B
2 2 3 5 R
Output
R 1
G 1
B 2
| Author: |
German G. Narkaytis |
| Resource: |
ACM International Collegiate Programming Contest 2003-2004
North-Eastern European Region, Southern Subregion |
| Date: |
2003 October, 9
|
| Server time: 2004-01-14 11:56:55 |
Online Contester Team © 2002 - 2003. All
rights
reserved. | | |


In this project, you'll use generative adversarial networks to generate new images of faces.
You'll be using two datasets in this project:
Since the celebA dataset is complex and you're doing GANs in a project for the first time, we want you to test your neural network on MNIST before CelebA. Running the GANs on MNIST will allow you to see how well your model trains sooner.
If you're using FloydHub, set data_dir
to "/input" and use the FloydHub data ID "R5KrjnANiKVhLWAkpXhNBe".
data_dir = './data'
# FloydHub - Use with data ID "R5KrjnANiKVhLWAkpXhNBe"
#data_dir = '/input'
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
import helper
import numpy as np
helper.download_extract('mnist', data_dir)
helper.download_extract('celeba', data_dir)
show_n_images = 25
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
%matplotlib inline
import os
from glob import glob
from matplotlib import pyplot
mnist_images = helper.get_batch(glob(os.path.join(data_dir, 'mnist/*.jpg'))[:show_n_images], 28, 28, 'L')
pyplot.imshow(helper.images_square_grid(mnist_images, 'L'), cmap='gray')
The CelebFaces Attributes Dataset (CelebA) dataset contains over 200,000 celebrity images with annotations. Since you're going to be generating faces, you won't need the annotations. You can view the first number of examples by changing show_n_images
.
show_n_images = 25
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
mnist_images = helper.get_batch(glob(os.path.join(data_dir, 'img_align_celeba/*.jpg'))[:show_n_images], 28, 28, 'RGB')
pyplot.imshow(helper.images_square_grid(mnist_images, 'RGB'))
Since the project's main focus is on building the GANs, we'll preprocess the data for you. The values of the MNIST and CelebA dataset will be in the range of -0.5 to 0.5 of 28x28 dimensional images. The CelebA images will be cropped to remove parts of the image that don't include a face, then resized down to 28x28.

You'll build the components necessary to build a GANs by implementing the following functions below:
model_inputs
discriminator
generator
model_loss
model_opt
train
This will check to make sure you have the correct version of TensorFlow and access to a GPU
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
from distutils.version import LooseVersion
import warnings
import tensorflow as tf
# Check TensorFlow Version
assert LooseVersion(tf.__version__) >= LooseVersion('1.0'), 'Please use TensorFlow version 1.0 or newer. You are using {}'.format(tf.__version__)
print('TensorFlow Version: {}'.format(tf.__version__))
# Check for a GPU
if not tf.test.gpu_device_name():
warnings.warn('No GPU found. Please use a GPU to train your neural network.')
else:
print('Default GPU Device: {}'.format(tf.test.gpu_device_name()))
Implement the model_inputs
function to create TF Placeholders for the Neural Network. It should create the following placeholders:
image_width
, image_height
, and image_channels
.z_dim
.Return the placeholders in the following the tuple (tensor of real input images, tensor of z data)
import problem_unittests as tests
def model_inputs(image_width, image_height, image_channels, z_dim):
"""
Create the model inputs
:param image_width: The input image width
:param image_height: The input image height
:param image_channels: The number of image channels
:param z_dim: The dimension of Z
:return: Tuple of (tensor of real input images, tensor of z data, learning rate)
"""
# TODO: Implement Function
input_real = tf.placeholder(tf.float32, shape=[None, image_width, image_height, \
image_channels], name='input_real')
input_z = tf.placeholder(tf.float32, shape=[None, z_dim], name='input_z')
learning_rate = tf.placeholder(tf.float32, name='learning_rate')
return input_real, input_z, learning_rate
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_model_inputs(model_inputs)
Implement discriminator
to create a discriminator neural network that discriminates on images
. This function should be able to reuse the variables in the neural network. Use tf.variable_scope
with a scope name of "discriminator" to allow the variables to be reused. The function should return a tuple of (tensor output of the discriminator, tensor logits of the discriminator).
def discriminator(images, reuse=False):
"""
Create the discriminator network
:param images: Tensor of input image(s)
:param reuse: Boolean if the weights should be reused
:return: Tuple of (tensor output of the discriminator, tensor logits of the discriminator)
"""
# TODO: Implement Function
# TODO: Implement Function
alpha = 0.1
with tf.variable_scope('discriminator', reuse=reuse):
# First convolutional layer
conv1 = tf.layers.conv2d(images, 56, 5, 2, 'SAME')
conv1 = tf.maximum(alpha*conv1, conv1)
# Second convolutional layer
conv2 = tf.layers.conv2d(conv1, 112, 5, 2, 'SAME')
conv2 = tf.layers.batch_normalization(conv2, training=True)
conv2 = tf.maximum(alpha*conv2, conv2)
# Third convolutional layer
conv3 = tf.layers.conv2d(conv2, 224, 5, 2, 'SAME')
conv3 = tf.layers.batch_normalization(conv3, training=True)
conv3 = tf.maximum(alpha*conv3, conv3)
# Output fully connected layer
flat = tf.reshape(conv3, (-1, 4*4*224))
logits = tf.layers.dense(flat, 1)
### REVIEWER TIP ####
# Apply dropout so that discriminator
# is less prone to learning the data distribution
logits = tf.layers.dropout(logits, rate=0.5)
output = tf.sigmoid(logits)
return output, logits
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_discriminator(discriminator, tf)
Implement generator
to generate an image using z
. This function should be able to reuse the variables in the neural network. Use tf.variable_scope
with a scope name of "generator" to allow the variables to be reused. The function should return the generated 28 x 28 x out_channel_dim
images.
def generator(z, out_channel_dim, is_train=True):
"""
Create the generator network
:param z: Input z
:param out_channel_dim: The number of channels in the output image
:param is_train: Boolean if generator is being used for training
:return: The tensor output of the generator
"""
# TODO: Implement Function
alpha = 0.1
with tf.variable_scope('generator', reuse=not(is_train)):
# Input fully connected layer
fully = tf.layers.dense(z, 7*7*112)
fully = tf.reshape(fully, (-1, 7, 7, 112))
fully = tf.layers.batch_normalization(fully, training=is_train)
fully = tf.maximum(alpha*fully, fully)
# First convolutional layer
conv1 = tf.layers.conv2d_transpose(fully, 56, 5, 2, 'SAME')
conv1 = tf.layers.batch_normalization(conv1, training=is_train)
conv1 = tf.maximum(alpha*conv1, conv1)
# Output convolutional layer
conv2 = tf.layers.conv2d_transpose(conv1, out_channel_dim, 5, 2, 'SAME')
out = tf.tanh(conv2)
return out
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_generator(generator, tf)
Implement model_loss
to build the GANs for training and calculate the loss. The function should return a tuple of (discriminator loss, generator loss). Use the following functions you implemented:
discriminator(images, reuse=False)
generator(z, out_channel_dim, is_train=True)
def model_loss(input_real, input_z, out_channel_dim):
"""
Get the loss for the discriminator and generator
:param input_real: Images from the real dataset
:param input_z: Z input
:param out_channel_dim: The number of channels in the output image
:return: A tuple of (discriminator loss, generator loss)
"""
# TODO: Implement Function
# Generator model
g_model = generator(input_z, out_channel_dim)
# Discriminator models
d_model_real, d_logits_real = discriminator(input_real)
d_model_fake, d_logits_fake = discriminator(g_model, True)
# Discriminator losses
#### REVIEWER TIP ####
# Use 'One Sided Label Smoothing' on labels
d_loss_real = tf.reduce_mean( \
tf.nn.sigmoid_cross_entropy_with_logits(logits=d_logits_real, \
labels=tf.ones_like(d_logits_real)*np.random.uniform(0.7, 1.2)))
d_loss_fake=tf.reduce_mean( \
tf.nn.sigmoid_cross_entropy_with_logits(logits=d_logits_fake, \
labels=tf.zeros_like(d_logits_fake)*np.random.uniform(0.0, 0.3)))
d_loss = d_loss_real + d_loss_fake
# Generator loss
g_loss = tf.reduce_mean( \
tf.nn.sigmoid_cross_entropy_with_logits(logits=d_logits_fake, labels=tf.ones_like(d_model_fake)))
return d_loss, g_loss
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_model_loss(model_loss)
Implement model_opt
to create the optimization operations for the GANs. Use tf.trainable_variables
to get all the trainable variables. Filter the variables with names that are in the discriminator and generator scope names. The function should return a tuple of (discriminator training operation, generator training operation).
def model_opt(d_loss, g_loss, learning_rate, beta1):
"""
Get optimization operations
:param d_loss: Discriminator loss Tensor
:param g_loss: Generator loss Tensor
:param learning_rate: Learning Rate Placeholder
:param beta1: The exponential decay rate for the 1st moment in the optimizer
:return: A tuple of (discriminator training operation, generator training operation)
"""
# TODO: Implement Function
# Get discriminator and generator variables
t_vars = tf.trainable_variables()
d_vars = [var for var in t_vars if var.name.startswith('discriminator')]
g_vars = [var for var in t_vars if var.name.startswith('generator')]
# Run optimizer
with tf.control_dependencies(tf.get_collection(tf.GraphKeys.UPDATE_OPS)):
d_train_opt = tf.train.AdamOptimizer(learning_rate, beta1=beta1).minimize(d_loss, var_list=d_vars)
g_train_opt = tf.train.AdamOptimizer(learning_rate, beta1=beta1).minimize(g_loss, var_list=g_vars)
return d_train_opt, g_train_opt
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
tests.test_model_opt(model_opt, tf)
"""
DON'T MODIFY ANYTHING IN THIS CELL
"""
import numpy as np
def show_generator_output(sess, n_images, input_z, out_channel_dim, image_mode):
"""
Show example output for the generator
:param sess: TensorFlow session
:param n_images: Number of Images to display
:param input_z: Input Z Tensor
:param out_channel_dim: The number of channels in the output image
:param image_mode: The mode to use for images ("RGB" or "L")
"""
cmap = None if image_mode == 'RGB' else 'gray'
z_dim = input_z.get_shape().as_list()[-1]
example_z = np.random.uniform(-1, 1, size=[n_images, z_dim])
samples = sess.run(
generator(input_z, out_channel_dim, False),
feed_dict={input_z: example_z})
images_grid = helper.images_square_grid(samples, image_mode)
pyplot.imshow(images_grid, cmap=cmap)
pyplot.show()
Implement train
to build and train the GANs. Use the following functions you implemented:
model_inputs(image_width, image_height, image_channels, z_dim)
model_loss(input_real, input_z, out_channel_dim)
model_opt(d_loss, g_loss, learning_rate, beta1)
Use the show_generator_output
to show generator
output while you train. Running show_generator_output
for every batch will drastically increase training time and increase the size of the notebook. It's recommended to print the generator
output every 100 batches.
def train(epoch_count, batch_size, z_dim, learning_rate, beta1, get_batches, data_shape, data_image_mode):
"""
Train the GAN
:param epoch_count: Number of epochs
:param batch_size: Batch Size
:param z_dim: Z dimension
:param learning_rate: Learning Rate
:param beta1: The exponential decay rate for the 1st moment in the optimizer
:param get_batches: Function to get batches
:param data_shape: Shape of the data
:param data_image_mode: The image mode to use for images ("RGB" or "L")
"""
# TODO: Build Model
input_real, input_z, lr = model_inputs(data_shape[1], data_shape[2], data_shape[3], z_dim)
d_loss, g_loss = model_loss(input_real, input_z, data_shape[3])
d_opt, g_opt = model_opt(d_loss, g_loss, lr, beta1)
steps = 0
print_every = 10
show_every = 100
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
for epoch_i in range(epoch_count):
for batch_images in get_batches(batch_size):
# TODO: Train Model
steps += 1
#### REVIEWER SUGGESTION ####
# Normalize input to be between -1 and 1 to match generator's images
batch_images = batch_images*2
# Get input noise
batch_z = np.random.uniform(-1, 1, size=(batch_size, z_dim))
# Run optimizers
_ = sess.run(d_opt, feed_dict={input_real: batch_images, input_z: batch_z, lr: learning_rate})
_ = sess.run(g_opt, feed_dict={input_real: batch_images, input_z: batch_z, lr: learning_rate})
if steps % print_every == 0:
train_loss_d = d_loss.eval(feed_dict={input_z: batch_z, input_real: batch_images})
train_loss_g = g_loss.eval(feed_dict={input_z: batch_z})
print("Epoch {}/{}...".format(epoch_i+1, epoch_count),
"Discriminator Loss: {:.4f}...".format(train_loss_d),
"Generator Loss: {:.4f}".format(train_loss_g))
if steps % show_every == 0:
show_generator_output(sess, batch_size, input_z, data_shape[3], data_image_mode)
Test your GANs architecture on MNIST. After 2 epochs, the GANs should be able to generate images that look like handwritten digits. Make sure the loss of the generator is lower than the loss of the discriminator or close to 0.
batch_size = 128
z_dim = 128
learning_rate = 0.001
beta1 = 0.5
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
epochs = 2
mnist_dataset = helper.Dataset('mnist', glob(os.path.join(data_dir, 'mnist/*.jpg')))
with tf.Graph().as_default():
train(epochs, batch_size, z_dim, learning_rate, beta1, mnist_dataset.get_batches,
mnist_dataset.shape, mnist_dataset.image_mode)
Run your GANs on CelebA. It will take around 20 minutes on the average GPU to run one epoch. You can run the whole epoch or stop when it starts to generate realistic faces.
batch_size = 64
z_dim = 100
learning_rate = 0.0001
beta1 = 0.5
"""
DON'T MODIFY ANYTHING IN THIS CELL THAT IS BELOW THIS LINE
"""
epochs = 1
celeba_dataset = helper.Dataset('celeba', glob(os.path.join(data_dir, 'img_align_celeba/*.jpg')))
with tf.Graph().as_default():
train(epochs, batch_size, z_dim, learning_rate, beta1, celeba_dataset.get_batches,
celeba_dataset.shape, celeba_dataset.image_mode)
When submitting this project, make sure to run all the cells before saving the notebook. Save the notebook file as "dlnd_face_generation.ipynb" and save it as a HTML file under "File" -> "Download as". Include the "helper.py" and "problem_unittests.py" files in your submission.


Party time
Carleton is ordering vaccines and new (compacting) common room furniture on recommentation from
xkcd.com


Pollution System
Map and Feature Services are published and deployed on ArcGIS Server.
Real-time query data and display in GraphicsLayer with different symbols
Detailed pollution data demonstration with tables and charts.
Automate your GIS tasks and perform spatial analysis and modeling.


3.2. ContainersIn addition to the fundamental components described in the previous section, the STL and the standard C++ library provide a set of containers. Each container holds elements that can be stored and accessed according to a strategy that is specific to the container. The elements constitute the container's controlled sequence. You can access this sequence by calling the member functions begin and end, which return, respectively, an iterator that points to the first element in the controlled sequence and an iterator that points past the end of the controlled sequence. Example 3.6. Container Iterators (contbasic/contiter.cpp)
The standard C++ library has two kinds of containers: sequence containers and associative containers. In a sequence container, the elements are organized linearly. You can insert elements at any point in that linear sequence, and the order of the elements in the sequence pointed to by the iterators [begin(), end()) is determined by the locations where the elements were inserted. Example 3.7. Sequence Container (contbasic/seqcont.cpp)
Three sequence containers are in the standard C++ library. The container vector holds its elements in a contiguous array. This makes access to arbitrary elements fast but makes inserting new elements anywhere other than at the end slow. The container list holds its elements in a double-linked list. This makes access to arbitrary elements slow but makes inserting new elements anywhere in the container fast. The container deque typically holds its elements in multiple small arrays. This provides speeds that are intermediate between the speeds of vector and of list for accessing and inserting elements. An associative container supports fast searching for elements that match a given key. The sequence pointed to by the iterators [begin(), end()) is ordered according to the values of the keys.[5]
Example 3.8. Associative Container (contbasic/assoccont.cpp)
Four associative containers are in the standard C++ library. The container set supports searching for a key that has the same type as the container's elements. Duplicate elements are not allowed. The container multiset is like a set but allows duplicate elements. The container map holds elements of type pair<const Key, Value> and supports searching for a key of type Key. Thus, it associates a key and a value. Duplicate keys are not allowed. The container multimap is like a map but allows duplicate keys. Containers can also be reversible. A reversible container is one with a bidirectional or a random-access iterator type. Reversible containers support iterating from the end of the container back toward the beginning. The member functions rbegin() and rend() return reverse iterators. The corresponding range, [rbegin(), rend()), iterates through the same elements as [begin(), end()) but in the opposite order. All the containers in the standard C++ library are reversible. The TR1 library provides another kind of container. An unordered associative container, like an associative container, supports fast searching for elements that match a given key. Unlike an associative container, the sequence pointed to by the iterators [begin(), end()) is unspecified.[6]
Example 3.9. Unordered Container (contbasic/unordcont.cpp)
Four unordered associative containers are in the TR1 library. The container unordered_set is like set but doesn't require any particular order for the contained sequence. Similarly, unordered_multiset is like multiset, unordered_map is like map, and unordered_multimap is like multimap. |


This styleguide contains the UI components for the Palaute-system. Only components that differ from the Bootstrap version 3.3.6 are documented here. Native Bootstrap documentation can be found from here: Bootstrap.


11+ Stream Logo Maker Free PNG. Branding your gamer identity will be super easy, just customize and download! Create a professional stream logo in minutes with our free stream logo maker.
Logo maker is one of the oldest logo making platforms and has served more than 3 million small and big entrepreneurs and business owners. Design your logo for free using our thousands of vector images and fonts available online. Try our logo creator today and start your brand!
Stand out from the competition and make your business even more visible.
Create your own 3d logos free with this amazing online 3d logo maker. You can find graphics for big bold letters, peculiar characters. Branding your gamer identity will be super easy, just customize and download! Then just save your new logo on to your computer!


All jokes aside, this is probably not the best material on soreness of any kind!
Not affiliated with Joel Cohen or 'How to lose a Marathon'. Created by a reader who enjoyed the book


Welcome To iShare
Thank You For Joining The Community, [USER]
Click here and join our youtube
YouTube


Dan's Products
Add a new product
Product Name
Img
Serial Number
Warranty Info
PDF
{% for product in products %}
{% block content %}
{{ product.product_name }}
{{ product.serial_number }}
{{ product.warranty_info }}
View PDF
{% endblock %}
{%endfor%}


Articles and tutorials that cover everything from getting started with jQuery Mobile to building apps and advanced scripting.


Dummy index.html to allow loading of local resources in webkitgtk with runghc, see https://github.com/ghcjs/jsaddle/issues/91#issuecomment-493619994


ERC Junior Wagner triumphs outright in Austria
Simon Wagner underlined his potential with a first Austrian championship victory last weekend.
A podium finisher at both ERC3 Junior and ERC1 Junior level, Wagner won Rallye W4 in his homeland in a Eurosol Racing Team ŠKODA Fabia R5 Evo with Anne Katharina Stein co-driving.
Despite his achievement, Wagner described it as an “almost perfect” end to the season after his younger brother Julian missed out on the Austrian title when he retired from the lead with gearbox failure, leaving former ERC regular Hermann Neubauer to claim the crown.
“We can only say thank you to everyone who made this brilliant weekend possible and to ŠKODA Motorsport and our team for the perfect ŠKODA Fabia R5 Evo,” said Simon Wagner. “Unfortunately, it wasn’t supposed to work with a double podium for the Wagner brothers again but 11 out of 13 best times for Julian and me are a clear sign. Congratulations to Hermann Neubauer on the well-deserved title.
Photo: Facebook.com/simon.wagner.560