Hacker Newsnew | past | comments | ask | show | jobs | submit | zerratar's commentslogin

{ "data": { "field1": "hello", "test": [ "what", "is", "this" ] }, "something": "yay" }

becomes

data,something [object Object],yay

I already knew complex types / nested objects would not work. but what makes json stronger than csv is that you can handle more complex data types and most people will use json that way too. Otherwise json would just be a less bloated xml, which is a less bloated csv. lol


Its luckily a .net core 2.0 application so it is possible to run on mac and linux. :-) not completely hasslefree though. As you would need to install the required runtime for it.

Is python "natively" supported on those platforms or do you have to install some prerequisites for it to work? If so, it's just as "hard" to run this as Subliminal.


Yes, python is included, though I think macOS uses python 2.x (though people using cli tools will often have the latest). I’m guessing a google search could tell you what is bundled for macOS and various Linux distros.


Interesting, which part of it? The fact it consumes from subscene.com without asking them or because downloading subtitles are illegal?

Reason why I'm asking is because I don't know, and obviously I don't feel like getting in trouble for a weekend hobby project.


In a way there is nothing illegal about offering links to another site. But subtitles are a derivative work of the original text so they are copyrighted and also you typically only need subtitles for movies obtained in a questionable way. So you immediately get involved in legally shady stuff.

The main problem is that if you get sued you stand to lose a lot of money, even if you eventually win.


I'm glad you find this useful!


Unfortunately, not at the moment. It would be awesome If I could get that nailed. But that feels like it's a whole project of its own.

I'm exploring the idea though and doing some research on how this can be done. So it could be a feature for the future. :-)


I experimented with something related, but instead of fixing subtitles i focused on filtering out bad ones. My approach was:

* Extract a few sentences from the middle of the subtitle file.

* Extract the audio for those sentences from the video file

* Run speech-to-text and verify that at least a few of the words were the same.

It kind of worked on some shows, but not reliably..



Awesome findings! Thank you.


Nice!

I will compile a list later of media players that has this feature and put it on SubSync github so it can help people out as much as possible.


I have no idea. I've honestly never heard of subliminal until just recently (yesterday) and I've never really tried it out.

But on first glance it seem like subliminal is more for developers in general as it provide apis to use it, it also have a bunch more providers than what SubSync currently have and most likely a much better way for guessing which subtitle is correct. It also seem to focus more on individual subtitles rather than trying to batch download them unlike SubSync. Although they do have support for downloading for a whole folder. How well that works I have no idea.

In the end, Subliminal have been in development for over 5 years and has been thoroughly tested. Whereas SubSync was a weekend project I made 2 weeks ago and never meant to compete with anything existing. I only knew I had a problem I needed to solve and wanted to share it with everyone :-)

TL;DR: I don't think SubSync offers anything unique over Subliminal at this moment. And if you're already used to using Subliminal you should keep doing so if that works good for you. :-)


I think the implication was more "why don't you incorporate subliminal support into SubSync, getting the best of both worlds?".


Yeah, I didn't mean to discourage. It's a cool project and making your own stuff is fun :)


That is an awesome tip! Thank you.


This weekend I had some real nostalgia feeling and wanted to recreate the login screen of the good ol' RuneScape Classic. But it was a bit too much fun so I ended up adding a (not complete) character creation and even some of the ingame menus.

If you're an old RuneScape player you will probably find this pretty cool. If not, then I understand if you don't.

What are your thoughts? Anything missing that should be in it?

And finally... I hope you're not going to copy/paste this to phish for real account credentials. That would be unethical.


Thank you for your comment! :-)

Haha, yep I do agree that I did not cover all important aspects of writing a decompiler. Neither did I use a stack based solution to tackle the problem.

A reminder though, the idea behind this post was to cover a little bit of everything, just trying to make it as simple as possible. This is not a fully fledged decompiler and will not decompile everything. It is to give an idea on how CIL works, how to use Mono.Cecil, and just hacking away!

Next part of the tutorial DO actually manage the stack to try and create a more complex solution. Together with code refactoring and more.

And I'm sorry for any information that I've might have forgotten and/or for any poorly written code. I will try and do better next time. Yet I hope you still like the article.

/zerratar


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: