Arif Erzin Bloğu-Kendime Notlar
İçerikler özgün değildir. Sadece sık sık lazım olan işime yarayacak olan notları almış olduğum kişisel bloğumdur.
24 Kasım 2025 Pazartesi
Excel Görünmeyen karakterleri temizleme
✅ 1) Sadece gizli ENTER (LF / ASCII 10) silmek için
=YERİNEKOY(TEMİZ(B75321);DAMGA(10);"")
✔ Bu, metnin sonundaki ASCII 10 (satır sonu) karakterini siler.
🔥 2) Daha güçlü temizlik (LF + CR + TAB hepsini siler)
Aşağıdaki formül görünmeyen 3 karakteri temizler:
-
LF →
DAMGA(10) -
CR →
DAMGA(13) -
TAB →
DAMGA(9)
Tam doğru Türkçe versiyonu:
=YERİNEKOY( YERİNEKOY( YERİNEKOY(TEMİZ(B75321);DAMGA(10);""); DAMGA(13);""); DAMGA(9);"")
✔ LF siler
✔ CR siler
✔ TAB siler
✔ TEMİZ() tüm diğer kontrol karakterlerini temizler
✔ Sütunu %100 temiz hâle getirir
Aşağıdaki formül şunları yapıyor:
-
Gizli karakterleri temizler (ENTER, TAB vs.)
-
.,;:!?'"()/-_@#gibi noktalama işaretlerini siler -
KIRPile çift boşlukları tek boşluğa indirir, baştaki/sondaki boşlukları da siler
Hücren B1 ise, yeni bir sütunda (ör. C1’e) aynen bunu yaz:
=KIRP( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( YERİNEKOY( TEMİZ(B1); DAMGA(10);""); // LF (ENTER) DAMGA(13);""); // CR DAMGA(9);""); // TAB DAMGA(160);""); // NBSP (silinmeyen boşluk) ".";""); ",";""); ";";""); ":";""); "!";""); "?";""); "(";""); ")";""); "-";"") )
9 Temmuz 2020 Perşembe
Docker tüm çalışan containerleri durdurma ve silme
docker system prune -a --volumes
Remove all unused containers, volumes, networks and images
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all volumes not used by at least one container
- all images without at least one container associated to them
- all build cache
31 Mayıs 2020 Pazar
laravel 4.2 stream_socket_enable_crypto(): SSL operation failed with code 1 Hatası
StreamBuffer.php. For me I use xampp and my project name is itis_db for this my path is like this. So try to find according to your oneC:\xampp\htdocs\itis_db\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Transport\StreamBuffer.php
private function _establishSocketConnection()
$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;
Editor's note: disabling SSL verification has security implications. Without verification of the authenticity of SSL/HTTPS connections, a malicious attacker can impersonate a trusted endpoint (such as GitHub or some other remote Git host), and you'll be vulnerable to a Man-in-the-Middle Attack. Be sure you fully understand the security issues before using this as a solution.
private function _establishSocketConnection()
{
$host = $this->_params['host'];
if (!empty($this->_params['protocol'])) {
$host = $this->_params['protocol'].'://'.$host;
}
$timeout = 15;
if (!empty($this->_params['timeout'])) {
$timeout = $this->_params['timeout'];
}
$options = array();
if (!empty($this->_params['sourceIp'])) {
$options['socket']['bindto'] = $this->_params['sourceIp'].':0';
}
$options['ssl']['verify_peer'] = FALSE;
$options['ssl']['verify_peer_name'] = FALSE;
$this->_stream = @stream_socket_client($host.':'.$this->_params['port'], $errno, $errstr, $timeout, STREAM_CLIENT_CONNECT, stream_context_create($options));
if (false === $this->_stream) {
throw new Swift_TransportException(
'Connection could not be established with host '.$this->_params['host'].
' ['.$errstr.' #'.$errno.']'
);
}
if (!empty($this->_params['blocking'])) {
stream_set_blocking($this->_stream, 1);
} else {
stream_set_blocking($this->_stream, 0);
}
stream_set_timeout($this->_stream, $timeout);
$this->_in = &$this->_stream;
$this->_out = &$this->_stream;
}
app/config/email.phpsmtp to mail
Ben bu kısmı yapmadım son hali şu<?php
return array(
'driver' => 'smtp',
'host' => app('site_settings')->destek_mail_host,
'port' => 587,
'from' => array('address' => app('site_settings')->destek_mail, 'name' => app('site_settings')->site_isim),
'username' => '',
'password' => '',
'encryption' => 'tls',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
);
5 Nisan 2020 Pazar
Php ile TC Kimlik Doğrulama (SOAP)
$soapUrl = "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL";
$xml_post_string='<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<TCKimlikNoDogrula xmlns="http://tckimlik.nvi.gov.tr/WS">
<TCKimlikNo>11111111111</TCKimlikNo>
<Ad>AD</Ad>
<Soyad>SOYAD</Soyad>
<DogumYili>1950</DogumYili>
</TCKimlikNoDogrula>
</soap12:Body>
</soap12:Envelope>';
$headers = array(
"Content-type: application/soap+xml; charset=utf-8",
"Accept: text/xml",
"Cache-Control: no-cache",
"Pragma: no-cache",
"SOAPAction: http://tempuri.org/writeXML",
"Content-length: ".strlen($xml_post_string),
); //SOAPAction: your op URL
$url = $soapUrl;
// PHP cURL for https connection with auth
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
//curl_setopt($ch, CURLOPT_USERPWD, $soapUser.":".$soapPassword); // username and password - declared at the top of the doc
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_post_string); // the SOAP request
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
// converting
$response= curl_exec($ch);
curl_close($ch);
// print_r($response);
$xml = preg_replace("/(<\/?)(\w+):([^>]*>)/", "$1$2$3", $response);
$xml = simplexml_load_string($xml);
$json = json_encode($xml);
// var_dump($json);
$responseArray = json_decode($json,true);
return $responseArray["soapBody"]["TCKimlikNoDogrulaResponse"]["TCKimlikNoDogrulaResult"];
10 Kasım 2019 Pazar
C# ile mongoDB işlemleri
{
ProductService productService = ProductService.ProductClientAsSingleton();
productService.ProductInsert();
//productService.ProductList();
//productService.ProductUpdate("5b17a2be59609e359032d21d");
//productService.ProductDelete("5b17a2be59609e359032d21d");
// productService.ProductListWhere(true);
//productService.ProductFind("5dc7128d4d6f992b08f29d18");
MessageBox.Show("tamam");
}
-----------------------------------------------ProductService.cs---------------------------------------------------------------------
using MongoDB.Bson;
using MongoDB.Driver;
using Newtonsoft.Json;
using System;
using System.IO;
using System.Linq;
namespace Mongostock
{
public class ProductService
{
private static ProductService _client;
private static object lockObject = new object();
private MongoClient mongoClient;
private IMongoCollection<Root> productCollection;
private IMongoCollection<Stock> productCollectionItems;
public static ProductService ProductClientAsSingleton()
{
lock (lockObject)
{
return _client ?? (_client = new ProductService());
}
}
public ProductService()
{
mongoClient = new MongoClient("mongodb://user:pass@ipadresi/?authSource=admin");
var database = mongoClient.GetDatabase("databasename");
productCollectionItems = database.GetCollection<Stock>("stock_test");
}
public void ProductInsert()
{
/*
string json = @"{
'name' : 'Elma',
'price' : 11,
'quantity' : 3,
'status' : true,
'categoryid' : 1,
'IsActive' : true
}";
Product product = JsonConvert.DeserializeObject<Root>(json);
productCollection.InsertOne(product);
*/
// deserialize JSON directly from a file
using (StreamReader file = File.OpenText(@"c:\stock_all.json"))
{
JsonSerializer serializer = new JsonSerializer();
Root product = (Root)serializer.Deserialize(file, typeof(Root));
// Console.WriteLine("id: " + product.Stocks.ToString());
var stoklar = product.Stocks.ToList();
Console.WriteLine("Başlangıç: " + DateTime.Now);
productCollectionItems.InsertMany(stoklar);
/*
int say = 0;
string KayitDurumu = "YOK";
foreach (var stok in stoklar)
{
Console.WriteLine("say: " + say++);
Console.WriteLine("ps1: " + stok._id);
Console.WriteLine("ps2: " + stok.Ps2);
Console.WriteLine("ps3: " + stok.Ps3);
Console.WriteLine("ps4: " + stok.Ps4);
KayitDurumu=ProductFind(stok._id);
if (KayitDurumu == "YOK")
{
Stock eleman = new Stock
{
_id = stok._id,
Ps2 = stok.Ps2,
Ps3 = stok.Ps3,
Ps4 = stok.Ps4
};
productCollectionItems.InsertOne(eleman);
}
else
{
Stock eleman = new Stock
{
_id = stok._id,
Ps2 = stok.Ps2,
Ps3 = stok.Ps3,
Ps4 = stok.Ps4
};
ProductUpdate(stok._id,eleman);
}
}
Console.WriteLine("sayı: " + product.Stocks.Count);
*/
Console.WriteLine("Bitiş: " + DateTime.Now);
/*
int say = 0;
foreach (var stok in stoklar)
{
Console.WriteLine("say: " + say++);
Console.WriteLine("ps1: " + stok.Ps1);
Console.WriteLine("ps2: " + stok.Ps2);
Console.WriteLine("ps3: " + stok.Ps3);
Console.WriteLine("ps4: " + stok.Ps4);
Stock eleman = new Stock
{
Ps1 = stok.Ps1,
Ps2 = stok.Ps2,
Ps3 = stok.Ps3,
Ps4 = stok.Ps4
};
productCollectionItems.InsertOne(eleman);
}
Console.WriteLine("sayı: " + product.Stocks.Count);
*/
}
var database = mongoClient.GetDatabase("databasename");
database.DropCollection("stock");
database.RenameCollection("stock_test", "stock");
database.CreateCollection("stock_test");
/*
Product product = new Product
{
Name = "Armut",
Price = 11,
Quantity = 3,
Status = true,
CategoryId = 1,
Date = DateTime.Now,
isActive = true
};
productCollection.InsertOne(product);
*/
}
public void ProductList()
{
var products = productCollectionItems.AsQueryable<Stock>().ToList();
foreach (var product in products)
{
//Console.WriteLine("id: " + product.Id);
Console.WriteLine("ps1: " + product._id);
Console.WriteLine("ps2: " + product.Ps2);
Console.WriteLine("ps3: " + product.Ps3);
Console.WriteLine("ps4: " + product.Ps4);
}
}
public void ProductUpdate(string id,Stock eleman)
{
var result = productCollectionItems.UpdateOne(
Builders<Stock>.Filter.Eq("_id", ObjectId.Parse(id)),
Builders<Stock>.Update
.Set("ps2", eleman.Ps2)
.Set("ps3", eleman.Ps3)
.Set("ps4", eleman.Ps4)
);
}
public bool ProductDelete(string id)
{
var result = productCollection.DeleteOne(Builders<Root>.Filter.Eq("_id", ObjectId.Parse(id)));
return Convert.ToBoolean(result.DeletedCount);
}
public void ProductListWhere(bool status)
{
var products = productCollectionItems.AsQueryable<Stock>().Where(p => p.Status == status).ToList();
foreach (var product in products)
{
//Console.WriteLine("id: " + product.Id);
Console.WriteLine("ps1: " + product._id);
Console.WriteLine("ps2: " + product.Ps2);
Console.WriteLine("ps3: " + product.Ps3);
Console.WriteLine("ps4: " + product.Ps4);
}
}
public string ProductFind(string id)
{
var products = productCollectionItems.Find(Builders<Stock>.Filter.Eq("_id", id)).ToList();
var sayi = products.Count;
if (sayi > 0)
{
/* foreach (var product in products)
{
//Console.WriteLine("id: " + product.Id);
Console.WriteLine("ps1: " + product._id);
Console.WriteLine("ps2: " + product.Ps2);
Console.WriteLine("ps3: " + product.Ps3);
Console.WriteLine("ps4: " + product.Ps4);
}
*/
return id;
}
else
{
return "YOK";
Console.WriteLine("Durum: Bulamadım hacı abi");
}
}
}
}
30 Ağustos 2019 Cuma
Laravel pagination max 50 page
public function getLastPage()
{
if($this->lastPage>50){return 50;}else{return $this->lastPage;}
}
Laravel timeout Allowed memory size of hatası
\vendor\laravel\framework\src\Illuminate\Database\Connection.php
public function disableQueryLog()
{
$this->loggingQueries = false;
}
25 Temmuz 2019 Perşembe
MongoDB
use View, Input, Redirect, Validator, Sentry, Hashids,Carbon\Carbon,MongoDB;
public static function connectMongo($database)
{
$mongo = new MongoDB\Client('mongodb://', array(
'username' => '',
'password' => '',
'db' => 'database'
));
return $db = $mongo->selectDatabase($database);
}
public static function tableMongo($table)
{
$db=\Timelinemongo::connectMongo("database");
return $collection = $db->selectCollection($table);
}
public static function Timelineekle($sepet_id, $satis_durumu, $aciklama)
{
$kullanici = \Sentry::getUser();
$timeline=array();
$timeline["sepet_id"]=$sepet_id;
$timeline["durum"]=$satis_durumu;
$timeline["kayit_yapan_id"]=$kullanici->id;
$timeline["kayit_yapan_ad"]=$kullanici->first_name;
$timeline["kayit_yapan_soyad"]=$kullanici->last_name;
$timeline["aciklama"]=$aciklama;
$timeline["created_at"]=date('Y-m-d H:i:s');
//mongodb ye yerleştir---------------------------------------------------------------------------------------------------
$db=\Timelinemongo::connectMongo("database");
$mongoekle=\Timelinemongo::tableMongo('timeline');
$mongoekle->insertOne($timeline);
}
public function timelinesepet($id)
{
$sepet_id = \Hashids::decode($id)[0];
$sepet= \Sepet::find($sepet_id);
$donus=array();
$db=\Timelinemongo::connectMongo("database");
$islemler =\Timelinemongo::tableMongo('timeline');
// Koşulu tanımlıyorum.
$where = array('sepet_id' => $sepet_id);
// Sıralamayı belirliyorum. (1 : ASC , -1 : DESC)
$orderBy = array('created_at' => -1);
// Kayıtları Çekiyorum.
$timelines = $islemler->find($where)->sort($orderBy);
$timelines = \Timelinesepet::where("sepet_id", $sepet_id)->orderBy('id', 'desc')->get();
return View::make('Timeline::timelinesepet')->with("timelines",$timelines)->with("sepet",$sepet);
}
9 Eylül 2018 Pazar
c# ta yapılan bir programın görev çubuğuna çıkan simgesini gizlemek
formun özelliklerinden ShowInTaskbar Özelliğini False yapmanız yeterli.
C# – System Tray – Uygulamayı görev çubuğunda çalıştırma
{
notifyIcon1.Visible = true;
notifyIcon1.ShowBalloonTip(500);
this.Hide();
}
else if (FormWindowState.Normal == this.WindowState)
{
notifyIcon1.Visible = false;
this.Show();
}
search this website
email updates
Like us on facebook
Katkıda bulunanlar
Etiketler
- AJAX (3)
- alertbox (1)
- android (1)
- Asp.net (22)
- blogger (1)
- bootstrap (2)
- C# (1)
- Canvas (3)
- capture (2)
- datetime (1)
- dizüstü (1)
- dizüstü bilgisayardan interneti paylaştırmak (1)
- editör yapma (1)
- facebook api (1)
- Flash (1)
- format (1)
- geometri (6)
- google (1)
- Graf (1)
- Graf Teorisi (1)
- Hatalar (4)
- Html (1)
- html5 (2)
- iframe (1)
- ilköğretim (4)
- javascript (2)
- jquery (7)
- JSON (2)
- kablosuz (1)
- Karakter (1)
- Kodlama örnekleri (2)
- kütle (4)
- Laravel (2)
- laravel g-zip (1)
- Listbox (1)
- Matematik (20)
- matematikistan (2)
- matematikistan.net (16)
- mongoDB (1)
- msdos (1)
- mysql (4)
- netbeans (1)
- phonegap (1)
- php (3)
- php ile benzer tags (1)
- php similar tags (1)
- routing (2)
- Samsung (1)
- Save (1)
- Save Canvas (2)
- SOAP (1)
- tags (1)
- tarih (1)
- Thumbnail (1)
- Türkçe (1)
- türkçe karakter (1)
- Türksat 4A (1)
- url routing (2)
- utf-8 (1)
- Validation Kontrolleri (3)
- wifi (1)
- WYSIWYG (1)
- WYSIWYG editör (1)
- xml (1)
İşe Yarar Siteler
-
Bosch HXR390H20T - Bosch HXR390H20T fırın Bosch'un 2019 yılı için çıkardığı özellikleri biraz daha yükseltilmiş bir fırın görüntüsü veriyor. Seçimimizi bu fırından yana kulla...6 yıl önce
Popular Posts
-
Kaynak: https://forum.donanimhaber.com/android-cihazinizla-kablosuz-olarak-pc-deki-dosyalara-erisebilme-muzik-video-resim-stream-edebilme--8...
-
Localhost için Choreme Eklentisi = Eklenti Sunucu Taraflı çalışmalarda ise php dosyasının en üstüne aşağıdakileri ekleyebilirsiniz: he...
-
Hafıza kartı lazım öncelikle. Şimdi bir not defteri açıyoruz. İçine şu satırı kopyalıyoruz: --wipe_data Sonra bu dosyası dosya uzantıs...
-
Dosyaya erişim izni verme sudo chmod -R 777 /home/sixven/camp_sms/inputs
-
TCPDF de font türkçe destekli bile olsa zaman zaman sıkıntı yaratabiliyor. Yapılacak işlemler şunlar 1- http://fonts.snm-portal.com/ fon...
-
How to delete, disable and exit Demo Live Unit Retail Mode on the Samsung Galaxy S5 1. The first thing to do is to disable the retail mod...
-
başlat>çalıştır>regedit burdan aşağıdaki değerleri silin; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\De...
-
Öncelikle http://htmlagilitypack.codeplex.com/ sitesinden Html Agility Pack i indiriyoruz sonra projemizde sağ üstdeki solution ex...
-
Facebook uygulama geliştirirken bu tarz bir hata aldım. Çözümü : 1) https://developers.facebook.com sayfasından uygulamanın “Settings” ...
-
GsmComm kütüphanesiyle SMS Göndermek ve SMS Okumak Önce telefonunuzu bilgisayarınıza USB veya Bluetooth ile bağlayın. Telefonunuzun ...
© Arif Erzin Bloğu-Kendime Notlar 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool











