- 1
http://sqlserverplanet.com/troubleshooting/cannot-insert-explicit-value-for-identity-column-in-table-table-when-identity_insert-is-set-to-offНашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+141
http://sqlserverplanet.com/troubleshooting/cannot-insert-explicit-value-for-identity-column-in-table-table-when-identity_insert-is-set-to-offПоследний комментарий
+115
try {
	// Store settings in the database as a JSON string
	machine.setSettings(CustomJacksonRepresentation.createCanonicalObjectMapper().writeValueAsString(
			request.getSettings()));
} catch (final JsonMappingException e) {
	// We obtained request by parsing JSON in the first place,
	// no way it can fail to be serialized back o_O
	throw new AssertionError(e);
} catch (final JsonGenerationException e) {
	// See above
	throw new AssertionError(e);
} catch (final IOException e) {
	// Why does writeValueAsString throw IOException anyway? How CAN you fail to write to a String?
	// Seriously, what were the writers of Jackson smoking that they exposed IOException in the API
	// in a method specifically designed to serialize to String, just because the underlying implementation
	// uses StringWriter (which doesn't really throw IOException anyway)?
	// I mean, I understand if the string is too long to fit in memory, but that's an OutOfMemoryError
	throw new AssertionError(e);
}
+106
if (curProperty[ele].ToString().ToLower() == "nan" || curProperty[ele] != m_MinimumDensity)
+142
if ($options->get('registrationSetup', 'requireDob')) {
	// dob requiredБез ДОБ-а не пущу.
+34
if (date('dmY', $lmtime) === date('dmY')) {Нужно было узнать, не сегодняшний ли день в отметке $lmtime.
+127
<select name="animals">
		<option value="1" addTags="<div class='kv'></div>">Медведь</option>
		<option value="2" addTags="<input type='checkbox' />">Волк</option>
</select>
            html в js - это прошлый век =)
http://www.xiper.net/collect/html-and-css-tricks/verstka-form/nice-select-jquery.html
        
+157
$( function() { $('#brief').wysibb( window.uCoz.uwbb ); } );    
$( function() { $('#message').wysibb( window.uCoz.uwbb ); } );    
$( function() { $('#format_message, label[for="format_message"]').hide(); } );    
$( function() { $('#format_brief, label[for="format_brief"]').hide(); } );В одну конструкцию-то стрёмно вставлять...
+141
/// услуга
$discount = $addservdata['oldcost'] ; // мудак
            дальше переменная используется, потому и сделал такой хак.
суть:
   сторонний проект шлёт мне данные. и когда они в очередной раз что-то наломали, я не стал их лишний раз дёргать.
        
+51
if (Yii::app()->session->itemAt('version') == 'mobile') {
    $this->render('counting');
}
else {
    $this->render('counting');
}No way.
+112
final Transform starscream = root.getLocalTransform();
final Transform skywarp = starscream.clone();