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
İç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.
Response.Cache.SetNoStore();You could also set this in the page declaration with:
public static byte[] Compress(byte[] data) { MemoryStream ms = new MemoryStream(); DeflateStream stream = new DeflateStream(ms, CompressionMode.Compress); stream.Write(data, 0, data.Length); stream.Close(); return ms.ToArray(); }public static byte[] Decompress(byte[] data) { MemoryStream ms = new MemoryStream(); ms.Write(data, 0, data.Length); ms.Position = 0; DeflateStream stream = new DeflateStream(ms, CompressionMode.Decompress); MemoryStream temp = new MemoryStream(); byte[] buffer=new byte[1024]; while (true) { int read = stream.Read(buffer, 0, buffer.Length); if (read <= 0) { break; } else { temp.Write(buffer, 0, buffer.Length); } } stream.Close(); return temp.ToArray(); }
protected override void SavePageStateToPersistenceMedium(object state) { LosFormatter formatter = new LosFormatter(); StringWriter writer = new StringWriter(); formatter.Serialize(writer, state); string viewState = writer.ToString(); byte[] data = Convert.FromBase64String(viewState); byte[] compressedData = ZipState.Compress(data); string str = Convert.ToBase64String(compressedData); ClientScript.RegisterHiddenField("__CompressedVIEWSTATE", str); } protected override object LoadPageStateFromPersistenceMedium() { string viewstate = Request.Form["__CompressedVIEWSTATE"]; byte[] data = Convert.FromBase64String(viewstate); byte[] uncompressedData = ZipState.Decompress(data); string str = Convert.ToBase64String(uncompressedData); LosFormatter formatter = new LosFormatter(); return formatter.Deserialize(str); }
<div class="row">
<div class="col-sm-6 col-lg-3">
This is part of our grid.
</div>
<div class="col-sm-6 col-lg-3">
This is part of our grid.
</div>
<div class="col-sm-6 col-lg-3">
This is part of our grid.
</div>
<div class="col-sm-6 col-lg-3">
This is part of our grid.
</div>
</div>
sm
, then it will be that grid size for sm
, md
, and lg
..col-xs-$ | Extra Small | Phones Less than 768px |
.col-sm-$ | Small Devices | Tablets 768px and Up |
.col-md-$ | Medium Devices | Desktops 992px and Up |
.col-lg-$ | Large Devices | Large Desktops 1200px and Up |
.visible-xs
.visible-sm
.visible-md
.visible-lg
.hidden-xs
.hidden-sm
.hidden-md
.hidden-lg
<div class="row">
<div class="col-md-6 col-lg-3">
<div class="visible-lg text-success">Large Devices!</div>
<div class="visible-md text-warning">Medium Devices!</div>
<div class="visible-xs visible-sm text-danger">Extra Small and Small Devices</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="visible-lg text-success">Large Devices!</div>
<div class="visible-md text-warning">Medium Devices!</div>
<div class="visible-xs visible-sm text-danger">Extra Small and Small Devices</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="visible-lg text-success">Large Devices!</div>
<div class="visible-md text-warning">Medium Devices!</div>
<div class="visible-xs visible-sm text-danger">Extra Small and Small Devices</div>
</div>
<div class="col-md-6 col-lg-3">
<div class="visible-lg text-success">Large Devices!</div>
<div class="visible-md text-warning">Medium Devices!</div>
<div class="visible-xs visible-sm text-danger">Extra Small and Small Devices</div>
</div>
</div>
<div class="row">
<div class="col-sm-9 col-lg-6 text-danger">
I am the main content.
</div>
<div class="col-sm-3 text-warning">
I am the main sidebar.
</div>
<div class="col-lg-3 visible-lg text-success">
I am the secondary sidebar that only shows up on LARGE devices.
</div>
</div>
<div class="row">
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
I'm content!
</div>
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
I'm content!
</div>
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
I'm content!
</div>
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
I'm content!
</div>
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2">
I'm content!
</div>
<div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 visible-lg">
I'm content only visible on large devices!
</div>
</div>
<caching> <profiles> <add extension=".png" policy="CacheUntilChange"
varyByHeaders="User-Agent" location="Client" /> <add extension=".gif" policy="CacheUntilChange"
varyByHeaders="User-Agent" location="Client" /> <add extension=".jpg" policy="CacheUntilChange"
varyByHeaders="User-Agent" location="Client" /> <add extension=".js" policy="CacheUntilChange"
varyByHeaders="User-Agent" location="Client" /> <add extension=".css" policy="CacheUntilChange"
varyByHeaders="User-Agent" location="Client" /> <add extension=".axd" kernelCachePolicy="CacheUntilChange"
varyByHeaders="User-Agent" location="Client" /> </profiles> </caching> <httpProtocol allowKeepAlive="true"> <customHeaders> <add name="Cache-Control" value="public, max-age=691200" /> </customHeaders> </httpProtocol>
</system.webServer>
Bunu al bir Class.cs dosyası yarat ismine PageBase ver. Eğer Web Application olarak açtıysan herhangi bir yere ekle solisyonda.using System; using System.Collections.Generic; using System.Linq; using System.Web;public class PageBase : System.Web.UI.Page { protected override void OnLoad(EventArgs e) { GZipSIKISTIRMA(HttpContext.Current);base.OnLoad(e); }/// <summary> /// Sıkıştırma uygulayan method /// </summary> /// <param name="context">O Anki Aktif Context</param> public static void GZipSIKISTIRMA(HttpContext context) { HttpResponse Response = context.Response;if (GzipEtkinMi(context)) { string encoding = context.Request.Headers["Accept-Encoding"];//deflate sıkıştırmayı destekleyenler için if (encoding.Contains("deflate")) { Response.Filter = new System.IO.Compression.DeflateStream(Response.Filter, System.IO.Compression.CompressionMode.Compress); Response.AppendHeader("Content-Encoding", "deflate"); } else { //Gzip sıkıştırmayı destekleyenler için Response.Filter = new System.IO.Compression.GZipStream(Response.Filter, System.IO.Compression.CompressionMode.Compress); Response.AppendHeader("Content-Encoding", "gzip"); } //Sıkıştırılmış bilgi tarayıcıya belirtiliyor! Response.AppendHeader("Vary", "Content-Encoding"); } }/// <summary> /// Sıkıştırma Destekleniyor mu kontrol et. /// </summary> /// <param name="context">O Anki aktif Context</param> /// <returns>True yada False</returns> public static bool GzipEtkinMi(HttpContext context) { //Tarayıcı sıkıştırma destekliyor mu ? string AcceptEncoding = context.Request.Headers["Accept-Encoding"];if (!string.IsNullOrEmpty(AcceptEncoding)) { //evet return (AcceptEncoding.Contains("gzip") || AcceptEncoding.Contains("deflate")); } else { //hayır. return false; } } }
public class _Default : PageBase{protected void Page_Load(object s, EventArgs e){}}
protected void Page_Load(object s, EventArgs e){PageBase.GZipSIKISTIRMA(HttpContext.Current);}
<url> <loc> Link </loc> <lastmod> Tarih </lastmod> <changefreq> Frekans </changefreq> <priority> Önem Sırası </priority> </url>
© Arif Erzin Bloğu-Kendime Notlar 2013 . Powered by Bootstrap , Blogger templates and RWD Testing Tool