u/fusir - 30 Archived Voat Posts in v/programming
u/fusir
  • home
  • search

u/fusir

6 posts · 24 comments · 30 total

Active in: v/programming (30)

  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››
Comment on: I give you Sugg. The new Gab universal comment addon inspired me to make one suggesting links with a similar algorithm to youtube's video suggestions

If you think that, this one sucks compared to my other one as far as free speech goes.

A live chat for every page on the internet

ok, it's a little pointless seeing how there aren't enough people on it to populate a live chat for every page on the internet. But the idea is there.

0 27 Mar 2019 13:08 u/fusir in v/programming
I give you Sugg. The new Gab universal comment addon inspired me to make one suggesting links with a similar algorithm to youtube's video suggestions
1 0 comments 28 Feb 2019 22:55 u/fusir (..) in v/programming
Comment on: Biography of Terry "I'm a White Man; I Wrote My Own Compiler" Davis: The Greatest Programmer to Ever Live

Is it scary that I kind of see some of him in me?

I'm even trying to build my own defunct OS but in javascript-ish instead of c-ish.

0 08 Feb 2019 09:10 u/fusir in v/programming
Comment on: 10 free tools for journalists to learn how to code

Please stop this meme. There are three things that run the world, business, law, and code.

Do not put these people at the center of code. And because they won't be able to really code they will be doing the soft jobs of coding, aka, being in charge.

0 30 Jan 2019 20:49 u/fusir in v/programming
JSos chat now has synchronized video
2 0 comments 19 Jan 2019 17:16 u/fusir (..) in v/programming
Comment on: I built a chat thingy.. that can be edited by anyone.

You don't know how easily it could be modified to do that. WebRTC was basically built for that.

I had sending each other screen captures to be one of the embed types as a goal. The way you do that, turning that into chaturbate is basically one line different.

0 16 Jan 2019 00:21 u/fusir in v/programming
Comment on: I built a chat thingy.. that can be edited by anyone.

Also it supports video. You just have to click your username to the left of the compose line. It only supports video targeting the side panel at the moment.

0 15 Jan 2019 22:20 u/fusir in v/programming
I built a chat thingy.. that can be edited by anyone.
1 0 comments 15 Jan 2019 22:19 u/fusir (..) in v/programming
Comment on: I've made a site for socially developing OSs to run in the browser. I just built a chat demo app to show what it can do.

Well I've definitely made some improvements. There is now an #import statement. The key is to not mind using more than one user.

I just need to set it up so you can browse other user's code. If you check back in a bit there will be a links panel to the left that will help you find things to import from and faq and other things. Right now the getscript user is good to pull from. It allows you to pull any script off the web and include it in your project with a callback once it's loaded.

#import getscript
function start () {
 //Import pdf.js
 getscript('https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js',()=>{
  //some code
 });
}

Also getscripts takes an array of urls and is inside the getscript user.

The monaco user lets you insert a highly capable text editor into the browser.

You can see it at work by putting notebook in your build and running startNotebook() in the init.

Also monaco is the text editor you see when you edit code.

0 11 Jan 2019 13:33 u/fusir in v/programming
Comment on: I've made a site for socially developing OSs to run in the browser. I just built a chat demo app to show what it can do.

The obvious thing to edit is the appearance. Go ahead and give it a try.

Just rewrite init_chat_ui and then include your username in the build and run it.

Bonus points if you split apart the css and html in your version.

0 31 Dec 2018 14:02 u/fusir in v/programming
Comment on: I've made a site for socially developing OSs to run in the browser. I just built a chat demo app to show what it can do.

I need to make it easier for users to read each other's code though, because that's kind of the point.

Here is the chat client's code, for reference if you want to change any function in your globals:
https://pastebin.com/Q5gynyUT
Here is the chat server's code (run's front end):
https://pastebin.com/W06L3J6y

It could be built far more serverless (no front end server peers) but this is what I wrote in two hours as a demo.

If it doesn't run the server probably needs to be run.
user:chat-server
pass:chat-server
and run it. I have the code backed up in case someone fucks with it.

0 31 Dec 2018 13:55 u/fusir in v/programming
I've made a site for socially developing OSs to run in the browser. I just built a chat demo app to show what it can do.
1 0 comments 31 Dec 2018 13:44 u/fusir (self.programming) in v/programming
Comment on: Using the TIOBE index it looks like C is the language to learn. It is comming back

The other thing I like about it is format. I like knowing the percent change because I want to understand trends.

0 18 Apr 2018 18:00 u/fusir in v/programming
Comment on: Using the TIOBE index it looks like C is the language to learn. It is comming back

But it also says

The ratings are based on the number of skilled engineers world-wide, courses and third party vendors

Of the four or so indexes I've found they are the only one to claim any connection to number of professionals using it. All the rest also factor in search engines except the github only indexes which I trust even less.

It would be nice to be able to scale the factors of the index.

Edit: Well fuck. That really is an unsubtanciated claim on there. https://www.tiobe.com/tiobe-index/programming-languages-definition/
I feel soiled.

0 18 Apr 2018 17:51 u/fusir in v/programming
Comment on: Using the TIOBE index it looks like C is the language to learn. It is comming back

There is one that is search engine and stack overflow (which is which language sucks so bad or has such shitty programmers they spend half their time in a search engine).

Tiobe claims that it is based on the number of people employed doing it. So they probably just give people questionairs asking what languages they use at work.

0 18 Apr 2018 17:16 u/fusir in v/programming
Comment on: Using the TIOBE index it looks like C is the language to learn. It is comming back

I liked C when I used to code in it exclusively.

I've writen a ranking based on size-growth fronteer. C still wins over Java because it is growing so much faster and I fucking hate Java.

  1. java, c
  2. c++
  3. python, sql (sql is apperently turing complete)
  4. c#, visual basic .net
  5. php
  6. javascript
  7. ruby, visual basic (not sure what makes one .net)
  8. delphi/object pascal, R
  9. assembly, PL/SQL (also not sure what that is specifically)
  10. swift, matlab
  11. perl, go
  12. objective-c

So one thing I would like to do is make C development closer to javascript (I do node). I'd like to see a cpm equivalent to npm. Conan.io is nowhere close. And I'd like to see more popular http libraries that either take advantage of theading or hyper-threads/async.

I'm wondering if someone were to just rip npm and give it a new default public repository and host npmjs.org at cpmjs.org if the end result would be at all useful in the context of c.

0 18 Apr 2018 04:16 u/fusir in v/programming
Using the TIOBE index it looks like C is the language to learn. It is comming back
1 0 comments 18 Apr 2018 04:06 u/fusir (..) in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Nope. I figured it out. It was mostly a glitch on why it wasn't working easily. You just add a <track> element with a link to the subtitles.

Here's the deal with the glitch. The subtitles need to be on the same domain. It doesn't matter if you have permissive cross domain set. For this it has to be on the same domain. The real glitch is that Firefox doesn't tell you that's a problem while chrome does tell you what's wrong.

But on firefox you can just use a dataurl instead of a regular url.

Compared to your solution it saves you from constantly reading the time from the player and associating it with a position in a subs file which you would have to parse yourself.

Way easier to just to link to it if you control the site or inject the <track> with jquery on a site you don't control.

Thanks for giving your thoughts though.

0 21 Mar 2018 07:26 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

THE COMPLETED RESULT:

Paste this into a browser on cytu.be and you get subs for Boondocks:
https://venus.i.ipfs.io/ipfs/QmPw7u4LkByUMPkcLbA9LLHiA8qGNannLfL1n4qfY5tCLT

0 18 Mar 2018 21:31 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Here is a working example inside Firefox:
https://www.iandevlin.com/html5test/webvtt/html5-video-webvtt-sample.html

0 18 Mar 2018 19:15 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

<track label="English" kind="subtitles" srclang="en" src="captions/vtt/sintel-en.vtt" default>

<track label="English" kind="subtitles" srclang="en" src="https://venus.i.ipfs.io/ipfs/QmTWJQxaPn6TMKfZugH4DqpbMp23otMcvgEXzZTUFeoFLh/boondock.vtt" default>

0 18 Mar 2018 18:56 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Folder for webVTT subs: https://venus.i.ipfs.io/ipfs/QmTWJQxaPn6TMKfZugH4DqpbMp23otMcvgEXzZTUFeoFLh

0 18 Mar 2018 18:54 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Currently uploaded Boondock Saints (Folder): https://venus.i.ipfs.io/ipfs/QmeQFtHC8K9DiM8ZybxFJgfZVk3skfS261Azk7uou8VLBi

0 18 Mar 2018 18:52 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Our Working Files:

0 18 Mar 2018 18:51 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Convert SRT files to webVTT
http://www.webvtt.org/

0 18 Mar 2018 18:50 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

The downside of this link is that it assumes custom controls (as in our own). Well video.js already does that.

I know from doing this earlier this earlier that video.js does show the CC menu. You can select the item which didn't seem to toggle them on even in the javascript, but you can toggle the track on in the javascript. This changes the state of the track but doesn't appear.

^ That is where the extra work comes in. Unfortunately this link doesn't seem to help me close the gap between the video.js controls and the javascript.

BTW, why not look up how to do it in video.js? Because video.js has multiple versions of out dated documentation floating around and I said fuck it. It's still an html5 player and by polymorphism any JS that puts subs onto html5 video should work on that player.

0 18 Mar 2018 18:45 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

This is the best source: https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Adding_captions_and_subtitles_to_HTML5_video

You add a <track> to the video and you have to do some other modifications to the video player besides.

I've gone down this route before and it didn't seem to work specifically because of the extra things that have to be done. The point being that video.js doesn't make <track> work out of the box.

0 18 Mar 2018 18:33 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

This one get's it kind of close. Does it completeling avoiding any html5-video property.

http://v2v.cc/~j/jquery.srt/

0 18 Mar 2018 18:27 u/fusir in v/programming
Comment on: Working on embedding subtitles into html5 video and I'm using this thread as a link dump

Parse srt files into an array: https://www.snip2code.com/Snippet/83321/Simple-SRT-parser-in-JavaScript

0 18 Mar 2018 18:23 u/fusir in v/programming
Working on embedding subtitles into html5 video and I'm using this thread as a link dump
2 1 comment 18 Mar 2018 18:22 u/fusir (self.programming) in v/programming
  • ‹‹‹
  • ‹‹
  • ‹
  • 1
  • ›
  • ››
  • ›››

archive has 9,592 posts and 65,719 comments. source code.