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

Uptolike

LTCBTC - Bitfinex

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

feedspot

Syndicate content My RSS Feed
My RSS Feed
Updated: 18 hours 39 min ago

Here’s The Final Superhero That Marvel’s Stan Lee Unveiled Before His Passing

Wed, 11/14/2018 - 12:20

Image via Weibo / Stan Lee Studio

The former president and face of Marvel Comics, Stan Lee, passed on at age 95 on Monday. The man had altered the course of pop culture forever, leaving behind globally recognized icons like Spider-Man, The Incredible Hulk, and Black Panther.

In their own ways, the world honored Lee’s legacy by presenting artworks and revealing quirks about him that had not been publicly known.

Even in his final days, Lee was spurred to create. Just a month before, a new superhero created by the comic book writer was introduced at the first Stan Lee Comic Universe event in Shanghai.

The character, ‘JEWEL’, would be the last superhero envisioned by Lee to be unveiled prior to his passing.

The heroine was inspired by acclaimed Chinese pop singer G.E.M., a Chinese pop singer who is affectionately known as “China’s Taylor Swift,” according to South China Morning Post.

By day, ‘JEWEL’ is a world-touring recording artist. By night, she’s a masked superhero. Per Billboard, the character develops superpowers following an incident that involved her grandmother and a charm bracelet. What her superpowers might be have yet to be announced.

Lee’s muse for ‘JEWEL’, singer-songwriter Gloria Tang Tsz-kei—who goes by the stage name G.E.M.—has a massive following of more than 28 million users on Weibo.

“Never had I thought I would become a superhero one day!” G.E.M. exclaimed on Instagram last month. “Super excited!”

According to Stan Lee Studio’s Chinese social media page, Lee had always wanted to create a Chinese superhero, but his encounter with the pop star in Hong Kong in December 2017 further motivated him to put pen on paper.

Following his death, G.E.M. took to Instagram to bid farewell to Lee, describing him as “one of the sweetest and humblest” people she had met.

“You have been a big, big inspiration to the world… Thanks for empowering and encouraging so many people and [helping] them believe in themselves. Thanks for everything that you have done! We’ll miss you, Stan Lee!”


Image via Weibo / Stan Lee Studio

View this post on Instagram

A post shared by G.E.M.鄧紫棋 (@gem0816) on Oct 1, 2018 at 4:58am PDT



View this post on Instagram

So shocked, so sad... :( One of the sweetest and most humble person I’ve met, its my honour to have met you and share meetings on your creative and thought process. You have been a big big inspiration to the world, you have brought hopes and courage to so many people’s lives. Thanks for empowering and encouraging so many people and let them believe in themselves. Thanks for everything that you have done! We’ll miss you @therealstanlee ! #legend #stanlee #ripstanlee #rip 很驚訝,和傷心⋯ 你是其中一個我認識過最和藹可親的人,能遇見你實在是我的幸運。謝謝你為世界帶來這麼多的啟發、希望與勇氣,謝謝你讓這麼多人在動盪的世界裡能夠相信自己。你會一直留在我們的心裡、生活裡! @therealstanlee

A post shared by G.E.M.鄧紫棋 (@gem0816) on Nov 12, 2018 at 7:17pm PST





[via South China Morning Post, images via various sources]
Categories: World News

OpenSense Labs: Disseminating Knowledge: Drupal for Education and E-learning

Wed, 11/14/2018 - 12:19
Disseminating Knowledge: Drupal for Education and E-learning Shankar Wed, 11/14/2018 - 12:26

Have you always secretly wanted to spend your evenings writing symphonies, learning about filmography or assessing climate change? Studying niche subjects have traditionally been for niche students. But e-learning platforms have changed all that with the provision for learning almost any subject online.


Corporate e-learning has witnessed a stupendous 900% growth in the last decade or so. With more and more e-learning platforms flourishing, organisations are striving to be the best to stand apart from the rest. Drupal has been a great asset in powering education and e-learning with its powerful capabilities that can help enterprises offer a wonderful digital experience. Let’s trace the roots of e-learning before diving deep into the ocean of possibilities with Drupal for building an amazing e-learning platform.

Before the internet era Source: eFront

A brief history of e-learning can be traced through the compilation made by eFront. Even before the internet existed, distance education was being offered. In 1840, Isaac Pitman taught shorthand via correspondence where completed assignments were sent to him via mail and he would, then, send his students more work.

Fast forward to the 20th century, the first testing machine was invented in 1924 that enabled students to test themselves. The teaching machine was invented in 1954 by a Harvard professor for allowing schools to administer programmed instruction to students. In 1960, the first computer-based training program (CBT program) called Programmed Logic for Automated Teaching Operation (PLATO).

At a CBT systems seminar in 1999, the term ‘e-learning’ was first utilised. Eventually, with internet and computers becoming the core of businesses, the 2000s saw the adoption of e-learning by organisations to train employees. Today, a plenitude of e-learning solutions are available in the form of MOOCs (Massive Open Online Courses), Social platforms and Learning Management System among others.

E-learning: Learn anywhere, anytime

In essence, e-learning refers to the computer-based educational tool or system that allows you to learn anywhere and at any time. It is the online method of building skills and knowledge across the complete workforce and with customers and partners. It comes with numerous formats like the self-paced courses, virtual live classrooms or informal learning.

E-learning refers to the computer-based educational tool or system that allows you to learn anywhere and at any time

Technological advancements have diminished the geographical gap with the use of tools that can make you feel as if you are inside the classroom. E-learning provides the ability to share material in all sorts of formats such as videos, slideshows, and PDFs. It is possible to conduct webinars (live online classes) and communicate with professors via chat and message forums.

There is a superabundance of different e-learning systems (otherwise known as Learning Management Systems or LMS) and methods which enable the courses to be delivered. With the right kind of tools, several processes can be automated like the marking of tests or the creation of engrossing content. E-learning offers the learners with the ability to fit learning around their lifestyles thereby enabling even the busiest of persons to further a career and gain new qualifications.

Merits and Demerits

Some of the major benefits are outlined below:

  • No restrictions: E-learning facilitates learning without having to organise when and where everyone, who is interested in learning a course, can be present.
  • Interactive and fun: Designing a course to make it interactive and fun with the use of multimedia or gamification enhances engagement and the relative lifetime of the course.
  • Affordable: E-learning is cost-effective. For instance, while textbooks can become obsolete, the need to perpetually acquire new editions by paying exorbitant amounts of money is not present in e-learning.

Some of the concerns that need to be taken care of:

  • Practical skills: It is considered tougher to pick up skills like building a wooden table, pottery, and car engineering from online resources as these require hands-on experience.
  • Secludedness: Although e-learning enables a person to remotely access a classroom in his or her own time, learners may feel a sense of isolation. Tools such as video conferencing, social media and discussion forums can allow them to actively engage with professors or other students.
  • Health concerns: With the mandatory need of a computer or mobile devices, health-related issues like eyestrain, bad posture, and other physical problems may be troublesome. However, sending out proper guidelines beforehand to the learner like correct sitting posture, desk height, and recommendations for regular breaks can be done.
Building Yardstick LMS with Drupal

OpenSense Labs built Yardstick LMS, a learning management system, for Yardstick Educational Initiatives which caters to the students of various schools of Dubai.

Yardstick LMS Homepage

The architecture of the project involved a lot of custom development:

1. Yardstick Core

This is the core module of the Yardstick LMS where the process of creating, updating and deleting the nodes take place.

2. Yardstick Quiz

We built this custom module for the whole functionality of the quiz component. It generates a quiz, quiz palette and quiz report after quiz completion based upon the validation of the visibility of the report.


We could generate three kinds of reports: 

  • An individual-level quiz where one’s performance is evaluated
  • A sectional-level report where performance for each section is evaluated
  • Grade-level report where performance for all the sections is compared and evaluated.

For the quiz, we had different sub-components like questions, options, marks, the average time to answer, learning objective, skill level score, and concept. The same question could be used for different quiz thereby minimising the redundancy of the data. Also, image, video or text could be added for questions.


3. Yardstick Bulk User Import

This module was built to assist the administrators in creating users all at once by importing a CSV file. Also, there is an option to send invitation mail to all the users with login credentials.


4. Yardstick Custom Login

We provided a custom login feature where same login credentials could be used to log into the Yardstick system. That is, we provided an endpoint for verifying the login credentials and upon success, users were logged in.

5. Yardstick Validation

This module offers all the validation across the site whether it is related to access permission or some time validation.

6. Yardstick Challenge

It offers the user an option to submit a task which is assigned to them where they are provided with text area and file upload widget.

Yardstick LMS has an intricate structure

On the end user side, there is a seamless flow but as we go deeper, it becomes challenging. Yardstick LMS has an intricate structure.

We had two kinds of login:

  • Normal login using Yardstick credentials
  • And the other for school-specific login like the Delhi Public School (DPS) users.
Yardstick LMS custom login for DPS users

For DPS users, we used the same login form but a different functionality for validating credentials. DPS school gave us an endpoint where we sent a POST request with username and password. If the username and password were correct, then that endpoint returned the user information.

If the username was received, we checked on our Yardstick system if the username exists. If it does not exist, then we programmatically created a new user with the information that we received from the endpoint and created a user session. And if does exist, then we updated the password on our system.

Yardstick LMS is designed to govern multiple schools at the same time

We designed Yardstick LMS in such a way that multiple schools can be governed at the same time. All the students of various schools will be learning the same content thereby building uniformity.

The core part of our system dwells in the modules. The module is a content type that can store numerous information like components, concept, description, objective, syllabus among others. 

Several different components can be added like Task, Quiz, Video task, Extension, Feedback, Inspiration, pdf lesson plan, Real life application, and Scientific principles.

Yardstick LMS Real life application component page

Schools could opt for different modules for different grades. When a module was subscribed by a school, a clone module of the master module was created and the school copy was visible only to the school. School version could be modified by the school admin as per their needs and preferences. Master module remained the same. While creating a subscription, administrator had to provide the date so that the components were accessible to the students. School admin could set different dates to different components and only the components with past date were accessible.

Flow Diagram of module subscription to school

Also, we provided an option to create a dynamic feedback form for the modules for analysis. Yardstick Admin had the option to design and create a feedback form as per their requirement and could assign it to a particular module. Different types of elements could be utilised for designing the form like rating, captcha, email, range slider, text field, checkboxes, radio buttons and so on.


Students and teachers need to submit their feedback for each of the modules. On the basis of this, Yardstick team try to improve the content of the system.


Also, various roles were defined for users such as Yardstick Administrator, School Administrator, Teacher, and Student.

1. Yardstick Admin

Yardstick Admin can perform all the operations. He or she can create new users, grant permissions and revoke them as well.

2. School Admin

It has the provision for handling all the operation which are only related to their school. School Admin handles the modules and their components and can import user for their school. All school reports and task submissions are visible to School Admins.

3. Teachers

Teachers can view modules and components assigned to their classes and provide remarks to the students for multiple components and they can view all kinds of reports.

4. Students

They can attempt quiz, submit tasks, view components and view their own reports.

What’s the future of e-learning?

According to a report on Research and Markets, the e-learning market is anticipated to generate revenue of $65.41 billion by 2023 with a growth rate of 7.07% during the forecast period.

The report goes on to state that with the advent of cloud infrastructure, peer-to-peer problem solving and open content creation, more business opportunities would pop up for service providers in the global e-learning market. The introduction of cloud-based learning and AR/VR mobile-based learning will be a major factor in driving the growth of e-learning.

The growth of the e-learning market is due to the learning process enhancements in the academic sector

According to Technavio, the growth of the market is due to the learning process enhancements in the academic sector.

Global self-paced e-learning market 2019-2023 | Source: Technavio

Following are major trends to look forward to:

  • Microlearning, which emphasises on the design of microlearning activities through micro-steps in digital media environments, will be on the rise.
  • Gamification, which is the use of game thinking and game mechanics in a non-game context to keep the users engrossed and help them solve more problems, will see increased adoption rates.
  • Personalised learning, which is the tailoring of pedagogy, curriculum and learning environments to meet the demands of learners, can be a driving force.
  • Automatic learning, like the one shown in the movie The Matrix where a person is strapped onto a high-tech chair and a series of martial arts training programs are downloaded into his brain, can be a possibility.
Conclusion

It’s a world which is replete with possibilities. As one of the most intelligent species to walk on this earth, we perpetually innovate with the way we want to lead a better lifestyle. We learn new things to gain more knowledge. And in the process, we find ways of improving our learning experience. E-learning is one such tech marvel that promises to be a force to reckon with. It is not a disrupting technology but something that is going to get bigger and bigger in the years to come.

As a content management framework, Drupal offers a magnificent platform to build a robust e-learning system. With years of experience in Drupal Development, OpenSense Labs can help in providing an amazing digital experience. 

Contact us at hello@opensenselabs.com to build an e-learning system using Drupal and transform the educational experience.

blog banner blog image E-learning Drupal e-learning Drupal and education Yardstick LMS Drupal Learning Management System Drupal LMS LMS Learning Management System E-learning platform E-learning system E-learning application Blog Type Articles Is it a good read ? On
Categories: World News

Can I revert back to Windows from Linux?

Wed, 11/14/2018 - 12:13

Hello,

I wish to use Linux as my main OS for quite some time, but my concern is can i revert back to Windows from Linux if I don't myself comfortable with Ubuntu therefore I need to ask this "Can I remove Linux completely from my system?" .

  • And i don't want to side load Linux or run it from a USB.
submitted by /u/DeepAdvance
[visit reddit] [comments]
Categories: World News

Figma Image Tips

Wed, 11/14/2018 - 12:07

Figma offers a range of shortcuts and controls for importing images, placing them on the canvas, and modifying them once they’re in position. Let’s take a look!

Watch Tips 1. Use Fill Settings on Images to Control Size

When you drop an image into Figma, in actual fact a rectangle is created, then the image is set as that rectangle’s background fill. To modify how that image is displayed, go to the rectangle’s fill properties in the Properties panel.

Much like the way we can control how a background image is displayed via CSS, here we can state that the image should:

  • Fill: the image crops horizontally or vertically so that it completely fills the object.
  • Fit: all of the image is visible, which often leaves an area of the rectangle unfilled. 
  • Crop: where the image actually stretches with the size of the rectangle.
  • Tile: the image tiles to cover the rectangle. The size of the tiles can be changed via a secondary set of sizing handles.
Using Figma’s fill properties to change the way an image is displayed 2. Import Whole Sets of Images

To import a whole set of images you can drag and drop a folder onto the Figma canvas, then all the images will be automatically imported for you.

3. Import and Place Multiple Images

To keep batch importing images more organized, first set up some frames where you’d like to display your images, then hit (CMD or CTRL) + SHIFT + K, click somewhere on the canvas to begin the process, then select all the necessary images in the file picker which pops up.

You can then click on the canvas, once for each image, placing them exactly where you want as you go. In the screenshot below you’ll see from the mouse cursor that there are still two images to place.

Two images left to place..Figma Learning Resources

Those were some quick tips for working with images in Figma. To help you take things to the next level we have a series of Figma courses on Tuts+:

  • UI Design Introduction to Figma Adi Purdila
  • Figma Beyond the Basics: Figma Adi Purdila
  • Figma A Guide to Prototyping in Figma Adi Purdila
Categories: World News

US$1K Idris Elba Doll That Doesn’t Look Like The Actor Becomes A Head-Scratcher

Wed, 11/14/2018 - 12:06

Images via Emperis and Featureflash Photo Agency / Shutterstock.com

A £850 (US$1,105) Idris Elba doll has been mocked by social media users for looking nothing like the British actor.

Though Elba was crowned ‘Sexiest Man Alive’ by People magazine, this doll might leave you with some doubts.

The figurine comes dressed in a suit and equipped with muscles to mimic Elba, but the doll’s bald head and “evil” eyes have fans questioning as to what, exactly, was running through its maker’s mind.

Sold online by specialist doll maker Emperis, the model is said to mark a closer resemblance to American actor Romany Malco, and has also been compared to Aladdin villain ‘Jafar’. One user tweeted, “This doll is supposed to be Idris? Somebody getting fired.”

The attempt to mirror Elba has also been likened to Cristiano Ronaldo’s bust at the Madeira Airport, which was ridiculed by internet users as it looked nothing like the famous footballer.

Talking about the doll, Emperis said it has always admired Elba as a British actor and decided to create a doll emulating him.

This doll is supposed to be Idris? Somebody getting fired. pic.twitter.com/VsFXlmRibW

— Court
Categories: World News

Google’s Powerful Online Image Converter ‘Squoosh’ Works In Any Browser

Wed, 11/14/2018 - 12:06
[Click here to view the video in this article]



At this year’s Chrome Developer Summit, which took place over 12 and 13 November at San Francisco’s Yerba Buena Center for the Arts, Google unveiled its advanced online image converter called ‘Squoosh’ that has been designed to support up-and-coming web technologies and function in any browser.

The ‘Squoosh’ app is an open source tool from Chrome Labs that works for desktop and mobile. ‘Squoosh’ automatically transforms any uploaded image into various supported formats, such as OptiPNG, MozJPG, WebP, Browser PNG, JPG, and WebP.

According to Ghacks, ‘Squoosh’ isn’t intended to compete with the myriad image file conversion tools already rampant online, but rather serve as a showcase for novel web technologies, for instance, WebAssembly.

The original and converted versions are displayed side-by-side on screen, where a slider that separates the graphics lets you zoom in and out to inspect quality. Certain formats, such as WebP, enable you to customize specific parameters.

For now, ‘Squoosh’ does not support bulk conversions. Find out more about ‘Squoosh’ in Google’s demo of the app below.





[via Ghacks, video via Google Chrome Developers, main image via video screenshot]
Categories: World News

HBO’s ‘For The Throne’ Trailer Announces ‘Game Of Thrones’ Final Season Release

Wed, 11/14/2018 - 12:06


HBO has announced the release month for the final season of its hit series Game of Thrones.

After a long, dry spell, fans can finally mark their calendars for its April 2019 premiere window, declared in the concluding scene from its latest ‘#ForTheThrone’ teaser trailer, shown below. The specific date has yet to be unveiled.

Check out the latest teaser below.

Every battle.
Every betrayal.
Every risk.
Every fight.
Every sacrifice.
Every death.
All #ForTheThrone. pic.twitter.com/WReVt473SH

— Game Of Thrones (@GameOfThrones) November 13, 2018


Not a Queen, a Khaleesi #ForTheThrone. pic.twitter.com/2h19EV1Sbu

— Game Of Thrones (@GameOfThrones) November 13, 2018


Bring me his head #ForTheThrone. pic.twitter.com/NxwKxU3gVw

— Game Of Thrones (@GameOfThrones) November 13, 2018


Fire cannot kill a dragon #ForTheThrone. pic.twitter.com/alSusVDUOw

— Game Of Thrones (@GameOfThrones) November 13, 2018


The Lannisters send their regards #ForTheThrone. pic.twitter.com/bkLfQyqNfD

— Game Of Thrones (@GameOfThrones) November 13, 2018


Serve me my wine, #ForTheThrone. pic.twitter.com/y2HGBLONhq

— Game Of Thrones (@GameOfThrones) November 13, 2018


I am your son and you sentenced me to die #ForTheThrone. pic.twitter.com/mUAe7XtGDv

— Game Of Thrones (@GameOfThrones) November 13, 2018


If they get through, everyone dies #ForTheThrone. pic.twitter.com/kd3J0Po7oe

— Game Of Thrones (@GameOfThrones) November 13, 2018


For the watch, #ForTheThrone. pic.twitter.com/tNxJU6MtXS

— Game Of Thrones (@GameOfThrones) November 13, 2018


Hold the door #ForTheThrone. pic.twitter.com/C8BIt3T2zY

— Game Of Thrones (@GameOfThrones) November 13, 2018


The North Remembers #ForTheThrone. pic.twitter.com/fk2MVeN5v6

— Game Of Thrones (@GameOfThrones) November 13, 2018


Winter is here #ForTheThrone. pic.twitter.com/0GAi9w2u1T

— Game Of Thrones (@GameOfThrones) November 13, 2018




[via Twitter Moments, video via GameOfThrones, main image via GameOfThrones]
Categories: World News

Victoria’s Secret Model With Vitiligo Poses Topless For Magazine Shoot

Wed, 11/14/2018 - 12:06

Image via V Magazine

Up-and-rising supermodel Winnie Harlow has been making waves for championing vitiligo, a condition that causes loss in color in certain areas of a person’s skin, in the mainstream.

The 24-year-old first brought attention to her condition when she contested in the 21st cycle of America’s Next Top Model. Just recently, she became the first model with vitiligo to walk at Victoria’s Secret fashion show.

Harlow is now one of seven women to model in the “barely-there,” provocative ‘Glamorama’ spread for V Magazine’s Winter 2018 issue.

Shot by NYC-based photographer Carin Backoff, Harlow’s photo sees her posing topless, proudly revealing the alternate colors that grace her skin.

The model is styled in Balmain shorts, Pervis Ross earrings, and Giuseppe Zanotti boots, which might have all been outshined by her glowing confidence. Check out the photo below.

View this post on Instagram

BOMBSHELL ALERT: Making her official first mark in the pages of V, rising powerhouse @winnieharlow is a bona fide @balmain beaut in #V116! #linkinbio -- Photographed by @carinbackoffphoto Styled by @annatrevelyan Makeup by @hungvanngo Hair by @teddycharles35 #WinnieHarlow wears shorts @balmain, Pervis Ross earrings, and @giuseppezanotti boots. Order your copy of V116, our Winter 2018 issue, at shop.vmagazine.com today: https://bit.ly/2qgFM8M

A post shared by V Magazine (@vmagazine) on Nov 12, 2018 at 9:50am PST





[via Inquisitr, images via V Magazine]
Categories: World News

Adobe Gets Sued Over Bug That Deleted US$250,000 Worth Of Freelancer’s Work

Wed, 11/14/2018 - 12:06

Image via r.classen / Shutterstock.com

Woe is any creative professional who accidentally removes important files from their computer. If you have been in this plight before, consider the even more tragic fate of this freelancer who purportedly had years worth of work wiped out by Adobe without his permission.

Freelance filmmaker Dave Cooper has raised a class action suit against the creative software company over a bug in the 11.1.0 update of Premiere Pro CC 2017 that apparently deleted videos and photos that were never opened or used within the program.

The deletion was attributed to Premiere Pro’s ‘clean cache’ tool, which accumulates and stores unnecessary data from ongoing projects so users can clear them easily after the work is complete.

Unfortunately, Cooper lost more than redundant data. The suit filing details that when he cleared his cache, the ‘clean cache’ tool permanently removed several important files and data that didn’t belong to the ‘Media Cache’ folder and “had never been associated with Premiere Pro.”

David Deal, one of Cooper’s attorneys, told Motherboard that the videographer’s “original video clips, as well as files that were a result of his editing,” had been deleted due to the glitch.

“As a freelance visual artist, all you are and all you have is your work,” Deal iterated. “If you don’t have your work then you might as well not be a visual artist.”

Cooper estimated that the bug had wiped out about 100,000 video clips that cost him about US$250,000 to shoot and produce during his travels to locations such as India, Brazil, Egypt, Mexico and Turkey.

The filmmaker’s list of clients includes “major
editorial, advertising, and governmental organizations” like the World Bank, National Geographic, Ogilvy, USAID, and PBS.

Adobe personally acknowledged the bug back in May 2017, and had rolled out an update to prevent future content from being removed by mistake.

“The update changes the behavior of the media cache deletion. With 11.1.1, only files that are within the ‘Media Cache’ folder’s subdirectories will be deleted. Files that sit next to it will no longer be affected. However, we still strongly recommend keeping the ‘Media Cache’ folder separate from your original media.”



[via Motherboard, cover image via r.classen / Shutterstock.com]
Categories: World News

VERT Threat Alert: November 2018 Patch Tuesday Analysis

Wed, 11/14/2018 - 11:37

Today’s VERT Alert addresses Microsoft’s November 2018 Security Updates. VERT is actively working on coverage for these vulnerabilities and expects to ship ASPL-805 on Wednesday, November 14th. In-The-Wild & Disclosed CVEs CVE-2018-8589 This vulnerability was reported to Microsoft by Kaspersky Labs, who discovered it being exploited by multiple threat actors. The target, at this point, […]… Read More

The post VERT Threat Alert: November 2018 Patch Tuesday Analysis appeared first on The State of Security.

Categories: World News

How to add non-theme-dependent CSS?

Sat, 09/01/2018 - 07:00

I'd like to add some CSS directives that will not be dependent in any theme whatsoever, either from a file or from the GUI directly.

The module CSS editor allows me to add custom CSS per theme, directly from GUI, but I need that global and not per theme.

Do you know a way?

Categories: World News

how to use (reference) the uploaded file to a media(video) type?

Sat, 09/01/2018 - 07:00

i have read https://www.drupal.org/node/2941420 and i can upload a image file then use it in article.

but i can not use it as video field after i upload a video file.

(my drupal version is 8.6.0-beta2)

I use the media type ( drupal 8 core module) for my video field , this is a Entity reference.

when i use POST http://www.myhots.com/file/upload/media/video/field_media_video_file?_fo... i get the response as the end shows.(the fid =47)

{ "message":"Unprocessable Entity: validation failed. field_user_video.0.target_id: The referenced entity (media: 47) does not exist. " }

then i use it : curl -X PATCH -H 'Content-Type: application/json' -H 'X-CSRF-Token:YYYYYYYYYYYYYYYYYYYY' -H 'Authorization: Basic XXXXXXXXXXX=' -i 'http://www.myhost.com/node/5?_format=json' --data '{

"type":[ { "target_id":"user_video", "target_type":"node_type" } ], "field_user_video":[ { "target_id":47, "target_type":"media" } ]

}

the response is as follows: { "message":"Unprocessable Entity: validation failed. field_user_video.0.target_id: The referenced entity (media: 47) does not exist. " }

can you kindly tell which information should i used to patch it ? it seems that the "fid" is not correct.

maybe i need "target_id " of "media“, but there is not respond after i upload a video file, can you kindly give a suggest?

"field_user_video": [{ "target_id": 3, "target_type": "media", "url": "/d86/media/3" }]

'

{ "fid":[ { "value":47 } ], "uuid":[ { "value":"cf69fac4-5ba2-4861-9cce-a959dee3c480" } ], "langcode":[ { "value":"en" } ], "uid":[ { "target_id":1, "target_type":"user", "target_uuid":"c2b09ff8-345a-43fa-b9ae-68af0c9cd3ea", "url":"/d86/user/1" } ], "filename":[ { "value":"example2.mp4" } ], "uri":[ { "value":"public://2018-08/example2.mp4", "url":"/d86/sites/default/files/2018-08/example2.mp4" } ], "filemime":[ { "value":"video/mp4" } ], "filesize":[ { "value":6320348 } ], "status":[ { "value":false } ], "created":[ { "value":"2018-08-31T03:04:20+00:00", "format":"Y-m-d\TH:i:sP" } ], "changed":[ { "value":"2018-08-31T03:04:20+00:00", "format":"Y-m-d\TH:i:sP" } ] }

Categories: World News

Drag and drop nodes in a node list (to later use that sorting inside a view)

Sat, 09/01/2018 - 07:00

Under example.com/en/admin/content I show all site content filtered by content type and then I get a list of all nodes from that content type. The nodes will appear in some sorting (usually date).

Instead sorting them by date I'd like sorting them by drag and drop.

What way will you use?

I aim to later use that sorting as a sorting way for Views.

Update per answer

I installed and enabled DraggableViews and added a sorting criteria (global: draggable views) but I don't have a contextual link for it after saving it.

I think it's a common issue; Though I did what #10 said I didn't quite understand #22. Maybe you know why the module isn't usable?

Categories: World News

Error: Syntax error, unrecognized expression: <div id="ctools-modal">

Sat, 09/01/2018 - 07:00

I want to display a form in CTool modal dialog, but failing badly.

When I click link to show modal form, ajax request is started:

POST http://drupal.dev/my_mod/arg1/ajax/arg3

and returns:

Error: Syntax error, unrecognized expression: <div id="ctools-modal"> <div > <div > <div > <button type="button" data-dismiss="modal" aria-hidden="true">&times;</button> <h4 id="modal-title" >&nbsp;</h4> </div> <div id="modal-content" > </div> </div> </div> </div>

I tried to click different link, but gets an error:

TypeError: Drupal.CTools.Modal.modal is undefined

Code:

function my_mod_menu() { return array( 'my_mod/%/%ctools_js/%' => array( 'title' => 'Entity Modal Edit', 'page arguments' => array(1,3), 'page callback' => 'my_mod_modal_page_callback', 'access callback' => 'my_mod_modal_access_callback', 'access arguments' => array(1,2,3), 'type' => MENU_CALLBACK, ), ); } function my_mod_modal_page_callback($entity_type, $id) { ctools_include('modal'); ctools_include('ajax'); ctools_modal_add_js(); $form_state['user'] = user_load($id); $output = ctools_modal_form_wrapper('my_mod_form', $form_state); ctools_modal_render('Edit', $output); exit; }

I'm creating my edit link in custom views_field_handler:

class my_mod_handler_field_links extends views_handler_field { function init(&$view, &$options) { parent::init($view, $options); if (! isset(self::$some_property)) { ctools_include('modal'); ctools_include('ajax'); ctools_modal_add_js } } function render($values) { $edit_link = array( 'href' => 'my_mod_ctools/some_value1/nojs/some_other_value', 'title' => t('edit'), 'attributes' => array('class' => array('mymod-ctools-links', 'ctools-use-modal', 'use-ajax')), ); $links[] = $edit_link; $build = array( '#prefix' => '<div >', '#suffix' => '</div>', '#theme' => 'links', '#links' => $links, return drupal_render($build); } function query() {} }
Categories: World News

Drupal Association blog: Farewell Megan, but not goodbye

Sat, 09/01/2018 - 06:51

This blog has been re-posted and edited with permission from Dries Buytaert's blog. Please leave your comments on the original post.

As you might have read on the Drupal Association blog, Megan Sanicki, the Executive Director of the Drupal Association, has decided to move on.

Megan has been part of the Drupal Association for almost 8 years. She began as our very first employee responsible for DrupalCon Chicago sponsorship sales in 2011, and progressed to be our Executive Director, in charge of the Drupal Association.

It's easy to forget how far we've come in those years. When Megan started, the Drupal Association had little to no funding. During her tenure, the Drupal Association grew from one full-time employee to the 17 full-time employees, and from $1.8 million in annual revenues to $4 million today. We have matured into a nonprofit that can support and promote the mission of the Drupal project.

Megan led the way. She helped grow, mature and professionalize every aspect of the Drupal Association. The last two years in her role as Executive Director she was the glue for our staff and the driving force for expanding the Drupal Association's reach and impact. She understood how important it is to diversify the community, and include more stakeholders such as content creators, marketers, and commercial organizations.

I'm very grateful for all of this and more, including the many less visible contributions that it takes to make a global organization run each day, respond to challenges, and, ultimately, to thrive. Her work impacted everyone involved with Drupal.

It's sad to see Megan go, both professionally and personally. I enjoyed working with Megan from our weekly calls, to our strategy sessions as well as our email and text messages about the latest industry developments, fun stories taking place in our community, and even the occasional frustration. Open source stewardship can be hard and I'm glad we could lean on each other. I'll miss our collaboration and her support but I also understand it is time for Megan to move on. I'm excited to see her continue her open source adventure at Google.

It will be hard to fill Megan's shoes, but we have a really great story to tell. The Drupal community and the Drupal Association are doing well. Drupal continues to be a role model in the Open Source world and impacts millions of people around the world. I'm confident we can find excellent candidates.

Megan's last day is September 21st. We have activated our succession plan: putting in place a transition team and readying for a formal search for a new Executive Director. An important part of this plan is naming Tim Lehnen Interim Executive Director, elevating him from Director, Engineering. I'm committed to find a new Executive Director who can take the Drupal Association to the next level. With the help of Tim and the staff, our volunteers, sponsors and the Board of Directors, the Drupal Association is in good hands.

Categories: World News

DrupalCon News: DrupalCon 2019

Sat, 09/01/2018 - 06:51
Categories: World News

Dries Buytaert: Farewell Megan, but not goodbye

Sat, 09/01/2018 - 06:51

As you might have read on the Drupal Association blog, Megan Sanicki, the Executive Director of the Drupal Association, has decided to move on.

Megan has been part of the Drupal Association for almost 8 years. She began as our very first employee responsible for DrupalCon Chicago sponsorship sales in 2011, and progressed to be our Executive Director, in charge of the Drupal Association.

It's easy to forget how far we've come in those years. When Megan started, the Drupal Association had little to no funding. During her tenure, the Drupal Association grew from one full-time employee to the 17 full-time employees, and from $1.8 million in annual revenues to $4 million today. We have matured into a nonprofit that can support and promote the mission of the Drupal project.

Megan led the way. She helped grow, mature and professionalize every aspect of the Drupal Association. The last two years in her role as Executive Director she was the glue for our staff and the driving force for expanding the Drupal Association's reach and impact. She understood how important it is to diversify the community, and include more stakeholders such as content creators, marketers, and commercial organizations.

I'm very grateful for all of this and more, including the many less visible contributions that it takes to make a global organization run each day, respond to challenges, and, ultimately, to thrive. Her work impacted everyone involved with Drupal.

It's sad to see Megan go, both professionally and personally. I enjoyed working with Megan from our weekly calls, to our strategy sessions as well as our email and text messages about the latest industry developments, fun stories taking place in our community, and even the occasional frustration. Open source stewardship can be hard and I'm glad we could lean on each other. I'll miss our collaboration and her support but I also understand it is time for Megan to move on. I'm excited to see her continue her open source adventure at Google.

It will be hard to fill Megan's shoes, but we have a really great story to tell. The Drupal community and the Drupal Association are doing well. Drupal continues to be a role model in the Open Source world and impacts millions of people around the world. I'm confident we can find excellent candidates.

Megan's last day is September 21st. We have activated our succession plan: putting in place a transition team and readying for a formal search for a new Executive Director. An important part of this plan is naming Tim Lehnen Interim Executive Director, elevating him from Director, Engineering. I'm committed to find a new Executive Director who can take the Drupal Association to the next level. With the help of Tim and the staff, our volunteers, sponsors and the Board of Directors, the Drupal Association is in good hands.

Categories: World News

KaOS 2018.08 has been released

Sat, 09/01/2018 - 06:32
Categories: World News

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