Rtersieva
Shared posts
Take a 3-D Tour of a Space Cloud Full of Baby Stars
The World's Biggest Tech Show Just Lost Power [UPDATED]

Journalists, industry heads, and tech enthusiasts descended on Las Vegas this week for the annual CES showcase of bleeding-edge electronics. On Wednesday, everyone gathered around giant gleaming TVs, strapped on VR headsets, played fetch with robot dogs, and then the power blew out.
Ridley Scott Is Ready For Another Blade Runner Sequel
Paper Scraps Recovered From Blackbeard's Cannon Reveal What Pirates Were Reading

Old-timey pirates are typically portrayed as stupid, unrefined thugs whose only interests involved plundering captured ships and forcing enemies to walk the plank. The recent discovery of legible text on paper pulled from the cannon of Blackbeard’s flagship paints a strikingly different picture of these misunderstood…
2017-та в снимки
С известно закъснение, представям кратък фото-очерк на местата, които съм посетил през изминалата 2017-та година.
2017-та започна обсипана с обилен сняг, който създаде доста главоболия с придвижването.
Сняг беше покрил дори и плажовете.
Балканът, колкото и да е труднодостъпен през зимата, е още по-пленителен, особено ако си се запътил сам към хижа Рай.
Вечер в нощното небе грейват безброй ярки звезди.
Рила предлага микс от назъбени скали подаващи се страховито в намусеното време.
В равнинните части на страната е почти сигурно, че там, където има хълм, някога се е издигала крепост, също като тази край село Венчан.
С настъпването на пролетта, лилави великденчета изпълват поляните.
Всичко се мени бързо и непрестанно. Както грее слънце, ще завали дъжд и ще се покаже дъга. Мимолетни макове обагрят в алено произволни площи.
Сезонът, който изпълва с оптимизъм всяко живо същество.
Правим бърза отбивка в Андалусия, която с невероятната си история ни връща в миналото.
Колкото да хвърлим поглед на двореца Алхамбра в Гранада.
Както и на приказният мост Nuevo Ponte в Ронда.
Но не се изкушаваме да тръгнем по курортите на Коста дел сол.
Съвсем спонтатто се пренасяме на колоритният остров Мадейра.
Където има от всичко по много - планини, крайбрежие...
Древни гори.
И слънце в изобилие.
За момент се връщаме в България, за да видим какво е положението в живописният циркус на Урдини езера.
Оказва се, че голямо стадо игриви коне е обсадило всичко наоколо.
Юли е, лавандула е покрила като лилав килим многобройни кътчета в Тракийската низина.
Време е за море, време е за някой гръцки остров, защо не Лефкада.
Където морето е по-синьо от небето.
А небето се слива с морето.
И така неизбежно пристигаме в Родопите, където млечният път свети като фар в мрака на необятната вселена.
А край Карадере луната изгрява за да прогони мрака.
Неусетно пристига есента, покрила с пъстра премяна котловини и хребети на Кормисош.
Неустоими и пленителни са Родопите в средата на есента, дори и сред най-забутаните дерета.
Какво остава пък, ако случайно се окажем по изгрев някъде над виещите се из пъстрите гори меандри на Арда.
Понякога ми се струва, че това е всичко, което ми се иска да съм видял, но както се казва, с гледането идва апетита за още и още.
Годишни отчети
Kyle Edmund loses to Grigor Dimitrov in Brisbane International
Rush to fix 'serious' computer chip flaws
Официално е - TURISAS ще гостуват в София на 6 май
Преди няколко дни първи ви съобщихме за евентуално първо гостуване на финските езически "воини" TURISAS в София. Днес идва и ...
This Is Why Some People Get Headaches from Red Wine — Food News
The world can be divided into two types of people: those who can guzzle down a bottle of red wine without any health repercussions and those who get a painful headache from just a single glass. The mystery surrounding the latter — why do some people get migraines from red wine? — involves understanding the effects of key substances found in a bottle of red.
Only a True Star Wars Fan Can Appreciate This Gingerbread Masterpiece — Food News
It's that time of year when gingerbread houses seem to be coming out of our ears. No, not literally, that sounds horribly painful, but you get the idea. If you have children you've probably been asked to assemble one. In the beginning this sounds fun, but 200 pounds of candy and icing in your carpet later all sanity has been lost.
Your interest might be regained in the craft of gingerbread, however, when you lay eyes on this festive Imperial Star Destroyer from Star Wars. It's huge!
Albert Guinon
Islamic instant divorce 'not legal' under EU law, says ECJ
My Grandfather’s Travel Logs and Other Repetitive Tasks
My grandfather, James, was a meticulous recordkeeper. He kept handwritten journals detailing everything from his doctor visits to the daily fluctuations of stocks he owned. I only discovered this part of his life seven years after his death, when my family’s basement flooded on Christmas Eve in 2011 and we found his journals while cleaning up the damage. His travel records impressed me the most. He documented every trip he ever took, including dates, countries and cities visited, methods of travel, and people he traveled with. In total, he left the United States 99 times, visited 80 countries, and spent 1,223 days at sea on 48 ships.
I was only twenty-four when he died, so I hadn’t yet realized that I’d inherited many of his record-keeping, journaling, and collecting habits. And I had never had the chance to ask him many questions about his travels (like why he went to Venezuela twelve times or what he was doing in Syria and Beirut in the 1950s). So, in an effort to discover more about him, I decided to make an infographic of his travel logs.
Today, we take for granted that we can check stocks on our phones or go online and view records from doctor visits. The kinds of repetitive tasks my grandfather did might seem excessive, especially to young web developers and designers who’ve never had to do them. But my grandfather had no recording method besides pencil and paper for most of his life, so this was a normal and especially vital part of his daily routine.
Whether you’re processing Sass, minifying, or using Autoprefixer, you’re using tools to perform mundane and repetitive tasks that people previously had to do by hand, albeit in a different medium.
But what do you do when you’re faced with a problem that can’t be solved with a plugin, like my grandfather’s travel data? If you’re a designer, what’s the best way to structure unconventional data so you can just focus on designing?
My idea for the travel web app was to graph each country based on the number of my grandfather’s visits. As the country he visited the most (twenty-two times), Bermuda would have a graph bar stretching 100 percent across the screen, while a country he visited eleven times (St. Thomas, for example) would stretch roughly 50 percent across, the proportions adjusted slightly to fit the name and visits. I also wanted each graph bar to be the country’s main flag color.
The big issue to start was that some of the data was on paper and some was already transcribed into a text file. I could have written the HTML and CSS by hand, but I wanted to have the option to display the data in different ways. I needed a JSON file.
I tediously transcribed the remaining travel data into a tab-separated text file for the countries. I added the name, number of visits, and flag color:
...
honduras 1 #0051ba
syria 1 #E20000
venezuela 16 #fcd116
enewetak 2 rgb(0,56,147)
...
For the ships, I added the date and name:
...
1941 SS Granada
1944 USS Alimosa
1945 USS Alcoa Patriot
...
Manually creating a JSON file would have taken forever, so I used JavaScript to iterate through the text files and create two separate JSON files—one for countries and one for ships—which I would later merge.
First, I used Node readFileSync() and trim() to remove any quotation marks at the end of the file so as to avoid an empty object in the results:
const fs = require('fs');
let countriesData = fs.readFileSync('countries.txt', 'utf8')
.trim();
This returned the contents of the countries.txt file and stored it in a variable called countriesData. At that point, I outputted the variable to the console, which showed that the data was lumped together into one giant string with a bunch of tabs (\t) and newlines (\n):
"angaur\t2\t#56a83c\nantigua\t5\t#ce1126\nargentina\t2\trgb(117,170,219)\naruba\t10\trgb(0,114,198)\nbahamas\t3\trgb(0,173,198)\nbarbados\t6\trgb(255,198,30)\nbermuda\t22\trgb(0,40,104)\nbonaire\t1\trgb(37,40,135)\nguyana\t2\trgb(0,158,73)\nhonduras\t1\trgb(0,81,186)\nvirgin Islands\t2\trgb(0,40,104)\nbrazil\t3\trgb(30,181,58)\nburma\t1\trgb(254,203,0)\ncanary Islands\t1\trgb(7,104,169)\ncanal Zone\t7\trgb(11,14,98)\ncarriacou\t1\trgb(239,42,12)\n ..."
Next, I split the string at the line breaks (\n):
const fs = require('fs');
let countriesData = fs.readFileSync('countries.txt', 'utf8')
.trim()
.split('\n');
After split(), in the console, the countries’ data lived in an array:
[
"angaur\t2\t#56a83c",
"antigua\t5\t#ce1126",
"argentina\t2\trgb(117,170,219)",
"aruba\t10\trgb(0,114,198)",
"bahamas\t3\trgb(0,173,198)",
"barbados\t6\trgb(255,198,30)",
"bermuda\t22\trgb(0,40,104)",
...
]
I wanted to split each item of country data at the tabs, separating the name, number of visits, and color. To do this, I used map(), which iterates and runs a function on each item, returning something new. In this case, it split the string at each tab it found and returned a new array:
const fs = require('fs');
let countriesData = fs.readFileSync('countries.txt', 'utf8')
.trim()
.split('\n')
.map(item => item.split('\t'));
After I used map(), countriesData was an array of arrays with each country and its data split into separate items:
[
[
"angaur",
"2",
"#56a83c"
],
[
"antigua",
"5",
"#ce1126"
],
[
"argentina",
"2",
"rgb(117,170,219)"
],
[
"aruba",
"10",
"rgb(0,114,198)"
],
[
"bahamas",
"3",
"rgb(0,173,198)"
],
...
]
To create the final output for each country, I used reduce(), which uses an accumulator and a function to create something new, whether that’s an object, a value, or an array. Accumulator is a fancy way of referring to the end product, which in our case is an object ({}).
const fs = require('fs');
let countriesData = fs.readFileSync('countries.txt', 'utf8')
.trim()
.split('\n')
.map(item => item.split('\t'))
.reduce((countries, item) => {
return countries;
}, {countries: []});
I knew I wanted {countries: []} to contain the data. So instead of creating it on the first pass and testing whether it existed on each iteration, I added {countries: []} to the resulting object. That way, it existed before I started iterating.
This process returned an empty object because I hadn’t told reduce() what to do with each array of data.
To fix this, I used reduce() to push and add a new object for each country with the name (item[0]), visits (item[1]), and color (item[2]) into the end result object. Finally, I used a capitalization function on each name value to ensure formatting would be consistent.
const fs = require('fs');
const cap = (s) => {
return s.charAt(0).toUpperCase() + s.slice(1);
};
let countriesData = fs.readFileSync('countries.txt', 'utf8')
.trim()
.split('\n')
.map(item => item.split('\t'))
.reduce((countries, item) => {
countries["countries"].push({
name: cap(item[0]),
visits: item[1],
color: item[2]
});
return countries;
}, {countries: []});
I used the same method for the ships.txt file and merged the two using Object.assign, a method that takes two objects and creates a new one.
let result = Object.assign({}, countriesData, shipsData);
I could have created a function that took a text file and an object, or created a form-to-JSON tool, but these seemed like overkill for this project, and I had already transcribed some of the data into separate files before even conceiving of the infographic idea. The final JSON result can be found on CodePen.
I used the JSON data to create the infographic bars, defining the layout for each one with CSS Grid and dynamic styles for width and color. Check out the final product at ninetyninetimes.com. I think my grandfather would have enjoyed seeing his handwritten logs transformed into a visual format that showcases the breadth of his travels.
He passed away in 2005, but I remember showing him my Blackberry and explaining the internet to him, showing him how he could look at pictures from around the world and read articles. He took a sip of his martini and sort of waved his hand at the screen. I think he preferred handwritten notes and life outside of the internet, something many of us can appreciate. After sifting through all his travel logs, I more clearly understood the importance he placed on having different experiences, meeting new people, and fearlessly exploring the world. To him, his travels were more than just dates on a page. Now they’re more than that for me, too.
The author wishes to thank Mattias Petter Johansson, whose video series, “Fun Fun Function,” inspired some of the thinking in this article.
Older Adults' Forgetfulness Tied To Faulty Brain Rhythms In Sleep, Study Says
Read more of this story at Slashdot.
Chemistry Advent 2017 – The halfway point!
Satoru Anzaki: Dying Japanese man throws 'end of life' party
Reading Information Aloud To Yourself Improves Memory
Read more of this story at Slashdot.
Almost All Bronze Age Artifacts Were Made From Meteorite Iron
Read more of this story at Slashdot.
'Samurai sword' attack leaves three dead at Tokyo shrine
Michael Weikath (HELLOWEEN): С Kiske сме отново много добри приятели
Няма смисъл да броим концертите на HELLOWEEN в България. Навремето се чудехме дали изобщо ще ги видим. Днес със ...
Little Foot skeleton unveiled in South Africa
Hawaii avocado: Huge 'head-sized' fruit in world record bid
Lakes, coffee and Santa: Finland turns 100
'Watershed' Medical Trial Proves Type 2 Diabetes Can Be Reversed
Read more of this story at Slashdot.
Nordea Bank Chief: Robots Can Help Us Fire Legions of My Fellow Bankers

If you’re like most people, you do not like Wall Street or the financial industry, which commanded a large amount of confidence among just 19 percent of Americans in a poll from last year—perhaps because they crashed the national economy nearly a decade ago and the vast majority of the recovery went to the already rich
How credit cards changed the way we spend
Was Your Name Stolen To Support Killing Net Neutrality?
Read more of this story at Slashdot.
Feast Your Eyes on Some of the Year’s Best Wildlife Photography

The British Ecological Society has announced the winners of its annual photo competition, and it features fantastic photos of fearsome predators pouncing on prey, a freakishly rare ocelot, and a crafty chameleon doing what a chameleon does best.
