Fedi.dev

Reader

Read the latest posts from Fedi.dev.

from IT naujienos

Pasaulį sukausčiusi pandemija padarė poveikį daugeliui verslo sektorių – vieniems turėjo įtakos finansinei pusei, kitiems tapo paskatinimu apskritai peržvelgti savo verslo prioritetus. Vienas ryškiausių pokyčių – darbas nuotoliniu būdu. Remiantis Europoje atlikto tyrimo rezultatais, 3 iš 10 darbuotojų norėtų, kad pasibaigus pandemijai darbas iš namų taptų įprasta praktika. Tiesa, darbuotojų ir darbdavių prognozės šiuo klausimu išsiskiria, o kalbant apie nuotolinį darbą išryškėja ir tvarumo bei socialinės atsakomybės problemos.

Darbuotojų ir darbdavių prognozės nesutampa

Kompanijos „Epson“ užsakymu bendrovė „B2B International“ 2020 metais visoje Europoje atliko tyrimą, kurio tikslas – pasitikrinti, kaip skirtingose šalyse, bendrovėse ir tarp skirtingų specialistų vertinamos tvarumo vertybės. Pagrindinis dėmesys skirtas aplinkosaugos ir socialinės atsakomybės temoms, pandemijos poveikiui socialinės atsakomybės projektams įmonėse, darbuotojų požiūriui į tvarumo temas ir kitiems aspektams. Tyrimo metu iš viso apklausta daugiau nei 4 tūkst. respondentų iš 26 pasaulio valstybių, tarp jų ir Baltijos šalių.

Apklausos dalyvių buvo klausinėjama ir apie verslo prognozes pasibaigus pandemijai. Tyrime paliesta ir COVID-19 krizės kontekste itin aktualia tapusi darbo iš namų tema. Rezultatai parodė, kad visuose regionuose asmeninės nuotolinio darbo preferencijos nusveria verslo strategiją, net jei nuotolinio darbo lygis regione yra nedidelis. Paaiškėjo, kad beveik 3 iš 10 darbuotojų (28 proc.) norėtų, kad nuotolinis darbas taptų įprasta praktika ir būtų laikomas „nauja norma“.

„Įdomu tai, kad pačios organizacijos ir jų vadovai tokį norą išreiškė kur kas rečiau – tik 16 proc. rinktųsi toliau lanksčiai dirbti nuotoliniu būdu, o kiti verslo tiksluose tokio pokyčio neprognozuoja ir savo strategijose nenumato. Anot daugelio darbdavių, pasibaigus COVID-19 krizei, verslo sektorius turėtų grįžti į įprastą ritmą. Šie darbdavių ir darbuotojų lūkesčių nesutapimai pastebimi įvairiuose sektoriuose ir regionuose“, – sako Mantas Nemickas, „Epson Europe“ verslo plėtros Baltijos šalims vadovas.

Išryškėja tvarumo tema

Kalbant apie verslo planus po pandemijos, tyrime didelis dėmesys skirtas ne tik nuotoliniam darbui, bet ir tvarumo temoms. Daugelis organizacijų, besiruošiančių darbuotojų sugrįžimui į darbo vietas, sutelkia dėmesį į socialinius aspektus. Labiausiai darbdaviams rūpi darbuotojų sveikata ir bendra gerovė, tačiau pasitaiko ir atsisukančių į aplinkosaugos problemas.

„Kai kurie tyrimo dalyviai nurodė, kad nuotolinis darbas padėjo sumažinti kai kurių išteklių vartojimą. Pavyzdžiui, žmonės dažniau naudojasi viešuoju transportu, dažniau naudojamos daugkartinio naudojimo medžiagos ir pakuotės, darbuotojams pateikiamas sveikas maistas. Be to, nuotolinis darbas padėjo išvengti nereikalingų darbuotojų kelionių taip sumažinant energijos sąnaudų pėdsaką, o lankstesnės darbo sąlygos leidžia pagerinti darbo ir poilsio balansą“, – pastebi M. Nemickas.

Net 7 iš 10 apklausoje dalyvavusių darbuotojų (70 proc.) nurodė, kad ilgaamžiškumas, energijos vartojimo efektyvumas ir atliekų mažinimas yra svarbiausios dirbant iš namų naudojamos įrangos savybės, susijusios su aplinkos ir socialinio poveikio sritimi. Pastebėta, kad ilgaamžiškumui, energijos vartojimo efektyvumui ir atliekų mažinimui didesnį dėmesį skiria labiau įsitvirtinusios organizacijos (veikiančios ilgiau nei 10 metų).

Tik beveik ketvirtadalis (24 proc.) apklausoje dalyvavusių darbuotojų mano, kad aplinkos apsaugos ir socialinės atsakomybės temos bus įtrauktos į verslo planus po pandemijos. Šis rodiklis nežymiai skiriasi ir tarp vadovų pareigas organizacijose užimančių asmenų – šioje grupėje rodiklis siekia 29 proc.

„Epson“ vienija 85 kompanijas visame pasaulyje, kuriose dirba per 81 tūkst. darbuotojų. Per metus „Epson“ sugeneruoja 8,5 milijardų eurų pajamų ir septintus metus iš eilės patenka į TOP100 pasaulinių inovatorių sąrašą.

Šaltinis: Epson Europe / UAB „Integrity PR“

Raktažodžiai: #epson #namai #darbas #covid

 
Skaityti daugiau...

from Inretio, MB

How to use custom domain in package import path of Go lang project. Adding meta tags read by go get command explained in details.

Go programming language provides an extensive list of packages in standard library. Need to work with strings? import "strings" will do the job. Calculating some high precision numbers? Then math/big should be imported. But what happens when some custom package needs to be imported?

With code hosted on GitHub it’s quite straightforward, however, if on-premises code repository is used in development process, some extra steps needed to use custom domain in import path.

Why use custom domain?

  • Name branding – company or developer name visible in Go project;
  • Stable address – changing code repository will not reflect import path.

When using packages from GitHub, importing packages is super easy: for example, to introduce colors in CLI application you can use github.com/fatih/color – including it to your project looks like this:

import (
  "github.com/fatih/color"
)

Don't get confused by the fact import path corrensponds to actual URL of web-based code repository (in this case GitHub) – that is not necessarily default behavior and I will first demonstrate a particular use case.

To suggest fixes and improvements for awesome lightweight blogging platform WriteFreely which instance I run at fedi.dev, I have forked their repository to github.com/gytisrepecka/writefreely – that is typical to be able to suggest Pull Requests like this one. As it is hosted on GitHub, standard approach to import this package source repository would work.

But what happens if I decide to migrate to GitLab or any other alternative, like self-hosted Gitea? That would mean import path would change and I would never want that. For the very same reason people and companies buy a domain name – regardless of current or future provider address to reach you is always the same. Luckily, we can do that with Go packages as well!

Now, if by any chance you were curious to try out my fork of WriteFreely (I recommend that in my building WriteFreely on CentOS tutorial), easiest way to get sources is following:

go get -d -u -v code.gyt.is/writefreely

Notice code.gyt.is – that is an actual website with folder writefreely. Well, it's quite plain and not appealing, however, it has couple very important meta tags:

<meta name="go-import" content="code.gyt.is/writefreely git https://github.com/gytisrepecka/writefreely" />
<meta name="go-source" content="code.gyt.is/writefreely https://github.com/gytisrepecka/writefreely https://github.com/gytisrepecka/writefreely/tree/master{/dir} https://github.com/gytisrepecka/writefreely/blob/master{/dir}/{file}#L{line}" />

They are indeed the magic behind – go get will read those meta tags and will understand where exactly it can download actual sources from.

Notice the structure of URLs in go-source – it refers to master branch and provides path where individual files are.

Beauty of such solution is that even if I change where code is hosted, users will be able to continue using code.gyt.is/writefreely in their projects regardless. Above example works with repositories hosted at GitHub and yes, you got it correctly – GitHub adds those meta tags automatically if importing from github.com provided URL directly.

Some time ago I decided I need to run on-premises code repository and chose Gitea – very fast software written in Go. The first project hosted on it is publically available open source library to watermark images written in Go. Named it webimg. Interestingly enough it has a bit different URL structure from GitHub therefore meta tags to make go get work are a bit different:

<meta name="go-import" content="code.gyt.is/webimg git https://source.gyt.is/gytisrepecka/webimg.git" />
<meta name="go-source" content="code.gyt.is/webimg https://source.gyt.is/gytisrepecka/webimg https://source.gyt.is/gytisrepecka/webimg/src/branch/master{/dir} https://source.gyt.is/gytisrepecka/webimg/src/branch/master{/dir}/{file}#L{line}" />

Figured them from gopkg fork that creators of WriteFreely runs to generate Go import paths for their projects automatically. Yet again perfect example how open source software helps to learn!

So in the end it’s easy to import webimg into any Go lang project by using custom domain:

import (
	"code.gyt.is/webimg"
)

You can make much more beautiful website than code.gyt.is is – style it using CSS, make it with static site generator like Hugo or even have WordPress site with custom meta tags added.

And in case you need a domain, buy one from Name.com (United States), FlokiNET (Iceland) or Interneto Vizija (Lithuania).

 
Read more...

from webimg

Initial version of webimg – library written in Go lang to manipulate images. Currently it is able to watermark JPG image with PNG logo at defined opacity.

To use this library in your Go application initialize sources:

go get -d -u code.gyt.is/webimg

Include it in your application:

import (
	"code.gyt.is/webimg"
)

And then call function:

// Input image, watermark image, result image, bottom-right offset X, bottom-right offset Y, watermark alpha
doWatermark := webimg.Watermark("smplayer_preferences.jpg", "watermark_inretio-logo.png", "result_img.jpg", 30, 30, 70)
if doWatermark != nil {
  fmt.Println("There was an error watermarking image...")
}

Currently the library is able to watermark JPEG image with PNG watermark (which should have transparent background). You can set offset in pixels from bottom-right corner (in example 30, 30) and transparency of watermark image (in example 70, scale is 0-255 where 0 is solid and 255 is transparent).

Sources are published on my privately hosted instance of Gitea: source.gyt.is/gytisrepecka/webimg/.

Follow this blog for news and changelog from fediverse: @webimg@fedi.dev.

If you have any feedback or ideas, drop me an email at gytis@repecka.com or on Mastodon at @gytis@mastodon.lt.

 
Read more...

from Inretio, MB

“Inretio”, MB registered in Lithuania.

See below details:

Data Value
Company code 305174082
Established 2019-05-28
Official name “Inretio”, MB
Legal form Small Partnership

Information about company is stored at State Enterprise Centre of Registers, Lithuania.

 
Read more...