Przejdź do treści
Logo

kuling.pl

  • Główna
  • Arkdisk
  • Forum
  • Kontakt

Jesteś tutaj

Start » Monthly archive

Styczeń 2009

Schemat Ponziego

published by Kuling on ndz., 2009-01-04 20:44

http://www.manageria.pl/manageria/1,85811,6071136,Miliony_ze_znaczkow__ktorych_nie_bylo__Jak_narodzil.html

 

Kategorie: 
Inwestowanie
Rozrywka
  • Czytaj dalej wpis Schemat Ponziego
  • Blog
  • 498 odsłon

Złotówka 2009 (blog Janusza Jankowiaka)

published by Kuling on pon., 2009-01-05 21:22

http://januszjankowiak.bblog.pl/wpis,dlaczego;zloty;jest;niepopularny,18412.html

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Złotówka 2009 (blog Janusza Jankowiaka)
  • Blog
  • 451 odsłon

Hibernate once, resume many

published by Kuling on wt., 2009-01-06 08:25

http://blogs.msdn.com/astebner/archive/2004/12/01/273462.aspx

http://www.mp3car.com/vbulletin/winnt-based/97696-just-horm-only.html

http://www.windowsfordevices.com/articles/AT2000510792.html

Kategorie: 
Mój komputer
  • Czytaj dalej wpis Hibernate once, resume many
  • Blog
  • 258 odsłon

Terminator: Salvation

published by Kuling on śr., 2009-01-07 13:30

http://www.youtube.com/watch?v=EvuLyRiFdFs

http://terminatorsalvation.warnerbros.com/

http://www.imdb.com/title/tt0438488/

Kategorie: 
Rozrywka
  • Czytaj dalej wpis Terminator: Salvation
  • Blog
  • 274 odsłony

Lock object sharing with hashes

published by Kuling on czw., 2009-01-08 09:28

http://www.axantum.com/Blog/post/Lock-object-sharing-with-hashes.aspx sexcam

Kategorie: 
Programowanie
  • Czytaj dalej wpis Lock object sharing with hashes
  • Blog
  • 194 odsłony

Exception handling - Resource Acquisition Is Initialization

published by Kuling on czw., 2009-01-08 10:47

 

Resource Acquisition Is Initialization, w skrócie RAII - popularny wzorzec projektowy w C++ i D. Technika łączy przejęcie i zwolnienie zasobu z inicjalizacją i deinicjalizacją zmiennych.

Przejęcie zasobu jest połączone z konstrukcją, a zwolnienie z automatyczną destrukcją zmiennej. Ponieważ wywołanie destruktora jest automatyczne gdy zmienna wyjdzie poza swój zasięg, jest zagwarantowane, że zasób zostanie zwolniony od razu gdy skończy się czas życia zmiennej. Jest to także prawdą przy wystąpieniu wyjątku. RAII jest kluczową koncepcją przy pisaniu kodu odpornego na wyjątki.

Technika RAII jest używana na przykład przy zakładaniu blokad wątków albo obsłudze plików.

Własność pamięci przydzielanej dynamicznie (za pomocą new) może być również kontrolowana za pomocą RAII. Do tego celu biblioteka standardowa C++ definiuje auto ptr. Czas życia dzielonych obiektów może być zarządzany przez smart pointer z semantyką dzielonej własności taki jak boost::shared_ptr definiowany przez bibliotekę Boost i oznaczony do włączenia do nowego standardu C++0x, lub Loki::SmartPtr z biblioteki Loki.

http://en.wikipedia.org/wiki/Resource_acquisition_is_initialization
http://pl.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization
 

The approach of gaining exception safety through ordering and the ‘‘resource acquisition is
initialization’’ technique (§14.4) tends to be more elegant and more efficient than explicitly handling
errors using try-blocks. More problems with exception safety arise from a programmer ordering
code in unfortunate ways than from lack of specific exception-handling code. The basic rule of
ordering is not to destroy information before its replacement has been constructed and can be
assigned without the possibility of an exception.

http://www.research.att.com/~bs/3rd_safe.pdf

 

 Update:

From http://www.research.att.com/~bs/3rd_safe.pdf (E.6)

How can I define my types so that they don’t cause undefined behavior or leak resources?
The basic rules are:
[1] When updating an object, don’t destroy its old representation before a new representation
is completely constructed
and can replace the old one without risk of exceptions.
For example, see the implementations of v e c t o r :: o p e r a t o r =(), s a f e _ a s s i g n (), and
v e c t o r :: p u s h _ b a c k () in §E.3.
[2] Before throwing an exception, release every resource acquired that is not owned by
some (other) object.
[2a] The ‘‘resource acquisition is initialization’’ technique (§14.4) and the language rule
that partially constructed objects are destroyed to the extent that they were constructed
(§14.4.1) can be most helpful here. For example, see l e a k () in §E.2.
[2b] The u n i n i t i a l i z e d _ c o p y () algorithm and its cousins provide automatic release of
resources in case of failure to complete construction of a set of objects (§E.4.4).
[3] Before throwing an exception, make sure that every operand is in a valid state. That is,
leave each object in a state that allows it to be accessed and destroyed without causing
undefined behavior or an exception to be thrown from a destructor. For example, see
v e c t o r ’s assignment in §E.3.2.
[3a] Note that constructors are special in that when an exception is thrown from a constructor,
no object is left behind to be destroyed later. This implies that we don’t
have to establish an invariant and that we must be sure to release all resources
acquired during a failed construction before throwing an exception.
[3b] Note that destructors are special in that an exception thrown from a destructor
almost certainly leads to violation of invariants and/or calls to t e r m i n a t e ().

In practice, it can be surprisingly difficult to follow these rules. The primary reason is that
exceptions can be thrown from places where people don’t expect them. A good example is
s t d :: b a d _ a l l o c . Every function that directly or indirectly uses n e w or an a l l o c a t o r to acquire
memory can throw b a d _ a l l o c . In some programs, we can solve this particular problem by not
running out of memory. However, for programs that are meant to run for a long time or to
accept arbitrary amounts of input, we must expect to handle various failures to acquire
resources. Thus, we must assume every function capable of throwing an exception until we
have proved otherwise.

Kategorie: 
C++
  • Czytaj dalej wpis Exception handling - Resource Acquisition Is Initialization
  • Blog
  • 1 odpowiedź
  • 240 odsłon

The Next Step in the Spam Control War: Greylisting by Evan Harris

published by Kuling on sob., 2009-01-17 11:01

Ostatnio maile wysyłane przez mój serwer dostają łupnia od poniższego mechanizmu:

Za wikipedią:

Greylisting (lub graylisting) to metoda ochrony kont poczty elektronicznej przed spamem. Serwer poczty, który używa metody greylistingu, odrzuca maile od nierozpoznanych nadawców. Jeśli taki mail został nadany ze stałego serwera poczty, to serwer ten po kilku godzinach ponowi próbę wysłania, którą akceptuje serwer odbiorcy. Jeśli poczta pochodzi z serwera rozsyłającego spam, na ogół nie jest wysyłana ponownie.

http://pl.wikipedia.org/wiki/Greylisting

A tutaj whitepaper autora pomysłu.

http://greylisting.org/articles/whitepaper.shtml

Kategorie: 
Internet
  • Czytaj dalej wpis The Next Step in the Spam Control War: Greylisting by Evan Harris
  • Blog
  • 240 odsłon

Velocity of money

published by Kuling on sob., 2009-01-17 15:28

Całkiem ciekawa dyskusja. Polecam jeśli komuś się nudzi:

http://forum.gazeta.pl/forum/72,2.html?f=17007&w=89868671&a=89868671

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Velocity of money
  • Blog
  • 208 odsłon

Chiny hamują na potęgę

published by Kuling on sob., 2009-01-24 21:41

http://www.trystero.pl/archives/1432

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Chiny hamują na potęgę
  • Blog
  • 211 odsłon

Startup, Shutdown and related matters

published by Kuling on wt., 2009-01-27 13:51

http://blogs.msdn.com/cbrumme/archive/2003/08/20/51504.aspx

Kategorie: 
C++
  • Czytaj dalej wpis Startup, Shutdown and related matters
  • Blog
  • 194 odsłony

Soto del Henares

published by Kuling on wt., 2009-01-27 23:24

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Soto del Henares
  • Blog
  • 551 odsłon

10 lat za Azjatami

published by Kuling on śr., 2009-01-28 22:12

http://wojciechbialek.blox.pl/2009/01/10-lat-za-Azjatami.html

Kategorie: 
Pieniądze
  • Czytaj dalej wpis 10 lat za Azjatami
  • Blog
  • 182 odsłony

Będzie skromniej i wydajniej

published by Kuling on czw., 2009-01-29 15:19

http://wyborcza.pl/1,76842,6196748,Bedzie_skromniej_i_wydajniej.html

Kategorie: 
Pieniądze
  • Czytaj dalej wpis Będzie skromniej i wydajniej
  • Blog
  • 172 odsłony

Sawant

published by Kuling on pt., 2009-01-30 14:52

http://pl.wikipedia.org/wiki/Sawant

Kategorie: 
Rozrywka
  • Czytaj dalej wpis Sawant
  • Blog
  • 272 odsłony

Archiwum

  • luty 2012 (1)
  • Styczeń 2012 (7)
  • Grudzień 2011 (2)
  • Listopad 2011 (2)
  • Październik 2011 (2)
  • Wrzesień 2011 (3)
  • Sierpień 2011 (2)
  • Lipiec 2011 (3)
  • Czerwiec 2011 (1)
  • Kwiecień 2011 (4)
  • luty 2011 (1)
  • Styczeń 2011 (2)
  • Listopad 2010 (6)
  • Październik 2010 (5)
  • Sierpień 2010 (10)
  • Lipiec 2010 (3)
  • Czerwiec 2010 (2)
  • Maj 2010 (1)
  • Kwiecień 2010 (2)
  • luty 2010 (4)
  • Styczeń 2010 (5)
  • Grudzień 2009 (5)
  • Listopad 2009 (1)
  • Październik 2009 (4)
  • Wrzesień 2009 (6)
  • Sierpień 2009 (11)
  • Lipiec 2009 (23)
  • Czerwiec 2009 (14)
  • Maj 2009 (23)
  • Kwiecień 2009 (22)
  • Marzec 2009 (14)
  • luty 2009 (20)
  • Styczeń 2009 (14)
  • Grudzień 2008 (17)
  • Listopad 2008 (12)
  • Październik 2008 (10)
  • Wrzesień 2008 (4)
  • Lipiec 2008 (2)
  • Czerwiec 2008 (5)
  • Maj 2008 (5)
  • Kwiecień 2008 (9)
  • Marzec 2008 (9)
  • luty 2008 (30)
  • Styczeń 2008 (22)
  • Grudzień 2007 (15)
  • Listopad 2007 (19)
  • Październik 2007 (10)
  • Wrzesień 2007 (22)
  • Sierpień 2007 (21)
  • Lipiec 2007 (29)
  • Czerwiec 2007 (53)
  • Maj 2007 (61)
  • Kwiecień 2007 (14)
  • Marzec 2007 (5)
  • luty 2007 (4)
  • Styczeń 2007 (16)
  • Grudzień 2006 (69)
  • Listopad 2006 (15)
  • Wrzesień 2006 (25)
  • Sierpień 2006 (20)
  • Lipiec 2006 (10)
  • Czerwiec 2006 (10)
  • Maj 2006 (35)
  • Kwiecień 2006 (5)
  • Marzec 2006 (15)
  • luty 2006 (5)
  • Grudzień 2005 (10)
  • Listopad 2005 (15)
  • Sierpień 2005 (10)
  • Lipiec 2005 (20)
  • Czerwiec 2005 (30)
  • Maj 2005 (30)
  • Kwiecień 2005 (34)
  • Marzec 2005 (14)
  • luty 2005 (10)
  • Grudzień 2004 (30)
  • Listopad 2004 (48)
  • Październik 2004 (25)
  • Sierpień 2004 (18)
  • Lipiec 2004 (30)

Kategorie

  • Angielski (1)
    • FCE (0)
  • Dom (4)
    • Akwarium (3)
    • Kot (2)
  • Gry (11)
    • Counter Strike (8)
  • Informatyka (15)
    • Hardware (15)
      • Mój komputer (14)
    • Linux (0)
    • Programowanie (173)
      • C++ (134)
        • Concurrency (66)
        • Exceptions (14)
        • Templates (21)
      • Narzędzia (10)
        • Visual Studio 2003 (21)
        • Visual Studio 2005 (45)
        • Visual Studio 2008 (33)
        • Visual Studio 2010 (13)
      • PHP (9)
    • Windows (18)
  • Internet (10)
    • Drupal (18)
    • Linki (29)
  • Miejsca (2)
    • Poznań (3)
    • Sieradz (1)
    • Wrocław (12)
    • Zgorzelec (0)
  • Pieniądze (122)
    • Giełda (47)
    • Inwestowanie (66)
    • Mieszkanie (69)
  • Rodzina (14)
    • Magda (1)
  • Rozrywka (66)

Logowanie

  • Utwórz nowe konto
  • Prześlij nowe hasło
Theme provided by Danetsoft under GPL license from Danang Probo Sayekti