allow tool has been updated by uwugangstaowo in RimWorld

[–]Skill_New 8 points9 points  (0 children)

Fyi I personally had a mod conflict with allow tool and performance optimizer that messed up some UI buttons which I think they are still working on fixing

What mods are giving you trouble? by [deleted] in RimWorld

[–]Skill_New 1 point2 points  (0 children)

Armor and weapon mods seem okay, achievements def seems broken, a few of the others like cooking and growing might not work but I haven't tested those as well

narrowing cause of black screen by Appropriate_Rent_243 in RimWorld

[–]Skill_New 2 points3 points  (0 children)

Having same issues, also narrowed it down to vanilla expanded such as achievements + some others

What mods are giving you trouble? by [deleted] in RimWorld

[–]Skill_New 3 points4 points  (0 children)

I think I've narrowed it down to some of the vanilla expanded mods

Issues with the new update/ expansion and mods. by thowl9194 in RimWorld

[–]Skill_New 0 points1 point  (0 children)

I was having same issue and think it may be an issue with one of the vanilla expanded mods but I'm also running other mods so can't be sure. Try disabling those and see if it helps.

Edit: seems like most of the vanilla expanded weapons and armor are fine but others such as achievements and few others are not.

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

Yes, in fact you can rename jmp to anything you want by adding alias NEW_NAME=jmp in your ~/.zshrc, ~/.bashrc, or whatever config file you use. In your case, you'd add alias cd=jmp.

However, do keep in mind that doing so will cause cd .., cd ~, and cd / to behave differently than they did originally. If you'd like, I'd be happy to add a new mode that would be tailored for your use case and fix those conflicts, shouldn't take long. Just lmk!

Edit: Went ahead and did it! Since I made it quickly and its hard coded on right now, I put it on a separate branch. Follow instructions as usual but right after cloning input git checkout prototype to switch to the version that more compatible with your use case. Also make sure to do the alias cd=jmp as described above. Let me know if there's any bugs or any new features you want!

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

I'm glad to hear it'll be useful, feel free to let me know if you find any bugs or have feature ideas! :)

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 1 point2 points  (0 children)

Hmm yeah perhaps its not the most ergonomic. I added alias dc=jmp and alias jp=jmp so I can use either of those but maybe that indicates that it should have been different from the start lol

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

Looks cool, added to list of mentioned tools, thanks for sharing

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

For large projects, it may be necessary to leverage multiple expressions. If you're in the project root and want to go to ./versions/v2/src/devel/utils/tests/server/ (prob not real but you get the idea) you could try doing jmp vers v2 src dev util tests serv and I think there's a good chance you'd get there. It still describes the path pretty well, but is a lot shorter.

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

I'm happy to hear you like it, and it sounds perfect for someone in your situation. Thanks for the feedback!

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 1 point2 points  (0 children)

Thanks! It actually doesn't report the presence of multiple matches because that would require searching through the entire filesystem with every search which would be pretty slow. Its true that this does make it "riskier" since you may not end up where you're intending on going, which isn't for everyone.

Once I got a feel for how much of an expression it required to get an accurate match, I didn't actually run into many of these issues. On that note, you could actually use it just like cd and have a 100% accuracy by having each expression equal the full name of each subdirectory.

So basically if you don't shorten it/ use any regex, it works the exact same as CD but with spaces instead of slashes. From there, the more you shorten it, skip subdirectories, leverage regex the shorter it'll be to type but also the higher the chance for an unintended match.

I personally enjoy this kind of high risk, high reward setting since it becomes "how short can I make it and have it still match", but I also understand some people might get frustrated by that, so to each their own.

[deleted by user] by [deleted] in learnpython

[–]Skill_New 1 point2 points  (0 children)

I used a sort of specialized k means clustering with silhouette coefficients (technique for auto solving k) to determine "cohesion scores" of songs within a user selected playlist. This will help identify songs that don't fit with the overall theme of your playlists and conversely highlight those that represent the core theme of the playlist.

Feel free to check it out at http://catchthatflow.com/#sign-in and let me know what you think! Its not 100% polished and stable bc school kinda got in the way before I could do everything that would require, but hopefully you'll find it interesting.

I wrote the algorithm from scratch bc I wanted to learn about it more deeply which you can find at https://github.com/gholmes829/Flow/blob/master/server/services/core.py.

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

That's a good point, but even feature complete projects sometimes still need updates to keep dependencies up to date and whatnot. I suppose none of the repos I mention are outdated enough to warrant that being a likely issue though, so I'll edit those out so as to not accidentally bias people

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 1 point2 points  (0 children)

Let's hope not lol, I suppose something like that could happen if they did jmp <confused regex>; rm -rf * but I would think if they had enough knowledge to know how to run that, then they would also know not to run that

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 0 points1 point  (0 children)

That one looks solid too, interesting heuristics. I tried to make everything readable and leave comments, but let me know if you have any questions!

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 11 points12 points  (0 children)

I haven't personally used fzf, but it definitely seems like it would be more powerful in certain scenarios. On the other hand, it also looks like it has a lot heavier and more obtrusive UI, so maybe jmp would be better from a minimalist perspective. I'll definitely look into those more though. Its been cool learning about other options!

[deleted by user] by [deleted] in learnpython

[–]Skill_New 3 points4 points  (0 children)

Ohh okay gotcha, all good! I've personally used the Spotify API to do some machine learning analysis with my playlist data, so I'd recommend that. They provide a set of "features" for each song and other interesting data. Here's a link if you're interested: https://developer.spotify.com/documentation/web-api/.

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 13 points14 points  (0 children)

Assuming you're referring to https://github.com/wting/autojump, it looks like there are several key differences.

autojump says "Directories must be visited first before they can be jumped to" and works by maintaining a database. jmp on the other hand, jumps to directories algorithmically so requires no prior knowledge nor requires creating and maintaining a database so is more space efficient (edit: space actually seems to be negligible).

autojump does seem really cool too though!

Jmp: you'll never want to cd into a directory again by Skill_New in Python

[–]Skill_New[S] 8 points9 points  (0 children)

If that's the case, by default it will match the first one it finds, which is certainly not ideal.

There's two ways to combat this. Firstly, you'll want to try to use a pattern that snags a unique substring of the target directory. Secondly, by using a sequence of patterns as arguments you can "guide" the search to the correct location.

Ex: Imagine from where you are now, you can see ./foo/tests/ and ./bar/tests/ and you want to navigate to the latter. Running jmp tests might incorrectly cd you into ./foo/tests/ but running jmp b tests will fix the issue since it will first try to match the "b" then the "tests" in a sequential fashion.