Giter Site home page Giter Site logo

javier-lopez / learn Goto Github PK

View Code? Open in Web Editor NEW
241.0 18.0 46.0 2.92 MB

random files I've been collecting & programming

Makefile 0.02% C 2.30% Shell 34.49% Perl 4.65% Python 11.79% Processing 0.15% Go 0.79% HTML 45.50% AutoHotkey 0.09% Batchfile 0.02% VBScript 0.01% PowerShell 0.18%

learn's Introduction

Random files I've been collecting & programming

learn's People

Contributors

hoehermann avatar javier-lopez avatar jezek avatar jose-rojas-nebulosa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learn's Issues

Update Script

You can update your amazing script to new 3.15 Kernel? Thanks!

You should be using the MD5sum HTTP response header for wget-finder

I'm pretty sure most HTTP servers support just returning the MD5sum of a file, so you can just request that instead of downloading the whole file and MD5summing it locally (and wasting bandwidth/time).

I might make a PR of this tomorrow if I have time

really good idea, btw! saw this on HN

simple-dlna-browser is unable to find multimedia by filename

Hi Javier,

Thank you for the simple-dlna-browser script. I have been able to use it
on my Puppy Linux PCs to access my DLNA host (which is another Puppy
Linux PC running a version of minidlna). Simple-dlna-browser is very
lightweight compared to VLC, Kodi etc etc! Just what I was looking for.

May I ask you a question please? Mostly the playback is working well for
me but I notice a symptom that I do not fully understand. It may be
something to do with the minidlna server rather than simple-dlna-browser
client.

First let me explain how I use the browser script:

  • I start the minidlna server on the host PC
  • I start a bash script on the client PC which asks the user to enter a
    character or characters from the title of the song they wish to play. I
    then enter that character into the terminal command that invokes s-d-b
    as follows:
    #simple-dlna-browser c | xargs mplayer
    (where "c" represents the character or string that the user entered).

for example:
If I want s-d-b to play only one song I can enter the exact song title
eg: winner takes it all
(This will play the Abba song "The winner takes it all")
If I want s-d-b to play a selection of songs I can enter a less unique
string eg: winner
(This will play the same abba song above but also the song "Winner" by
Pet Shop Boys)
If I want s-d-b to play a whole bunch of songs I can enter the character
"w" and get both of the songs above, as well as all other songs that
have a "w" in the title.

This works really well for me - ok I am not really using the browser
functionality at all but it does let me access my DLNA server from my
client PCs in a very lightweight way - with none of the "hook up" delay
that I get using VLC.

So here is my problem:

Consider the song "Wind Of Change" by Scorpions. On my server I have
renamed this as "winds.mp3" just for convenience.
For some reason it does not play when I type "winds" - one of a small
number of songs that does not play even though I can see it available on
the server and can see it available within the sql database created by
the minidlna server.

As far as I can tell the song is not playing because it has been
renamed. The file name is visible in the database - however s-d-b
obviously does not find that song as a valid entry in the database. When
I export the database as a .csv file I can definitely see the song in
there but in the title column it is shown as "Wind Of Change" (not
"winds") so I assume that there must be some ID tag carried within the
song that is causing minidlna to make it available with a different name
to what I wanted to give it.

I have attached a gnumeric file showing the output of that csv file. In
order to test this problem I made a series of folders (4 deep) and put
some "filedepth.mp3" test files in each level so that I could see what
s-d-b was able to find. You can see in row 32 that my file name on disk
(column A) matches the name in the database (column D) for all other mp3
files except the "winds" file.

After seeing that I realised that I was able to get s-d-b to play that
particular song as long as I used the file's "internal name" of "Wind Of
Change" rather than the title that I had given it.
(sorry about the long winded explanation)

Are you able to tell me if this is something to do with the way that the
minidlna server prepares the database - or is it a limitation of s-d-b
please? If it is a limitation of s-d-b is there any easy way to get it
to search on the song title as given by the user - and ignoring any ID
tags or online database/album info?

Sometimes I like to rename my songs to prevent confusion and it would be
nice to know I was searching on the correct filename. Obviously if I was
properly using the browser function of s-d-b I would be able to see the
actual filename as found in the database - but I struggled to understand
the formatting of the file and folder names (such as '64$2' etc). I
eventually worked out how to navigate but I was too slow and decided to
let s-d-b do the character match method - much quicker!

Many thanks for any information you can offer.

Regards
Ian Williamson
Auckland
New Zealand.

What does this code mean?

I didn't know where to ask a question like this; I'm looking at simple-dlna-browser and I don't understand a piece of syntax, on line 246 what does the following snipped do?

"${@:-0}"

I know it's indexing something in the array of passed arguments to the function, but is -0 the number of elements or something? Is it all the arguments together?

RFE simple-dlna-browser show subtitles

After find how I can navigate , -v option is crucial to know the folder ID [1] , I'd like to know what subtitles the minidlns is offering for the movie ?
I think my minidlana is offering 2 different subtitles but kodi ATM just read the first one, to debug if the problem is with minidlna or if is with kodi , I'd like that simple-dlna-browser shows the subtitles

Thanks

./simple-dlna-browser -v -l
./simple-dlna-browser -v -l 64
./simple-dlna-browser -v -l 64\$9
./simple-dlna-browser -v -l 64\$9\$2C
./simple-dlna-browser -v -l 64\$9\$2C\$1

mk-pkg

kernel-ck-ubuntu breaks at line 315:

[+] running make-kpkg ...
$ fakeroot make-kpkg --initrd kernel_image kernel_headers modules_image
getopt: unknown option '--initrd'
fakeroot, create a fake root environment.
usage: fakeroot [-l|--lib fakerootlib] [-f|--faked fakedbin]
[-i file] [-s file] [-u|--unknown-is-real]
[-b|--fd-base fd] [-h|--help] [-v|--version]
[--] [command]

it works by changing it to

fakeroot "make-kpkg --initrd kernel_image kernel_headers modules_image"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.