• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:42
CEST 14:42
KST 21:42
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun9[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists20[ASL21] Ro16 Preview Pt1: Fresh Flow9
Community News
2026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid25
StarCraft 2
General
Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Team Liquid Map Contest #22 - The Finalists Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool MaNa leaves Team Liquid Maestros of the Game 2 announced
Tourneys
GSL Code S Season 1 (2026) WardiTV Spring Cup RSL Revival: Season 5 - Qualifiers and Main Event SEL Masters #6 - Solar vs Classic (SC: Evo) $5,000 WardiTV TLMC tournament - Presented by Monster Energy
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base Mutation # 521 Memorable Boss
Brood War
General
[TOOL] Starcraft Chat Translator ASL21 General Discussion JaeDong's ASL S21 Ro16 Post-Review Missed out on ASL tickets - what are my options? BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues Korean KCM Race Survival 2026 Season 2 [ASL21] Ro8 Day 2 [ASL21] Ro8 Day 1
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Stormgate/Frost Giant Megathread Daigo vs Menard Best of 10 Nintendo Switch Thread Dawn of War IV Diablo IV
Dota 2
The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Sexual Health Of Gamers
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2510 users

The Big Programming Thread - Page 432

Forum Index > General Forum
Post a Reply
Prev 1 430 431 432 433 434 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
berated-
Profile Blog Joined February 2007
United States1134 Posts
Last Edited: 2014-01-23 19:48:16
January 23 2014 19:39 GMT
#8621
If you just need a serializer you can just construct a new Gson, there is no reason to use the builder.

With that being said the Gson Builder is a fluent builder, which in my opinion is way nicer to use than if you were to have to pass in a builder to gson

You can do things like Gson g = new GsonBuilder().setPrettyPrint().register(...).create();

more documentation

klo8
Profile Joined August 2010
Austria1960 Posts
January 23 2014 19:48 GMT
#8622
On January 21 2014 05:15 Tobberoth wrote:
Damnit, the HSM-2 is just brutal on microcorruption.com. I'm at a point where I can direct the code where I want, even add a bit of assembly myself, but since I don't know the password and can't unlock the door from the code, I can't imagine how to proceed, other than sending random passwords to the lock which is obviously not an option.

I didn't even realize that's what the HSM-2 did at first, was quite disappointing to crack it enough to get "Access granted", yet no door opening ^^

EDIT: And there I solved it. I'm kind of surprised + Show Spoiler +
that interrupt 7f completely bypasses the password.
.

I just made it through the first non-tutorial level. (New Orleans) In hindsight, it was really easy, but getting there took me about half an hour of staring at assembly instructions and stepping around with the debugger. It's a lot of fun though.
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
ghrur
Profile Blog Joined May 2009
United States3786 Posts
January 23 2014 23:00 GMT
#8623
Just thought I'd put this here because it's an awesome story about programming and math :
http://www.wired.com/wiredscience/2014/01/how-to-hack-okcupid/
darkness overpowering
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2014-01-24 00:10:18
January 23 2014 23:57 GMT
#8624
On January 24 2014 08:00 ghrur wrote:
Just thought I'd put this here because it's an awesome story about programming and math :
http://www.wired.com/wiredscience/2014/01/how-to-hack-okcupid/

Oh that's pretty cool.

Has anyone had any experience with leveldb?
https://code.google.com/p/leveldb/

I have to use it for a course and my TA is saying that I have to "install" it?
I can make leveldb just fine with the default make file but I'm supposed to use a specific make file and two other files.


CC = g++
OPTS = -I $(LEVELDB_DIR)/include -lpthread $(LEVELDB_DIR)/libleveldb.a

all: read write

read: read.cc
$(CC) -o read read.cc $(OPTS)

write: write.cc
$(CC) -o write write.cc $(OPTS)

clean:
rm -rf read write leveldb_dir

test: all
./write
./read

I have read.cc and write.cc in the same folder as the makefile. Every time I run make, I get an error message:
g++  -o read read.cc -I /include -lpthread /libleveldb.a
g++: error: /libleveldb.a: No such file or directory
make: *** [read] Error 1


wut do?

nvm I'm getting it slowly.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
January 24 2014 00:02 GMT
#8625
This is a homework/assignment question for one of my courses:

In the current directory, show how to mark all untracked fi les/folders to be added to svn on the next svn commit command.

How would you do this in one line? I simply cannot see a way to do this and no one I have asked at my school knows how to do it either. If anyone could even just point me to the right command and let me go from there I'd appreciate that.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
January 24 2014 00:11 GMT
#8626
On January 24 2014 09:02 WarSame wrote:
This is a homework/assignment question for one of my courses:

In the current directory, show how to mark all untracked fi les/folders to be added to svn on the next svn commit command.

How would you do this in one line? I simply cannot see a way to do this and no one I have asked at my school knows how to do it either. If anyone could even just point me to the right command and let me go from there I'd appreciate that.

Does "svn status" work?

I know "git status" will show all untracked files to be added if you use "git add ."
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
January 24 2014 00:14 GMT
#8627
"svn add *" should work.
There is no one like you in the universe.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
January 24 2014 00:15 GMT
#8628
Well as far as I have read up on, svn status * would just tell me that status of each file in the current directory. From the question I think the goal is to add all nontracked(which I think means ones that aren't included in the repository yet) to the commit-queue so that they will be commited on the next commit. It's possible that it is svn status *, but that doesn't really seem to do anything other than just list the status of each file, so it doesn't seem to accomplish what they want.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
January 24 2014 00:19 GMT
#8629
On January 24 2014 09:14 Blisse wrote:
"svn add *" should work.

Yes, Blisse I think this is it. I feel very stupid overlooking this command haha. Thanks!
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
January 24 2014 00:23 GMT
#8630
On January 24 2014 09:15 WarSame wrote:
Well as far as I have read up on, svn status * would just tell me that status of each file in the current directory. From the question I think the goal is to add all nontracked(which I think means ones that aren't included in the repository yet) to the commit-queue so that they will be commited on the next commit. It's possible that it is svn status *, but that doesn't really seem to do anything other than just list the status of each file, so it doesn't seem to accomplish what they want.

Ah I misread the question.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
January 24 2014 00:32 GMT
#8631
Yeah I misunderstood what the question was on about as well.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2014-01-24 02:02:50
January 24 2014 02:01 GMT
#8632
working on some project at univ, need to configure some hardware device. planning on using boost::mpl to allow for easy configuration of ranges of ports with various attributes.

wanted to specialize a class template on a boost::mpl::vector_c<unsigned int,port0,port1,...,portn> where port# is an unsigned int to use in said configuration...

#include<boost/mpl/vector_c.hpp>
#include<iostream>

template<class vector_t> struct team;

template<unsigned int... I>
struct team<boost::mpl::vector_c<unsigned int,I...>>{
static void liquid(){ std::cout<<".net"; }
};

int main(){
team<boost::mpl::vector_c<unsigned int,1,2,3>>::liquid();
}

however when compiling, the instantiation resolved to the class template shape definition instead of the specialization. the honorable gcc declared unto me:

test.cpp: In function ‘int main()’:
test.cpp:12:2: error: incomplete type ‘team<boost::mpl::vector_c<unsigned int, 1l, 2l, 3l> >’ used in nested name specifier
team<boost::mpl::vector_c<unsigned int,1,2,3>>::liquid();


the devil is in the details of course and assumption is the mother off all fuckups. the resulting type of the value parameters in boost::mpl::unsigned_c<unsigned int,1,2,3> was not unsigned int at all, but long as you can readily read in the error message.

i did not read the error message readily enough and was left in a state of disarray until just now when i was formulating this post to ask for your help.

saw this link on slashdot a while ago, found it entertaining:

king james programming

Posts generated by a Markov chain trained on the King James Bible and Structure and Interpretation of Computer Programs. Run by Michael Walker (barrucadu).
conspired against by a confederacy of dunces.
mishimaBeef
Profile Blog Joined January 2010
Canada2259 Posts
January 24 2014 02:27 GMT
#8633
why no HDL section?
Dare to live the life you have dreamed for yourself. Go forward and make your dreams come true. - Ralph Waldo Emerson
nunez
Profile Blog Joined February 2011
Norway4003 Posts
January 24 2014 02:35 GMT
#8634
i don't understand your quesiton.
conspired against by a confederacy of dunces.
tofucake
Profile Blog Joined October 2009
Hyrule19209 Posts
January 24 2014 04:05 GMT
#8635
On January 24 2014 11:27 mishimaBeef wrote:
why no HDL section?

because VHDL is the devil
Liquipediaasante sana squash banana
klo8
Profile Joined August 2010
Austria1960 Posts
January 24 2014 13:44 GMT
#8636
On January 24 2014 11:01 nunez wrote:
working on some project at univ, need to configure some hardware device. planning on using boost::mpl to allow for easy configuration of ranges of ports with various attributes.

wanted to specialize a class template on a boost::mpl::vector_c<unsigned int,port0,port1,...,portn> where port# is an unsigned int to use in said configuration...

#include<boost/mpl/vector_c.hpp>
#include<iostream>

template<class vector_t> struct team;

template<unsigned int... I>
struct team<boost::mpl::vector_c<unsigned int,I...>>{
static void liquid(){ std::cout<<".net"; }
};

int main(){
team<boost::mpl::vector_c<unsigned int,1,2,3>>::liquid();
}

however when compiling, the instantiation resolved to the class template shape definition instead of the specialization. the honorable gcc declared unto me:

test.cpp: In function ‘int main()’:
test.cpp:12:2: error: incomplete type ‘team<boost::mpl::vector_c<unsigned int, 1l, 2l, 3l> >’ used in nested name specifier
team<boost::mpl::vector_c<unsigned int,1,2,3>>::liquid();


the devil is in the details of course and assumption is the mother off all fuckups. the resulting type of the value parameters in boost::mpl::unsigned_c<unsigned int,1,2,3> was not unsigned int at all, but long as you can readily read in the error message.

i did not read the error message readily enough and was left in a state of disarray until just now when i was formulating this post to ask for your help.

saw this link on slashdot a while ago, found it entertaining:

king james programming

Show nested quote +
Posts generated by a Markov chain trained on the King James Bible and Structure and Interpretation of Computer Programs. Run by Michael Walker (barrucadu).

It's funny how often I've started writing a forum post about some programming problem I had and during the writing of the post, I realized what was wrong and discarded the post. It's the same when I write something to a friend about a programming problem. I tell him and read through my messages once or twice while he's thinking about it and I suddenly find the error.
This post is clearly not a hurr, as you can see from the graph, the durr never intersects with the derp.
nunez
Profile Blog Joined February 2011
Norway4003 Posts
January 24 2014 14:42 GMT
#8637
aha, yes! figured i might as well post it.

btw thx sluggaslammo, i switched to a tiling windows manager (i3), and it's really nice!
conspired against by a confederacy of dunces.
mishimaBeef
Profile Blog Joined January 2010
Canada2259 Posts
January 24 2014 15:01 GMT
#8638
On January 24 2014 22:44 klo8 wrote:
Show nested quote +
On January 24 2014 11:01 nunez wrote:
working on some project at univ, need to configure some hardware device. planning on using boost::mpl to allow for easy configuration of ranges of ports with various attributes.

wanted to specialize a class template on a boost::mpl::vector_c<unsigned int,port0,port1,...,portn> where port# is an unsigned int to use in said configuration...

#include<boost/mpl/vector_c.hpp>
#include<iostream>

template<class vector_t> struct team;

template<unsigned int... I>
struct team<boost::mpl::vector_c<unsigned int,I...>>{
static void liquid(){ std::cout<<".net"; }
};

int main(){
team<boost::mpl::vector_c<unsigned int,1,2,3>>::liquid();
}

however when compiling, the instantiation resolved to the class template shape definition instead of the specialization. the honorable gcc declared unto me:

test.cpp: In function ‘int main()’:
test.cpp:12:2: error: incomplete type ‘team<boost::mpl::vector_c<unsigned int, 1l, 2l, 3l> >’ used in nested name specifier
team<boost::mpl::vector_c<unsigned int,1,2,3>>::liquid();


the devil is in the details of course and assumption is the mother off all fuckups. the resulting type of the value parameters in boost::mpl::unsigned_c<unsigned int,1,2,3> was not unsigned int at all, but long as you can readily read in the error message.

i did not read the error message readily enough and was left in a state of disarray until just now when i was formulating this post to ask for your help.

saw this link on slashdot a while ago, found it entertaining:

king james programming

Posts generated by a Markov chain trained on the King James Bible and Structure and Interpretation of Computer Programs. Run by Michael Walker (barrucadu).

It's funny how often I've started writing a forum post about some programming problem I had and during the writing of the post, I realized what was wrong and discarded the post. It's the same when I write something to a friend about a programming problem. I tell him and read through my messages once or twice while he's thinking about it and I suddenly find the error.


Happens a lot. I think it has to do with the fact that when you explain a problem to someone, a part of you tries to see it from their perspective, thereby dissolving the preconceptions/assumptions you had about the problem, and allowing you to see more clearly and/or creatively.
Dare to live the life you have dreamed for yourself. Go forward and make your dreams come true. - Ralph Waldo Emerson
Polemarch
Profile Joined August 2005
Canada1564 Posts
Last Edited: 2014-01-24 15:09:11
January 24 2014 15:06 GMT
#8639
Figuring something out while asking about it is a well-known phenomenon, see here:
http://en.wikipedia.org/wiki/Rubber_duck_debugging
I BELIEVE IN CAPITAL LETTER PUNISHMENT!!!!!
Ben...
Profile Joined January 2011
Canada3485 Posts
Last Edited: 2014-01-24 15:13:00
January 24 2014 15:11 GMT
#8640
On January 25 2014 00:06 Polemarch wrote:
Figuring something out while asking about it is a well-known phenomenon, see here:
http://en.wikipedia.org/wiki/Rubber_duck_debugging

That always happens to me when I am asking a professor a question about an assignment. I usually let them answer anyway just to make sure I was right.

That actually happened with an induction proof the other day. I was discussing it with a coworker, and in the process figured out how to finish the proof.

I'mma get a rubber duck. That's a great idea.

Nondeterministic Finite Automata!
"Cliiiiiiiiiiiiiiiiide" -Tastosis
Prev 1 430 431 432 433 434 1032 Next
Please log in or register to reply.
Live Events Refresh
Big Gabe
12:00
Big Gabe Open #1
mouzHeroMarine433
IndyStarCraft 103
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 433
Ryung 225
IndyStarCraft 103
herO (SOOP) 26
Rex 23
StarCraft: Brood War
Calm 4785
Sea 2446
Jaedong 1421
EffOrt 873
HiyA 836
Hyuk 487
Soma 437
Stork 368
Snow 331
Light 287
[ Show more ]
ggaemo 269
actioN 247
Zeus 185
Soulkey 174
Last 169
ToSsGirL 167
ZerO 162
Rush 158
firebathero 128
Larva 75
hero 72
Pusan 68
Sharp 63
sSak 57
Mini 57
Sea.KH 45
Barracks 34
yabsab 30
Backho 28
Terrorterran 27
Sacsri 26
Shine 25
Free 23
Bale 21
soO 20
Movie 17
sorry 17
Shinee 15
Noble 15
Sexy 14
IntoTheRainbow 14
GoRush 11
scan(afreeca) 10
Dota 2
XaKoH 462
ODPixel87
BananaSlamJamma78
Counter-Strike
olofmeister2996
zeus620
x6flipin605
markeloff156
edward77
Other Games
singsing1930
B2W.Neo1325
Lowko363
hiko360
DeMusliM290
crisheroes278
Livibee23
ZerO(Twitch)11
Organizations
StarCraft: Brood War
UltimateBattle 902
StarCraft 2
IntoTheiNu 154
Dota 2
PGL Dota 2 - Main Stream73
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• CranKy Ducklings SOOP33
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV349
League of Legends
• Jankos1301
• TFBlade1141
Upcoming Events
Replay Cast
20h 19m
Escore
21h 19m
OSC
1d
Replay Cast
1d 11h
Replay Cast
1d 20h
RSL Revival
1d 21h
Classic vs GgMaChine
Rogue vs Maru
WardiTV Invitational
1d 22h
IPSL
2 days
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
2 days
Replay Cast
2 days
[ Show More ]
RSL Revival
2 days
herO vs TriGGeR
NightMare vs Solar
uThermal 2v2 Circuit
3 days
BSL
3 days
IPSL
3 days
eOnzErG vs TBD
G5 vs Nesh
Patches Events
3 days
Replay Cast
3 days
Wardi Open
3 days
Afreeca Starleague
3 days
Jaedong vs Light
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
4 days
Afreeca Starleague
4 days
Snow vs Flash
WardiTV Invitational
4 days
GSL
5 days
Classic vs Cure
Maru vs Rogue
GSL
6 days
SHIN vs Zoun
ByuN vs herO
Liquipedia Results

Completed

Proleague 2026-04-28
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
StarCraft2 Community Team League 2026 Spring
2026 GSL S1
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026

Upcoming

Escore Tournament S2: W5
KK 2v2 League Season 1
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
RSL Revival: Season 5
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.