반응형

table 태그의 tr에 클릭시 상세보기를 보여주는 링크를 거는 경우가 있는데,
해당 tr 내부에 button 태그가 있어도 button의 클릭 이벤트를 무시하고 tr의 onclick 메서드가 실행된다

button이 있는 td에다가 아래의 속성을 추가하면 정상적으로 동작한다

<td onclick="event.cancelBubble = true">

 

'develop > web' 카테고리의 다른 글

Apache prefork, worker 모듈 확인  (0) 2023.10.21
.htaccess를 활용한 https 이동  (0) 2023.08.30
반응형

1. libpng 라이브러리 업데이트
- 현재 XAMPP 8.0.x에서 설치되는 libPNG버전이 1.6.34인데, 동일한 오류 발생.
- 검색해보니 버전이 올라가도 안된다는 말이 있고, 1.6.34보다 더 높은 버전을 설치하면 된다는 말도 있음
- 결론은 최신 소스를 다운로드하여 make 빌드해서 설치
- 하지만 여전히 안되서 2번 방법시도하여 성공

2. ImageMagick 사용

magick convert -interlace none path/to/source-image.png path/to/target-image.png
반응형
SSLCertificateFile           xxx-crt.pem
SSLCertificateKeyFile      xxx-key.pem
SSLCertificateChainFile   xxx-chain.pem
SSLCACertificateFile       xxx-chain-only.pem

pem 파일로 생성 후 아파치에 설정할 때

 

반응형

현재 로그인한 계정의 홈폴더 (~)에 ".vimrc" 파일 생성 후 아래 내용 저장

set fileencodings=utf-8,euc-kr
set encoding=utf-8

'develop > linux' 카테고리의 다른 글

vi euc-kr, utf-8  (0) 2019.12.24
TTFB 체크 명령어  (0) 2016.02.16
GNU C, __attribute__  (0) 2014.10.14
Linux C에서 키보드 이벤트 받기(kbhit())  (0) 2014.02.28
NAT 종류별 설정  (0) 2014.02.17
반응형
{아파치 프로세스명} -V

apache2 -V
혹은
httpd -V

실행 결과

 

Config variable ${APACHE_LOG_DIR} is not defined 오류 발생하는 경우: 아파치 실행파일을 직접 실행 시 발생. 아래와 같은 명령어를 순차적으로 실행해준다.

source {아파치 설정파일 경로}/envvars
{아파치 프로세스명} -V

source /etc/apache2/envvars
apache2 -V

'develop > web' 카테고리의 다른 글

tr onclick과 내부 element onclick 같이 사용  (0) 2024.04.30
.htaccess를 활용한 https 이동  (0) 2023.08.30
반응형

2023년 8월 31일부터 플레이 스토어에 등록하기 위해서는 앱의 Target API를 33이상으로 해야 한다.

Android 13에 맞춰서 사용하던 권한을 변경했는데, Album에서 권한이 허용되지 않았다고 얼럿이 뜬다.
yanzhenjie:album는 최종 업데이트가 2018년이고, 내부적으로 권한을 체크해서 얼럿을 띄우는데, 한 개발자가 Android 13에 맞춰서 업데이트를 해놨다(Thanks)

라이브러리 참조방법
https://jitpack.io/#hisetu/Album/android_13-SNAPSHOT

 

JitPack | Publish JVM and Android libraries

JitPack makes it easy to release your Java or Android library. Publish straight from GitHub or Bitbucket.

jitpack.io

깃헙주소
https://github.com/hisetu/Album 

 

GitHub - hisetu/Album: :watermelon: Album and Gallery for Android platform.

:watermelon: Album and Gallery for Android platform. - GitHub - hisetu/Album: :watermelon: Album and Gallery for Android platform.

github.com

 

반응형

- 웹 ROOT 폴더에 저장
- 서브도메인은 제외하고 싶은경우 주석해제

<IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /

        RewriteCond %{HTTPS} off
#       RewriteCond %{HTTP_HOST} !^(sub1\.mydomain\.com|sub2\.mydomain\.com)
        RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>

'develop > web' 카테고리의 다른 글

tr onclick과 내부 element onclick 같이 사용  (0) 2024.04.30
Apache prefork, worker 모듈 확인  (0) 2023.10.21
반응형

참조: https://github.com/java-decompiler/jd-gui/issues/196

 

JD-GUI crash on start up w/ Mac High Sierra? · Issue #196 · java-decompiler/jd-gui

Hey. I've been using JD-GUI for some time now and I just recently updated my computer to High Sierra and now it crashes whenever I start it. Can anyone help, please?

github.com

 

아래 2가지 방법중 하나 사용

See issue #187 for the fix. This works on Java 9 and 10.
I fixed my Mac launcher by going into the JD-GUI.app/Contents/MacOS folder and updating the Java call in the .sh file as follows (the two --add-opens lines):
exec "$JAVACMD"
-cp "${JVMClassPath}"
-Xdock:icon="${ResourcesFolder}/${CFBundleIconFile}"
-Xdock:name="${CFBundleName}"
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
--add-opens jdk.zipfs/jdk.nio.zipfs=ALL-UNNAMED
${JVMOptions:+$JVMOptions }
${JVMDefaultOptions:+$JVMDefaultOptions }
${JVMMainClass}
${JVMArguments:+ $JVMArguments}

 

OK so I solved this by specifying the version to run inside of the Info.plist file.
To access that right click on the OSx JD-GUI icon and go to "Show Package Contents" then navigate into the "Contents" directory and open "Info.plist" inside of a text editor.

You want to look for the line that looks like:

<key>JVMVersion</key> <string>1.7+</string>

I believe the issue I was experiencing was caused by having Java 10 installed so the real issue may be that High Sierra is OK but Java 10 causes problems. To fix that I specified the Java 7 runtime in the Info.plist file by changing the above line to the following:

<key>JVMVersion</key> <string>1.7</string>

This allows me to run the JD-Gui from the osx .app wrapper as I did before my update.
반응형

/Applications/Eclipse.app/Contents/Info.plist 파일 수정

<array>

<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options,

or add a VM found via $/usr/libexec/java_home -V

<string>-vm</string><string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>

<string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home/bin/java</string>

-->

<string>-keyring</string>

                         <string>~/.eclipse_keyring</string>

<!-- Java 설치 경로를 추가 -->

<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home/bin/java</string>

<!-- 추가 -->

</array>



출처: https://sshbug.tistory.com/805 [SsonG's]

'develop > Mac OS' 카테고리의 다른 글

JD-GUI with java 8+  (0) 2021.06.07
터미널에 색상 넣기 및 프롬프트 변경  (0) 2017.06.20
Mac에서 숨김파일/폴더 표시  (0) 2017.03.23
mac os에서 wget 설치  (0) 2014.03.27
반응형

참조: https://6developer.com/935

object-c: https://indra17.tistory.com/entry/ios-%ED%83%88%EC%98%A5%ED%8F%B0-%EC%B2%B4%ED%81%AC?category=533814

func hasJailbreak() -> Bool {
        guard let cydiaUrlScheme = NSURL(string: "cydia://package/com.example.package") else { return false }
        if UIApplication.shared.canOpenURL(cydiaUrlScheme as URL) {
            return true
        }
        #if arch(i386) || arch(x86_64)
        return false
        #endif
        
        let fileManager = FileManager.default
        if fileManager.fileExists(atPath: "/Applications/Cydia.app") ||
            fileManager.fileExists(atPath: "/Library/MobileSubstrate/MobileSubstrate.dylib") ||
            fileManager.fileExists(atPath: "/bin/bash") ||
            fileManager.fileExists(atPath: "/usr/sbin/sshd") ||
            fileManager.fileExists(atPath: "/etc/apt") ||
            fileManager.fileExists(atPath: "/usr/bin/ssh") ||
            fileManager.fileExists(atPath: "/private/var/lib/apt") {
            return true
        }
        if canOpen(path: "/Applications/Cydia.app") ||
            canOpen(path: "/Library/MobileSubstrate/MobileSubstrate.dylib") ||
            canOpen(path: "/bin/bash") ||
            canOpen(path: "/usr/sbin/sshd") ||
            canOpen(path: "/etc/apt") ||
            canOpen(path: "/usr/bin/ssh") {
            return true
        }
        let path = "/private/" + NSUUID().uuidString
        do {
            try "anyString".write(toFile: path, atomically: true, encoding: String.Encoding.utf8)
            try fileManager.removeItem(atPath: path)
            return true
        } catch {
            return false
        }
    }
    func canOpen(path: String) -> Bool {
        let file = fopen(path, "r")
        guard file != nil else { return false }
        fclose(file)
        return true
    }

'develop > iOS' 카테고리의 다른 글

ios 탈옥폰 체크  (0) 2019.12.12
swift 타입체크 함수 (UIViewController)  (0) 2019.12.11
xcode에서 개발/운영 환경 설정  (0) 2019.03.28
swift에서 macro define 사용하기  (0) 2019.03.28
swift용 SQLite 클래스  (0) 2018.07.13

+ Recent posts