Showing posts with label how. Show all posts
Showing posts with label how. Show all posts

Friday, October 5, 2018

Elastic search LTR plugin install


Elastic search plugin LTR install is first plugin i have installed for elastic. I had trouble to install it on Windows. So ill share exact steps to take so you could not waste time.

About LTR plugin

The Elasticsearch Learning to Rank plugin uses machine learning to improve search relevance ranking. It's powering search at places like Wikimedia Foundation and Snagajob!
  • Allows you to store features (Elasticsearch query templates) in Elasticsearch
  • Logs features scores (relevance scores) to create a training set for offline model development
  • Stores linear, xgboost, or ranklib ranking models in Elasticsearch that use features you've stored
  • Ranks search results using a stored model
  • Important

    * LTR plugin is build to exact Elastic version. For example: "ltr-1.1.0-es6.4.1.zip" is build for 6.4.1 elastic version. So first make sure you find correct versions.

    Plugins to download:
    http://es-learn-to-rank.labs.o19s.com/

    Elastic search to download / renew version:
    https://www.elastic.co/downloads/

    1. Renew elastic if required for versions to match
    2. Download plugin zip
    3. Open cmd.exe ( command prompt )
    4. Go to for example "C:\Elastic\6.4.1\bin"
    5. Run "elasticsearch-plugin.bat install file:///c:/Elastic/6.4.0/ltr-1.1.0-es6.4.1.zip" . Make sure you write 'file:///' before path. Else you might get error like "Exception in thread "main" java.net.MalformedURLException: unknown protocol: c".
    6. Done.

    Helpful

    Other instructions can be found here:
    https://github.com/o19s/elasticsearch-learning-to-rank

    Preparing / training data:
    https://github.com/o19s/elasticsearch-learning-to-rank/tree/master/demo

    Monday, May 14, 2018

    Solution for Chrome USB debugging remote devices doesn't appear

    Today I was forced to inspect crashing chrome browser. To inspect that i needed to use desktop chrome.

    To do that there is pretty good tutorial: https://raygun.com/blog/debug-android-chrome/

    But after completing all steps. Nothing appeared in "remote devices" on desktop.

    After few hours i have found solution.

    To fix that:



    1. Download SDK Platform-Tools for Windows zip file. Extract..
    2. Launch cmd.exe ( command prompt ). 
    3. From extracted folder launch "C:\path_to_file\adb.exe devices" . You might get as i got - "List of devices attached: 9be86c14 unauthorized"
    4. Now unplug your phone and plug it back. 
    5. Check your phone that it allows PTP connection of USB debugging ( check raygun.com link ).
    6. Repeat #3 step - launch "adb.exe devices" command again. You might get same message in cmd.exe window. BUT now check your phone. There should be confirmation popup window for mac address. Accept that.
    7. Now just repeat same #3 step. As it shown from my screenshot i got success message "9a479b83 device".
    8. Done. Now you should be able to detect the device under "remote devices" in google chrome. 

    To inspect url on device:

    1. On device open chrome and open desired url
    2. On desktop open remote devices 
    3. Click device
    4. Near appeared list of "opened" tabs with shown urls find your "last one" and on right side click "inspect" button.
    5. Done.

    Happy debugging.

    Let me know if it helped you. Or write where you stuck and how you solved it, so other people could save time. Thanks.

    Thursday, January 19, 2017

    Google Chrome is unresponsive. Relaunch now? [Solution]



    Today faced with the annoying error "Google Chrome is unresponsive. Relaunch now?" while clicking on every link in skype and other programs.

    After checking for solution i have found that it happens not only with skype, but also with other applications like outlook and others.

    Solution:

    1. Fully close application in which chrome links doesn't work
    2. Close chrome application too. (Recommended to close it with Task Manager)
    3. Find application on start menu
    4. Open it As administrator.
    5. Done.

    Solution was found here: https://productforums.google.com/forum/#!msg/chrome/VTjkplvGp0g/uTuzz1sWTJgJ

    Thursday, December 29, 2016

    Diagnostic policy service not running - Solution

    The error might appear once you diagnose your network because of not working internet.


    Once you see this message you could try to run the service:

    1. Press Windows + R to open run.
    2. Enter into input 'services.msc'
    3. Press Enter
    4. Scroll down and find 'Diagnostic Policy Service'
    5. Right click on it and click Start
    Once it finished you might get Error 5: Access is denied.


    To solve it do this:
    1. Open start
    2. Search for 'cmd'
    3. Right click on it and click Open As Administrator
    4. Enter this: net localgroup Administrators /add networkservice
    5. Enter this: net localgroup Administrators /add localservice
    6. Close cmd window
    7. Do restart of your PC.

    If you don't have antivirus I suggest to install it on your PC. Some good offers of ESET antivirus
    Also possible reason because of not legal windows. Another good offers Here.


    If this didn't work you might try to solve it with regedit.exe help. More info on Microsoft forums here.

    P.S. Let me know in comments section below, if this method helped you. Thanks


    Sunday, January 31, 2016

    Redirect loop on admin login WordPress [Solved]



    Once i faced the problem i googled and found some topics about the problem.


    Result of the discussion I found solutions which might help you in same cases.

    If you still haven't figured out how to skip the loop - add "index.php" in address bar after "youdomain.com/wp-admin/" ( In result you will get "http://www.yourdomain.com/wp-admin/index.php" ) . It will allow you to access normally wordpress admin page without loop.

    Solutions

    Method 1

    Check general settings ( settings -> general ). And make sure your addresses are same ( make them lowercase ).

    Method 2

    Go to Permalinks settings ( settings -> permalinks ) and change to plain.

    Method 3 ( My situation )

    None of first methods worked for me ( Method 1 was correct for me, and method 2 - i didn't wanted to change permalinks ). So i have checked code what is happening there... and noticed that index.php isn't loading on wp-admin/ ( which should.. ). So I have checked ".htaccess" file in dir ( and in root dir later ). And I found old code in .htaccess which ruined login process.

    I have removed everything but wordpress comment surounded code, saved and wuallia... everything worked.


    Let me know if it worked for you. Thanks for comment <3 p="">

    Tuesday, August 18, 2015

    Growing mushrooms at home (or outdoors)

    I'm person which likes to harvest mushrooms in forest. But in my situation this season is not much rainy, and there is luck of mushrooms. So I found interesting article on how to grow mushrooms at home. Cool idea for me... no need to wait fall and even you can harvest mushrooms every week and also you can get money for selling these mushrooms for friends or piceries.... or farmers?

    Growing mushrooms is pretty interesting thing and requires a lot to get "fruits". But with current people's ideas there are mushrooms kits which will help you to get first mushrooms pretty easy... You will not need any chemical clothes / scalpels and so on...

    I suggest to read few how to articles:
    Indoors growing
    Outdoors growing



    As I know now, a lot methods how to grow mushrooms. Starting from collecting mushroom spores from mushrooms which you can found in forest and finishing with the kits I mentioned. Coolest ones are growing mushrooms on logs. You will need some sticks / logs / drill / wax? Next you drill holes in fresh logs, put there spores; then stick there sticks and covering with wax, put in not windi and not sunny place. Done! Great huh?
    After few hours of work you will be able to get mushroom fruits for a few years... like 3 or 4 if you do everything correctly. Spores requires like 6 months to grow there..

    At the moment i look for spores supplier from which i could get them and grow them in my basement. Also thinking to try logs method...