Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



objective c best c

Adbot
ADBOT LOVES YOU

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



NSString *bah = @"figvdfivdafvdafv fd gvdair fgeifv sivfs fuwf FUAS ";
NSMutableDictionary *counts = [NSMutableDictionary dictionary];

[bah enumerateSubstringsInRange:NSMakeRange(0, [bah length]) options:NSStringEnumerationByComposedCharacterSequences usingBlock:^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) {
NSUInteger val = ([counts objectForKey:substring] != nil ? [[counts objectForKey:substring] intValue] : 0) + 1;
[counts setObject:[NSNumber numberWithInt:val] forKey:substring];
}];

NSLog(@"counts: %@", counts);

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



newreply.php posted:

anyone else sorta getting rid of delegation between views and using NSNotifications wherever possible? i like it for when you have lots of levels of subviews and one of them needs to tell the VC something

depends

sometimes a delegate is the easy way to go, sometimes a notification is easier

not really any reason to go 100% one or the other

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



lout > latex

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Sweevo posted:

no idea what >>> does, probably some php poo poo

>>> copies the file (any file containing a method matched by whatevers left of the operator) to a file named whatever is on the right of the operator

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



backend's the future btw. let the kids do the graphic poo poo just provide a sw8 api and leave

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



rotor posted:

it really really pisses me off that browsers have just sort of evolved into this universal application platform

its kinda lame agreed

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Inverse Icarus posted:

here's the data

make it pretty

not my job

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



z0ratio fartboner posted:

i say this to all teh ladies :razz:

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



z0ratio fartboner posted:

:munch:

rotor and tbc wrestling

cmon cmon

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Anal Tributary posted:


the most rewarding part of development is making a tight API that makes sense to any real code looks at it.

:spergin:

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



software download On 2012-01-27 at 10:55
I would like to express my gratitude for your kindness supporting women who really want help with this question. Your special commitment to passing the message all over was particularly significant and have specifically made most people much like me to reach their aims. Your entire helpful instruction entails so much a person like me and still more to my colleagues. Warm regards; from all of us. I google it and found a very useful article. A code sample would be very helpful.

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



i was looking at a jnlp file the other day and was like wtf <security><all-permissions/></security> why is that necessary for this lovely app

but apparently thats the level of granularity, all or none

lol

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



rotor posted:

I haven't done a java for a long time but I'm pretty sure that's not true

thats what the docs i googled up said but i dont know and theres only really one context i encounter them in so i havent had reason to look into it.

http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/syntax.html#security

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang




well thats just gross

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



sorry just gotta say it again, that its super gross

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



here's a lesson: poo poo is dumb as gently caress, and so are you.

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



knowing yourself without knowing your enemy gives you only half a chance of victory

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



rotor posted:

unless you are your own enemy. which you always are.

https://www.youtube.com/watch?v=sc5iTNVEOAg

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



tef posted:

i could have sworn the more commonly accepted definition is the acquisition of material goods and other forms of wealth.

at least that is how it is in business

if you cant find love, i guess bullshit moneys work as a temporary replacement

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



dude tef i know this is yospos but you are literally posting that on a friday night...

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



lol i just found this comment in a perl script i wrote some 10 years ago

#This function parses simpler queries into the format that CGI::Application expects.
#"Our life is frittered away by detail ... Simplify, simplify." - Henry David Thoreau

pretentious as hell

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



also holy poo poo

my ($username, $password) = split(":",$q->cookie($APPNAME));
$self->{'logged_in'} = &dbLoginUser($username, $password);

e: the pw was at least hashed, but still thats pretty retarded

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Jonny 290 posted:

there a guy at work that has a random quotebot on some of our internal pages with stuff like that

gandhi and einstein quotes and poo poo

ugh

i assume that guy isnt like 20

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Otto Skorzeny posted:

code:
/*    toke.c
 *
 *    Copyright (c) 1991-1997, Larry Wall
 *
 *    You may distribute under the terms of either the GNU General Public
 *    License or the Artistic License, as specified in the README file.
 *
 */

/*
 *   "It all comes from here, the stench and the peril."  --Frodo
 */

#include "EXTERN.h"
#include "perl.h"

i was probably cargo culting hardcore when i put that quote in there, feeling like the big leagues with my amazing perl wizardry

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



i like reading about people solving problems but its hard to google that and get useful results

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



lusers, heh

e: damnit rotor

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



I dunno, maybe use an NSPredicate?

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Shameproof posted:

Oh there we go. Are you generally supposed to inherit from NSPredicate or just use that crazy string-passing approach?

I've mostly just made predicates with strings, it's pretty fast. not sure what pitfalls there might be to subclassing nspredicate, but its probably easier to use an nsblockpredicate than to subclass if you cant express the predicate with a string.

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



foreach fizz post buzz

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



trex eaterofcadrs posted:

also stop being a language whore and pick one and get good at it, it won't take you only a week unless you're some kind of idiot savant

what if im just an idiot :nyoron:

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Python code:
import sys, re

DEBUG = False

data = None

if len(sys.argv) > 2:
	data = sys.argv[1:]
elif len(sys.argv) > 1:
	f = open(sys.argv[1])
	data = f.read().split()
else:
	print 'usage: shaggarscript.py [tokens | file]'
	exit()

register = 0
stack = []

def pop():
	if DEBUG: sys.stderr.write('pop\n')
	global register
	register = stack.pop()

def push():
	if DEBUG: sys.stderr.write('push\n')
	global register
	stack.append(register)

def inc():
	if DEBUG: sys.stderr.write('inc\n')
	global register
	register += 1

def dec():
	if DEBUG: sys.stderr.write('dec\n')
	global register
	register -= 1

def add():
	if DEBUG: sys.stderr.write('add\n')
	global register
	register += stack[-1]

def sub():
	if DEBUG: sys.stderr.write('sub\n')
	global register
	register -= stack[-1]

def out():
	if DEBUG: sys.stderr.write('out\n')
	sys.stdout.write(chr(register))

instruction_map = {
	'python': pop,
	'java': push,
	'good': inc,
	'bad': dec,
	'lol': add,
	'idiot': sub,
	'language': out
}

for token in data:
	token = re.sub(r'\W+', '', token)
	if DEBUG: sys.stderr.write('%s %s %s\n' % (stack, register, token))
	if instruction_map.has_key(token):
		instruction_map[token]()
		if DEBUG: sys.stderr.write('=> %s %s\n' % (stack, register))
	else:
		if DEBUG: sys.stderr.write('nop\n')
	if DEBUG: sys.stderr.write('---\n')
python shaggarscript.py java good java lol java lol java lol java lol java lol java lol java is good. few languages are good good good good good good good good good good. java is a good language. unlike python, its a really good good good good language. not a bad bad bad language. python is so bad bad bad bad bad bad bad bad. really bad bad bad bad bad bad... few things are as bad. so, so bad bad bad bad bad bad bad. bad bad bad bad bad bad bad bad. a bad language. python? python is poo poo. python is not good. not a good language.

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



friday night motherfuckers :smithcloud:

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



once shaggarscript becomes the web standard we can all be shaggars

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Jonny 290 posted:

p-langs sign my paycheck and shaggar's right

e: oh sorry lmao thats the output

good

oh also that is the input. any shaggarpost is now a script!

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



tef posted:

i can fit an ipad mini in those pockets.

but can you fit a samsung galaxy note s3 hd beats by dre???

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



Shaggarscript is still the only true language

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



gucci void main posted:

paging shaggar to rant about unions

america is so messed politically up that it doesnt surprise me when someone is against unions. its much weirder when it happens here in the first world

:lfpostin:

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



tef posted:

ala the old joke, we think 100 mi is a long distance and you think 100 years is a long time

it was fun to say my school was twice as old as their country back when i was still in school

Adbot
ADBOT LOVES YOU

Carthag Tuek
Oct 15, 2005

Tider skal komme,
tider skal henrulle,
slægt skal følge slægters gang



pro tip: dont share NSMutable objects between threads

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply