« first day (1158 days earlier)      last day (1270 days later) » 

1:19 AM
0
A: How to use LZMA SDK in C++?

xiaodongjieI think that it's a properly little example to use LZMA SDK. /* LzmaUtil.c -- Test application for LZMA compression 2008-08-05 Igor Pavlov public domain */ #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../LzmaDec.h" ...

 
wrong room
 
@Rapptz what?
 
incidentally the rules aren't up
 
@Rapptz So?
 
5 messages moved from Lounge<C++>
 
 
2 hours later…
3:09 AM
-(void)switchContexts:(NSManagedObjectContext *)context
{

[context insertObject:self];

for (Price *price in self.prices) {
[context insertObject:price];
[context insertObject:price.retailer];

}

}
 
user457812
1 message moved from NSChat
 
9:50 AM
 
1 message moved from PHP
 
 
2 hours later…
12:15 PM
 
1 message moved from PHP
 
 
2 hours later…
Roh
2:44 PM
#include <avr/io.h>
#include <util/setbaud.h>
#include <stdio.h>
#include "common.h"
#include "drivers/uart.h"

#if UART_ENABLE

static int put(char, FILE*);

FILE uart_io = FDEV_SETUP_STREAM(put, NULL, _FDEV_SETUP_WRITE);

void uart_init()
{
// Pullup on RXD (already done in main init()?)
pinPullup(D0, PULLUP_ENABLE);

pinMode(D1, OUTPUT);

UBRR0 = UBRR_VALUE;
#if USE_2X
UCSR0A = _BV(U2X0);
#endif
UCSR0B = _BV(TXEN0);

stdout = &uart_io;
}

static int put(char c, FILE* stream)
{
(void)(stream); // Get rid of unused variable warning
 
1 message moved from Lounge<C++>
 

« first day (1158 days earlier)      last day (1270 days later) »