TEIA.RU
Зеленый хостинг ТЭИА

Uptolike

LTCBTC - Bitfinex

Криптоновости

World News

Adding values to referential entity using REST API POST

feedspot - Fri, 08/31/2018 - 10:58

I have 2 custom content type. One is movies and the other is actors. I am using REST API POST to add values into movies. Actor is a referential entity within movies. How do I add values into actors which are corresponding to a particular movie when I use POST?

An option that I am currently trying out is add multiple values into actors first and that POST will return a node id, use that node id value along POST values to movies. Is this the right approach?

Categories: World News

How do I dump variables to the screen when running PHPUnit tests?

feedspot - Fri, 08/31/2018 - 10:58

I'm trying to put together some PHPUnit tests in Drupal 8. I'm running the tests from the command line, using /vendor/bin/phpunit, but I'm having troubles figuring out how to dump a variable to the screen for debugging purposes.

For that matter, I'm using this:

$this->assertEquals(2, $this->currentUser->id(), 'ID is correct');

And when it passes, the message 'ID is correct' is not shown in the console. Does anyone know how to make the error messages properly show?

Categories: World News

How do I turn a select list into a radio button?

feedspot - Fri, 08/31/2018 - 10:58

I have a list text field that I want to display as a series of radio buttons instead of a select (dropdown) list. In Drupal 7, I could change this on Manage fields. How can I do that in Drupal 8?

Categories: World News

Cheap ticket to DrupalEurope | Offer until 3rd Sept

feedspot - Fri, 08/31/2018 - 10:48

I have a ticket that i want to sell/transfer, let me know if someone is interested.

Quantity : 1
Price : €480
Type: Regular
T-Shirt: Included
Offer validity: Until Monday 3rd sept

Visit : Tickets | DrupalEU to buy directly from DrupalEurope.org

submitted by /u/DrupalComPak
[visit reddit] [comments]
Categories: World News

Can You Number lists?

feedspot - Fri, 08/31/2018 - 10:46

Beginner here, I was wondering if there was a way you could label ordered or unordered lists the same way you could label <li> as <li1>. is <ol1> and <ul1> possible?

submitted by /u/robbophile
[visit reddit] [comments]
Categories: World News

Cute Miniature Cat-Friendly Tents Let Your Feline Go Camping, Even While Indoors

feedspot - Fri, 08/31/2018 - 09:52


If you and your feline love camping, Australian brand Cat Camp has just the thing that will let your cat enjoy this outdoor activity…. indoors.

Its specialized range of miniature camping tents for felines has been made to withstand your cat’s scratches, tugs, and pulls. It pitches similar to a regular tent and makes for a much more unique cat bed.

The ‘Cat Camp’ is now available to order online in colors red, blue, and orange.







It's just like a camp site. A kitty camper team. www.catcamp.co #kitten #campingcats #aww #instacat #catstagram #catcampco

A post shared by Cat Camp - Tiny Tents for Cats (@catcampco) on Nov 18, 2015 at 12:44am PST



Comfy kitty in her cat camp hideaway. http://www.catcamp.co Order yours today. #comfycat #comfycats #catcampco #catcamp #catstagram #catsofinstagram #cozycat #cats

A post shared by Cat Camp - Tiny Tents for Cats (@catcampco) on Feb 4, 2016 at 10:43pm PST



Such a great photo of Gus. One of the best. Www.catcamp.co #caycee #cats #catcampco #catcamp #catsofinstagram #kitten #cutecat #lookatmykitty #cosykitty #comfycats

A post shared by Cat Camp - Tiny Tents for Cats (@catcampco) on Feb 6, 2016 at 5:22am PST



Majestic kitty in their tent. #cats #catcamp #catcampco #catstagram #cattent #campingcats www.catcamp.co

A post shared by Cat Camp - Tiny Tents for Cats (@catcampco) on Feb 23, 2016 at 5:20pm PST


[via Cat Camp]
Categories: World News

Designer’s Amusing Sleeping Bag Lets You Suit Up… Even To Bed

feedspot - Fri, 08/31/2018 - 09:52


American fashion designer Thom Browne has made one of his label’s runway exclusives available for purchase.

The ‘Rompe L’oeil Classic Suit Sleeping Bag With Cot In Solid Wool Flannel’ from Thom Browne’s FW2018 collection has been amusingly designed with its ‘Tromp L’oeil Classic Medium Gray Suit’, paired with the ‘Tromp L’oiel Classing Wingtip Brogue’.

This collapsible, zip closure sleeping bag comes with tricolor stripe tech lining, complete with military-style cot and collapsible legs, as well as medium gray canvas fashioned with red, white, and blue center stripes.

For those who wish to camp out in style, this unique lifestyle accessory can be yours for US$5,000, purchasable online.











[via Thom Browne]
Categories: World News

Serena Williams Twirls To Her Second 2018 US Open Win In White Tutu Dress

feedspot - Fri, 08/31/2018 - 09:52


Serena Williams is doubling down on her fashionable outfits at the ongoing US Open.

On 30 August, Williams stepped onto the court in a white Off-White x Nike outfit to defeat German tennis player Carina Witthöft in the second round of the tournament. She completed her playful tutu outfit with a pair of Off-White sneakers.

Similar to the black ballerina-inspired tutu that she had worn during her victorious debut match at the 2018 US Open, this white version features a one-sleeve silhouette and a tutu skirt. Williams twirled in front of the crowd like a ballerina after winning the match. She took to Instagram to post an image of herself with the caption, “Twirling into Friday!!”

Her fans had but positive comments for her, with one saying, “[T]hey’re mad cause you can wear anything and win!!! Keep twirling (and winning), Momma!” while another added, “That twirl is everything! You’re so awesome!!!”

Twirling into Friday!! ✨ _ @usopen #usopen

A post shared by Serena Williams (@serenawilliams) on Aug 30, 2018 at 6:12am PDT



Skyline

How To Tell If A Design Studio Is Truly As Great As Advertised

feedspot - Fri, 08/31/2018 - 08:46

Images via Bloomicon / Shutterstock.com, Google Git and Wikimedia Commons

If you’ve ever landed on an agency or startup’s website, you’re likely to have come across what is dubbed as a ‘logo soup’—a chain of logos representing the clients that the company has worked with.

Rachel Berger, chairperson of Graphic Design at the California College of the Arts, told Quartz that designers are most likely to display their clientele this way. Not only are they aware of the power of logo design, but they leverage ‘logo soups’ as a “shortcut” to establish themselves as successful professionals without having to explain their work.

These accolades should be a good gauge of a firm’s experience, right? Apparently not. As it turns out, you can’t really judge a studio’s work quality by how potent its ‘logo soup’ is.

At the Adobe 99U Conference, Emily Heyward, co-founder of renowned branding company Red Antler, described that she would “dig in to exactly what [designers] did” if she were a client.

A showcase of logos might imply that the firm is the creator of a prominent client’s logo—but for all you know, it could have just designed a landing page that one time.

“It’s very easy for people to throw up logos and claim they worked with them extensively…” Heyward added. “The Warby Parker logo is on every website in New York City.”

Another sign that calls for probing is if a firm displays a logo from a big name like Google. According to Berger, “the bigger the brand, the more skeptical” you should be. Additionally, the more brandings found in a company’s ‘logo soup’, “the less work I’ll think you’ve done.”

The one takeaway? It’s best to seek out the actual designers behind these logos, but if that’s not possible, it won’t hurt to dig deeper and inquire more about an agency’s work.



[via Quartz, cover image via Bloomicon / Shutterstock.com]
Categories: World News

Balmain Casts CGI Models For Its Latest Campaign As It Expands Its Virtual Army

feedspot - Fri, 08/31/2018 - 08:46


Could CGI models become increasingly common in fashion’s future?

So far you’ve seen the 19-year-old social media influencer Lil Miquela, who boasts north of 1.4 million Instagram followers and models in labels such as Chanel and Vetements, only she’s a virtual avatar. This however hasn’t stopped her from making her foray into music through collaboration with American record producer Baauer.

Then there’s ‘Shudu’, the “world’s first” digital supermodel who looks extraordinarily realistic.

If you thought digital models wouldn’t venture very far into the fashion realm, Balmain has a surprise for you. It’s casted three CGI models for its pre-fall 2018 digital campaign, where the creator of ‘Shudu’ has specially developed two of these.

Balmain’s creative director Olivier Rousteing explained that the brand had contacted photographer Cameron-James Wilson—creator of ‘Shudu’—asking him to help the brand “construct a new, alternative and virtual Balmain Army.”

Thus, French ‘Margot’ and Chinese ‘Zhi’ CGI models were born. Together with ‘Shudu’, the duo stars in Balmain’s digital campaign for the collection, where the three models promote digital renditions of the clothes created by virtual fashion agency CLO.

“There’s one quality that immediately stands out when you look at the growing Balmain Army: an unfettered celebration of inclusion,” wrote the brand inside a press release. “Anyone and everyone is always welcome to join its growing ranks, they need only share our bold spirit of adventure.”

BALMAIN’S NEW VIRTUAL ARMY Introducing the first three members of the new virtual #BALMAINARMY: Margot, Shudu and Zhi. Discover more through the link in bio. In collaboration with #CameronJamesWilson @shudu.gram 3D garments by @itsclo3d #BALMAINPF18 #BALMAINBBOX

A post shared by BALMAIN (@balmain) on Aug 30, 2018 at 5:10am PDT



MARGOT + ZHI The new virtual troops reflect the same beautiful diverse mix, strong confidence and eagerness to explore new worlds. Anyone and everyone is always welcome to join the #BALMAINARMY. Discover more through the link in bio. In collaboration with #CameronJamesWilson @shudu.gram 3D garments by @itsclo3d #BALMAINPF18 #BALMAINBBOX

A post shared by BALMAIN (@balmain) on Aug 30, 2018 at 5:12am PDT



SHUDU Wearing designs from the #BALMAINPF18 collection, the new virtual #BALMAINARMY members are set in poses recalling iconic music images. Discover more through the link in bio. In collaboration with #CameronJamesWilson @shudu.gram 3D garments by @itsclo3d #BALMAINPF18 #BALMAINBBOX

A post shared by BALMAIN (@balmain) on Aug 30, 2018 at 8:19am PDT



MARGOT wearing designs from the #BALMAINPF18 collection. Discover more on https://t.co/uZ8nj05hc5 #BALMAINPF18 #BALMAINARMY pic.twitter.com/zQECnJquUr

— Balmain (@Balmain) August 30, 2018


ZHI wearing #BALMAINPF18. Discover more about the new virtual army on https://t.co/uZ8nj05hc5 #BALMAINARMY pic.twitter.com/k2uHKAG2yJ

— Balmain (@Balmain) August 30, 2018




[via ELLE and Dazed Digital, main image via Balmain]
Categories: World News

Flash adé - 3d-berlin schließt Technologiewechsel zu HTML5 ab - invidis - Digital Signage Portal

feedspot - Fri, 08/31/2018 - 07:50
Während die Desktop- und mobilen Anwendungen der Berliner bereits seit 2011 ausschließlich HTML5 nutzen, kam auf Kiosk-Systemen bisher Adobe Flash zum Einsatz. Jetzt vollendet 3d-berlin den Technologiewechsel und wird auch Kiosk-Anwendungen ...

Categories: World News

Lego Builds A Drivable, Life-Sized Bugatti Supercar Using Over A Million Pieces

feedspot - Fri, 08/31/2018 - 07:21
[Click here to view the video in this article]



Lego seems to have outdone itself in this feat of engineering and design by recreating the Bugatti Chiron supercar as a life-sized, drivable model using over a million ‘Technic’ pieces.

Technic’ is Lego’s system of beams, axles, gear wheels and connectors that enable more complex Lego builds.

This life-sized model is one half passion project by the brand’s creative team, and one half promotion for display at the upcoming Italian Grand Prix on 30 August.

Brainstorming for the project took flight in June 2017, with construction initiating in March 2018. In total, the team spent “over 13,000 work hours of development and construction.”

The automobile doesn’t solely comprise Lego though. Certain parts including its steel frame, battery pair, 3D-printed gears, and real Bugatti wheels make up this 1,500kg beast.

While it doesn’t keep pace with the actual Bugatti Chiron that can clock up to 250mph, Lego managed to hit 13mph inside the video featured directly below, and notes that in theory, it can hit 19mph.

For those keen on their own Bugatti Chiron build, Lego is selling a 3,599-piece kit that will let you develop a 1:8 scale replica model.



We’ve built the impossible: a full-sized LEGO Technic @Bugatti Chiron …and it drives! #BuildforReal pic.twitter.com/8YPxk7miGZ

— LEGO (@LEGO_Group) August 30, 2018




















[via TechCrunch, video via LEGO, images via LEGO Newsroom]
Categories: World News

Kanye West’s Epic Response To His Too-Tiny Yeezy Slides Cracks Up The Internet

feedspot - Fri, 08/31/2018 - 07:21

Image via s_bukley / Shutterstock.com

It seems the internet can’t get enough of Kanye West’s too-tiny Yeezy slides, which the entrepreneur donned at rapper 2 Chainz’s wedding.

Since then, the confusing look has inspired a parody t-shirt that’s received West’s stamp of approval and now, an epic response from the man himself.

Yesterday, West took to Twitter with dramatically over-sized Yeezy slides in two images, where the first comes with the hilarious caption, “[A]re the slides big enough[?]”

The second photo, which sees West taking a full-length mirror selfie, clearly fails to calm the highly-amused Twitter crowd. The follow-up visual, which has since garnered more than 132,000 likes, shows just how absurd West’s new Yeezy slides truly are.

Have a good laugh at his comical responses below.

Meanwhile, the internet has come up with some humorous references after seeing West’s redesigned claw-like sole for an upcoming Yeezy model.

are the slides big enough

Categories: World News

Drupal Behat - paragraph bundle entity reference

feedspot - Fri, 08/31/2018 - 07:00

I am learning Behat with Drupal 8 and I'm stuck on trying to test a paragraph bundle (field_related_content) which has a title and description field, the title is an entity reference field to content type marine_notices. Currently I have the below, but the results are 'No link to Post Title', am I missing something?

@api Scenario: Reference site pages from within a "marine_notices" node Given "marine_notices" content: | title | | Post title | When I am viewing a "marine_notices" content: | title | Post title | | field_related_content | Post title - | Then I should see the link "Post title"

Categories: World News

Adding values to referential entity using REST API POST in Drupal 8

feedspot - Fri, 08/31/2018 - 07:00

I have 2 custom content type. One is movies and the other is actors. I am using REST API POST to add values into movies. Actor is a referential entity within movies. How do I add values into actors which are corresponding to a particular movie when I use POST?

An option that I am currently trying out is add multiple values into actors first and that POST will return a node id, use that node id value along POST values to movies. Is this the right approach?

Any input will be highly appreciated.

Thank you

Categories: World News

How to redirect users after password reset from first time user

feedspot - Fri, 08/31/2018 - 07:00

I am using hook function in my module to redirect users accordingly as below.

function mymodule_user_login($account) { if (!$account->getLastAccessedTime()) { // The user has never logged in before. return; } $response = new RedirectResponse('MyModuleFormUrl'); $response->send(); }

First time users coming from their corresponding emails are getting redirected to change password page able to set new password and existing users are redirected to form page after successful login. But the problem is how to redirect users after successfully setting their password to my module form. From the code above I thought it should happen automatically but it isn't. Can anyone suggest some ideas.

Categories: World News

Installed Ubuntu 14.04 on my Chromebook Pro- EVERYTHING IS TOO SMALL TO READ!

feedspot - Fri, 08/31/2018 - 06:53

I just installed Linux on my Chromebook but the font is far too small. I can't figure out how to re-size! Can someone help?

submitted by /u/Whatsthehoopla
[visit reddit] [comments]
Categories: World News

What are events in drupal 7?

feedspot - Fri, 08/31/2018 - 06:50

in new to coding and dont know what an event is

submitted by /u/mmmchickon
[visit reddit] [comments]
Categories: World News

Trying to recreate site from backed up files

feedspot - Fri, 08/31/2018 - 06:50

Hello,

I have a full backup of the mysql data as well as the file structure/directories for a drupal 7.xx site we have.

Our current host shut the VPS down without warning and is having very much difficulty restoring it to an operating level.

I am attempting to spin up the site on another web host and have gotten somewhat close.

I moved all the drupal files and restored the mysql data. I've disabled the clean_urls, for now.

The only issue I'm currently seeing is, a lot of my custom views are not rendering on the site. When I attempt to view them through the admin, i get the following errors:

  • Display "Master" uses fields but there are none defined for it or all are excluded.
  • Display "Page" uses fields but there are none defined for it or all are excluded.
  • Display "Block" uses fields but there are none defined for it or all are excluded.

How do I fix the views so that the proper fields are associated with them? I created these views initially, but it was years ago and I'd rather not recreate them if I can figure out how to "restore" them.

Any pointers? As far as I can tell, all the fields and views data was properly restored from the mysql backup.

submitted by /u/undisclosed-identity
[visit reddit] [comments]
Categories: World News

Просто хороший хостинг