05/26/2024 Sunday -> This is my first day of web developer. I am new career for my life. This step will never end with lies and not giving up.
26 Mayıs 2024 Pazar
12 Ekim 2023 Perşembe
Eclipse Mosquitto Windows hakkında
Merhaba bu yazıyı gelecekte aynı saçmalıkları ben veya başka bir insan yapmasın diye yazıyorum.
Eclipse Mosquitto tamamen ücretsiz ve windows'tada çalışıyor
1. İlk olarak mosquitto programını indermek gerekiyor. aşağıdaki linkten indirin.
https://mosquitto.org/download/
2. burada tam olarak yükleme, windows path'e ekleme işlemlerini vb. anlatıyor. ama iş bitmiyor.
3. kullanıcı ve şifre yaratmayı bu siteden bak ve yap çalışıyor.
4. C:\Program Files\mosquitto bu klasör içinde özel olarak konfigürasyonları yapabileceğiniz ayarlar.conf diye bir dosya üretiyorsunuz.
Ben user name ve password'lü bağlantı istediğimden şunları ekledim.
listener 1883
allow_anonymous false
password_file C:\Program Files\mosquitto\p2.txt
Bitti mi hayır :)
4. bu konfügürasyonu window çalıştırmak için cmd'den (cmd admin olarak aç);
mosquitto -v -c ayarlar.conf yazarak ayarlar içindeki 3 parametreye göre mosquitto servisini çalışır hale getir.NOT: servis çalışıp çalışmadığı o anda zaten belli oluyor.
Bitti :)
13 Eylül 2023 Çarşamba
c# program.exe.configuration
When you need save and read some parameters which related about your settings or something else;
1. If your project does not have a "App.config" file; to make new one, right click your project and "Add->New Item->App Configuration File".
2. Open "App.Config" file and view your file like that;
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System">
<section name="DevExpress.LookAndFeel.Design.AppSettings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<appSettings>
<add key="deviceModel" value="0" />
</appSettings>
</configuration>
This is a code snippet for read value and change and save procedure;
var appSettings=ConfigurationManager.AppSettings;
if (appSettings["deviceModel"].Length!=0)
{
textBox1.Text = appSettings["deviceModel"].ToString();
}
int tempVal;
var configFile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
var settings = configFile.AppSettings.Settings;
if (settings["deviceModel"] == null)
{
settings.Add("deviceModel", "1");
}
else
{
tempVal = int.Parse(settings["deviceModel"].Value);
tempVal++;
settings["deviceModel"].Value = tempVal.ToString();
}
configFile.Save(ConfigurationSaveMode.Modified);
ConfigurationManager.RefreshSection(configFile.AppSettings.SectionInformation.Name);3 Ağustos 2023 Perşembe
Keil MDK Arm
Merhaba bu sayfada Keil'de karşılaştığım bazı sorun ve çözümleri paylaşacağım.
- Keil StLink yüzünden kendi kendine çöktüğü zamanlar oluyor bunun için buradaki linkten signed driver'ı indirip. "C:\Keil_v5\ARM\STLink" klasörünün altındaki "STLinkUSBDriver.dll" --> sonuna backup yazıp("STLinkUSBDriver.dll_backup") yedekledikten sonra indirdiğiniz dosyayı buraya kopyalayın sorun çözülmüş olacak.
10 Nisan 2023 Pazartesi
Python Notes
- reference Book: Python 3 Object Oriented Programming by Dusty Phillips
- When you see @property in a class, this means that decorators are being used in this class.
20 Aralık 2022 Salı
28 Kasım 2022 Pazartesi
Harmonics(in electrical systems)
- https://www.fluke.com/en/learn/blog/power-quality/how-to-find-harmonics-in-electrical-systems
- Overheated transformers and tripped breakers could be a sign of harmonic issues, which occur when non-linear loads that draw current in abrupt pulses, rather than in a smooth sinusoidal manner, cause harmonic currents to flow back into other parts of the power system.
- This value of THD in terms of power quality health is most often applied to the voltage. Guidance states that the voltage harmonic effects should be less than 8 percent relative to the fundamental. Values above the stated 8 percent should be investigated further.
This document solution is the best approach.
- https://www.newark.com/pdfs/techarticles/eaton/Eaton_Technical_Articles/UPS_Training/Powerware_Training/HarmonicsInYourElecSystem.pdf
PowerFactor VS CosPhi
You Can read this article. In summary;
- CosPhi results from the ratio of effective power (P) to fundamental apparent power (S1).
- PF; results from the ratio of effective power (P) to total apparent power (S) from fundamental and harmonics.
12 Ekim 2022 Çarşamba
Beaglebone Black Notes
2. Minicom is a great tool for command line serial port testing.
" minicom -b 9600 -D /dev/ttyO1" --> 9600 8N1 open Uart1 BBB :)
5 Eylül 2022 Pazartesi
17 Ağustos 2022 Çarşamba
31 Temmuz 2022 Pazar
26 Temmuz 2022 Salı
c# notes
- Understanding virtual, override and new keyword in C#
- C+K+D ==> Auto Align code all sheet.
- Lambda Kullanımı nedir?
- using kullanımı neden önemli? bence gayet basit ve yeterli bir açıklama olmuş.
12 Temmuz 2022 Salı
Altium Designer Notes
- Q --> change to imperial to mm or reverse is true
- TAB --> open properities panel
- After selecting the component, press the left key of the mouse and click the J+R character on your keyboard. This shortcut helps to which you select things and move to the center.
- CTRL+M --> Measurement , SHIFT+C clear measurements value view.
- Press G character to change grid size.
- Place->Directives->No ERC for closing unused pins
- ON/OFF if you want to top line to "ON" a straight line, use this technique.
Note: when you need a specific shortcut about Altium Designer. please see this video for remembering something.
9 Temmuz 2022 Cumartesi
Quectel M66 Notes
1- if you don't want to AT command back to you:)
Command: ATE0\r (for reopen-> ATE1\r)
4 Temmuz 2022 Pazartesi
Economic notes
1- read below article for learning "Simple Moving Average(SMA)" and "Exponential Moving Average(EMA)". this article is simple calculation for future prediction.
https://sciencing.com/calculate-exponential-moving-averages-8221813.html
7 Haziran 2022 Salı
C/C++ Notes
- https://www.cplusplus.com/reference/thread/this_thread/yield/
- argc ve argv kısmını gayet iyi anlatan bir internet sayfası https://www.thegeekstuff.com/2013/01/c-argc-argv/
- How to properly add hex escapes into a string-literal?
Arada Bakmalık siteler:
6 Mayıs 2022 Cuma
Ubuntu
Ubuntu Network:
1- tek bir interface'den sanal networkler kurmayı anlatıyor. LINK
2- if ubuntu 22.04 usb serial port converter not working please remove brltty:
"sudo apt-get remove brltty" after reboot all usb serial converters will be working
3- namp -p0- localhost--> tüm acik protları tarıyor.
16 Nisan 2022 Cumartesi
JsNotes
+buradaki kavram önemli. ('==' vs '===')
+jsx react için kullanılan yapı. bundan sonra biraz oraya bak. gerçek gelişmeler orada tamamlanmış.
11 Nisan 2022 Pazartesi
c# Notes
- The fact that in Fig. 4.1 we could create and manipulate an Account object without knowing its implementation details is called abstraction. This is one of the most powerful software-engineering benefits of object-oriented programming
- https://www.w3schools.com/cs/cs_properties.php
- If you declare one or more constructors for a class, the compiler will not create a default
constructor for that class.
WebDeviDaily
05/26/2024 Sunday -> This is my first day of web developer. I am new career for my life. This step will never end with lies and not givin...
-
05/26/2024 Sunday -> This is my first day of web developer. I am new career for my life. This step will never end with lies and not givin...
-
Understanding virtual, override and new keyword in C# C+K+D ==> Auto Align code all sheet. Lambda Kullanımı nedir? using kullanımı ne...