2017년 10월 11일 수요일

Fancybox 1.3.4 and youtube iframe, not swf (flash)

Plz refer this, http://it-blog.club/fancybox-iframe/

just translate the page and that's how-to.

<script type="text/javascript">
$(document).ready(function() {
$("#sia").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 720,
'height' : 405,

'href' : this.href,

'type' : 'iframe',
'iframe': {
'scrolling': 'auto',
'preload': true
}
// 'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
// 'type' : 'swf',
// 'swf' : {
// 'wmode' : 'transparent',
// 'allowfullscreen' : 'true'
// }
});
return false;
});
});
</script>


<div class="float_l imgdiv"><a id="sia" class="event iframe" title="" href="https://www.youtube.com/embed/ABCDefgHIJKlmn"><img class="imgbox" alt="" src="/imgdir/image.jpg"><br>Link Text</a></div>




The commented lines are the previous codes that worked well before Youtube stopped supporting ㄻAdobe Flash(SWF) embedding.

The attributes of 'href', 'type', and 'iframe' are modified.

Now it works fine with the new URL format for embedding like https://www.youtube.com/embed/ABCDefgHIJKlmn

Thank you it-blog.club!


Solved: liveadexchanger.com by deleting weird scheduled task in Task Scheduler of Windows 7 (태스크 스케줄러로 삭제, 해결)

Windows 7
Chrome
Malwarebytes

Problem: redirection/popup to www.liveadexchanger.com

Solution: It seems there is no certain solution yet, though, I did the followings:

0. Install Malwarebytes, another anti-malware program, and CCleaner and make them all up-to-date

1. Reboot the PC in Safe Mode with networking available (F8, F8, F8, ... on bootup)

2. scanning the PC with Malwarebytes and another anti-malware program without running both of them simultaneously, one by one

Run CCleaner and do 3 to 8
deleting or uninstalling
3. unwanted programs,
4. unwanted Windows scheduled tasks,
5. unwanted Windows starting programs,
6. unwanted Windows auto-starting services,

cleaning up
7. Windows registry,
8. browsers history, cookie, temporary files, and uncertain extensions or plugins,

Question:
  How do you know which one is the unwanted program?
Answer:
  When you check the list of programs/tasks, if you don't know what one program does for you, then you can delete it. If it's the one you needed and you found that out later, you can download and install the program then.

In my case, when I open and check 'Task Scheduler', there were a folder 'WSD' and a scheduled task inside, but its author was no one; not Microsoft, not Adobe, not Google, and I know it's weird. Another example, one task's author was 'MS' but I know Microsoft never name them like that. I didn't hesitate to delete it. I removed all the tasks first and the folders later. (couldn't delete the folder before deleting all the task and sub-folders inside)

Question:
  How do you know which one is the unwanted Windows service?
Answer:
  Google the list of default Windows services according to your Windows edition, and disable all services by choosing 'Diagnostic startup' in 'msconfig' dialog, and set up each service's property as 'Automatic', 'Manual', 'Disable', or 'Automatic (delayed)' by referring the default service list.
You may encounter a popup of something like 'Starting the service is failed by dependency problem' but just go on top-to-bottom and once more bottom-to-top, then no problem.

Now, I don't meet the Malwarebytes alarm popup any more.





윈7, 크롬 사용 중 liveadexchanger.com로 리디렉션 되는 걸 막았다고 Malwarebytes가 계속 메시지를 띄우는데, 막상 치료는 하지 않았다.
Malwarebytes로 스캔하면 깨끗하다고 나오면서 리디렉션 블락 메시지는 계속 띄운다. Malwarebytes 포럼에도 간단하고 확실한 답변은 없었다.

구글링 결과 해당 맬웨어의 위치가 랜덤인 것 같다. 따라서 확실한 해결방법도 없는 상황. 그치만 매우 자세히 훑어가며 진행한 결과, 블락했다는 알람이 뜨지 않는다.


0. Malwarebytes 설치, MZK (Malware Zero Kit) 다운로드 & 압축 해제, CCleaner 설치

1. 컴퓨터를 네트워킹 가능한 안전모드로 재부팅 (부팅시 F8 연타)

2. Malwarebytes로 검사, MZK로 검사

CCleaner 실행 후 3부터 8까지 진행
삭제나 언인스톨
3. 의심스러운 프로그램,
4. 의심스러운 예약된(스케줄된) 작업,
5. 의심스러운 윈도우 자동 시작 프로그램,
6. 의심스러운 윈도우 자동 시작 서비스,
7. 윈도우 레지스트리 정리,
8. 브라우저 방문기록, 쿠키, 임시 파일, 확장프로그램/플러그인 정리

이후 '작업 스케줄러'를 실행하고, 의미가 불분명한 이상한 이름, 예 WSD, 또는 만든 이(Author)가 빈 칸으로 뜨거나 Google Inc, Microsoft, Adobe 등 정확하게 뜨지 않는 작업들을 모두 삭제하고 폴더도 삭제했다. (참고: 빈 폴더가 아니면 삭제가 안 됨) 또는 만든 이가 Microsoft가 아니라 MS라고 되어 있던 작업도 있었던 거 같은데ㅎㅎ 다 삭제했다.

그리고 재부팅.

크롬을 사용해도 Malwarebytes는 리디렉션을 블락했다는 트레이 팝업을 더 이상 띄우지 않았다. 예~!

2017년 8월 8일 화요일

무선랜 네트워크 제한된 엑세스 문제 해결 (Trouble-shooting Limited Access of Network with Wireless LAN Adapter)

Some network router/card/adapter cannot deal with static IP address.

 

 

Circumstance Brief

Wireless Router: Netis WF2780 (Dual-band, supports up to 802.11ac, Firmware version 1.8.13)
Wireless LAN Adapter: ipTIME N100 mini (Realtek RTL8188CU Wireless LAN 802.11n USB2.0)
OS: Windows 7
M/B: Asrock Intel Z68

Symptoms

First week of Wireless LAN installation which was set up with 'dynamic' IP settings:
There was any problem.

After the router set-up with 'fixed' IP address with MAC of Wirelss LAN;
router - 192.168.x.1 and PC - 192.168.x.2

  • Ping command to the router shows very big number of 'time=' values between 500ms to 4000ms, especially when I tried to open some websites in the browser
  • Many times of none-request randomly occurred
  • The tray icon of Windows WiFi;not wireless adapter's Realtek utility, showed connected but Limited Access, which nobody on this planet likes
  • Sometimes it showed 'unknown network' with the bench image in Network and Sharing Center window

Trials for a week

  1. Diagnose button
  2. Turning off & on the wireless adapter
  3. Turning off & on the wireless router
  4. Removing Wireless Networks (profiles) in Manage Wireless Networks
  5. Eventually I released the 'fixed' IP address setup of the router administration page (192.168.x.1) but the symptoms still happened. What the...?
  6. Even the hardware-wise reset of the wireless router didn't help...... come on?!
  7. Updating the firmware of the wireless router and hardware reset. Same.
Nothing among the above worked. Nothing.

Solution

Okay, I believed there was no problem with the wireless LAN adapter's driver because it worked totally fine before I set up my PC's IP address 'fixed' with its wireless adapter's MAC.

Finally I uninstalled the adapter's driver and detached the tiny device from my USB port, and I did everything that I have to, just like when I bought this USB wireless LAN adapter newly and installed it for the first time.

Bingo!

Now I merely remember that I reinstalled (updated) the adapter's driver before I set up the IP address of my PC 'fixed'. I'm not sure, but it's possible because the solution and its result reflect that. That means... setup of fixed IP is probably not a problem.

I tried and wrote here everything that I could try to solve 'Limited Access' and 'Requests timed out during ping -t', so I hope one of them I tried helps you when you have a similar problem with your WiFi. Why don't you try to update your adapter's driver first? ;)


P.S. Now I want to set up my PC's IP address as '192.168.x.2' but I'm only thinking and not taking an action... very scary.

P.S.2 Now set up the router WF2780 for my PC as static IP address and it happened again. Again, I reset the router and reinstall my Wireless LAN device driver and no problem with THE STATIC IP ADDRESS. Netis released new firmware for my router but I don't wanna update it because I'm so tired. :p


===============================================

Korean

무선공유기 설정(192.168.x.1)에 가서 내 컴터 무선랜카드의 MAC을 이용해서 고정아이피 192.168.x.2로 설정하였음. 그리고 다음과 같은 문제 발생 시작.

  • 제한된 엑세스
  • 무선공유기(게이트웨이)에 핑 -t 날려놓고 브라우저에서 웹서핑 하려고 하면 time 값이 엄청 커지다가
  • 끝내는 응답 없음이 자주 시전

다양한 시도

  1. 진단 버튼
  2. 무선랜카드 껐다 켜기
  3. 무선공유기 껐다 켜기
  4. 무선 네트워크 프로필 삭제
  5. 무선공유기 설정에서 MAC 주소로 PC의 IP 고정한 세팅 해제
  6. 무선공유기 볼펜으로 리셋
  7. 무선공유기 펌웨어 업데이트
모두 다 부질 없었으나,
무선랜카드 드라이버 제거 후, USB포트에서 장치 뺐다가 다시 꼽고, 최신 드라이버를 재설치(윈도우가 자동으로 잡는 드라이버 말고) 후 정상 작동

P.S. 생각해보니 고정 IP 설정하기 전에 무선랜카드 드라이버를 업데이트 했던 거 같음. 아무 생각 없이... 고정 IP 설정은 문제의 원인이 아니었을 수도... 아, 다시 고정 IP 시도해 보고 싶다... 근데 무서워서 못 하고 있음

P.S.2 고정 IP 설정을 다시 했다가 같은 문제가 발생해서, 다시 공유기 리셋, 랜카드 드라이버 재설치 후 그냥 유동 IP로 문제 없이 사용 중ㅋ

2017년 7월 13일 목요일

How to show the day of the week into Windows tray or taskbar clock (윈도우 트레이/태스크바 시계에서 요일 보이게 하는 방법)

One of the very best Windows Tip ever!




Control Panel -> Region and Language -> Additional Settings button -> Date tab -> Short date

Add '-dddd' at the end of 'Short date'.

God bless you, Lowell Heddings and How-To Geek!

Check it out with the screen images. -> Here


In Korean,
제어판 -> 국가 및 언어 -> 고급 설정 버튼 -> 날짜 탭 -> 짧은 날짜 칸 끝에 '-dddd'를 추가 (키보드로 타이핑 해서 넣음)

공대 나와서 개발자로 지내면서, 진짜 이걸 오늘 알다니...
(How do I get to know this today after graduating the college of Software Engineering and working as a developer until now...)

2017년 6월 28일 수요일

Why z-index doesn't work as you code (or why your hyper link cannot be clicked)

No, it works as you code but just ...

z-index only works on positioned elements (position: absolute, position: relative, or position: fixed).

Without a line of 'position: xxxxx' or with 'position: static' in your css,

it doesn't work and means nothing!!!

Holy kowabungga!!!



Can't click your link after adding 'float' into your CSS?

Add a high 'z-index' than its container or background elements, and ...

also that holy 'position: relative'!

Solution!

2017년 4월 4일 화요일

How to Copy Files or Directories by Using "rsync" with Excluding Particular Multiple Files or Folders

$ sudo rsync -av --progress --exclude="filetobeexcluded" --exclude="foldertobeexcluded" /sourcedir /destinationdir

I like cp -r command but this rsync is awesome too!

Hooray!

Xubuntu: Installing a Printer (Canon G3060 PIXMA)

$ sudo apt install system-config-printer Download the proper driver for linux from Canon website. Turn on the printer and set up its WiFi. C...