• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:02
CEST 00:02
KST 07:02
  • 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
[ASL21] Ro8 Preview Pt1: Inheritors6[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists17[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10
Community News
2026 GSL Season 1 Qualifiers19Maestros of the Game 2 announced92026 GSL Tour plans announced15Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid25
StarCraft 2
General
Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid Maestros of the Game 2 announced 2026 GSL Tour plans announced Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament 2026 GSL Season 1 Qualifiers INu's Battles#14 <BO.9 2Matches> GSL CK: More events planned pending crowdfunding RSL Revival: Season 5 - Qualifiers and Main Event
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 523 Firewall Mutation # 522 Flip My Base The PondCast: SC2 News & Results Mutation # 521 Memorable Boss
Brood War
General
[ASL21] Ro8 Preview Pt1: Inheritors Leta's ASL S21 Ro.16 review FlaSh: This Will Be My Final ASL【ASL S21 Ro.16】 BGH Auto Balance -> http://bghmmr.eu/ ASL21 General Discussion
Tourneys
[ASL21] Ro16 Group D [Megathread] Daily Proleagues Escore Tournament StarCraft Season 2 [ASL21] Ro16 Group C
Strategy
Simple Questions, Simple Answers What's the deal with APM & what's its true value Any training maps people recommend? Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Dawn of War IV Diablo IV Total Annihilation Server - TAForever Starcraft Tabletop Miniature Game
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 Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War 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
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: 1606 users

The Big Programming Thread - Page 608

Forum Index > General Forum
Post a Reply
Prev 1 606 607 608 609 610 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.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
March 24 2015 11:03 GMT
#12141
happy birthday! that's awesome haha

i saw a bunch of programming books (not on super sale) but they'd be too heavy to bring back to canada -sigh-
There is no one like you in the universe.
Manit0u
Profile Blog Joined August 2004
Poland17733 Posts
March 25 2015 18:00 GMT
#12142

men()
{
goto pub;
pub:
return pissed;
}

women()
{
goto bathroom;
bathroom:
while (1) ;
}


Genious.
Time is precious. Waste it wisely.
RoyGBiv_13
Profile Blog Joined August 2010
United States1275 Posts
March 25 2015 18:05 GMT
#12143
On March 24 2015 18:06 Nesserev wrote:
Just went to the annual book sale at our university's department library for old/damaged books, got my hands on 8 kilos of books, including:
- The C Programming Language
- Design Patterns
- Principles of Compiler Design (Green Dragon)
- ...

1 kilo = 1 euro, that's a steal

Damn, my birthday has been great so far


The green dragon is my favorite programming book out there. Good stuff!
Any sufficiently advanced technology is indistinguishable from magic
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
March 25 2015 23:46 GMT
#12144
ugh COM and C++/Cx....
There is no one like you in the universe.
Millitron
Profile Blog Joined August 2010
United States2611 Posts
March 26 2015 00:20 GMT
#12145
Speaking of good CS books, I highly, HIGHLY recommend Introduction to Theory of Computation by Sipser.

Covers all kinds of automata, FSM's, Push-down Automata, Turing Machines, you name it its in there.

The only textbook I ever actually liked to be honest.

http://www.amazon.com/Introduction-Theory-Computation-Michael-Sipser/dp/0534950973
If anyone's interested.
Who called in the fleet?
njt7
Profile Joined August 2012
Sweden769 Posts
March 26 2015 00:43 GMT
#12146
You linked to the second edition, any reason for that? I am considering buying it but I would feel kind of robbed if I go for the 3rd and latest edition but later find out that its virtually the same as the 2nd.
"All the casters who flamed me ever for anything."
Millitron
Profile Blog Joined August 2010
United States2611 Posts
March 26 2015 01:03 GMT
#12147
On March 26 2015 09:43 njt7 wrote:
You linked to the second edition, any reason for that? I am considering buying it but I would feel kind of robbed if I go for the 3rd and latest edition but later find out that its virtually the same as the 2nd.

I only linked the second edition because that's the one I used. I don't have any info on what the third is like. I know the 2nd edition was pretty much strictly superior to the 1st. All it really changed was it added a bunch of exercises. I would imagine the 3rd edition did something similar.
Who called in the fleet?
Ben...
Profile Joined January 2011
Canada3485 Posts
March 26 2015 02:18 GMT
#12148
On March 26 2015 03:05 RoyGBiv_13 wrote:
Show nested quote +
On March 24 2015 18:06 Nesserev wrote:
Just went to the annual book sale at our university's department library for old/damaged books, got my hands on 8 kilos of books, including:
- The C Programming Language
- Design Patterns
- Principles of Compiler Design (Green Dragon)
- ...

1 kilo = 1 euro, that's a steal

Damn, my birthday has been great so far


The green dragon is my favorite programming book out there. Good stuff!

Super jealous that you got one of the dragon books. I've wanted those for a long time. Doing a compiler is one of the projects I want to do after I graduate in a month or so.
"Cliiiiiiiiiiiiiiiiide" -Tastosis
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2015-03-26 08:18:24
March 26 2015 07:38 GMT
#12149
@millitron
i got it in my archives, haven't read yet though.
at the time i keep swapping between introduction to automata theory, languages and computation (hopcroft, ullman) and modern compiler design (grune). i'll start peeping in this as well.

working on a compile-time recursive descent parser for regular expressions, not completed yet but i can parse concatenation and groupings at least (pointless i know):
edit, added closures so the groupings have some value...
...

constexpr const unsigned char
source[] = "te(a*m)*(liq)*uii*d";

int
main()
{
using regex=parse<scan<source>>;
std::cout<<"parsed: "<<source<<"\n";
std::cout<<"result:\n"<<tt::to_string<regex>()<<"\n";
}

parsed: te(a*m)*(liq)*uii*d
result:
sequence__________________________________________________________________________________
| | | | | | | |
t e closure closure u i closure d
| | |
sequence_ sequence__________ i
| | | | |
closure m l i q
|
a

the structure of the resulting type mirrors the structure in the 'regular' expression source string.
sequence is alias for concatenation, hope formatting is ok.
conspired against by a confederacy of dunces.
Incognoto
Profile Blog Joined May 2010
France10239 Posts
March 26 2015 08:19 GMT
#12150
hmm i'm kind of stuck on this one, long post incoming. it's not homework or anything i'm working on a new community site with proboards and i could use a little help for something, if it's all right. question in spoilers so as to not muck up the thread. note i have very little to not programming experience or web design experience, so very obvious things might be totally new to me. i've been using google and experimentation to get my thing going

+ Show Spoiler +

basically i want to copy some html from one source to another.


<div class="content widget-content">

<div class="widget-recent-thread-title"><a href="/thread/257/pos-trpelays" class="thread-link thread-257 board-20">I really wish someone would pos trpelays</a></div>
<div class="widget-recent-thread-creator"><span class="widget-small-text">by</span> <a href="/user/184" class="user-link user-184 group-0" title="@incog">incog</a></div>
<br style="clear: both;">

<div class="widget-recent-thread-title"><a href="/thread/256/replays-ly" class="thread-link thread-256 board-20">No replays LY.L</a></div>
<div class="widget-recent-thread-creator"><span class="widget-small-text">by</span> <a href="/user/184" class="user-link user-184 group-0" title="@incog">incog</a></div>
<br style="clear: both;">


</div>


That HTML code makes a table, which shows recent threads. I want to take that table and copy it to the side-bar of the forum.

http://esocommunity.boards.net/page/news

Obviously, when I simply copy/paste that html code, all it does is re-produce the table at the time of the copy/paste. :p !

So my goal is to use JS to copy/paste that code every time the user refreshes his page. i can create plug-ins on the site to do stuff like that, a friend of mine already somehow used JS to check if streams were online or not, so this shouldn't be too hard.

i guess i need to declare the html code i want to copy as a variable, then use JS to output that code into another html table, the output going into the sidebar, if that makes sense.

): i have no idea what i'm doing

maru lover forever
excitedBear
Profile Joined March 2015
Austria120 Posts
Last Edited: 2015-03-26 08:41:51
March 26 2015 08:35 GMT
#12151
This should get you started:

var el = document.createElement( 'div' );
el.innerHTML = "yourHTMLCode";

var elements = el.getElementsByClassName("widget-recent-thread-title");
for (var i = 0; i < elements.length; i++) {
... do stuff with elements[i] ...
}



Manit0u
Profile Blog Joined August 2004
Poland17733 Posts
March 28 2015 16:38 GMT
#12152
On March 26 2015 17:35 excitedBear wrote:
This should get you started:

var el = document.createElement( 'div' );
el.innerHTML = "yourHTMLCode";

var elements = el.getElementsByClassName("widget-recent-thread-title");
for (var i = 0; i < elements.length; i++) {
... do stuff with elements[i] ...
}





If I were to nitpick I'd say it's the job for the controller, not javascript...
Time is precious. Waste it wisely.
r3dox
Profile Blog Joined May 2003
Germany261 Posts
March 29 2015 09:57 GMT
#12153
interesting AI tournament with great visualisation and ladder:
http://www.reddit.com/r/gamedev/comments/30iatz/zero_sum_game_ai_tournament/
excitedBear
Profile Joined March 2015
Austria120 Posts
March 29 2015 11:22 GMT
#12154
On March 29 2015 01:38 Manit0u wrote:
Show nested quote +
On March 26 2015 17:35 excitedBear wrote:
This should get you started:

var el = document.createElement( 'div' );
el.innerHTML = "yourHTMLCode";

var elements = el.getElementsByClassName("widget-recent-thread-title");
for (var i = 0; i < elements.length; i++) {
... do stuff with elements[i] ...
}





If I were to nitpick I'd say it's the job for the controller, not javascript...
What do you mean by 'controller'?
Incognoto
Profile Blog Joined May 2010
France10239 Posts
Last Edited: 2015-03-29 11:43:28
March 29 2015 11:43 GMT
#12155
first off thanks excitedBear for the tip. i want to say sorry for not answering sooner but over the past few days i've been working on other aspects to get this board running. i'm severely limited by my lack of knowledge and experience, but ya gotta do what ya gotta do

now that i have time to look at this aspect again i guess I might as well discuss it. i'll put this in spoilers if that's ok. i also want to ask if it's OK for me to ask all these questions since i have an absolute truck-ton of things i'd like to do; it might seriously weigh down the thread. also note that my questions are going to be super basic. NB: these are free, online forums, so we don't have access to stuff like source code and whatnot. we make do with included features and also JS plugins

+ Show Spoiler +


my current objective at the moment is to insert a "recent threads" panel into the sidebar on eso-community.net

it's done in html, however we can insert javascript into the html thing, using <script ></ script>. anyway, here is the html used in the "forum index" section of the sidebar, for example:

+ Show Spoiler +
<div class="sidebar-forum">
<ul class="sdb-list">
<li><a href="http://eso-community.net/forum">All</a></li>
<li><a href="http://eso-community.net/board/27/news">News</a></li>
<li><a href="http://eso-community.net/board/19/aoe3-discussion">AoE3 General</a></li>
<li><a href="http://eso-community.net/board/29/aoe3-strategy">AoE3 Strategy</a></li>
<li><a href="http://eso-community.net/board/20/recorded-games">AoE3 Recorded Games</a></li>
<li><a href="http://eso-community.net/board/26/off-topic-discussion">Off Topic</a></li>
<li><a href="http://eso-community.net/forum#category-2">AoE3 Spring Championships</a></li>
<li><a href="http://eso-community.net/board/16/tournament-bets">Tournament Bets</a></li>
</ul>
</div>


as you can see, it's basic links, nothing too incredible.


what I would like to do is have a "recent threads" thing, written in html and using JS to extract information. basically take the latest threads posted in this section : http://eso-community.net/board/20/recorded-games

and have those threads appear in the side bar. kind of like how it's done at tl.net

now that i have time, i'm going to be re-using excitedbear's advice and hopefully try to start coding something. this post is just to properly explain my problem, i guess
maru lover forever
JD.
Profile Joined September 2014
Australia250 Posts
March 30 2015 06:49 GMT
#12156
So I know this is a bit of a reach and possibly not the threads intended use, but I have a Java assignment that i'm not even sure how to begin on - if anyone is capable of helping me out implementing A* pathfinding please send me a PM

(Note I'm not looking for someone to do the work for me, but someone I can share the provided files+assignment spec with who can help me out from skype or w/e)
r3dox
Profile Blog Joined May 2003
Germany261 Posts
March 30 2015 08:23 GMT
#12157
On March 30 2015 15:49 JD. wrote:
So I know this is a bit of a reach and possibly not the threads intended use, but I have a Java assignment that i'm not even sure how to begin on - if anyone is capable of helping me out implementing A* pathfinding please send me a PM

(Note I'm not looking for someone to do the work for me, but someone I can share the provided files+assignment spec with who can help me out from skype or w/e)


did you try googling? there is so much information on the implementation of A* available... of course you can find full java implementations as well.

for example:
http://www.redblobgames.com/pathfinding/a-star/introduction.html

asking for someone to share your assignment and skype with you is pretty close to doing the work for you
Acrofales
Profile Joined August 2010
Spain18278 Posts
Last Edited: 2015-03-30 13:32:15
March 30 2015 13:26 GMT
#12158
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)
Prillan
Profile Joined August 2011
Sweden350 Posts
March 30 2015 15:35 GMT
#12159
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)

What the?! What kind of answer is that? You basically said: "If you don't know how to do it, you shouldn't try to learn it."
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
Last Edited: 2015-03-30 16:29:57
March 30 2015 16:28 GMT
#12160
On March 31 2015 00:35 Prillan wrote:
Show nested quote +
On March 30 2015 22:26 Acrofales wrote:
Honestly, if you have no clue where to start when programming A*, you probably should be staying far away from studying CS...

1. As algorithms go, A* is a simple one. If you don't understand it, CS is not for you.
2. There are literally thousands of explanations of it, pseudocode implementations, and actual implementations in any programming language you can imagine. If you don't know how to find them, CS is not for you (or well, any other study, because some healthy dose of Google knowledge is necessary for most stuff nowadays)

What the?! What kind of answer is that? You basically said: "If you don't know how to do it, you shouldn't try to learn it."

What he actually said (or meant at least, and what I got from it): "If you don't know how to learn how to do it, you shouldn't do it".

Which is generally a statement I agree with.
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Prev 1 606 607 608 609 610 1032 Next
Please log in or register to reply.
Live Events Refresh
BSL
19:00
RO16 TieBreaker - Group B
Artosis vs Jimin
cavapoo vs LancerX
ZZZero.O444
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 498
elazer 161
ROOTCatZ 155
ProTech133
StarCraft: Brood War
Calm 2286
ZZZero.O 444
Mini 317
Horang2 281
ggaemo 122
Dewaltoss 101
NaDa 9
Dota 2
monkeys_forever246
League of Legends
Doublelift3187
JimRising 408
Super Smash Bros
C9.Mang01075
Mew2King84
Heroes of the Storm
Khaldor284
Other Games
gofns14183
tarik_tv10203
summit1g9447
Grubby4035
crisheroes233
ToD194
uThermal135
UpATreeSC53
kaitlyn34
Organizations
Other Games
gamesdonequick1204
BasetradeTV375
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 19 non-featured ]
StarCraft 2
• Hupsaiya 42
• davetesta18
• musti20045 16
• Kozan
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• 3DClanTV 42
• Airneanach23
• RayReign 7
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21488
Other Games
• imaqtpie1233
• Scarra896
Upcoming Events
CranKy Ducklings
1h 58m
Replay Cast
10h 58m
Afreeca Starleague
11h 58m
Soma vs hero
Wardi Open
12h 58m
Monday Night Weeklies
17h 58m
Replay Cast
1d 1h
Replay Cast
1d 10h
Afreeca Starleague
1d 11h
Leta vs YSC
Replay Cast
3 days
The PondCast
3 days
[ Show More ]
KCM Race Survival
3 days
Replay Cast
4 days
Replay Cast
4 days
Escore
4 days
Replay Cast
5 days
Replay Cast
5 days
IPSL
5 days
Ret vs Art_Of_Turtle
Radley vs TBD
BSL
5 days
Replay Cast
6 days
uThermal 2v2 Circuit
6 days
BSL
6 days
IPSL
6 days
eOnzErG vs TBD
G5 vs Nesh
Liquipedia Results

Completed

Escore Tournament S2: W4
RSL Revival: Season 4
NationLESS Cup

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
Nations Cup 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
2026 GSL S1
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
BLAST Rivals Spring 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...

Disclosure: This page contains affiliate marketing links that support TLnet.

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.