teleren/devto huggingface dataset:
This will increase the revenue up to 300%
Tags: mobileappdevelopment, applicationdevelopment, androidappdevelopment, iosappdevelopment
Published: 2020-02-17 12:10:09

Every organization has its goal to grow, so the mobile application development companies. In our first article we mentioned about 5 must things before creating an application but what we can do to increase the revenue after developed application. We can use different marketing or advertisement tools to generate the revenue apart from application with small amount of charge.

Adrally tool is an extension of FuseBoxx from Fuse Powered which allows mobile game and application publisher to deal with much more networks.

Ad-mediation tool is used by Adrally to integrate with game in automation process. It allows you to take around 30 ad networks. It also let developers to segment there target audience and also gives different ad to different user.

Jon Walsh, the chief executive of Fuse Powered said that “We saw this as a confusing part of the market, especially for our publishers, and that’s how Ad Rally came to be, our mandate is to solve these problems for our customers”

Fuse Powered networks gives single check to every publisher each month so it’s easy for publisher to manage more ad networks. It allows publisher to increase the revenue up to 300%.

Share your thoughts with other tools and extensions which you think can be use for advertising.
Mysql Remove Unique Key From Mysql Table
Tags: database, mysql
Published: 2020-02-17 12:07:02

While working with database i came to one situation where at first i have unique key for email in users table but later there come a situation we now i have to remove unique key.
So this is how i [made it work](https://coderuck.com/mysql-remove-unique-key-from-mysql-table/48).

```javascript
SHOW INDEX FROM users;
```

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/bw0nibx7odppmdtmlspc.PNG)

Then based on the result returned you have can remove the key.

```javascript
ALTER TABLE users DROP INDEX users_email_unique;
```

Before

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/6nhhf6rzpjtox3293bk5.PNG)

After

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/z0s8cawr294z8d6tt1jn.PNG)


[@Other Reference](http://coderuck.com/mysql-remove-unique-key-from-mysql-table/48)

[@Coderuck](http://coderuck.com/)
OCI Oracle Linux 7 postfix postdrop #error #bug #fix
Tags: oracle, postfix, bug
Published: 2020-02-17 11:46:42

Are you running an OCI Oracle Linux 7 instance and getting postfix postdrop errors when you try and send mail ?

```
postdrop: warning: unable to look up public/pickup: No such file or directory
```

bug fix
```
# mkfifo /var/spool/postfix/public/pickup
# systemctl restart postfix
```

```
# ls -l /var/spool/postfix/public/
total 0
srw-rw-rw-. 1 postfix postfix 0 Feb 17 11:38 cleanup
srw-rw-rw-. 1 postfix postfix 0 Feb 17 11:38 flush
srw-rw-rw-. 1 postfix postfix 0 Feb 17 11:38 pickup
srw-rw-rw-. 1 postfix postfix 0 Feb 17 11:38 qmgr
srw-rw-rw-. 1 postfix postfix 0 Feb 17 11:38 showq
```

however amazing / good you think the OCI 'AlwaysFree' platform is unfortunately support is NOT FREE so even though there is an OFFICIAL bug report you cant see the answer without paying out some dosh

* [Oracle Linux Postfix Bug #2608297](https://support.oracle.com/knowledge/Oracle%20Linux%20and%20Virtualization/2608297_1.html)
* [Oracle PAID Support Registration](https://docs.oracle.com/cd/E74665_01/MOSHP/registration.htm#MOSHP1516)

so many thanks to the following for publishing the oracle linux postfix bug fix for FREE !

* http://www.databasically.com/2009/12/02/ubuntu-postfix-error-postdrop-warning-unable-to-look-up-publicpickup-no-such-file-or-directory
* https://www.itechlounge.net/2011/11/postfix-postdrop-warning-unable-to-look-up-publicpickup/
* https://wayilearn.blogspot.com/2011/11/fixing-error-postdrop-warning-unable-to.html

`#bugfixesshouldbefree` `#freetheweb` `#freemeansfree` `#freemeansfreedom`
How to Work With JSON in the Command Line and Terminal With FX
Tags: javascript, programming, terminal, softwareengineering
Published: 2020-02-20 18:21:17

---
title: How to Work With JSON in the Command Line and Terminal With FX
published: true
date: 2020-02-17 11:44:35 UTC
tags: javascript,programming,terminal,software-engineering
canonical_url: 
---

[![](https://cdn-images-1.medium.com/max/2048/1*n7hiw-rddd3pK13I7VCrHA.jpeg)](https://medium.com/better-programming/how-to-work-with-json-in-the-command-line-and-terminal-with-fx-58ac3cef8e04?source=rss-3a534b5053e6------2)

Easily handle pipe curl requests and handle the JSON in your terminal

[Continue reading on Better Programming »](https://medium.com/better-programming/how-to-work-with-json-in-the-command-line-and-terminal-with-fx-58ac3cef8e04?source=rss-3a534b5053e6------2)
Is Semantically Correct Markup Really Important In Modern Web Development?
Tags: html, markup
Published: 2020-02-17 11:37:06

---
title: Is Semantically Correct Markup Really Important In Modern Web Development?
published: true
description: 
tags: HTML, markup
---
In an era where javascript frameworks allow you to dynamically set title and meta tags, how important is semantically correct HTML for SEO?
how about using OCI to host a personal theia ? 
Tags: cloud, theia, watercooler
Published: 2020-02-17 11:02:14

now that ive got an OCI 'AlwaysFree' instance with node 10 how about using it to host a personal [theia](https://theia-ide.org/) ? 

URGH will i ever get any work done today ?

`#projectoftheday`

UPDATE 

OMG it almost works ! 

the PROBLEM is im seeing sourcecode files on the remote server !

SSH to REMOTE OCI instance
```
$ yarn theia start
```

SSH tunnel to REMOTE OCI instance
```
$ ssh -L 3000:localhost:3000 opc@my.oci.vm -N &
```

i wanted to see / edit the sourcecode files on my PC !

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/nagqn14cw2tss6brcfcq.png)
Empowered Communities with Jono Bacon
Tags: devrel, podcast
Published: 2020-02-17 10:56:50

Trick question of the week:
*Why should you invest in a community and how can you empower your community?*

That's a difficult one, unless you look at the value a community gives your business. If you've been following this podcast for a while, you have noticed how often the importance of communities comes up. That's because their value can be huge!

How huge?
Such that if you wanted to pay for it you probably couldn't afford it.

Today's episode is -you guessed it- all about communities. We're joined by Jono Bacon who comes with rich insights on:

  * How to create your community
  * How to empower it to grow 
  * How to measure its success
  * How to avoid common mistakes

A must-listen if you care about communities. 

Jono will join the [Future Developer Summit] (https://www.futuredeveloper.io/?utm_source=devto&utm_medium=podcast&utm_campaign=jono) for a fireside chat. Is there something you'd like to hear about at FDS? [Tweet about it] (https://clicktotweet.com/fvf81). 

**Jono Bacon** *is an industry-leading consultant, author, advisor, and speaker. He previously served as Director of Community at Canonical, GitHub, and XPRIZE and runs Jono Bacon Consulting where he provides community strategic development, leadership, and advisory services*.
Magento Web Development Company in India
Tags: magentodevelopment
Published: 2020-02-17 10:56:06

<p>We have a proven track record as a<a href="https://charumindworks.com/magento-web-development/"> Magento development company in India</a>, known for matching the needs of your business to Magenta’s feature-rich infrastructure. Whether you need promotional campaigns, shipping, merchandising, payment options, or all of the above, we plan for future expansion of your company. One of the best reasons to <a href="https://charumindworks.com/hire-magento-developers/">hire Magento developer</a> is to ensure the smooth integration of features with the aesthetic of your site.<br>
Best effective<a href="https://charumindworks.com/"> Magento website design &amp; development services in India</a> allows you to keep up with ever-evolving site templates and manage your site with ease. Being the<strong> best Magento Development Company in India</strong>, we approach each project with the client’s unique needs in mind while still keeping costs manageable.</p>
its time to get ruthless !
Tags: smn, bmn, watercooler
Published: 2020-02-17 10:50:56

spending far TOO much time on DEV.TO and getting far TOO little coding done ! 

so i have decided to get ruthless and will no longer follow you back unless you have valid [github](https://github.com/osde8info) AND [instagram](https://www.instagram.com/osde8info/) AND [twitter](https://twitter.com/osde8info) SMN links !

PS bonus points for valid [pinterest](https://www.pinterest.co.uk/osde8info/) and [twitch]() SMN links
Aplikasi Android yang akan dibuat
Tags: android
Published: 2020-02-17 10:32:36

---
title: Aplikasi Android yang akan dibuat
published: true
description: Aplikasi yang akan dibuat dan diupload ke Play Store
tags: android
series: APK
---

# Kecepatan membaca

- Klik `mulai`
- Satu bacaan random
- Klik `selesai`

# Pug playground

- Include Bootstrap 3 dan jQuery
- Pug

# CV builder

- Ngisi form
- Klik tampilkan, mengarah ke web dengan mengubah variabel-variabelnya
to UUID or not UUID 
Tags: uuid, ids, guid, discuss
Published: 2020-02-17 10:32:17

Just noticed that [OCI](https://www.oracle.com/cloud/free/?source=:ow:o:p:nav:) dont use a UUID for your instance names they SIMPLY use "instance-YYYYMMDD-HHMM"

Hmmm ! but what if i used the OCI to create more than one instance in a minute ? Does anyone know what would happen ?

PS will now be creating all my instances in the evening at 19:17 ! `#1917fan` `#1917homage` `#1917themovie`
Advanced TypeScript Exercises - Question 3
Tags: typescript, javascript
Published: 2020-02-17 10:27:18

--- series: Advanced TypeScript Exercises ---

Hello again. Today's question is about typing function with two arguments being union type. The goal is to block possibility to pass mixed types into arguments, so if the first argument is a `number` then second also needs to be `number`, in other words there is dependency between arguments which we need to write.

```ts
function f(a: string | number, b: string | number) {
    if (typeof a === 'string') {
        return a + ':' + b; // no error but b can be number!
    } else {
        return a + b; // error as b can be number | string
    }
}
f(2, 3); // correct usage
f(1, 'a'); // should be error
f('a', 2); // should be error
f('a', 'b') // correct usage
```

The whole code can be found in [the playground](https://www.typescriptlang.org/play/index.html#code/GYVwdgxgLglg9mABMAFAQwFyIM5QE4xgDmiAPomCALYBGApngDSI1a4HFkXX14CUiAN4BYAFCIJiGMEQooATwAOdODLSIAvFsQBydoSI6BI8ZLN46UEHiTqA1Low7EDmgG5EAek8U4iBnhweCwgUCyIEGhI9Ny0DACEYmYAvv4ANth0QklmkhZWNoj2LB7e-niBwWjY4ZHRWZRxweT6xDkSyWKdomKoAEzMAMx8pT4QQRbQiCDYaER0vSgAjMw6aEajOAAWcCBpACYsWQFBi2s6zH0jXj7YO3uHMSd4Z+urNEY3ERN0UzNzdCAA)

There is not one possibility of correct typing, can you solve this puzzle in many ways? Is it possible to type it without using type assertions? Post your answers in comments. **Yes you can change the implementation also, the key is to have the same behavior + type safety**. Have fun! Answer will be published soon!

**This series is just starting**. If you want to know about new exciting questions from advanced TypeScript please follow me on [dev.to](https://dev.to/macsikora) and [twitter](https://twitter.com/macsikora).
free vector icons
Tags: freeicons, vectoricons, svgicons
Published: 2020-02-17 10:12:30

What Are We

Freeicons is a platform for designers and developers for a wide variety of high-quality icons of different styles, sizes with SVG, PNG, AI, EPS and PSD formats that could be used in all their personal and commercial projects. We're a successful team of designers and we provide products and services for free to those who can’t afford to pay with money.

Our purpose

Usually, users found graphic vectors by searching several websites for a particular illustration. However, with Free Icons, we help a user discover exclusive illustrations and graphic resources carefully designed by our designers.

Many icon websites publish freebies created by a bunch of artists whereas we produce all our icons in-house.

Responses to our site

We receive thousands of visits every month from all over the world in terms of quality and utility that we offer daily. Users are welcome to give icon ideas, comments, links, and suggestions.

Get inspired as you browse the different categories or view all of the amazing new vector files added to the site each day.

New icons are added daily by the creator community. Icons are everywhere. Street signs, business, phones, new apps being created every day, websites, navigation, etc..! They can be used in fun, creative and abstract ways.

Use freeicons.io to tell visual stories, create real-time infographics, build interactive games, or whatever crazy idea you have.

What do you want to build?

Media Coverage

In the past years, freeicons were mentioned in many places, websites/forums, and some print magazines. According to the Site Explorer, we have currently hundred of links to our homepage www.freeicons.io and thousands of deep links to our site.

Thanks to all the people sharing the site, word and placing links to us!

A link from your website, small or big, is the best thing you can do for us.

Credits and thanks to Icon Designers
A BIG THANKS for the amazing icons...

We are thankful for the community we’re all part of. Despite its flaws, it’s made up of helpful, caring people who want to share their knowledge and make themselves and what they create better
An idea for unit testing glsl
Tags: testing
Published: 2020-02-17 09:28:11

I have been playing with glsl lately as part of an exploration of another project. One thing that is sorely lacking is debug and test tools that are modern and easy to use.

I have found that it is possible to assert values together and that thanks to glslify we can "export" and "require" code. That's 3 parts of the unit testing ingredients, modularity and assertion. But one thing missing is to evaluate the value of a test.

Historicaly developers have used colour to debug a shader, printing a bright colour to convey meaning, I am not a firefly, I don't understand this photometric communication, so what about text? It's hard to get data back into the CPU from the GPU, but what we can do is render a bitmap font. If that font rendered information about the evaluated value, line number and so on we would have an output as an image!

Ocr is a technology that can read text from an image, js already has a few libs that can do this. What I propose is that the generated test output is read by Ocr and then dumped to a test runner, probably a framework written in node that can run a headless browser.
Why and when should your company send you to a tech conference?
Tags: discuss, webdev, career, techtalks
Published: 2020-02-17 09:19:46

I'm a junior dev at a small non-tech company, and have just convinced my boss to send me to a tech conference (React Conf is happening for the first time in Japan!).

In return, I'm attempting to set some standards as to why and when the company should send/support someone to a tech conference, for future occasions.

Some of the criteria I have in mind:
- Does the conference focus on single technology, or some broader field (eg. Blockchain)?
- Does the company currently use the tech, if not would it be reasonable to invest in it for future usage?
- Some sort of output, whether it be a blog post or a lightning talk (this should probably be crystal clear)

Here are some questions I'm having:

- Do you think dev employers should support devs attending conferences? What are your reasons?
- If your organization has a clear guideline/standard, what do/should they look like?
101 uses of the archive.org waybackmachine
Tags: archive, waybackmachine
Published: 2020-02-17 09:16:30

101 uses of the archive waybackmachine

* see when a website started
* see who previously owned a website
* see branding changes
* ...

ok you get the idea

for example DEV.TO looked pretty boring back in 2015-07-19 ! 

https://web.archive.org/web/20150719190833/http://www.dev.to/

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/i/qg3f9cqhwizvkq7761mn.png)
Fake tagged template string literal to enable syntax highlighting in VSCode
Tags: javascript, vscode
Published: 2020-02-17 09:10:36

This is as simple as

```ts
const lit = (s: TemplateStringsArray, ...args: any[]) => s.map((ss, i) => `${ss}${args[i] || ''}`).join('')

const css = lit  // Which also with inline-css, not only real *.css files
const html = lit
const pug = lit
const sql = lit
```

Now this works,

```ts
sql`SELECT name FROM sqlite_master WHERE type='table'`
```

## Required VSCode extensions

- [vscode-styled-components
](https://marketplace.visualstudio.com/items?itemName=jpoissonnier.vscode-styled-components) for CSS
- [vscode-sql-template-literal
](https://marketplace.visualstudio.com/items?itemName=forbeslindesay.vscode-sql-template-literal) for SQL

For HTML and Pug, it seems to work without a plugin.

## Why?

Before then, I don't notice that there are so many [reserved keywords](https://www.sqlite.org/lang_keywords.html) in SQLite, and I ran to trouble sometimes. [This can be escaped](https://github.com/patarapolw/liteorm/blob/9ce6df47e86f3885227e4e682c1f43c32779b51d/src/utils.ts#L14) with `"..."`.

Tagged template literal identify a possible keyword, which maybe unsafe, so it is better. (Not sure which SQL dialect does it mean, though.)

```ts
sql`SELECT "name" FROM sqlite_master WHERE type='table'`
```

## Other kinds of escaping

For HTML and Pug, I believe you can try <https://www.npmjs.com/search?q=html%20entities>

At the current point of time, I am not sure why you need [lit-html](https://lit-html.polymer-project.org/).
Deploy Digital Certificates to the iOS System keychain Store
Published: 2020-02-17 08:49:55

iOS devices became widely used in an enterprise level daily-work now a days, due to this we need to have guaranteed secure communications between device and associated enterprise services.

So question raise about enterprise environment security which can be covered with the help of VPN or any other third party tool. Actually what VPN does is creating secure tunnel between identity device and service which is hosted on cloud or on partner networks.


https://blog.joshsoftware.com/2019/05/30/deploy-digital-certificates-to-the-ios-system-keychain-store/
Celebrating 10K+ Followers 🎉🙌 Thank you DEV and everyone! 👋
Tags: webdev, tutorial, productivity, opensource
Published: 2020-02-17 08:17:58

<h3>Wow, It really feels awesome 🙌 </h3>

------------

Hi there! 👋
I am Shahjada. I live in Germany. I have been working as a Software Engineer for the last 9 years.


It's been more than a week since I got 10000 Followers. I thought I should thank DEV and everyone!

<b>Why should I thank?</b>

I have had my personal Blog Site since 2012. But I was never a regular writer! DEV really made me a regular Writer more than I was ever before.
The DEVCommunity is crazily active! And being TECH-only Space is really making DEV.to different than any other popular platforms.

<b>My Achievements</b>
- I have become one of the Distinguished Authors of 2019! That also motivated me to be regular! 👏

- One of My posts became one of the top 7 most popular articles. 🎉

- I got a few badges for writing. 😍

- Got a Gift pack for being one of the Distinguished Authors 🧧

- Also, I received a DEV Hoody 👕

All of the above things have motivated me a lot.

<img height="525" width="305" src="https://dev-to-uploads.s3.amazonaws.com/i/ma1xeykaaugj4r1rttvy.png" />


<img height="725" width="505" src="https://dev-to-uploads.s3.amazonaws.com/i/uba8r50g13li20tucr9x.jpg" />


I am also a regular reader. I love reading articles! I follow a lot of people here and checkout FEED Page always.

If you think, you know/follow some cool people I should follow, please post his/her ID in the comments below so that I can also follow them. ☀️

Or, If you want to say <b>*HI*</b>, please feel free to drop a comment/message 👋

My Twitter: https://twitter.com/destro_mas

See you in my next article!

Till then,
Cheers!
:wave:
The Road is never too long
Published: 2020-02-16 22:18:18

*"A journey of a thousand miles starts with a single step"- unknown*
It is not suprsing to see a year old child struggling to walk or even stand. Tasks like this pose a serious challenge to them, but eventually they learn to stand, and as time goes on, they start walking. Our life achievements are also like that, they pose serious challenges and we find it hard to determine whether we wish to continue or not. We shouldn't forget, we won't be able to understand things if we don't give them attention, we won't be able to know our books if we don't read them, we won't be able to know programming if we don't start coding. **"There is no way you can do anything if you don't give it a try".** We hear stories of successful people and how they were able to achieve, we hear them say something like *"I didn't sleep when others were", "I never knew I could until I started doing it",* all these statements were not made just to make it look real, but to actually serve as a trigger to others. If you start now, you may find it hard to continue, you may even find it hard to begin!, but remember this, **"no road is too far, we only need to know where exactly we are going".** My ultimate advise to you is to not stop, don't stop reading that book, don't stop coding, don't stop believing, don't stop living. You are the best person to tell your story so make it a good one. 

This is my first post, kindly leave your comments if you have one. Thank you very much for reading
PHP Doc or Docx Word File to TXT extract Content Example
Tags: php, doc, docx
Published: 2020-02-17 08:02:00

    class Doc2Txt {
	private $filename;
	
	public function __construct($filePath) {
		$this->filename = $filePath;
	}
	
	private function read_doc()	{
		$fileHandle = fopen($this->filename, "r");
		$line = @fread($fileHandle, filesize($this->filename));   
		$lines = explode(chr(0x0D),$line);
		$outtext = "";
		foreach($lines as $thisline)
		  {
			$pos = strpos($thisline, chr(0x00));
			if (($pos !== FALSE)||(strlen($thisline)==0))
			  {
			  } else {
				$outtext .= $thisline." ";
			  }
		  }
		 $outtext = preg_replace("/[^a-zA-Z0-9\s\,\.\-\n\r\t@\/\_\(\)]/","",$outtext);
		return $outtext;
	}

	private function read_docx(){

		$striped_content = '';
		$content = '';

		$zip = zip_open($this->filename);

		if (!$zip || is_numeric($zip)) return false;

		while ($zip_entry = zip_read($zip)) {

			if (zip_entry_open($zip, $zip_entry) == FALSE) continue;

			if (zip_entry_name($zip_entry) != "word/document.xml") continue;

			$content .= zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));

			zip_entry_close($zip_entry);
		}// end while

		zip_close($zip);

		$content = str_replace('</w:r></w:p></w:tc><w:tc>', " ", $content);
		$content = str_replace('</w:r></w:p>', "\r\n", $content);
		$striped_content = strip_tags($content);

		return $striped_content;
	}
	
	public function convertToText() {
	
		if(isset($this->filename) && !file_exists($this->filename)) {
			return "File Not exists";
		}
		
		$fileArray = pathinfo($this->filename);
		$file_ext  = $fileArray['extension'];
		if($file_ext == "doc" || $file_ext == "docx")
		{
			if($file_ext == "doc") {
				return $this->read_doc();
			} else {
				return $this->read_docx();
			}
		} else {
			return "Invalid File Type";
		}
	}
    }



call class example :

      $docObj = new Doc2Txt($inputfile);
					
      $txt = $docObj->convertToText();
Inference with Tensorflow in Java
Tags: java, tensorflow, keras
Published: 2020-02-17 07:10:53

---
title: Inference with Tensorflow in Java
published: true
description: We talk about the struggles I had with running inferences in Java using a Keras model in tensorflow.
tags: java, Tensorflow, keras
cover_image: https://dev-to-uploads.s3.amazonaws.com/i/qvtrg22du7lqikkthiki.jpg
---

{% youtube wpCu4buJOvE %}

We talk about the struggles I had with running inferences in Java using a Keras model in tensorflow.