Skip to main content

Posts

Old laptop F11 key is broken ..how to solve in windows 7 and linux(debian 10)?

Hi all. Adding this note so that i dont forget. Btw recently im starting to use back my old laptop . And noticed that the keyboard key for f11 is broken man!. broken!. so the effect of this brokenness is my browser keep resizing from full mode to normal mode. yeah that's the shortcut key. And when i'm on my virtual box linux, the browser + the terminal window will keep maximizing and back to normal window size. Watch this to understand what im trying This is damn irritating. and it slowed down my work....which then i have to switch back to use my office laptop... Ok then to verify this on windows i ll need to use a tester tool called  keyboard test software  . for linux this can be verify easily using xev tool. After verifying. yeah its true that the key is broken! After googling around found out the workaround for it. 1. need to disable the key. for windows i can only achieve that by using an external tool again! this time a tool called  simple...

Linux playing with end of line

I was trying to figure out why the checksum of file on the server having different value with the same file that being optimized by pagespeed.   It turns out, that pagespeed has a filter-whitespace-collapse   and the filter is enabled on our server.This filter will remove any unnecessary whitespace. So happen that the original file has one end line added, while the file that being optimized by pagespeed doesnt has that. to quickly validate this. i tried to search easiest way to check a file with end of line cat -E /tmp/script1 document.write("hello Recently, I published an")$ I can see that the script has end of line, "$" is the indicator. then i quickly search again, what is the simplest way to remove end of line in linux. tr -d "\n" /tmp/script1_removed_el the command actually will delete all newline in the file and output it to /tmp/script1_removed_el. Ok this is working for current scenario where my file is expected to be in one...

Python regex finditer

Just a revision for me, sharing with you all! so i have problem to find multiple keywords in a text. i tried using re.search. but that wouldnt work. as re.search only applicable if keyword found first in a group match. so, lets go ahead! i ran using python2.7 Example code for find keywords appearance using python re.finditer (regex) search_keywords = ["smart", "high", "confident", "mature"]  Now we join the keywords with OR operator | , it will looks something like this  smart|high|confident|mature search_patterns = "|".join(search_keywords) Sample input text text = "This is a story about a girl. Living in a secluded area in Wonderland.\n" \        "She is small but very smart and smart, how ever she has verly low confident. Dont judge a book" \        "by its cover.\n The way she thinks shown how mature she is."  Now we update the pattern again with ( ) - > parenthesis  The object ...

Error Post Updating Windows10 on VirtualBox E_FAIL (0x80004005) Componente: MachineWrap

Happy new year. i tot i nearly had the saddest new year in life! thank god. i decided to search a bit... so this morning im trying to resume my work.. that i havent finish >< suddenly my virtual box couldnt load my vm image. i was like.......... what the ........... today?////////////// why today.............. im so dead... ok then after googling, i recall that yesterday i did a windows update. so it might relate to that.................. suggestion on internet is to upgrade the VirtualBox... so i did upgrade.............. File > Check for updates... Ok then.. after installing the latest virtualbox... i had another error when try to run the vm session VERR_PDM_DEVHLPR3_VERSION_MISMATCH i was like..........omg,........why oh why... ok seems like my need to update the Virtual Box extension pack!... ensure that the Virtual Box version and Virtual Box extension pack are the same! https://www.virtualbox.org/wiki/Downloads HAPPY NEW YEAR. WELCOM...

Google flights : One awesome tool for traveler!

If you looking for a flight ticket monitoring tool/apps, for now i ll highly suggest to use Google Flight. to be honest ive never used Kayak before, so my focus today will only be on Google Flight. What i like most is the email alert on price change feature. okay, im gonna walkthrough on Google Flight features 1.open Google Flight at  https://www.google.com/flights/ a.fill all the details required as usual. b.you may choose to track the price or not. c.you can see that theres best flight suggested on most top d.here you can see that cheapest flight suggested. 2 There are more filters you can apply a.duration. b.times c.airlines d.price e.stops  3. we can also search flight tru maps, its more visualized. 4. lets checkout what we have at the side menu a.option to explore using map b.tracked prices c.currency setting d. language setting 5. lets see what we have in the tracked prices.We can see the l...