teleren/devto huggingface dataset:
Automating Flutter Build
Tags: flutter, build, automation
Published: 2019-09-07 16:21:42

---
title: Automating Flutter Build
published: true
description: 
tags: flutter, build, automation
---

<div class="entry-content clearfix">

		
<p>Recently I’ve automated building one of my Flutter projects and I’m planning to continue with every other Flutter (and not only) project. I use Git as a Source Management System. To get myself more up to date with the current trends, I used Docker. </p>



<p>First I grabbed the container from here:  <a href="https://github.com/jenkinsci/docker/blob/master/README.md">https://github.com/jenkinsci/docker/blob/master/README.md</a> </p>



<p>I’ve used the script that maps a directory from the host machine to a directory in the Container: <br><code>docker run -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:lts </code></p>



<p>This is the starting point to get Jenkins up and running to do whatever you want – in my case Java & Flutter Building, Deployment, Monitoring and fixing stuff, Daily Backups. You could do whatever you’d like. </p>



<p>Part of the building process is placing a hook in “origin” git repository. I’ve updated “post-update” file – to trigger a Jenkins build from remote script so every time I push something, I get a warning if something is broken. If the Jenkins Job has a Deployment subroutine, It is preferred to deploy to a Dev environment, especially if the team is big. Jenkins gives the possibility to link Jobs in a chain so if everything is OK – to proceed ahead. </p>



<p>Next I grabbed a docker file shared by this smart dude  <a href="https://medium.com/@kyorohiro">https://medium.com/@kyorohiro</a> that has Flutter & Dart in it and just placed the “FROM” docker container source to be the Jenkins. In my personal experience – It requires a little tuning to glue things up. Sometimes there are missing dependencies, environment variables, wrongly typed paths, etc, but, with few initial failed Jenkins Builds, everything is working. </p>



<p>The Flow I’ve set upped is: </p>



<ul><li>Git Pull the latest source from the hooked “origin” to a local directory. </li><li>Execute Flutter Build in the above directory</li><li>SFTP/SCP/ Upload to my Server</li></ul>



<p>In case of Flutter Web the output is a directory full of files so I've created a simple Java program (Jar)  - usable in the future with any other Compile/Build task that produces multiple files -  that iterates through the build directory and uploads files only if they are newer than the last modification/Build/. </p>


<p>As a tech guy writing code and exploring “innovative” stuff, I am seeing in myself and also in others – forget the philosophical task of any technology – “to automate things and minimize human labor “. Automating things is working smart. You don’t need special AI to delegate the work that is repeated over and over again and it is every day – the same – to the Computer. </p>

		
	</div>
[PT-BR] Frontend: lá vamos nós correr atrás do atraso!
Tags: frontend, html, diary
Published: 2019-09-07 16:06:21

Status: me sentindo viva e (bem) defasada.
Tava conversando com o marido sobre o gap gigante em web que acabou se formando na minha trajetória. Aprendendo agora sobre todas as tecnologias novas que surgiram nesse tempo que fiquei fora da área. Caraca hein!
O mais interessante é que eu duvidava de mim mesma, sabia da defasagem mas não olhava para esse buraco. Precisei fazer um Hackathon para entender que dou conta. E só agora estou encarando olhar para tudo isso.
Estuda, Erica.
Have you used a paid on-demand expert help service to screen share/pair program/review code with someone? 
Tags: discuss, watercooler, vscode
Published: 2019-09-07 16:04:14

---
title: Have you used a paid on-demand expert help service to screen share/pair program/review code with someone? 
published: true
description: 
tags: discuss, watercooler, vscode
---

Hey All! As the PM for [Visual Studio Live Share](https://aka.ms/vsls-why), I care **a lot** about making team-based collaboration amongst teams more enjoyable 🚀 That said, in some cases, you may be working solo on a side-project, or your team might not have the answer to a question you have, and therefore, it may be worth using an on-demand expert help service to get quickly unblocked (e.g. [CodeMentor](https://CodeMentor.io), Pullrequest.com). 

Have you ever used (or considered using) a service like this? I’m curious to hear if folks have ever paid to get help, have a peer code review, do some pair programming, etc. and if so, what service you used. I’d also be interested to hear the scope of the task (e.g. quick question vs. 2 hour pairing session), the programming language your used, and overall, how your experience was. Thanks! 🙌
Place Order CSS button
Tags: css, css3, html
Published: 2019-09-07 15:13:09

---
title: Place Order CSS button
published: true
description: This is my first post in DEV.to about my work on css
tags: css, css3, html
cover_image: https://thepracticaldev.s3.amazonaws.com/i/fe4neoley1aotgrkrsjq.PNG
---

It's been more than 5 months since I created a pen in Codepen. While I was going thorugh dribbble, I found something interesting and decided to make it using css.
Then I started writing the HTML structure for that and then started filling colors and animating the objects and finally it is working.

{% codepen https://codepen.io/chintuyadav/pen/vYBdEwa %}

Here is the demo: https://codepen.io/chintuyadav/full/vYBdEwa
昔作ったサインはVGAのLinuxカーネルパッチを供養する
Tags: linux, kernel, 玄箱
Published: 2019-09-07 14:59:00

---
title: 昔作ったサインはVGAのLinuxカーネルパッチを供養する
published: true
tags: Linux, kernel, 玄箱
date: 20190907T14:59Z
canonical_url: https://qiita.com/shiena/items/acc4f819ea9da322fb2d
---
# はじめに

その昔、NAS組み立てキットの[玄箱HG](https://www.kuroutoshikou.com/product/old_series/old_case/old_case_kurobako/old_case_kurobako_select/kuro-box_hg/)があり、有志のDebian化キットで普通のLinuxとして動作しました。玄箱HGはディスプレイ出力端子がないのでリモート接続しかできなかったのですが同じ時期にUSBをVGA出力に変換する[サインはVGA](http://www.kairen.co.jp/japanese/usbvga/usb20svgawh.html)が出たのでこの2つを組み合わせてデスクトップPC化を目指したのでした。

# 何が問題だったのか

サインはVGAが出た時は既にsisusbとしてLinuxドライバがあったのですが、以下の問題により動作しませんでした。

1. 複数のデバイスIDに未対応
1. ppc(big endian)未対応

1つ目は製品のカラーバリエーションでデバイスIDが異なり、ドライバに定義されていないものは認識されません。
2つ目は玄箱HGのCPUはppcでbig endianなのでデータの格納順番が異なり正常にディスプレイ表示できません。

2つ目はどうやって見付けたのか忘れてしまったのですがグラフィックドライバなので`printk`とカーネルログだけで調べた記憶があります。

# パッチ本体

パッチ対象のカーネルはDebian/etchの2.6.18-rc4です。
これでコンソールとX Window Systemは表示されたのですが一部のカラーモードで表示がおかしかったので不完全かXのドライバにも問題あったのかもしれません。

```diff
diff -ru a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c
--- a/drivers/usb/misc/sisusbvga/sisusb.c	2006-07-30 15:15:36.000000000 +0900
+++ b/drivers/usb/misc/sisusbvga/sisusb.c	2006-07-31 00:08:10.000000000 +0900
@@ -76,6 +76,16 @@
 
 DEFINE_MUTEX(disconnect_mutex);
 
+#ifdef __BIG_ENDIAN
+static void
+correct_endianness_buffer(u16* data, const int length)
+{
+	int i;
+	for (i = 0; i < length; i++)
+		*(data+i) = cpu_to_le16(*(data+i));
+}
+#endif
+
 static void
 sisusb_free_buffers(struct sisusb_usb_data *sisusb)
 {
@@ -411,6 +421,10 @@
 			memcpy(buffer, kernbuffer, passsize);
 			kernbuffer += passsize;
 
+#ifdef __BIG_ENDIAN
+			if ((len & 3) == 0)
+				correct_endianness_buffer((u16 *)buffer, thispass/2);
+#endif
 		}
 
 		retry = 5;
@@ -906,9 +920,13 @@
 			if (userbuffer) {
 				if (get_user(swap32, (u32 __user *)userbuffer))
 					return -EFAULT;
-			} else
+			} else {
 				swap32 = *((u32 *)kernbuffer);
 
+#ifdef __BIG_ENDIAN
+				swap32 = ((swap32 << 16) & 0xffff0000) | ((swap32 >> 16) & 0xffff);
+#endif
+			}
 			ret = sisusb_write_memio_long(sisusb,
 							SISUSB_TYPE_MEM,
 							addr,
@@ -1259,7 +1277,11 @@
 
 					userbuffer += 4;
 				} else {
+#ifdef __BIG_ENDIAN
+					*((u32 *)kernbuffer) = ((swap32 << 16) & 0xffff0000) | ((swap32 >> 16) & 0xffff);
+#else
 					*((u32 *)kernbuffer) = swap32;
+#endif
 					kernbuffer += 4;
 				}
 				addr += 4;
@@ -3435,6 +3457,9 @@
 
 static struct usb_device_id sisusb_table [] = {
 	{ USB_DEVICE(0x0711, 0x0900) },
+	{ USB_DEVICE(0x0711, 0x0901) },
+	{ USB_DEVICE(0x0711, 0x0902) },
+	{ USB_DEVICE(0x0711, 0x0920) },
 	{ USB_DEVICE(0x182d, 0x021c) },
 	{ USB_DEVICE(0x182d, 0x0269) },
 	{ }
```

玄箱HGとサインはVGAでコンソール出力したもの
![9025316_31.jpg](https://dev-to-uploads.s3.amazonaws.com/i/x7xo780bsmxh2cjtbnso.jpeg)


# リンク

* [玄箱HG](https://www.kuroutoshikou.com/product/old_series/old_case/old_case_kurobako/old_case_kurobako_select/kuro-box_hg/)
* [サインはVGA](http://www.kairen.co.jp/japanese/usbvga/usb20svgawh.html)
* [Bug 7000 - patch for correct endianness to sisusb](https://bugzilla.kernel.org/show_bug.cgi?id=7000)
How to use GitHub Actions to build, test, and deploy your Laravel application
Tags: devops, beginners, laravel, web
Published: 2019-09-07 14:48:37

---
title: How to use GitHub Actions to build, test, and deploy your Laravel application
published: true
description: Learn how to use GitHub's new Actions CI/CD platform to build, test, and deploy your Laravel application in this series.
tags: devops,beginner,laravel,web
cover_image: https://owenconti.com/static/images/github-actions-intro.jpg
canonical_url: https://owenconti.com/github/github-actions-workflow-for-a-laravel-application/
---

GitHub Actions is GitHub's take on a CI/CD platform. In this series, we'll learn how we can utilize GitHub Actions to build, test, and deploy Laravel applications.

{% youtube 2Ym94MfScZ4 %}
Federated Learning Interview Questions
Tags: datascience, machinelearning
Published: 2019-09-07 14:44:29

---
title: Federated Learning Interview Questions
published: true
description: Federated Machine Learning is finding its way to emerge and rule the future of Machine Learning with the usage of internet enabled devices like laptops, smart phones, tablets and voice assistants growing at an exponential rate. Understand more about Federated Machine Learning in the form of Q&A here http://bit.ly/2KGoUna

tags: Data Science, Machine Learning
---

Federated Machine Learning is finding its way to emerge and rule the future of Machine Learning with the usage of internet enabled devices like laptops, smart phones, tablets and voice assistants growing at an exponential rate. Understand more about Federated Machine Learning in the form of Q&A here http://bit.ly/2KGoUna
Upgrade from OpenCart 2 to OpenCart 3 in a few minutes
Tags: opencart, update, upgrade, migrate
Published: 2019-09-07 14:42:08

# Step by step guide on how to upgrade OpenCart 2 to OpenCart 3

1. Install OpenCart 3 on your server (point subdomain or sub directory to it)
2. Use [OpenCart to OpenCart migration tool](https://next-cart.com/product/opencart-to-opencart/) to migrate CMS and eCommerce data from OpenCart 2 to the new OpenCart store.
3. Install 3.x version of the extensions and into OpenCart 3 store.
4. Choose your desired theme in [themeforest](https://themeforest.net/category/ecommerce/opencart) or [OpenCart theme market](https://www.opencart.com/index.php?route=marketplace/extension&filter_category_id=1).
5. Point your domain name to the new OpenCart 3 store.

# What data can me migrated from OpenCart 2 to OpenCart 3

### Products
1. Product Informations, e.g. Name, Description, Prices, Images, Meta, SEO URLs (301 Redirects or Rewrite), etc.
2. Product Options. All option types supported by Opencart 3.
3. Product Links, e.g. Manufacturer, Categories, Downloads, Related Products.
4. Product Attributes.

### Product categories
1. Category Informations, e.g. Name, Description, SEO URLs (301 Redirects or Rewrite), etc.
2. Category Parents

### Customers
1. Customer Informations, e.g. First Name, Last Name, Email, etc.
2. Customer Addresses. All addresses with full informations.
3. Customer Groups mapping.

### Orders
1. Order General Informations, e.g. Status, Currency, Total, History, Notes, Date, etc.
2. Product Details, e.g. Name, Model/SKU, Quantity, Price, Tax, Option Details, etc.
3. Customer Details, e.g. First Name, Last Name, Email, Billing/Payment and Shipping Addresses.

### Taxes
1. Tax Class, Tax Zones and Rates.

### Reviews
1. Reviews of migrated Products. Review Details, e.g. Customer, Comment, Rating, Status, Date.

# How to migrate OpenCart 2 to OpenCart 3 with Next-Cart

Next-Cart is a shopping cart migration service allows you to migrate data from your current store to another eCommerce platform. The whole procedure can be taken in 3 simple steps:

1. Upload Kitconnect to the root folders of OpenCart 2 and OpenCart 3 stores.
2. Choose the data you want to migrate
3. Perform the migration

{% youtube EwNShcUEL9A %}

Try the Free Demo migration tool at: [OpenCart to OpenCart Migration](https://next-cart.com/product/opencart-to-opencart/)

# Thank you
If you have any questions, feel free to contact us at [https://next-cart.com/contact/](https://next-cart.com/contact/), our technicians are always ready to help you 24/7. Don’t forget to like and share the guide with others if it’s useful for you.

Have a nice day!
Linux Software you should check out
Published: 2019-09-07 14:17:44

This post first appeared on [my blog](https://beb.ninja/post/nice-linux-software/).

# [Ripgrep](https://blog.burntsushi.net/ripgrep/)
Imagine grep or pt, but really really fast.

# [Skim](https://github.com/lotabout/skim)
With Skim you can really easily find files in the terminal. It easily integrates with other UNIX commands. I use the following to easily open folders: `alias c "cd (sk)"`.

# [Entr](http://eradman.com/entrproject/)
This is also a utility that can be integrated with other commands. It's a file watcher that just works. I use it with `nix-build` to get it to file watch. `alias nix-build-watch "rg -l . | entr -s 'nix-build'"`.

# [Lorri](https://www.tweag.io/posts/2019-03-28-introducing-lorri.html)
This one is for you if use develop software with Nix. The beauty of the package manager is that it makes it easy to have encapsulated environments for each project. But using `nix-shell` can be an extra step that seems unnecessary. Lorri can generate files such that you can simply use `direnv` to solve that. You simply cd into the project folder and all dependencies and commandline tools are automatically in scope. It even works with editors such as emacs so that you can use your dev tools with the ones specific to each project.

# [Notmuch](https://notmuchmail.org/)
Email the way I like it. Checkout my [post on it](https://beb.ninja/post/email/).

# [pdfpc](https://pdfpc.github.io/)
I do quite a few presentations for Uni. Usually those are done in LaTeX (it simply has the best collaboration experience, at least of compsci students). At school I often used Keynote (yep, I had a Mac once). The presenter view was really awesome and I missed it with Beamer presentations. pdfpc provides exactly that.
Daily Challenge #60 - Find the Missing Letter
Tags: challenge
Published: 2019-09-07 14:04:10

---
title: Daily Challenge #60 - Find the Missing Letter
published: true
series: Daily Challenge
description: Write a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array.
tags: challenge
---
Write a method that takes an array of consecutive (increasing) letters as input and that returns the missing letter in the array.

You will always get a valid array. And it will be always exactly one letter be missing. The length of the array will always be at least 2.
The array will always contain letters in only one case.

Example:

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/c8zwu38u2edtwfqtpx5r.png)

Good luck!

***
_Today's challenge comes from user5036852 on[CodeWars](<https://codewars.com/>), who has licensed redistribution of this challenge under the [2-Clause BSD License](<https://opensource.org/licenses/BSD-2-Clause>)!_

_Want to propose a challenge idea for a future post?  Email **yo+challenge@dev.to** with your suggestions!_
My opinions about Google’s ‘Native Lazyload’ plugin for WordPress
Tags: wordpress, wordpressplugin
Published: 2019-09-08 08:57:48

---
title: My opinions about Google’s ‘Native Lazyload’ plugin for WordPress
published: true
tags: WordPress,wordpress,wordpress plugin
canonical_url: https://kevinhq.com/my-opinions-about-googles-native-lazyload-plugin-for-wordpress/
---

Today, when I am exploring Reddit, I notice something interesting. It’s saying Google releases official ‘Native Lazyload’ plugin for WordPress. I follow the link and land on the plugin page there.  The developer of the plugin is Google Yes. I confirmed there. One of the developers of the plugin is Google itself. The plugin is legit. Guess, it’s… [Continue reading »My opinions about Google’s ‘Native Lazyload’ plugin for WordPress](https://kevinhq.com/my-opinions-about-googles-native-lazyload-plugin-for-wordpress/) ![](http://feeds.feedburner.com/~r/kevinhq/~4/625Udei-0Bw)
What is the sneakiest easter egg you have ever done?
Tags: watercooler, jokes, humor
Published: 2019-09-07 11:48:04

---
title: What is the sneakiest easter egg you have ever done?
published: true
description: what is by far the greatest easter egg you have done inside of a website or app?
tags: watercooler, jokes, humor
---

by far my greatest easter egg is that in the Country dropdown, I have inserted "The Friendzone" as a country due to it's big space and high population

![Alt Text](https://thepracticaldev.s3.amazonaws.com/i/pm0b8mek8b7rstndxcmh.png)
Version Your Database / Future Directions
Tags: discuss, database, kotlin, java
Published: 2019-09-07 11:42:39

Hi all,

as I want to release version 1.0.0 of SirixDB[1] soon, but lack an Open Source community sadly I wanted to discuss here what you think is most important for future directions.

To keep it short SirixDB keeps the history of each resource in a database through a huge index-trie structure completely copy-on-write based. This means it shares unchanged database pages between revisions. SirixDB allows sophisticated time-travel queries and implements diffing algorithms. It stores XML and JSON in a binary format natively, but could as well store graphs or other kinds of data.

Ideas for the future would be:

- horizontally scaling, that is writing through a single master, providing reading your own writes consistency, replicate resources on a few cluster-nodes... most probably using ZooKeeper and Apache BookKeeper with exactly once delivery semantics...
- interactive visualizations of the differences between revisions of the resources. SirixDB currently stores tree structured data in a binary format, that is both XML and JSON. Diffing capabilities are already there. Also some outdated visualizations[2] in Processing which I'd love to port to D3 to the web. Furthermore a web-interface would be nice
- Adding cost-based query optimizer rules and index-rewrite rules to improve query performance considerably
- Looking into how to cleverly be able to delete old revisions (I have to look up how ZFS allows deletion of snapshots). However, as a kind of ugly hack a background process could for instance copy the most recent revision to a new resource for now. It's getting kind of tricky I guess as unchanged database pages are shared between revisions and record pages are even versioned. Thus, a page needs to be reconstructed from page fragments of different revisions depending on the algorithm used.

Besides I want to finish stuff for versioning the whole database, not just resources in a database.

Until recently I thought I'd look into horizontal scaling, to use the GraalVM for native images, that is to provide super fast startup times in docker containers, work on writing/reading from a Bookkeeper cluster and deploy everything to a Kubernetes cluster.

But maybe showcasing what's possible with beautiful interactive visualizations would get probably more attention and I think for me it would be great to learn front-end stuff, too. It might also be more useful due to the complete lack of users, thus it's only really interesting from an engineering perspective ;-)

Kind regards and have a great weekend
Johannes

[1] https://sirix.io and https://github.com/sirixdb/sirix
[2] https://m.youtube.com/watch?feature=youtu.be&v=l9CXXBkl5vI
Filtering content on DEV
Published: 2019-09-07 10:45:38

---
title: Filtering content on DEV
published: true
description: 
tags: 
---

Please is there a way to filter content and posts that gets to my DEV feed. I mean, by following some tags and tech relevant to my field.
I'm interested in mainly fromtend tech right now and feel some kind of way seeing unrelated tech like C++ and Python on my feed.
Thanks!
MAD: Game DevLog #5: Game Over
Tags: gamedev, unity3d, csharp
Published: 2019-09-07 10:43:28

---
title: MAD: Game DevLog #5: Game Over
published: true
description: Finishing up what we started.
tags: gamedev, unity, csharp
cover_image: https://thepracticaldev.s3.amazonaws.com/i/6dda2oys1vjqokashh9a.jpg
series: MAD Game DevLog
---

Hello,

I don't think I'd like to invest time and resources in this project anymore, I had fun programming it and learning about different aspects of game development and the Unity game engine.

Making games involves a lot of hard work and I initially started this in order to escape from my ordinary programming activities, to do something different.

Next, I think I'm going to shift my focus to some areas that will benefit the development of my career, like, trying to learn more about computer security and getting better at solving problems.

If you wanna checkout the game you can do on [itch.io](https://dnutiu.itch.io/snowpiercer-isog)

I'd like to thank Andrei, Maxi and everyone who supported this project!

Before ending this article, here's some Unity tips we've found useful while working on this game:

## Make an atlas for prefabs to instantiate

Instead of setting prefabs to game objects manually in the editor, which is prone to error, you can make a static class to hold each prefab, this way can Instantiate all your prefabs programmatically.

```csharp
    public static class PrefabAtlas
    {   
        /* Snow Walls */
        public static readonly GameObject DestructibleHighSnow =
            Resources.Load<GameObject>("Walls/destructible_high_snow");
        public static readonly GameObject DestructibleSnow = 
            Resources.Load<GameObject>("Walls/destructible_snow");
        public static readonly GameObject IndestructibleWoodCrate =
            Resources.Load<GameObject>("Walls/indestructible_crate");
    }
```

```csharp
Instantiate(PrefabAtlas.DestructibleSnow)
```

## Avoid classic singletons.

If you want to use classic singletons for your game logic or state then you may get things messy, depending on your specific use case, because Unity manages the lifecycle of MonoBehaviour classes.

To create a singleton in Unity you can inherit from Singleton<T>:

```csharp
public class MySingleton : Singleton<MySingleton>
{
    // (Optional) Prevent non-singleton constructor use.
    protected MySingleton() { }
 
    // Then add whatever code to the class you need as you normally would.
    public string MyTestString = "Hello world!";
}
```

Thank you!

Image by <a href="https://pixabay.com/users/stevepb-282134/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1511866">Steve Buissinne</a> from <a href="https://pixabay.com/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=1511866">Pixabay</a>

References:

* https://wiki.unity3d.com/index.php/Singleton