13 Haziran 2020 Cumartesi

Prevent idle SSH timeouts: client_loop: send disconnect: Broken pipe

If there is no package transfer happens during SSH sesison,  sshd automatically closes that session. On Ubuntu, in order to prevent that;

Open sshd_config using vim:

vim /etc/ssh/sshd_config

Add lines:

ClientAliveInterval 60
ClientAliveCountMax 720

And then apply changes by restarting sshd;

sudo /etc/init.d/ssh restart
---
ClientAliveInterval configures the server to send null packets to clients every 60 seconds and ClientAliveCountMax configures the server to close the connection if the client has been inactive for 720 intervals that are 60*720 = 43200 which equals 12 hours.

23 Mayıs 2020 Cumartesi

Intellij Gradle debug Cannot resolve constructor 'new groovy.lang.GroovyClassLoader(_$_23parentLoader)' error

While using IntelliJ IDEA Community Edition for debugging my Gradle task, at some point I needed to evaluate expression to see what is current state of the project.

When I type expression and hit to evaluate button, result area displays an error message

Cannot resolve constructor 'new groovy.lang.GroovyClassLoader(_$_23parentLoader)'

In order to fix that, I change expression language from Groovy to Java.


3 Ağustos 2017 Perşembe

Gran Turismo 6 Terms of Use for Online Services bug

If you have an error from your GT, "Unable to connect to the server, as you have not yet agreed to the Terms of Use for Online Services" probably you changed your PSN account language. For workaround this bug, you need to revert back this language change. Also you may see this warning: "You cannot proceed any further without agreeing to the Terms of Use for Online Services"

28 Temmuz 2017 Cuma

Android Studio 3.0, Intellij IDEA 2017 klavye kısayol problemi

Mac kullanıcısı olarak normalde "cmd+." olarak kullandığınız "comment with line comment" Android Studio 3.0 ile çalışmıyor mu? Bunun sebebi Intellij IDEA 2017.1 ile gelen bir bug. Keyboard layoutları için yapılan bir geliştirme var (bundan sonra comment line shortcut'ı Türkçe-Q layout'u için cmd + shift + 7 olarak güncellenecek, ancak bug yüzünden olamıyor)

Mac cihazınızda bu problemi aşmak için yapabileceğiniz;

Help -> Edit Custom Properties diyerek açılan idea.properties dosyasına şu satırı eklemeniz :

com.jetbrains.use.old.keyevent.processing=true

Sonrasında idea'yı restart ederek "CMD + ." kısayolunu "comment with line comment" kısayolu için kullanmaya devam edebilirsiniz.

Bug sayfasına ve ilgili workaraound için aşağıdaki linki kullanabilirsiniz:

https://youtrack.jetbrains.com/issue/IDEA-165950#comment=27-2053321

6 Haziran 2017 Salı

Unable to import DeviceCheck, CoreNFC in XCode 9 Beta while using Swift

for import DeviceCheck and Core NFC in XCode 9 you need to use real device as target because there is no x86 version of DeviceCheck and Core NFC frameworks.

Related pages:
Unable to import CoreNFC:
https://forums.developer.apple.com/message/232384#232384

Unable to import in CoreNFC in swift project Xcode 9 beta:
https://stackoverflow.com/questions/44386023/unable-to-import-in-corenfc-in-swift-project-xcode-9-beta

31 Mayıs 2017 Çarşamba

How to solve macOS wifi speed fluctuation, low speed problem?

There may be a too many reason but for me, unknowingly, reason is mDNSResponder daemon.

On macOS Sierra version 10.12.4 (I faced same problem El Capitan, too), when I download something in high speeds, sometimes speed drops to 0kbps and after few seconds it starts to download in 100mbps again. This fluctuation occurs occasionally but when it occurs it stays until I restart the computer.

The reason behind this problem is mDNSResponder daemon. For resolve issue, you can;

- Open Activity Monitor
- Jump to Network tab (for finding mDNSResponder process easily)
- click on mDNSResponder
- click X button which left of to the info button.(Force process to quit)
- exit from the process using "Force Quit" button



Or, if you are a terminal guy,

ps aux | grep mDNSResponder
sudo kill -9 <pid>

14 Temmuz 2016 Perşembe

XCode8 iMessage Swift 2.3 dyld: Symbol not found: __swift_getInitializedObjCClass ,Message.appex/../../Frameworks/libswiftCore.dylib

dyld: Symbol not found: __swift_getInitializedObjCClass
Referenced from: derived_path/PlugIns/Message.appex/Message
Expected In: derived_path/PlugIns/Message.appex/../../Frameworks/libswiftCore.dylib
in derived_path/PlugIns/Message.appex/Message

This problem occurs because of the difference of the target swift versions . You need to set swift version same in the both of the main target and imessage extension target.

Related apple developer forum post : https://forums.developer.apple.com/thread/48740
Related Posts Plugin for WordPress, Blogger...