[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Linux will never have everything search engine! Probably, s

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 103
Thread images: 11

File: everything.webm (3MB, 856x644px)
everything.webm
3MB, 856x644px
Linux will never have everything search engine!

Probably, since its damn fucking awesome with its instant awareness and fast indexing.
But here's my attempt because no one qualified bothered

Presenting the ANGRYsearch

github:
https://github.com/DoTheEvo/ANGRYsearch

AUR package:
https://aur.archlinux.org/packages/angrysearch/
>>
Here's ANGRYsearch in action
>>
>what is mlocate
>>
Useless shit no one needs.

Sage since this doesn't deserve a post, but I'll give you one anyway in case you aren't trolling.
>>
good effort OP
>>
>>47273648
a thing at the heart of angrysearch, providing data
a thing that has database limited to certain size at it seems
a thing that will make your hdd rattle even when you are just searching for something, which makes no fucking sense since it is suppose to just search the databse
...
>>
>>47273685
>hdd
Fucking poorfags these days.
>>
why not do it in another language so it could be integrated into a file manager?
>>
>>47273702
no excuse for inefficiency.
>>
File: 02.gif (611KB, 608x507px) Image search: [Google]
02.gif
611KB, 608x507px
>>47273705
>integrated
fuck that shit
that what irked me in the first place, every file manager has some search integrated in to it

also I actually had to learn python to make this, its not like I am here standing with C and C++ and java, haskell and ruby and choosing with what do I make this shit...

I complained a lot around, and no one competent seems to like the idea of everything-search enough to actually make it

So here it is and be glad its not in javascript and nodejs
>>
>>47273629
This seems like a shit-tier version of find.

$ find / -name '.*muh\s*shitty\s*music.*' -type f 2>/dev/null
<lots of shitty music>
>>
>>47273794
no doubt
find is powerful and content aware if you want it to be
also its slow

everything/angry is more like instant file/folder navigation
>>
I like it, what it needs is a little bit of a neat UI. Add little icons for the type of item you are listing, so that you can see if its a directory or a file and what kind of file your are showing.
>>
>>47273838
With warm caches, 3.506 to search my whole hard drive with a regular expression.
>>
File: python-logo.jpg (8KB, 426x284px) Image search: [Google]
python-logo.jpg
8KB, 426x284px
>>47273840
yeah, would love to
but I am a noob and the crawling through filesystem, indexing everything is done by mlocate pacakge, the locate command.

And though they say that internally in mlocate database they know what is folder and what is file, they dont offer a way to get that info ouf with locate command.

so unless I would be testing all paths in results if they are directory or a file, i cant distinguish between them :[
>>
>>47273629
don't fret OP, I like it. I'm on windows now, but when I get home on my linux machine I'm going to get it right away.
>>
>>47273773
why would you not integrate it? that's where i want to find my files so i can do things to them. sure if you're looking for a mp3 to play that's all very good but other files you want to do more complicated things to
>>
>>47273909
I don't know much about mlocate, but in that case I would just bypass it and check the files yourself.

Only try to load the thumbnails for the items that are currently displayed (in case you display big amounts of stuff). If you want you can improve this a little by caching, or preloading nearby items.

Make it an async job in a separate thread and add the thumbnails / other infos once they are loaded, display just the paths until then, so it won't slow down the interface.
>>
>>47273987
isnt part of linux philosophy to do one thing well?
when I complained here that linux lack everything like program people claimed integrated stuff as solution, search in dolphin, search in nemo, mlocate integrated in krusader, search feature in dmenu,...

integrate away if you want to put it somewhere but what I love about everything search when I am on windows is that its standalone...

integration actually happen on the different end, you can double click file and its opened in your file manager... so one might say file manager gets integrated in to angry...
>>
You should make a dmenu extended plugin
>>
>>47273629
>>47273644
>>47273773
>>47273909
Please use gksudo (or one of the alternatives) or look into https://stackoverflow.com/questions/982682/mark-data-as-sensitive-in-python/983525 instead of storing the user password/running sudo on your own. It's a security issue.

Aside from that, I really like angrysearch. Indeed it's fast as fuck. Good job.
>>
>>47274541
maybe will bother with it if its not hard
as stated I am a noob who needs to google how to lower case string when its needed, or which one is again list/tuple/dictionary
>>
>the whole thing is one 500 line .py file
pyQt really lets you shit out GUIs fast and easy

What was the downside using it again?
>>
>>47274849
/g/ will think less of you
>>
>>47274849
OP here
I never tried some different GUI appart from PySide which is basically the same as PyQt except free to use to whatever, even commercial products

its pretty easy to use and working reliably, at small shit like this..

I liked this video about Qt vs Gtk
https://www.youtube.com/watch?v=ON0A1dsQOV0
>>
File: n8MMP.webm (359KB, 976x724px)
n8MMP.webm
359KB, 976x724px
Found my very first version of this, reading lines from every.txt live filtering

50 lines only

import sys
import fnmatch
from PySide.QtCore import *
from PySide.QtGui import *


class Ui_MainWindow(QWidget):

def __init__(self, parent=None):
super(Ui_MainWindow, self).__init__(parent)
self.setupUi()

def setupUi(self):
self.file_list = []
self.filter_label = QLabel('Filter:')
self.filter_line_edit = QLineEdit()
self.main_list_W = QListWidget()
self.total_label = QLabel('0')

grid = QGridLayout()
grid.setSpacing(10)

grid.addWidget(self.filter_label, 1, 0)
grid.addWidget(self.filter_line_edit, 1, 1)
grid.addWidget(self.main_list_W, 2, 1, 4, 1)
grid.addWidget(self.total_label, 5, 0)
self.setLayout(grid)
self.setGeometry(300, 300, 350, 300)

self.filter_line_edit.textChanged[str].connect(self.on_text_change)
self.show()
self.do_shit(self)

def do_shit(self, window):
with open('every.txt') as f:
self.file_list = f.read().splitlines()
f.close()

self.main_list_W.addItems(self.file_list)
self.total_label.setText(str(len(self.file_list)))

def on_text_change(self, text):
self.main_list_W.clear()
filtered = fnmatch.filter(self.file_list, '*{}*'.format(text))
self.main_list_W.addItems(filtered)
self.total_label.setText(str(len(filtered)))

if __name__ == "__main__":
app = QApplication(sys.argv)
ui = Ui_MainWindow()
sys.exit(app.exec_())
>>
>>47275159
that will happen no matter what
>>
>>47273665
how about you post link to your github or w/e and yo show us the awesome software you've made that is better than OP's?
>>
Nice one, OP.
Will definitely star.
>>
>>47275159
>>47275170
I only used it for meme programs in /dpt/ but the documentation and easiness really surprised me as a total gui noob.
Will continue to look into it.
>>
don't listen to 'em OP
good work for trying
>>
>>47273629
>AUR package:
>https://aur.archlinux.org/packages/angrysearch/
Have you considered, y'know, adding it to the wiki?
https://wiki.archlinux.org/index.php/File_system_search
>>
>>47273629
one small thing:
it requests the sudo password even after doing sudo angrysearch
you should have it prompt for sudo only if it doesn't already have permissions
>>
>>47275678
Noice OP, linux needs an Everything clone.
>>
>>47273629
How long did it take you to learn python and do this? An estimation in hours, please
>>
>>47273644
Nice work. Also:
>The Dark Tower
Mah nigga
>>
>>47273644
>sudo
literally a botnet
>>
File: name_generator.png (58KB, 433x318px) Image search: [Google]
name_generator.png
58KB, 433x318px
>>47275939
60 hours? but really dunno, might be 20 or 100

I have some basic of javascript as I made couple of browser extensions

>so with python
- done codecademy (5 hours total?)
- then some codeeval challanges (i am at 36 done as of now, starting from easiest) (10 hours?)
- paralel to codeval I tried to make first gui application, since the commonly posted /g/ challenges start with name generator I made one that scrapes wikipedia common surnames and firstnames by region and combine them in to random name (10 hours?)
- then I started with this search thing and it was rather simple at first and grew so maybe 30 hours but after some point it was just hunting bugs and tinkering on details, not really coding. At the begining there was hunting for good youtube videos tutorials to show how to stuff with pyqt
>>
You do realise there's a find command?

find -name "searchterm"
>>
very nice OP
>>
>>47276744
you probably mean

find / -name "*searchterm*" 2>/dev/null


and after that you can try dicking around trying to copy part of the results to get somewhere
>>
>>47273629
Can it directly read the MFT on NTFS partitions like Everything does? That's a big part of the whole "instant" thing.
>>
>>47277312
nope
what it can do is tell locate command to spit its data in to a plain text file
and then push that data in to a database
then index the database for quick search

that is all, it could be called front end for locate, but locate is dump and access hdd whenever it likes, ignoring its own database
>>
File: 1370443732709.jpg (158KB, 600x600px) Image search: [Google]
1370443732709.jpg
158KB, 600x600px
Very nice OP, I'll try this at work tomorrow.
Congrats on the initiative.
>>
>>47277369
>>47277312
oh, and as the result its not instant, it can be uptodate if you press the updatedb button and let it finish

is it a drawback? You got damn fucking right it is
>>
What's the purpose?
>>
should make a patch for synapse, op

it's already a pretty solid popup searching tool, and it's got locate support, only it's not quite instant
>>
>>47277417
- fast navigation wherever you want to go without too much clicking
- reliably and without waiting searching for stuff you know you got somewhere on your disks

thats my usage for it
>>
>>47277461
Oh ,okay. It's just useless for me unfortunately.
Nice work though OP.
>>
Have you even used Linux?

Search is one of Gnome3's primary navigation tools, you can hit the super key, type shit, it'll match a file/document/program/software that can be installed from repos.
Unity does this too, not as nice as Gnome but adds lenses so you can add/remove search sources.
>>
>>47277664
krunner also does this. However, OPs program is the only one I'm aware of that does this without being part of a massive DE, so there's some merit at least.
>>
Why would I need this? Mlocate and spacefm's file search (not to mention find) work perfectly well.
>>
This is actually pretty cool. I don't know how many people would use it but it could be big if something like Mint or Manjaro catches on to it.
>>
gentoo ebuild when?
>>
>>47274161
OP DO THIS I CAME HERE TO SAY THAT
>>
this is pretty sick. So there isn't a competent version of Everything Search out there already? I'm pretty new so I didn't know, but I feel like people would want this.
>>
>>47278070
The people that want this probably use DEs like GNOME or KDE that already have this functionality.
>>
>>47278102
ah I see, thanks
>>
>>47273648
m'locate
>>
File: Everything.png (50KB, 800x720px) Image search: [Google]
Everything.png
50KB, 800x720px
Everything is botnet.
Emailed the developer a few minutes ago, asking him what Everything is using my bandwidth for, before blacklisting it in my firewall.
>>
>>47278283
Man, I feel like proprietary software just keeps getting shittier and more malicious these days.
>>
>>47278305
I know. I installed Everywhere today to try it out again and for some reason decided to check my network activity, only to find out that Everything was using up some of my bandwidth.
Tried to google it, but to no avail, due to its name (mostly).
>>
>>47278353
Where did you download it from?
>>
>>47278388
The original site. It's trying to communicate with live.rads.msn.com, an ad server.
http://www.voidtools.com/
>>
File: 2015-03-30-200343_561x71_scrot.png (8KB, 561x71px) Image search: [Google]
2015-03-30-200343_561x71_scrot.png
8KB, 561x71px
>>47278428
Heh.
>>
>>47278428
>live.rads.msn.com
well holy fuck, i'm monitoring the executable myself, let's see
>>
>>47278455
Just ctrl+r 'resmon.exe' and monitor it from there. Or use wireshark.
>>
>>47278450
I asked the developer if that is why the program is closed source.
>>
>>47274161
>>47277987
i came here to say this as well
>>
>>47278479
That's what I'm doing, it hasn't done anything so far...
>>
>>47278593
Version 1.3.4.686 (x64)?
>>
>>47278428
How often did it try to contact live.rads.msn.com?
>>
>>47278606
yep, the very same version, maybe we should compare hashes...
>>
>>47278607
I get it now. My PC might be infected, as I've tried again and it's not the only *.exe trying to connect to live.rads.msn.com.
Not that it matters, since it cannot, but I'll have to look into this.
>>
>>47278648
>windows
>>
>>47278648
Can you post the md5? I'm curious...
>>
>>47273629
noice m8tee

installing right away
>>
>>47278683
Mine has fe18ddea98d90dbf850afca0158abec8 (non-botnet version)
>>
>>47278683
fe18ddea98d90dbf850afca0158abec8

Just like >>47278702
>>
>>47278675
Yup. I use GNU/Linux as well, when I want a programming environment.
>>
>>47278675
>>47278746
On that note, I blame pirated games, as I use mostly free software (as in freedom), compiled from source when possible, and have javascript disabled globally (uMatrix + uBlock + Https everywhere).
>>
File: 1326438910417.png (166KB, 306x273px) Image search: [Google]
1326438910417.png
166KB, 306x273px
>source for the data are locate and updatedb commands

We need a kernel module that provides similar functionality to a change journal first.
>>
>>47273629
systemdicksearch when
>>
>>47278727
So how are all the executables communicating with live.rads.msn.com?
>>
>>47278867
It's not like malware can't inject code into running processes.
>>
>>47278890
Oh, right...
>>
>>47273644
nice

add it to lo/g/os
>>
>>47273644
Does it update in real time (assuming it constantly runs as root)?
>>
Complete waste of time, this will simply become part of systemd by next Tuesday.
>>
>>47278977 (me)
Nevermind, it makes use of mlocate, which updates the database on a daily basis.
>>
>>47279033
nice samefagging
>>
>>47279204
How do you mean? I'm >>47278977 and >>47279033 and did that on purpose.
>>
>>47273629
>python

into the trash it goes. Come back when you implemented this in an efficient way using ASM
>>
Basically this. Took the OP 500 lines of code, Jesus Christ.
>>
>>47278070 (me)

I know right, Windows is awesome.
>>
>>47280802
stop samefagging
>>
>>47273629
Pretty fucking kewl OP. Everything is basically locate + whereis with some additional options and simple interface.
I'll contribute when I get a chance. ncurses client would be nice.
>>
File: 1426984001032.jpg (25KB, 960x960px) Image search: [Google]
1426984001032.jpg
25KB, 960x960px
>>47273629

>Linux will never have everything search engine!

what´s Nepomuk ?
what´s Beagle ?
>>
>>47281412
basic grep and find will suffice as well, just search root

find / -name somestring
find / | grep sometstring
also nepomuk is replaced by baloo
>>
How the fuck do I run this, OP?
git clone https://github.com/DoTheEvo/ANGRYsearch angrysearch
cd angrysearch
python angrysearch.py

Traceback (most recent call last):
File "angrysearch.py", line 9, in <module>
from PyQt5.QtCore import *
ImportError: No module named PyQt5.QtCore
>>
>>47281608
>
No module named PyQt5.QtCore


gee.....I don't know m8....

maybe you should get PyQT
>>
>>47278220
underrated post
>>
>>47273629
Really nice job OP, love it.
find -name
is reliable but annoying when you just need to know where you put something.

Install directions for noobs btw:
sudo apt-get install python3 python3-dev
wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.7/sip-4.16.7.tar.gz
wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.4.1/PyQt-gpl-5.4.1.tar.gz
tar -xzvf sip-4.16.7.tar.gz
tar -xzvf PyQt-gpl-5.4.1.tar.gz
cd sip-4.16.7
python3 configure.py
sudo make install
cd ../PyQt-gpl-5.4.1
python3 configure.py
sudo make install
#wait 20 minutes
python3 angrysearch.py
Thread posts: 103
Thread images: 11


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.