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

Uptolike

LTCBTC - Bitfinex

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

feedspot

Syndicate content My RSS Feed
My RSS Feed
Updated: 1 week 1 day ago

What designers can learn from Candy Crush’s brilliant UX

Sat, 03/28/2020 - 14:27

One of the best ways to improve as a designer is to study the greats. There’s no doubt that Candy Crush is one of the best selling mobile games of all time, but how does its UX hold up? Consistency Consistency is one of the best ways to get your users comfortable with your product. If they know what to expect from screen to screen it will cut down on confusion. Candy Crush is consistent in its style. Sticking with a bright, playful tone that can be seen across the fonts, sound effects, animations, etc. Unfortunately, this playful style can…

This story continues at The Next Web
Categories: World News

How to copy some content from D8 site to another D8 site?

Sat, 03/28/2020 - 14:25

I have two sites i'm working on (one in D8 8.4.5, the other in 8.5.0).
I'd like to "copy" some elements from one to the other.
For example, some nodes or some menus (with their links, of course) or some users.

How do I do that?

With configuration sync and database tables export/import?

Categories: World News

Good IDE for multiple coding languages in one document (Better than Dreamweaver CS6)

Sat, 03/28/2020 - 13:11

Believe it or not I'm still using Dreamweaver CS6 (code view), mainly because it's what I'm used to.

I've tried to switch multiple times over the years, but I just keep coming back to it. I mostly code in HTML/CSS/PHP/JavaScript, sometimes all in the same document. The only thing I like about Dreamweaver is that it will automatically check for errors in all 4 at the same time, and show you where the error is, all in the same document. It also has prefill for all the built in functions for each language to show you how many parameters the function has, and what each is supposed to be (to keep you from having to Google it).

Now with that said, it's a decade old and there has to be something that does all of the above but isn't ancient. Any suggestions?

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

Should the primary color and logo color be the same?

Sat, 03/28/2020 - 13:11
  • Newbie to design
  • My logo color is #0077F2
  • Should the primary color be the same?
  • I am using BULMA and found coolors.co
  • If the primary and logo colors are not the same, should I use coolors to pick the primary color
  • Should I use the logo color everywhere on the website like buttons etc or only for the logo
  • Could appreciate some clarity
submitted by /u/mypirateapp
[visit reddit] [comments]
Categories: World News

PNG Loads Better on 2nd time On Site / When Reloaded

Sat, 03/28/2020 - 11:05

Hi, sorry if this sounds like a dumb question but I have no prior web design experience and was hoping you guys might be able to help!

I am opening up a store and I am experimenting with different pictures (JPG, PNG, PNG Large-scale interlacing, PNG smallest size) to upload on my site to make it look better. I want it so that when someone zooms in on the picture/file, it loads clear & not blurry.

Website: soapme.co

I have 2 PNG files (one is the logo, and one is the footer picture of the green circle that says Judge.me). Both png files loads better the second time on the page / when you refresh the page.

First time on site:

https://preview.redd.it/8jrxc4a4zcp41.png?width=1440&format=png&auto=webp&s=ed4824a12a5b510518689e8cc31cf605a6ac2d22

Second time on site:

See how clearer the png logo is on second time load

Why is this happening, and how can I fix it so that the clearer PNG loads on the first time on website?

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

FXDLOT Profile Page Concept

Sat, 03/28/2020 - 11:05
Categories: World News

Trouble with responsive iframe

Sat, 03/28/2020 - 11:05

Hey all, I'm trying to insert a responsive iframe into a page I'm building.

I followed the tutorial here and the video itself IS responsive, but the "padding-bottom: 56.25%" part that is adjusting the aspect ratio is affecting other content on my page (see what I mean here)

I've tried googling my issue but none of the resolutions seem to be working for me. Does anyone know what might be happening or how I can fix this?

Thanks in advance! I'm going crazy.

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

How do I automatically put width and height in the img field in CKEditor?

Mon, 03/16/2020 - 14:21

How do I automatically put width and height in the img field in CKEditor?

I'm making my site AMP capable. I'm struggling in converting <img> to <amp-img>.

I already managed to convert <img> to <amp-img> by making a custom twig filter but I have a problem filling out width and height attribute of the image, because in the Drupal CMS, when you upload an image in the CKEditor field, it doesn't populate the width and height attribute.

In the Allowed HTML tags, I already added this:

<img src width height alt data-entity-type data-entity-uuid data-align data-caption>

How can I automatically add width and height attribute to the image when I upload image to the CKEditor?

Categories: World News

can't upload an image using the Back office [closed]

Mon, 03/16/2020 - 14:21

in the node editing page whenever I try to upload an image I get 500 status code with an error in the AJAX request saying (The file "/tmp/php0GYkhj" does not exist ):

Categories: World News

Drupal commerce 2 multiple variations not behaving as expected

Mon, 03/16/2020 - 14:21

I am using the Drupal Commerce 2.x module for my website. I have created a product and configured multiple variations of it. Everything in the configuration looks good and well for me.

The Product variation configuration is as follows:

The issue I am facing is on the Product Detail page, when I am changing the variation of product it should replicate in all the attributes.

So in the below image as you can see the variations are getting rendered properly with the "Add to Cart" button.

So on changing the attribute "Color" of the product should show the updated variation attributes for "Sizes" as well, which is not happening in my case.

FYI: I am using the base template provided by Drupal Commerce.

Thanks

Categories: World News

How do I authenticate Angular 8?

Mon, 03/16/2020 - 14:21

I have a site with Drupal 7 backend and Angular 8 front end.

I use services on Drupal 7, as we I try to access to these services with postman that is possible.

First I get a token and then by that token I get a sessionId and use it on the next request to get user info as a test.

But when I try the same why on Angular first I got the error that not allowed to set Cookie on less secure way.

So what is the steps to authenticate the remote site with Drupal 7?

POST man requests

get token

var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); var requestOptions = { method: 'POST', headers: myHeaders, redirect: 'follow' }; fetch("tma:81/api/search/news_item/user/token.json", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));

Get sessid

var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); myHeaders.append("X-CSRF-Token", "w9Nqqjb0FItm9C1TKvjpFSwDXsFpdLhfq_ZeGMdBmZg"); var formdata = new FormData(); formdata.append("username", "siteadmin"); formdata.append("password", "admin"); var requestOptions = { method: 'POST', headers: myHeaders, body: formdata, redirect: 'follow' }; fetch("tma:81/api/search/news_item/user/login.json", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));

Get user info

var myHeaders = new Headers(); myHeaders.append("Content-Type", "application/json"); myHeaders.append("X-CSRF-Token", "w9Nqqjb0FItm9C1TKvjpFSwDXsFpdLhfq_ZeGMdBmZg"); myHeaders.append("Cookie", "6E0Vc9VEPHLMUQ4tBQagxhHSJHJfSpchMLli8YVKRoE"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; fetch("tma:81/api/search/news_item/user/1", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));

In same step I try with Angular

apiUrl = "http://tma:81/api/search/news_item/"; token = null; cookie = this.cookieService.get('cookie'); getToken() { this.token = this.httpClient.post(`${this.apiUrl}user/token.json`, { headers: new HttpHeaders({ "Content-Type": "application/json", }) }); return this.token; } auth(formdata) { const body = JSON.stringify(formdata); const resp = this.httpClient.post(`${this.apiUrl}user/login.json`, body,{ headers: new HttpHeaders({ "Content-Type": "application/json", "X-CSRF-Token": this.token, }) }); return resp; } loadNews() { // const body = JSON.stringify(filterData); const resp = this.httpClient.get(`${this.apiUrl}user/1`, { headers: new HttpHeaders({ "Content-Type": "application/json", "X-CSRF-Token": this.token, "Cookie": this.cookieService.get('cookie'), }) }); console.log(resp); return resp; }

the angular subscriber for getting token and sessid

doAuth() { this.appService.getToken().subscribe( result => { var formdata = { "username" : "siteadmin", "password": "admin" } this.appService.auth(formdata).subscribe( result => { var date = new Date(); // Set expiration time for the cookie. date.setTime(date.getTime() + 600 * 1000); this.cookieService.set("cookie", result["sessid"], date); }, error => { console.log(error); }, ) }, error => { console.log(error); } ); }

and finally the subscriber to fetch user info

this.appService.loadNews().subscribe( result => { console.log(result); }, error => { console.log(error); }, );
Categories: World News

How to run a cron queue programmatically?

Mon, 03/16/2020 - 14:21

I have created a cron queue like given below.

function mymodule_cron_queue_info() { $queues['aggregator_feeds'] = array( 'worker callback' => 'aggregator_refresh', 'time' => 60, ); return $queues; }

My cron runs when calling drush cron. I need to run the queue 'aggregator_feeds' individually without invoking any other cron queues. Drupal admin panel -> config -> cron : runs all queues as per schedule. drush cron command too runs all queue. How do I run a single queue programmatically?

Also I need to know how to run all the queues programmatically?

Categories: World News

Stay Home

Mon, 03/16/2020 - 14:16

Starting tomorrow all schools are closed in NYC. For weeks, if not months.

Wow! I can’t help but feel as if the earth is resetting itself.

So many are suffering, but I also see so much humanity in action. People opening their hearts and helping each other, finding moments of joy.

Humans are resilient. We will be ok. All will be ok. But for now, let’s stay home.

Categories: World News

Mummenschanz Exotic Mime

Mon, 03/16/2020 - 14:16

I was reminded of this gem today. Mummenschanz is pure delight.

Categories: World News

When Overwhelmed

Mon, 03/16/2020 - 14:16

“When we are overwhelmed it is a moment when we need our own love, kindness and compassion the most.”
— Matt Kahn

Categories: World News

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