Showing posts with label tutorial. Show all posts
Showing posts with label tutorial. Show all posts

Wednesday, August 16, 2023

DNS_PROBE_FINISHED_NXDOMAIN Docker windows 10

So you faced that your hosts doesnt loads up after launching Docker image as regular, right? 



For some reason, Docker adds 'his' section for hosts file under Windows/system32/drivers/etc/hosts file and ruins everything what was there before.

All you need to do is to add previously added hosts which you were using, like so:

127.0.0.1 your.local.development.domain.com

Save and close.

Now you are ready to go.

Monday, March 15, 2021

BSOD etd.sys after install and reboot pc

Long story short.



After installing fresh windows, and first boot you install or not install anything on your pc, you restart pc and get blue screen of death with strange etd.sys message. 

I waste whole day for "solving" the problem. It's trick not solving.

Reason for the problem is that your touch pad is dead or connected in wrong way.

Hard way to fix that: 

  • unplug touchpad
  • fix touchpad
  • connect touchpad correct way
Easy way if your touch pad is dead for sure:

  1. Once you see repair screens , find commanad promt tab and open in
  2. Write commands to rename file: 
  3. Command 1: cd c:\windows\system32\drivers
  4. Command 2: ren etd.sys etd.sys.old
  5. now close promt window and restart pc
  6. once you see login window ( latests versions of windows asks  to create pin and forces you to enter the pin ) open from right bottom icons - "on screen keyboard" and press with mouse and enter your pin by pressing buttons with your mouse ( because that your keyboard will not work at  the moment ).
  7. Now navigate to c:\windows\system32\drivers\ and rename file back with mouse ( second mouse to open properties-> rename -> select bad naming of file and press cut )
  8. once it done, now you can reenable keyboard back . to do that -> go to "my pc" and go to properties ( second mouse button inside folder ) and select device manager.
  9. Disable / enable your keyboard under "keyboards" , try all.
  10. Now disable your touch pad under "mice and other pointing devices" ( mine was ELAN )
Solved.


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.

    Wednesday, May 9, 2018

    Elastic search FORBIDDEN/12/index read-only / allow delete



    You have faced the problem - on update index it doesnt changes and gives the error ? The error appears after your index is locked and changes to read only. Reason for that is because of not enough storage on your machine hard drive.

    Here what to do:

    1. Clean hard disk, because it has not enough space... Remove cache, Remove unused files and so on... find trash and just delete it... 
    2. Update elastic search cluster index settings with parameter ( 'index.blocks.read_only_allow_delete' => null - source: https://discuss.elastic.co/t/forbidden-12-index-read-only-allow-delete-api/126067/11 ) 
    3. Once you do previous steps, you will be able to make updates to index.
    Comment if it helped you. Else write comment what was different, so other visitors might find your comment useful.

    Tuesday, May 2, 2017

    CPU lag spikes while moving mouse

    So recently i faced with strange problem: While moving mouse i have seen noticeable lags spikes like wrapping for a several seconds and lag stops after it and mouse starts to move smoothly again. Doesn't matters what places - gaming / desktop or even bios.

    My PC specs:

    Windows 10
    Nvidia GTX 770
    Intel I5-2400 @ 3,1 Ghz
    DDR3 8 GB ram
    Asus mother board p8h61-m le r2.0
    bios 1408

    It felt like it was a virus / trojan or other bad program which uses CPU / HDD or other PC resources.

    Preparation 

    First thing what i did is checked Task manager. Than i have continued and monitored several hours in resource monitor. But nothing was noticed in cpu / memory / disk neither in network tab.

    Secondly I have installed few free or trial versions of anti-viruses and other monitoring applications:

    • Kaspersky ( https://www.kaspersky.com/downloads/thank-you/antivirus-free-trial ) install and made full scan
    • Malwarebytes ( https://www.malwarebytes.com/business/ ) install and made full scan
    • Bitdefender ( https://www.bitdefender.com/solutions/free.html ) made full scan
    • CCleaner ( https://www.piriform.com/ccleaner/download ) full scan
    But nothing was found.

    Hard drive check

    Next i have checked hard drive for bad sectors. Made other scans with programs like
    • LatencyMon ( http://www.resplendence.com/latencymon )

    Advanced task manager

    For more advanced tasks monitoring i have installed programs like:
    • Open hardware monitor ( http://openhardwaremonitor.org/ )
    • Security task manager ( https://www.neuber.com/taskmanager/ )
    But still no results and bad process was fount there. 

    Notices


    After multiple check noticed:
    • Lag spikes was noticed even in BIOS
    • Sometimes lags disappear but after some use of PC the lags appeared back.
    Other tries was made to prevent lags:
    • Disable cortana
    • Performance windows 10 optimization ( recommended youtube video with full steb by step instuction how to clean and disable unusefull programs/services and gadgets https://www.youtube.com/watch?v=DwiHog2leMM ) 
    • Disabling Realtek HD drivers
    • Disabling Nvidia sound drivers
    • Try to update bios ( but i had latest version )


    Ask profesionals for help

    Coworker/Friend of mine suggested to disconnect GPU.

    After i have disconnected GPU i have noticed some improvement, but not for long... after few moments lags was noticed again. 

    Logitech m185


    Finally suggestion was to try disconnect used USB port devices and look if something is interrupting. And after i have changed bluetooth mouse usb plugin i came up with idea that maybe my mouse is broken ( because of rage gaming ). So what i did i changed mouse with same model - logitech m185 ( best mouse in the world. if you want one buy it here ) my wifes one. 
    And miracle happened. It worked perfectly! No lags, no spikes nothing, but smooth movements. 

    Finally 

    And finally i came up with idea to try changing battery on my mouse. And guess what...  It started to work perfectly again. 

    Problem that i didn't though about battery at first time was because that when my battery dies mouse stops working immediately, but this time it didn't happen that way.


     

    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="">

    Saturday, November 21, 2015

    Windows doesn't detects my nokia lumia

    Ill tell you how i solved my problem with nokia lumia 930 and maybe it will help you.

    First of all i had nokia lumia 635 which worked as charm when i was connecting it to my laptop with windows. But i have changed my phone and now when i was connecting with another cabel which i found at home it was charging but not connecting so i could copy photos.

    After searching internet for help, I couldn't find any proper solution how to fix it. Mostly they offer to check devices and update drivers. But problem is that it doesn't show up there. So finally I have tried to change cabel i was using. And you know what? It worked... I was using cabel from my JBL sound system. I guess it supports only devices like that. For similar problems you might check this officia nokia lumia support page https://support.microsoft.com/en-us/kb/2749484 . It possible that you have only 1 left usb cabel, so i suggest to buy original nokia lumia cabels - Find cabel for your nokia lumia.

    Then devices showed up in my devices list I have tried to update drivers with simple "update drivers software". But no success... It says "Windows could not find driver software for your device.".

    Finally I found solution how to solve it but checking "Driver software installation" popup which shows up when you unplug and plugin your device. There was messages near each driver that It can't find drivers. But there was small button that says I can change settings where to check drivers. And I found out that my it doesn't searched for online windows update. So i have changed settings by simple checking checkbox - to search drivers with windows update. Saved settings; Unpluged device; Plugged in device and waited until drivers was found online with windows update.


    After few moments my phone appeared in my computer and I could access files in it.

    P.S. I suggest to set lock screen on your device to be without time limit. So it's screen be always turned on while you install your device, else it might not shown up on your computer too...

    Please "like" my article so it could shown up higher in search engine, so it could help other people to solve the problem.

    Also please write in comments if it worked for you or maybe i skipped some part which was not understandable for you - so write how to solve it, so other people might not have problem in that place.

    Thanks



    Sunday, January 25, 2015

    3 rams usable of 4 windows 7 32 bit solution


    In my situation i had 3 gb's Rams are usable of 4 existing ones...

    There are 2 method how to solve it:
    1. Install windows with 64 bit. ( Need one? get it from amazon )
    2. Other easier trick:
    Method 2:

    1. You need to find on internet small and neat program which was created by Russian programmers which is called "4GB-RAMPatch". ( From my dropbox )
    2. Run it, and press "Patch x86 Ramlock".
    * After you patch, you will be able to start windows in 2 different boots. first - with increased rams, and second is normal one.. You can change "waiting time" in start->run->msconfig ( boot tab ).
    3. Restart

    After you boot small text will appear near clock "Test mode". But i guess you can try to remove if you don't like it a lot. I'm lazy, so 'ill leave it alone for now..

    Anyways you can unpatch anytime.

    Tuesday, September 30, 2014

    SVN tortoise 64x Windows 8 modified files icons fix

    SVN windows 8 64x icons fix
    You might have issue with your SVN modified files after installing SVN on your machine. As i understood after few hours the main problem is in icon's handler ( Don't know why... ).
    I have noticed some comments about dropbox. Your might be same as me: I had installed dropbox before SVN. Because of this dropbox's icons appeared in regedit first.

    Anyways, i have tried many solutions with preferences, but none helped me out.

    Solution which helped me i have found here: http://www.sitepoint.com/missing-tortoisesvn-file-status-overlay-icons/

    The fix I’m about to describe involves tampering with the Windows registry. It’s dangerous and one false move could trash your Windows installation!

    All you need to do is delete several regeedit values in this path: HKEY_LOCAL_MACHINESOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/ShellIconOverlayIdentifiers
    so it be in sum less or equals 11 values., else some of icons will be ignored.
    In my case I had dropbox icons first, so I left first 3 ones and one which I don't know why it's for with name - EnhancedStorageShell.

    After i removed values, Restarted windows. Done! Icons finally appeared.

    Monday, May 12, 2014

    Turning off wifi network notification



    Android phones has default notification for new available wifi network if your device is not connected. Sometimes it is so annoying so you don't turn wifi on.

    You can turn it off.

    Just go to
    1. Settings -> Wifi
    2. Press menu button
    3. Select advanced
    4. Uncheck "Network notification". ( "Notify me when an open network is available" ).
    5. Done.

    Tuesday, May 6, 2014

    Failed to play test tone


    If you got alert message while trying to test is sound is working or not.

    For couple of days i noticed that something is wrong with sound. Sound disappears while calling in skype. Sound appears after a while "somewhere" else.. or not.

    Drivers reinstall didn't helped.

    I dont know why is not working but here some method which might help you to solve the problem.

    I recommend to try method 3. Also please comment for other visitors... which method worked for you. Thanks a lot :3

    Method 1 ( some people say helps.. )

    1. Go to control panel
    2. Double -> Click on the Sound Icon
    3. Single -> click the Speakers to highlight them
    4. Click on Properties (bottom right corner)
    5. Go to the Enhancements Tab and Click on it
    6. Now click "Disable All Sound Effects"

    Method 2 ( helped me but for a while )

    1. Start -> All programs > Administrative tools
    2. Open services.
    3. Navigate to "windows audi".
    4. Right click on it and click "Restart".

    Method 3

    1. Start -> Run -> "regedit"
    2. Go to HKEY_LOCAL_MACHINE /SOFTWARE/Microsoft/Windows /CurrentVersion/MMDevices /Audio/Render/
    3. Goto the following key in registry {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}. I had 4 of these ones... Open these onces until you see - FxProperties. Click it.
    4.a In the right hand side of the registry window change the value of {1da5d803-d492-4edd-8c23-e0c0ffee7f0e},5  -> (value type is REG_DWORD) to 1 (one) instead of 0 (zero).
    5. Done.

    4.b INCASE YOU DON'T FIND THE ABOVE MENTIONED KEY UNDER fxproperties, PLEASE CREATE IT BY YOURSELF. (COPY & PASTE
    {1da5d803-d492-4edd-8c23-e0c0ffee7f0e},5
    TYPE IS REG_DWORD AND PUT VALUE 1
    The audio start working at the moment you change the above value !!! (even before closing the registry editor).

    Tuesday, February 18, 2014

    JQuery remove !important

    I have searched a lot. And i couldn't find solution how to remove the option. But i found that you can set another one attribute with jquery with important option, so you could overlap old style.

    Here is code i have used for changing background-color of element - body which had background-color attribute with important option.

    $("body").css("cssText","background-color: #FFF !important");

    Monday, February 17, 2014

    Experiment code missing the cookie domain name declared in tracking code

    If you still dont know why you get the error:

    Your google analytics code had "subdomain" enabled mode. for example www.igloro.info is main domain, and kambariokai.igloro.info is subdomain and it has enabled subdomain mode.
    When I have tried to create experiment I got the error.

    Solution:


    1. Open your google analytics code and copy _setDomainName.
    2. Open code which you have added into your . And add code before experiment code replacing domain name with your one:

    Saturday, February 1, 2014

    How to install sublime text 2 for newbies

    In the tutorial ill write how to install sublime text 2, SFTP ( ftp remote connection ), emmet ( newest zen coding ), new theme.

    Why sftp?

    • Because most of time i edit files of php,css,html directly.
    Why emmet?
    • It will save your time while coding.

    How to step by step:
    1. Download newest version from http://www.sublimetext.com/ ( Direct url 2.0.2 setup )
    2. First of all new theme. Get it here: http://colorsublime.com/ ( Choose one of them download and so on... instructions: http://colorsublime.com/how-to-install-a-theme
    3. Now, install emmet. Download it from here: https://github.com/sergeche/emmet-sublime ( Download zip, on right side. or Direct url master.zip ) , Instructions are on same page with subheader "how to install".
    4. Now, sftp. SFTP requires package control. So go here: https://sublime.wbond.net/installation and grab code for sublime text 2. Open your sublime text 2 console with command ctrl+` and enter code. Done. Now you able to install packages. So search package installer with ctrl+shift+p ( Package Control: Install Package ). Search for SFTP. More instructions can be fount on official site here: http://wbond.net/sublime_packages/sftp/installation or not official here: http://www.brentmountford.com/tutorials/sublime-text-2-sftp-setup-usage/
    5. Done.

    Tuesday, November 12, 2013

    How to sync other calendars to iPhone


    Problem

    Idea is I have added "other calendar" to my Google Calendar, but it doesn't not appears on my iPhone. I have found out that the issue is pretty popular, but answer is hidden very good.

    Other common topics might sounds like this

    • How can I sync multiple google calendars with iphone in the calednar app
    • Some Google calendar events not syncing on iPhone
    • How to Sync Shared Google Calendars With Your iPhone
    • How to Setup Google Calendar on Your iPhone
    • Some Google calendar events not syncing on iPhone

    Solution

    Solution for this is pretty simple. Google made page for iPhone users which uses calendar, so they could select which calendar to sync.
    1. Go to https://www.google.com/calendar/iphoneselect
    2. Check/Uncheck calendars which you want to sync to your iOS device
    3. Press Save
    4. Done.

    Monday, September 23, 2013

    Send highlighted text to Email Chrome extension


    I was looking for extension for several days, but couldn't find it anywhere.

    All i could find is tutorials how to make chrome extension and similar topic on stackoverflow with simple code how to make the extension.

    So what i did.

    1. Learned some simple chrome extension tutorials
    2. Took the code from stackoverflow
    3. Created simple extension which uses external domain with file which sends emails.
    You can download it here:

    At first i have tried to make new tab with standart Gmail sender, but i failed at it. Because text in the case can be sent only by $_GET parameters, and Gmail has limits - about 2000 symbols. So it means max length of email is smaller than 2000 symbols.
    Solution to this was to use external domain with sender.php.

    Tuesday, July 9, 2013

    How to disable flash in chrome

    To disable flash in your browser - Chrome you need to:



    1. Open Chrome browser
    2. Type in address bar this: about:plugins
    3. After page is finished loading you will come up into plugins page
    4. Here find Adobe Flash Player
    5. Under it you will find disable button
    6. Press it
    7. Disabled plugins will be shown with grey backgrounds
    Have fun!