Introducing a Programming QnA Community on Steemit. #steemdevqna

in #steemdevqna7 years ago (edited)

steemdevqna.png

Foremost I'd like to thank and welcome all the people who are interested in this idea who either commented and\or who up-voted the previous post(s):

@jesta, @mcsvi, @cryptogee, @disbelieve, @n3bul4, @cybercodetwins, @drpuffnstuff, @discernente, @velourex, @mohyeh, @kevinwong, @xeldal, @donkeypong, @liberosist, @dunia, @vcelier, @pharesim, @leongkahn, @wijuwiju, @theb0red1, @paulc, @sidwrites, @allyouneedtoknow, @sethlinson , @midnas-howler, @coocoocachoo, @qed, @hilarski, @succ33d11, @jimmyhmiller, @thatsweeneyguy, @jo3potato, @kakradetome, @xdauqzaru, @gbonikz

Special thanks to @jesta, @hilarski, @liberosist, and @vcelier for either sharing and\or up-voting the previous post.

As we all know software questions and answers may take hours of our time to write up and solve. Thanks to @Steemit we have the opportunity to be compensated for those lost hours. We will be building a QnA section similar to StackOverflow using the #steemdevqna tag as a sub-forum to @jesta's already established #steemdev community. The goal of this QnA sub-forum is to build incentive for software engineers and users to post thorough questions, and to allow others to propose their working answers.

image.png

Here is a complete e.g. of what a post should look like on the #steemdevqna forum, (pulled from my StackOverflow):


Elixir Laravel SyntaxError: Unexpected token

I made some changes to my gulpfile.js. Then I received the following syntax error in my terminal after executing the gulp command:

'version' errored after 657 μs
     SyntaxError: Unexpected token }
        at Object.parse (native)
        at VersionTask.deleteManifestFiles (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/VersionTask.js:114:29)
        at VersionTask.gulpTask (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/VersionTask.js:72:18)
        at VersionTask.run (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/Task.js:139:31)
        at /var/www/html/work/node_modules/laravel-elixir/dist/tasks/GulpBuilder.js:60:37
        at Array.forEach (native)
        at Gulp. (/var/www/html/work/node_modules/laravel-elixir/dist/tasks/GulpBuilder.js:59:54)
        at module.exports (/var/www/html/work/node_modules/orchestrator/lib/runTask.js:34:7)
        at Gulp.Orchestrator._runTask (/var/www/html/work/node_modules/orchestrator/index.js:273:3)
        at Gulp.Orchestrator._runStep (/var/www/html/work/node_modules/orchestrator/index.js:214:10)

Looking in my public/build/css directory I noticed all my css versions are incorrect.

My gulpfile.js file:

const elixir = require('laravel-elixir');

require('laravel-elixir-vue');

elixir(mix => {
// for the application, after login
mix.sass(['styles.scss','imports.scss'])
.version(['css/styles.css','css/imports.css']);
});

How can further debug or fix this `gulp` error?

TAGS: steemdevqna laravel gulp json css


Here is a complete e.g. of what an answer should look like:


After opening the rev-manifest.json file in the public/build/ directory, I discovered it was somehow missing css/imports-xxxxxxx.css in the json list. I deleted rev-manifest.json and entered the command gulp. Now after opening rev-manifest.json all the css files are listed and the error is gone.


Using the #steemdevqna tag post the questions with your code followed by additional tags e.g.

steemdevqna php functions email imap
steemdevqna python django image file

Thanks to @whd who demonstrated that we can use triple backticks ``` to post html code. e.g.

<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

To post other programming languages such as php, python, c++, java, sql, etc. I would suggest using the <pre> </pre> tags e.g.

if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) {
    $protocol = $_SERVER['SERVER_PROTOCOL'];
    if ( ! in_array( $protocol, array( 'HTTP/1.1', 'HTTP/2', 'HTTP/2.0' ) ) ) {
        $protocol = 'HTTP/1.0';
    }
}

Screenshot from 2017-07-01 01-46-22.png


QnA Community Rules:

  1. We must keep the community ethical.
  2. If someone gives you a working answer you should upvote their answer to build community incentive!
  3. Let's keep #steemdevqna a question and answer thread only!
  4. The title should state the topic in a sentence or question.
  5. The post should include a question or two, and it's a good idea to bold the question.
  6. The post should include resources needed to solve the question such as providing code, or an errormessage using <pre></pre>, or backticks ``.
  7. The answer should be in the comments of the post.
  8. The answer should fully solve the question's problem.
  9. Posts and answers should be written in a format so that others may benefit from the knowledge.

image.png

Here are numerous tags to use in our questions to help get us started!

  1. Programming languages:
    php, cplusplus, python, rubyonrails, csharp, c, java, xcode, android, bash

  2. Web development:
    php, html, css, javascript, ajax, nodejs, jquery, json, wordpress, django, laravel, class, oop, functions, enum, variable, syntax, arrays,

  3. Database management should include:
    sql, mysql, postgresql, sqlite, phpmyadmin, mysqlworkbench

  4. Operating Systems:
    linux, ubuntu, debian, macos, android, windows10, windows8, windows7, windowsvista, windowsxp, windowsdos, os

  5. Applications:
    office, openoffice, word, powerpoint, excel, thunderbird, outlook, chrome, firefox, photoshop, adobe, sublime, visualstudio

  6. Networking:
    http, https, ftp, ftps, ssh, ssl, tlt, udp, cisco

  7. Email:
    email, imap, smtp, pop3,

  8. Hardware:
    macbookpro, hdd, ssd, asus, hp, acer, dell, server, router, switch, motherboard, hdmi, vga, soundcard, graphicscard

  9. Servers:
    apache, apache2, tomcat, xampp

  10. Cryptocurrency/Blockchain:
    crypto, cryptocurrency, blockchain, bitcoin, ethereum, litcoin, ripple, fastcoin, eos, steem

  11. Application-Programming-Interface API:
    api, steemapi, facebookapi, twitterapi, instagramapi, pinterestapi, tumblrapi, spotifyapi, visaapi, paypalapi, mastercardapi,

  12. Content Management Systems CMS and Frameworks:
    wordpress, joomla, drupal, typo3, laravel, django,

  13. Plans and modeling:
    eer, bpmn,

  14. @cybercodetwins wanted me to add:
    ar, vr, lot, virtualreality, augmentedreality

These are just some example tags of things I've worked with (long list).

Of course we need hundreds of additional members before we can receive answers to our questions. So my advice is get your programming friends on @Steemit, convert people from StackOverflow, and direct the newbies to the community as well!

View the first sample question and answer I made here!

Cheers to our new idea #steemdevqna and expanding the #steemdev community!

Thomas Fink


P.S. If anyone has contact to the @Steemit platform developers please ask them to add a nicer <html> tag we can use to display code.

image.png

Sort:  

Hey, great effort setting this up! One question though, do you know how I can subscribe to certain tags on steemit? Right now it seems like I would have to search each tag each time I wanna see if there are new posts.

I don't believe it is possible to subscribe to tags on Steemit yet, however you can checkout @jesta's BBchain. Perhaps in the future I'll develop a site similar to StackoverFlow on the steem blockchain api. I have lots of other work to do for the next month or two before I have the time to.

you can display code with markdown even with syntax highlight (but idk if highlight works here) :)

<pre></pre> and <code></code> work for all code except for html. Backticks `` work for html, but only if there are no breaks in the html.

what about tripple ` ?

<!DOCTYPE html>
<html>
<body>
```html
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Thanks man this was what I was looking for!

<!DOCTYPE html>
<html>
<body>
```html
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Awesome! :)

This post has received a 9.30 % upvote from @booster thanks to: @finkavenue.

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.028
BTC 66052.74
ETH 3320.33
USDT 1.00
SBD 2.69