text stringlengths 1 1.04M | language stringclasses 25 values |
|---|---|
<filename>swift-core/swift-core-source/src/main/java/com/fr/swift/source/DBDataSource.java<gh_stars>0
package com.fr.swift.source;
/**
* Created by pony on 2017/11/15.
*/
public interface DBDataSource extends OuterDataSource {
}
| java |
import discord
from discord.ext import commands
from discord.utils import get
class c269(commands.Cog, name="c269"):
def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name='Vir_the_True_Elementalist', aliases=['c269', 'Elementalist_1', 'Distasta_Master_1'])
async def example_embed(self, ctx):
embed = discord.Embed(title='Vir the True Elementalist',
color=0xFDE68A)
embed.set_thumbnail(url='https://www.duelingbook.com/images/custom-pics/2300000/2360695.jpg')
embed.add_field(name='Status (Archetype)', value='Casual:3/Tournament:3 (Elementalist/Distasta Master)', inline=True)
embed.add_field(name='Type (Attribute)', value='Spellcaster/Normal (LIGHT)', inline=False)
embed.add_field(name='Level (ATK/DEF)', value='3 (1200/950)', inline=False)
embed.add_field(name='Lore Text', value='Some say that whenever a disaster occurs, Vir is near by practicing his magic. However, if Vir ever learns the secrets of the Book of Natural Disasters, with knowledge of the ancient scriptures, he will be able to tame the Distasta Masters and bring the world into a new age of doom.', inline=False)
embed.set_footer(text='Set Code: GMMP')
await ctx.send(embed=embed)
def setup(bot: commands.Bot):
bot.add_cog(c269(bot)) | python |
The bond market shrugged off the surprise 40 basis points repo rate cut by the Reserve Bank of India (RBI) on Friday with the benchmark yield closing just 3 basis points down at 5.75%. Dealers say that lack of any much-anticipated measures by RBI to absorb excess supply of bonds via OMOs and exercise of green-shoe option by the government to raise more funds during the auction led to some amount of disappointment.
Ananth Narayan, professor-finance at SPJIMR, said the timing of the rate cut was a surprise, given that the scheduled monetary policy committee (MPC) meeting was just two weeks away. “Beyond the timing surprise, the market was likely expecting a 50 bps cut in June, so the extent of the cut — and the dissenting vote for a 25 bps cut — were perhaps mild disappointments. In any case, with market repos being dealt at 2.5%, the policy repo rate has less significance for bond markets now than before,” Narayan said.
Treps is a collateralised borrowing system where mostly private banks, foreign banks and primary dealers borrow short-term money using G-secs or treasury bills. With surplus liquidity available in the system, the Treps rate has fallen significantly in recent times. CCIL data shows Treps rates were quoting at a weighted average rate of 2.53%. This means market participants are borrowing money at much cheaper rates compared to the rate at which the central bank lends funds.
Sajjid Chinoy, chief India economist at JP Morgan told a television channel that the Treps rate is already trading between 25 and 100 basis points below the reverse repo rate based on the distribution of liquidity in the system. ‘There is only so much firepower that the RBI has. Given the quantum of uncertainty, you want to leave a little gunpowder for later which is why most of us thought a 40-50 basis points cut now will allow you to do more rate cuts down the line if the economic situation warrants,’ Chinoy said.
The yield on the old benchmark bonds—notes maturing in 2029—closed 7 basis points down at 5.96%. During Friday’s central government securities auction, the government borrowed Rs 8,000 crore more than the notified amount of Rs 30,000 crore by executing the green-shoe option of Rs 2,000 crore each in the four securities available for auction. Dealers say this was also a dampening factor for the bond market.
Siddharth Shah, head of treasury at STCI Primary Dealer said that there were expectations of RBI taking up some amount of additional borrowing, for example through OMOs, which didn’t materialise and this also led to the bond market giving up on the gains made during the day. ‘The market was spooked by the fact that RBI exercised green-shoe in all the papers auctioned since it results in pushing additional supply,’ Shah said. The cut-off yield on the new benchmark bonds that were auctioned on Friday stood at 5.74%.
Friday’s RBI data shows that the central bank hasn’t conducted any outright OMO purchases between May 11 and May 17. So far, the RBI has bought government securities, a good chunk of which is expected to be treasury bills, via open market operations (OMOs) outright purchases worth `1.2 lakh crore since the beginning of April this fiscal year.
| english |
var assert = require('assert');
var deep = require('deep-diff');
var Bootstrap = require('./support/bootstrap');
describe('manager', function() {
describe('.save', function() {
var manager;
beforeEach(function() {
manager = Bootstrap.manager(Bootstrap.database());
Bootstrap.models(manager);
return Bootstrap.tables(manager)
.then(function() {
return Bootstrap.fixtures(manager);
});
});
it('should return a promise', function() {
var car = manager.forge('car');
var promise = manager.save(car);
assert.ok(promise.then instanceof Function, 'Expected Function. `then` is ' + typeof promise.then);
});
it('should save a new model', function() {
var car = manager.forge('car');
return manager.save(car).then(function(car) {
assert.equal(car.id, 2, 'Car should have an ID of 2, not ' + car.id);
});
});
it('should save an existing model with same ID', function() {
var Make = manager.get('make');
var original = new Make({
name: 'Ford'
});
return manager.save(original).then(function() {
return manager.save(new Make(), {
id: original.id,
name: 'Chevy'
});
}).then(function(make) {
assert.equal(make.id, original.id, 'Should have overriden original model ID');
}).then(function() {
return manager.fetch('makes');
}).then(function(makes) {
assert.equal(makes.length, 2, 'Should only have 2 makes, not ' + makes.length);
});
});
it('should modify the model', function() {
return manager.fetch('car', { id: 1 }).then(function(car) {
assert.equal(car.get('quantity'), 1, 'Car #1 should start with quantity of 1');
return manager.save(car, {
quantity: 2
});
}).then(function(car) {
assert.equal(car.get('quantity'), 2, 'Car #1 should end with quantity of 2');
});
});
it('should modify nested models', function() {
return manager.fetch('car', { id: 1 }, ['color', 'title']).then(function(car) {
assert.equal(car.related('color').id, 1);
assert.equal(car.related('color').get('name'), 'Grey');
assert.equal(car.related('title').id, 1);
assert.equal(car.related('title').get('state'), 'TX');
return manager.save(car, {
color: {
id: 1,
name: 'Dark Grey'
},
title: {
id: 1,
state: 'FL',
issue_date: '2017-01-01'
}
});
}).then(function(car) {
return car.fetch({
withRelated: ['color', 'title']
});
}).then(function(car) {
assert.equal(car.related('color').id, 1);
assert.equal(car.related('color').get('name'), 'Dark Grey');
assert.equal(car.related('title').id, 1);
assert.equal(car.related('title').get('state'), 'FL');
assert.equal(car.related('title').get('issue_date'), '2017-01-01');
});
});
it('should modify a deep nested model', function() {
return manager.fetch('car', { id: 1 }, 'model.type').then(function(car) {
assert.equal(car.related('model').related('type').get('name'), 'Crossover');
return manager.save(car, {
model: {
id: car.related('model').id,
type: {
id: car.related('model').related('type').id,
name: 'SUV'
}
}
});
}).then(function(car) {
return car.fetch({
withRelated: 'model.type'
});
}).then(function(car) {
assert.equal(car.related('model').related('type').get('name'), 'SUV');
});
});
it('should ignore _pivot_ keys', function() {
return manager.fetch('car', { id: 1 }, 'features').then(function(car) {
var feature = car.related('features').at(0);
var json = feature.toJSON();
json.name = 'GPSv2';
return manager.save(feature, json);
}).then(function(feature) {
assert.equal(feature.get('name'), 'GPSv2');
});
});
it('should orphan models in collection', function() {
return manager.fetch('car', { id: 1 }, 'features').then(function(car) {
assert.equal(car.related('features').length, 2, 'Car should have 2 existing features');
return manager.save(car, {
id: 1,
features: []
}).then(function(car) {
assert.equal(car.related('features').length, 0, 'Car should have all features removed, found: ' + car.related('features').toJSON());
});
});
});
it('should support original fetched response', function() {
var expected;
return manager
.fetch('make', { name: 'BMW' }, [
'models',
'models.specs',
'models.type',
'dealers',
'dealers.cars',
'dealers.cars.title',
'dealers.cars.color',
'dealers.cars.model',
'dealers.cars.features',
'dealers.cars.model.type'
]).then(function(make) {
expected = make.toJSON();
return manager.save(make, expected);
}).then(function(make) {
var diffs = deep.diff(expected, make.toJSON()) || [];
assert.equal(diffs.length, 0, diffs);
return manager.knex('models_specs').select();
}).then(function(results) {
assert.equal(results.length, 2, 'Expected only 2 rows in `models_specs`, not ' + results.length);
});
});
it('should support transactions', function() {
return manager.bookshelf.transaction(function(t) {
return manager.fetch('car', { id: 1 }, 'features', { transacting: t }).then(function(car) {
return manager.save(car, {
id: 1,
quantity: 2,
features: []
}, {
transacting: t
}).then(function(car) {
assert.equal(car.get('quantity'), 2, 'Car should have quantity 2, got: ' + car.get('quantity'));
assert.equal(car.related('features').length, 0, 'Car should have all features removed, found: ' + car.related('features').toJSON());
throw new Error('test');
});
});
}).catch(function(err) {
if (!(err instanceof assert.AssertionError)) {
return manager.fetch('car', { id: 1 }, 'features').then(function(car) {
assert.equal(car.get('quantity'), 1, 'Car should have quantity 1, got: ' + car.get('quantity'));
assert.equal(car.related('features').length, 2, 'Car should have 2 existing features');
});
}
throw err;
});
});
it('should set belongsTo foreign keys to null if a related attribute is present but set to null', function() {
return manager.fetch('model', { id: 1 }).then(function(model) {
return manager.save(model, {
name: 'X5',
type: null
}).then(function(model) {
assert.equal(model.get('type_id'), null);
});
});
});
it('should save a new hasOne model and orphan any existing one if its id is unspecified', function() {
return manager.fetch('car', { id: 1 }, 'title').then(function(car) {
assert.equal(car.related('title').get('state'), 'TX');
return manager.save(car, {
title: {
state: 'FL',
issue_date: '2017-01-01'
}
});
})
.then(function() {
return manager.fetch('car', { id: 1 }, 'title').then(function(car) {
assert.equal(car.related('title').get('id'), 2);
assert.equal(car.related('title').get('state'), 'FL');
assert.equal(car.related('title').get('issue_date'), '2017-01-01');
});
})
.then(function() {
return manager.fetch('title', { id: 1 }).then(function(title) {
assert.equal(title.get('car_id'), null);
assert.equal(title.get('state'), 'TX');
assert.equal(title.get('issue_date'), '2016-09-19');
});
});
});
});
});
| javascript |
I have always been fascinated with quirky hair colors! Witnessing boring hair, on the other hand, has been one of my pet peeves that I gradually dealt with as I grew up. If you are someone like me who loves trying out different hair colors, say no more, as I have the recommendations of the best strawberry blonde hair dyes that I have curated based on my firsthand experience. These dyes are formulated with potent ingredients while ensuring least damage to the hair shaft, thanks to their ammonia-free formulas. I have also shortlisted a few organic colors for people who are in no mood of infusing chemicals in the name of style. But before you jump into the product recommendations, let me clear out the confusion regarding the color.
Strawberry blonde hair color is a blonde hair color with a warm red tone in it. The color goes with every skin tone and the best part is you can customize the intensity, tone, and appearance as per your choice. Not only for global hair color, but the dye is also suitable for highlights and balayage. For people who are still unsure about the result, I will recommend going to a hairstylist for consultation to figure out the exact vibrancy and the right shade that will go with your skin tone.
To know more about the best strawberry blonde hair colors, check out our top picks below!
Embrace the quirkiness that you have always loved with this strawberry blonde hair dye that comes in the shade “Gilded Rose” by Got2b. The best part about the hair color is that it gives a strong multi-dimensional color with an anti-fade technology that lasts for the longest possible time. Enriched with metallic shine booster, the color bestows you with a cool and shimmering tone that is bound to fetch compliments from your peers. To note, you will get 1 tube color cream, 1 developer lotion along with an application bottle, 1 post-treatment tube color, 1 pair of gloves, and an instruction leaflet when you buy the product.
With a nourishing formula, the strawberry blonde box dye not only covers your hair and gray shafts with a unique color but also provides a long-lasting moisturizing benefit. Rich in keratin and amino acids, it makes your hair soft to touch and smooth to appear. Furthermore, I am totally in love with how the brand ensures an ammonia-free formula that will no way harm your strands for better hair health. The optimal color blending technology will also allow the color to stay on the length for a really long time.
Just like you, I have also been longing for a medium reddish blonde hair color for sometime, and when I came across this permanent hair dye from Clairol, it blew my mind with its longevity and effectiveness. The brand brings you an all-in-one blonde hair dye kit featuring a color activator, permanent color cream, and a colorseal conditioner. It is indeed one of the best strawberry blonde dyes to get salon-like highlights and tones, thanks to the color blend technology.
A hair color that also conditions your hair deeply! Sounds intriguing, right? Well, this strawberry blonde hair color gives you a semi-permanent result with a deep conditioning treatment that I bet you'll fall in love with too. Not only does it boost the color, but also the product ensures a crazy shine that everyone wants. The plus point? It is vegan-friendly and cruelty-free! But wait, that's not it! The semi-permanent dye is safe for everyone irrespective of the hair type and formulated without paraben, phthalates, glutens, and sulfates.
The liquid creme color from Agebeuatiful is enriched with keratin peptide, melanin, silk protein, and patented conditioning technology that will replenish the hair to give a lust-worthy result. Along with that, the formula beautifully covers gray hair for up to 8 weeks and bestows you with a blinding shine and vibrance. All I can safely claim, as per my expertise, is that it is one of the best products available in the market to give your hair fuller, silkier, and shinier look, that too instantly.
Henna as a permanent hair color? Yes please! I was amazed by the result of the herbal product and how it could make a statement after applying. With an envy-worthy reddish blonde color, the formula of the henna hair dye, packed without PPD, ammonia, or metallic salts, ensures it covers each strand from root to tip. Besides, getting vibrant color, which is backed by a natural plant-based formula, is no less than a revolutionary effect itself. Plus, the natural strawberry blonde hair dye also ensures intense shine for up to 4 to 8 weeks after application.
I have always had a soft corner for L'oreal Paris when it comes to hair color, and the credit goes to its effective yet pocket-friendly formulas. In this box, you will get one bottle of creme, one developer, and one conditioner to keep your hair soft and shiny after application. While the fade-defying hair color promises a bold color payoff, the conditioner infused with vitamin E and shine serum, locks the moisture in and helps the strands appear healthy and nourished. All I can say is that it is one of the best strawberry blonde hair dyes for dark hair.
This is another henna hair color brand that I personally like as it offers a safe formula backed by 100% organic ingredients. If you want a salon-quality strawberry blonde hair dying experience at home without damaging the shaft, I would definitely recommend Rainbow Research anyday! Without infusing chemicals and preservatives, getting texturized and well-defined hair with a blended color cannot be easier than this. It is to be kept in mind that the chance of noticeable growth of embarrassing gray hair is minimal as the color fades away naturally.
This personal colorist kit stands true to its name, according to me, and I think it's the best one for the beginners to get salon-like hair at the comfort of their home. It is a medium blonde strawberry hair color that comes with an ammonia-free formula, and covers all your gray hair for a stunning result. In this kit, you will get a hair color, a developer, 2 pairs of latex gloves, shampoo and conditioner packets, stain guard and stain remover, and an instruction manual to help you make the process easier.
a) Formula- If you are someone who likes to do their bit for the environment, a clean formula free of ammonia, PPD, phthalates, paraben, acetate could be your answer to healthy hair. If you have sensitive scalp, on the other hand, a vegan-friendly formula is what you need to grab to ensure the proper care of your hair length and roots. But if you have dry and damaged strands, looking for a moisturizing formula packed with nourishing ingredients can work like magic.
b) Longevity- There are plenty of hair colors with several longevity claims- permanent, semi-permanent, temporary, one time use, etc. If you would like to keep the hair color for the longest possible time, choosing a permanent hair dye is wise. Semi or demi permanent hair colors fade away faster than permanent hair colors that usually last 6-8 weeks. On the other hand, a one time hair color is a clever option to get the color for just a day with no regrets.
c) Shade- Strawberry blonde hair colors are available in multiple shades to begin with. But before you pick yours, make sure you are aware of your own skin tone so that the color looks more attractive and appealing. Your undertone plays the biggest role here, let me tell you how! If you have a warm undertone, choose a cooler pinkish tone shade. On the other hand, people with cool undertones should pick a shade with coral tint for a more attractive look. And for neutral undertones, all kinds of shades will make them look stand out!
a) First thing first, before you start, wrap an old cloth around your shoulder up to your chest to avoid any mess out of your coloring session.
b) Now, comb your hair with a wide toothed brush that will help the hair to get partitioned nicely.
c) Now, take some vaseline or coconut oil and apply around the edges of your hairline so that no stain is left on the face or ears.
d) Now, take out the gloves given in the package. Even if it doesn't offer one, get yourself one to avoid an embarrassing stain on the hand.
e) Now, take out the base color, and mix it with the developer, if any.
f) If it is henna color, I recommend letting it soak overnight in warm water for the ultimate result.
g) Now, take a small section of your hair, and start applying the color from root to tip. Or, as directed in the user guide.
h) Apply the color as prescribed in the direction.
i) Now, wash the color thoroughly before proceeding with the next step.
j) Lastly, apply conditioner to your hair to get soft strands.
k) I recommend skipping shampoo on the day you have applied hair color to get the best result out of your hair color.
a) Picking color-friendly products is step one! Choose shampoos and conditioners that are compatible with colored strands.
b) You should always use a hair serum that is moisturizing as blonde hair tends to appear drier than it is.
c) You must always apply a heat protectant before blow drying or hair straightening or curling.
d) Use a hair mask once a week to ensure better moisturization of your strands.
e) You must pick a toner to maintain the vibrancy in the long run.
So, that's it! I have rounded off the best strawberry blonde hair dyes available in the market based on my observation. Along with that, I have elaborated the buying guide for a hassle-free experience for the readers. The verdict is that if you have a plan to keep the color for the longest possible time, get Got2b Metallic Permanent Hair Color for its anti-fading technology. On the other hand, dpHUE Gloss+ is an excellent color to infuse the desired shine into your tresses. Lastly, Discovery Naturals Red Henna Hair Color is one good hair color recommendation for people who wish for a natural outcome out of the hair dye. So, which one is making its way into the cart? Decide now!
Our in-house hair care expert, Alvira D'Souza, has always been a lover of all things quirky when it comes to hairstyle. She has been an absolute lover of trendy hair colors and doesn't mind taking out her time and energy to curate the best products for our readers. For this article, Alvira has gone through hundreds of online reviews to curate the best strawberry blonde hair colors she could find. She has considered parameters like consistency, texture, longevity, formula, and safety before coming up with the verdict.
Our product experts study the specifications of every product we suggest and try them out to bring what’s proven to be worthy of your money, time, and energy. We also have subject matter experts from various fields like Fashion, Skincare, Haircare, Home Decor, and Health and fitness on board to make sure our suggestions are credible and trustworthy. You can trust Select to be your faithful shopping guide for all the right reasons. Happy shopping!
| english |
<reponame>flavorjones/DOMPurify
const commonjs = require("rollup-plugin-commonjs");
const includePaths = require("rollup-plugin-includepaths");
const rollupConfig = require("../rollup.config.js");
const customLaunchers = require("./karma.custom-launchers.config.js")
.customLaunchers;
const browsers = require("./karma.custom-launchers.config.js").browsers;
rollupConfig.plugins.push(
commonjs(),
includePaths({
include: {
purify: "dist/purify.js",
"purify.min": "dist/purify.min.js"
}
})
);
rollupConfig.output.format = "umd";
module.exports = function(config) {
config.set({
autoWatch: true,
basePath: "../",
frameworks: ["qunit"],
files: [
"node_modules/jquery/dist/jquery.js",
"node_modules/qunit-parameterize/qunit-parameterize.js",
"test/config/setup.js",
"test/**/*.spec.js"
],
preprocessors: {
"src/*.js": ["rollup"],
"test/**/*.spec.js": ["rollup"]
},
reporters: ["progress"],
exclude: [],
port: 9876,
browserStack: {
project: "DOMPurify",
username: process.env.BS_USERNAME,
accessKey: process.env.BS_ACCESSKEY
},
rollupPreprocessor: rollupConfig,
customLaunchers,
browsers,
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 1,
browserNoActivityTimeout: 240000,
captureTimeout: 240000,
plugins: [
"karma-chrome-launcher",
"karma-browserstack-launcher",
"karma-firefox-launcher",
"karma-qunit",
"karma-rollup-preprocessor"
],
singleRun: true,
colors: true,
logLevel: config.LOG_INFO
});
};
| javascript |
{
"name": "<NAME>",
"tel": "67321881",
"fax": "67361652",
"licensee": "THE CARDIAC CENTRE PTE. LTD.",
"licensePeriod": "15/06/2017 to 14/06/2022",
"licenseClass": "[ 5 Years ]",
"hciCode": "9402437",
"address": "3 MOUNT ELZIABETH, MOUNT ELIZABETH MEDICAL CENTRE, #15-11 Singapore 228510",
"doctorInCharge": [
{
"name": "<NAME>",
"qualifications": [
"MB BCh BAO (University of Dublin, Ireland) 1967",
"MRCP (Int Med) (Royal College of Physicians, Ireland) 1981",
"FAMS (Cardiology) (Academy of Medicine, Singapore) 1986",
"FRCP (Int Med) (Royal College of Physicians, Ireland) 1987"
],
"specialties": [
"Cardiology"
]
}
],
"detailedServices": {
"Specialist Medical": [
"Cardiology"
]
}
} | json |
<gh_stars>0
[
{
"id": 1,
"title": "React JS",
"issuedBy": "freeCodeCamp.org",
"icon": "react",
"thumb": "https://cdn.worldvectorlogo.com/logos/react.svg"
},
{
"id": 2,
"title": "Typescript",
"issuedBy": "freeCodeCamp.org",
"icon": "js",
"thumb": "https://ostrowski.ninja/static/1482fb398d82ef51cfcfdbcd55e1ec03/a26eb/ts.png"
},
{
"id": 3,
"title": "VueJS",
"issuedBy": "freeCodeCamp.org",
"icon": "vuejs",
"thumb": "https://upload.wikimedia.org/wikipedia/commons/f/f1/Vue.png"
},
{
"id": 5,
"title": "HTML(5)",
"issuedBy": "freeCodeCamp.org",
"icon": "html5",
"thumb": "https://www.w3.org/html/logo/downloads/HTML5_1Color_Black.png"
},
{
"id": 6,
"title": "(S)CSS",
"issuedBy": "freeCodeCamp.org",
"icon": "sass",
"thumb": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Sass_Logo_Color.svg/1280px-Sass_Logo_Color.svg.png"
}
]
| json |
.fuelux-icon-add-hover, .fuelux-icon-add:hover, button:hover > .fuelux-icon-add , .glyphicon-add-hover, .glyphicon-add:hover, button:hover > .glyphicon-add { background-image: url('png/add-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-add, .glyphicon-add { background-image: url('png/add.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-east-hover, .fuelux-icon-arrow-east:hover, button:hover > .fuelux-icon-arrow-east , .glyphicon-arrow-east-hover, .glyphicon-arrow-east:hover, button:hover > .glyphicon-arrow-east { background-image: url('png/arrow-east-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-east, .glyphicon-arrow-east { background-image: url('png/arrow-east.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-north-hover, .fuelux-icon-arrow-north:hover, button:hover > .fuelux-icon-arrow-north , .glyphicon-arrow-north-hover, .glyphicon-arrow-north:hover, button:hover > .glyphicon-arrow-north { background-image: url('png/arrow-north-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-north, .glyphicon-arrow-north { background-image: url('png/arrow-north.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-south-hover, .fuelux-icon-arrow-south:hover, button:hover > .fuelux-icon-arrow-south , .glyphicon-arrow-south-hover, .glyphicon-arrow-south:hover, button:hover > .glyphicon-arrow-south { background-image: url('png/arrow-south-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-south, .glyphicon-arrow-south { background-image: url('png/arrow-south.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-west-hover, .fuelux-icon-arrow-west:hover, button:hover > .fuelux-icon-arrow-west , .glyphicon-arrow-west-hover, .glyphicon-arrow-west:hover, button:hover > .glyphicon-arrow-west { background-image: url('png/arrow-west-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-arrow-west, .glyphicon-arrow-west { background-image: url('png/arrow-west.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-breadcrumb, .glyphicon-breadcrumb { background-image: url('png/breadcrumb.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-calendar-hover, .fuelux-icon-calendar:hover, button:hover > .fuelux-icon-calendar , .glyphicon-calendar-hover, .glyphicon-calendar:hover, button:hover > .glyphicon-calendar { background-image: url('png/calendar-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-calendar, .glyphicon-calendar { background-image: url('png/calendar.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-down-hover, .fuelux-icon-caret-down:hover, button:hover > .fuelux-icon-caret-down , .glyphicon-caret-down-hover, .glyphicon-caret-down:hover, button:hover > .glyphicon-caret-down { background-image: url('png/caret-down-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-down, .glyphicon-caret-down { background-image: url('png/caret-down.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-left-hover, .fuelux-icon-caret-left:hover, button:hover > .fuelux-icon-caret-left , .glyphicon-caret-left-hover, .glyphicon-caret-left:hover, button:hover > .glyphicon-caret-left { background-image: url('png/caret-left-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-left, .glyphicon-caret-left { background-image: url('png/caret-left.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-right-hover, .fuelux-icon-caret-right:hover, button:hover > .fuelux-icon-caret-right , .glyphicon-caret-right-hover, .glyphicon-caret-right:hover, button:hover > .glyphicon-caret-right { background-image: url('png/caret-right-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-right, .glyphicon-caret-right { background-image: url('png/caret-right.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-up-hover, .fuelux-icon-caret-up:hover, button:hover > .fuelux-icon-caret-up , .glyphicon-caret-up-hover, .glyphicon-caret-up:hover, button:hover > .glyphicon-caret-up { background-image: url('png/caret-up-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-caret-up, .glyphicon-caret-up { background-image: url('png/caret-up.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-channel-pin-blue, .glyphicon-channel-pin-blue { background-image: url('png/channel-pin-blue.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-channel-pin-green, .glyphicon-channel-pin-green { background-image: url('png/channel-pin-green.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-channel-pin-red, .glyphicon-channel-pin-red { background-image: url('png/channel-pin-red.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-channel-pin, .glyphicon-channel-pin { background-image: url('png/channel-pin.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-active-hover, .fuelux-icon-checkbox:active:hover, button:active:hover > .fuelux-icon-checkbox , .glyphicon-checkbox-active-hover, .glyphicon-checkbox:active:hover, button:active:hover > .glyphicon-checkbox { background-image: url('png/checkbox-active-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-active, .fuelux-icon-checkbox:active, button:active > .fuelux-icon-checkbox , .glyphicon-checkbox-active, .glyphicon-checkbox:active, button:active > .glyphicon-checkbox { background-image: url('png/checkbox-active.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-checked-disabled, .glyphicon-checkbox-checked-disabled { background-image: url('png/checkbox-checked-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-checked-hover-active, .fuelux-icon-checkbox:checked:active:hover, button:active:hover > .fuelux-icon-checkbox:checked , .glyphicon-checkbox-checked-hover-active, .glyphicon-checkbox:checked:active:hover, button:active:hover > .glyphicon-checkbox:checked { background-image: url('png/checkbox-checked-hover-active.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-checked-hover, .fuelux-icon-checkbox-checked:hover, button:hover > .fuelux-icon-checkbox-checked , .glyphicon-checkbox-checked-hover, .glyphicon-checkbox-checked:hover, button:hover > .glyphicon-checkbox-checked { background-image: url('png/checkbox-checked-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-checked, .glyphicon-checkbox-checked { background-image: url('png/checkbox-checked.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-disabled, .glyphicon-checkbox-disabled { background-image: url('png/checkbox-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-hover, .fuelux-icon-checkbox:hover, button:hover > .fuelux-icon-checkbox , .glyphicon-checkbox-hover, .glyphicon-checkbox:hover, button:hover > .glyphicon-checkbox { background-image: url('png/checkbox-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-indeterminate-disabled, .glyphicon-checkbox-indeterminate-disabled { background-image: url('png/checkbox-indeterminate-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-indeterminate-hover, .fuelux-icon-checkbox-indeterminate:hover, button:hover > .fuelux-icon-checkbox-indeterminate , .glyphicon-checkbox-indeterminate-hover, .glyphicon-checkbox-indeterminate:hover, button:hover > .glyphicon-checkbox-indeterminate { background-image: url('png/checkbox-indeterminate-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox-indeterminate, .glyphicon-checkbox-indeterminate { background-image: url('png/checkbox-indeterminate.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checkbox, .glyphicon-checkbox { background-image: url('png/checkbox.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checked-indicator-green, .glyphicon-checked-indicator-green { background-image: url('png/checked-indicator-green.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checked-indicator-grey, .glyphicon-checked-indicator-grey { background-image: url('png/checked-indicator-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checked-indicator-white, .glyphicon-checked-indicator-white { background-image: url('png/checked-indicator-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-checked-indicator, .glyphicon-checked-indicator { background-image: url('png/checked-indicator.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-chevron-down, .glyphicon-chevron-down { background-image: url('png/chevron-down.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-chevron-left-hover, .fuelux-icon-chevron-left:hover, button:hover > .fuelux-icon-chevron-left , .glyphicon-chevron-left-hover, .glyphicon-chevron-left:hover, button:hover > .glyphicon-chevron-left { background-image: url('png/chevron-left-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-chevron-left, .glyphicon-chevron-left { background-image: url('png/chevron-left.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-chevron-right-hover, .fuelux-icon-chevron-right:hover, button:hover > .fuelux-icon-chevron-right , .glyphicon-chevron-right-hover, .glyphicon-chevron-right:hover, button:hover > .glyphicon-chevron-right { background-image: url('png/chevron-right-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-chevron-right, .glyphicon-chevron-right { background-image: url('png/chevron-right.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-chevron-up, .glyphicon-chevron-up { background-image: url('png/chevron-up.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-close-content-block, .glyphicon-close-content-block { background-image: url('png/close-content-block.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-copy-hover, .fuelux-icon-copy:hover, button:hover > .fuelux-icon-copy , .glyphicon-copy-hover, .glyphicon-copy:hover, button:hover > .glyphicon-copy { background-image: url('png/copy-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-copy, .glyphicon-copy { background-image: url('png/copy.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-danger, .glyphicon-danger { background-image: url('png/danger.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-default-size-hover, .fuelux-icon-default-size:hover, button:hover > .fuelux-icon-default-size , .glyphicon-default-size-hover, .glyphicon-default-size:hover, button:hover > .glyphicon-default-size { background-image: url('png/default-size-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-default-size, .glyphicon-default-size { background-image: url('png/default-size.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-delete, .glyphicon-delete { background-image: url('png/delete.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-dot-hover, .fuelux-icon-dot:hover, button:hover > .fuelux-icon-dot , .glyphicon-dot-hover, .glyphicon-dot:hover, button:hover > .glyphicon-dot { background-image: url('png/dot-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-dot, .glyphicon-dot { background-image: url('png/dot.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-download-document-hover, .fuelux-icon-download-document:hover, button:hover > .fuelux-icon-download-document , .glyphicon-download-document-hover, .glyphicon-download-document:hover, button:hover > .glyphicon-download-document { background-image: url('png/download-document-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-download-document, .glyphicon-download-document { background-image: url('png/download-document.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-download-hover, .fuelux-icon-download:hover, button:hover > .fuelux-icon-download , .glyphicon-download-hover, .glyphicon-download:hover, button:hover > .glyphicon-download { background-image: url('png/download-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-download, .glyphicon-download { background-image: url('png/download.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-email-hover, .fuelux-icon-email:hover, button:hover > .fuelux-icon-email , .glyphicon-email-hover, .glyphicon-email:hover, button:hover > .glyphicon-email { background-image: url('png/email-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-email, .glyphicon-email { background-image: url('png/email.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-facebook-page, .glyphicon-facebook-page { background-image: url('png/facebook-page.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-facebook, .glyphicon-facebook { background-image: url('png/facebook.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-folder-close, .glyphicon-folder-close { background-image: url('png/folder-close.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-folder-open, .glyphicon-folder-open { background-image: url('png/folder-open.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-full-size-hover, .fuelux-icon-full-size:hover, button:hover > .fuelux-icon-full-size , .glyphicon-full-size-hover, .glyphicon-full-size:hover, button:hover > .glyphicon-full-size { background-image: url('png/full-size-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-full-size, .glyphicon-full-size { background-image: url('png/full-size.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gear-blue, .glyphicon-gear-blue { background-image: url('png/gear-blue.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gear-grey, .glyphicon-gear-grey { background-image: url('png/gear-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gear-white, .glyphicon-gear-white { background-image: url('png/gear-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gears-blue, .glyphicon-gears-blue { background-image: url('png/gears-blue.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gears-grey, .glyphicon-gears-grey { background-image: url('png/gears-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gears-white, .glyphicon-gears-white { background-image: url('png/gears-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gridview-columns-configure, .glyphicon-gridview-columns-configure { background-image: url('png/gridview-columns-configure.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gridview-columns, .glyphicon-gridview-columns { background-image: url('png/gridview-columns.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gridview-list, .glyphicon-gridview-list { background-image: url('png/gridview-list.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gridview-paragraph, .glyphicon-gridview-paragraph { background-image: url('png/gridview-paragraph.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gridview-performance, .glyphicon-gridview-performance { background-image: url('png/gridview-performance.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-gridview-thumbnail, .glyphicon-gridview-thumbnail { background-image: url('png/gridview-thumbnail.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-help-hover, .fuelux-icon-help:hover, button:hover > .fuelux-icon-help , .glyphicon-help-hover, .glyphicon-help:hover, button:hover > .glyphicon-help { background-image: url('png/help-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-help, .glyphicon-help { background-image: url('png/help.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-info, .glyphicon-info { background-image: url('png/info.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-line, .glyphicon-line { background-image: url('png/line.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-loader, .glyphicon-loader { background-image: url('png/loader.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-message-type-in, .glyphicon-message-type-in { background-image: url('png/message-type-in.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-message-type-out, .glyphicon-message-type-out { background-image: url('png/message-type-out.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-minus-sign-disabled, .glyphicon-minus-sign-disabled { background-image: url('png/minus-sign-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-minus-sign-grey, .glyphicon-minus-sign-grey { background-image: url('png/minus-sign-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-minus-sign-white, .glyphicon-minus-sign-white { background-image: url('png/minus-sign-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-minus-sign, .glyphicon-minus-sign { background-image: url('png/minus-sign.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-mobile-push, .glyphicon-mobile-push { background-image: url('png/mobile-push.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-mobile-sms-deprecated, .glyphicon-mobile-sms-deprecated { background-image: url('png/mobile-sms-deprecated.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-mobile-sms, .glyphicon-mobile-sms { background-image: url('png/mobile-sms.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-pencil-hover, .fuelux-icon-pencil:hover, button:hover > .fuelux-icon-pencil , .glyphicon-pencil-hover, .glyphicon-pencil:hover, button:hover > .glyphicon-pencil { background-image: url('png/pencil-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-pencil, .glyphicon-pencil { background-image: url('png/pencil.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-people, .glyphicon-people { background-image: url('png/people.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-person, .glyphicon-person { background-image: url('png/person.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-plus-sign-disabled, .glyphicon-plus-sign-disabled { background-image: url('png/plus-sign-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-plus-sign-grey, .glyphicon-plus-sign-grey { background-image: url('png/plus-sign-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-plus-sign-white, .glyphicon-plus-sign-white { background-image: url('png/plus-sign-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-plus-sign, .glyphicon-plus-sign { background-image: url('png/plus-sign.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-active-hover, .fuelux-icon-radio-button:active:hover, button:active:hover > .fuelux-icon-radio-button , .glyphicon-radio-button-active-hover, .glyphicon-radio-button:active:hover, button:active:hover > .glyphicon-radio-button { background-image: url('png/radio-button-active-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-active, .fuelux-icon-radio-button:active, button:active > .fuelux-icon-radio-button , .glyphicon-radio-button-active, .glyphicon-radio-button:active, button:active > .glyphicon-radio-button { background-image: url('png/radio-button-active.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-checked-disabled, .glyphicon-radio-button-checked-disabled { background-image: url('png/radio-button-checked-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-checked-hover-active, .fuelux-icon-radio-button:checked:active:hover, button:active:hover > .fuelux-icon-radio-button:checked , .glyphicon-radio-button-checked-hover-active, .glyphicon-radio-button:checked:active:hover, button:active:hover > .glyphicon-radio-button:checked { background-image: url('png/radio-button-checked-hover-active.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-checked-hover, .fuelux-icon-radio-button-checked:hover, button:hover > .fuelux-icon-radio-button-checked , .glyphicon-radio-button-checked-hover, .glyphicon-radio-button-checked:hover, button:hover > .glyphicon-radio-button-checked { background-image: url('png/radio-button-checked-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-checked, .glyphicon-radio-button-checked { background-image: url('png/radio-button-checked.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-disabled, .glyphicon-radio-button-disabled { background-image: url('png/radio-button-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button-hover, .fuelux-icon-radio-button:hover, button:hover > .fuelux-icon-radio-button , .glyphicon-radio-button-hover, .glyphicon-radio-button:hover, button:hover > .glyphicon-radio-button { background-image: url('png/radio-button-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-radio-button, .glyphicon-radio-button { background-image: url('png/radio-button.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-refresh-disabled, .glyphicon-refresh-disabled { background-image: url('png/refresh-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-refresh-hover, .fuelux-icon-refresh:hover, button:hover > .fuelux-icon-refresh , .glyphicon-refresh-hover, .glyphicon-refresh:hover, button:hover > .glyphicon-refresh { background-image: url('png/refresh-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-refresh, .glyphicon-refresh { background-image: url('png/refresh.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-remove-hover, .fuelux-icon-remove:hover, button:hover > .fuelux-icon-remove , .glyphicon-remove-hover, .glyphicon-remove:hover, button:hover > .glyphicon-remove { background-image: url('png/remove-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-remove, .glyphicon-remove { background-image: url('png/remove.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-return-to-top-hover, .fuelux-icon-return-to-top:hover, button:hover > .fuelux-icon-return-to-top , .glyphicon-return-to-top-hover, .glyphicon-return-to-top:hover, button:hover > .glyphicon-return-to-top { background-image: url('png/return-to-top-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-return-to-top, .glyphicon-return-to-top { background-image: url('png/return-to-top.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-schematic, .glyphicon-schematic { background-image: url('png/schematic.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-search-active-hover, .fuelux-icon-search:active:hover, button:active:hover > .fuelux-icon-search , .glyphicon-search-active-hover, .glyphicon-search:active:hover, button:active:hover > .glyphicon-search { background-image: url('png/search-active-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-search-active, .fuelux-icon-search:active, button:active > .fuelux-icon-search , .glyphicon-search-active, .glyphicon-search:active, button:active > .glyphicon-search { background-image: url('png/search-active.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-search-hover, .fuelux-icon-search:hover, button:hover > .fuelux-icon-search , .glyphicon-search-hover, .glyphicon-search:hover, button:hover > .glyphicon-search { background-image: url('png/search-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-search, .glyphicon-search { background-image: url('png/search.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-sort-by-alphabet, .glyphicon-sort-by-alphabet { background-image: url('png/sort-by-alphabet.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-spyglass-green, .glyphicon-spyglass-green { background-image: url('png/spyglass-green.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-spyglass-grey, .glyphicon-spyglass-grey { background-image: url('png/spyglass-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-spyglass-white, .glyphicon-spyglass-white { background-image: url('png/spyglass-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-spyglass, .glyphicon-spyglass { background-image: url('png/spyglass.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-subtract-hover, .fuelux-icon-subtract:hover, button:hover > .fuelux-icon-subtract , .glyphicon-subtract-hover, .glyphicon-subtract:hover, button:hover > .glyphicon-subtract { background-image: url('png/subtract-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-subtract, .glyphicon-subtract { background-image: url('png/subtract.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-success, .glyphicon-success { background-image: url('png/success.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-down-blue, .glyphicon-thumbs-down-blue { background-image: url('png/thumbs-down-blue.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-down-green, .glyphicon-thumbs-down-green { background-image: url('png/thumbs-down-green.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-down-grey, .glyphicon-thumbs-down-grey { background-image: url('png/thumbs-down-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-down-orange, .glyphicon-thumbs-down-orange { background-image: url('png/thumbs-down-orange.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-down-red, .glyphicon-thumbs-down-red { background-image: url('png/thumbs-down-red.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-down-white, .glyphicon-thumbs-down-white { background-image: url('png/thumbs-down-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-up-blue, .glyphicon-thumbs-up-blue { background-image: url('png/thumbs-up-blue.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-up-green, .glyphicon-thumbs-up-green { background-image: url('png/thumbs-up-green.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-up-grey, .glyphicon-thumbs-up-grey { background-image: url('png/thumbs-up-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-up-orange, .glyphicon-thumbs-up-orange { background-image: url('png/thumbs-up-orange.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-up-red, .glyphicon-thumbs-up-red { background-image: url('png/thumbs-up-red.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-thumbs-up-white, .glyphicon-thumbs-up-white { background-image: url('png/thumbs-up-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-trash-hover, .fuelux-icon-trash:hover, button:hover > .fuelux-icon-trash , .glyphicon-trash-hover, .glyphicon-trash:hover, button:hover > .glyphicon-trash { background-image: url('png/trash-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-trash, .glyphicon-trash { background-image: url('png/trash.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-east-hover, .fuelux-icon-triangle-east:hover, button:hover > .fuelux-icon-triangle-east , .glyphicon-triangle-east-hover, .glyphicon-triangle-east:hover, button:hover > .glyphicon-triangle-east { background-image: url('png/triangle-east-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-east, .glyphicon-triangle-east { background-image: url('png/triangle-east.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-north-hover, .fuelux-icon-triangle-north:hover, button:hover > .fuelux-icon-triangle-north , .glyphicon-triangle-north-hover, .glyphicon-triangle-north:hover, button:hover > .glyphicon-triangle-north { background-image: url('png/triangle-north-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-north, .glyphicon-triangle-north { background-image: url('png/triangle-north.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-south-hover, .fuelux-icon-triangle-south:hover, button:hover > .fuelux-icon-triangle-south , .glyphicon-triangle-south-hover, .glyphicon-triangle-south:hover, button:hover > .glyphicon-triangle-south { background-image: url('png/triangle-south-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-south, .glyphicon-triangle-south { background-image: url('png/triangle-south.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-west-hover, .fuelux-icon-triangle-west:hover, button:hover > .fuelux-icon-triangle-west , .glyphicon-triangle-west-hover, .glyphicon-triangle-west:hover, button:hover > .glyphicon-triangle-west { background-image: url('png/triangle-west-hover.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-triangle-west, .glyphicon-triangle-west { background-image: url('png/triangle-west.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-twitter, .glyphicon-twitter { background-image: url('png/twitter.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-warning, .glyphicon-warning { background-image: url('png/warning.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-x-blue-disabled, .glyphicon-x-blue-disabled { background-image: url('png/x-blue-disabled.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-x-blue, .glyphicon-x-blue { background-image: url('png/x-blue.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-x-grey, .glyphicon-x-grey { background-image: url('png/x-grey.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-x-white, .glyphicon-x-white { background-image: url('png/x-white.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-zoom-in, .glyphicon-zoom-in { background-image: url('png/zoom-in.png'); background-repeat: no-repeat; .fuelux-icon; }
.fuelux-icon-zoom-out, .glyphicon-zoom-out { background-image: url('png/zoom-out.png'); background-repeat: no-repeat; .fuelux-icon; }
| css |
For most parts of India that were reeling under intense heatwave during the past week, respite is likely in next 48 hours as multiple weather systems make an expected appearance over the weekend. As thundershowers and dust storms lash several parts of North India and Monsoon approaches Peninsular India, temperatures are expected to crawl back to normal, resulting in much-anticipated relief from the simmering heat that claimed thousands of lives so far.
Andhra Pradesh and Telangana remained the worst hit states with highest number of deaths reported in last one week. Heatwave is also present in Vidarbha, Chhattisgarh, Odisha, Jharkhand and parts of east Madhya Pradesh.
The Western Disturbance over Jammu and Kashmir and an induced cyclonic circulation over central Pakistan and adjoining Rajasthan brought fairly widespread rainfall over central and west Pakistan, during last 24 hours. Accordingly, day temperatures have come down by 5 to 6 degrees over the region. Southwesterly winds coming from these areas will impact weather in northwest India as well. Heatwave has already abated from entire North India and now temperatures will drop further.
Another feeble cyclonic circulation over Chhattisgarh and adjoining Vidarbha region will bring dark clouds and thunderstorm over the region.
The trough from the cyclonic circulation over East India will extend up to extreme southern parts of the Peninsula, across Odisha, Chhattisgarh and Andhra Pradesh. We could expect some thundershowers all along the well-marked trough line. These two systems will bring down temperatures considerably over Central India and finally lead to abatement of heat wave conditions.
Heat wave conditions are still prevailing over parts of Telangana. In Hyderabad, the mercury was 4 degrees above normal at 42.5°C on Thursday. Nizamabad was hotter with maximum at 44.7°C. Here as well, the heatwave will diminish soon.
| english |
import random
loc = 0
HOME = 100
S1H = 98
S1T = 22
S2H = 76
S2T = 62
L1S = 5
L1E = 75
L2S = 24
L2E = 38
COUNTER = 0
while 1:
#print('Press Any Key to dice! ')
input('Press Any Key to dice! ')
r = random.randrange(1,7)
loc = loc + r
if loc == S1H:
print('Ohh... big snake!!')
loc = S1T
elif loc == S2H:
print('Ohh... snake!!')
loc = S2T
elif loc == L1S:
print('Wow... Yayyy big ladder!!')
loc = L1E
elif loc == L2S:
print('Wow... Yayyy ladder!!')
loc = L2E
elif loc > HOME:
print('Ekkk')
loc = HOME - ( loc - HOME )
elif loc == HOME:
print('Wow... I WON')
break;
print('\nNew Location is ',loc)
COUNTER = COUNTER +1
print("The total game loop is ",COUNTER)
| python |
Free Fire has collaborated with numerous personalities, shows, and more over the past few years. Such affiliations have resulted in the introduction of new events and in-game content like themed cosmetic items. In a new leak, the data miner @macbruh_ff has disclosed that the game is set to collaborate with Demon Slayer in the upcoming OB41 update, which is anticipated to release in the coming weeks.
Just like previous anime and manga-based collaborations, there will undoubtedly be a lot of things based on the different characters of Demon Slayer. Those who are fans of both the game and Demon Slayer will particularly relish this crossover.
Further details about the probable upcoming collaboration are in the section below.
Demon Slayer: Kimetsu no Yaiba is a top-rated Japanese manga series, and the anime on the same has been a huge success globally. The collaboration with Free Fire will certainly help attract more attention from the game's players who aren't particularly aware of it.
This is not the first time that Demon Slayer is collaborating with the battle royale title, and there has already been a region-specific crossover that took place a few years back with Free Fire Thailand. Like the last time, more themed rewards are expected to make their way into the game once the collaboration goes live across the different servers.
Garena will likely confirm this collaboration on the game's social media handles in the future, with the OB41 approaching. Fans can, accordingly, stay tuned and await further news from the developers.
Apart from the Demon Slayer collaboration, several other leaks have emerged regarding the OB41 update of the battle royale title. In another post, @macbruh_ff has leaked that the following will get added in the next version of the game:
- BR Rank: PARAFAL-T36 (Special LUNA Weapon)
It is worth noting that these are only leaks, and the developers are yet to confirm them.
Disclaimer: Free Fire is banned in India, and players belonging to the nation are recommended not to play the game on their mobile devices. They may, however, continue enjoying the MAX version since it was not prohibited within the nation.
Check out the latest Free Fire MAX redeem codes here. | english |
Prime Minister Narendra Modi on Thursday announced that there are huge renewable energy deployment plans for India for the next decade which are likely to generate business prospects of around $20 billion per year.
NEW DELHI Prime Minister Narendra Modi on Thursday announced that there are huge renewable energy deployment plans for India for the next decade which are likely to generate business prospects of around $20 billion per year.
In his address after inaugurating the 3rd Global Renewable Energy Investment Meeting and Expo (RE-Invest 2020), through video conferencing, he invited investors, developers and businesses to join India's renewable energy journey.
He said that after the success of Performance Linked Incentives (PLI) in electronics manufacturing, the government has decided to give similar incentives to high efficiency solar modules, as per an official statement.
Stressing that ensuring 'ease of doing business' is their utmost priority and dedicated Project Development Cells have been established to facilitate investors, he said that in the last 6 years, India has travelled on an "unparalleled journey".
The Prime Minister noted that India's renewable power capacity is the fourth largest in the world and is growing at the fastest speed among all major countries. The renewable energy capacity in India is currently 136 Giga Watts, which is about 36 per cent of its total capacity.
He said that India's annual renewable energy capacity addition has been exceeding that of coal based thermal power since 2017, and that in the last six years, India has increased installed renewable energy capacity by two and half times.
Modi was of the view that investing in renewable energy early on even when it was not affordable has helped in achieving scale, which is bringing costs down. (IANS) | english |
The market regulator also introduced guidelines regarding the exclusion of an investor from an investment in AIF. ( Image Source : Getty )
Market regulator SEBI has asked the alternative investment funds (AIFs) to provide an option of a "direct plan" for investors and announced a trail model for the distribution commission on Monday. SEBI said that the new rules are aimed at providing flexibility to investors for investing in AIFs, bringing transparency in expenses, and curbing mis-selling.
The market regulator also introduced guidelines regarding the exclusion of an investor from an investment in AIF.
The SEBI said, "It has been observed from the information disclosed in PPMs that, there is inconsistency and lack of adequate disclosure with respect to certain industry practices. "
Alternative Investment Funds or AIFs are funds established via privately pooled investment vehicle that collects funds from sophisticated investors, whether Indian or foreign, for investing in accordance with a defined investment policy for the benefit of its investors. It typically caters to high net worth individuals (HNIs) as they entail an investment of more than Rs 1 crore and above in one go.
SEBI in its circular said, "Schemes of AIFs shall have an option of ‘Direct Plan’ for investors. Such Direct Plan shall not entail any distribution fee/placement fee. AIFs shall ensure that investors who approach the AIF through a SEBI registered intermediary which is separately charging the investor any fee (such as advisory fee or portfolio management fee), are on-boarded via Direct Plan only. "
The circular regarding the 'Direct Plan' will be applicable for onboarding from May 1.
Introducing a 'Trail Model' for distribution commission, SEBI said that category III AIFs would charge distribution fees from investors only on an equal trail basis. It means no upfront distribution fee would be charged by such AIFs directly or indirectly from their investors.
Further, any distribution charge paid would be only from the management fee received by the managers of such category III AIFs.
For the other two categories, AIFs may pay up to one-third of the total distribution fee to the distributors on an upfront basis, and the remaining distribution fee would be paid to the distributors on an equal trail basis over the tenure of the fund.
Also, Sebi asked AIFs to disclose distribution fees to the investors at the time of on-boarding.
The capital markets regulator has already barred upfront commissions for portfolio management services and mutual funds.
The upfront commission is a one-time payment made by a fund to a distributor on selling a scheme to an investor. Trail commission, on the other hand, is a recurring fee paid to a distributor until the investment is withdrawn.
With regard to excusing or excluding an investor, SEBI said that an AIF may excuse its investor from participating in a particular investment in certain circumstances.
These include if an investor, based on the opinion of a legal professional, confirms that its participation in the investment opportunity would be in violation of the rule, or if the investor as part of an agreement signed with the AIF, had disclosed to the manager that its participation in such investment opportunity would be in contravention to the internal policy of the investor.
Further, the manager will have to ensure that the terms of such an agreement with the investor include reporting any change in the disclosed internal policy, to the AIF, within 15 days of such change.
Moreover, an AIF may exclude an investor from participating in a particular investment opportunity, if the manager of the AIF is satisfied that the participation of such an investor in the investment opportunity would lead to the scheme of the AIF being in violation of the rule or would result in a material adverse effect on the scheme of the AIF.
If the investor of an AIF is also an AIF or any other investment vehicle, such investor may be partially excluded from participation in an investment opportunity to the extent of the contribution of the investment vehicle’s underlying investors who are to be excused from a such investment opportunity.
The manager will have to record the rationale for such exclusions along with the supporting documents. The guidelines related to excluding an investor from an AIF investment will become effective immediately.
In February 2020, the regulator introduced a template for PPM for AIFs, in order to ascertain that a certain minimum level of information in a simple and comparable format is disclosed to investors.
The PPM template provides for disclosure with respect to direct plan for investors, and constituents of fees that may be charged by the AIF, including distribution fees. | english |
Bangladesh’s pace sensation Mustafizur Rahman might have a small wiry frame, but there is one thing about him people are not aware about. The lanky pacer has huge feet and wears big shoes; even a size bigger than his skipper Mashrafe Mortaza. Not only this, the 20-year old pacer used to think he wore the biggest shoes in the business. However, this misconception of his was cleared by another cricketer; a certain Mohammad Irfan.
Mustafizur was a star performer during Sunrisers Hyderabad’s (SRH’s) victorious campaign in Indian Premier League (IPL) season 9. He even became the first overseas player to win the ‘emerging player’ award. He will now leave for England, where he will represent the County side Sussex in their NatWest T20 Blast campaign.
| english |
Lille reached the knockout stage of the Champions League for the second time when they claimed an emphatic 3-1 win at Wolfsburg and top spot in Group G on Wednesday.
The French champions needed a draw to advance but they played with ambition to end up with 11 points from six games, one ahead of RB Salzburg with goals by Burak Yilmaz, Jonathan David and Angel Gomes.
Wolfsburg, who scored a consolation goal through Renato Steffen, finished bottom of the group on five points and are eliminated from all European competitions.
The German side barely threatened while Lille, who have had a see-saw Ligue 1 season, made the most of their chances in front of barely 6,000 fans.
Jocelyn Gourvennec’s side had picked up only two points in their first three group games but they found their groove in a perfect return phase that put them on the brink of qualification ahead of kickoff.
They duly delivered to join fellow Ligue 1 club Paris St Germain into the last 16, which they had not reached since the 2006-07 season, when they were knocked out by Manchester United.
They went ahead in the 11th minute when Yilmaz netted with a left-footed effort after being set up by Nanitamo Ikone at the end of a quick counter-attack.
Wolfsburg stepped up a gear after the break but it was Lille who found the back of the net again in the 72nd minute after a quick combination between Gomes and David had put the hosts’ defence off balance.
Canada striker David is the first Lille player to score in three consecutive Champions League matches.
Five minutes later, Gomes, who had come on as a 68th-minute substitute, wrapped it up with a right-footed shot courtesy of Ikone’s second assist of the night.
Steffen pulled one back with a nice 20-metre strike one minute from time but it was too little, too late for Wolfsburg.
Read all the Latest Sports News here(This story has not been edited by News18 staff and is published from a syndicated news agency feed - Reuters) | english |
<reponame>periodic/AdventOfCode2020<filename>Day11/README.md
# Day 11
This problem is basically like the Game of Life, but with a complication that some squares can never be active and a little twist on the rules in part two. In both parts, each cell acts independently, but with different rules for whether to turn on and off. Clearly I can create a system that runs the game and takes in the rules as an argument.
The representation of the grid is probably the most interesting initial question. It's clearly a two-dimensional array/matrix, but how to represent that? My mind immediately goes to `Array`, but has a very awkward interface, in my opinion. I could use a `Map`, but that seems like a waste when the structure is sparse. Another one I can use is a `Set` which realizes that instead of storing simple bits for active or inactive, it's quite easy to just store the locations that are active and not waste time storing all the others.
I resolved to make this work with an `Array` since I haven't used them often and they seem useful. In the past I have struggled with the `ST` monad, so I didn't want to add that complication.
Ultimately, a fairly simple solution with `Array` and otherwise naive algorithms resulted in a relatively fast solution, taking less than 350ms per part, which was enough to move on.
## Optimizations
There is one major thing that stands out for optimization: updating the data-structure. I'm intrigued by the idea of representing the grid as a pair of sets. If it were just two states we could do one, but it is three so I need two. I also plan to use `IntSet` because it is appreciably faster. This means mapping `R²⇒R`, but that is easy with fixed bounds.
With a quick hack of this method it's not much faster, less than a 2x speed-up. It still suffers from all the problems of having to do a lot of lookups and incremental updates of immutable data-structures. There may be some tricks I'm missing or some strictness I'm missing, but I'm not sure it's worth the time compared to...
Let's try using ST! We should be able to use unboxed mutable arrays to greatly reduce the work. This turned out to be a huge pain, mostly due to the way that the ST monad works with its existential qualifier. I spent at least half an hour just trying to figure out why `Grid . runSTUArray $ op` didn't work only to discover later that `Grid (runSTUArray op)` does work. It seems to lose it's existential qualifier in the former case.
Ultimately, I got the ST version running and it's much faster, by a factor of about 10x.
### Final Benchmark
```
Parsing input...
benchmarking...
time 264.2 μs (261.3 μs .. 267.6 μs)
0.999 R² (0.998 R² .. 0.999 R²)
mean 269.8 μs (267.4 μs .. 272.1 μs)
std dev 7.975 μs (6.753 μs .. 9.312 μs)
variance introduced by outliers: 24% (moderately inflated)
================================================================================
Running Part 1...
benchmarking...
time 337.2 ms (334.7 ms .. 339.9 ms)
1.000 R² (1.000 R² .. 1.000 R²)
mean 341.5 ms (339.4 ms .. 343.4 ms)
std dev 2.482 ms (1.168 ms .. 3.108 ms)
variance introduced by outliers: 19% (moderately inflated)
Number of occupied seats after settling (Adjacent): 2470
================================================================================
Running Part 2...
benchmarking...
time 430.0 ms (398.4 ms .. 460.5 ms)
0.999 R² (0.997 R² .. 1.000 R²)
mean 449.4 ms (439.4 ms .. 459.1 ms)
std dev 11.40 ms (9.801 ms .. 11.80 ms)
variance introduced by outliers: 19% (moderately inflated)
Number of occupied seats after settling (LOS): 2259
```
| markdown |
{"rxjs.umd.js":"sha256-3+oqRv9ATgPQECZ3aNZ2bBa5mlw2MN1FbBMuy7WsB/s=","rxjs.umd.min.js":"sha256-my0fbIr+SeA55JRaBBq0dtCcgZQznPeOFjSay2igS1o="} | json |
Angul: The district administration of Angul has planned to carry out restoration and redevelopment of various roads, parks and other infrastructures in Talcher, the Coal City of Odisha, as part of ‘5 Transformative Projects of Urban Landscape’.
The project includes Health & Heritage Corridor; Library, Coal Museum & Smart Park; Talcher Stadium; Protection of Rani Park; and Renovation of Prajamandal Campus.
The district administration has drawn up a master plan for the project under the 5T Initiatives. The goal is to issue a tender soon and complete the work within a year.
While the work is in progress for the Protection of Rani Park, the work for Health & Heritage Corridor and Renovation of Prajamandal Campus has been sanctioned, and tender has been placed for Library, Coal Museum & Smart Park and Talcher Stadium.
| english |
<reponame>jesperdj/reactive-demo
package com.jesperdj.example.reactor;
import org.junit.Test;
import reactor.core.publisher.Flux;
import reactor.test.StepVerifier;
import java.time.Duration;
/**
* TestExample02: Using StepVerifier with virtual time.
*/
public class TestExample02 {
@Test
public void stepVerifierWithVirtualTime() {
StepVerifier.withVirtualTime(() -> Flux.interval(Duration.ofMinutes(1)).take(60))
.expectSubscription()
.expectNoEvent(Duration.ofSeconds(59))
.thenAwait(Duration.ofHours(1))
.expectNextCount(60)
.verifyComplete();
}
}
| java |
<reponame>dev312/Angular-Material
Space above cards: <input type="number" [formControl]="topHeightCtrl">
<button md-button (click)="showSelect=!showSelect">SHOW SELECT</button>
<div [style.height.px]="topHeightCtrl.value"></div>
<div class="demo-select">
<md-card>
<md-card-subtitle>ngModel</md-card-subtitle>
<md-select placeholder="Drink" [color]="drinksTheme" [(ngModel)]="currentDrink" [required]="drinksRequired"
[disabled]="drinksDisabled" [floatPlaceholder]="floatPlaceholder" #drinkControl="ngModel">
<md-option>None</md-option>
<md-option *ngFor="let drink of drinks" [value]="drink.value" [disabled]="drink.disabled">
{{ drink.viewValue }}
</md-option>
</md-select>
<p> Value: {{ currentDrink }} </p>
<p> Touched: {{ drinkControl.touched }} </p>
<p> Dirty: {{ drinkControl.dirty }} </p>
<p> Status: {{ drinkControl.control?.status }} </p>
<p>
<label for="floating-placeholder">Floating placeholder:</label>
<select [(ngModel)]="floatPlaceholder" id="floating-placeholder">
<option value="auto">Auto</option>
<option value="always">Always</option>
<option value="never">Never</option>
</select>
</p>
<p>
<label for="drinks-theme">Theme:</label>
<select [(ngModel)]="drinksTheme" id="drinks-theme">
<option *ngFor="let theme of availableThemes" [value]="theme.value">{{ theme.name }}</option>
</select>
</p>
<button md-button (click)="currentDrink='water-2'">SET VALUE</button>
<button md-button (click)="drinksRequired=!drinksRequired">TOGGLE REQUIRED</button>
<button md-button (click)="drinksDisabled=!drinksDisabled">TOGGLE DISABLED</button>
<button md-button (click)="drinkControl.reset()">RESET</button>
</md-card>
<md-card>
<md-card-subtitle>Multiple selection</md-card-subtitle>
<md-card-content>
<md-select multiple [color]="pokemonTheme" placeholder="Pokemon" [(ngModel)]="currentPokemon"
[required]="pokemonRequired" [disabled]="pokemonDisabled" #pokemonControl="ngModel">
<md-option *ngFor="let creature of pokemon" [value]="creature.value">
{{ creature.viewValue }}
</md-option>
</md-select>
<p> Value: {{ currentPokemon }} </p>
<p> Touched: {{ pokemonControl.touched }} </p>
<p> Dirty: {{ pokemonControl.dirty }} </p>
<p> Status: {{ pokemonControl.control?.status }} </p>
<p>
<label for="pokemon-theme">Theme:</label>
<select [(ngModel)]="pokemonTheme" id="pokemon-theme">
<option *ngFor="let theme of availableThemes" [value]="theme.value">{{ theme.name }}</option>
</select>
</p>
<button md-button (click)="setPokemonValue()">SET VALUE</button>
<button md-button (click)="pokemonRequired=!pokemonRequired">TOGGLE REQUIRED</button>
<button md-button (click)="pokemonDisabled=!pokemonDisabled">TOGGLE DISABLED</button>
<button md-button (click)="pokemonControl.reset()">RESET</button>
</md-card-content>
</md-card>
<md-card>
<md-card-subtitle>Without Angular forms</md-card-subtitle>
<md-select placeholder="Digimon" [(value)]="currentDigimon">
<md-option>None</md-option>
<md-option *ngFor="let creature of digimon" [value]="creature.value">
{{ creature.viewValue }}
</md-option>
</md-select>
<p>Value: {{ currentDigimon }}</p>
<button md-button (click)="currentDigimon='pajiramon-3'">SET VALUE</button>
<button md-button (click)="currentDigimon=null">RESET</button>
</md-card>
<md-card>
<md-card-subtitle>Option groups</md-card-subtitle>
<md-card-content>
<md-select placeholder="Pokemon" [(ngModel)]="currentPokemonFromGroup">
<md-optgroup *ngFor="let group of pokemonGroups" [label]="group.name"
[disabled]="group.disabled">
<md-option *ngFor="let creature of group.pokemon" [value]="creature.value">
{{ creature.viewValue }}
</md-option>
</md-optgroup>
</md-select>
</md-card-content>
</md-card>
<div *ngIf="showSelect">
<md-card>
<md-card-subtitle>formControl</md-card-subtitle>
<md-card-content>
<md-select placeholder="Food i would like to eat" [formControl]="foodControl">
<md-option *ngFor="let food of foods" [value]="food.value"> {{ food.viewValue }}</md-option>
</md-select>
<p> Value: {{ foodControl.value }} </p>
<p> Touched: {{ foodControl.touched }} </p>
<p> Dirty: {{ foodControl.dirty }} </p>
<p> Status: {{ foodControl.status }} </p>
<button md-button (click)="foodControl.setValue('pizza-1')">SET VALUE</button>
<button md-button (click)="toggleDisabled()">TOGGLE DISABLED</button>
<button md-button (click)="foodControl.reset()">RESET</button>
</md-card-content>
</md-card>
</div>
<div *ngIf="showSelect">
<md-card>
<md-card-subtitle>Change event</md-card-subtitle>
<md-card-content>
<md-select placeholder="Starter Pokemon" (change)="latestChangeEvent = $event">
<md-option *ngFor="let creature of pokemon" [value]="creature.value">{{ creature.viewValue }}</md-option>
</md-select>
<p> Change event value: {{ latestChangeEvent?.value }} </p>
</md-card-content>
</md-card>
</div>
</div>
<div style="height: 500px">This div is for testing scrolled selects.</div>
| html |
<filename>maelstrom/src/message/c2_hq_data_processing.rs
use crate::communication::c2::Bot;
//serialize using bincode
pub fn serialize_bincode(B: &Bot) -> Vec<u8>{
return bincode::serialize(&B).unwrap();
}
pub fn deserialize_bincode(B: &Vec<u8>) -> Bot{
return bincode::deserialize(&B).unwrap();
}
| rust |
<reponame>cordeliapeters/cordeliapeters.github.io
<!DOCTYPE html>
<html>
<head>
<title> Blog Template </title>
<link type="text/css" rel="stylesheet" href="blog_stylesheet.css"/>
</head>
<body>
<div id="name">
<h1> <NAME> </h1>
</div>
<div id= "menu">
<a href="my_blog.html"> <p> My Blog </p> </a>
<a href="projects.html"> <p> Projects </p></a>
<a href="contact-me.html"> <p> Contact Me </p> </a>
</div>
<div id= "the_blog">
<h1> Enumerable #Map </h1>
<p> A map is used when you want to transform each element in an array. It is possible to do this with a for loop, but if you want a transformed copy of the array without altering the original you should use map. The map method makes a copy of the array, so you can continue to alter the original array but also alter the new one seperatrely. </p>
<p> Map accepts a collection of code and acts upon each element in the collection. Map then returns a transformed collection. Lets take a look at an example </p>
```ruby
array= ['bob', 'sally', 'sue'].map{|name| name.capitalize}
puts array.join(", ") #=> "Bob, Sally, Sue"
```
<p> Make sense? </p>
<p> If you decide you want map to modify the array you can just use map! instead. Lets look at one more example. </p>
```ruby
array= [1, 2, 3, 4, 5].map{|a| a + a}
puts array.join(", ") #=> "2, 4, 3, 8, 10"
```
</div>
<div id="footer">
<a href="cordeliapeters.github.io.html"> <strong> Home </strong> </a>
<p> Thanks for visiting my site! Please contact me at <EMAIL> with any questions </p>
</div>
</body>
</html> | html |
window.onload = function () {
render()
}
function render () {
document.getElementById('render').onclick = function () {
var xhr = new XMLHttpRequest()
xhr.open('get','http://1172.16.31.10:3000/users/queryAll')
xhr.onreadystatechange = function(data){
if(xhr.readyState == 4){
if(xhr.status == 200){
var data = JSON.parse(data.currentTarget.response)
console.log(data)
for(var i = 0; i < data.length; i++) {
document.getElementsByClassName("result")[0].innerHTML += " id: " + data[i].id + " name: " + data[i].name + " age: " + data[i].age + "<br/>"
}
}else{
alert("error");
}
}
}
xhr.send(null);
}
} | javascript |
Newspapers (Price
MR SPEAKER The hon Minister will say what he wants to say after the calling-attention-notice is taken up here
SHRIS M. BANERJEE: I only want to mention to you one thing and you will appreciate this because you are an eminent lawyer also
MR. SPEAKER I was, not now when I am amongst the hon Members who have taken away all my eminence
SHRI S M BANERJEE They are being transferred to various States But there are two cases pending before the High Courts, one in Mysore and the other at Calcutta So, how can a decision be taken? My name has been maligned by one of the senior officers and he has said that I had agreed to this transfer The transfer never awaited my approval The whole question has been referred to the Prime Minister and to the Cabinet Secretary I would only request that on this question of the future of the 7000 instructors of the National Fitness Corps, nothing should be done unless the two High Court cases are decided
I may not be present here on the 22nd instant when the calling attention notice comes up. I would, therefore, submit to you that this particular fact should be borne in mind That was what I wanted to emphasise
MR. SPEAKER 1 shall not ask the hon Minister to reply now because he will reply to the calhng-attention-notice when it comes up.
NEWSPAPERS (PRICE CONTROL) BILL
(Rajya Sabha Amendments)
THE MINISTER OF STATE IN THE MINISTRY OF INFORMATION AND BROADCASTING (SHRIMATI NANDINI BATPATHY) 1 beg to move
Control) Bill
'That the following amendments made by the Rajya Sabha in the Bill to provide for the control, in the interests of the general public, of the prices of newspapers with a view to ensuring that newspapers continue to function, Im the prevailing conditions, as effective mass communication media and for securing their availability at fair prices, be taken into consideration
(1) That at page 1, line 1, for the words "Twenty second year" the words "Twenty third year" be substituted
Clause 1
MR. SPEAKER
(11) That at page 1, line 4, for the figures 1971 the figures 1972' be subsmuted"
The question is
'That the following amendments made by the Rajya Sabha in the Bill to provide for the conuol, in the interests of the general public, of the prices of newspapers with a view to ensuring that newspapers continue to function, in the prevailing conditions, as effective mass communication media and for securing their availabilny at fair prices, be taken into consideration :"Enacting Formula
(1) That at page 1, line 1, for the words "lwenty-second year" the words "Twenty-third year" be substituted
(11) That at page 1, line 4, for the figures *1971' the figures '1972' be subsrituted" ↑
MR. SPEAKER The question is
(1) That at page 1, line 1, for the words 'Twenty-second Year' the words Twenty-third Year' be substituted
D G. (Railways),
[Mr Speaker]
(11) That at page 1, line 4 for the figunes 1971' the figures '1972' be substituted"
SHRIMATI NANDINI SATPATHY I beg to move
"That the amendments made by Rajya Sabha in the Bill be agreed to" MR. SPEAKER The question is
'That the amendments made by Rajya Sabha in the Bill be agreed to" The monon was adopted.
The Lok Sabha adjourned for Lunch till fifteen minutes past Fourteen of the Clock
The Lok Sabha re-assembled after Lunch at eighteen minutes past Fourteen of the Clock
[MR DEPOTY SPEAKER in the Chair)
DEMANDS FOR GRANTS (RAILWAYS) 1972-73-Contd.
SHRI BANAMALI PATNAIK (Puri) Yesterday, I was talking about the importance of tourism, that is the main industry of the people at puri they depend mostly upon the Jagannath temple. The train services should connect the pilgrim centres of India There is a passenger from Puri to Asansol This should be converted into an express and joined as Puri Banaras express, touching Gaya also so that people may be benefited as there is a passenget from Asansol and Banaras Similarly there should be an express from Puri to Thirupathi. Pilgrims coming from the North would like to go to the South, if there are better and quick train services
Again the train connecting Orissa with Delhi is a biweekly, it is better not to travel by that tram It takes 54 hours to reach Delhi by that train whereas if you go via Howrah it takes just 36 hours Why cannot they reduce the time? It serves the most backward arcas, Madhya Pradesh, Bihar and Orissa It does not reach in time, it is always late. Most of the trains are now punctual but the Utkal Express stands four or five hours in some stations on the way and there is no dining It may be converted into a daily express They say that it could be done if Bina Jhansi line is doubled If the line is doubled it could be speeded up. But they could at least provide diesel engines, it will serve the purpose for the present the Khadagpur Badrak local should be extended to Khurda road so that the local public who attend courts could go back without wasting their time to their respective areas
There are several divisions in each There should be divisional advisory committees, which should meet once in three months or so where the local MPs MLAs and other local representatives can express their difficulties There are a large number of complaints about so many things like passenger amenities movement of coal and so many other bottlenecks At the zonal meetings it is not possible to raise these local issues The General Managers should be asked to attend at least once these divisional meetings so that the problems can be sorted out and solved That is much easier than writing a letter. If we write a letter to the General Manager, no action is taken But if we write a letter to the Minister and if he forwards it to the General Manager, some action is taken There was some difficulty about the move ment of iron ore from the mining areas I brought it to the minister's notice and some action was taken. But if I bring it to the notice of General Manager, no action is taken. It happened last year and We cannot always bring
D.G. (Railways).
the minister into the picture. The General Manager should take action if MPs write to him direct.
Previously the welfare officers were attached to the General Managers. Now they are attached to the divisional officers. But whatever complaints they bring to their notice, no action is taken. These are minor things about increment of some clerk or casual leave to be sanctioned or some other minor difficulties, but no action is taken on the report of welfare officers. If they are attached to the Goneral Managers, at least at that higher level, some action can be taken and the purpose for which the welfare officers exist can be served.
In Khurda Division, a large number of retrenchments are being made. Some dharna is going on and some people are fasting. There were several allegations against the Divisional Manager. It was raised here on the floor of this House by Mr. Chintamani Panigrahi also, but the same Divisional Manager is continuing. Something must be done in this regard.
Coming to the question of pilferages, I can give one instance how it happens. There is a steep gradient between Khurda Road and Waltair and the goods trains cannot move quickly. Because of the steep gradient, the trains slow down. Invariably the wagons are opened and things are thrown out. Everybody knows it. With the connivance of the railway staff, things are stolen. There is a godown where you can purchase all these things at a cheap rate because they do not pay sales-tax as it is not a registered office. Railways also have to pay damages for the loss. What are the Railway protection Force people doing? There are various methods by which pilferages can be stopped, provided we meet and discuss these problems very often.
SHRI R. P. ULAGANAMBI (Vellore): Sir, I rise to draw attention to some important problems while speaking on the Demands for Grants of the Railways, on
behalf of the DMK Party. The Minister has made certain radical changes such as maintaining the punctuality of departure and arrival of trains, reducing the running time and introducing certain rational reforms in railway administration. Though the Minister has taken some steps to improve passenger amenities, yet I find they are insufficient. Cleanliness in trains, catering service, etc. should be improved. The Minister should introduce a Rajdhani Express between Delhi and Madras.
It should be on the lines of similar trains to Calcutta and Bombay. Meanwhile, the running time of the express trains from Madras may be reduced. The Link Express to Madras and Hyderabad is not able to cope with the increased demand of the travelling public. So, I suggest that there should be a separate express trains to Madras as well as Hyderabad in place of the existing Link Express, in addition to the Grand Trunk Express and Janata Express.
The electrification of the MadrasVijayawada section is noteworthy. The head office of this scheme was set up at Madras after considering all the pros and cons. Yesterday I was astonished to hear the Minister inform Shri Venkatasubbaiah that orders have been issued to shift the head office from Madras to Vijayawada. As the Minister knows very well, Madras has comparatively certain advantages. It is a cosmopolitan city and the head office of the Southern Railways is in Madras. Besides, there are other facilities available there. I do not understand on what grounds the head office is decided to be shifted from Madras to Vijayawada. I would request the Minister to reconsider the decision on merits without any political considerations.
Then, would like to suggest that the electrification of the Madras-Bangalore section should be taken up on a priority basis. The traffic in this line has been increasing since connects two important
[Shri R. P. Ulaganambi) industrial, commercial and cosmopoliten cities. The Railway Minister may have some hesitation in pleading the case of Bangalore because he represents that area. So, I am pleading that case on behalf of the Railway Minister and the people of Tamilnadu. I would request the Minister to ensure that this scheme is taken up to least in the next budget.
THE MINISTER OF RAILWAYS (SHRI K. HANUMANTHAIYA): Since I am personally interested m it, he should ask my Deputy to take it up
SHRI R. P. ULAGANAMBI: The Metropolitan Transport Projects Organisations are progressing at Calcutta and Bombay. Similar project should be taken up to Madras at the earliest.
The proposed railway line connecting Kanyakumari and Delhi and Hima is commendable and it must be expedited.
Vellore, which is my constituency; is a centre for producing mangoes. It is sending mangoes to all parts of the country and also foreign countries. The mango merchants of Vellore have been demanding two bogies daily to despatch 50 tonnes of mangoes to Delhi daily by the Janata Express but they are allowed to send only two tonnes. This is not at all sufficient. On 15.5,72 I have written a letter to the Railway Minister, enclosing the petition of the people of that area, demanding two bogies. Today I have received a letter from the Personal Secretary of the Minister, acknowledging the letter and saying that the Minister is on tour. But I find that the Minister is present here. So, I would request him to consider this petition and my letter favourably and allot two bogies so that the merchants of Vellore can despatch mangoes to Delhi. Since mangoes are easily perishable it is absolutely necessary that they must be despatched without delay. I hope the Minister will take necessary action.
The Railway administration spends a large amount of money for the development of Hindi. A monthly magazine in Hindi, namely, "Bharatiya Rail" is published by the Railway Board. Besides, 119 periodcals are published in Hindi. I do not understand how the non-Hindi speaking people will benefit by these magazines. So, I request the hon. Minister to publish them in English as well as in regional languages so as to enable the local people to understand the contents of these magazines.
The Railway Department issues 883 forms in Hindi and in Engiish. I request the hon. Minister to see that these forms are made available and published in regional languages so as to enable the local people to understand them.
I am told that non- Hindi speaking Rail way servants are compelled to study Hindi and that their promotions are withheld because of not learning Hindi or not knowing Hindi. I request the hon. Minister to give a categorical assurance that such a compulsion is not there and that he has not issued any notification to compel any nonHindi speaking railway employee to learn Hindi and that his promotion is not withheld because of not learning or not knowing Hindi.
According to the report submitted by the Railway Board, in 1970-71, in Class I and Class II services, the Scheduled Castes and Tribes represent 318 out of 8,085 i.c. 3.7 per cent. In Class III services, they represent 55,232 out of 5,82,290, i.e. 9.8 per cent. In Class IV, they represent 2,00,269 out of 7.82,944 i.e. 24 per cent. The reserved quota for Scheduled Castes and Scheduled Tribes is filled only in Class IV i.e. sweepers, peons, watchmen, watermen, cleaners, gardeners and other menial jobs. I regret to say that even in Class II, they represent only 9.8 per cent. In Class I and Class III, they represent only 3.7 per cent.
205 D.G. (Railways), } VAISAKHA 29, 1894 (SAKA)
The Government voices sky-high that they are for the welfare of Scheduled Castes and Scheduled Tribes people. But I feel that their voice is only for their self-seeking goals to get votes and to win elections. I do not know how long they are going to cheat the Scheduled Castes and Scheduled Tribes people.
It does not mean that suitable candidates are not avilable from Scheduled Castes and Scheduled Tribes. I know that there are thousands of Scheduled Castes and Scheduled Tribes graduates available with high water-mark. I would like to know what appropriate action has been taken to fill up the posts from Scheduled Castes and Scheduled Tribes for Class I, Class II and Class III services.
Under Demand No.2, 1971-72, for the survey in progress, Rs. 15,27 lakhs have not been utilised. In the Budget estimates for 1972-73, an amount of Rs. 21.13 lakhs has been reduced. For Salem, Rs. 10,000 have been spent out of Rs. 24,000 allotted for the survey. For Hospet, Rs. 2000 have been spent out of Rs 62,000 allotted for the survey.
Then, under Demand No.15, the development fund for the welfare of the staff allotted was Rs 9.28 crores out of which Rs.80.18 lakhs have not been utilised. The Budget estimate for 1971-72 is Rs.4.08 crores for passenger and railway users' amenities. Out of this amount, Rs. 22.91 lakhs have not been utilised. And also in the Budget Estimates for 1972-73, the amenities of the passengers have been curtailed. I can point out so many shortfalls in the railway administration...
MR. DEPUTY SPEAKER: He may please conclude.
SHRI R. P. ULAGANAMB1: But the time at my disposal is very short.
I am coming to the last point. The Railway Board saved Rs.50,000 by keeping unfilled the vacant posts. The Regional
Railways have saved Rs.21.8 lakhs for non-appointment of additional staff during the year. Is this saving necessary without giving appointments in view of the growing unemployment problem?
The estimated income from freight charges was Rs.1.92 crores, but there was a loss of Rs.9.83 crores. In 1969-70, Rs.44,97 crores were less than the estimated income from Southern Railway, NorthEast Frontier Railway, North Eastern Railway and South Central Railway. According to the report submitted by the committee, there was a loss of Rs.5.86 crores due to railway lines running on loss. The compensation paid for the goods lost or damaged was Rs.14.16 crores, in spite of the expenditure on the railway police of Rs.17.11 crores.
On 2nd May, our hon. Railway Minister, while replying to a question in this House, stated that the loss on coal wagons had increased from 3 to 31 per cent.
There are so many shortfalls that I can point out, but due to non-availability of time, I am not able to do so. I would request the hon. Railway Minister to look into all these shortfalls and take necessary and appropriate action to utilise the allotted funds to avoid losses and increase the facilities to the passengers, and the Railway administration must be set right in the right gear.
SHRI K. RAMAKRISHNA REDDY (Nalgonda): Mr. Deputy-Speaker, Sir, I rise to support the Demands of the Railways.
The punctuality of railways has improved a lot. On this I heartily congratulate Shri Hanumanthaiyaji, the Railway Minister, for taking carnest efforts for bringing the railways run on punctuality. While perusing the Demands of the Railways, it is found that first preference has been given for conversion of the meter gauge lines into broad gauge lines. Such importance has not been given for cons207
[Shri K. Ramakrishna Reddy] truction of new lines, which is not correct. In my opinion, the first preference should be given to opening of new lines and second preference should be given to conversion but not first, If this principle is agreed, the hon. Minister may kindly go ahead with the opening of new lines which are remunerative and cheap in all the States.
Andhra Pradesh is one of the unfortunate States which could not get any line, even of one mile or even an inch, since independence, i.e., for the last 25 years. I hope, the hon. Minister will pay special attention to Andhra Pradesh-not only by catching his eye to Andhra Pradesh but also by applying his mind For the line Nadikude to Bebinagar passing through Nalgonda and the area of the mighty Nagarjunasagar Project. The survey was conducted in the year 1968-the Railway Board had asked for the survey.
In the year 1970, the report had been received by the Railway Board. I understand that it is the cheapest line which can be taken. Only Rs. 121 crores are involved for the construction, and 12 per cent remuneration can be achieved; by constructing this line, from Secunderabad to Madras 75 kilometres will be lessend. It will connect Nagarjunasagar area as well as the District headquarters which are backward areas. Not only this, the hon Minister last year paid a visit to Hyderabad where he consulted the General Manager and other officers and non officials several representations were made to him and he has promisted at that time only but, to our misfortune, the Bangla Desh matter came up which naturally riflected on our economy and we could not get that line that year. When I saw the Budget proposals of this year also, I am utterly disappointed that no new railway line has been given to Andhra Pradesh. In the present Budget only two now lines have been taken up viz., Tirunelveli to Trivandrum and Sabarmati to Gandhinagar. I think these are the only two new lines
taken up this year as far my knowledge goes. For Andhra Pradesh no new line has been given.
Recently, the hon. Minister paid a visit to Hyderabad, consulted the Chief Minister and the General Manager and other concerned people. They have also recommended that this is the most important line which should be taken up. Nagarjunasagar is a very big project. After completion, it will throw up an exportable surplus of rice and sugar worth about Rs. 100 crores. If you do not take steps from now on, how can you meet the needs of the project area at that time? The hon. Minister had a discussion recently. He was kind enough to promise that one or two lines he was going to take up in every State. I think he will take this line into consideration. This is the cheapest line, and remunerative. which is a must in a backward area.
Moreover, when HEH the Nizam's Railway was in existence in Hyderabad, there was a surplus of Rs. 6 crores at our disposal which was absorbed in the Indian Union Railways. In the Parliament perhaps an assurance was given that from this amount of Rs. 6 crores new lines would be constructed in the erstwhile Hyderabad. Even though Nadikude is not in the erstwhile Hyderabad State, if you can start it from the other side. It is not objectionable Nalgonda and Bibinagar are included in the erstwhile Hyderabad State. From this Rs. 6 crores, the line could have been started and completed by this time. The Minister is having an idea of giving. I hope and trust he will pay his attention to this line.
Not only this, this is the silver jubilee year. Not only the silver jubilee but the memory of Shri Hanumanthaiya will remain in that area if he sanctions this new line of Nadikude to Bibinagar.
There are several other proposals alsoNizamabad to Ramgundam line which connects the Pochampadares also and it is necessary for Secunderabad and Hyderabad areas.
Now, with regard to the Budget proposals under Demand No. 5 Replacement and Maintenance several huge monies are being misused. The line of Kottavalasa to Kirundul was started in 1965-66 and a huge amount of crores of rupees have cen spent on that line and it is now being relaid after 4 or 5 years. Generally the life of the Railway line is for 40--50 years. Then who is responsible for it? Did any officer not checked this? Is the Railway Board in existence when such irregularities are not checked at all? There is an additional expenditure of Rs. 1.3 crores for relaying the lines. I think the hon. Minister will pay his personal attention to this matter.
Under maintenance, every year you are spending Rs. 97 crores. This year you are asking for Rs. 100 crores. That is, Rs. 3 crores more. Not only that. You are asking Rs. 1.48 crores for ballast purposes. What sudden improvement is needed when it is working satisfactorily without any trouble ? Is there any Rajdhanı track of service on these lines or any other reason ? I want to know.
MR. DEPUTY-SPEAKER: Your time is up. You must conclude.
SHRI K. RAMAKRISHNA REDDY: I want only 3 minutes more. From yesterday 11 O'clock I have been sitting and I got my chance now.
I now come to rolling stock. Rolling stock rose from Rs. 130 crores. Now you are asking for Rs. 139 crores. I do not know what are the special types of repairs of the rolling stock for which you need this amount. Rs. 1.33 crores increase is said to be the consequence of the increase of movements. I fail to understand how the increase in movement should result in the increase of the cost of repairs.
MR. DEPUTY-SPEAKER : Kindly conclude. Don't be unfair to Members of your own party.
SHRI K. RAMAKRISHNA REDDY : Is it because of over-aged locomotive wagons and coaches which are in use, which cannot give satisfactory service ? Is it because some other costs are covered under this head? Rs. 80 lakhs are being asked for special repairs to electric coaches and electric locomotives. Have you taken any action to stop the steam locomotives ? I think the hon Minister should have a plan for stopping this.
MR. DEPUTY-SPEAKER : Please conclude as you have exceeded the time.
SHRI K. RAMAKRISHNA REDDY : Demand No. VII relates to working expenses on fuel. Last year you asked for coal consumption of Rs. 51.63 crores. This year you are asking for Rs. 54.49 crores. The Minister said that there will be 9.5 million tonnes of additional orginating goods traffic and 3 per cent. of increase in passenger traffic. Last year also in the Budget he said that 9 million tonnes will be increased. But not even one million tonne has increased. Evidently, excess budgeting is being made to reach more coal to loco sheds and this will help pilferage and Consumption misappropriation of coal. of coal over the last 10 years has gone up by 35 per cent.
Under freight and handling, you have shown Rs. 45 crores. Freight and handling charges are also equal to the cost of coal. Railways are charging very nominal rates for coal as it is required for them only. Most of the money is being pockted by contractors. So, some cooperative system may be introduced.
Regarding Dieselisation in Andhra Pradesh, except Dakshin Express no other dieselisation is there. More attention should be paid for the dieselisation and electrification also in this part.
Then, only one point.........
MR. DEPUTY-SPEAKER : No. Nothing will go on record. Shri Chavda.
SHRI K. RAMAKRISHNA REDDY :*
SHRI K. S. CHAVDA (Patan): First, I shall take the question of nan-availability of wagons, particularly in the State of Gujarat. The Gujarat Chamber of Commerce requested the chairman, Railway Board, on 12th February, 1972 to allot supply of 50 wagons daily to cope with the huge traffic of jeera, aniseeds, oilseeds etc. from Unjah station. Then, I received a telegram on 29th March, 1972, which I would like to quote here. It reads thus :
"Jeera, aniseeds, oilseeds season in full swing at Unjah repeated request to railway authorities for clearance are in vain heavy accumulation at Unjah 1700 wagons awaiting clearance. "⁹.
Then, I wrote a letter to the general manager as follows:
"I have received representations from some businessmen of Mehsana district, Gujarat, that they have been feeling much inconvenienced due to non-availability of wagons, especially at small and roadside stations. Although orders for allotment of wagons are given, the wagons are not supplied and subsequently orders have to be changed and cancelled. Thus, the business community is put to hardship. A particular businessman was allotted wagons at Dhinoj station on 23rd and 24th February, and again on 8th, 9th, 10th and 12th March, but actually no wagons could be made available to him.".
In his reply to my letter, the general manager has said :
"In all such cases, care is taken to fulfil the allotments as early as possible on subequent days."
This is not a fact, as I have pointed out earlier.
* Not recorded,
I would like to make one suggestion in this regard that allotment orders for roadside stations where there are only a few indents for wagons should be given by control specifically instead of giving general orders.
There is non-availability of wagons for coal also. The Central Gujarat Chamber of Commerce wrote a letter to the chairman, Railway Board, regarding acute ■hortage of wagon supply in Baroda division. In the same way, the KutchSausrashtra Balt Manufacturers' Association have also written regarding nonavailability of wagons for salt movement.
MR. DEPUTY-SPEAKER : The hon. Member is giving so many references.
SHRI K. S. CHAVDA : Because I want to point out the reason for non-availability of wagons. Though there are sufficient number of wagons in the country, yet corruption has been introduced much more at every level than before in the case of allotment of wagons. Therefore, something should be done in this matter.
My next point is regarding the shifting of the office of the Railway Service Commission from Bombay to Nagpur last year. It was easy for candidates coming from Gujarat and Rajasthan to attend the Railway Service Commission at Bombay. The shifting of the Railway Service Commission to Nagpur is disadvantageous to Rajasthan and Gujarat because these States are covered by the Western Railway. I fail to understand why this office has been shifted to Nagpur.
Nagpur is not covered by the Western Rallway. In his reply, the Railway Minister Shri K. Hanumanthaiya wrote to me as follows.
"By shifting the office from Bombay to Nagpur, no hardship would be caused in the employment opportunities to the candidates hailing from Rajasthan and Gujarat as apprehended by you. Candi213
D.G. (Railways), VAISAKHA 29, 1894 (SAKA)
dates belonging to Gujarat, Madhya Pradesh or Rajasthan.…………..”
MR. DEPUTY-SPEAKER: The hon. Member wanted five minutes only, but he is giving so many references.
SHRI K. S. CHAVDA : I shall take only one more point and I shall conclude.
The hon. Minister further wrote: "Candidates belonging to Gujarat, Madhya Pradesh or Rajasthan could come to Bombay for taking the written test or interview; these are arranged at convenient centres where an adequate number of persons are to be examined.".
If that is so, then why is it being shifted to Nagpur? I demand that the office of Railway Service Commission should be shifted to Ahmedabad or some place in Gujarat. so that the people from Rajasthan or Gujarat, could take advantage of it because it is these two States which are served by the Western Railway and not the Nagpur division.
Secondly, the headquarters of the Western Railway which is at present at Bombay should be shifted either to Ahmedabad or Gandhinagar, because it is at the extreme end of the whole railway. Rajasthan and Gujarat are covered by this Railway and it is only proper that the headquarters should be located at Ahmedabad or Gandhinagar.
Regarding the TTEs in the Rajkot Division, there are only 37 of them and there are 80 trains. These TTE.s were recruited on 1st January 1964. They are not yet confirmed. Also 50 trains are running without TIEs, This is not a satisfactory state of affairs. All the trains should have TTES and the 37 TTEs now in service should be confirmed.
THE DEPUTY MINISTER IN THE MINISTRY OF RAILWAYS (SHRI MOHD, SHAFI QURESHI): In my short intervention, I shall briefly deal
with some of the points raised by hon. members. One of the problems referred to was about non-availability of wagons. In order to understand the dimensions of this problem, it is necessary to understand the whole background of the wagon position in the country. If you look at the overall loading of goods traffic in 1971-72, there has been some improvement in it. This is not a matter of much satisfaction to the Railways because we have to load more. But I must say we have not been able to hit the target of 9 million tonnes extra traffic which we wanted. As against this estimate we have been able to increase it only by 2.09 million tonnes, leaving a shortfall of about 6.9 million tonnes.
Looking at this picture, the railways are not wholly to blame. The balance of 6.9 million tonnes which could not be achieved was no doubt due to lack of rail transport. This includes 1.24 million tonnes of coal from other public users, 0.8 million tonnes of export ore from Barajamda sector to Calcutta Port, 0.72 million tonnes of cement and about 0.4 million tonnes of fertiliser and other general goods.
In this House, I have so many times stated the reasons for this shortfall. I will briefly touch those points again. The shortfall was unavoidable due to certain factors. As hon. members know, the situation in the eastern sector was far from satisfactory. Once it is dislocated, it is very difficult for the railways to restore the functioning to normalcy; It takes a long time, years of planning to establish the transport system in a particular area, but once there is a bandh, strike or dharna, the entire system is through out of gear and it takes months to restore normalcy in traffic. Unfortunately, during the last two years, the situation in the eastern sector was far from satisfactory, although now things are improving and with the improvement in the law and order situation, wagon availability position has also improved.
| english |
h4 {
margin: 0px;
}
#map {
position: relative;
top: -20px;
left: 0px;
margin-left: 0px;
cursor: crosshair;
}
div.alert {
position: absolute;
top: 100px;
width: 300px;
left: 50px;
z-index: 1000;
}
.aoi-status {
font-size: 18px;
}
#layer_info_drawer {
position: absolute;
top: 0px;
left: 0px;
width: 300px;
padding-top: 50px;
margin-left: -300px;
}
.gray-header {
padding: 3px 7px;
font-size: 14px;
font-weight: bold;
background-color: #f5f5f5;
border: 1px solid #ddd;
color: #9da0a4;
-webkit-border-radius: 4px 0 4px 0;
-moz-border-radius: 4px 0 4px 0;
border-radius: 4px 0 4px 0;
}
#filter_bar_drawer {
position: absolute;
top: 0px;
left: 0px;
width: 300px;
background-color: lightblue;
padding-top: 50px;
margin-left: -300px;
}
#aoi-status-box {
max-height: 64px;
cursor: pointer;
overflow-y: hidden;
}
#tag_list_box {
margin-bottom: 0;
width: 78px;
font-size: 10px;
line-height: 14px;
height: 14px;
text-align: right;
}
form.leaflet-control-geocoder-form {
margin: 0;
}
form.leaflet-control-geocoder-form > input[type="text"] {
margin-bottom: 0;
}
div.leaflet-control-button.leaflet-control {
font: 14px/16px Arial, Helvetica, sans-serif;
background: white;
background: rgba(255,255,255,0.8);
box-shadow: 0 0 15px rgba(0,0,0,0.2);
border-radius: 5px;
}
div.leaflet-control-button.leaflet-control > div > h4 {
background-color: transparent;
border: solid black 1px;
border-radius: 4px;
padding: 6px;
}
#aoi-submit {
background-color: hsl(203, 100%, 30%) !important;
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#009dff", endColorstr="#005e99");
background-image: -khtml-gradient(linear, left top, left bottom, from(#009dff), to(#005e99));
background-image: -moz-linear-gradient(top, #009dff, #005e99);
background-image: -ms-linear-gradient(top, #009dff, #005e99);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #009dff), color-stop(100%, #005e99));
background-image: -webkit-linear-gradient(top, #009dff, #005e99);
background-image: -o-linear-gradient(top, #009dff, #005e99);
background-image: linear-gradient(#009dff, #005e99);
border-color: #005e99 #005e99 hsl(203, 100%, 25%);
color: #fff !important;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.33);
-webkit-font-smoothing: antialiased;
}
ul.fancytree-container {
max-width: 280px;
}
#drawer_tray_top {
}
.status_block {
width: 130px;
display: inline-block;
}
#drawer_tray_bottom {
font-size: 10px;
}
.drawer_tray {
border: 1px dotted gray;
}
.editable {
color: blue;
}
.tight {
width: 20;
}
#add_layer_button {
margin-left: 23px;
}
.inner-padding {
padding: 5px;
}
.scroll-link {
font-size: .7em;
max-height: 20px;
overflow-x: scroll;
display: inline-block;
background-color: aliceblue;
}
.hide {
display: none;
}
.linked-item {
font-size: 10px;
line-height: 1.1em;
background-color: #eef;
margin: 1px;
border: solid black 1px;
width: 120px;
padding: 2px;
border-radius: 5px;
overflow: hidden;
}
#messages {
font-size: 12px;
}
#message_scroll {
height: 300px;
overflow-y: scroll;
}
#button_row {
padding-top: 10px;
}
#finish-workcell {
padding-top: 10px;
padding-bottom: 10px;
}
.popover {
min-width: 200px ! important;
}
.dropdown-menu {
top: 93%;
}
.leaflet-map-pane {
z-index: 2 !important;
}
.leaflet-google-layer {
z-index: 1 !important;
} | css |
import java.util.ArrayList;
//
//Name : CompositePattern.java
//
// The classes and/or objects participating in this pattern are:
// 1. Component (WorkOrder)
// Declares the interface for objects in the composition. Implements
// default behavior for the interface common to all classes, as
// appropriate. declares an interface for accessing and managing its
// child components.
// 2. Leaf (WorkOrderDoc)
// represents leaf objects in the composition. A leaf has no children.
// Defines behavior for primitive objects in the composition.
// 3. Composite (Purchase)
// defines behavior for components having children. Stores child
// components. Implements child-related operations in the Component interface.
// 4. Client (CompositeApp)
// Manipulates objects in the composition through the Component interface.
// This is the "Component". (i.e tree node.)
interface WorkOrder
{
void Add(WorkOrder d);
void Remove(WorkOrder d);
void Operation(Client observer);
public String getName();
}
//This is the "Leaf".
class WorkOrderDoc implements WorkOrder
{
private String name;
public String getName()
{
return name;
}
public WorkOrderDoc(String name)
{
this.name = name;
}
public void Add(WorkOrder c)
{
System.out.println("Cannot add to a PrimitiveElement.");
}
public void Remove(WorkOrder c)
{
System.out.println("Cannot remove from a PrimitiveElement.");
}
public void Operation(Client observer)
{
PaymentWorkflow paymentWorkflow = new PaymentWorkflow(0,"Payment Workflow");
observer.setSubject(paymentWorkflow);
paymentWorkflow.Attach(observer);
paymentWorkflow.executeWorkflow();
ShipmentWorkflow shipmentWorkflow = new ShipmentWorkflow(0, "Shipment Workflow");
observer.setSubject(shipmentWorkflow);
shipmentWorkflow.Attach(observer);
shipmentWorkflow.executeWorkflow();
}
}
// This is the "Composite"
class WorkOrderComposite implements WorkOrder
{
private ArrayList<WorkOrder> workOrders = new ArrayList<WorkOrder>();
private String name;
public String getName()
{
return name;
}
public WorkOrderComposite(String name)
{
this.name = name;
}
public void Add(WorkOrder d)
{
workOrders.add(d);
};
public void Remove(WorkOrder d)
{
for (int i = 0; i < workOrders.size(); i++)
{
if (workOrders.get(i).getName() == d.getName())
{
workOrders.remove(i);
return;
}
}
}
public void Operation(Client observer)
{
for(WorkOrder wo: workOrders){
wo.Operation(observer);
}
}
}
//This is the "client"
class CompositePattern
{
/*public static void main(String[] args)
{
// Create a tree structure
WorkOrder purchaseNewEquipmants = new Purchase("Buying a new iPhoneX...");
purchaseNewEquipmants.Add(new WorkOrderDoc("Check if the website has enough stocks."));
purchaseNewEquipmants.Add(new WorkOrderDoc("Check if the payment is successful."));
purchaseNewEquipmants.Add(new WorkOrderDoc("Check if the shipment is done."));
WorkOrder purchaseSurfacePro = new Purchase("Buying a new Windows PC...");
purchaseSurfacePro.Add(new WorkOrderDoc("Buy a Surface Pro 6."));
purchaseSurfacePro.Add(new WorkOrderDoc("Buy a Surface Pro Flip Cover."));
purchaseNewEquipmants.Add(purchaseSurfacePro);
// Add and remove a PrimitiveElement
WorkOrder provingDeletion = new WorkOrderDoc("This document will be deleted soon.");
provingDeletion.Add(new WorkOrderDoc("This document just added and will be removed very soon."));
purchaseNewEquipmants.Add(provingDeletion);
purchaseNewEquipmants.Remove(provingDeletion);
// Recursively display nodes
purchaseNewEquipmants.Operation();
}*/
}
| java |
event.
She hasn’t played since losing to Karolina Pliskova in the U. S. Open semifinals in early September, a defeat that resulted in Williams ceding the No. 1 ranking to Angelique Kerber after a three-year stay at the top.
Williams played in only eight tournaments in 2016, winning two of them, including the Wimbledon in July. | english |
For the past few years, OnePlus has happily pushed into a six-month product refresh cycle. It’s a model that’s worked well for the plucky smartphone maker, and another way it’s managed to buck some of the prevailing industry trends as competitors struggle to maintain sales amid a global slowdown.
As tends to be the case, the year’s second flagship seems to mostly be about refining its predecessor — and keeping the company competitive. The OnePlus 7T adopts the 90Hz AMOLED screen offered on the 7 Pro, coupled with a three-camera set up on the rear.
That last bit keeps with the company’s solid design language, with a large, circular configuration that’s an aesthetic improvement over Apple’s square situation. The lenses are a 48 megapixel main, 2x telephoto and ultra-wide-angle with a 117-degree field of view.
The speakers have been upgraded to include Dolby Atmos and fast charging has been amped up, promising a full charge in an hour. That’s nearly 25% faster than OnePlus’s previous version of Warp Charge.
Perhaps most interesting is that the company gets the jump on the competition by being the first to ship with Android 10 preloaded. How far the company has come from the CyanogenMod days. Of course, it continues to offer a customized experience through the “bespoke” OxygenOS.
The best bit continues to be the pricing. The OnePlus 7T will run $599 when it starts shipping on October 18. It’s a nice price for a solid piece of hardware in an era when flagships routinely run in excess of $1,000.
| english |
<reponame>SmartBFT-Go/SmartBFT-Go.github.io
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">
<title>peer - The Go Programming Language</title>
<link type="text/css" rel="stylesheet" href="../../../../../../../lib/godoc/style.css">
<script>window.initFuncs = [];</script>
<script src="../../../../../../../lib/godoc/jquery.js" defer></script>
<script>var goVersion = "go1.11.5";</script>
<script src="../../../../../../../lib/godoc/godocs.js" defer></script>
</head>
<body>
<div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div><!-- #lowframe -->
<div id="topbar" class="wide"><div class="container">
<div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
<div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
<a href="index.html#" id="menu-button"><span id="menu-button-arrow">▽</span></a>
<form method="GET" action="http://localhost:6060/search">
<div id="menu">
<a href="http://localhost:6060/doc/">Documents</a>
<a href="../../../../../../index.html">Packages</a>
<a href="http://localhost:6060/project/">The Project</a>
<a href="http://localhost:6060/help/">Help</a>
<a href="http://localhost:6060/blog/">Blog</a>
<span class="search-box"><input type="search" id="search" name="q" placeholder="Search" aria-label="Search" required><button type="submit"><span><!-- magnifying glass: --><svg width="24" height="24" viewBox="0 0 24 24"><title>submit search</title><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/><path d="M0 0h24v24H0z" fill="none"/></svg></span></button></span>
</div>
</form>
</div></div>
<div id="page" class="wide">
<div class="container">
<h1>
Package peer
<span class="text-muted"></span>
</h1>
<div id="nav"></div>
<!--
Copyright 2009 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<!--
Note: Static (i.e., not template-generated) href and id
attributes start with "pkg-" to make it impossible for
them to conflict with generated attributes (some of which
correspond to Go identifiers).
-->
<script>
document.ANALYSIS_DATA = null;
document.CALLGRAPH = null;
</script>
<div id="short-nav">
<dl>
<dd><code>import "github.com/hyperledger/fabric/common/mocks/peer"</code></dd>
</dl>
<dl>
<dd><a href="index.html#pkg-overview" class="overviewLink">Overview</a></dd>
<dd><a href="index.html#pkg-index" class="indexLink">Index</a></dd>
</dl>
</div>
<!-- The package's Name is printed as title by the top-level template -->
<div id="pkg-overview" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
</div>
</div>
<div id="pkg-index" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
</div>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
<div id="manual-nav">
<dl>
<dd><a href="index.html#MockCCComm">type MockCCComm</a></dd>
<dd> <a href="index.html#MockCCComm.CloseSend">func (s *MockCCComm) CloseSend() error</a></dd>
<dd> <a href="index.html#MockCCComm.GetRecvStream">func (s *MockCCComm) GetRecvStream() chan *pb.ChaincodeMessage</a></dd>
<dd> <a href="index.html#MockCCComm.GetSendStream">func (s *MockCCComm) GetSendStream() chan *pb.ChaincodeMessage</a></dd>
<dd> <a href="index.html#MockCCComm.Quit">func (s *MockCCComm) Quit()</a></dd>
<dd> <a href="index.html#MockCCComm.Recv">func (s *MockCCComm) Recv() (*pb.ChaincodeMessage, error)</a></dd>
<dd> <a href="index.html#MockCCComm.Run">func (s *MockCCComm) Run(done <-chan struct{}) error</a></dd>
<dd> <a href="index.html#MockCCComm.Send">func (s *MockCCComm) Send(msg *pb.ChaincodeMessage) error</a></dd>
<dd> <a href="index.html#MockCCComm.SetBailOnError">func (s *MockCCComm) SetBailOnError(b bool)</a></dd>
<dd> <a href="index.html#MockCCComm.SetKeepAlive">func (s *MockCCComm) SetKeepAlive(ka *pb.ChaincodeMessage)</a></dd>
<dd> <a href="index.html#MockCCComm.SetName">func (s *MockCCComm) SetName(newname string)</a></dd>
<dd> <a href="index.html#MockCCComm.SetPong">func (s *MockCCComm) SetPong(val bool)</a></dd>
<dd> <a href="index.html#MockCCComm.SetResponses">func (s *MockCCComm) SetResponses(respSet *MockResponseSet)</a></dd>
<dd><a href="index.html#MockPeerCCSupport">type MockPeerCCSupport</a></dd>
<dd> <a href="index.html#NewMockPeerSupport">func NewMockPeerSupport() *MockPeerCCSupport</a></dd>
<dd> <a href="index.html#MockPeerCCSupport.AddCC">func (mp *MockPeerCCSupport) AddCC(name string, recv chan *pb.ChaincodeMessage, send chan *pb.ChaincodeMessage) (*MockCCComm, error)</a></dd>
<dd> <a href="index.html#MockPeerCCSupport.GetCC">func (mp *MockPeerCCSupport) GetCC(name string) (*MockCCComm, error)</a></dd>
<dd> <a href="index.html#MockPeerCCSupport.GetCCMirror">func (mp *MockPeerCCSupport) GetCCMirror(name string) *MockCCComm</a></dd>
<dd> <a href="index.html#MockPeerCCSupport.RemoveAll">func (mp *MockPeerCCSupport) RemoveAll() error</a></dd>
<dd> <a href="index.html#MockPeerCCSupport.RemoveCC">func (mp *MockPeerCCSupport) RemoveCC(name string) error</a></dd>
<dd><a href="index.html#MockResponse">type MockResponse</a></dd>
<dd><a href="index.html#MockResponseSet">type MockResponseSet</a></dd>
</dl>
</div><!-- #manual-nav -->
<h3>Package files</h3>
<p>
<span style="font-size:90%">
<a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go">mockccstream.go</a>
<a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go">mockpeerccsupport.go</a>
</span>
</p>
</div><!-- .expanded -->
</div><!-- #pkg-index -->
<h2 id="MockCCComm">type <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=1635:1918#L45">MockCCComm</a>
<a class="permalink" href="index.html#MockCCComm">¶</a>
</h2>
<p>
MockCCComm implements the mock communication between chaincode and peer
We'd need two MockCCComm for communication. The receiver and sender will
be switched between the two.
</p>
<pre>type MockCCComm struct {
<span class="comment">// contains filtered or unexported fields</span>
}
</pre>
<h3 id="MockCCComm.CloseSend">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2260:2298#L75">CloseSend</a>
<a class="permalink" href="index.html#MockCCComm.CloseSend">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) CloseSend() <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
CloseSend closes send
</p>
<h3 id="MockCCComm.GetRecvStream">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2355:2417#L80">GetRecvStream</a>
<a class="permalink" href="index.html#MockCCComm.GetRecvStream">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) GetRecvStream() chan *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a></pre>
<p>
GetRecvStream returns the recvStream
</p>
<h3 id="MockCCComm.GetSendStream">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2483:2545#L85">GetSendStream</a>
<a class="permalink" href="index.html#MockCCComm.GetSendStream">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) GetSendStream() chan *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a></pre>
<p>
GetSendStream returns the sendStream
</p>
<h3 id="MockCCComm.Quit">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2602:2629#L90">Quit</a>
<a class="permalink" href="index.html#MockCCComm.Quit">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) Quit()</pre>
<p>
Quit closes the channels...
</p>
<h3 id="MockCCComm.Recv">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2133:2190#L69">Recv</a>
<a class="permalink" href="index.html#MockCCComm.Recv">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) Recv() (*<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
Recv receives a message
</p>
<h3 id="MockCCComm.Run">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=3558:3610#L136">Run</a>
<a class="permalink" href="index.html#MockCCComm.Run">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) Run(done <-chan struct{}) <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
Run receives and sends indefinitely
</p>
<h3 id="MockCCComm.Send">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2011:2068#L63">Send</a>
<a class="permalink" href="index.html#MockCCComm.Send">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) Send(msg *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a>) <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
Send sends a message
</p>
<h3 id="MockCCComm.SetBailOnError">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2756:2799#L98">SetBailOnError</a>
<a class="permalink" href="index.html#MockCCComm.SetBailOnError">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) SetBailOnError(b <a href="http://localhost:6060/pkg/builtin/#bool">bool</a>)</pre>
<p>
SetBailOnError will cause Run to return on any error
</p>
<h3 id="MockCCComm.SetKeepAlive">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=3024:3082#L108">SetKeepAlive</a>
<a class="permalink" href="index.html#MockCCComm.SetKeepAlive">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) SetKeepAlive(ka *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a>)</pre>
<p>
SetKeepAlive sets keepalive. This mut be done on the server only
</p>
<h3 id="MockCCComm.SetName">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=1920:1964#L58">SetName</a>
<a class="permalink" href="index.html#MockCCComm.SetName">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) SetName(newname <a href="http://localhost:6060/pkg/builtin/#string">string</a>)</pre>
<h3 id="MockCCComm.SetPong">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=2899:2937#L103">SetPong</a>
<a class="permalink" href="index.html#MockCCComm.SetPong">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) SetPong(val <a href="http://localhost:6060/pkg/builtin/#bool">bool</a>)</pre>
<p>
SetPong pongs received keepalive. This mut be done on the chaincode only
</p>
<h3 id="MockCCComm.SetResponses">func (*MockCCComm) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=3158:3217#L113">SetResponses</a>
<a class="permalink" href="index.html#MockCCComm.SetResponses">¶</a>
</h3>
<pre>func (s *<a href="index.html#MockCCComm">MockCCComm</a>) SetResponses(respSet *<a href="index.html#MockResponseSet">MockResponseSet</a>)</pre>
<p>
SetResponses sets responses for an Init or Invoke
</p>
<h2 id="MockPeerCCSupport">type <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=720:786#L16">MockPeerCCSupport</a>
<a class="permalink" href="index.html#MockPeerCCSupport">¶</a>
</h2>
<p>
MockPeerCCSupport provides CC support for peer interfaces.
</p>
<pre>type MockPeerCCSupport struct {
<span class="comment">// contains filtered or unexported fields</span>
}
</pre>
<h3 id="NewMockPeerSupport">func <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=833:877#L21">NewMockPeerSupport</a>
<a class="permalink" href="index.html#NewMockPeerSupport">¶</a>
</h3>
<pre>func NewMockPeerSupport() *<a href="index.html#MockPeerCCSupport">MockPeerCCSupport</a></pre>
<p>
NewMockPeerSupport getsa mock peer support
</p>
<h3 id="MockPeerCCSupport.AddCC">func (*MockPeerCCSupport) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=993:1125#L26">AddCC</a>
<a class="permalink" href="index.html#MockPeerCCSupport.AddCC">¶</a>
</h3>
<pre>func (mp *<a href="index.html#MockPeerCCSupport">MockPeerCCSupport</a>) AddCC(name <a href="http://localhost:6060/pkg/builtin/#string">string</a>, recv chan *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a>, send chan *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a>) (*<a href="index.html#MockCCComm">MockCCComm</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
AddCC adds a cc to the MockPeerCCSupport
</p>
<h3 id="MockPeerCCSupport.GetCC">func (*MockPeerCCSupport) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=1374:1442#L36">GetCC</a>
<a class="permalink" href="index.html#MockPeerCCSupport.GetCC">¶</a>
</h3>
<pre>func (mp *<a href="index.html#MockPeerCCSupport">MockPeerCCSupport</a>) GetCC(name <a href="http://localhost:6060/pkg/builtin/#string">string</a>) (*<a href="index.html#MockCCComm">MockCCComm</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)</pre>
<p>
GetCC gets a cc from the MockPeerCCSupport
</p>
<h3 id="MockPeerCCSupport.GetCCMirror">func (*MockPeerCCSupport) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=1614:1679#L45">GetCCMirror</a>
<a class="permalink" href="index.html#MockPeerCCSupport.GetCCMirror">¶</a>
</h3>
<pre>func (mp *<a href="index.html#MockPeerCCSupport">MockPeerCCSupport</a>) GetCCMirror(name <a href="http://localhost:6060/pkg/builtin/#string">string</a>) *<a href="index.html#MockCCComm">MockCCComm</a></pre>
<p>
GetCCMirror creates a MockCCStream with streans switched
</p>
<h3 id="MockPeerCCSupport.RemoveAll">func (*MockPeerCCSupport) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=2074:2120#L64">RemoveAll</a>
<a class="permalink" href="index.html#MockPeerCCSupport.RemoveAll">¶</a>
</h3>
<pre>func (mp *<a href="index.html#MockPeerCCSupport">MockPeerCCSupport</a>) RemoveAll() <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
RemoveAll removes all ccs
</p>
<h3 id="MockPeerCCSupport.RemoveCC">func (*MockPeerCCSupport) <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockpeerccsupport.go?s=1866:1922#L55">RemoveCC</a>
<a class="permalink" href="index.html#MockPeerCCSupport.RemoveCC">¶</a>
</h3>
<pre>func (mp *<a href="index.html#MockPeerCCSupport">MockPeerCCSupport</a>) RemoveCC(name <a href="http://localhost:6060/pkg/builtin/#string">string</a>) <a href="http://localhost:6060/pkg/builtin/#error">error</a></pre>
<p>
RemoveCC removes a cc
</p>
<h2 id="MockResponse">type <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=1371:1450#L37">MockResponse</a>
<a class="permalink" href="index.html#MockResponse">¶</a>
</h2>
<p>
MockResponse contains the expected received message (optional)
and response to send (optional)
</p>
<pre>type MockResponse struct {
<span id="MockResponse.RecvMsg"></span> RecvMsg *<a href="../../../protos/peer/index.html">pb</a>.<a href="../../../protos/peer/index.html#ChaincodeMessage">ChaincodeMessage</a>
<span id="MockResponse.RespMsg"></span> RespMsg interface{}
}
</pre>
<h2 id="MockResponseSet">type <a href="http://localhost:6060/src/github.com/hyperledger/fabric/common/mocks/peer/mockccstream.go?s=897:1270#L21">MockResponseSet</a>
<a class="permalink" href="index.html#MockResponseSet">¶</a>
</h2>
<p>
MockResponseSet is used for processing CC to Peer comm
such as GET/PUT/DEL state. The MockResponse contains the
response to be returned for each input received.from the
CC. Every stub call will generate a response
</p>
<pre>type MockResponseSet struct {
<span class="comment">//DoneFunc is invoked when all I/O is done for this</span>
<span class="comment">//response set</span>
<span id="MockResponseSet.DoneFunc"></span> DoneFunc func(<a href="http://localhost:6060/pkg/builtin/#int">int</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)
<span class="comment">//ErrorFunc is invoked at any step when the input does not</span>
<span class="comment">//match the received message</span>
<span id="MockResponseSet.ErrorFunc"></span> ErrorFunc func(<a href="http://localhost:6060/pkg/builtin/#int">int</a>, <a href="http://localhost:6060/pkg/builtin/#error">error</a>)
<span class="comment">//Responses contained the expected received message (optional)</span>
<span class="comment">//and response to send (optional)</span>
<span id="MockResponseSet.Responses"></span> Responses []*<a href="index.html#MockResponse">MockResponse</a>
}
</pre>
<div id="footer">
Build version go1.11.5.<br>
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
the content of this page is licensed under the
Creative Commons Attribution 3.0 License,
and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
<a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
</div>
</div><!-- .container -->
</div><!-- #page -->
</body>
</html>
| html |
Why this website?
Who owns the Media?
Was the communal aspect a belated discovery of the national media? Was there a broader context to the incident which explains the very different reporting by the Marathi press,
When Rakesh Maria, took over as the Police Commissioner the media did not rake up any of the major controversies associated with him,
Headlines can be damaging but can they be part of a conspiracy?
The secrecy with which fiendishly vast surveillance powers are being exercised flies thick in the face of all constitutional and legal principles.
The lab intends to 'watch' publicly visible content, not private information.
When Indian Express printed links to YouTube videos of police action in Dhule, it broke new ground for the media.
As 16 terror cases end in acquittal the English press is guilty of giving in to the dubious claims of the infamous Special Cell.
Internet and mobile media inflamed the situation while traditional media failed to counter the damage done.
Arup Patnaik's exemplary restraint while controlling a manic mob was not worthy of praise for the English press.
The media's obsession with an individual's shocking personal details has become their marketing strategy.
| english |
#include "include.hpp"
#include "../../helpers/ball-paddle-contact.hpp"
void useLaunchingSystem(ecs::World& world) {
ecs::Entity paddleId = world.unique<Paddle>();
const Position& paddlePos = world.getData<Position>(paddleId);
world.findAll<Ball>()
.join<Position>()
.forEach(
[&world, &paddlePos](ecs::Entity ballId, const Position& pos) {
world.replaceComponent(ballId, getBallNewVelocity(pos, paddlePos));
}
);
}
| cpp |
Over the past month and a half, the NDTV stock has more than doubled from ₹164. 6 on July 6, and ended Tuesday’s trading session 2. 61% up at ₹366. 20 on the Bombay Stock Exchange.
With 29. 18% of the news broadcaster in the bag, VCPL, AMNL & Adani Enterprises will launch an open offer to acquire up to 26% stake in NDTV, in compliance with the requirements of the SEBI’s (Substantial Acquisition of Shares and Takeovers) Regulations, 2011. JM Financial has been appointed as the manager for the open offer, which if successful, will give the Adani group a majority ownership in NDTV that has a public shareholding of 38. 55%.
The open offer for acquiring another 26% stake from public shareholders in the firm has been made at a price of ₹294 a share, and will entail a consideration of ₹492. 81 crore for the Adani group entities acting in concert.
Adani Enterprises, in its submission to exchanges, said that VCPL is a wholly owned subsidiary of AMNL and has exercised its right to convert 19,90,000 warrants into 19,90,000 equity shares of RRPR constituting 99. 50% of RRPR’s equity share capital by issuing a warrant exercise notice on Tuesday.
“VCPL, at its sole discretion, also has the right to exercise at any time further warrants to acquire up to 99. 99% of the equity share capital of RRPR; and a purchase option to purchase all of the existing equity shares of RRPR held by Mr. Prannoy Roy and Mrs. Radhika Roy and acquire 100% of the equity share capital of RRPR,” the firm said.
NDTV, which had revenues of ₹230. 91 crore and a net profit of ₹59. 19 crore in 2021-22, said that RRPRH has been told to transfer within two days all its equity shares to VCPL. The entire transaction was carried out without any discussion or inputs from the NDTV management, the firm said.
“NDTV has never compromised on the heart of its operations — its journalism. We continue to proudly stand by that journalism,” NDTV said in a statement on its website.
“AMNL seeks to empower Indian citizens, consumers and those interested in India, with information and knowledge… We look forward to strengthening NDTV’s leadership in news delivery,” Mr. Pugalia said.
Just last month, the Securities Appellate Tribunal had overturned a 2019 order of the Securities Exchange Board of India (SEBI) that had concluded that NDTV was being sold to VCPL under the garb of a loan agreement.
The SAT, in its order on July 20, had declared the terms of the loan between the NDTV founders and Vishvapradhan Commercial Private Limited (VCPL) as completely legitimate, and held that the transaction does not amount to acquiring direct or indirect control of NDTV.
Incorporated in 2008, VCPL was initially linked to Mukesh Ambani’s group but its ownership was transferred to a firm run by an associate with links to Delhi-based Nahata Group in 2012. Mr. Ambani’s Jio had bought Nahata group’s Infotel Broadband in 2010 to re-enter the telecom business. | english |
<filename>core/src/main/java/org/darkstorm/minecraft/darkbot/world/Direction.java
package org.darkstorm.minecraft.darkbot.world;
public enum Direction {
NORTH(1, 0, 0),
SOUTH(-1, 0, 0),
EAST(0, 0, 1),
WEST(0, 0, -1),
NORTH_EAST(1, 0, 1),
NORTH_WEST(1, 0, -1),
SOUTH_EAST(-1, 0, 1),
SOUTH_WEST(-1, 0, -1),
UP(0, 1, 0),
UPPER_NORTH(1, 1, 0),
UPPER_SOUTH(-1, 1, 0),
UPPER_EAST(0, 1, 1),
UPPER_WEST(0, 1, -1),
UPPER_NORTH_EAST(1, 1, 1),
UPPER_NORTH_WEST(1, 1, -1),
UPPER_SOUTH_EAST(-1, 1, 1),
UPPER_SOUTH_WEST(-1, 1, -1),
DOWN(0, -1, 0),
LOWER_NORTH(1, -1, 0),
LOWER_SOUTH(-1, -1, 0),
LOWER_EAST(0, -1, 1),
LOWER_WEST(0, -1, -1),
LOWER_NORTH_EAST(1, -1, 1),
LOWER_NORTH_WEST(1, -1, -1),
LOWER_SOUTH_EAST(-1, -1, 1),
LOWER_SOUTH_WEST(-1, -1, -1);
private final int offX, offY, offZ;
private final double horizAngle, vertAngle;
private Direction(int offX, int offY, int offZ) {
this.offX = offX;
this.offY = offY;
this.offZ = offZ;
horizAngle = Math.atan2(offZ, offX);
vertAngle = Math.atan2(offY, Math.hypot(offX, offZ));
}
public int getBlockOffsetX() {
return offX;
}
public int getBlockOffsetY() {
return offY;
}
public int getBlockOffsetZ() {
return offZ;
}
public double getHorizontalAngle() {
return horizAngle;
}
public double getVerticalAngle() {
return vertAngle;
}
}
| java |
1. యాకోబు బయలుదేరి తూర్పు జనుల దేశమునకు వెళ్లెను.
1. As Jacob continued on his way to the east,
2. అతడు చూచినప్పుడు పొలములో ఒక బావి కనబడెను. అక్కడ దానియొద్ద గొఱ్ఱెల మందలు మూడు పండుకొని యుండెను; కాపరులు మందలకు ఆ బావి నీళ్లు పెట్టుదురు; ఒక పెద్ద రాయి ఆ బావిమీద మూతవేసి యుండెను.
2. he looked out in a field and saw a well where shepherds took their sheep for water. Three flocks of sheep were lying around the well, which was covered with a large rock.
3. అక్కడికి మందలన్నియు కూడి వచ్చునప్పుడు బావిమీదనుండి ఆ రాతిని పొర్లించి, గొఱ్ఱెలకు నీళ్లు పెట్టి తిరిగి బావిమీది రాతిని దాని చోటనుంచుదురు.
3. Shepherds would roll the rock away when all their sheep had gathered there. Then after the sheep had been watered, the shepherds would roll the rock back over the mouth of the well.
4. యాకోబు వారిని చూచి అన్నలారా, మీ రెక్కడివారని అడుగగా వారు మేము హారానువార మనిరి.
4. Jacob asked the shepherds, "Where are you from?" "We're from Haran," they answered.
5. అతడు-నాహోరు కుమారుడగు లాబానును మీరెరుగుదురా అని వారినడుగగా వారు ఎరుగుదుమనిరి.
5. Then he asked, "Do you know Nahor's grandson Laban?" "Yes we do," they replied.
6. మరియు అతడు అతడు క్షేమముగా ఉన్నాడా అని అడుగగా వారు క్షేమముగానే ఉన్నాడు; ఇదిగో అతని కుమార్తెయైన రాహేలు గొఱ్ఱెలవెంట వచ్చుచున్నదని చెప్పిరి.
6. "How is he?" Jacob asked. "He's fine," they answered. "And here comes his daughter Rachel with the sheep."
7. Jacob told them, "Look, the sun is still high up in the sky, and it's too early to bring in the rest of the flocks. Water your sheep and take them back to the pasture."
8. వారుమంద లన్నియు పోగుకాకమునుపు అది మావలన కాదు, తరువాత బావిమీదనుండి రాయి పొర్లించుదురు; అప్పుడే మేము గొఱ్ఱెలకు నీళ్లు పెట్టుదుమనిరి.
8. But they replied, "We can't do that until they all get here, and the rock has been rolled away from the well."
9. అతడు వారితో ఇంక మాటలాడుచుండగా రాహేలు తన తండ్రి గొఱ్ఱెల మందను తోలుకొని వచ్చెను; ఆమె వాటిని మేపునది.
9. While Jacob was still talking with the men, his cousin Rachel came up with her father's sheep.
10. యాకోబు తన తల్లి సహోదరుడైన లాబాను కుమార్తెయగు రాహేలును, తన తల్లి సహోదరుడగు లాబాను గొఱ్ఱెలను చూచినప్పుడు అతడు దగ్గరకు వెళ్లి బావిమీదనుండి రాతిని పొర్లించి తన తల్లి సహోదరుడగు లాబాను గొఱ్ఱెలకు నీళ్లు పెట్టెను. యాకోబు రాహేలును ముద్దుపెట్టుకొని యెలుగెత్తి యేడ్చెను.
10. When Jacob saw her and his uncle's sheep, he rolled the rock away and watered the sheep.
11. He then kissed Rachel and started crying because he was so happy.
12. రిబ్కా కుమారుడనియు రాహేలుతో చెప్పినప్పుడు ఆమె పరుగెత్తిపోయి తన తండ్రితో చెప్పెను.
12. He told her that he was the son of her aunt Rebekah, and she ran and told her father about him.
13. లాబాను తన సహోదరి కుమారుడైన యాకోబు సమాచారము వినినప్పుడు అతనిని ఎదుర్కొనుటకు పరుగెత్తికొని వచ్చి అతని కౌగలించి ముద్దు పెట్టుకొని తన యింటికి తోడుకొని పోయెను. అతడు ఈ సంగతులన్నియు లాబానుతో చెప్పెను.
13. As soon as Laban heard the news, he ran out to meet Jacob. He hugged and kissed him and brought him to his home, where Jacob told him everything that had happened.
14. Laban said, "You are my nephew, and you are like one of my own family." After Jacob had been there for a month,
15. లాబాను నీవు నా బంధువుడవైనందున ఊరకయే నాకు కొలువు చేసెదవా? నీకేమి జీతము కావలెనో చెప్పుమని యాకోబు నడిగెను.
15. Laban said to him, "You shouldn't have to work without pay, just because you are a relative of mine. What do you want me to give you?"
16. Laban had two daughters. Leah was older than Rachel, but her eyes didn't sparkle, while Rachel was beautiful and had a good figure.
17. లేయా జబ్బు కండ్లు గలది; రాహేలు రూపవతియు సుందరియునై యుండెను.
18. Since Jacob was in love with Rachel, he answered, "If you will let me marry Rachel, I'll work seven years for you."
19. Laban replied, "It's better for me to let you marry Rachel than for someone else to have her. So stay and work for me."
20. యాకోబు రాహేలు కోసము ఏడు సంవత్సరములు కొలువు చేసెను. అయినను అతడు ఆమెను ప్రేమించుటవలన అవి అతనికి కొద్ది దినములుగా తోచెను.
20. Jacob worked seven years for Laban, but the time seemed like only a few days, because he loved Rachel so much.
21. Jacob said to Laban, "The time is up, and I want to marry Rachel now!"
22. So Laban gave a big feast and invited all their neighbors.
23. రాత్రి వేళ తన కుమార్తెయైన లేయాను అతనియొద్దకు తీసికొని పోగా యాకోబు ఆమెను కూడెను.
23. But that evening he brought Leah to Jacob, who married her and spent the night with her.
24. Laban also gave Zilpah to Leah as her servant woman.
25. ఉదయమందు ఆమెను లేయా అని యెరిగి అతడు లాబానుతో నీవు నాకు చేసిన పని యేమిటి? రాహేలు కోసమే గదా నీకు కొలువు చేసితిని? ఎందుకు నన్ను మోసపుచ్చితివనెను.
25. The next morning Jacob found out that he had married Leah, and he asked Laban, "Why did you do this to me? Didn't I work to get Rachel? Why did you trick me?"
26. అందుకు లాబాను పెద్ద దానికంటె ముందుగా చిన్నదాని నిచ్చుట మాదేశ మర్యాదకాదు.
26. Laban replied, "In our country the older daughter must get married first.
27. After you spend this week with Leah, you may also marry Rachel. But you will have to work for me another seven years."
28. యాకోబు అలాగు చేసి ఆమె వారము సంపూర్తియైన తరువాత అతడు తన కుమార్తెయైన రాహేలును అతనికి భార్యగా ఇచ్చెను.
28. At the end of the week of celebration, Laban let Jacob marry Rachel, and he gave her his servant woman Bilhah. Jacob loved Rachel more than he did Leah, but he had to work another seven years for Laban.
31. The LORD knew that Jacob loved Rachel more than he did Leah, and so he gave children to Leah, but not to Rachel.
32. లేయా గర్భవతియై కుమారుని కని, యెహోవా నా శ్రమను చూచియున్నాడు గనుక నా పెనిమిటి నన్ను ప్రేమించును గదా అనుకొని అతనికి రూబేను అను పేరు పెట్టెను.
32. Leah gave birth to a son and named him Reuben, because she said, "The LORD has taken away my sorrow. Now my husband will love me more than he does Rachel."
33. ఆమె మరల గర్భవతియై కుమారుని కని నేను ద్వేషింపబడితినన్న సంగతి యెహోవా విన్నాడు గనుక ఇతనికూడ నాకు దయచేసెననుకొని అతనికి షిమ్యోను అను పేరు పెట్టెను.
33. She had a second son and named him Simeon, because she said, "The LORD has heard that my husband doesn't love me."
34. When Leah's third son was born, she said, "Now my husband will hold me close." So this son was named Levi.
35. She had one more son and named him Judah, because she said, "I'll praise the LORD!"
Powered by Sajeeva Vahini Study Bible. Copyright© Sajeeva Vahini. All Rights Reserved.
యాకోబు హారాను బావి దగ్గరికి వచ్చాడు. (1-8)
యాకోబు తనకు తెలియని వ్యక్తులతో మంచిగా ఉండేవాడు మరియు వారు కూడా అతనికి మంచిగా ఉండేవారు.
రాహేలుతో అతని ఇంటర్వ్యూ, లాబాన్ అతనిని అలరిస్తుంది. (9-14)
కష్టపడి పనిచేయడానికి, వినయంగా ఉండడానికి రాచెల్ మంచి ఉదాహరణ. మనం చేసే పనికి గర్వపడటం ముఖ్యం, అలాగే విభిన్నమైన ప్రాధాన్యతలు ఉన్నా సరే. రాచెల్ తన కుటుంబమని యాకోబు తెలుసుకున్నప్పుడు, అతను ఆమెకు సహాయం చేయడానికి సంతోషించాడు. లాబాను ఎల్లప్పుడూ మంచి మానసిక స్థితిలో లేకపోయినా, అతను యాకోబును స్వాగతించాడు మరియు అతని నేపథ్యం గురించి విన్న తర్వాత అతనిని విశ్వసించాడు. మనం విన్నవన్నీ నమ్మకుండా జాగ్రత్తపడాలి, అంతేకానీ ఇతరుల గురించి చాలా నీచంగా లేదా అనుమానంగా ఉండకూడదు.
రాహేలు కోసం యాకోబు చేసిన ఒడంబడిక, లాబాను మోసం. (15-30)
లేయా కుమారులు. (31-35)
కష్ట సమయాల్లో తనకు సహాయం చేసినందుకు మరియు తనను రక్షించినందుకు ఒక స్త్రీ దేవునికి కృతజ్ఞతతో ఉంటుంది. ఆమె తన నాల్గవ కుమారునికి యూదా అని పేరు పెట్టింది, అంటే "ప్రశంసలు" అని అర్ధం, ఎందుకంటే ఆమె దేవునికి కృతజ్ఞతలు చెప్పాలని కోరుకుంది. యేసు తన కుటుంబం నుండి వచ్చినందున ఈ కుమారుడు ముఖ్యమైనవాడు. దేవుడు మన కోసం చేసిన దానికి మనం ఎల్లప్పుడూ కృతజ్ఞతతో ఉండాలి మరియు ముఖ్యంగా మంచి విషయాలు జరిగినప్పుడు ఆయనను స్తుతించాలని గుర్తుంచుకోండి. మనం మన ప్రశంసలను యేసుపై కేంద్రీకరించాలి, ఎందుకంటే మనకు కావాల్సినవన్నీ ఆయనకు ఉన్నాయి. మన హృదయాలలో యేసు ఉంటే, మనం ఎల్లప్పుడూ దేవుణ్ణి స్తుతించాలి.
American King James Version (1999)
American Standard Version (1901)
Amplified Bible (1965)
Apostles' Bible Complete (2004)
Bible in Basic English (1964)
Complementary English Version (1995)
Coverdale Bible (1535)
Easy to Read Revised Version (2005)
English Jubilee 2000 Bible (2000)
English Standard Version (2001)
Geneva Bible (1599)
Holman Christian Standard Bible (2004)
Holy Bible Revised Version (1885)
King James Version (1769)
Literal Translation of Holy Bible (2000)
Modern King James Version (1962)
New American Standard Bible (1995)
New Century Version (1991)
New English Translation (2005)
New International Reader's Version (1998)
New International Version (1984) (US)
New International Version (UK)
New King James Version (1982)
New Life Version (1969)
New Living Translation (1996)
New Revised Standard Version (1989)
Revised Standard Version (1952)
Revised Webster Update (1995)
Rotherhams Emphasized Bible (1902)
Telugu Bible (BSI)
Telugu Bible (WBTC)
The Complete Jewish Bible (1998)
The Darby Bible (1890)
The Douay-Rheims American Bible (1899)
The Message Bible (2002)
The Webster Bible (1833)
Third Millennium Bible (1998)
Today's English Version (Good News Bible) (1992)
Today's New International Version (2005)
Tyndale Bible (1534)
Tyndale-Rogers-Coverdale-Cranmer Bible (1537)
Updated Bible (2006)
Voice In Wilderness (2006)
Wycliffe Bible (1395)
Young's Literal Translation (1898)
| english |
<filename>src/no/2021-01/05/06.md
---
title: «Du trøstet meg»
date: 28/01/2021
---
Jes 12 er en kort lovsang til Gud for hans barmhjertige og store trøst. Salmen er lagt i munnen på et medlem av den hjemkomne levningen og sammenligner den lovte utfrielsen med hebreernes utfrielse fra Egypt (se Jes 11,16). Den er som Moses og israelittenes sang da de ble reddet fra faraos hær ved Rødehavet (se 2 Mos 15).
`Sammenlign denne sangen i Jes 12 med Åp 15,2–4, Moses og Lammets sang. Hva er det begge priser Gud for?`
Jes 12,2 er nær ved å identifisere den kommende frelseren som Jesus. Den sier at «Gud er min frelse» og «han er blitt min frelse.» Navnet Jesus betyr «Herren er frelse» (se Matt 1,21).
`Hva betyr ideen i Jesu navn, om at Herren er frelse?`
Ikke nok med at Herren frelser (Jes 12,2), han er frelse. Det at Israels Hellige er midt iblant oss (Jes 12,6) betyr alt for oss. Gud er med oss! Ikke nok med at Jesus utførte mirakler, han «ble menneske og tok bolig iblant oss» (Joh 1,14). Ikke nok med at han bar han våre synder på korset, han ble synd for oss (2 Kor 5,21). Han ikke bare skaper fred. Han er vår fred (Ef 2,14).
Det er ikke til å undres over at Isais rotskudd skal stå som et banner for folkene (Jes 11,10). Når han blir løftet opp på korset, drar han alle til seg! (Joh 12,32–33). En rest skal vende tilbake til «den veldige Gud» (Jes 10,21), og han er barnet som er oss født, «Fredsfyrsten» (Jes 9,6).
`Hold fast ved tanken om at Jesus er vår frelse. Les Rom 3,24. Verset lærer at vi blir frikjøpt i Jesus, for i ham ble vi kjøpt fri, og det er også ved Guds nåde og barmhjertighet at vi kan ha en evig del i dette. Det at vi ble frikjøpt i ham kan vi få del i ved tro, og ikke ved gjerninger, for ingenting vi gjør, er godt nok til å kjøpe oss fri. Bare det Kristus gjorde og som han tilregner oss ved tro, kan sette oss fri. Hvordan gir denne sannheten deg håp og frelsesvisshet, spesielt når du føler deg overveldet av din uverdighet?` | markdown |
<filename>demo-site/public/static/application.css<gh_stars>10-100
table caption {
text-align: left;
font-size: 24px;
padding: 5px;
}
input, textarea, select { width: auto; }
.inline_mtm_add_associations form,
.inline_mtm_add_associations div,
.inline_mtm_remove_associations form,
.inline_mtm_remove_associations div,
.inline_mtm_remove_associations input.btn {display: inline; margin: 5px;}
#autoforme_content label, #autoforme_content span.label {display: inline-block; min-width: 150px; text-align:right; margin-right: 20px;}
#autoforme_content label.option {display: inline; min-width: 0px; text-align:left; margin-right: 0px;}
span.error_message {color: red; }
input.error, select.error, textarea.error {border-color: red; }
.navbar,
.navbar .dropdown-menu, .dropdown-menu li a:hover {
background-color: #2c2c2c;
}
.navbar,
.navbar .navbar-brand,
.navbar .navbar-nav > li > a,
.navbar .navbar-nav .open .dropdown-menu > li > a,
.navbar .navbar-brand:hover,
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar .navbar-brand:visited,
.navbar .navbar-nav > li > a:visited,
.navbar .navbar-nav .open .dropdown-menu > li > a:visited {
color: white;
}
.navbar .navbar-brand:hover,
.navbar .navbar-nav > li > a:hover,
.navbar .navbar-nav .open .dropdown-menu > li > a:hover {
text-decoration: underline;
}
| css |
<filename>dds/DCPS/transport/framework/TransportSendControlElement.inl
/*
* $Id: TransportSendControlElement.inl 6912 2015-02-04 14:54:53Z mitza $
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#include "EntryExit.h"
#include "dds/DCPS/DataSampleElement.h"
namespace OpenDDS {
namespace DCPS {
ACE_INLINE
TransportSendControlElement::TransportSendControlElement(int initial_count,
const RepoId& publisher_id,
TransportSendListener* listener,
const DataSampleHeader& header,
ACE_Message_Block* msg_block,
TransportSendControlElementAllocator* allocator)
: TransportQueueElement(initial_count),
publisher_id_(publisher_id),
listener_(listener),
header_(header),
msg_(msg_block),
dcps_elem_(0),
allocator_(allocator)
{
DBG_ENTRY_LVL("TransportSendControlElement","TransportSendControlElement",6);
}
ACE_INLINE
TransportSendControlElement::TransportSendControlElement(int initial_count,
const DataSampleElement* dcps_elem,
TransportSendControlElementAllocator* allocator)
: TransportQueueElement(initial_count)
, publisher_id_(dcps_elem->get_pub_id())
, listener_(dcps_elem->get_send_listener())
, header_(dcps_elem->get_header())
, msg_(dcps_elem->get_sample())
, dcps_elem_(dcps_elem)
, allocator_(allocator)
{
DBG_ENTRY_LVL("TransportSendControlElement", "TransportSendControlElement", 6);
}
ACE_INLINE /*static*/
TransportSendControlElement*
TransportSendControlElement::alloc(int initial_count,
const RepoId& publisher_id,
TransportSendListener* listener,
const DataSampleHeader& header,
ACE_Message_Block* message,
TransportSendControlElementAllocator* allocator)
{
TransportSendControlElement* ret;
ACE_NEW_MALLOC_RETURN(ret,
static_cast<TransportSendControlElement*>(allocator->malloc()),
TransportSendControlElement(initial_count, publisher_id, listener, header,
message, allocator),
0);
return ret;
}
ACE_INLINE /*static*/
TransportSendControlElement*
TransportSendControlElement::alloc(int initial_count,
const DataSampleElement* dcps_elem,
TransportSendControlElementAllocator* allocator)
{
TransportSendControlElement* ret;
ACE_NEW_MALLOC_RETURN(ret,
static_cast<TransportSendControlElement*>(allocator->malloc()),
TransportSendControlElement(initial_count, dcps_elem, allocator),
0);
return ret;
}
ACE_INLINE
bool
TransportSendControlElement::owned_by_transport()
{
return false;
}
ACE_INLINE
SequenceNumber
TransportSendControlElement::sequence() const
{
return this->header_.sequence_;
}
}
}
| cpp |
#Based off of http://wiki.wxpython.org/GLCanvas
#Lots of help from http://wiki.wxpython.org/Getting%20Started
from OpenGL.GL import *
import wx
from wx import glcanvas
from Primitives3D import *
from PolyMesh import *
from LaplacianMesh import *
from Geodesics import *
from PointCloud import *
from Cameras3D import *
from ICP import *
from sys import exit, argv
import random
import numpy as np
import scipy.io as sio
from pylab import cm
import os
import subprocess
import math
import time
#from sklearn import manifold
from GMDS import *
DEFAULT_SIZE = wx.Size(1200, 800)
DEFAULT_POS = wx.Point(10, 10)
PRINCIPAL_AXES_SCALEFACTOR = 1
def saveImageGL(mvcanvas, filename):
view = glGetIntegerv(GL_VIEWPORT)
img = wx.EmptyImage(view[2], view[3] )
pixels = glReadPixels(0, 0, view[2], view[3], GL_RGB,
GL_UNSIGNED_BYTE)
img.SetData( pixels )
img = img.Mirror(False)
img.SaveFile(filename, wx.BITMAP_TYPE_PNG)
def saveImage(canvas, filename):
s = wx.ScreenDC()
w, h = canvas.size.Get()
b = wx.EmptyBitmap(w, h)
m = wx.MemoryDCFromDC(s)
m.SelectObject(b)
m.Blit(0, 0, w, h, s, 70, 0)
m.SelectObject(wx.NullBitmap)
b.SaveFile(filename, wx.BITMAP_TYPE_PNG)
class MeshViewerCanvas(glcanvas.GLCanvas):
def __init__(self, parent):
attribs = (glcanvas.WX_GL_RGBA, glcanvas.WX_GL_DOUBLEBUFFER, glcanvas.WX_GL_DEPTH_SIZE, 24)
glcanvas.GLCanvas.__init__(self, parent, -1, attribList = attribs)
self.context = glcanvas.GLContext(self)
self.parent = parent
#Camera state variables
self.size = self.GetClientSize()
#self.camera = MouseSphericalCamera(self.size.x, self.size.y)
self.camera = MousePolarCamera(self.size.width, self.size.height)
#Main state variables
self.MousePos = [0, 0]
self.initiallyResized = False
self.bbox = BBox3D()
self.unionbbox = BBox3D()
random.seed()
#Face mesh variables and manipulation variables
self.mesh1 = None
self.mesh1Dist = None
self.mesh1DistLoaded = False
self.mesh2 = None
self.mesh2DistLoaded = False
self.mesh2Dist = None
self.mesh3 = None
#Holds the transformations of the best iteration in ICP
self.transformations = []
self.savingMovie = False
self.movieIter = 0
self.displayMeshFaces = True
self.displayMeshEdges = False
self.displayMeshVertices = False
self.displayMeshNormals = False
self.displayPrincipalAxes = False
self.vertexColors = np.zeros(0)
self.cutPlane = None
self.displayCutPlane = False
self.GLinitialized = False
#GL-related events
wx.EVT_ERASE_BACKGROUND(self, self.processEraseBackgroundEvent)
wx.EVT_SIZE(self, self.processSizeEvent)
wx.EVT_PAINT(self, self.processPaintEvent)
#Mouse Events
wx.EVT_LEFT_DOWN(self, self.MouseDown)
wx.EVT_LEFT_UP(self, self.MouseUp)
wx.EVT_RIGHT_DOWN(self, self.MouseDown)
wx.EVT_RIGHT_UP(self, self.MouseUp)
wx.EVT_MIDDLE_DOWN(self, self.MouseDown)
wx.EVT_MIDDLE_UP(self, self.MouseUp)
wx.EVT_MOTION(self, self.MouseMotion)
#self.initGL()
def initPointCloud(self, pointCloud):
self.pointCloud = pointCloud
def centerOnMesh1(self, evt):
if not self.mesh1:
return
self.bbox = self.mesh1.getBBox()
self.camera.centerOnBBox(self.bbox, theta = -math.pi/2, phi = math.pi/2)
self.Refresh()
def centerOnMesh2(self, evt):
if not self.mesh2:
return
self.bbox = self.mesh2.getBBox()
self.camera.centerOnBBox(self.bbox, theta = -math.pi/2, phi = math.pi/2)
self.Refresh()
def centerOnBoth(self, evt):
if not self.mesh1 or not self.mesh2:
return
self.bbox = self.mesh1.getBBox()
self.bbox.Union(self.mesh2.getBBox())
self.camera.centerOnBBox(self.bbox, theta = -math.pi/2, phi = math.pi/2)
self.Refresh()
def MDSMesh1(self, evt):
if not self.mesh1:
print "ERROR: Mesh 1 not loaded yet"
return
if not self.mesh1DistLoaded:
print "ERROR: Mesh 1 distance matrix not loaded"
return
mds = manifold.MDS(n_components=2, dissimilarity="precomputed", n_jobs=1)
print "Doing MDS on mesh 1...."
pos = mds.fit(self.mesh1Dist).embedding_
print "Finished MDS on mesh 1"
for i in range(pos.shape[0]):
self.mesh1.vertices[i].pos = Point3D(pos[i, 0], pos[i, 1], pos[i, 2])
self.mesh1.needsDisplayUpdate = True
self.Refresh()
def MDSMesh2(self, evt):
if not self.mesh2:
print "ERROR: Mesh 2 not loaded yet"
return
if not self.mesh2DistLoaded:
print "ERROR: Mesh 2 distance matrix not loaded"
return
mds = manifold.MDS(n_components=2, dissimilarity="precomputed", n_jobs=1)
print "Doing MDS on mesh 2..."
pos = mds.fit(self.mesh2Dist).embedding_
print "Finished MDS on mesh 2"
for i in range(pos.shape[0]):
self.mesh2.vertices[i].pos = Point3D(pos[i, 0], pos[i, 1], pos[i, 2])
self.mesh2.needsDisplayUpdate = True
self.Refresh()
def doGMDS(self, evt):
if self.mesh1 and self.mesh2:
if not self.mesh1DistLoaded:
print "Mesh 1 distance not loaded"
return
if not self.mesh2DistLoaded:
print "Mesh 2 distance not loaded"
return
N = len(self.mesh1.vertices)
VX = np.zeros((N, 3))
for i in range(N):
V = self.mesh1.vertices[i].pos
VX[i, :] = np.array([V.x, V.y, V.z])
print "Doing GMDS..."
t, u = GMDSPointsToMesh(VX, self.mesh1Dist, self.mesh2, self.mesh2Dist)
print "Finished GMDS"
#Update the vertices based on the triangles where they landed
#and the barycentric coordinates of those triangles
for i in range(N):
Vs = [v.pos for v in self.mesh2.faces[int(t[i].flatten()[0])].getVertices()]
pos = Point3D(0, 0, 0)
for k in range(3):
pos = pos + u[i, k]*Vs[k]
self.mesh1.vertices[i].pos = pos
self.mesh1.needsDisplayUpdate = True
else:
print "ERROR: One or both meshes have not been loaded yet"
self.Refresh()
def displayMeshFacesCheckbox(self, evt):
self.displayMeshFaces = evt.Checked()
self.Refresh()
def displayMeshEdgesCheckbox(self, evt):
self.displayMeshEdges = evt.Checked()
self.Refresh()
def displayCutPlaneCheckbox(self, evt):
self.displayCutPlane = evt.Checked()
self.Refresh()
def displayMeshVerticesCheckbox(self, evt):
self.displayMeshVertices = evt.Checked()
self.Refresh()
def displayPrincipalAxesCheckbox(self, evt):
self.displayPrincipalAxes = evt.Checked()
self.Refresh()
def processEraseBackgroundEvent(self, event): pass #avoid flashing on MSW.
def processSizeEvent(self, event):
self.size = self.GetClientSize()
self.SetCurrent(self.context)
glViewport(0, 0, self.size.width, self.size.height)
if not self.initiallyResized:
#The canvas gets resized once on initialization so the camera needs
#to be updated accordingly at that point
self.camera = MousePolarCamera(self.size.width, self.size.height)
self.camera.centerOnBBox(self.bbox, math.pi/2, math.pi/2)
self.initiallyResized = True
def processPaintEvent(self, event):
dc = wx.PaintDC(self)
self.SetCurrent(self.context)
if not self.GLinitialized:
self.initGL()
self.GLinitialized = True
self.repaint()
def repaint(self):
#Set up projection matrix
glMatrixMode(GL_PROJECTION)
glLoadIdentity()
farDist = (self.camera.eye - self.bbox.getCenter()).Length()*2
#This is to make sure we can see on the inside
farDist = max(farDist, self.unionbbox.getDiagLength()*2)
nearDist = farDist/50.0
gluPerspective(180.0*self.camera.yfov/M_PI, float(self.size.x)/self.size.y, nearDist, farDist)
#Set up modelview matrix
self.camera.gotoCameraFrame()
glClearColor(0.0, 0.0, 0.0, 0.0)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
glLightfv(GL_LIGHT0, GL_POSITION, [3.0, 4.0, 5.0, 0.0]);
glLightfv(GL_LIGHT1, GL_POSITION, [-3.0, -2.0, -3.0, 0.0]);
glEnable(GL_LIGHTING)
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, [0.8, 0.8, 0.8, 1.0]);
glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, [0.2, 0.2, 0.2, 1.0])
glMaterialfv(GL_FRONT_AND_BACK, GL_SHININESS, 64)
if self.mesh1:
self.mesh1.renderGL(True, True, False, False, None)
if self.mesh2:
self.mesh2.renderGL(self.displayMeshEdges, self.displayMeshVertices, self.displayMeshNormals, self.displayMeshFaces, None)
self.SwapBuffers()
def initGL(self):
glLightModelfv(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, GL_TRUE)
glLightfv(GL_LIGHT0, GL_DIFFUSE, [1.0, 1.0, 1.0, 1.0])
glEnable(GL_LIGHT0)
glLightfv(GL_LIGHT1, GL_DIFFUSE, [0.5, 0.5, 0.5, 1.0])
glEnable(GL_LIGHT1)
glEnable(GL_NORMALIZE)
glEnable(GL_LIGHTING)
glEnable(GL_DEPTH_TEST)
def handleMouseStuff(self, x, y):
#Invert y from what the window manager says
y = self.size.height - y
self.MousePos = [x, y]
def MouseDown(self, evt):
x, y = evt.GetPosition()
self.CaptureMouse()
self.handleMouseStuff(x, y)
self.Refresh()
def MouseUp(self, evt):
x, y = evt.GetPosition()
self.handleMouseStuff(x, y)
self.ReleaseMouse()
self.Refresh()
def MouseMotion(self, evt):
x, y = evt.GetPosition()
[lastX, lastY] = self.MousePos
self.handleMouseStuff(x, y)
dX = self.MousePos[0] - lastX
dY = self.MousePos[1] - lastY
if evt.Dragging():
if evt.MiddleIsDown():
self.camera.translate(dX, dY)
elif evt.RightIsDown():
self.camera.zoom(-dY)#Want to zoom in as the mouse goes up
elif evt.LeftIsDown():
self.camera.orbitLeftRight(dX)
self.camera.orbitUpDown(dY)
self.Refresh()
class MeshViewerFrame(wx.Frame):
(ID_LOADDATASET1, ID_LOADDATASET2, ID_SAVEDATASET, ID_SAVESCREENSHOT) = (1, 2, 3, 4)
def __init__(self, parent, id, title, pos=DEFAULT_POS, size=DEFAULT_SIZE, style=wx.DEFAULT_FRAME_STYLE, name = 'GLWindow', mesh1 = None, mesh2 = None):
style = style | wx.NO_FULL_REPAINT_ON_RESIZE
super(MeshViewerFrame, self).__init__(parent, id, title, pos, size, style, name)
#Initialize the menu
self.CreateStatusBar()
self.size = size
self.pos = pos
print "MeshViewerFrameSize = %s, pos = %s"%(self.size, self.pos)
filemenu = wx.Menu()
menuOpenMesh1 = filemenu.Append(MeshViewerFrame.ID_LOADDATASET1, "&Load Mesh1","Load a polygon mesh")
self.Bind(wx.EVT_MENU, self.OnLoadMesh1, menuOpenMesh1)
menuOpenMesh2 = filemenu.Append(MeshViewerFrame.ID_LOADDATASET2, "&Load Mesh2","Load a polygon mesh")
self.Bind(wx.EVT_MENU, self.OnLoadMesh2, menuOpenMesh2)
menuSaveScreenshot = filemenu.Append(MeshViewerFrame.ID_SAVESCREENSHOT, "&Save Screenshot", "Save a screenshot of the GL Canvas")
self.Bind(wx.EVT_MENU, self.OnSaveScreenshot, menuSaveScreenshot)
menuExit = filemenu.Append(wx.ID_EXIT,"E&xit"," Terminate the program")
self.Bind(wx.EVT_MENU, self.OnExit, menuExit)
# Creating the menubar.
menuBar = wx.MenuBar()
menuBar.Append(filemenu,"&File") # Adding the "filemenu" to the MenuBar
self.SetMenuBar(menuBar) # Adding the MenuBar to the Frame content.
self.glcanvas = MeshViewerCanvas(self)
self.glcanvas.mesh1 = None
self.glcanvas.mesh2 = None
if mesh1:
(self.glcanvas.mesh1, self.glcanvas.mesh1Dist) = self.loadMesh(mesh1)
if self.glcanvas.mesh1Dist.shape[0] > 0:
self.glcanvas.mesh1DistLoaded = True
else:
self.glcanvas.mesh1DistLoaded = False
if mesh2:
(self.glcanvas.mesh2, self.glcanvas.mesh2Dist) = self.loadMesh(mesh2)
if self.glcanvas.mesh2Dist.shape[0] > 0:
self.glcanvas.mesh2DistLoaded = True
else:
self.glcanvas.mesh2DistLoaded = False
self.rightPanel = wx.BoxSizer(wx.VERTICAL)
#Buttons to go to a default view
viewPanel = wx.BoxSizer(wx.HORIZONTAL)
center1Button = wx.Button(self, -1, "Mesh1")
self.Bind(wx.EVT_BUTTON, self.glcanvas.centerOnMesh1, center1Button)
viewPanel.Add(center1Button, 0, wx.EXPAND)
center2Button = wx.Button(self, -1, "Mesh2")
self.Bind(wx.EVT_BUTTON, self.glcanvas.centerOnMesh2, center2Button)
viewPanel.Add(center2Button, 0, wx.EXPAND)
bothButton = wx.Button(self, -1, "Both")
self.Bind(wx.EVT_BUTTON, self.glcanvas.centerOnBoth, bothButton)
viewPanel.Add(bothButton, 0, wx.EXPAND)
self.rightPanel.Add(wx.StaticText(self, label="Views"), 0, wx.EXPAND)
self.rightPanel.Add(viewPanel, 0, wx.EXPAND)
#Buttons for MDS
MDSPanel = wx.BoxSizer(wx.HORIZONTAL)
MDS1Button = wx.Button(self, -1, "MDS Mesh1")
self.Bind(wx.EVT_BUTTON, self.glcanvas.MDSMesh1, MDS1Button)
MDSPanel.Add(MDS1Button, 0, wx.EXPAND)
MDS2Button = wx.Button(self, -1, "MDS Mesh2")
self.Bind(wx.EVT_BUTTON, self.glcanvas.MDSMesh2, MDS2Button)
MDSPanel.Add(MDS2Button, 0, wx.EXPAND)
self.rightPanel.Add(wx.StaticText(self, label="MDS on Meshes"), 0, wx.EXPAND)
self.rightPanel.Add(MDSPanel, 0, wx.EXPAND)
#Checkboxes for displaying data
self.displayMeshFacesCheckbox = wx.CheckBox(self, label = "Display Mesh Faces")
self.displayMeshFacesCheckbox.SetValue(True)
self.Bind(wx.EVT_CHECKBOX, self.glcanvas.displayMeshFacesCheckbox, self.displayMeshFacesCheckbox)
self.rightPanel.Add(self.displayMeshFacesCheckbox, 0, wx.EXPAND)
self.displayMeshEdgesCheckbox = wx.CheckBox(self, label = "Display Mesh Edges")
self.displayMeshEdgesCheckbox.SetValue(False)
self.Bind(wx.EVT_CHECKBOX, self.glcanvas.displayMeshEdgesCheckbox, self.displayMeshEdgesCheckbox)
self.rightPanel.Add(self.displayMeshEdgesCheckbox, 0, wx.EXPAND)
self.displayMeshVerticesCheckbox = wx.CheckBox(self, label = "Display Mesh Points")
self.displayMeshVerticesCheckbox.SetValue(False)
self.Bind(wx.EVT_CHECKBOX, self.glcanvas.displayMeshVerticesCheckbox, self.displayMeshVerticesCheckbox)
self.rightPanel.Add(self.displayMeshVerticesCheckbox)
#Button for doing ICP
GMDSButton = wx.Button(self, -1, "DO GMDS")
self.Bind(wx.EVT_BUTTON, self.glcanvas.doGMDS, GMDSButton)
self.rightPanel.Add(GMDSButton, 0, wx.EXPAND)
#Finally add the two main panels to the sizer
self.sizer = wx.BoxSizer(wx.HORIZONTAL)
self.sizer.Add(self.glcanvas, 2, wx.EXPAND)
self.sizer.Add(self.rightPanel, 0, wx.EXPAND)
self.SetSizer(self.sizer)
self.Layout()
self.Show()
def loadMesh(self, filepath):
print "Loading mesh %s..."%filepath
mesh = LaplacianMesh()
mesh.loadFile(filepath)
print "Finished loading mesh 1\n %s"%mesh
#Now try to load in the distance matrix
fileName, fileExtension = os.path.splitext(filepath)
matfile = sio.loadmat("%s.mat"%fileName)
D = np.array([])
if 'D' in matfile:
D = matfile['D']
else:
print "ERROR: No distance matrix found for mesh %s"%filepath
return (mesh, D)
def OnLoadMesh1(self, evt):
dlg = wx.FileDialog(self, "Choose a file", ".", "", "OBJ files (*.obj)|*.obj|OFF files (*.off)|*.off", wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
filename = dlg.GetFilename()
dirname = dlg.GetDirectory()
filepath = os.path.join(dirname, filename)
print dirname
(self.glcanvas.mesh1, self.glcanvas.mesh1Dist) = self.loadMesh(filepath)
self.glcanvas.bbox = self.glcanvas.mesh1.getBBox()
print "Mesh BBox: %s\n"%self.glcanvas.bbox
self.glcanvas.camera.centerOnBBox(self.glcanvas.bbox, theta = -math.pi/2, phi = math.pi/2)
#Now try to load in the distance matrix
if self.glcanvas.mesh1Dist.shape[0] > 0:
self.glcanvas.mesh1DistLoaded = True
self.glcanvas.Refresh()
dlg.Destroy()
return
def OnLoadMesh2(self, evt):
dlg = wx.FileDialog(self, "Choose a file", ".", "", "OBJ files (*.obj)|*.obj|OFF files (*.off)|*.off", wx.OPEN)
if dlg.ShowModal() == wx.ID_OK:
filename = dlg.GetFilename()
dirname = dlg.GetDirectory()
filepath = os.path.join(dirname, filename)
print dirname
(self.glcanvas.mesh2, self.glcanvas.mesh2Dist) = self.loadMesh(filepath)
self.glcanvas.bbox = self.glcanvas.mesh2.getBBox()
print "Mesh BBox: %s\n"%self.glcanvas.bbox
self.glcanvas.camera.centerOnBBox(self.glcanvas.bbox, theta = -math.pi/2, phi = math.pi/2)
#Now try to load in the distance matrix
if self.glcanvas.mesh2Dist.shape[0] > 0:
self.glcanvas.mesh2DistLoaded = True
self.glcanvas.Refresh()
dlg.Destroy()
return
def OnSaveScreenshot(self, evt):
dlg = wx.FileDialog(self, "Choose a file", ".", "", "*", wx.SAVE)
if dlg.ShowModal() == wx.ID_OK:
filename = dlg.GetFilename()
dirname = dlg.GetDirectory()
filepath = os.path.join(dirname, filename)
saveImageGL(self.glcanvas, filepath)
dlg.Destroy()
return
def OnExit(self, evt):
self.Close(True)
return
class MeshViewer(object):
def __init__(self, m1 = None, m2 = None):
app = wx.App()
frame = MeshViewerFrame(None, -1, 'MeshViewer', mesh1 = m1, mesh2 = m2)
frame.Show(True)
app.MainLoop()
app.Destroy()
if __name__ == '__main__':
m1 = None
m2 = None
if len(argv) >= 3:
m1 = argv[1]
m2 = argv[2]
viewer = MeshViewer(m1, m2)
| python |
The Kolkata Knight Riders put on a stellar performance as they defeated the Rajasthan Royals in the Eliminator of the Indian Premier League 2018 season to enter the 2nd playoff. They will now take on the Sunrisers Hyderabad in a bid to enter the final against the Chennai Super Kings on May 27.
The Dinesh-Karthik led side finished third on the points table with eight wins to their name. They went into the Eliminator as the favourites since they were playing in front of their home crowd and they did not disappoint.
Karthik himself was one of the top performers as he scored a well-crafted half-century and Andre Russell performed well too as he remained unbeaten on 49.
The bowlers were up to the task of defending 169 as they did not allow the Royals anywhere near their total despite picking up just four wickets.
They now have a huge task in hand as they get set to take on table-toppers Sunrisers Hyderabad at the Eden Gardens in Kolkata on May 25.
Let's take a look at their predicted XI:
Sunil Narine has been one of the most valuable players of the season, with the bat and the ball. His quickfire knocks at the top of the innings have given KKR a good start on a number of occasions and he has been impressive with the ball as well, which was expected. He will hope to get going at the top of the order against the potent bowling attack of SRH.
Chris Lynn has had a decent season so far, however, he has not been at his dangerous best. In fact, he has gone through most of his innings at a slower rate than usual. KKR will need him to get off to a flier against the likes of Bhuvneshwar Kumar and Sandeep Sharma.
Robin Uthappa has had quite a disappointing season so far. He has got off to a good start on a number of occasions and played some delectable shots, however, he has failed to convert his starts into a big score. He will need to step up his game in the virtual semifinal against SRH.
Shubhman Gill has been moved up and down the batting order and has performed reasonably well. We could expect him to come in at no. 4 in the batting line-up given the fact that Nitish Rana has not been performing well.
Dinesh Karthik has been KKR's best batsman this season. He has performed exceptionally well during chases and has single-handedly won a few matches. He has led the side with aplomb and will look to lead them to their third title in IPL history.
Nitish Rana will most likely bat lower down the order as he has not been performing too well off late. He will hope to get some form back in time and help his side reach the final.
Andre Russell was the man of the match in the previous encounter against the Rajasthan Royals as he scored 49 runs and bowled decently as well. He will look to continue his blistering form with the bat and provide the finishing touches to KKR's innings once again.
Piyush Chawla has performed consistently well this season, picking up wickets at regular intervals and troubling the batsmen. He played extremely well in the previous encounter and will look to carry his form onto the next match as well.
Kuldeep Yadav has not picked up nearly as many wickets as he would have liked but has kept the opposition's run-rate in check by not conceding too many runs. He will hope to be amongst the wickets in the next match and help his side qualify for the final.
Tom Curran will most likely replace Javon Searles in the playing XI for the playoff encounter against SRH given the fact that Searles has failed to make an impact. Curran, too, has not made much of an impact and will hope to make the most of his chance, if he does get one.
Our tournament homepage has IPL live score, Match Analysis, Detailed Stats, Fantasy Tips, Controversies, Match Predictions and much more. Bookmark it now!
| english |
New Delhi | Congress President Rahul Gandhi on Friday offered condolences to the families of those who died after consuming spurious liquor in Assam’s Golaghat district.
At least 30 people, including seven women, died allegedly after consuming the liquor at a tea garden. Fifty others are undergoing treatment at various hospitals, a district official said.
“I am saddened by the incident which occurred in Assam’s Golaghat area. My deepest condolences to the families of the victims. I hope that those undergoing treatment get well soon,” Gandhi said in a Facebok post.
It is believed that more than 100 people — labourers at Salimira tea garden — consumed the spurious liquor on Thursday night, BJP MLA Mrinal Saikia said.
Police have arrested two people in connection with the deaths.
Assam Chief Minister Sarbananda Sonowal has ordered an inquiry into the incident. Two excise officials of the district have been suspended.
As an independent media platform, we do not take advertisements from governments and corporate houses. It is you, our readers, who have supported us on our journey to do honest and unbiased journalism. Please contribute, so that we can continue to do the same in future. | english |
Just like the global icon Priyanka Chopra, Miss Universe Harnaaz Sandhu is also in New York Currently. On Saturday, the two attended the Global Citizen Festival when they met each other. Harnaaz took to her Instagram account and dropped a picture in which she can be seen posing with PeeCee. Harnaaz wore a black T-shirt which she layered with a blazer and paired with blue denim. On the other hand, desi girl Priyanka sported a colourful pantsuit with a white crop top.
Sharing the picture, Harnaaz appreciated Priyanka for her kindness and wrote, “I couldn’t have asked for us to meet in any other way. Thanks @priyankachopra for your kindness at @glblctzn … you killed it! ✨"
Soon after the picture was shared, dropped a heart-eye and a red heart emoji in the comments section. Fans were also quick to shower love on the two divas. “I love that you two finally got to meet! You both look like you could be sisters," one of the fans wrote. Another social media user read, “It happened! ! ! ! ! Two influential women creating history and making India so proud. " “I can’t believe this today I am so happy I saw my two inspired beautiful woman love you p & h," a third comment read.
While Priyanka was hosting the event, Jonas Brothers among others set the stage on fire with their performance.
Meanwhile, Priyanka has also been sharing several pictures and videos from her New York visit. Earlier, she dropped a video in which she was seen posing with Malala Yousafzai and Nick Jonas among others as she hosted a dinner at her restaurant. “A NYC night out with some of my favorites (sic)," she wrote in the caption. | english |
[
{
"title": "Softwares",
"options": [
"La Suite de Google (Gmail, Docs, Hangouts).",
"Hootsuit",
"Adobe Photoshop",
"Zety",
"Microsoft Office (Word, Excel, Power Point)",
"Wordpress",
"Nominaplus",
"Canva",
"Final Cut Pro",
"Jira"
]
},
{
"title": "Habilidades",
"options": [
"Trabajo en equipo",
"Resolución de problemas",
"Comunicación eficaz",
"Organización",
"Análisis y procesamiento de información",
"Análisis de datos cuantitativos",
"Conocimientos técnicos relacionados con el trabajo",
"Manejo de los programas de software",
"Edición y redacción de informes.",
"Venta y marketing"
]
}
]
| json |
James Vince and Josh Philippe made half-centuries as Sydney Sixers thrashed Brisbane Heat by eight wickets in Steve Smith's Big Bash League return.
All eyes were on Sixers batsman Smith in his first BBL appearance for six years, while Heat batsman Marnus Labuschagne played his first match of the 2019-20 tournament after returning from Australia's ODI series in India.
Labuschagne made only three as the Heat were restricted to 126-8, with runs hard to come by on a slow Gabba surface on Thursday.
Steve O'Keefe was named man of the match after taking 1-20 from his four overs, while Jackson Bird, Tom Curran and Ben Dwarshuis took two wickets apiece.
The Sixers eased to their target with 25 balls to spare, Vince making a stylish 51 off 37 balls and fellow opener Philippe an unbeaten 52 from 43.
Smith fell for only nine, but the Sixers were all-but home by then as they moved above Adelaide Strikers into second spot in the battle to face Melbourne Stars in the first Qualifier at the MCG.
The Heat have now lost three in a row and are just outside the play-off spots with two games to play.
O'Keefe stuck a big blow by removing Chris Lynn's off stump in the third over and the Heat were 33-2 in the fifth when Matt Renshaw was removed by Bird, having struck Nathan Lyon for six and four in the previous over.
Lyon had Sam Heazlett caught and bowled before Labuschagne was taken by Smith attempting to pull Curran, with the Heat slumping to 57-5 halfway through their innings.
James Pattinson made a brisk 27 not out from 15 balls after AB de Villiers (25) was caught by Smith in the deep, but the Sixers bowlers did a great job of restricting the Heat to a below-par total.
England batsman Vince was promoted to open with Philippe, Daniel Hughes dropping down the order.
He made the most of his opportunity at the top of the order, full of confidence after making an unbeaten 41 in a victory over the Melbourne Stars last time out.
Vince showed his class with glorious strokes on both sides of the wicket, coming down the track to launch Mujeeb Ur Rahman into the stands and reaching his half-century off 34 balls with a classy drive over cover before pulling Ben Laughlin to Heazlett.
Wicketkeeper batsman Philippe had mustered only 32 in his previous five knocks, but returned to form in batting conditions that were not straightforward.
Vince comfortably outscored Philippe in a stand of 75, but the 22-year-old clattered Laughlin for 10 off two balls as the Sixers closed in on an emphatic victory.
Pattinson followed Smith and had his Australia team-mate caught behind when he moved outside leg stump attempting an expansive drive, but Philippe brought up his half-century before Moises Henriques put the Heat out of their misery. | english |
NEW DELHI, Feb 6: The Indian Income Tax Department has issued about one lakh notices to people who have invested in cryptocurrencies like Bitcoin without declaring these in their income tax returns, a top official said on Tuesday.
The revelation by Central Board of Direct Taxes (CBDT) Chairman Sushil Chandra at an Assocham event here comes at a time when virtual currencies values have been tumbling on worries about government regulation. Bitcoin fell to its lowest since November at $5,992 in the Hong Kong market in early trade on Tuesday.
“People who have made investments (in cryptocurrencies) and have not declared income while filing taxes, and have not paid tax on the profit earned by investing, we are sending them notices as we feel that it is all taxable,” he said at an Assocham organised post-Budget semir here.
According to Chandra, the Income Tax Department had conducted various surveys on cryptocurrency exchanges to understand how many people are regular contributors, how many had registered themselves and how many have traded on exchanges.
”We found out that there is no clarity on investments made by many people which means that they have not declared it properly.
”We have informed all the DGs (Director Generals of Income Tax) across India, they are issuing notices and so that would be taxed,” he added.
He also said that as per income tax laws, money invested in virtual currencies would be taxable if the source is unexplained. Moreover, the profit gained on such investments is taxable.
”So we will tax that particular amount and they should pay tax on that,” Chandra added.
In December last, the Indian government sounded the alarm on the phenomenon of cryptocurrencies, comparing them with the notorious Ponzi schemes floated to dupe gullible investors.
A Fince Ministry statement said that as virtual currencies were not backed by assets, their prices are entirely a “matter of mere speculation”.
”Consumers need to be alert and extremely cautious as to avoid getting trapped in such Ponzi schemes,” it said.
It clarified that cryptocurrencies are not legal tender and do not have any regulatory permission or protection in India.
”The Government or Reserve Bank of India has not authorised any virtual currencies as a medium of exchange. Further, the government or any other regulator in India has not given license to any agency for working as exchange or any other kind of intermediary for any virtual currency,” the statement said. (IANS) | english |
Bradley Beal's parents are Bobby and Besta Beal. They've been very supportive of their son, who has become one of the most prolific NBA scorers. He has spent his entire professional career with the Washington Wizards, the team that drafted him back in 2012.
The Wizards star is under police investigation for allegedly hitting a heckler after the March 21 game against the Orlando Magic. Due to this, many basketball fans started wondering about his personal life.
A lot of fans have inquired about Bradley Beal's parents and the details about them. Here is everything we know about Bobby Beal and Besta Beal.
Bradley Beal is one of the five children of Bobby and Besta Beal. It's interesting that they don't have a daughter as all four of Bradley's siblings are his brothers.
Both Bobby and Besta are from St. Louis, Missouri. This is where the Washington Wizards star was born back in June 1993. Bradley was born in the city and attended school there as well, where he first started playing basketball.
Beal's parents have both been involved in sports. Due to this, it's no surprise that he's also turned into a world-class athlete. Bobby Beal is a former football player who played for the Kentucky State Thorobreds.
During his college career at Kentucky State, Beal was an outside linebacker. He attended the college from 1978 to 1982. Bobby stands at 6-foot-5 and is just an inch taller than his son.
Besta Beal is another former athlete. While her husband played football, Bradley Beal's mother was on the Kentucky State Thorobreds women's basketball team. Standing at 6-1, Besta played at the forward spot during her college career.
She also attended college for four years, where she met her husband. Besta is the athletic director at University City High School in St. Louis, Missouri and is a mother of five athletes.
Bradley Beal is the most successful athlete in his family. However, his brothers have also played sports. Unlike Bradley, they all followed in their father's footsteps and played football.
Here are Bradley's brothers, their respective football teams and positions: Brandon (Northern Illinois, tight end), Bruce (Alabama State, offensive lineman), Byron (Lindenwood University, offensive lineman) and Bryon (Lindenwood University, defensive lineman).
Check out all NBA Trade Deadline 2024 deals here as big moves are made!
| english |
There are many factors that determine the type of Occupation, these include:
The climate and weather differences in various places determine that nature of occupation available in a particular area E.g: Fisherman will be too much in riverline area.
Availability of natural resources affect the choice of occupation of a peoples miners for instance there will be many in areas where there are mineral resources.
The age of the person seeking employment and also government policies determines the type of occupation.
This can affect the types of occupation E.g Unskilled workers are many in extractive industries.
The risk and security involved in such employment also determine peoples involvement in an occupation.
These are interest, inclination and ability to the people.
The post Factors That Determines The Type Of Occupation (Commerce) appeared first on FORTMI.
| english |
<filename>src/test/java/com/microsoft/bingads/v11/api/test/entities/criterions/campaign/daytime/BulkCampaignDayTimeCriterionTests.java
package com.microsoft.bingads.v11.api.test.entities.criterions.campaign.daytime;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({
BulkCampaignDayTimeCriterionReadTests.class,
BulkCampaignDayTimeCriterionWriteTests.class,
})
public class BulkCampaignDayTimeCriterionTests {
}
| java |
{
"author": {
"id": "t2_4geh8lsd",
"name": "invisionelitex9"
},
"date": {
"day": 1588118400,
"full": 1588193505,
"month": 1585699200,
"week": 1587859200
},
"id": "t3_gahgbh",
"picture": {
"filesize": 96057,
"fullUrl": "https://preview.redd.it/8nj58p66ltv41.jpg?auto=webp&s=4a5fe0d2f2da6fe97d6b4757d95cb58ecb37015d",
"hash": "c87358e109",
"height": 853,
"lqip": "data:image/jpg;base64,/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAQAAwDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAABgX/xAAjEAABBAEEAgMBAAAAAAAAAAABAgMEEQUABjFBEyESIlFh/8QAFAEBAAAAAAAAAAAAAAAAAAAABP/EABoRAAIDAQEAAAAAAAAAAAAAAAECAAMRITH/2gAMAwEAAhEDEQA/AAud22kZJ5Mqc7J+KAASkJSDySeyP5pDg8MiNj204heOXHV91eSMLCjyPd36r3phuU7F3fMkSYuWcYkFsNKLbSvHQB6quAe+tXIOVwMOI1HTlotNpCbKACaFDkflaM96+YQYmtGB3hE//9k=",
"url": "https://preview.redd.it/8nj58p66ltv41.jpg?width=640&crop=smart&auto=webp&s=1ac592f5753c3b1bcd8123192f71dec917026511",
"width": 640
},
"score": {
"comments": 34,
"downs": 0,
"ratio": 1,
"ups": 422,
"value": 422
},
"subreddit": {
"id": "t5_2xy5e",
"name": "TerrainBuilding"
},
"tags": [],
"title": "Work was slow so i painted a 3d printed cottage",
"url": "https://www.reddit.com/r/TerrainBuilding/comments/gahgbh/work_was_slow_so_i_painted_a_3d_printed_cottage/"
}
| json |
Maharashtra has reintroduced face mask mandate in public spaces across the state as the number of new COVID-19 cases is on the rise once again.
The state has seen a sharp spike in COVID-19 cases over the last week, with June 1 reporting 1,081 cases, the highest since February 24.
In the two days since the state had added more than 1000 new infections each.
The Maharashtra health department on June 3 asked district and civic authorities to ramp up coronavirus testing as the numbers of samples being examined had fallen while cases were rising.
In a letter to collectors, municipal corporations and chief executive officers, Additional Chief Secretary (Health) Pradeep Vyas said all districts should ensure the proportion of RT-PCR tests was at least 60 per cent.
"People should be advised to wear masks in closed public spaces like trains, buses, cinemas, auditoriums, offices, hospitals, colleges and schools," Vyas said.
On Friday, Mumbai reported 763 new COVID-19 cases, the third consecutive day when the addition to the tally was above 700.
The addition to the tally was the highest since February 4, when the figure was 846, and was a rise from the 704 reported on Thursday and 739 on Wednesday, a civic official said.
On Friday, the Centre, in a letter advised five states to maintain a strict watch and take pre-emptive action, if needed, to control any emerging spread of the infection.
In a letter to Tamil Nadu, Kerala, Telangana, Karnataka and Maharashtra, Union Health Secretary Rajesh Bhushan highlighted that a few states were reporting a higher contribution to India's caseload, indicating the possibility of a localised spread of the infection.
"There is, therefore, a need to follow a risk assessment-based approach on the public health responses without losing the gains made so far in the fight against the pandemic," Bhushan said.
In the letter, he mentioned a sustained and significant decline in the number of COVID-19 cases has been observed in India over the past three months.
However, a slight upsurge in cases is being noticed, with 15,708 new infections being reported in a week ending on May 27, which rose to 21,055 cases in a week ending on June 3.
Also, there is a rise in the weekly positivity from 0. 52 per cent in a week ending May 27, 2022 to 0. 73 per cent in a week ending June 3.
States have been asked to refer to the directions issued in a letter by the ministry dated April 8, 2022 for strategic areas of intervention like relaxation in various activities, testing and surveillance, clinical management, vaccination, and community engagement with an increased focus on evidence-based decision making.
For more on news, sports and current affairs from around the world, please visit Indiatimes News. | english |
Ankita Lokhande is currently happily married to Vicky Jain. However, her fans still remember the whimsical romance of seven years with the late actor Sushant Singh Rajput. She recently talked about getting over her sudden break up with the actor after he got big in Bollywood.
In an interview with BBC News Hindi, Ankita Lokhande revealed that she could not get over Sushant Singh Rajput for over two years. ''For two and a half years, I kept hoping that things will be okay,'' she stated. However, on January 31st, things changed after she noticed that there were many pictures of her with the late actor in her house.
ALSO SEE: Bigg Boss 17: Ankita Lokhande On Break Up With Sushant Singh Rajput; 'Jab Upar Chad Rahe Hote Ho Career Mein...'
''That day, I decided and told my mother that remove all the photos. I said that’s how it is supposed to be, you have to make space for someone else to come into your life,'' Ankita revealed the day she decided to let someone else enter her life. ''I told my mother that until he is there, no one else will be able to come in. I didn’t remove the photos, I just told my mother. I just went inside my room, my mother removed the photos, tore them up,'' the actress said.
''I cried that day. That was the end of everything. I waited, I did everything and after 6 months, Vicky came into my life,'' Ankita Lokhande revealed. She is currently in Bigg Boss 17 with her husband Vicky Jain.
| english |
<gh_stars>10-100
import * as async from "async";
import {Collection, MongoClient, Db} from "mongodb";
import {NamingStrategy, NamingStrategies} from "./namingStrategies";
import {ResultCallback} from "../core/callback";
import {MappingRegistry} from "../mapping/mappingRegistry";
import {ChangeTrackingType} from "../mapping/mappingModel";
import {Table} from "../core/table";
import {MappingModel, PropertyConverter} from "../mapping/mappingModel";
import {SessionFactory, SessionFactoryImpl} from "../sessionFactory";
import {EntityMapping} from "../mapping/entityMapping";
import {ObjectIdGenerator} from "./objectIdGenerator";
import {ClassMapping} from "../mapping/classMapping";
import {PersistenceError} from "../persistenceError";
/**
* Specifies default settings used to create the [[SessionFactory]].
*/
export class Configuration {
/**
* The default database name to use.
*/
databaseName: string;
/**
* Default identity generator to use.
*/
identityGenerator: IdentityGenerator = new ObjectIdGenerator();
/**
* True if entities are versioned by default; otherwise, false.
*/
versioned = true;
/**
* True if null values should be saved for properties by default; otherwise, false.
*/
nullable = false;
/**
* Default field name to use for optimistic locking.
*/
versionField = "__v";
/**
* Default field name to use for the class discriminator.
*/
discriminatorField = "__t";
/**
* Default change tracking strategy to use.
*/
changeTracking = ChangeTrackingType.DeferredImplicit;
/**
* If specified, prefix to add to all collection names.
*/
collectionPrefix: string;
/**
* Naming strategy to use for collection names.
*/
collectionNamingStrategy: NamingStrategy = NamingStrategies.CamelCase;
/**
* Naming strategy to use for field names.
*/
fieldNamingStrategy: NamingStrategy = NamingStrategies.CamelCase;
/**
* Naming strategy to use for the discriminator value of a class.
*/
discriminatorNamingStrategy: NamingStrategy = NamingStrategies.None;
/**
* Named property converters.
*/
propertyConverters: { [name: string]: PropertyConverter } = {};
/**
* A logger that conforms for the [bunyan](https://www.npmjs.com/package/bunyan) logger interface. If specified, all executed queries
* and other debug information will be logged using the TRACE logging level.
*/
logger: Logger;
/**
* Indicates if any missing indexes should be created when the [[SessionFactory]] is created. This is turned off by default.
*/
createIndexes: boolean;
/**
* @hidden
*/
private _mappings: MappingProvider[] = [];
/**
* Adds a mapping provider to the configuration.
* @param mapping The mapping provider to use.
*/
addMapping(mapping: MappingProvider): void {
this._mappings.push(mapping);
}
/**
* Creates a session factory.
* @param connection The MongoDB connection to use.
* @param callback Called once the session factory is created.
*/
createSessionFactory(connection: MongoClient, callback: ResultCallback<SessionFactory>): void;
/**
* Creates a session factory.
* @param connection The MongoDB connection to use.
* @param databaseName The name of the default database. If not specified, the database name must be specified in either the
* [[Configuration]] or the Collection decorator.
* @param callback Called once the session factory is created.
*/
createSessionFactory(connection: MongoClient, databaseName: string,callback: ResultCallback<SessionFactory>): void;
createSessionFactory(connection: MongoClient, callbackOrDatabaseName: any, callback?: ResultCallback<SessionFactory>): void {
var registry = new MappingRegistry(),
databaseName: string;
if (typeof callbackOrDatabaseName === "function") {
callback = callbackOrDatabaseName;
}
else {
databaseName = callbackOrDatabaseName;
}
if(!this._mappings || this._mappings.length == 0) {
return callback(new PersistenceError("No mappings were added to the configuration."));
}
// Get the mappings from the mapping providers
async.each(this._mappings, (provider, done) => {
provider.getMapping(this, (err, r) => {
if(err) return done(err);
// Merge all registries. Duplicates will cause an error.
registry.addMappings(<ClassMapping[]>r);
done();
});
}, (err) => {
if(err) return callback(err);
this._buildCollections(connection, databaseName, registry, (err, collections) => {
if(err) return callback(err);
let factory = new SessionFactoryImpl(connection, collections, registry);
factory.logger = this.logger;
// see if creating indexes is enabled
if (!this.createIndexes) {
callback(null, factory);
}
else {
factory.createIndexes((err) => {
if (err) return callback(err);
callback(null, factory);
});
}
});
});
}
/**
* @hidden
*/
private _buildCollections(connection: MongoClient, databaseName: string, registry: MappingRegistry, callback: ResultCallback<Table<Collection>>): void {
// Get all the collections and make sure they exit. We can also use this as a chance to build the
// collection if it does not exist.
var collections: Table<Collection> = [];
var namesSeen = new Map<string, boolean>();
async.each(registry.getEntityMappings(), (mapping: EntityMapping, done: (err?: Error) => void) => {
if(!(mapping.flags & MappingModel.MappingFlags.InheritanceRoot)) {
process.nextTick(done);
return;
}
// make sure we have a collection name
if (!mapping.collectionName) {
return done(new PersistenceError("Missing collection name on mapping for type '" + mapping.name + "'."));
}
var dbName = mapping.databaseName || databaseName || this.databaseName;
if (!dbName) {
return done(new Error(`Could not determine database name for '${mapping.collectionName}'. Please make sure to specify `
+ "the database name in either the Configuration, the call to createSessionFactory, or the @Collection decorator."));
}
// make sure db/collection is not mapped to some other type.
var key = dbName + "/" + mapping.collectionName;
if (namesSeen.has(key)) {
return done(new PersistenceError("Duplicate collection name '" + key + "' on type '" + mapping.name + "' ."));
}
namesSeen.set(key, true);
var db = connection.db(dbName);
db.listCollections({ name: mapping.collectionName }).toArray((err: Error, names: string[]): void => {
if(err) return done(err);
if(names.length == 0) {
db.createCollection(mapping.collectionName, mapping.collectionOptions || {}, (err, collection) => {
if(err) return done(err);
collections[mapping.id] = collection;
process.nextTick(done);
});
}
else {
// collection exists, get it
db.collection(mapping.collectionName, { strict: true }, (err: Error, collection: Collection) => {
if(err) return done(err);
collections[mapping.id] = collection;
process.nextTick(done);
});
}
});
}, (err) => {
if(err) return callback(err);
callback(null, collections);
});
}
}
export interface IdentityGenerator {
generate(): any;
fromString(text: string): any;
validate(value: any): boolean;
areEqual(first: any, second: any): boolean;
// TODO: serialize and deserialize methods on IdentityGenerator? e.g. Perhaps UUID is a class when assigned to an
// entity but is serialized to a string when stored in the database.
}
/**
* Describes a type that is able to convert an entity or embeddable property value to a MongoDB document field and back.
*
* ### Example
*
* The example below defines a PropertyConverter that converts an instance of a Point class to a string.
* ```typescript
* class PointConverter implements PropertyConverter {
*
* convertToDocumentField(property: any): any {
* if(property instanceof Point) {
* return [property.x, property.y].join(",");
* }
* }
*
* convertToObjectProperty(field: any): any {
* if(typeof field === "string") {
* var parts = field.split(",");
* return new Point(parts[0], parts[1]);
* }
* }
* }
* ```
*/
export interface PropertyConverter {
/**
* Converts an object property value to a document field value.
* @param property The property value to convert.
*/
convertToDocumentField(property: any): any;
/**
* Converts a document field value to an object property value.
* @param field The field value to convert.
*/
convertToObjectProperty(field: any): any;
/**
* Returns true if the document field values are equal; otherwise, returns false. This method is only called if both values are not
* null and the values are not strictly equal.
* @param field1 First document field value.
* @param field2 Other document field value.
*/
areEqual(field1: any, field2: any): boolean;
}
/**
* Provides data mappings to the Configuration.
*/
export interface MappingProvider {
/**
* Gets a list of ClassMappings.
* @param config The configuration to use for the mappings.
* @param callback Called with a list of ClassMappings.
*/
getMapping(config: Configuration, callback: ResultCallback<MappingModel.ClassMapping[]>): void;
}
/**
* A logger that conforms for the [bunyan](https://www.npmjs.com/package/bunyan) logger interface.
*/
export interface Logger {
/**
* Creates a child logger with the given options.
* @param options Logger options.
*/
child(options: LoggerOptions): Logger;
/**
* Creates a log record with the TRACE log level.
* @param error The error to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
trace(error: Error, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the TRACE log level.
* @param fields Set of additional fields to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
trace(fields: Object, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the TRACE log level.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
trace(msg: string, ...params: any[]): void;
/**
* Creates a log record with the DEBUG log level.
* @param error The error to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
debug(error: Error, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the DEBUG log level.
* @param fields Set of additional fields to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
debug(fields: Object, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the DEBUG log level.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
debug(msg: string, ...args: any[]): void;
/**
* Creates a log record with the INFO log level.
* @param error The error to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
info(error: Error, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the INFO log level.
* @param fields Set of additional fields to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
info(fields: Object, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the INFO log level.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
info(msg: string, ...args: any[]): void;
/**
* Creates a log record with the WARN log level.
* @param error The error to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
warn(error: Error, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the WARN log level.
* @param fields Set of additional fields to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
warn(fields: Object, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the WARN log level.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
warn(msg: string, ...args: any[]): void;
/**
* Creates a log record with the ERROR log level.
* @param error The error to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
error(error: Error, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the ERROR log level.
* @param fields Set of additional fields to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
error(fields: Object, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the ERROR log level.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
error(msg: string, ...args: any[]): void;
/**
* Creates a log record with the FATAL log level.
* @param error The error to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
fatal(error: Error, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the FATAL log level.
* @param fields Set of additional fields to log.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
fatal(fields: Object, msg?: string, ...args: any[]): void;
/**
* Creates a log record with the FATAL log level.
* @param msg Log message. This can be followed by additional arguments for printf-like formatting.
*/
fatal(msg: string, ...args: any[]): void;
}
/**
* Logger options.
*/
export interface LoggerOptions {
/**
* Dictionary of custom serializers. The key is the name of the property that is serialized and the the value
* is a function that takes an object and returns a JSON serializable value.
*/
serializers?: {
[key: string]: (input: any) => any;
}
}
| typescript |
body.CDC {
/* background: #F5F5F5; */
font-family: "Open Sans","Segoe UI","Helvetica Neue",arial,sans-serif;
padding: 0;
margin: 0;
overflow-y: hidden;
}
.CDC main {
margin-top: 60px;
height: 100%;
min-height: calc(100vh - 60px);
}
.CDC-iframe-wrapper {
position: fixed;
z-index: 999;
top: 72px;
left: 0;
bottom: 0;
right: 0;
}
.iframe-body,
#cdcbotFrame {
height: 100%;
/* height: 540px; */
}
@media(min-width: 500px) {
.iframe-body,
#cdcbotFrame {
height: 82.5vh;
}
}
#cdcbotFrame {
z-index: 99999;
background-color: white;
overflow-y: scroll;
border: none;
padding: 0;
margin: 0;
}
.cdc-banner-bar {
padding-left: 4px;
padding-right: 4px;
background: #005EAA;
position: fixed;
z-index: 10;
width: 100%;
top: 0;
box-shadow: 0 3px 3px grey;
}
.cdc-banner-bar img {
width: 90px;
display: inline-block;
margin-right: 4px;
position: relative;
top: 4px;
}
.cdc-banner-bar .banner-title {
font-size: 1em;
font-weight: 500;
display: inline-block;
vertical-align: middle;
color: #FFF;
position: relative;
top: -20px;
left: 8px;
}
@media (min-width: 500px) {
.cdc-banner-bar .banner-title {
font-size: 1.25em;
}
}
@media (min-width: 699px) {
.cdc-banner-bar .banner-title {
font-size: 1.3em;
}
}
.loading {
display: flex;
justify-content: center;
align-items: center;
margin: 0;
position: fixed;
top: 45%;
left: 50%;
z-index: 9999;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.loader {
border: 12px solid #f3f3f3;
border-radius: 50%;
border-top: 6px solid #88C3EA;
border-right: 6px solid #005EAA;
border-bottom: 6px solid #005EAA;
border-left: 6px solid #88C3EA;
width: 50px;
height: 50px;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
0% {
-webkit-transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.show {
display: block;
}
.hide {
display: none;
}
| css |
// Type definitions for AngularFire 0.8.2
// Project: http://angularfire.com
// Definitions by: <NAME> <http://github.com/thSoft>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts"/>
/// <reference path="../firebase/firebase.d.ts"/>
interface AngularFireService {
(firebase: Firebase, config?: any): AngularFire;
}
interface AngularFire {
$asArray(): AngularFireArray;
$asObject(): AngularFireObject;
$ref(): Firebase;
$push(data: any): ng.IPromise<Firebase>;
$set(key: string, data: any): ng.IPromise<Firebase>;
$set(data: any): ng.IPromise<Firebase>;
$remove(key?: string): ng.IPromise<Firebase>;
$update(key: string, data: Object): ng.IPromise<Firebase>;
$update(data: any): ng.IPromise<Firebase>;
$transaction(updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise<FirebaseDataSnapshot>;
$transaction(key:string, updateFn: (currentData: any) => any, applyLocally?: boolean): ng.IPromise<FirebaseDataSnapshot>;
}
interface AngularFireObject extends AngularFireSimpleObject {
$id: string;
$priority: number;
$value: any;
$remove(): ng.IPromise<Firebase>;
$save(): ng.IPromise<Firebase>;
$loaded(resolve?: (x: AngularFireObject) => ng.IHttpPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireObject>;
$loaded(resolve?: (x: AngularFireObject) => ng.IPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireObject>;
$loaded(resolve?: (x: AngularFireObject) => void, reject?: (err: any) => any): ng.IPromise<AngularFireObject>;
$ref(): AngularFire;
$bindTo(scope: ng.IScope, varName: string): ng.IPromise<any>;
$watch(callback: Function, context?: any): Function;
$destroy(): void;
}
interface AngularFireObjectService {
(firebase: Firebase): AngularFireObject;
$extend(ChildClass: Object, methods?: Object): Object;
}
interface AngularFireArray extends Array<AngularFireSimpleObject> {
$add(newData: any): ng.IPromise<Firebase>;
$save(recordOrIndex: any): ng.IPromise<Firebase>;
$remove(recordOrIndex: any): ng.IPromise<Firebase>;
$getRecord(key: string): AngularFireSimpleObject;
$keyAt(recordOrIndex: any): string;
$indexFor(key: string): number;
$loaded(resolve?: (x: AngularFireArray) => ng.IHttpPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireArray>;
$loaded(resolve?: (x: AngularFireArray) => ng.IPromise<{}>, reject?: (err: any) => any): ng.IPromise<AngularFireArray>;
$loaded(resolve?: (x: AngularFireArray) => void, reject?: (err: any) => any): ng.IPromise<AngularFireArray>;
$ref(): AngularFire;
$watch(cb: (event: string, key: string, prevChild: string) => void, context?: any): Function;
$destroy(): void;
}
interface AngularFireArrayService {
(firebase: Firebase): AngularFireArray;
$extend(ChildClass: Object, methods?: Object): Object;
}
interface AngularFireSimpleObject {
$id: string;
$priority: number;
$value: any;
[key: string]: any;
}
interface AngularFireAuthService {
(firebase: Firebase): AngularFireAuth;
}
interface AngularFireAuth {
$authWithCustomToken(authToken: string, options?: Object): ng.IPromise<any>;
$authAnonymously(options?: Object): ng.IPromise<any>;
$authWithPassword(credentials: FirebaseCredentials, options?: Object): ng.IPromise<any>;
$authWithOAuthPopup(provider: string, options?: Object): ng.IPromise<any>;
$authWithOAuthRedirect(provider: string, options?: Object): ng.IPromise<any>;
$authWithOAuthToken(provider: string, credentials: Object|string, options?: Object): ng.IPromise<any>;
$getAuth(): FirebaseAuthData;
$onAuth(callback: Function, context?: any): Function;
$unauth(): void;
$waitForAuth(): ng.IPromise<any>;
$requireAuth(): ng.IPromise<any>;
$createUser(credentials: FirebaseCredentials): ng.IPromise<any>;
$removeUser(credentials: FirebaseCredentials): ng.IPromise<any>;
$changeEmail(credentials: FirebaseChangeEmailCredentials): ng.IPromise<any>;
$changePassword(credentials: FirebaseChangePasswordCredentials): ng.IPromise<any>;
$resetPassword(credentials: FirebaseResetPasswordCredentials): ng.IPromise<any>;
}
| typescript |
TEHRAN (Tasnim) – The second phase of the development plan of Abadan Refinery, with the production capacity of 210,000 barrels of crude oil per day (bpd), will become operational on Friday, March 17, in a ceremony to be attended by Iranian President Ebrahim Raisi.
With the completion of the design, construction and installation of the largest distillation unit in West Asia, the second phase of the development plan of Abadan Oil Refinery will be put into operation on Friday.
As the first oil refinery in the Middle East, Abadan Oil Refinery is as old as 110 years and is considered as an important refining hub of the country.
Construction of Abadan Oil Refinery’s second phase has been completed thanks to the high technical know-how and knowledge of expert domestic engineers as well as taking advantage of the world’s most modern technologies.
The renovation of the refinery has taken place in two stages, the first stage of which was put into operation in 2005 with the construction of the new refining complex with a production capacity of 150,000 barrels of oil per day (bpd) while the second phase of this giant project was launched in July 2017 with the construction of a new refining complex with the capacity of 210,000 bpd.
The second phase of Abadan Oil Refinery would be put into operation with a cost of $1.2 billion. It has the capacity of producing 210,000 bpd of oil.
Promoting the quality of the products according to EURO-5 standard, reducing environmental pollutants, reducing the mazut production percentage from 45 to 26, increasing liquefied gas production by 53 percent, oil gas by 23 percent, and gasoline by 6 percent and also generation of direct employment for 7,000 job-seeking people are among the objectives of the second phase of the development plan.
| english |
If you have received the COVID-19 vaccine-whether it's Covishield, Covaxin or Sputnik V- you are provided with a vaccine certificate. When you get your first dose, you get a provisional certificate, and once you have received both the doses, you get a final digital certificate of vaccination. So, what is this vaccine certificate, why do you need it, and how can you download yours? Watch this video to know everything. | english |
<reponame>Lale4ka/bill-payments-java-sdk
package com.qiwi.billpayments.sdk.model;
public enum BillStatus {
WAITING("WAITING"),
PAID("PAID"),
REJECTED("REJECTED"),
EXPIRED("EXPIRED");
private final String value;
BillStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return "BillStatus{" +
"value='" + value + '\'' +
'}';
}
}
| java |
Rostov host CSKA Moscow at the Rostov Arena in the Russian Premier League on Sunday (September 24).
The hosts are just above the relegation zone with eight points after as many rounds of games. However, it’s about time Rostov got their act together if they intend to replicate their impressive campaign from last season.
Selmashi finished fourth out of 16 teams and hope to do better this term but are struggling for form. However, they have a good opportunity at home, where they have three wins and a draw in five games.
Meanwhile, CSKA handed Rostov a 4-1 drubbing in their last meeting in Moscow in June. CSKA’s previous visit to Rostov-on-Don was also successful, as they emerged victorious 3-1. Their last setback at the Rostov Arena was in March 2020 in a 3-2 league defeat that saw two CSKA’ players receive their marching orders.
Koni were runners-up last season, finishing behind champions Zenit. CSKA are enduring an eight-year title drought, with their last success coming in 2015–16. Like always, their main objective will be to go all the way. They have won three of their eight games, losing twice.
- Rostov have lost four times and drawn once in their last five clashes with CSKA.
- Rostov have won once, drawn twice and lost twice in their last five home meetings with CSKA.
- The two teams have met 61 times, with Rostov winning 16 and losing 34.
- CSKA have won thrice, drawn once and lost once in their last five away outings.
- Rostov have won twice, drawn once and lost twice in their last five games, while CSKA have won twice and drawn thrice in the same period.
Rostov have mostly misfired in front of goal, leading to their negative goal differential of (-6). Nikolay Komlichenko stands out with three goals. They have also been shambolic defensively, conceding 16 times in eight outings.
CSKA, meanwhile, boast a well-oiled attack, scoring 16 times – the third best in the league. With five goals apiece, Fyodor Chalov and Anton Zabolotny sit second in the goal charts.
CSKA are expected to have an edge based on their better quality and take the win.
| english |
<reponame>turovnd/NERRecognition
{
"name": "nerrecognition",
"version": "1.0.0",
"description": "Three different frameworks were used for compare results of NER recognition (only `PERSON` type)",
"dependencies": {
"axios": "^0.19.0",
"fs": "^0.0.1-security",
"path": "^0.12.7",
"progressbar": "^1.3.0",
"xlsx": "^0.14.3"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/turovnd/NERRecognition.git"
},
"author": "<NAME>",
"license": "MIT",
"bugs": {
"url": "https://github.com/turovnd/NERRecognition/issues"
},
"homepage": "https://github.com/turovnd/NERRecognition#readme"
}
| json |
/*
inkplate_platform.hpp
Inkplate 6 Arduino library
<NAME>, <NAME>, <NAME>, <NAME> @ <EMAIL>
September 24, 2020
https://github.com/e-radionicacom/Inkplate-6-Arduino-library
For support, please reach over forums: forum.e-radionica.com/en
For more info about the product, please check: www.inkplate.io
This code is released under the GNU Lesser General Public License v3.0: https://www.gnu.org/licenses/lgpl-3.0.en.html
Please review the LICENSE file included with this example.
If you have any questions about licensing, please contact <EMAIL>
Distributed as-is; no warranty is given.
*/
#pragma once
#include <cstdint>
#include "non_copyable.hpp"
#include "mcp23017.hpp"
#include "battery.hpp"
#include "eink.hpp"
#include "eink_6.hpp"
#include "eink_10.hpp"
#if defined(EXTENDED_CASE)
#include "press_keys.hpp"
#else
#include "touch_keys.hpp"
#endif
#if __INKPLATE_PLATFORM__
MCP23017 mcp_int(0x20);
Battery battery(mcp_int);
#if defined(EXTENDED_CASE)
PressKeys press_keys(mcp_int);
#else
TouchKeys touch_keys(mcp_int);
#endif
#if defined(INKPLATE_6)
EInk6 e_ink(mcp_int);
#elif defined(INKPLATE_10)
MCP23017 mcp_ext(0x22);
EInk10 e_ink(mcp_int, mcp_ext);
#else
#error "One of INKPLATE_6, INKPLATE_10 must be defined."
#endif
#else
extern MCP23017 mcp_int;
extern Battery battery;
#if defined(EXTENDED_CASE)
extern PressKeys press_keys;
#else
extern TouchKeys touch_keys;
#endif
#if defined(INKPLATE_6)
extern EInk6 e_ink;
#elif defined(INKPLATE_10)
extern MCP23017 mcp_ext;
extern EInk10 e_ink;
#else
#error "One of INKPLATE_6, INKPLATE_10 must be defined."
#endif
#endif
class InkPlatePlatform : NonCopyable
{
private:
static constexpr char const * TAG = "InkPlatePlatform";
static InkPlatePlatform singleton;
InkPlatePlatform() {};
public:
static inline InkPlatePlatform & get_singleton() noexcept { return singleton; }
/**
* @brief Setup the InkPlate Devices
*
* This method initialize the SD-Card, the e-Ink display, battery status, and the touchkeys
* capabilities.
*
* @return true - All devices ready
* @return false - Some device not initialized properly
*/
bool setup();
bool light_sleep(uint32_t minutes_to_sleep);
void deep_sleep();
};
#if __INKPLATE_PLATFORM__
InkPlatePlatform & inkplate_platform = InkPlatePlatform::get_singleton();
#else
extern InkPlatePlatform & inkplate_platform;
#endif
| cpp |
<filename>doc/modules/darksidesync.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<title>DarkSideSync reference</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>
<div id="container">
<div id="product">
<div id="product_logo"></div>
<div id="product_name"><big><b></b></big></div>
<div id="product_description"></div>
</div> <!-- id="product" -->
<div id="main">
<!-- Menu -->
<div id="navigation">
<br/>
<h1>DarkSideSync</h1>
<ul>
<li><a href="../index.html">Index</a></li>
</ul>
<h2>Contents</h2>
<ul>
<li><a href="#C_side_DarkSideSync_API_">C-side DarkSideSync API </a></li>
<li><a href="#Lua_side_DarkSideSync_API_">Lua-side DarkSideSync API </a></li>
</ul>
<h2>Modules</h2>
<ul>
<li><strong>darksidesync</strong></li>
<li><a href="../modules/dss.html">dss</a></li>
</ul>
<h2>Topics</h2>
<ul>
<li><a href="../topics/readme.md.html">readme.md</a></li>
</ul>
</div>
<div id="content">
<h1>Module <code>darksidesync</code></h1>
<p>DarkSideSync is a Lua helper module for asynchroneous callbacks from
other libraries.</p>
<p> Lua is single-threaded by nature and hence working with
multithreaded libraries is a complex matter. DarkSideSync aim is to make
using asynchroneous libraries (managing their own threadpools) simple.</p>
<p>DarkSideSync takes away the complexity of messages queues,
locking, synchronization, etc. because it implements them once and has a
thread safe API to perform all those tasks, and notify Lua of incoming
threads/data. It is a regular Lua module (C library) that can be loaded
from Lua (no C-side dependencies/linking for any libraries using DarkSideSync)
and it supports many libraries to consume its services simultaneously.</p>
<p><a href="../dss_overview.htm">Check here for an overview</a>.</p>
<p>It can only work with libraries designed to work with DarkSideSync. Check
out the library source, specifically <a href="https://github.com/Tieske/DarkSideSync/blob/master/darksidesync/darksidesync_api.h"><a href="../modules/darksidesync.html#darksidesync_api.h">darksidesync_api.h</a> </a> on how
to do that. Additionally use <a href="https://github.com/Tieske/DarkSideSync/blob/master/darksidesync/darksidesync_aux.c"><a href="../modules/darksidesync.html#darksidesync_aux.c">darksidesync_aux.c</a> </a> to get up and
running with DarkSideSync quickly (just an include of this file will get
you 95% done).</p>
<p>To use the DarkSideSync library from Lua there are 2 options</p>
<ol>
<li>do not use notifications, but regularly call <a href="../modules/darksidesync.html#poll">poll</a> to check for incoming data</li>
<li>use the UDP notification mechanism (a LuaSocket implementation is available in the <a href="../modules/dss.html#">dss</a> module).</li>
</ol>
<p>The latter has UDP networking overhead but has some advantages; works with any network library and
allows the application to 'go to sleep' in a network <code>select()</code> call. Additionally a UDP socket
has the advantage (over a filehandle) that it works on (almost) every platform.
In cases with a high number of callbacks the polling method is considered the better solution.</p>
<p>If you'll be using LuaSocket, then you can probably use the <a href="../modules/dss.html#">dss</a> module which has a LuaSocket specific
abstraction on top of this darksidesync core module.</p>
<h3>Info:</h3>
<ul>
<li><strong>Release</strong>: Version 1.0, DarkSideSync.</li>
<li><strong>Copyright</strong>: 2012-2013 <NAME>, DarkSideSync is free software under the MIT/X11 license</li>
</ul>
<h2><a href="#C_side_DarkSideSync_API_">C-side DarkSideSync API </a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#darksidesync_api.h">darksidesync_api.h ()</a></td>
<td class="summary">Contains the complete C-side API.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#darksidesync_aux.c">darksidesync_aux.c ()</a></td>
<td class="summary">Contains the core client implementation code.</td>
</tr>
</table>
<h2><a href="#Lua_side_DarkSideSync_API_">Lua-side DarkSideSync API </a></h2>
<table class="function_list">
<tr>
<td class="name" nowrap><a href="#setport">setport (port)</a></td>
<td class="summary">Sets the UDP port for notifications.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#getport">getport ()</a></td>
<td class="summary">Returns the UDP port currently in use for notifications.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#poll">poll ()</a></td>
<td class="summary">Gets the next item from the darksidesync queue.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#queuesize">queuesize ()</a></td>
<td class="summary">Returns the current size of the darksidesync queue.</td>
</tr>
<tr>
<td class="name" nowrap><a href="#waitingthread_callback">waitingthread_callback (...)</a></td>
<td class="summary">Callback function to set the results of an async callback.</td>
</tr>
</table>
<br/>
<br/>
<h2><a name="C_side_DarkSideSync_API_"></a>C-side DarkSideSync API </h2>
C-side DarkSideSync API.
This section covers the darksidesync API from the C-side. It is not separately documented, but only in
the code files.
<dl class="function">
<dt>
<a name = "darksidesync_api.h"></a>
<strong>darksidesync_api.h ()</strong>
</dt>
<dd>
Contains the complete C-side API.
See API header file <a href="https://github.com/Tieske/DarkSideSync/blob/master/darksidesync/darksidesync_api.h">darksidesync_api.h</a>.
</dd>
<dt>
<a name = "darksidesync_aux.c"></a>
<strong>darksidesync_aux.c ()</strong>
</dt>
<dd>
Contains the core client implementation code.
An implementation of the C-side API (<a href="https://github.com/Tieske/DarkSideSync/blob/master/darksidesync/darksidesync_aux.c">darksidesync_aux.c</a>
and <a href="https://github.com/Tieske/DarkSideSync/blob/master/darksidesync/darksidesync_aux.h">darksidesync_aux.h</a>) is available.
This implementation should suffice for most usecases. Just copy the file into your project and include it (make sure to read the notes on linking
in <a href="../modules/darksidesync.html#darksidesync_api.h">darksidesync_api.h</a> ).
</dd>
</dl>
<h2><a name="Lua_side_DarkSideSync_API_"></a>Lua-side DarkSideSync API </h2>
Lua-side DarkSideSync API.
This section covers the darksidesync API from the Lua-side
<dl class="function">
<dt>
<a name = "setport"></a>
<strong>setport (port)</strong>
</dt>
<dd>
Sets the UDP port for notifications. For every item delivered in the
darksidesync queue a notification will be sent. The IP address the notification
will be send to will always be <code>localhost</code> (loopback adapter).
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">port</span>
UDP port number to use for notification packets. A value from 0 to 65535, where 0 will disable notifications.</li>
</ul>
<h3>Returns:</h3>
<ol>
1 if successfull, or <code>nil + error msg</code> if it failed
</ol>
<h3>see also:</h3>
<ul>
<a href="../modules/darksidesync.html#getport">getport</a>
</ul>
</dd>
<dt>
<a name = "getport"></a>
<strong>getport ()</strong>
</dt>
<dd>
Returns the UDP port currently in use for notifications.
<h3>Returns:</h3>
<ol>
UDP portnumber in use (1-65535), or 0 if notifications are disabled
</ol>
<h3>see also:</h3>
<ul>
<a href="../modules/darksidesync.html#setport">setport</a>
</ul>
</dd>
<dt>
<a name = "poll"></a>
<strong>poll ()</strong>
</dt>
<dd>
Gets the next item from the darksidesync queue.
If you use the UDP notifications, you <strong>MUST</strong> also read from the UDP socket to
clear the received packet from the socket buffer. </p>
<p>NOTE: some of the return values will be generated by
the client library (that is using darksidesync to get its data delivered to the Lua state) and other
return values will be inserted by darksidesync.
<h3>Returns:</h3>
<ol>
<li>
(by DSS) queuesize of remaining items (or -1 if there was nothing on the queue to begin with)</li>
<li>
(by client) Lua callback function to handle the data</li>
<li>
Table with arguments for the Lua callback, this contains (by client library) any other parameters as delivered by the async callback. Optionally, if the async thread requires a result to be returned, a <a href="../modules/darksidesync.html#waitingthread_callback">waitingthread_callback</a> function (by DSS) is inserted at position 1 (but only if the async callback expects Lua to deliver a result, in this case the async callback thread will be blocked until the <a href="../modules/darksidesync.html#waitingthread_callback">waitingthread_callback</a> is called)</li>
</ol>
<h3>Usage:</h3>
<ul>
<pre class="example">
<span class="keyword">local</span> runcallbacks()
<span class="keyword">local</span> count, callback, args = darksidesync.poll()
<span class="keyword">if</span> count == -<span class="number">1</span> <span class="keyword">then</span> <span class="keyword">return</span> <span class="keyword">end</span> <span class="comment">-- queue was empty, nothing to do
</span> callback(<span class="global">unpack</span>(args)) <span class="comment">-- execute callback
</span> <span class="keyword">if</span> count > <span class="number">0</span> <span class="keyword">then</span>
<span class="global">print</span>(<span class="string">"there is more to do; "</span> .. <span class="global">tostring</span>(count) .. <span class="string">" items are still in the queue."</span>)
<span class="keyword">else</span>
<span class="global">print</span>(<span class="string">"We're done for now."</span>)
<span class="keyword">end</span>
<span class="keyword">end</span></pre>
</ul>
</dd>
<dt>
<a name = "queuesize"></a>
<strong>queuesize ()</strong>
</dt>
<dd>
Returns the current size of the darksidesync queue.
<h3>Returns:</h3>
<ol>
number of items in the queue
</ol>
</dd>
<dt>
<a name = "waitingthread_callback"></a>
<strong>waitingthread_callback (...)</strong>
</dt>
<dd>
Callback function to set the results of an async callback. The 'waiting-thread' callback is collected from
the <a href="../modules/darksidesync.html#poll">poll</a> method in case a background thread is blocked and waiting for a result.
Call this function with the results to return to the async callback.
<h3>Parameters:</h3>
<ul>
<li><span class="parameter">...</span>
parameters to be delivered to the async callback. This depends on what the client library expects</li>
</ul>
<h3>Returns:</h3>
<ol>
depends on client library implementation
</ol>
<h3>see also:</h3>
<ul>
<a href="../modules/darksidesync.html#poll">poll</a>
</ul>
</dd>
</dl>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.3</a></i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
| html |
Women earners in the metros tend to be risk-averse with 51% of their investments parked in fixed deposits (FD) and savings accounts, followed by 16% in gold, 15% in mutual funds, 10% in real estate and just 7% in stock, found a joint survey by DBS Bank and ratings firm Crisil. This is in line with behaviour from DBS Bank India’s own customer insights where 10% of female customers have an active fixed deposit, while just 5% of male customers have opened an FD.
In the last one year, there has been a big addition to largecap stocks. Their market capitalization has moved higher and they can now be largecap. Some of these stocks are from sectors which are getting discovered or getting re-rated as if they are midcap stocks. Having exposure to them might appear to be risky, but the possibility of reward is higher. There are two stocks which are well discovered and have created wealth for investors. But as they go through a phase of valuation adjustment, they provide an opportunity to investors with a long-term perspective.
Mastering MCX Gold and Silver contracts involves a strategic blend of technical indicators. The Moving Average EMA21 strategy, complemented by risk management techniques using the EMA8, provides a structured approach for both long and short positions. Incorporating the RSI for confirmation adds an extra layer of analysis enhancing traders' ability to identify trends and manage risk effectively in the dynamic precious metals market.
India's pharmaceutical industry may face drug shortages and increased prices as small and medium enterprises struggle to comply with new health ministry regulations, leading to closures and higher costs. Implementation of the revised Schedule M rules is challenging for smaller firms, potentially impacting the manufacturing of essential medicines under price control.
Vinay Paharia says: The share of financial savings in Indian household savings has been on the rise at the expense of physical assets over the past few years. This has been a key factor for the rise in DII inflows and this structural factor is expected to continue over the medium to longer term. FII flows, on the other hand, would be a function of multiple factors, including global interest rates, liquidity conditions and relative attractiveness of India versus other investment destinations.
The Reserve Bank of India (RBI) has raised concerns over high levels of gross non-performing assets (NPAs) in urban cooperative banks, despite improved profitability indicators. The RBI has called for further strengthening of governance standards and risk management practices, and for co-operative banks to adopt global best practices of supervision.
"For a large-scale transformation exercise, it's not just a technology question. There is an organisation question, there is an operations question and there is a business model question. A central office is needed to make sure all these aspects are coordinated and aligned and that the transformation is accelerated," said Parijat Ghosh, managing partner at Bain & Company's India offices.
"The real estate investment landscape is shifting with the rise of Category 2 AIFs, providing predictability and attracting investor interest in diverse sectors such as commercial spaces, student housing, senior living, healthcare, and retail. We've witnessed tremendous interest in Tier 1, 2, and 3 cities. At Integrow, our strategic vision spans Mumbai, Pune, Ranchi (in collaboration with Pranami Group), and our inaugural residential AIF have laid a robust foundation."
In a bullish market many things change and one of them is the relationship between opportunity and challenges. The opportunity to make high return in short term of times is faced with challenge of finding the right stock which not only deliver return in short term but is also worth holding in portfolio for long term. This challenge emerges from the fact that valuations are at a higher level and a small negative news can damage prices much more and time wise correction can lead to returns turning much lower. The following stocks have come from Refinitiv’s Stock Report Plus which lists stocks with high upside potential over the next 12 months, having an average recommendation rating of “buy” or "strong buy"
The Executive Programme in FinTech, Banking & Applied Risk Management is tailored for executives seeking to navigate the dynamic intersection of finance, technology, and risk management. Unlike traditional finance programs, EPFBARM goes beyond conventional banking to equip professionals with the tools to harness the potential of financial technology (FinTech) and effectively manage risks in a rapidly changing environment.
"We are bottom-up stock selectors. We look for market inefficiencies to identify opportunities, and we believe in market efficiency for these opportunities to turn profitable. We like to identify ‘change’ in business fundamentals which can lead to ‘change’ in growth or ‘change’ in valuation – or both. We are long-term investors with a minimum of 3–5-year horizon."
In the past two financial years, PSBs have made a turnaround, backed by a decrease in bad loans. In 2022-23, PSBs earned a record aggregate net profit of about ₹ 1.05 lakh crore, almost triple the net profit earned in 2013-14. The government has been pushing banks to review their systems and adopt best practices to tackle issues such as fraud and cybersecurity risks.
"We have been talking about manufacturing pickup, particularly aided by export-led demand for some key sectors like mobiles, white goods, automobiles, and textiles. So, 2024 will determine the conclusive success of these schemes. We believe India has made a sufficient mark on the global platform, and 2024 should provide us with early signs of success on further pickup in the economic activities front."
Firms have prioritised expenditure on cybersecurity, as sticky inflation and high-interest rates forced them to cut back on spending elsewhere. Worldwide spending on security and risk management is projected to increase 14.3% in 2024, according to research firm Gartner.
"Investors, whether global or domestic, always look for policy stability and the economic policy narrative. So therefore, election results do matter. That said, I think India’s recent focus on manufacturing – defence, PLI, railways, improving logistics should stand it in good stead. The focus on the digital ecosystem and players within that theme are also something that we like."
For tech roles in the sector, Yadhu Kishore Nandikolla says multiple courses are available in online and in classroom settings. Although the course preference may vary based on the role one intends to pursue, some popular courses are AWS, Azure, DevOps, Jenkins, Kubernetes, Python, RPA, VBA and Vertica.
Symphony, which counts banks like Goldman Sachs and JPMorgan among its 1,000-strong client base, will use Google Cloud's generative artificial intelligence platform, Vertex AI, to enhance its Cloud9 voice product with more sophisticated speech-to-text and natural language processing (NLP) capabilities.
Adopting a proactive and holistic approach to cybersecurity in the cloud is crucial to navigating its associated risks. Organisations should enforce stringent access controls, conduct periodic assessments, and cultivate a pervasive culture of security awareness. Through these measures, they can develop cloud-native systems that are resilient, secure, and compliant. Such robust systems will not only be instrumental in protecting valuable IPs and assets but also help steer innovation within organisations.
Preparations for Monday's announcements were communicated verbally in meetings, according to a source familiar with the situation who was not authorized to speak publicly. Some staff may be able to apply for other roles at the bank, the source said.
"We have a multibagger framework which we use to identify equities which might turn multi-baggers in a 3-5 year timeline. We use the GARV (Growth at reasonable valuation) style to identify potential multibaggers which again are aligned to sectors of growth. The major effort is in identifying companies with a strong strategic moat."
| english |
/**
* @file math.cpp
* @author Phoenix
* @date 2005-09-26
* @brief Tests for the llmath library.
*
* $LicenseInfo:firstyear=2005&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
* $/LicenseInfo$
*/
#include "linden_common.h"
#include "../test/lltut.h"
#include "llcrc.h"
#include "llrand.h"
#include "lluuid.h"
#include "../llline.h"
#include "../llmath.h"
#include "../llsphere.h"
#include "../v3math.h"
namespace tut
{
struct math_data
{
};
typedef test_group<math_data> math_test;
typedef math_test::object math_object;
tut::math_test tm("BasicLindenMath");
template<> template<>
void math_object::test<1>()
{
S32 val = 89543;
val = llabs(val);
ensure("integer absolute value 1", (89543 == val));
val = -500;
val = llabs(val);
ensure("integer absolute value 2", (500 == val));
}
template<> template<>
void math_object::test<2>()
{
F32 val = -2583.4f;
val = llabs(val);
ensure("float absolute value 1", (2583.4f == val));
val = 430903.f;
val = llabs(val);
ensure("float absolute value 2", (430903.f == val));
}
template<> template<>
void math_object::test<3>()
{
F64 val = 387439393.987329839;
val = llabs(val);
ensure("double absolute value 1", (387439393.987329839 == val));
val = -8937843.9394878;
val = llabs(val);
ensure("double absolute value 2", (8937843.9394878 == val));
}
template<> template<>
void math_object::test<4>()
{
F32 val = 430903.9f;
S32 val1 = lltrunc(val);
ensure("float truncate value 1", (430903 == val1));
val = -2303.9f;
val1 = lltrunc(val);
ensure("float truncate value 2", (-2303 == val1));
}
template<> template<>
void math_object::test<5>()
{
F64 val = 387439393.987329839 ;
S32 val1 = lltrunc(val);
ensure("float truncate value 1", (387439393 == val1));
val = -387439393.987329839;
val1 = lltrunc(val);
ensure("float truncate value 2", (-387439393 == val1));
}
template<> template<>
void math_object::test<6>()
{
F32 val = 430903.2f;
S32 val1 = llfloor(val);
ensure("float llfloor value 1", (430903 == val1));
val = -430903.9f;
val1 = llfloor(val);
ensure("float llfloor value 2", (-430904 == val1));
}
template<> template<>
void math_object::test<7>()
{
F32 val = 430903.2f;
S32 val1 = llceil(val);
ensure("float llceil value 1", (430904 == val1));
val = -430903.9f;
val1 = llceil(val);
ensure("float llceil value 2", (-430903 == val1));
}
template<> template<>
void math_object::test<8>()
{
F32 val = 430903.2f;
S32 val1 = ll_round(val);
ensure("float ll_round value 1", (430903 == val1));
val = -430903.9f;
val1 = ll_round(val);
ensure("float ll_round value 2", (-430904 == val1));
}
template<> template<>
void math_object::test<9>()
{
F32 val = 430905.2654f, nearest = 100.f;
val = ll_round(val, nearest);
ensure("float ll_round value 1", (430900 == val));
val = -430905.2654f, nearest = 10.f;
val = ll_round(val, nearest);
ensure("float ll_round value 1", (-430910 == val));
}
template<> template<>
void math_object::test<10>()
{
F64 val = 430905.2654, nearest = 100.0;
val = ll_round(val, nearest);
ensure("double ll_round value 1", (430900 == val));
val = -430905.2654, nearest = 10.0;
val = ll_round(val, nearest);
ensure("double ll_round value 1", (-430910.00000 == val));
}
template<> template<>
void math_object::test<11>()
{
const F32 F_PI = 3.1415926535897932384626433832795f;
F32 angle = 3506.f;
angle = llsimple_angle(angle);
ensure("llsimple_angle value 1", (angle <=F_PI && angle >= -F_PI));
angle = -431.f;
angle = llsimple_angle(angle);
ensure("llsimple_angle value 1", (angle <=F_PI && angle >= -F_PI));
}
}
namespace tut
{
struct uuid_data
{
LLUUID id;
};
typedef test_group<uuid_data> uuid_test;
typedef uuid_test::object uuid_object;
tut::uuid_test tu("LLUUID");
template<> template<>
void uuid_object::test<1>()
{
ensure("uuid null", id.isNull());
id.generate();
ensure("generate not null", id.notNull());
id.setNull();
ensure("set null", id.isNull());
}
template<> template<>
void uuid_object::test<2>()
{
id.generate();
LLUUID a(id);
ensure_equals("copy equal", id, a);
a.generate();
ensure_not_equals("generate not equal", id, a);
a = id;
ensure_equals("assignment equal", id, a);
}
template<> template<>
void uuid_object::test<3>()
{
id.generate();
LLUUID copy(id);
LLUUID mask;
mask.generate();
copy ^= mask;
ensure_not_equals("mask not equal", id, copy);
copy ^= mask;
ensure_equals("mask back", id, copy);
}
template<> template<>
void uuid_object::test<4>()
{
id.generate();
std::string id_str = id.asString();
LLUUID copy(id_str.c_str());
ensure_equals("string serialization", id, copy);
}
}
namespace tut
{
struct crc_data
{
};
typedef test_group<crc_data> crc_test;
typedef crc_test::object crc_object;
tut::crc_test tc("LLCrc");
template<> template<>
void crc_object::test<1>()
{
/* Test buffer update and individual char update */
const char TEST_BUFFER[] = "hello &#$)$&Nd0";
LLCRC c1, c2;
c1.update((U8*)TEST_BUFFER, sizeof(TEST_BUFFER) - 1);
char* rh = (char*)TEST_BUFFER;
while(*rh != '\0')
{
c2.update(*rh);
++rh;
}
ensure_equals("crc update 1", c1.getCRC(), c2.getCRC());
}
template<> template<>
void crc_object::test<2>()
{
/* Test mixing of buffer and individual char update */
const char TEST_BUFFER1[] = "Split Buffer one $^%$%#@$";
const char TEST_BUFFER2[] = "Split Buffer two )(8723#5dsds";
LLCRC c1, c2;
c1.update((U8*)TEST_BUFFER1, sizeof(TEST_BUFFER1) - 1);
char* rh = (char*)TEST_BUFFER2;
while(*rh != '\0')
{
c1.update(*rh);
++rh;
}
rh = (char*)TEST_BUFFER1;
while(*rh != '\0')
{
c2.update(*rh);
++rh;
}
c2.update((U8*)TEST_BUFFER2, sizeof(TEST_BUFFER2) - 1);
ensure_equals("crc update 2", c1.getCRC(), c2.getCRC());
}
}
namespace tut
{
struct sphere_data
{
};
typedef test_group<sphere_data> sphere_test;
typedef sphere_test::object sphere_object;
tut::sphere_test tsphere("LLSphere");
template<> template<>
void sphere_object::test<1>()
{
// test LLSphere::contains() and ::overlaps()
S32 number_of_tests = 10;
for (S32 test = 0; test < number_of_tests; ++test)
{
LLVector3 first_center(1.f, 1.f, 1.f);
F32 first_radius = 3.f;
LLSphere first_sphere( first_center, first_radius );
F32 half_millimeter = 0.0005f;
LLVector3 direction( ll_frand(2.f) - 1.f, ll_frand(2.f) - 1.f, ll_frand(2.f) - 1.f);
direction.normalize();
F32 distance = ll_frand(first_radius - 2.f * half_millimeter);
LLVector3 second_center = first_center + distance * direction;
F32 second_radius = first_radius - distance - half_millimeter;
LLSphere second_sphere( second_center, second_radius );
ensure("first sphere should contain the second", first_sphere.contains(second_sphere));
ensure("first sphere should overlap the second", first_sphere.overlaps(second_sphere));
distance = first_radius + ll_frand(first_radius);
second_center = first_center + distance * direction;
second_radius = distance - first_radius + half_millimeter;
second_sphere.set( second_center, second_radius );
ensure("first sphere should NOT contain the second", !first_sphere.contains(second_sphere));
ensure("first sphere should overlap the second", first_sphere.overlaps(second_sphere));
distance = first_radius + ll_frand(first_radius) + half_millimeter;
second_center = first_center + distance * direction;
second_radius = distance - first_radius - half_millimeter;
second_sphere.set( second_center, second_radius );
ensure("first sphere should NOT contain the second", !first_sphere.contains(second_sphere));
ensure("first sphere should NOT overlap the second", !first_sphere.overlaps(second_sphere));
}
}
template<> template<>
void sphere_object::test<2>()
{
skip("See SNOW-620. Neither the test nor the code being tested seem good. Also sim-only.");
// test LLSphere::getBoundingSphere()
S32 number_of_tests = 100;
S32 number_of_spheres = 10;
F32 sphere_center_range = 32.f;
F32 sphere_radius_range = 5.f;
for (S32 test = 0; test < number_of_tests; ++test)
{
// gegnerate a bunch of random sphere
std::vector< LLSphere > sphere_list;
for (S32 sphere_count=0; sphere_count < number_of_spheres; ++sphere_count)
{
LLVector3 direction( ll_frand(2.f) - 1.f, ll_frand(2.f) - 1.f, ll_frand(2.f) - 1.f);
direction.normalize();
F32 distance = ll_frand(sphere_center_range);
LLVector3 center = distance * direction;
F32 radius = ll_frand(sphere_radius_range);
LLSphere sphere( center, radius );
sphere_list.push_back(sphere);
}
// compute the bounding sphere
LLSphere bounding_sphere = LLSphere::getBoundingSphere(sphere_list);
// make sure all spheres are inside the bounding sphere
{
std::vector< LLSphere >::const_iterator sphere_itr;
for (sphere_itr = sphere_list.begin(); sphere_itr != sphere_list.end(); ++sphere_itr)
{
ensure("sphere should be contained by the bounding sphere", bounding_sphere.contains(*sphere_itr));
}
}
// TODO -- improve LLSphere::getBoundingSphere() to the point where
// we can reduce the 'expansion' in the two tests below to about
// 2 mm or less
F32 expansion = 0.005f;
// move all spheres out a little bit
// and count how many are NOT contained
{
std::vector< LLVector3 > uncontained_directions;
std::vector< LLSphere >::iterator sphere_itr;
for (sphere_itr = sphere_list.begin(); sphere_itr != sphere_list.end(); ++sphere_itr)
{
LLVector3 direction = sphere_itr->getCenter() - bounding_sphere.getCenter();
direction.normalize();
sphere_itr->setCenter( sphere_itr->getCenter() + expansion * direction );
if (! bounding_sphere.contains( *sphere_itr ) )
{
uncontained_directions.push_back(direction);
}
}
ensure("when moving spheres out there should be at least two uncontained spheres",
uncontained_directions.size() > 1);
/* TODO -- when the bounding sphere algorithm is improved we can open up this test
* at the moment it occasionally fails when the sphere collection is tight and small
* (2 meters or less)
if (2 == uncontained_directions.size() )
{
// if there were only two uncontained spheres then
// the two directions should be nearly opposite
F32 dir_dot = uncontained_directions[0] * uncontained_directions[1];
ensure("two uncontained spheres should lie opposite the bounding center", dir_dot < -0.95f);
}
*/
}
// compute the new bounding sphere
bounding_sphere = LLSphere::getBoundingSphere(sphere_list);
// increase the size of all spheres a little bit
// and count how many are NOT contained
{
std::vector< LLVector3 > uncontained_directions;
std::vector< LLSphere >::iterator sphere_itr;
for (sphere_itr = sphere_list.begin(); sphere_itr != sphere_list.end(); ++sphere_itr)
{
LLVector3 direction = sphere_itr->getCenter() - bounding_sphere.getCenter();
direction.normalize();
sphere_itr->setRadius( sphere_itr->getRadius() + expansion );
if (! bounding_sphere.contains( *sphere_itr ) )
{
uncontained_directions.push_back(direction);
}
}
ensure("when boosting sphere radii there should be at least two uncontained spheres",
uncontained_directions.size() > 1);
/* TODO -- when the bounding sphere algorithm is improved we can open up this test
* at the moment it occasionally fails when the sphere collection is tight and small
* (2 meters or less)
if (2 == uncontained_directions.size() )
{
// if there were only two uncontained spheres then
// the two directions should be nearly opposite
F32 dir_dot = uncontained_directions[0] * uncontained_directions[1];
ensure("two uncontained spheres should lie opposite the bounding center", dir_dot < -0.95f);
}
*/
}
}
}
}
namespace tut
{
F32 SMALL_RADIUS = 1.0f;
F32 MEDIUM_RADIUS = 5.0f;
F32 LARGE_RADIUS = 10.0f;
struct line_data
{
};
typedef test_group<line_data> line_test;
typedef line_test::object line_object;
tut::line_test tline("LLLine");
template<> template<>
void line_object::test<1>()
{
// this is a test for LLLine::intersects(point) which returns TRUE
// if the line passes within some tolerance of point
// these tests will have some floating point error,
// so we need to specify how much error is ok
F32 allowable_relative_error = 0.00001f;
S32 number_of_tests = 100;
for (S32 test = 0; test < number_of_tests; ++test)
{
// generate some random point to be on the line
LLVector3 point_on_line( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
point_on_line.normalize();
point_on_line *= ll_frand(LARGE_RADIUS);
// generate some random point to "intersect"
LLVector3 random_direction ( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
random_direction.normalize();
LLVector3 random_offset( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
random_offset.normalize();
random_offset *= ll_frand(SMALL_RADIUS);
LLVector3 point = point_on_line + MEDIUM_RADIUS * random_direction
+ random_offset;
// compute the axis of approach (a unit vector between the points)
LLVector3 axis_of_approach = point - point_on_line;
axis_of_approach.normalize();
// compute the direction of the the first line (perp to axis_of_approach)
LLVector3 first_dir( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
first_dir.normalize();
F32 dot = first_dir * axis_of_approach;
first_dir -= dot * axis_of_approach; // subtract component parallel to axis
first_dir.normalize();
// construct the line
LLVector3 another_point_on_line = point_on_line + ll_frand(LARGE_RADIUS) * first_dir;
LLLine line(another_point_on_line, point_on_line);
// test that the intersection point is within MEDIUM_RADIUS + SMALL_RADIUS
F32 test_radius = MEDIUM_RADIUS + SMALL_RADIUS;
test_radius += (LARGE_RADIUS * allowable_relative_error);
ensure("line should pass near intersection point", line.intersects(point, test_radius));
test_radius = allowable_relative_error * (point - point_on_line).length();
ensure("line should intersect point used to define it", line.intersects(point_on_line, test_radius));
}
}
template<> template<>
void line_object::test<2>()
{
/*
These tests fail intermittently on all platforms - see DEV-16600
Commenting this out until dev has time to investigate.
// this is a test for LLLine::nearestApproach(LLLIne) method
// which computes the point on a line nearest another line
// these tests will have some floating point error,
// so we need to specify how much error is ok
// TODO -- make nearestApproach() algorithm more accurate so
// we can tighten the allowable_error. Most tests are tighter
// than one milimeter, however when doing randomized testing
// you can walk into inaccurate cases.
F32 allowable_relative_error = 0.001f;
S32 number_of_tests = 100;
for (S32 test = 0; test < number_of_tests; ++test)
{
// generate two points to be our known nearest approaches
LLVector3 some_point( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
some_point.normalize();
some_point *= ll_frand(LARGE_RADIUS);
LLVector3 another_point( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
another_point.normalize();
another_point *= ll_frand(LARGE_RADIUS);
// compute the axis of approach (a unit vector between the points)
LLVector3 axis_of_approach = another_point - some_point;
axis_of_approach.normalize();
// compute the direction of the the first line (perp to axis_of_approach)
LLVector3 first_dir( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
F32 dot = first_dir * axis_of_approach;
first_dir -= dot * axis_of_approach; // subtract component parallel to axis
first_dir.normalize(); // normalize
// compute the direction of the the second line
LLVector3 second_dir( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
dot = second_dir * axis_of_approach;
second_dir -= dot * axis_of_approach;
second_dir.normalize();
// make sure the lines aren't too parallel,
dot = fabsf(first_dir * second_dir);
if (dot > 0.99f)
{
// skip this test, we're not interested in testing
// the intractible cases
continue;
}
// construct the lines
LLVector3 first_point = some_point + ll_frand(LARGE_RADIUS) * first_dir;
LLLine first_line(first_point, some_point);
LLVector3 second_point = another_point + ll_frand(LARGE_RADIUS) * second_dir;
LLLine second_line(second_point, another_point);
// compute the points of nearest approach
LLVector3 some_computed_point = first_line.nearestApproach(second_line);
LLVector3 another_computed_point = second_line.nearestApproach(first_line);
// compute the error
F32 first_error = (some_point - some_computed_point).length();
F32 scale = llmax((some_point - another_point).length(), some_point.length());
scale = llmax(scale, another_point.length());
scale = llmax(scale, 1.f);
F32 first_relative_error = first_error / scale;
F32 second_error = (another_point - another_computed_point).length();
F32 second_relative_error = second_error / scale;
//if (first_relative_error > allowable_relative_error)
//{
// std::cout << "first_error = " << first_error
// << " first_relative_error = " << first_relative_error
// << " scale = " << scale
// << " dir_dot = " << (first_dir * second_dir)
// << std::endl;
//}
//if (second_relative_error > allowable_relative_error)
//{
// std::cout << "second_error = " << second_error
// << " second_relative_error = " << second_relative_error
// << " scale = " << scale
// << " dist = " << (some_point - another_point).length()
// << " dir_dot = " << (first_dir * second_dir)
// << std::endl;
//}
// test that the errors are small
ensure("first line should accurately compute its closest approach",
first_relative_error <= allowable_relative_error);
ensure("second line should accurately compute its closest approach",
second_relative_error <= allowable_relative_error);
}
*/
}
F32 ALMOST_PARALLEL = 0.99f;
template<> template<>
void line_object::test<3>()
{
// this is a test for LLLine::getIntersectionBetweenTwoPlanes() method
// first some known tests
LLLine xy_plane(LLVector3(0.f, 0.f, 2.f), LLVector3(0.f, 0.f, 3.f));
LLLine yz_plane(LLVector3(2.f, 0.f, 0.f), LLVector3(3.f, 0.f, 0.f));
LLLine zx_plane(LLVector3(0.f, 2.f, 0.f), LLVector3(0.f, 3.f, 0.f));
LLLine x_line;
LLLine y_line;
LLLine z_line;
bool x_success = LLLine::getIntersectionBetweenTwoPlanes(x_line, xy_plane, zx_plane);
bool y_success = LLLine::getIntersectionBetweenTwoPlanes(y_line, yz_plane, xy_plane);
bool z_success = LLLine::getIntersectionBetweenTwoPlanes(z_line, zx_plane, yz_plane);
ensure("xy and zx planes should intersect", x_success);
ensure("yz and xy planes should intersect", y_success);
ensure("zx and yz planes should intersect", z_success);
LLVector3 direction = x_line.getDirection();
ensure("x_line should be parallel to x_axis", fabs(direction.mV[VX]) == 1.f
&& 0.f == direction.mV[VY]
&& 0.f == direction.mV[VZ] );
direction = y_line.getDirection();
ensure("y_line should be parallel to y_axis", 0.f == direction.mV[VX]
&& fabs(direction.mV[VY]) == 1.f
&& 0.f == direction.mV[VZ] );
direction = z_line.getDirection();
ensure("z_line should be parallel to z_axis", 0.f == direction.mV[VX]
&& 0.f == direction.mV[VY]
&& fabs(direction.mV[VZ]) == 1.f );
// next some random tests
F32 allowable_relative_error = 0.0001f;
S32 number_of_tests = 20;
for (S32 test = 0; test < number_of_tests; ++test)
{
// generate the known line
LLVector3 some_point( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
some_point.normalize();
some_point *= ll_frand(LARGE_RADIUS);
LLVector3 another_point( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
another_point.normalize();
another_point *= ll_frand(LARGE_RADIUS);
LLLine known_intersection(some_point, another_point);
// compute a plane that intersect the line
LLVector3 point_on_plane( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
point_on_plane.normalize();
point_on_plane *= ll_frand(LARGE_RADIUS);
LLVector3 plane_normal = (point_on_plane - some_point) % known_intersection.getDirection();
plane_normal.normalize();
LLLine first_plane(point_on_plane, point_on_plane + plane_normal);
// compute a different plane that intersect the line
LLVector3 point_on_different_plane( ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f,
ll_frand(2.f) - 1.f);
point_on_different_plane.normalize();
point_on_different_plane *= ll_frand(LARGE_RADIUS);
LLVector3 different_plane_normal = (point_on_different_plane - another_point) % known_intersection.getDirection();
different_plane_normal.normalize();
LLLine second_plane(point_on_different_plane, point_on_different_plane + different_plane_normal);
if (fabs(plane_normal * different_plane_normal) > ALMOST_PARALLEL)
{
// the two planes are approximately parallel, so we won't test this case
continue;
}
LLLine measured_intersection;
bool success = LLLine::getIntersectionBetweenTwoPlanes(
measured_intersection,
first_plane,
second_plane);
ensure("plane intersection should succeed", success);
F32 dot = fabs(known_intersection.getDirection() * measured_intersection.getDirection());
ensure("measured intersection should be parallel to known intersection",
dot > ALMOST_PARALLEL);
ensure("measured intersection should pass near known point",
measured_intersection.intersects(some_point, LARGE_RADIUS * allowable_relative_error));
}
}
}
| cpp |
New Delhi, Jan 25 : Cricket captain Virat Kohli, hockey captain P. R. Sreejesh, 2016 Olympic medallist wrestler Sakshi Malik, and para-athletes Deepa Malik and Mariyappan Thangavelu were on Wednesday named for the prestigious Padma Shri, the country's fourth highest civilian award.
Apart from them, gymnast sensation Dipa Karmakar, discus thrower Vikas Gowda and blind cricketer Shekhar Naik also figure in the last of awardees. | english |
# changelog
## 4.0.0
- automatic config reloading
- user specified custom config entries
- more control over limits on printing output
- remote IO console viewer + debugger
- events API
- MVP events: tick / message / webhook
- built in IBIP / URL scraper behaviour moved to user-defined events
- memo/remind moved to user-defined events
- uses a dedicated long-running isolate
- SQLite API
- sync and async APIs
- tagged templates for easy escaping
- auto-prepare caching
- webhooks
- require(): switched from webpack to esbuild
- dateFns and lodash removed from environment: use require() instead
- web style async fetch API
- lots of new APIs (check the documentation)
- much fewer dependencies used
| markdown |
CARDI B is a criminal who has a strong presence in the entertainment industry. This strong presence has such a negative influence on our youth. As a citizen, I am concerned about her impact on young people now that she has openly admitted to drugging and robbing men. We will not allow her to get away with this because this is not what we want for our young people. This is not OKAY and she has to be held accountable for her actions like anyone else. She has also admitted to being a prostitute/trick. She is telling America that she can do what she want and she is not going anywhere!!! Sign this petition so that we can MUTECARDIB and save our youth!!
| english |
#toolbar button#toolbtn_5 {
width:120px;
}
input {
border:1px solid #aaa;
width:92%;
margin-left:10px;
}
#sitetable select {
width:100% !important;
}
#sitetable tr.active {
background:#EEE;
}
#sitetable td.access, #sitetable td.devmode {background-color:#F8FFE0 !important;}
#sitetable tr {cursor:pointer;}
#appimageManager tbody input[type=radio] {
width:20px;float:left;
}
#appimageManager tbody td {
cursor:pointer;
}
.exporticon {background:transparent url(images/export.png) no-repeat left center; width:18px; height:18px;padding-left:24px;}
.importicon {background:transparent url(images/import.png) no-repeat left center; width:18px; height:18px;padding-left:24px;}
.appimageicon {background:transparent url(images/appimage.png) no-repeat left center; width:18px; height:18px;padding-left:24px;}
.minibtn {width:0px;margin-right:3px;float:right;}
.minibtn:hover {opacity:0.5;}
| css |
<gh_stars>0
const TelegramBot = require('node-telegram-bot-api')
const checkZhihuStatus = require('./zhihu')
const token = '<KEY>';
const bot = new TelegramBot(token, {
polling: true
})
bot.on('message', async (msg) => {
const chatId = msg.chat.id
const text = msg.text
if (text === '/status') {
const zhihuStatus = await checkZhihuStatus()
bot.sendMessage(chatId, zhihuStatus)
}
if (msg.sticker) {
bot.sendSticker(chatId, msg.sticker.file_id)
}
// bot.sendMessage(chatId, 'recevied you msg')
}) | javascript |
{"IN-AN":{"name":"<NAME>","level":"union territory"},"IN-AP":{"name":"Ándhrapradéš","level":"state"},"IN-AR":{"name":"Arunáčalpradéš","level":"state"},"IN-AS":{"name":"Ásam","level":"state"},"IN-BR":{"name":"Bihár","level":"state"},"IN-CH":{"name":"Čandígarh","level":"union territory"},"IN-CT":{"name":"Čatísgarh","level":"state"},"IN-DN":{"name":"<NAME>","level":"union territory"},"IN-DD":{"name":"<NAME>","level":"union territory"},"IN-DL":{"name":"Dillí","level":"union territory"},"IN-GA":{"name":"Goa","level":"state"},"IN-GJ":{"name":"Gudžarát","level":"state"},"IN-HR":{"name":"Harijána","level":"state"},"IN-HP":{"name":"Himáčalpradéš","level":"state"},"IN-JK":{"name":"D<NAME> Kašmír","level":"state"},"IN-JH":{"name":"Džharkhand","level":"state"},"IN-KA":{"name":"Karnátaka","level":"state"},"IN-KL":{"name":"Kérala","level":"state"},"IN-LD":{"name":"Lakadivy","level":"union territory"},"IN-MP":{"name":"Madhjapradéš","level":"state"},"IN-MH":{"name":"Maháraštra","level":"state"},"IN-MN":{"name":"Manípur","level":"state"},"IN-ML":{"name":"Meghálaj","level":"state"},"IN-MZ":{"name":"Mizorám","level":"state"},"IN-NL":{"name":"Nágsko","level":"state"},"IN-OR":{"name":"Urísa","level":"state"},"IN-PY":{"name":"Puttučéri","level":"union territory"},"IN-PB":{"name":"Pandžáb","level":"state"},"IN-RJ":{"name":"Radžastan","level":"state"},"IN-SK":{"name":"Sikkim","level":"state"},"IN-TN":{"name":"Tamilnádu","level":"state"},"IN-TR":{"name":"Tripura","level":"state"},"IN-UP":{"name":"Uttarpradéš","level":"state"},"IN-UT":{"name":"Uttarákhand","level":"state"},"IN-WB":{"name":"Západné Bengálsko","level":"state"}}
| json |
package org.fao.fenix.commons.utils;
import javax.enterprise.context.ApplicationScoped;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.util.Enumeration;
import java.util.HashSet;
import java.util.Set;
import java.util.jar.JarEntry;
import java.util.jar.JarInputStream;
@ApplicationScoped
public class ClassUtils {
public Set<Class<?>> getClasses(String packageName) throws Exception {
ClassLoader loader = Thread.currentThread().getContextClassLoader();
return getClasses(loader, packageName);
}
public Set<Class<?>> getClasses(ClassLoader loader, String packageName) throws IOException, ClassNotFoundException {
Set<Class<?>> classes = new HashSet<Class<?>>();
String path = packageName.replace('.', '/');
Enumeration<URL> resources = loader.getResources(path);
if (resources != null) {
while (resources.hasMoreElements()) {
String filePath = resources.nextElement().getFile();
// WINDOWS HACK
if(filePath.indexOf("%20") > 0)
filePath = filePath.replaceAll("%20", " ");
if (filePath != null) {
if ((filePath.indexOf("!") > 0) & (filePath.indexOf(".jar") > 0)) {
String jarPath = filePath.substring(0, filePath.indexOf("!"))
.substring(filePath.indexOf(":") + 1);
// WINDOWS HACK
if (jarPath.indexOf(":") >= 0) jarPath = jarPath.substring(1);
classes.addAll(getFromJARFile(jarPath, path));
} else {
classes.addAll(
getFromDirectory(new File(filePath), packageName));
}
}
}
}
return classes;
}
private Set<Class<?>> getFromDirectory(File directory, String packageName) throws ClassNotFoundException {
Set<Class<?>> classes = new HashSet<Class<?>>();
if (directory.exists()) {
for (String file : directory.list()) {
if (file.endsWith(".class")) {
String name = packageName + '.' + stripFilenameExtension(file);
Class<?> clazz = Class.forName(name);
classes.add(clazz);
}
}
}
return classes;
}
private Set<Class<?>> getFromJARFile(String jar, String packageName) throws IOException, ClassNotFoundException {
Set<Class<?>> classes = new HashSet<Class<?>>();
JarInputStream jarFile = new JarInputStream(new FileInputStream(jar));
JarEntry jarEntry;
do {
jarEntry = jarFile.getNextJarEntry();
if (jarEntry != null) {
String className = jarEntry.getName();
if (className.endsWith(".class")) {
className = stripFilenameExtension(className);
if (className.startsWith(packageName))
classes.add(Class.forName(className.replace('/', '.')));
}
}
} while (jarEntry != null);
return classes;
}
private String stripFilenameExtension(String className) {
return className.substring(0,className.lastIndexOf('.'));
}
}
| java |
export class InsufficientBalanceError extends Error {
constructor() {
super('Insufficient balance for transfer or swap!')
}
}
export class NegativeAmountError extends Error {
constructor() {
super('Amounts transferred or swapped cannot be negative!')
}
}
export class InvalidTransactionTypeError extends Error {
constructor() {
super('Invalid transaction type!')
}
}
export class StateMachineCapacityError extends Error {
constructor() {
super('State machine is at capacity. No more addresses may be added!')
}
}
export class InvalidTokenTypeError extends Error {
constructor(type) {
super(`Invalid token type received [${type}]. Must be 0 or 1.`)
}
}
export class SignatureError extends Error {
constructor() {
super('Signature is invalid for the message in question.')
}
}
export class UnexpectedBatchStatus extends Error {
constructor(msg: string) {
super(msg)
}
}
export const isStateTransitionError = (error: Error): boolean => {
return (
error instanceof InsufficientBalanceError ||
error instanceof NegativeAmountError ||
error instanceof InvalidTransactionTypeError ||
error instanceof StateMachineCapacityError ||
error instanceof InvalidTokenTypeError ||
error instanceof SignatureError
)
}
export class NotSyncedError extends Error {
constructor() {
super(
'The requested operation cannot be completed because this application is not synced.'
)
}
}
export class StateRootsMissingError extends Error {
constructor(msg: string) {
super(msg)
}
}
/***************************
* Batch Submission Errors *
***************************/
export class FutureRollupBatchNumberError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class FutureRollupBatchTimestampError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchBlockNumberTooOldError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchTimestampTooOldError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchSafetyQueueBlockNumberError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchSafetyQueueBlockTimestampError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchL1ToL2QueueBlockNumberError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchL1ToL2QueueBlockTimestampError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchOvmBlockNumberError extends Error {
constructor(msg: string) {
super(msg)
}
}
export class RollupBatchOvmTimestampError extends Error {
constructor(msg: string) {
super(msg)
}
}
| typescript |
Skip Bayless stated:
“The Boston Celtics, in command, they were up 14 with 10:16 left last night in the fourth quarter. They were up 14 points at home.
Although Jayson Tatum finished with 34 points, six rebounds and four assists, the Celtics still gave up a large lead in the fourth to a Bucks squad without Khris Middleton.
Failing to show up on the defensive end late in the game, Bayless explained that Tatum has yet to prove himself as a superstar. Bayless said:
On top of Tatum's defensive struggles, this year's Defensive Player of the Year, Marcus Smart, also showed lackluster effort. In fact, in the final minutes of play, Bucks guard Jrue Holiday ended up locking down Smart for two of the biggest defensive stops of the playoffs so far.
The Celtics dominated until the fourth quarter. Tatum had himself a great offensive performance, but a bleeding Giannis Antetokounmpo ended up in the limelight after sealing the victory with a 40 point, 11 rebound performance.
After a lackluster effort from Tatum and the Celtics late in the game, Bayless said that the game seemed to be a gift to the Bucks.
The flow was much in Boston’s favor for most of the game and then the script quickly flipped. Jayson Tatum and company seemingly did nothing to stop it. Skip outlined the game:
With Khris Middleton rumored to be possibly returning for Game 6 or 7 of this series, the Celtics are going to have to step up.
Marcus Smart and Jaylen Brown combined for only four points more than Tatum’s total in Game 3. If their scoring continues to struggle, the squad will inevitably have to tighten their defensive efforts.
Check out all NBA Trade Deadline 2024 deals here as big moves are made!
| english |
<filename>data/sequences/original_sentences_GLoVe/Supermarket/Supermarket_12_3.json
{"source_units": ["I was shopping at my local supermarket as I normally have for years.", "One particular day, I had done about 2 weeks\u2019 worth of shopping and was headed toward the register to pay for my groceries.", "I reached into my back right pocket to grab the money to pay and noticed that there was no money in there.", "I started to get nervous.", "I knew my pocket book was in the car and I was sure I had put the money in my back right pocket.", "I look at cashier with a confused look, not knowing what to do.", "There were people behind me on the line and I immediately thought about the money I left in the car that was intended to pay rent this month.", "She told me to speak with the courtesy counter.", "I laughed and said, \"But it was cash, no one would hand that in!\"", "I decided that there was no harm in checking so I walked up to a women behind the counter and said \"I have to ask, did anyone turn in cash by any chance?\"", "She asked \"How much?\"", "My face then lit up.", "\"$200 in the form of twenty dollar bills.\"", "I replied.", "She said, \"Actually, yes, someone did!\"", "I was so surprised!", "\"Who?", "I want to thank them.\"", "She points to a young girl about 10 years old and says, \"She did.\"", "I walked over to the mom and hugged her.", "She said, \"It wasn't me, it was my daughter\".", "I was so happy, I was almost in tears.", "I decided in those moments to do my duty to pay forward this act of kindness every opportunity I had."], "response_units": ["One day a lady went grocery shopping.", "She'd finished her grocery shopping and was standing in line waiting to check out when she reached into her back pocket and realized her money wasn't where she'd placed it.", "She realized she was holding up the line of people behind her but she had no idea what to do.", "She remembered bringing her wallet into the car that morning and had stuck the money she'd needed for grocery shopping in her back pocket of her jeans.", "The remaining money in the wallet was to pay for that month's rent.", "She looked at the cashier, bewildered.", "The cashier suggested that the lady visit the Customer's Corner and see if anyone had turned in some missing money.", "The lady was quite skeptical because she didn't believe anyone would be kind enough to turn in money they'd found.", "However, when she got to the Customer's Corner, she was in for a pleasant surprise.", "The worker behind the desk asked her how much she was missing.", "When the lady told her the exact amount, the worker said that someone had actually turned in the cash.", "The lady was ecstatic and couldn't believe her luck.", "She asked the store worker who the person was so she could properly thank them.", "The worker pointed to a woman in the store.", "The lady went over to the woman and gave her a big head, but the woman told her that it wasn't her doing, but rather, her young daughter's.", "The lady thanked the daughter and from that day on vowed to treat others with the same kindness this little girl had treated her with."], "correspondences": [0, 4, 9, 4, 6, 5, 6, 9, 6, 6, 6, 20, 9, 6, 18, 6], "source_spans": [[0, 68], [68, 191], [191, 297], [297, 322], [322, 418], [418, 481], [481, 622], [622, 669], [669, 734], [734, 888], [888, 909], [909, 929], [929, 971], [971, 981], [981, 1020], [1020, 1039], [1039, 1044], [1044, 1066], [1066, 1132], [1132, 1172], [1172, 1217], [1217, 1255], [1255, 1356]], "response_spans": [[0, 37], [37, 209], [209, 302], [302, 453], [453, 520], [520, 558], [558, 673], [673, 787], [787, 870], [870, 932], [932, 1034], [1034, 1086], [1086, 1165], [1165, 1208], [1208, 1347], [1347, 1481]]} | json |
A training cum demonstration programme was organized on “Mushroom Cultivation” on 24th November2021 at Chaudabatia village of Satyabadi block, Puri district of Odisha under SCSP programme. On this occasion, “Odisha Samyabad Vikash Mahakranti Parishada’’, founder member, Sri Rabindra ku. Bhoi, Secretary Sri Arjun Behera, President Sri Prafful ku. Patra, and Vice President, Smt Sabita Mallik, attended the programme. A total 150 of farmwomen from eight panchayats namely Sriramchandrapur, Kadua, Shamsarpur, Balarampur, Biswanathpur, Ketakipatna, Guali Gourada and Baulapur attended the programme. Mrs Geeta Saha, Technical Officer of ICAR-CIWA highlighted the various activities of the Institute (ICAR-CIWA). Dr Jyoti Nayak, Principal Scientist discussed about the nutritional and medicinal value of mushroom and demonstrated the Oyster Mushroom cultivation. She also emphasized the importance of mushroom cultivation for household income and highly used the nutritional benefits for farm families. Inputs for mushroom cultivation were distributed to 10 SHGs under the Schedule Caste Sub Plan (SCSP) scheme. Various queries of farm women were also addressed through Farmwomen-Scientists’ Interaction. The programme was coordinated by Dr Jyoti Nayak, Principal Scientist and Mrs Geeta Saha, Technical Officer of the Institute.
| english |
<filename>vm/interpreter/src/fvm/mod.rs<gh_stars>0
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT
mod externs;
mod kernel;
mod machine;
pub use externs::ForestExterns;
pub use kernel::ForestKernel;
pub use machine::ForestMachine;
| rust |
/* eslint-disable no-unused-vars */
/* globals Session Hosts Meteor Issues */
function listHostsByIssueTitleRegex (issueRegex) {
// Retrieves all host, service, protocol instances afflicted by a certain Issue
//
// Created by: <NAME>
// Based on listHostsByIssueTitle <NAME> & updated by <NAME>
// Usage: listHostsByIssueTitleRegex(/^SSL.*/)
// Requires client-side updates: false
var projectId = Session.get('projectId')
var issues = Issues.find({
'projectId': projectId,
'title': {
'$regex': issueRegex
}
}).fetch()
var msfHostsOutput = ''
if (issues.length < 1) {
console.log('No issues found')
return
}
issues.forEach(function (issue) {
console.log(issue.title)
var hosts = issue.hosts
hosts.forEach(function (host) {
console.log(host.ipv4 + ':' + host.port + '/' + host.protocol)
msfHostsOutput += host.ipv4 + ', '
})
console.log('RHOSTS: ' + msfHostsOutput.slice(0, -2))
msfHostsOutput = ''
})
}
| javascript |
The Australian Grand Prix on Sunday was arguably one of the most chaotic races as it not only had safety car periods but also multiple race restarts following three red flags. Among all the drivers, Fernando Alonso perhaps encountered the wildest range of emotions.
The Spaniard was running third for most of the race until he collided with Ferrari’s Carlos Sainz during the second restart. As a result of the collision, he dropped outside the top 10 and out of the points. However, since a red flag followed shortly after, the stewards had to make a critical decision.
The stewards had to decide whether the race would restart in the same order as the second restart or in the new order. Since the stewards decided to restart the race in the same order as the second restart, Alonso was handed back his third place.
The 41-year-old would eventually cross the line after one of the most exciting races to clinch his third consecutive podium of the season. The entertainment did not end there and Alonso had a hilarious moment during his post-race press conference as well.
After what was a long and exhausting Australian Grand Prix, Fernando Alonso seemed in a hurry to complete his post-race press conference duties. While Max Verstappen was answering questions during the presser, the Spaniard hilariously nudged the Dutchman to complete his answers quickly.
On getting the message, Verstappen said, “OK... short. You see, he (Alonso) wants to leave. (Do) You need to go?” The 25-year-old then completed the response to the question he was asked by hilariously saying that they will now talk in Baku, where the next race will take place. The Azerbaijan Grand Prix will take place from April 28 to 30.
Despite having some nervy moments during the Australian Grand Prix, Max Verstappen yet emerged victorious. In the process, he increased his points tally to 69 out of a maximum of 78. The win also helped him to extend his lead in the championship to 15 points from Red Bull teammate Sergio Perez (54).
Perez, who fought his way from the back of the grid to fifth, now only has a nine-point advantage over third-placed Fernando Alonso. The Spaniard’s third consecutive podium of the season in Australia meant that he increased his points tally to 45.
When it comes to the Constructors’ Championship, Red Bull are in a league of their own. The Milton Keynes outfit have scored 123 points and are already 58 points clear of second-placed Aston Martin (65) after just three races in the season.
| english |
---
layout: default
title: 'PHP 5.3.3 and PHP 5.4.13 dual installation error - Discussion'
---
<div class="container">
{% include warning.html %}
<div itemscope itemtype="https://schema.org/Question"><ol class="breadcrumb">
<li><a href="/">Home</a></li>
<li><a href="/category/6/installation">Installation</a></li>
</ol>
<div class="row table-title">
<div class="col-lg-8 col-md-7 col-sm-6 col-xs-12 wrapper-author">
<h1 class="" itemprop="name">PHP 5.3.3 and PHP 5.4.13 dual installation error</h1>
<div class="visible-xs-block mobile-author">
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a></span>
<time itemprop="dateCreated" datetime="2013-07-13T08:00:28-07:00">Jul '13</time>
</div>
</div>
<div class="col-lg-4 col-md-5 col-sm-6 hidden-xs text-right wrapper-stats">
<table class="table-stats" width="100%">
<tr style="vertical-align: top;">
<td>
<label>Created</label><br>
<time itemprop="dateCreated" datetime="2013-07-13T08:00:28-07:00">Jul '13</time>
</td>
<td>
<label>Last Reply</label><br>Oct '19</td>
<td>
<label>Replies</label><br>
<span itemprop="answerCount">6</span>
</td>
<td>
<label>Views</label><br>6894</td>
<td>
<label>Votes</label><br>
<span itemprop="upvoteCount">12</span>
</td>
</tr>
</table>
</div>
</div>
<div class="discussion">
<div class="row reply-block">
<div class="col-md-1 col-sm-1 hidden-xs text-center">
<img src="https://secure.gravatar.com/avatar/80a4fdde75deb0429df620c5b9fec297?s=48&r=pg&d=identicon" class="img-rounded avatar" /><br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person" class="avatar-name"><a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a></span>
<span class="karma">18.6k</span>
</div>
<div class="col-md-11 col-sm-11 col-xs-12 post-body"><div class="posts-date hidden-xs" align="right">
<a name="C582" href="#C582">
<time class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div><p>Hey I was able to get Phalcon running on 5.3.3 just fine, but for whatever reason, I can't get it running on my 5.4.13 installation. PHP 5.4.13 works, I just can't get it to load the extension for the life of me.</p>
<p>First 5.3.3 was on my system and it's running other production websites right now, so I just kinda wanted to leave it along and mess with Phalcon on 5.4.13 anyway. I had it working on 5.3.3 but I installed 5.4.13 and no dice on getting it to work. I keep getting the following error in my error_log when I restart apache</p>
<p>PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/phalcon.so' - /usr/lib64/php/modules/phalcon.so: undefined symbol: output_globals in Unknown on line 0</p>
<p>BTW, I have to define the entire path to phalcon.so. If I just put extension=phalcon.so nothing happens and there is no error.</p>
<p>Thoughts?</p></div> </div>
<div class="posts-buttons text-right"><a href="#" class="btn btn-danger btn-xs" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span><span itemprop="upvoteCount">12</span></a></div>
</div>
</div><div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/80a4fdde75deb0429df620c5b9fec297?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a> </span>
<br>
<span class="karma">18.6k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2427" href="#C2427">
<time itemprop="dateCreated" datetime="2013-07-13T08:10:55-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>I also re-installed Phalcon by going to cphalcon/build and running ./install</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2427" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2427" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/a7d4e7c45008b1be500025448de97d34?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/295/nickolasgregory" class="user-moderator-N"><span itemprop="name">nickolasgregory</span></a> </span>
<br>
<span class="karma">2.2k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2429" href="#C2429">
<time itemprop="dateCreated" datetime="2013-07-13T17:04:19-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>If you have dual PHP versions; are you sure you're compiling it, the second time, for PHP 5.4 ? or is rebuilding it via ./install still using PHP 5.3 ?
ie; You may have to adjust you paths/env to build for 5.4.</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2429" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2429" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/80a4fdde75deb0429df620c5b9fec297?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a> </span>
<br>
<span class="karma">18.6k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2430" href="#C2430">
<time itemprop="dateCreated" datetime="2013-07-13T18:39:22-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>How do I change the build path for 5.4 when building phalcon? Is it ./install --path=/path/to/php54? What file/directory does the path have to lead to?</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2430" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2430" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/80a4fdde75deb0429df620c5b9fec297?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a> </span>
<br>
<span class="karma">18.6k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2431" href="#C2431">
<time itemprop="dateCreated" datetime="2013-07-13T21:06:45-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>Well after a couple hours of research I think I figured out how to create the build differently, but it still doesn't work. Here's what I ended up doing with the help of <a href="https://php.net/manual/en/install.pecl.phpize.php">https://php.net/manual/en/install.pecl.phpize.php</a></p>
<p>Instead of cd cphalcon/build and then install, I did the following: </p>
<ul>
<li>cd cphalcon/build/64bits/</li>
<li>/opt/rh/php5.4/usr/bin/phpize #(this is not the standard /usr/bin/phpize, this is the one that was specific for the php54 build)</li>
</ul>
<p>After this was done the PHP API numbers matched correctly to the PHP5.4 version.</p>
<ul>
<li>./configure --with-php-config=/opt/rh/php5.4/usr/bin/php-config</li>
<li>make</li>
<li>make install</li>
</ul>
<p>Everything seemed to work find. the phalcon.so plugin was created in the correct default extension directory. I changed the php.ini file to just extension=phalcon.so instead of the absolute path. Restarted apache and I found this:</p>
<p>PHP Warning: PHP Startup: Unable to load dynamic library '/opt/rh/php5.4/usr/lib64/php/modules/phalcon.so' - /opt/rh/php5.4/usr/lib64/php/modules/phalcon.so: undefined symbol: output_globals in Unknown on line 0</p>
<p>Same dang error :(</p>
<p>Any other thoughts?</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2431" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2431" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/5d6f567f9109789fd9f702959768e35d?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/1/phalcon" class="user-moderator-Y"><span itemprop="name">Phalcon</span></a> </span>
<br>
<span class="karma">98.9k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2447" href="#C2447">
<time itemprop="dateCreated" datetime="2013-07-15T11:11:26-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>Try:</p>
<pre><code class="language-sh">cd cphalcon/build/64bits
make clean
phpize --clean
/opt/rh/php5.4/usr/bin/phpize
./configure --with-php-config=/opt/rh/php5.4/usr/bin/php-config
make && sudo make install</code></pre></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2447" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2447" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span><span itemprop="upvoteCount">2</span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/80a4fdde75deb0429df620c5b9fec297?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a> </span>
<br>
<span class="karma">18.6k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2455" href="#C2455">
<time itemprop="dateCreated" datetime="2013-07-15T19:25:42-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>Amazing! It worked! I hope this helps someone else in the future. Thanks for your help</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2455" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2455" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/80a4fdde75deb0429df620c5b9fec297?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/315/ImmortalFirefly21" class="user-moderator-N"><span itemprop="name">ImmortalFirefly21</span></a> </span>
<br>
<span class="karma">18.6k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C2755" href="#C2755">
<time itemprop="dateCreated" datetime="2013-07-30T21:04:37-07:00" class="action-date">Jul '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>One other final issue was that I installed phalcon on another server with a dual installation and for whatever reason I ran into another problem. Did all the above steps but my apache error_log kept have the following</p>
<p>PHP Warning: PHP Startup: Unable to load dynamic library '/opt/rh/php54/usr/lib64/php/modules/phalcon.so' - /opt/rh/php54/usr/lib64/php/modules/phalcon.so: undefined symbol: php_json_decode_ex in Unknown on line 0</p>
<p>and I fixed it by putting this right above extension=phalcon.so</p>
<p>extension=json.so</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="2755" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="2755" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/3593d526713f6ee02e7b064bc0e30776?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/603/cesaringo" class="user-moderator-N"><span itemprop="name">cesaringo</span></a> </span>
<br>
<span class="karma">10</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C3694" href="#C3694">
<time itemprop="dateCreated" datetime="2013-10-02T09:06:51-07:00" class="action-date">Oct '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>It worked for me too...
I spent an entire day before I found this post
Thx</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="3694" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="3694" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/c1ca93d033c8617b56efefbc4a53b328?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/309/newzen" class="user-moderator-N"><span itemprop="name">newzen</span></a> </span>
<br>
<span class="karma">1.4k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C4502" href="#C4502">
<time itemprop="dateCreated" datetime="2013-11-30T07:39:13-07:00" class="action-date">Nov '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>Installed remi repo <a href="https://blog.famillecollet.com/pages/Config-en">https://blog.famillecollet.com/pages/Config-en</a> and install php-5.4.2</p>
<p>undefined symbol: php_json_decode_ex in Unknown on line 0
and I fixed it by putting this right above extension=phalcon.so
extension=json.so </p>
<p>worked for me too. but i get </p>
<p>[<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="432d263439262d032a7607263028">[email protected]</a> phalcon]$ phalcon
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: Module 'phalcon' already loaded in Unknown on line 0</p>
<p>Phalcon DevTools (1.2.4)</p>
<p>Available commands:
commands (alias of: list, enumerate)
controller (alias of: create-controller)
model (alias of: create-model)
all-models (alias of: create-all-models)
project (alias of: create-project)
scaffold
migration
webtools</p>
<p>any solution for warnings??</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="4502" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="4502" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/91c2702541ba0f9b9bcfe2443bd5c659?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/517/n0nag0n" class="user-moderator-N"><span itemprop="name">Austin</span></a> </span>
<br>
<span class="karma">2.8k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C4506" href="#C4506">
<time itemprop="dateCreated" datetime="2013-12-02T08:44:53-07:00" class="action-date">Dec '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>My bet is that you have ini files in your /etc/php.d/ folder that is already calling these plugins; they are just calling them out of order. That's what I think since you installed from remi.</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="4506" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="4506" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer" class="reply-block row">
<div class="col-md-1 small" align="center">
<img src="https://secure.gravatar.com/avatar/c1ca93d033c8617b56efefbc4a53b328?s=48&r=pg&d=identicon" class="img-rounded" /> <br>
<span itemprop="author" itemscope itemtype="https://schema.org/Person">
<a href="/user/309/newzen" class="user-moderator-N"><span itemprop="name">newzen</span></a> </span>
<br>
<span class="karma">1.4k</span></div>
<div class="col-md-11"><div class="posts-buttons" align="right"><a name="C4539" href="#C4539">
<time itemprop="dateCreated" datetime="2013-12-03T13:41:26-07:00" class="action-date">Dec '13</time>
</a>
</div>
<div class="post-content"><div itemprop="text"><p>You are right. Thanks. On a regular Apache install from CentOS repo get the same problem ( Solved )</p></div></div>
<div class="posts-buttons" align="right"><a href="#" class="btn btn-danger btn-xs vote-login" data-id="4539" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-down"></span></a>
<a href="#" class="btn btn-success btn-xs vote-login" data-id="4539" data-cf-modified-edd295f933ae21a36a60be59-="">
<span class="glyphicon glyphicon-thumbs-up"></span></a></div>
</div>
</div>
<div class="row"><div class="col-md-1 small" align="center"></div>
<div class="col-md-11 login-comment">
</div></div>
</div><input type="hidden" id="post-id" name="post-id" value="582" /><div id="suggested-posts"></div>
<div id="sticky-progress" style='display:none'></div>
</div>
</div> | html |
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int maxProfit(int K, vector<int> &prices) {
// dp[k, i] represents the max profit up until prices[i] (Note: NOT ending with prices[i]) using at most k transactions.
// dp[k, i] = max(dp[k, i-1], prices[i] - prices[j] + dp[k-1, j])
// = max(dp[k, i-1], prices[i] + max(dp[k-1, j] - prices[j]))
if (prices.size() == 0)
return 0;
if (K >= prices.size()/2) {
int result = 0;
for (int i = 1; i < prices.size(); i++)
result += max(0, prices[i]-prices[i-1]);
return result;
}
vector<vector<int>> dp(2, vector<int>(prices.size(), 0));
for (int k = 1; k <= K; k++) {
int tmpMax = dp[(k-1)%2][0] - prices[0];
for (int i = 0; i < prices.size(); i++) {
dp[k%2][i] = max(dp[k%2][i-1], prices[i] + tmpMax);
tmpMax = max(tmpMax, dp[(k-1)%2][i] - prices[i]);
}
}
return *max_element(dp[K%2].begin(), dp[K%2].end());
}
};
int main() {
return 0;
}
| cpp |
<filename>src/main/java/com/nick318/search/by/frames/SearchByFramesFactory.java
package com.nick318.search.by.frames;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.time.Duration;
import java.util.Objects;
import java.util.function.Supplier;
/**
* This is the only way to create instance of {@link SearchByFrames}.
* Can be used as singleton using your favorite DI, but not limited.
* @author <NAME> (<EMAIL>)
*/
public class SearchByFramesFactory {
private final WebDriver driver;
public SearchByFramesFactory(WebDriver driver) {
Objects.requireNonNull(driver);
this.driver = driver;
}
/**
* Constructor.
*
* @param driver incoming driver.
* @param timeout timeout for checking element is exist at a frame. Default value is 100ms, try to avoid
* big numbers here. Up to 1 second, cause it will lead to low performance.
*/
public SearchByFramesFactory(WebDriver driver, Duration timeout) {
Objects.requireNonNull(driver);
Objects.requireNonNull(timeout);
this.driver = driver;
}
/**
* Factory method
* @param locator by
* @return instance of SearchByFrames
*/
public SearchByFrames search(By locator) {
return SearchByFrames.of(locator, driver);
}
/**
* Factory method
* @param elementSupplier supplier
* @return instance of SearchByFrames
*/
public SearchByFrames search(Supplier<WebElement> elementSupplier) {
return SearchByFrames.of(elementSupplier, driver);
}
}
| java |
<filename>example/package.json
{
"main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
"scripts": {
"start": "react-native-scripts start",
"eject": "react-native-scripts eject",
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"test": "node node_modules/jest/bin/jest.js --watch"
},
"private": true,
"dependencies": {
"@expo/vector-icons": "^6.2.1",
"@ramotion/react-native-expanding-collection": "https://github.com/Ramotion/react-native-expanding-collection.git",
"expo": "22.0.0",
"lodash.debounce": "^4.0.8",
"prop-types": "15.6.0",
"react": "16.0.0-beta.5",
"react-addons-shallow-compare": "15.6.2",
"react-native": "https://github.com/expo/react-native/archive/sdk-22.0.0.tar.gz"
},
"devDependencies": {
"babel-preset-expo": "^4.0.0",
"react-native-scripts": "1.5.0",
"eslint": "4.12.1",
"eslint-config-airbnb": "16.1.0",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-react": "7.5.1",
"eslint-plugin-react-native": "3.2.0",
"eslint-watch": "3.1.3"
}
}
| json |
Our editors will review what you’ve submitted and determine whether to revise the article.
- Date:
- Location:
- Context:
Battle of Tsushima, (May 27–29, 1905), naval engagement of the Russo-Japanese War, the final, crushing defeat of the Russian navy in that conflict.
The Japanese had been unable to secure the complete command of the sea because the Russian naval squadrons at Port Arthur and Vladivostok made sorties and both sides suffered losses in the ensuing engagements. Meanwhile, the Russian government decided to send the Baltic Fleet all the way to the Far East under the command of Admiral Zinovy Petrovich Rozhestvensky to link up with the Pacific Squadron at Port Arthur, upon which the combined fleets would overwhelm the Japanese navy. The Russian Baltic Fleet, having spent the whole summer fitting out, sailed from Liepaja on Oct. 15, 1904. Off the Dogger Bank (in the North Sea) on October 21, several Russian ships opened fire on British trawlers in the mistaken belief that they were Japanese torpedo boats, and this incident aroused such anger in England that war was only avoided by the immediate apology and promise of full compensation made by the Russian government. At Nossi-Bé, near Madagascar, Rozhestvensky learned of the surrender of Port Arthur to Japanese forces and proposed returning to Russia; but, expecting naval reinforcements, which had been sent from the Baltic via Suez early in March 1905 and which later joined him at Camranh Bay (Vietnam), he decided to proceed. His full fleet amounted to a formidable armada, but many of the ships were old and unserviceable and their crews were poorly trained. Early in May the fleet reached the China Sea, and Rozhestvensky made for Vladivostok via the Tsushima Strait. Admiral Togō Heihachirō’s fleet lay in wait for him on the south Korean coast near Pusan, and on May 27, as the Russian Fleet approached, he attacked. The Japanese ships were superior in speed and armament, and, in the course of the two-day battle, two-thirds of the Russian Fleet was sunk, six ships were captured, four reached Vladivostok, and six took refuge in neutral ports. It was a dramatic and decisive defeat; after a voyage lasting seven months and when within a few hundred miles of its destination, the Baltic Fleet was shattered, and, with it, Russia’s hope of regaining mastery of the sea was crushed.
| english |
{"limit":100,"name":"Zamorak robe (top)","value":40,"highalch":24,"id":1035,"lowalch":16,"name_pt":"Túnica de Zamorak (camisa)","price":1150,"last":1150}
| json |
Mumbai: Due to public demand, makers of Mirzapur announced the release date of Amazon Prime’s most awaited series Mirzapur-2’s Monday. While fans cannot wait to see the new series, many fans have also demanded to boycott this series.
The question now arises as to why fans have been demanding the boycott of the popular web series? And the reason is Mirzapur lead actor Ali Fazal.
Actually Mirzapur-2 series has actor Ali Fazal in the lead role and he himself has become the reason for the boycott. It is a well known fact that Ali Fazal and his girlfriend Richa Chaddha are supporters of anti-CAA, NRC protests.
They termed the CAA, NRC a blot to democracy. Earler, Ali Fazal had tweeted his take on the nationwide anti-CAA protests that started in December.
Taking advantage of his tweet, fans started trending the hashtag #BoycottMirzapur2 on Twitter.
See here:
Another user wrote, “I was really excited for Mirzapur 2 but after this Tweet. I will not watch it. That’s it. #BoycottMirzapur2”. .
Now with the release date of Mirzapur-2, people remembered his tweets. Due to which, now users are demanding to boycott their series. However, Ali deleted these tweets from his Twitter account. Many users tweeted fiercely at Ali Fazal and his series.
It features actors like Pankaj Tripathi, Divyenndu, Shweta Tripathi Sharma, Rasika Dugal and Harshita Shekhar Gaur. Mirzapur season 2 will be available to stream on Amazon Prime Video in multiple Indian languages, including Hindi, Telugu and Tamil.
Its first season consists of 9 episodes in total. The series has been renewed for a second season and is scheduled for 23 October 2020 premiere. | english |
<gh_stars>10-100
package org.eclipse.ecf.tests.httpservice.util;
import org.eclipse.equinox.http.servlet.ExtendedHttpService;
import org.osgi.framework.BundleContext;
import org.osgi.util.tracker.ServiceTracker;
import org.osgi.util.tracker.ServiceTrackerCustomizer;
public class ExtendedHttpServiceTracker extends ServiceTracker {
public ExtendedHttpServiceTracker(BundleContext context, ServiceTrackerCustomizer customizer) {
super(context, ExtendedHttpService.class.getName(), customizer);
}
public ExtendedHttpServiceTracker(BundleContext context) {
this(context, null);
}
public ExtendedHttpService getExtendedHttpService() {
return (ExtendedHttpService) getService();
}
public ExtendedHttpService[] getExtendedHttpServices() {
return (ExtendedHttpService[]) getServices();
}
}
| java |
package org.apache.cayenne.lifecycle.db.auto;
import java.util.List;
import org.apache.cayenne.CayenneDataObject;
import org.apache.cayenne.exp.Property;
import org.apache.cayenne.lifecycle.db.Auditable4;
/**
* Class _Auditable3 was generated by Cayenne.
* It is probably a good idea to avoid changing this class manually,
* since it may be overwritten next time code is regenerated.
* If you need to make any customizations, please use subclass.
*/
public abstract class _Auditable3 extends CayenneDataObject {
private static final long serialVersionUID = 1L;
public static final String ID_PK_COLUMN = "ID";
public static final Property<String> CHAR_PROPERTY1 = new Property<String>("charProperty1");
public static final Property<String> CHAR_PROPERTY2 = new Property<String>("charProperty2");
public static final Property<List<Auditable4>> AUDITABLE4S = new Property<List<Auditable4>>("auditable4s");
public void setCharProperty1(String charProperty1) {
writeProperty("charProperty1", charProperty1);
}
public String getCharProperty1() {
return (String)readProperty("charProperty1");
}
public void setCharProperty2(String charProperty2) {
writeProperty("charProperty2", charProperty2);
}
public String getCharProperty2() {
return (String)readProperty("charProperty2");
}
public void addToAuditable4s(Auditable4 obj) {
addToManyTarget("auditable4s", obj, true);
}
public void removeFromAuditable4s(Auditable4 obj) {
removeToManyTarget("auditable4s", obj, true);
}
@SuppressWarnings("unchecked")
public List<Auditable4> getAuditable4s() {
return (List<Auditable4>)readProperty("auditable4s");
}
}
| java |
Actor Kunal Kapoor is right now investing his time in writing a few scripts which are now being developed into films.
Meenaxi is among the millions who feel that an opportunity to be on a dance reality show can change her life and pull her. .
Meenaxi is among the millions who feel that an opportunity to be on a dance reality show can change her life and pull her family out of poverty.
He was 85 years old when I first met him and I always marveled at his energy. He was always planning ahead and appeared tireless.
Interesting art films are a distant dream,with low budget documentaries and no crowdpuller big budget ones. | english |
Other details including the toppers list have also been released by the board. Students appeared in the examination can check the result by entering their roll number, registration number and other details.
Students are advised to check other information like name, address etc. given in the result. If any information is wrong, then contact the board and get it corrected.
A total of 92. 47 percent students have passed in PSEB Board 12th. The pass percentage for girls, boys and transgender is 95. 14 per cent, 90. 25 per cent and 100 per cent respectively. The result has been declared by the board in a press conference.
The Punjab Board Class 12th exam was conducted from February 20 to April 20, in which around 3 lakh students appeared. Direct link to check PSEB 12th Result 2023 is given below when available. The result was announced in the press conference organized by the board. Candidates can follow the steps given below to check the result.
- Click on the link where PSEB 12th Result 2023 is written.
- Enter Regimental Number / Roll Number.
- Your PSEB 12th Result 2023 will appear on the screen.
- PSEB 12th Result 2023 will appear on the screen, download it. | english |
It may seem minor, but kids everywhere will be jumping for joy with the addition of a ‘Watch Later’ function to video push notifications sent from the YouTube Android app.
If you’re subscribed to any channels in the app, you’ll be familiar with the notifications sent when your favorite YouTube star publishes another great video.
Until now though, you could only watch it there and then or head to the options button to disable notifications from that channel. Now you will be able to tap ‘watch later’ and the video will be added to your Watch Later list in-app.
The disable button still stands, however much fans like Rahil Bhimjiani, the guy who spotted this, think it doesn’t make sense.
His suggestion, shared as a true fan on Google+, is that this spot should be saved for a ‘download offline’ button.
This feature has not been officially announced, so it’s not clear whether it’s just a test, but it represents a logical use of Android’s push capabilities, so makes sense for a full roll out.
We’ve contacted Google to find out when this will go live to all users.
Get the most important tech news in your inbox each week.
| english |
<gh_stars>0
{
"name": "edere-api",
"version": "1.0.0",
"description": "Server api for Edere",
"dependencies": {
"config": "^1.28.0",
"express": "^4.16.2"
},
"devDependencies": {
"@types/chai": "^4.0.4",
"@types/config": "0.0.33",
"@types/mocha": "^2.2.44",
"@types/node": "^8.0.50",
"chai": "^4.1.2",
"mocha": "^4.0.1",
"ts-node": "^3.3.0",
"typescript": "^2.6.1"
},
"scripts": {
"production": "set NODE_ENV=production&&nodemon src/index.ts",
"start": "set NODE_ENV=development&& nodemon src/index.ts",
"test": "set NODE_ENV=test&& mocha -r ts-node/register src/**/*.spec.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/frrodriguez/edere-api.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/frrodriguez/edere-api/issues"
},
"homepage": "https://github.com/frrodriguez/edere-api#readme"
} | json |
There are a few things that immediately spring to mind when you consider what most kids enjoy: TV, video games, and Lego. All three of them come to mind when you think of Minecraft. In fact, the aim of the game is to create, and Minecraft looks a lot like Lego components.
The above picture aptly shows the dilemma almost every kid faces in a wide variety of scenarios. As per a recent study, Minecraft is the market’s most Addictive game. This study evaluated a selection of games and assigned each game a level of addictiveness. More than 1,500 gamers and their habits were tracked for the study.
Read on as we go through a few of the reasons why Minecraft is so addictive!!
There cannot be a more prominent reason to get kids hooked on gameplay than it being one of the simplest games to play without worrying about an end goal. This implies that no particular set of objectives must be met in order to “win.” Some games, like Counter-Strike: Global Offensive, include a set time limit for finishing a level. Minecraft doesn’t have a time limit or objective that “ends” the game, allowing kids to play it endlessly. Due to this, it can be challenging for children to recognize when enough is enough.
The opportunity to let your imagination run wild, gather materials, and see what you have imagined come to life are just some of the intriguing challenges that Minecraft offers. Its fascinating journey of turning concepts into objects while one meticulously builds and alters the environment in front of them is what makes it so addictive.
You are given the ability to build any concept into reality within this virtual sandbox, leaving behind an overwhelming feeling of accomplishment and fulfillment.
Dopamine, a feel-good neurotransmitter, is released when you play video games, according to a 1998 study that appeared in the scientific journal Nature. The amount of dopamine released when playing video games was comparable to that observed following intravenous injection of the stimulant drugs such as amphetamine or methylphenidate. This is also seen in the case of Minecraft and it’s endless gameplay.
What happens when one suddenly stops playing after spending long hours playing a game like Minecraft? There is a need for another surge of dopamine, like a drug addict looking for the next hit. Before they know it, they’re addicted, and can’t live without it and thus spend longer hours playing the game.
Kids’ obsession with Minecraft is also fueled by their friendships. They experience peer pressure to play online, much like they would in a social setting, to keep up. Children compete with one another, and they play games for longer periods to develop new skills. Peer pressure might be a major factor in your child’s Minecraft addiction.
Video games like Minecraft have evolved into a means of escaping reality. Playing Minecraft is a common way for kids to relieve stress, avoid difficult feelings, or divert their attention from real issues happening in their daily lives. Minecraft’s simple yet intriguing blocky graphics, soothing music, and immersive action may produce a relaxing and engaging experience that keeps players hooked for a long time.
How does it affect kids?
Approximately 9 out of 10 children play video games like Minecraft and that is close to 64 million!! Surprisingly, some of them start using keyboards or smartphones before they can even form complete sentences. Researchers are worried most about teens who obsessively play games before they are even 21 because they believe it may change the neurological structure of their brains.
Children who become addicted to Minecraft may face a number of negative consequences that may affect multiple aspects of their lives, such as:
It’s crucial to remember that, despite the fact that Minecraft can be addictive for kids, it is up to the parents to mix cautious moderation with a healthy gaming lifestyle. Setting limits, taking breaks, and giving priority to other facets of life, including work, school, and connections with other people in the real world is always recommended.
Minecraft is one of the most popular games among kids, and Moonpreneur is now turning this fun gameplay into an opportunity to learn how to code. Minecraft Coding course will help kids learn the skill of coding the fastest and in the most fun way ever possible! Book a free class today!
The post Why Is Minecraft So Addictive? appeared first on Moonpreneur.
| english |
<reponame>xandersavvy/Problem-solving
class Solution {
public:
int maximumWealth(vector<vector<int>>& accounts) {
int max=0;
int len=accounts.size();
for(int i=0;i<len;i++){
int sum = accumulate(accounts[i].begin(), accounts[i].end(), 0) ;
if(sum>max)
max=sum;
}
return max;
}
};
//4 ms 7.8 MB
| cpp |
Polling for Sohiong Assembly constituency of Meghalaya in the February 27 state elections has been postponed following the demise of the state's former Home minister and United Democratic Party candidate from the seat, HDR Lyngdoh.
Lyngdoh passed away on Monday after collapsing during a campaign event.
Polling will now be conducted in 59 out of 60 constituencies in the wake of the former Home minister's demise.
FR Kharkongor, the chief electoral officer of Meghalaya, told ANI that the Election Commission will announce the poll date for Sohiong constituency later.
"Now the election will be held in 59 out of 60 constituencies on February 27," Kharkongor said.
The votes will be counted on March 2 along with those of Nagaland and Tripura.
Meanwhile, in a bid to help senior citizens and the differently abled exercise their franchise, the EC on February 15 introduced the facility of voting through the postal ballot.
As per the option exercised under Form 12 D, district teams were deployed to arrange home voting for senior citizens above 80 years of age and people with disabilities through postal ballots.
EC teams undertook arduous treks to reach the most far-flung areas of East Khasi Hills District to ensure no voter is left behind. Absentee voters cast their vote through postal ballots.
"Citizens speak 'Cheers to Indian Democracy. Mei, 87 has cast her vote. Her house became a mini polling station. Five personnel came along to ensure that it's is free and fair polling. Well done EC. Mom casting her vote Congratulations on the initiative," tweeted Chief Electoral Officer, Meghalaya mentioning the reaction of the daughter of an octogenarian woman.
(Only the headline and picture of this report may have been reworked by the Business Standard staff; the rest of the content is auto-generated from a syndicated feed. ) | english |
package main
import (
"fmt"
)
func main() {
var result string
var n int
fmt.Scan(&n)
fmt.Println("Hello world", n)
for i := 0; i < n; i++ {
value := getRow((i + 1), n)
result += value + "\n"
}
fmt.Print(result)
}
func getRow(index int, n int) string {
var result string
difference := n - index
if difference > 0 {
for i := 0; i < difference; i++ {
result += " "
}
}
for i := 0; i < index; i++ {
result += "#"
}
return result
}
| go |
package org.vnuk.simplefiletransferatu;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.pm.PackageManager;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.ToggleButton;
import org.apache.ftpserver.FtpServer;
import org.apache.ftpserver.FtpServerFactory;
import org.apache.ftpserver.ftplet.Authority;
import org.apache.ftpserver.ftplet.FtpException;
import org.apache.ftpserver.ftplet.FtpReply;
import org.apache.ftpserver.ftplet.FtpRequest;
import org.apache.ftpserver.ftplet.FtpSession;
import org.apache.ftpserver.ftplet.Ftplet;
import org.apache.ftpserver.ftplet.FtpletContext;
import org.apache.ftpserver.ftplet.FtpletResult;
import org.apache.ftpserver.ftplet.UserManager;
import org.apache.ftpserver.listener.ListenerFactory;
import org.apache.ftpserver.usermanager.PropertiesUserManagerFactory;
import org.apache.ftpserver.usermanager.SaltedPasswordEncryptor;
import org.apache.ftpserver.usermanager.impl.BaseUser;
import org.apache.ftpserver.usermanager.impl.WritePermission;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActivity.class.getSimpleName();
private final int PERMISSIONS_REQUEST = 7652;
private final int PORT = 2121;
private final String USER = "admin";
private final String PASS = "<PASSWORD>";
private final String FILE_NAME = "users.properties";
private ToggleButton tbStart;
private TextView tvTitle;
private TextView tvAddress;
private FtpServerFactory serverFactory = new FtpServerFactory();
private ListenerFactory listenerFactory = new ListenerFactory();
private PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory();
private FtpServer mServer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
checkPermissions();
mServer = serverFactory.createServer();
tbStart = findViewById(R.id.tb_server);
tbStart.setOnCheckedChangeListener(createStartButtonListener());
tvTitle = findViewById(R.id.tv_server_title);
tvAddress = findViewById(R.id.tv_server_address);
ImageView ivCopy = findViewById(R.id.iv_copy);
ivCopy.setOnClickListener(createCopyButtonListener());
}
@Override
protected void onDestroy() {
try {
mServer.stop();
} catch (Exception e) {
Log.e(TAG, "Server stopping error: " + e.getMessage());
}
super.onDestroy();
}
private View.OnClickListener createCopyButtonListener() {
return v -> {
String msg = String.valueOf(tvAddress.getText());
ClipboardManager clipboard = (ClipboardManager) getBaseContext().getSystemService(Context.CLIPBOARD_SERVICE);
ClipData clip = ClipData.newPlainText("simple text", msg);
Objects.requireNonNull(clipboard).setPrimaryClip(clip);
Toast.makeText(getBaseContext(), getText(R.string.address_copied), Toast.LENGTH_LONG).show();
Log.v(TAG, "Server address copied to clipboard.");
};
}
private CompoundButton.OnCheckedChangeListener createStartButtonListener() {
return (buttonView, isChecked) -> {
Log.v(TAG, "Server start/stop button activated.");
try {
if (checkWiFiState(this) || checkHotSpotState(this)) {
Log.i(TAG, "Wi-Fi or HotSPot is ON, starting server control.");
startServerControl();
} else {
Log.i(TAG, "Wi-Fi or HotSpot is OFF.");
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.dialog_no_wifi_message).setTitle(R.string.dialog_no_wifi_title);
builder.setPositiveButton("OK", (dialog, id) -> dialog.dismiss());
builder.show();
tbStart.setChecked(false);
}
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
};
}
void startServerControl() {
if (mServer.isStopped()) {
Log.i(TAG, "Server is stopped, starting server...");
startingServer();
} else if (mServer.isSuspended()) {
Log.i(TAG, "Server is suspended, resuming server...");
resumingServer();
} else {
Log.i(TAG, "Server is working, suspending server...");
suspendingServer();
}
}
private void startingServer() {
String userName = USER;
String password = <PASSWORD>;
setupServer(userName, password);
startServer();
}
private void setupServer(String userName, String password) {
listenerFactory.setPort(PORT);
serverFactory.addListener("default", listenerFactory.createListener());
File files = new File(Environment.getExternalStorageDirectory().getPath() + File.separator + FILE_NAME);
if (!files.exists()) {
try {
files.createNewFile();
} catch (IOException e) {
Log.e(TAG, "Users file creation error: " + e.getMessage());
}
}
userManagerFactory.setFile(files);
userManagerFactory.setPasswordEncryptor(new SaltedPasswordEncryptor());
UserManager userManager = userManagerFactory.createUserManager();
BaseUser baseUser = new BaseUser();
baseUser.setName(userName);
baseUser.setPassword(password);
baseUser.setHomeDirectory(Environment.getExternalStorageDirectory().getPath());
List<Authority> authorities = new ArrayList<>();
Authority auth = new WritePermission();
authorities.add(auth);
baseUser.setAuthorities(authorities);
try {
userManager.save(baseUser);
} catch (FtpException e) {
Log.e(TAG, "Saving User error: " + e.getMessage());
}
serverFactory.setUserManager(userManager);
Map<String, Ftplet> m = new HashMap<>();
m.put("miaFtplet", new Ftplet() {
@Override
public void init(FtpletContext ftpletContext) throws FtpException {
}
@Override
public void destroy() {
}
@Override
public FtpletResult beforeCommand(FtpSession session, FtpRequest request) throws FtpException, IOException {
return FtpletResult.DEFAULT;
}
@Override
public FtpletResult afterCommand(FtpSession session, FtpRequest request, FtpReply reply) throws FtpException, IOException {
return FtpletResult.DEFAULT;
}
@Override
public FtpletResult onConnect(FtpSession session) throws FtpException, IOException {
return FtpletResult.DEFAULT;
}
@Override
public FtpletResult onDisconnect(FtpSession session) throws FtpException, IOException {
return FtpletResult.DEFAULT;
}
});
serverFactory.setFtplets(m);
}
private void startServer() {
try {
mServer.start();
tvTitle.setText(getText(R.string.server_address));
tvAddress.setText(String.format("ftp://%s:%s", wiFiIpAddress(this), PORT));
System.out.println("ADDRESS: " + String.format("ftp://%s:%s", wiFiIpAddress(this), PORT));
} catch (FtpException e) {
e.printStackTrace();
}
}
private void resumingServer() {
mServer.resume();
tvTitle.setText(getText(R.string.server_address));
}
private void suspendingServer() {
mServer.suspend();
tvTitle.setText(getText(R.string.server_offline));
}
private boolean checkWiFiState(Context context) {
WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
if (wifiManager == null) return false;
if (wifiManager.isWifiEnabled()) {
//The networkId may be -1 if there is no currently connected network or
// if the caller has insufficient permissions to access the network ID.
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
Log.v(TAG, "Wi-Fi is ON and NetworkID is " + wifiInfo.getNetworkId() + ".");
//From Android 10/Q WifiInfo.getNetworkId() needs location permission and location mode turned on
//or will return -1.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
return true;
} else {
return wifiInfo.getNetworkId() != -1;
}
} else {
Log.v(TAG, "Wi-Fi is OFF.");
return false;
}
}
private boolean checkHotSpotState(Context context) throws InvocationTargetException, IllegalAccessException {
WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE);
if (wifiManager == null)
return false;
Method method;
try {
method = wifiManager.getClass().getDeclaredMethod("isWifiApEnabled");
method.setAccessible(true); //in the case of visibility change in future APIs
return (Boolean) method.invoke(wifiManager);
} catch (NoSuchMethodException e) {
e.printStackTrace();
}
return false;
}
private String wiFiIpAddress(Context context) {
try {
if (checkHotSpotState(context)) {
return "192.168.43.1";
}
} catch (InvocationTargetException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
return getIPAddress(true);
}
public static String getIPAddress(boolean useIPv4) {
try {
List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());
for (NetworkInterface intf : interfaces) {
List<InetAddress> addrs = Collections.list(intf.getInetAddresses());
for (InetAddress addr : addrs) {
if (!addr.isLoopbackAddress()) {
String sAddr = addr.getHostAddress();
// boolean isIPv4 = InetAddressUtils.isIPv4Address(sAddr);
boolean isIPv4 = sAddr.indexOf(':') < 0;
if (useIPv4) {
if (isIPv4)
return sAddr;
} else {
if (!isIPv4) {
int delim = sAddr.indexOf('%'); // drop ip6 zone suffix
return delim < 0 ? sAddr.toUpperCase() : sAddr.substring(0, delim).toUpperCase();
}
}
}
}
}
} catch (Exception ex) {
} // for now eat exceptions
return "";
}
private void checkPermissions() {
if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {
if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.dialog_storage_message).setTitle(R.string.dialog_storage_title);
builder.setPositiveButton("OK", (dialog, id) -> {
dialog.dismiss();
ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSIONS_REQUEST);
});
builder.show();
} else {
ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, PERMISSIONS_REQUEST);
}
}
}
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {
if (requestCode == PERMISSIONS_REQUEST) {
if (grantResults.length <= 0 || grantResults[0] != PackageManager.PERMISSION_GRANTED) {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.dialog_storage_denied_message).setTitle(R.string.dialog_storage_denied_title);
builder.setPositiveButton("OK", (dialog, id) -> {
dialog.dismiss();
finish();
});
builder.show();
}
}
}
} | java |
License to Thrill Movie Streaming Watch Online. Greg Stump and Bruce Benedict go to incredible lengths to capture extreme skiers Glen Plake, Scot Schmidt, Geoff Stump, Kevin Andrews, Darren Johnson, Mike Hattrup and Kim Reichhelm. What began as a cheap rip-off of a James Bond title has evolved into a celebration of rhythm. This energetic, youthful, dynamic and above all entertaining movie takes you exactly where you want to be. Lets not forget that Plake and Schmidt give a hilarious interview on the Today Show! Featured music in License To thrill includes Nast Rox, Kissing The Pink, 808 State, and Hoodlum Priest.
| english |
<gh_stars>0
import { Directive } from '@angular/core';
@Directive({
selector: '[appBorderColor]'
})
export class BorderColorDirective {
constructor() { }
}
| typescript |
"use strict";
const fs = require("fs"), middlewares = {}, files = fs.readdirSync(__dirname);
for (let file of files) {
if (file !== "index.js") {
const fileName = file.split(".")[0];
middlewares[fileName] = require("./" + file);
}
}
module.exports = middlewares;
| javascript |
{"stats":{"minecraft:custom":{"minecraft:time_since_rest":58,"minecraft:play_one_minute":58,"minecraft:leave_game":1,"minecraft:time_since_death":58}},"DataVersion":2230} | json |
const express = require("express");
const Invites = require("./inviteModel.js");
const router = express.Router();
// 1. Fetch invitation code
router.get("/:code", (req, res) => {
/*
:code invitiation code (team_invite_link.link)
checks if provided invite code isValid and good.
*/
const { code } = req.params;
Invites.findByCode(code)
.then((invite) => {
const expires = Date.parse(invite.expires_at);
if (expires < Date.now()) {
clg("EXPIRED");
res.status(403).json({ message: "Code is EXPIRED", team_id: -2 });
} else if (invite.isValid === false) {
clg("INVALID");
res.status(406).json({ message: "Code is INVALID", team_id: -1 });
} else {
res
.status(200)
.json({
team_id: invite.team_id,
organization_id: invite.organization_id,
});
}
})
.catch((err) =>
res
.status(500)
.json({ message: `Could not find invite code ${code}.`, error: err })
);
});
module.exports = router;
function clg(...x) {
console.log(...x);
}
| javascript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.