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는 리디렉션을 블락했다는 트레이 팝업을 더 이상 띄우지 않았다. 예~!

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...