After some break I had to use Microsoft's PowerShell. Terrible experience.
What is this weirdo called PowerShell some would ask.
In the world of windows you must use a mouse to do what you are allowed to do.
But some tasks are often repeated for same objects (ex. files). In such a case you would use a shell script... but M$Windows has no such. So Microsoft created their own shell. They wanted to be better and mixed unix shell capabilities with .NET interface. They added their own implementation of pipe (process inter-communication). And the result is... tragic :(
I'm used to bash and ksh. I know them quite well. Both have their own limitations but are extremely powerful.
PowerShell has better potential... yet interface sux, syntax is very unpredictible and it is overall ver user unfriendly.
With bash and ksh I know some basics and it is wnough to create usable power scripts.
With PowerShell I need to learn it every time I get back to it, then I need to use google plenty of times and the result is miserable (I'm usually able to get my functionality but it takes a lot of time). And after a while I'm done and fed up so I leave powershell for some time and at some point I need to get back to it.
An alternative? cygwin, perl-for-windows, python-for-windows... many alternatives.
Summary:
Microsoft's PowerShell sux - they wanted to make it better but they did it as usually.
Wednesday, March 12, 2014
Monday, January 27, 2014
SELinux, GT-N7100 (Note II) and android 4.3 [EN]
After updating my phone to official 4.3 firmmware (using OTA which failed to install 3x in a row) I realized that they have restricted the access a lot.
They claimed that eFuse was used (meaning that if you "touch" your phone for the first time then it is designed to burn internally so that they can say it was physically destroyed by you). It seems that it is not true but no one showed any proof for that.
After escalating my privileges (eFuse can stay unharmed even if you do that) and installing binary to automate this in the future (for easy and controlled access) I started playing with the SELinux rules.
At first SE Rules set to "enforcing" were nice... until I realized that I am not allowed to control my phone (only shit-sung is). So the next step was to disable every auto-update I identified (so that they cannot kill me remotely).
After auto-updates were disabled... I also installed firewall (avast did great job here providing a handy interface for IPTables). And after every reboot (which happens rarely) I need to change SELinux into permissive mode, then run the firewall script, then enable SELinux back into enforcing mode.
Next step would be to modify shit-sung's rules. But there is no "semanage" binary :(
So I need to compile this on my own. After that I could install my own keys (would it be really required?) and play with the rules (best would be to use rules from SDCard so that I could pull it out in case of problems).
Oh... and I removed FMRadio.apk (and .odex) as I don't waste my time on watching radio or tv. Unanswered question is: according to the PL law I should register that I have an radio/tv receiver... but should I register it if I don't have such but I had for a moment until the crap was removed?
I wonder if I could get to the SELinux interface from app layer...
They claimed that eFuse was used (meaning that if you "touch" your phone for the first time then it is designed to burn internally so that they can say it was physically destroyed by you). It seems that it is not true but no one showed any proof for that.
After escalating my privileges (eFuse can stay unharmed even if you do that) and installing binary to automate this in the future (for easy and controlled access) I started playing with the SELinux rules.
At first SE Rules set to "enforcing" were nice... until I realized that I am not allowed to control my phone (only shit-sung is). So the next step was to disable every auto-update I identified (so that they cannot kill me remotely).
After auto-updates were disabled... I also installed firewall (avast did great job here providing a handy interface for IPTables). And after every reboot (which happens rarely) I need to change SELinux into permissive mode, then run the firewall script, then enable SELinux back into enforcing mode.
Next step would be to modify shit-sung's rules. But there is no "semanage" binary :(
So I need to compile this on my own. After that I could install my own keys (would it be really required?) and play with the rules (best would be to use rules from SDCard so that I could pull it out in case of problems).
Oh... and I removed FMRadio.apk (and .odex) as I don't waste my time on watching radio or tv. Unanswered question is: according to the PL law I should register that I have an radio/tv receiver... but should I register it if I don't have such but I had for a moment until the crap was removed?
I wonder if I could get to the SELinux interface from app layer...
Saturday, January 25, 2014
Telewizor? [PL]
Ech... Czytając artykuły o tym jak kilkoro cwaniaków próbuje na siłę nas "uszczęśliwić" wprowadzając nowy podatek od bycia... postanowiłem zainteresować się zakupem telewizora.
Podatek od bycia o nazwie "obowiązkowa opłata audiowizualna".
Jakiś cep (opierając się o wątpliwej jakości dokumenty) próbuje narzucić obywatelom Rzeczypospolitej Polskiej opłatę w wysokości ~100PLN/rok za nic. Uzasadnia to tym, że ktoś mógłby korzystać z czegoś tam. To, że każdy ma to płacić uzasadnia tym, że wedle jego zgadywania i odpowiednio dobranych założeń "większość(!) czegoś tam się łapie w coś tam". Brawda że to trzy-po-trzy?
A formalnie to wygląda tak: Przebadaliśmy kilkoro ludzi (zapewne pracowników telewizji publicznej) i wyszło nam, że 1 człowiek na dziesięciu posiadał telewizor w domu. Kilkukrotnie ponowiliśmy badanie i udało nam się tak je spreparować, że na 20 mieszkań sprawdzonych tylko w jednym nie było telewizora. Podpierając się tymi krzywymi pseudo-badaniami uważamy, że większość ludzi ogląda telewizję. A skoro większość ją ogląda to wszyscy zapłacą.
Przypomina mi się dowcip.... Profesor pyta studenta jaki kolor ma szafir... student odpowiada "zielony". A na to profesor (chcąc przepchnąć studenta aby się z nim nie musieć już użerać) odpowiada "no tak.... w zasadzie to zielonkawy... nieco nawet niebieskawy... a w zasadzie to niebieski...".
Jeśli ten przymusiwy haracz zostanie wymuszony to polska ostro może za to beknąć: wielu ludzi nie oglądających TV się sprzeciwi i zaskarży ewentualną ustawę co przejdzie w polskich sądach ale już polegnie na europejskich i pOlska będzie musiała zapłacić kary które pójdą z pieniędzy Polskich obywateli (podatników)... tymczasem aktorzynki i aktoreczki z TV dostaną już swoją dolę i tego nie oddadzą.
Na rynku można znaleźć bardzo wiele modeli wielu producentów i z dużym rozrzutem cenowym.
Każdy z nich zasypuje nas mnogością parametrów pseudo-technicznych i różnorakim bełkotem. I wybija się na wierzch cena.
Jak z tego śmietniska odsiać ziarno od plewów? Chyba łatwiej niż można myśleć.
Rozdzielczość
Mamy tutaj coś o nazwie "rozdzielczość". Oznacza to w uproszczeniu ile kropek mamy ne ekranie.
Rozdzielczość "Full HD" to 1920x1080 czyli (użyjmy kalkulatora) 1920x1080=2'073'600 kropek na ekranie.
Rozdzielczość "HD Ready" to... kolejna ściema, ponieważ nie wiemy ile dokładnie tych kropek mamy. Może to być ich dużo mniej. ALe jak ktoś chce na TV wydać 500PLN zamiast 1000PLN...
Rozdzielczości wyższe niż "HD Ready" to naciąganie szpanerów (chyba, że chcesz oglądać ekran wielki na kilometr z odległości kilku metrów).
Z przyczyn technicznych im większa rozdzielczość tym wyższa cena.
Podsumowanie: Obecnie tylko "Full HD".
Obsługa 3D
Dla normalnego człowieka mało przydatne. Filmów na to niewiele i nie skorzysta się z tego.
Dla mnie (chcę podłączyć ten ekran pod komputer/konsolę i grać) jest to kluczowy wymóg.
Na rynku mamy 2 główne rodzaje telewizorów 3D: aktywne i pasywne. Aktywne są droższe, mają droższe i cięższe okulary wymagające baterii, okulary są dużo droższe, migotanie ekranu powoduje zawroty głowy i mdłości... ale jest wyraźniejszy obraz. Jeśli chcesz rzygać wyraźnie to wybierz aktywny obraz ;) Drugi rodzaj to telewizory 3D pasywne.
Jako fizyk (moja magisterka była związana z polaryzacją) mogę powiedzieć, że normalny człowiek nie chce 3D a oglądanie obrazu z takich telewizorów (pasywnych czy aktywnych) może (brak mi na to dowodów) powodować uszkodzenie wzroku.
Podsumowanie: tylko jeśli chcesz grać w gry na tym ekranie... normalnie zbędne i może być szkodliwe dla zdrowia.
Typ wyświetlacza
Na rynku jest wiele technologii a każda ma różne typy.
Wyświetlacze typu LED są droższe ale niekoniecznie lepsze (ani gorsze) niż inne. Mówić, że jeden rodzaj wyświetlacza jest lepszy niż inne to jakby powiedzieć, że drewniany młotek jest lepszy niż inne narzędzia (ciekawe jak ktoś by przepiłował deskę młotkiem... no bo przecież nie podałem zastosowania tegoś "narzędzia").
Niestety obecnie "trendi" jest technologia LED a inne są niszowe.
Jeszcze niedawno producenci dezinformowali nas cyferkami o kontraście - to kolejny parametr, który należy zignorować.
Niektóre typy wyświetlaczy są z kolei bardzo drogie... Jednocześnie różnicy nie widać a skoro tak to po co przepłacać?
Podsumowanie: Obecnie kupować LED ponieważ inne to zazwyczaj "tania chińszczyzna" lub "drogi szajs dla szpanerów".
Ilość portów
Mamy podaną ilość portów HDMI, DVI, D-SUB, AAA, AAB, ..., ZZZ, KahunaMaTaTa...
Każdy producent chce nas zalać mnogością cyferek abyśmy nie mogli porównywać tych urządzeń.
Jeśli wiesz o co chodzi to wiesz też ile (i jakich) portów potrzebujesz. W przeciwnym przypadku - zlej to. Każdy TV będzie miał przynajmniej jedno wejścia HDMI.
Podsumowanie: Zignoruj.
SmartTV
Ostatnio modny wydatek.
Oznacza to, że producent umieścił w telewizorze minikomputerek wart 150zł podnosząc cenę telewizora o 500zł.
To samo można osiągnąć przez podłączenie do telewizora komputerka (np. tabletu z wyjściem HDTV).
Podsumowanie: Ignorować ale jak jest to niech se będzie (czasem tego nie unikniemy).
Skype / Skype Ready
A co jeśli nie lubię skype?
Jak podłączę tablet z biedronki za 200zł to mogę mieć skype i inne podobne programy.
Podsumowanie: Ignorować chyba, że chcemy głównie do tego mieć TV.
Gwarancja
Super ważny punkt. Choć zazwyczaj i tak z tego nie skorzystamy.
Podsumowanie podsumowań...
Wychodzi na to, że chcę kupić telewizor (monitory są droższe) z pasywnym 3D, rozdzielczością Full HD, dużym ekranem (32" do 47") i niską ceną.
Ekrany (to, co wyświetla) pochodzą i tak od trzech producentów (a że logo jest kilkunastu firm....). Kupisz TV noname a w środku wyświetlacz Philipsa.
Koniec. Cała reszta "parametrów" to ściema.
Bonus
Na koniec opiszę czym są czasy reakcji, częstotliwości odświerzania i inne cyferki, którymi nas bombardują producenci.
Czas reakcji to teoretycznie czas, jakiego potrzebuje ekran aby wyświetlić obraz.
Jak nas oszukują? Podają czas w ms (milli sekundach) między czymś a czymś (gray-to-gray) co nie mówi w zasadzie nic.
Ekran składa się z światełka pod spodem (świetlówka, LED lub coś innego) i filtru wykonanego z ciekłych kryształków. W przypadku TV np. plazmowych może być inaczej. Gdy zostanie wysłany sygnał "wyświetl zielony punkt" to zaczyna się skręcanie ciekłych kryształków. Jeszcze zanim się ono zakończy możemy np. widzieć kolor czerwony) to możemy wysłać sygnał aby inny kolor się wyświetlił. Na tym w uproszczeniu polega oszustwo z gray-to-gray.
Częstotliwość odświerzania.
Jak nas oszukują? Oko ludzkie nie widzi nic ponad 28 orazków na sekundę (często mniej). Czyli wszystko ponad 28Hz to ściema.
Ludzie będą się upierać, że widzą różnicę. Tak jest ponieważ... ekran nie zdąży pokazać obrazu w ciągu tej 1/28 sekundy. To znowu myk z tym "gray-to-gray". Producenci podają w rzeczywistości informację, że "telewizor jest w stanie rozpocząć wyświetlanie X obrazków na sekundę".
Jeśli TV ma oznaczenie 100Hz to zazwyczaj wystarczy.
Oszukują też z bardzo dużymi wartościami (np. 1600Hz). To oznacza... że producent podzielił ekran np. na 16 kawałków z których każdy ma 100Hz i razem po dodaniu mamy 1600Hz. To trochę jakby mówić, że mamy 6 monet jednogroszowych i razem mamy 111111 groszy. Ściema i oszustwo. Tym bardziej jeśli w sklepie nie można płacić monetami 1gr ;)
Smart TV, ilość rdzeni i podobne.
Producenci często dają nam jakieś mini-komputerki w zestawie (a przecież można sobie taki podłączyć pod ekran) i ceny rosną tutaj geometrycznie (przepłacamy znacznie). Z czasem producent często daje możliwość "rozbudowy" (czyli płacisz nam baaaaardzo dużo pieniążków a dostajesz coś wartego kilka złotych).
Kupowanie na kredyt/pożyczkę/itp.
Kowalski kupi sobie TV aby oglądać mecze przy piwku i aby dać w mordę głupiej kowalskiej. Uzna, że skoro nie ma na jedzenie to telewizor przynajmniej kupi.
Zanim zadłużysz się zadaj sobie pytanie: "Czy to jest mi na prawdę potrzebne? I czy na pewno teraz? Może mogę zaczekać aż ODŁOŻĘ tę sumę?"
Nie wiem czy komuś pomogłem ale... ja kupię chyba sobie jakić ekran 3D z pasywnym wyświetlaniem obrazu Full HD (1920x1080) i przynajmniej jednym portem HDMI. Niech ma te 32" do 47". Lubię tutaj firmę LG - nie zawiodłem się jeszcze na ich produktach. A i gwarancję mają (mieli?) fajną.
Pozdrawiam
Podatek od bycia o nazwie "obowiązkowa opłata audiowizualna".
Jakiś cep (opierając się o wątpliwej jakości dokumenty) próbuje narzucić obywatelom Rzeczypospolitej Polskiej opłatę w wysokości ~100PLN/rok za nic. Uzasadnia to tym, że ktoś mógłby korzystać z czegoś tam. To, że każdy ma to płacić uzasadnia tym, że wedle jego zgadywania i odpowiednio dobranych założeń "większość(!) czegoś tam się łapie w coś tam". Brawda że to trzy-po-trzy?
A formalnie to wygląda tak: Przebadaliśmy kilkoro ludzi (zapewne pracowników telewizji publicznej) i wyszło nam, że 1 człowiek na dziesięciu posiadał telewizor w domu. Kilkukrotnie ponowiliśmy badanie i udało nam się tak je spreparować, że na 20 mieszkań sprawdzonych tylko w jednym nie było telewizora. Podpierając się tymi krzywymi pseudo-badaniami uważamy, że większość ludzi ogląda telewizję. A skoro większość ją ogląda to wszyscy zapłacą.
Przypomina mi się dowcip.... Profesor pyta studenta jaki kolor ma szafir... student odpowiada "zielony". A na to profesor (chcąc przepchnąć studenta aby się z nim nie musieć już użerać) odpowiada "no tak.... w zasadzie to zielonkawy... nieco nawet niebieskawy... a w zasadzie to niebieski...".
Jeśli ten przymusiwy haracz zostanie wymuszony to polska ostro może za to beknąć: wielu ludzi nie oglądających TV się sprzeciwi i zaskarży ewentualną ustawę co przejdzie w polskich sądach ale już polegnie na europejskich i pOlska będzie musiała zapłacić kary które pójdą z pieniędzy Polskich obywateli (podatników)... tymczasem aktorzynki i aktoreczki z TV dostaną już swoją dolę i tego nie oddadzą.
Telewizor, czyli przechodzę do sedna
Oglądałem dzisiaj telewizory, jakie można zakupić.Na rynku można znaleźć bardzo wiele modeli wielu producentów i z dużym rozrzutem cenowym.
Każdy z nich zasypuje nas mnogością parametrów pseudo-technicznych i różnorakim bełkotem. I wybija się na wierzch cena.
Jak z tego śmietniska odsiać ziarno od plewów? Chyba łatwiej niż można myśleć.
Najważniejsze: wyświetlacz.
W Telewizorze liczy się obraz. Szczególnie dla mnie - nie chcę oglądać telewizji (zrezygnowałem tego kiedy dorosłem zyskując sporo czasu na... życie).Rozdzielczość
Mamy tutaj coś o nazwie "rozdzielczość". Oznacza to w uproszczeniu ile kropek mamy ne ekranie.
Rozdzielczość "Full HD" to 1920x1080 czyli (użyjmy kalkulatora) 1920x1080=2'073'600 kropek na ekranie.
Rozdzielczość "HD Ready" to... kolejna ściema, ponieważ nie wiemy ile dokładnie tych kropek mamy. Może to być ich dużo mniej. ALe jak ktoś chce na TV wydać 500PLN zamiast 1000PLN...
Rozdzielczości wyższe niż "HD Ready" to naciąganie szpanerów (chyba, że chcesz oglądać ekran wielki na kilometr z odległości kilku metrów).
Z przyczyn technicznych im większa rozdzielczość tym wyższa cena.
Podsumowanie: Obecnie tylko "Full HD".
Obsługa 3D
Dla normalnego człowieka mało przydatne. Filmów na to niewiele i nie skorzysta się z tego.
Dla mnie (chcę podłączyć ten ekran pod komputer/konsolę i grać) jest to kluczowy wymóg.
Na rynku mamy 2 główne rodzaje telewizorów 3D: aktywne i pasywne. Aktywne są droższe, mają droższe i cięższe okulary wymagające baterii, okulary są dużo droższe, migotanie ekranu powoduje zawroty głowy i mdłości... ale jest wyraźniejszy obraz. Jeśli chcesz rzygać wyraźnie to wybierz aktywny obraz ;) Drugi rodzaj to telewizory 3D pasywne.
Jako fizyk (moja magisterka była związana z polaryzacją) mogę powiedzieć, że normalny człowiek nie chce 3D a oglądanie obrazu z takich telewizorów (pasywnych czy aktywnych) może (brak mi na to dowodów) powodować uszkodzenie wzroku.
Podsumowanie: tylko jeśli chcesz grać w gry na tym ekranie... normalnie zbędne i może być szkodliwe dla zdrowia.
Typ wyświetlacza
Na rynku jest wiele technologii a każda ma różne typy.
Wyświetlacze typu LED są droższe ale niekoniecznie lepsze (ani gorsze) niż inne. Mówić, że jeden rodzaj wyświetlacza jest lepszy niż inne to jakby powiedzieć, że drewniany młotek jest lepszy niż inne narzędzia (ciekawe jak ktoś by przepiłował deskę młotkiem... no bo przecież nie podałem zastosowania tegoś "narzędzia").
Niestety obecnie "trendi" jest technologia LED a inne są niszowe.
Jeszcze niedawno producenci dezinformowali nas cyferkami o kontraście - to kolejny parametr, który należy zignorować.
Niektóre typy wyświetlaczy są z kolei bardzo drogie... Jednocześnie różnicy nie widać a skoro tak to po co przepłacać?
Podsumowanie: Obecnie kupować LED ponieważ inne to zazwyczaj "tania chińszczyzna" lub "drogi szajs dla szpanerów".
Ilość portów
Mamy podaną ilość portów HDMI, DVI, D-SUB, AAA, AAB, ..., ZZZ, KahunaMaTaTa...
Każdy producent chce nas zalać mnogością cyferek abyśmy nie mogli porównywać tych urządzeń.
Jeśli wiesz o co chodzi to wiesz też ile (i jakich) portów potrzebujesz. W przeciwnym przypadku - zlej to. Każdy TV będzie miał przynajmniej jedno wejścia HDMI.
Podsumowanie: Zignoruj.
SmartTV
Ostatnio modny wydatek.
Oznacza to, że producent umieścił w telewizorze minikomputerek wart 150zł podnosząc cenę telewizora o 500zł.
To samo można osiągnąć przez podłączenie do telewizora komputerka (np. tabletu z wyjściem HDTV).
Podsumowanie: Ignorować ale jak jest to niech se będzie (czasem tego nie unikniemy).
Skype / Skype Ready
A co jeśli nie lubię skype?
Jak podłączę tablet z biedronki za 200zł to mogę mieć skype i inne podobne programy.
Podsumowanie: Ignorować chyba, że chcemy głównie do tego mieć TV.
Gwarancja
Super ważny punkt. Choć zazwyczaj i tak z tego nie skorzystamy.
Podsumowanie podsumowań...
Wychodzi na to, że chcę kupić telewizor (monitory są droższe) z pasywnym 3D, rozdzielczością Full HD, dużym ekranem (32" do 47") i niską ceną.
Ekrany (to, co wyświetla) pochodzą i tak od trzech producentów (a że logo jest kilkunastu firm....). Kupisz TV noname a w środku wyświetlacz Philipsa.
Koniec. Cała reszta "parametrów" to ściema.
Bonus
Na koniec opiszę czym są czasy reakcji, częstotliwości odświerzania i inne cyferki, którymi nas bombardują producenci.
Czas reakcji to teoretycznie czas, jakiego potrzebuje ekran aby wyświetlić obraz.
Jak nas oszukują? Podają czas w ms (milli sekundach) między czymś a czymś (gray-to-gray) co nie mówi w zasadzie nic.
Ekran składa się z światełka pod spodem (świetlówka, LED lub coś innego) i filtru wykonanego z ciekłych kryształków. W przypadku TV np. plazmowych może być inaczej. Gdy zostanie wysłany sygnał "wyświetl zielony punkt" to zaczyna się skręcanie ciekłych kryształków. Jeszcze zanim się ono zakończy możemy np. widzieć kolor czerwony) to możemy wysłać sygnał aby inny kolor się wyświetlił. Na tym w uproszczeniu polega oszustwo z gray-to-gray.
Częstotliwość odświerzania.
Jak nas oszukują? Oko ludzkie nie widzi nic ponad 28 orazków na sekundę (często mniej). Czyli wszystko ponad 28Hz to ściema.
Ludzie będą się upierać, że widzą różnicę. Tak jest ponieważ... ekran nie zdąży pokazać obrazu w ciągu tej 1/28 sekundy. To znowu myk z tym "gray-to-gray". Producenci podają w rzeczywistości informację, że "telewizor jest w stanie rozpocząć wyświetlanie X obrazków na sekundę".
Jeśli TV ma oznaczenie 100Hz to zazwyczaj wystarczy.
Oszukują też z bardzo dużymi wartościami (np. 1600Hz). To oznacza... że producent podzielił ekran np. na 16 kawałków z których każdy ma 100Hz i razem po dodaniu mamy 1600Hz. To trochę jakby mówić, że mamy 6 monet jednogroszowych i razem mamy 111111 groszy. Ściema i oszustwo. Tym bardziej jeśli w sklepie nie można płacić monetami 1gr ;)
Smart TV, ilość rdzeni i podobne.
Producenci często dają nam jakieś mini-komputerki w zestawie (a przecież można sobie taki podłączyć pod ekran) i ceny rosną tutaj geometrycznie (przepłacamy znacznie). Z czasem producent często daje możliwość "rozbudowy" (czyli płacisz nam baaaaardzo dużo pieniążków a dostajesz coś wartego kilka złotych).
Kupowanie na kredyt/pożyczkę/itp.
Kowalski kupi sobie TV aby oglądać mecze przy piwku i aby dać w mordę głupiej kowalskiej. Uzna, że skoro nie ma na jedzenie to telewizor przynajmniej kupi.
Zanim zadłużysz się zadaj sobie pytanie: "Czy to jest mi na prawdę potrzebne? I czy na pewno teraz? Może mogę zaczekać aż ODŁOŻĘ tę sumę?"
Nie wiem czy komuś pomogłem ale... ja kupię chyba sobie jakić ekran 3D z pasywnym wyświetlaniem obrazu Full HD (1920x1080) i przynajmniej jednym portem HDMI. Niech ma te 32" do 47". Lubię tutaj firmę LG - nie zawiodłem się jeszcze na ich produktach. A i gwarancję mają (mieli?) fajną.
Pozdrawiam
Wednesday, January 15, 2014
Vacuum cleaners / Odkurzacze
(EN)Bi-langual post / (PL)Post dwujęzyczny
EN:
1. Brand.
Zelmer. No other option. Preferrably manufactured in Poland with 4-year guarantee.
Siemens, Bosh, Miele... those brands are there.
Other manufacturers have no vacuum cleaners for me in their offers.
2. Model and type.
With bag (but bagless are acceptable if the HEPA filter is placed before the engine).
Turbo/Electro brush is an option but not required. I won't be using that unless we get some pets.
Must have a power regulator and solid handle in the middle. BMB (Brush Natural Bristle) would be nice.
3. Review.
Zelmer recommends Jupiter (looks solid but is a bit too large for me).
I like:
- Cobra (pros: silent; cons: too large, no longer manufactured?)
- 400.0 Meteor2 (pros: small and light, builtin box for brushes; cons: no HEPA) 75DB, 4.3kg, 200PLN
- 3100VC HP Eco Power (pros: ; cons: ) 75DB, 4.3kg, 250PLN
- 1600 Syrius (pros: cons: a bit too large, digital buttons)
- 3300VC Ceres (pros: light, has 2 HEPA filters; cons: bagless only, digital buttons, 2 years guarantee as it is manufactured in china) 5.2kg, 300PLN
- 819 Aquario/Wodnik (pros: bag or water filter; cons: heavy) 80DB, 10.2kg, 440PLN
"VC3300 Ceres" and "VC3100 Eco Power" are manufactured in China (2years guarantee only), Syrius is too large for me, 819 has its successor 829 which is lighter, 400 Meteor2 has low quality filter
- 450 Odyssey (pros: small; cons: ) 75DB, 4.3kg, 250PLN
- 829 AQUOS (pros: bag or water filter; cons: digital buttons) 80DB, 6.6kg, 430PLN
- 400 "Jupiter" (pros: reliable; cons: loud, large) 5.4kg, 400PLN
4. Accessories and features.
- 450 SP/ST - turbobrush (ST)
- 829 SP/ST- turbo brush (ST), water sucking brush
5. Some side facts.
450 Odyssey has versions EH and EK with ACF (Activated Carbon Filter) probably to fight with bad smell.
PL:
1. Marka.
Zelmer. Nie ma innej opcji. Najlepiej wyprodukowany w Polsce z 4-letnią gwarancją.
Siemens, Bosh, Miele... the marki istnieją na rynku.
Inni producenci nie posiadają w swojej ofercie odkurzaczy dla mnie.
2. Model i typ.
Workowy (ale bezworkowy też może być jeśli posiada filtr HEPA przed silnikiem).
Turboszczotka/Elektroszczotka opcjonalnie ale nie wymagana. Nie ędę tego używać o ile nie będziemy mieć jakiegoś zwierzaka.
Musi posiadać regulację mocy i solidny uchwyt na środkku. BMB (Brush Natural Bristle) jest wskazana.
3. Przegląd.
- Cobra (zalety: cichy; wady: za duży, już nie produkowany?)
- 400 Meteor2 (zalety: mały i lekki, wbudowany schowek na szczotki; wady: brak HEPA) 75DB, 4.3kg, 200PLN
- 3100VC HP Eco Power (zalety: , wady: ) 75DB, 4.3kg, 250PLN
- 1600 Syrius (zalety: ; wady: za duży, cyfrowe przyciski)
- 3300 VC Ceres (zalety: lekki, ma 2 filtry HEPA; wady: tylko bezworkowiec, cyfrowe przyciski, tylko 2 lata gwarancji) 5.2kg, 300PLN
- 819 "Aquario"/"Wodnik" (zalety: praca z workiem lub wodą, wady: ciężki) 80DB, 10.2kg, 440PLN
VC3100 i VC3300 są produkowane w Chinach (tylko 2lata gwarancji), Syrius jest dla mnie za duży, 819 ma mniejszego i lżejszego nast ępce 829, 400 Meteor2 ma niskiej jakości filtr.
- 450 "Odyssey" (zalety: small; wady: ) 75DB, 4.3kg, 250PLN
- 829 "AQUOS" (zalety: praca z workiem lub wodą; wady: cyfrowe przyciski) 80DB, 6.6kg, 430PLN
- 400 "Jupiter" (zalety: wytrzymały; wady: głośny, duży) 5.4kg, 400PLN
EN:
1. Brand.
Zelmer. No other option. Preferrably manufactured in Poland with 4-year guarantee.
Siemens, Bosh, Miele... those brands are there.
Other manufacturers have no vacuum cleaners for me in their offers.
2. Model and type.
With bag (but bagless are acceptable if the HEPA filter is placed before the engine).
Turbo/Electro brush is an option but not required. I won't be using that unless we get some pets.
Must have a power regulator and solid handle in the middle. BMB (Brush Natural Bristle) would be nice.
3. Review.
Zelmer recommends Jupiter (looks solid but is a bit too large for me).
I like:
- 829 AQUOS (pros: bag or water filter; cons: digital buttons) 80DB, 6.6kg, 430PLN
- 400 "Jupiter" (pros: reliable; cons: loud, large) 5.4kg, 400PLN
4. Accessories and features.
- 450 SP/ST - turbobrush (ST)
- 829 SP/ST- turbo brush (ST), water sucking brush
5. Some side facts.
450 Odyssey has versions EH and EK with ACF (Activated Carbon Filter) probably to fight with bad smell.
PL:
1. Marka.
Zelmer. Nie ma innej opcji. Najlepiej wyprodukowany w Polsce z 4-letnią gwarancją.
Siemens, Bosh, Miele... the marki istnieją na rynku.
Inni producenci nie posiadają w swojej ofercie odkurzaczy dla mnie.
2. Model i typ.
Workowy (ale bezworkowy też może być jeśli posiada filtr HEPA przed silnikiem).
Turboszczotka/Elektroszczotka opcjonalnie ale nie wymagana. Nie ędę tego używać o ile nie będziemy mieć jakiegoś zwierzaka.
Musi posiadać regulację mocy i solidny uchwyt na środkku. BMB (Brush Natural Bristle) jest wskazana.
3. Przegląd.
- 829 "AQUOS" (zalety: praca z workiem lub wodą; wady: cyfrowe przyciski) 80DB, 6.6kg, 430PLN
- 400 "Jupiter" (zalety: wytrzymały; wady: głośny, duży) 5.4kg, 400PLN
4. Akcesoria i funkcje.
- 450 SP/ST - turboszczotka w ST, szczotka mała
- 829 SP/ST- turboszczotka w ST, końcówka do zbierania wody
5. Dodatkowe detale.
450 Odyssey ma filtr ACF (Activated Carbon Filter) w EH/EK prawdopodobnie aby neutralizować brzydkie zapachy.
- 450 SP/ST - turboszczotka w ST, szczotka mała
- 829 SP/ST- turboszczotka w ST, końcówka do zbierania wody
5. Dodatkowe detale.
450 Odyssey ma filtr ACF (Activated Carbon Filter) w EH/EK prawdopodobnie aby neutralizować brzydkie zapachy.
Monday, December 2, 2013
Moving windows OS between disks...
Mnimalistic version:
If acronis cloning utility messed your drive - don't use that tool and create partitions by hand. Also migrate data manually (and using scripts provided).
I wanted to use Acronis disk cloning utility (included in my box version of kingston drive) and... it encountered some problems.
First of all - I was able to migrate the data.
Afterwards I've exchanged the drives. Since then my AHCI controller failed to detect drives.
Next step was... to connect the drive using USB-enclosure and wipe out all the partitions info.
Then it started up. But I had to clone my drive. Again - acronis. It failed with a message "Cannot write the data to the sector 0". Hardware failure?
Again connected as USB - it works fine and I can write to it. Maybe it's some security issue? BIOS shows no restrictions, I have no hardware password on the drive...
I'm creating partitions by hand (without acronis). It worked.
Solution: Create partition by hand and do NOT use acronis tool.
I can take the ownership of files but then my OS would be different than original.
I could re-install the OS and it sounds like a good plan... but I'm going to try something else.
Microsoft made its own command line shell. Since windows is not enough for "real tasks" they tried to create something like is known on Unix systems. But they wanted to make it better. The results are rather poor.
PowerShell is an interface to deal with C#/.NET/whatever system objects. It has its own commands with dumb names. It works with pipe, objects and strings, strange iterators and conversions.
So I started powershell and made a script to modify the permissions. Due to mIcrosoft design I had to store current object's owner, set myself as the new owner, add access rule for myself to the object, restore the owner. It worked until some point.
My script is running from administrator console. I had to lower system restrictions to run the .ps1 scripts.
Next problem: I cannot change the owner if the directory has no permission for me to modify it (ex. object without any permissions). I need to escalate my privileges for that. I can do it using PSCX... but it doesn't work for some reason (and installation is not that obvious).
Right now I'm waiting for my OS to restart (then I would be done with the installation of .NET 4.5 and wIndows instrumantation management or whatever). Without it I don't have powershell 3.
Will it work after reboot? With wIndows you never know and every action such as mouse click or second to pass - every such action required a restart. Well... maybe not every but many. Too many. And this is a hybrid OD which is meant to be modular, plugable and secure. Instead it is not secure (you cannot escalate your privileges easily but malware can), nor plugable (it's just fat and overloaded having many libs and crappy resources without owner), nor modular (there are no such things as modules... assemblies maybe... and files...). And in the new version... it's a spyware too.
Well... I guess that my software development might end when my MSDN license would expire. But we'll see.
Steam - I hope that you can move the gaming world into tux.
List of the problems I have encountered when fighting with NTFS stinky permissions:
If acronis cloning utility messed your drive - don't use that tool and create partitions by hand. Also migrate data manually (and using scripts provided).
Part 1: Problems with disk cloning...
Long story
Recently I've bought a new HDD (SDD in fact).I wanted to use Acronis disk cloning utility (included in my box version of kingston drive) and... it encountered some problems.
First of all - I was able to migrate the data.
Afterwards I've exchanged the drives. Since then my AHCI controller failed to detect drives.
Next step was... to connect the drive using USB-enclosure and wipe out all the partitions info.
Then it started up. But I had to clone my drive. Again - acronis. It failed with a message "Cannot write the data to the sector 0". Hardware failure?
Again connected as USB - it works fine and I can write to it. Maybe it's some security issue? BIOS shows no restrictions, I have no hardware password on the drive...
I'm creating partitions by hand (without acronis). It worked.
Summary
Conclusion: Acronis messed the disk structure in some way.Solution: Create partition by hand and do NOT use acronis tool.
Part 2: Manual data migration
Long story
Now I need to migrate the files... but you cannot do it from another Windows copy as the users from another OS instance are not present in this OS. Windows ACL sux a bit.I can take the ownership of files but then my OS would be different than original.
I could re-install the OS and it sounds like a good plan... but I'm going to try something else.
Microsoft made its own command line shell. Since windows is not enough for "real tasks" they tried to create something like is known on Unix systems. But they wanted to make it better. The results are rather poor.
PowerShell is an interface to deal with C#/.NET/whatever system objects. It has its own commands with dumb names. It works with pipe, objects and strings, strange iterators and conversions.
So I started powershell and made a script to modify the permissions. Due to mIcrosoft design I had to store current object's owner, set myself as the new owner, add access rule for myself to the object, restore the owner. It worked until some point.
My script is running from administrator console. I had to lower system restrictions to run the .ps1 scripts.
Next problem: I cannot change the owner if the directory has no permission for me to modify it (ex. object without any permissions). I need to escalate my privileges for that. I can do it using PSCX... but it doesn't work for some reason (and installation is not that obvious).
Right now I'm waiting for my OS to restart (then I would be done with the installation of .NET 4.5 and wIndows instrumantation management or whatever). Without it I don't have powershell 3.
Will it work after reboot? With wIndows you never know and every action such as mouse click or second to pass - every such action required a restart. Well... maybe not every but many. Too many. And this is a hybrid OD which is meant to be modular, plugable and secure. Instead it is not secure (you cannot escalate your privileges easily but malware can), nor plugable (it's just fat and overloaded having many libs and crappy resources without owner), nor modular (there are no such things as modules... assemblies maybe... and files...). And in the new version... it's a spyware too.
Well... I guess that my software development might end when my MSDN license would expire. But we'll see.
Steam - I hope that you can move the gaming world into tux.
List of the problems I have encountered when fighting with NTFS stinky permissions:
- I need to run as privileged user. Sometime Administrator is not enough. So I neet to exploit system and gain access to NT AUTHORITY\SYSTEM.
- Some objects could be owned by TrustedInstaller and no one else would have access to them. As SYSTEM I can take over the ownership... but I cannot see current owner. If I take the ownership - I would loose the owner information. In other words - I could not restore ownership of such objects as I don't know who owns them.
I think that developers from Microsoft made some assumptions...
Most users are extremely dumb. We should not allow them to modify the system.
Most developers are not to be trusted (I agree with that one) and we should limit their access to the system. However developers are not that dumb and we should give them more access than computer owner (user) has (I don't agree with that one).
Developers from Microsoft are the best and they never make mistakes (I strongly disagree). Windows system is perfect and cannot be hacked. It is closed source so no one can hack it.
Windows system is bug free.
To support the above:
User cannot modify system files.
User cannot modify system registry.
User has no access to system account.
There is no documentation for the system inner logic.
The are system methods to access some system things but no interface was ever planned.
New releases and patches are adding more constraints instead of new interfaces.
The are plenty viruses that gain system credentials writing themselves into system areas which are not accessible fire normal users.
They still have their sources closed.
Access details
After some time I was able to create some script. Its logic:- ForEach FileSystem element on drive: call f_grant()
- Add FullControl security rule to the element
- On AccessDenied error take ownership of the item and try again
- Iterate over elements children (directories and files inside other directories)
- Call f_grant()
ForEach top FileSystem element on drive:Move it to the destination driveForEach FileSystem element on drive: call f_revokeIterate over elements children (directories and files inside other directories)Call f_revoke()Revoke FullControl security rule from the element- Accept that owner of some elements (usually TrustedInstaller and viruses) would be lost
Problems I've encountered
MSDN site won't work correctly on HTML web browser.
MSDN site is not a valid HTML document.
MSDN site won't work correctly on InternetExplorer application in some versions.
MSDN site is slow on InternetExplorer application (at least in IE10).
MSDN says that I need to get current ACL in order to restore it later. I cannot do that if I have no privileges to do it. I need to take ownership of the object to do it. If I take the ownership I would loose information about the previous owner (which I was not able to retrieve as I had no access). This is a dead end.
Summary
Conclusion: Manual migration is challenging
Solution: Use scripts provided
# I'm not sure if this is really needed... I'm running the script as system (who is above administrator)
# First of all - set access to the root filesystem as it is inherited by its children
# After permissions change use mv command from powershell in privileged session (run from administrator or system)
# Uncomment those lines if needed... you might need to install PSCX then
#Import-Module "PSCX"
#Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeRestorePrivilege", $true) #Necessary to set Owner Permissions
#Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeBackupPrivilege", $true) #Necessary to bypass Traverse Checking
#Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeTakeOwnershipPrivilege", $true) #Necessary to override FilePermissions & take Ownership
# Get WindowsIdentity of current user
[System.Security.Principal.IdentityReference]$currentUser=([System.Security.Principal.WindowsIdentity]::GetCurrent()).owner
$accRule=new-object System.Security.AccessControl.FileSystemAccessRule($currentUser, 'FullControl','Allow')
$currentHostname=$env:COMPUTERNAME
function f($o){
$fn=$o.fullname
try{
$AC=$o.GetAccessControl()
$oldOwnerName=$oldAC.owner
} catch [System.UnauthorizedAccessException] {
Write-Host $o.fullname 'access denied - need to change owner (previous value will be lost)'
takeown /F $o.fullname /S \\$currentHostname 2>$null 1>$null
$AC=$o.GetAccessControl()
$oldOwnerName=$oldAC.owner
}
$AC.SetAccessRule($accRule)
set-acl -aclObject $AC -path $o.fullname 2>$null
if(!$?){ # try-catch won't work
# Write-Host $o.fullname 'access denied - need to change owner (previous value will be lost)'
takeown /F $o.fullname /S \\$currentHostname 2>$null 1>$null
set-acl -aclObject $AC -path $o.fullname
}
if ($_ -is [IO.FileInfo]) {
Write-Host ($o.name).padright(32,'.') $oldOwnerName
} elseif ($_ -is [IO.DirectoryInfo]) {
$o.fullname
(Get-ChildItem $o.fullname)|foreach{f($_)}
} else {
}
}
gci "N:\windows" |foreach{f($_)}
# I'm not sure if this is really needed... I'm running the script as system (who is above administrator)
# First of all - set access to the root filesystem as it is inherited by its children
# After permissions change use mv command from powershell in privileged session (run from administrator or system)
# Uncomment those lines if needed... you might need to install PSCX then
#Import-Module "PSCX"
#Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeRestorePrivilege", $true) #Necessary to set Owner Permissions
#Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeBackupPrivilege", $true) #Necessary to bypass Traverse Checking
#Set-Privilege (new-object Pscx.Interop.TokenPrivilege "SeTakeOwnershipPrivilege", $true) #Necessary to override FilePermissions & take Ownership
# Get WindowsIdentity of current user
[System.Security.Principal.IdentityReference]$currentUser=([System.Security.Principal.WindowsIdentity]::GetCurrent()).owner
$accRule=new-object System.Security.AccessControl.FileSystemAccessRule($currentUser, 'FullControl','Allow')
$currentHostname=$env:COMPUTERNAME
function f($o){
$fn=$o.fullname
try{
$AC=$o.GetAccessControl()
$oldOwnerName=$oldAC.owner
} catch [System.UnauthorizedAccessException] {
Write-Host $o.fullname 'access denied - need to change owner (previous value will be lost)'
takeown /F $o.fullname /S \\$currentHostname 2>$null 1>$null
$AC=$o.GetAccessControl()
$oldOwnerName=$oldAC.owner
}
$AC.SetAccessRule($accRule)
set-acl -aclObject $AC -path $o.fullname 2>$null
if(!$?){ # try-catch won't work
# Write-Host $o.fullname 'access denied - need to change owner (previous value will be lost)'
takeown /F $o.fullname /S \\$currentHostname 2>$null 1>$null
set-acl -aclObject $AC -path $o.fullname
}
if ($_ -is [IO.FileInfo]) {
Write-Host ($o.name).padright(32,'.') $oldOwnerName
} elseif ($_ -is [IO.DirectoryInfo]) {
$o.fullname
(Get-ChildItem $o.fullname)|foreach{f($_)}
} else {
}
}
gci "N:\windows" |foreach{f($_)}
Tuesday, November 26, 2013
Android - Soft-Keyboards
I've been using many different keyboards so far. Bellow I'll describe soft keyboards I liked the most.
Note that I'm looking for maximum usability so fancy look and skins support are just bloated additions for me. Same for emoticons, twitter/facebook/shit-o-thing integration/etc.
Note that I'm looking for maximum usability so fancy look and skins support are just bloated additions for me. Same for emoticons, twitter/facebook/shit-o-thing integration/etc.
Stock keyboard.
It's not perfect but enough.
Samsung keyboard.
Buggy and based on many hard-coded values (won't work correctly on custom screen denisity).
| Feature | Android builtin | Samsung builtin | TouchPal | Swype+Dragon | SwiftKey |
|---|---|---|---|---|---|
| Cost | free | free1 | free | 4$ | 2$ |
| Hand-writing support | +++2 | N/A | + | N/A | |
| Swype-to-type3 | + | + | + | + | |
| Voice input shortcut | + | +4 | *7 | +4 | |
| Multilang mixed input | *8 | + BiLingual | + BiLingual | + multilang? | |
| Words prediction | + | + | + | + | |
| Navigation keys | - | + | + | *5 | |
| Size | 20MB +data(0.5M) |
50MB +data(10MB) |
60MB +data(on SD, 10MB) |
||
| Easy access to extended characters | +9 | +6 | ++ | +6 | |
| Annoying |
|
||||
| Unique features |
|
|
|||
| Version used | 5.4.6.3 | 1.6.3.22544 | 4.3.1.231 | ||
| Link to the market | TouchPal X keyboard from Cootek | Swype+Dragon from Nuance | SwiftKey from SwiftKey |
1Free on Samsung phones
2Samsung keyboard has really nice pressure sensitive hand writing recognition
3I guess that "swype" word might be protected by some patents...
4Integrated as long-press of another key
5SwiftKey has limited support for navigation keys: only left&right
6Access to special characters through single-lined list - multirow table would be better
7Nuance Swype is using Dragon recognition which works online only and is a bit worse than Google speech recognition - although Nuance Dragon Naturally Speaking is great on PC
8Samsung Keyboard offers quick language change instead if multilang support but overall I like it
9Samsung keyboard offers language-dependent list of special characters - after you get used to it, it get's quite handy
Overall I must say that I like TouchPal the most. And it's free :)
Samsung for s-pen hand-writing input, TouchPal for anything else, Swype was a waste of money for me, SwiftKey has great float mode.
Android - I must fill the columns some day :)
Samsung for s-pen hand-writing input, TouchPal for anything else, Swype was a waste of money for me, SwiftKey has great float mode.
Android - I must fill the columns some day :)
Android - my experience
I'm an owner of Samsung Galaxy Note II GT-N7100. Although I love it - it sux in a way.
1. Security. Sux all the way. But I guess that it's the cost of rapid development Google wanted. It's going to get better soon though :)
2. Soft-Keyboard. Many good apps but none is the best. And the battle is on.
3. Responsiveness. But I guess that it would be possible to track down the waits to solve the problem. And it's getting better right on our eyes.
4. Fragmentation. So many brands, so many devices. I feel that Google is not able to control lead it any more.
5. Patent wars. They came from "a different world" but are killing the market. How it is possible that Microsoft is earning more than Google from the mobile Android devices?
I'm no expert but that's what I have seen.
Next I'm going to write a bit about every part I mentioned.
Subscribe to:
Posts (Atom)