• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:08
CEST 08:08
KST 15:08
  • 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
[ASL22] Finals Preview: Sweet Victory!9[ASL22] Ro4 Preview: Mirror Mirror6[ASL22] Ro8 Preview: Within Reach5[ASL22] Ro8 Preview: In A Tizzy11[ASL22] Ro16 Preview: Holy Diver5
Community News
Evil Geniuses - shutting down13ISSL (IntoTheTV x SOOP SC2 League): Premier5Weekly Cups (October 12-18): 5.0.17 era begins1[$1250] International ShieldBattery League55Weekly Cups (October 5-11): Farewell to 5.0.167
StarCraft 2
General
REPORT: StarCraft 2: Remastered In Development Evil Geniuses - shutting down How do you feel about the mass reverts in the 5.0.17 PTR? No more SC2 streamers on team liquid? Daily SC2 Player Grid - feedback wanted
Tourneys
ScienceCraft (October 24-25) - Live Event RSL goes to London! 2026 Offline Finals Nov 21-22 ISSL (IntoTheTV x SOOP SC2 League): Premier Sparkling Tuna Cup - Weekly Open Tournament WORTEX Challenger Series — Open SC2 LAN in Budapes
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[G] How to playtest arcade maps [A] Nemrods 1/4 players [M] (2) Sweltering Sands [M] (2) Frigid Storage
External Content
Mutation # 548 Shining Bright The PondCast: SC2 News & Results Mutation # 547 Temple Of Terror Mutation # 546 Catch the Train
Brood War
General
Starcraft player cRuZa Passed away. Young Players Tournament Announced by SOOP Rollback Netcode in Brood War SCHNAIL now supports Remastered BGH Auto Balance -> http://bghmmr.eu/
Tourneys
Small VOD Thread 2.0 2v2v2v2 Tournament [ASL22] Grand Finals [Megathread] Daily Proleagues
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) 50,000-Word Terran Builds Memo 2026-10-22 Simple Questions, Simple Answers
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Armies of Exigo - YesYes? General RTS Discussion Thread Dawn of War IV
Dota 2
Dota 2 Champions League Season 3 Begins April 25!
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine Artificial Intelligence Thread US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
Serral Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion!
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
How Much Genes Contribute to…
TrAiDoS
ShieldBattery on Mac
Kraekkling
[ASL22] Ro4 Day1 Ticket Giv…
bITt.mAN
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 9700 users

The Big Programming Thread - Page 286

Forum Index > General Forum
Post a Reply
Prev 1 284 285 286 287 288 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.
yeastiality
Profile Joined April 2011
Canada374 Posts
Last Edited: 2013-04-18 01:41:23
April 18 2013 01:30 GMT
#5701
On April 09 2013 17:39 Tobberoth wrote:
Show nested quote +
On April 09 2013 17:24 Abductedonut wrote:
This doesn't have much to do with programming as it does ranting but here it goes.

Learn touch typing guys. Learn it properly (keys on home row and everything!). There will come a point in your career when you realize that IDEs are trash and that VIM is better than anything that you can find for text editing. And if you don't touch type it will be a pain to use.

Heed my warning! Don't be lazy and learn it!

I agree that learning to touch type is awesome for a programmer, but I don't know about that vim comment. Vim is certainly an amazing editor if you're good at it (as is emacs), but in some development, it's not as fitting. Especially if you work with microsoft technologies like C#, ASP.Net etc, you're going to want to use Visual Studio regardless.

That said, there are apparently some pretty sweet vim bindings for visual studio, but you have to pay for them.


edit:nah
dambros
Profile Joined July 2010
Brazil432 Posts
April 18 2013 01:57 GMT
#5702
Well, since Im pretty much lost regarding this problem I need to solve, maybe someone can give me some help.

I need to parse (in Java) a XML but the structure of the XML is as follow:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><list>
<AL type="1111" value="Company Name"/>
<AL type="2222" value="10"/>
<AL type="3333" value="20"/>
<AL addressType="MAC Address" type="44444" value="XX-XX-XX-XX-XX-XX"/>
<AL type="55555" value="YYYY"/>
</list>


I've looked around and couldn't find examples using a similar structure (including list and attributes values). Can someone give me some help or a similar example? I tried using XStream, but it wasn't clear to me how I would create POJOs for the xml in question, since all the examples I found used straightforward XMLs as follow:


<staff>
<name>John Doe</name>
<id>1234</id>
</staff>



No pain, no gain!
Kenpachi
Profile Blog Joined August 2009
United States9908 Posts
April 18 2013 01:57 GMT
#5703
I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?
Nada's body is South Korea's greatest weapon.
JeanLuc
Profile Joined September 2010
Canada377 Posts
April 18 2013 02:01 GMT
#5704
On April 18 2013 10:57 Kenpachi wrote:
I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?


You're here arent ya
If you can't find it within yourself to stand up and tell the truth-- you don't deserve to wear that uniform
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
April 18 2013 02:08 GMT
#5705
On April 18 2013 10:57 Kenpachi wrote:
I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?

Program more if you're still interested in finding out.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
April 18 2013 02:15 GMT
#5706
On April 18 2013 10:57 Kenpachi wrote:
I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?

Ya most programmers I know are like "herpa derpa nerd stuff"

And I'm like "I wanna play games"

Whenever I ask this question, I ask myself, what else would I do? Cook? Be a professional game theorycrafter?
There's nothing else I'm good at (either :p)
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
Last Edited: 2013-04-18 07:08:43
April 18 2013 07:06 GMT
#5707
While I'm not a fan of people doing jobs that they don't actually want (because they took it thinking they're good for no other jobs), I do encourage people to try programming to see if they enjoy it, because it really is a satisfying job. However, please don't stay in the profession simply because you like to program.

I see a lot of programmers just scrapping by because they enjoy programming and that just stuck with them because they didn't look at, try, or want other courses. Not that anything is wrong with that if your priorities are aligned well, but I would much rather you try to pursue all the goals you have set for yourself rather than just "settle" as a programmer.


In reality, a lot of "programmers" just do programming as their job - they're pretty chill otherwise. And then you have some that live and breathe programming and computer science. It's a really mixed bunch, and you don't really have to be "herpa derpa nerd" to be one, even though it caters to that area I suppose. And the jobs you can get that are considered programming are still extremely varied. So it's good in that regard. Just try not to go into programming, or any field, with the attitude that you're only here because you have no other useful skills.

To find out what programming really is, dive into your own projects and see what disciplines of programming you enjoy the most. After getting experience by developing your own applications and diving into open-source projects, try a short internship and see if you like it. If you don't, tell us and we'll tell you if it's what you should expect in the real world :p Experience is the most important point for programmers.
There is no one like you in the universe.
KaiserJohan
Profile Joined May 2010
Sweden1808 Posts
April 18 2013 07:12 GMT
#5708
On April 18 2013 10:57 Kenpachi wrote:
I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?


Have a look at some coding tutorials I suppose.
Also be prepared computer science programs usually have some math as well (varies, but I had like 40-50%) although in practice you wont end up using that much of it.
Still some stuff like linear algebra became super useful when I started programming 3d graphics, something I could not have foreseen all those years ago
England will fight to the last American
Isualin
Profile Joined March 2011
Germany1903 Posts
Last Edited: 2013-04-18 12:26:26
April 18 2013 12:26 GMT
#5709
i know this is not programming but this thread is the best place i could ask.
+ Show Spoiler +
http://i.imgur.com/QlGpd.gif

i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 (     $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format?
P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.
| INnoVation | The literal god TY | ByuNjwa | LRSL when? |
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 18 2013 13:16 GMT
#5710
On April 18 2013 21:26 Isualin wrote:
i know this is not programming but this thread is the best place i could ask.
+ Show Spoiler +
http://i.imgur.com/QlGpd.gif

i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 (     $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format?
P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.


Wikipedia is your friend:
http://en.wikipedia.org/wiki/BMP_file_format
Isualin
Profile Joined March 2011
Germany1903 Posts
April 18 2013 15:22 GMT
#5711
of course i checked the wikipedia article before but i couldn't figure how i am going to use it until i tried a HEX editor. thanks anyway, i managed to do what i wanted.
| INnoVation | The literal god TY | ByuNjwa | LRSL when? |
AmericanUmlaut
Profile Blog Joined November 2010
Germany2597 Posts
April 19 2013 07:24 GMT
#5712
Does anyone in here have experience writing Firefox add-ins? I'm working on one and having a very frustrating problem: I have a script that by its nature (it's an implementation of bcrypt) runs slowly, and scripts running in the chrome's context run even slower, so I'm trying to dynamically load the script into the document so it'll run in the document context and (hopefully) run as quickly as the dedicated webpage version of the program. I've set contentaccessible=yes as described in the mdn docs in my chrome.manifest, but the scripts are still being blocked.

If you understood the above paragraph and think you can help, I would be eternally grateful for any ideas.
The frumious Bandersnatch
betaflame
Profile Joined November 2010
175 Posts
Last Edited: 2013-04-19 22:10:40
April 19 2013 16:41 GMT
#5713
Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers.

EDIT: Figured it out!! But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2013-04-20 23:45:42
April 20 2013 23:29 GMT
#5714
On April 20 2013 01:41 betaflame wrote:
Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers.

EDIT: Figured it out!! But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries.

Not sure what the difference is between a dom parser and library is. I thought someone else would have experience with this.


I'm watching a speeding up joomla webinar right now.
In an effort to be more social, I'll post the link here
+ Show Spoiler +

How do I make a site better? Faster? With the joomla framework? I feel like it's just going to be telling me to use cloudflare and optimize the site by removing debugging / unused features / buying more hosting.
Oh god it's so boring... But I learned you can have binary versions of PHP files so that when people access them they don't have to be recompiled every time. I now wonder if this is done automatically by web service providers.
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.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 21 2013 00:33 GMT
#5715
On April 21 2013 08:29 obesechicken13 wrote:
Show nested quote +
On April 20 2013 01:41 betaflame wrote:
Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers.

EDIT: Figured it out!! But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries.

Not sure what the difference is between a dom parser and library is. I thought someone else would have experience with this.


I'm watching a speeding up joomla webinar right now.
In an effort to be more social, I'll post the link here
+ Show Spoiler +
http://www.youtube.com/watch?v=s3gwwcahnkA&feature=youtu.be

How do I make a site better? Faster? With the joomla framework? I feel like it's just going to be telling me to use cloudflare and optimize the site by removing debugging / unused features / buying more hosting.
Oh god it's so boring... But I learned you can have binary versions of PHP files so that when people access them they don't have to be recompiled every time. I now wonder if this is done automatically by web service providers.


Optimization is a huge pet peeve of mine, i see it done wrong all the time.
There are many ways to make a site faster. However, 90% of those ways cost more in man hours than just buying another server, so in reality noone cares if your site only has 80% of the possible performance. Readable and maintainable code is usually fast enough that only very few usecases require you to do performance optimization. Sites of the scope of Facebook or Amazon require careful optimization but, well, you won't be working on those any time soon.

Web Service Providers often don't have special optimizations because they can interfere with the clients scripts and have bad side effects. Sites that really require the performance usually have their own servers anyways.

From experience i can tell you:
Only optimize if there really IS a noticeable bottleneck, otherwise focus on writing clean code first.

Relevant links:
http://www.codinghorror.com/blog/2009/01/the-sad-tragedy-of-micro-optimization-theater.html
http://www.codinghorror.com/blog/2008/12/hardware-is-cheap-programmers-are-expensive.html
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
Last Edited: 2013-04-21 02:14:17
April 21 2013 02:02 GMT
#5716
On April 21 2013 09:33 Morfildur wrote:
Show nested quote +
On April 21 2013 08:29 obesechicken13 wrote:
On April 20 2013 01:41 betaflame wrote:
Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers.

EDIT: Figured it out!! But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries.

Not sure what the difference is between a dom parser and library is. I thought someone else would have experience with this.


I'm watching a speeding up joomla webinar right now.
In an effort to be more social, I'll post the link here
+ Show Spoiler +
http://www.youtube.com/watch?v=s3gwwcahnkA&feature=youtu.be

How do I make a site better? Faster? With the joomla framework? I feel like it's just going to be telling me to use cloudflare and optimize the site by removing debugging / unused features / buying more hosting.
Oh god it's so boring... But I learned you can have binary versions of PHP files so that when people access them they don't have to be recompiled every time. I now wonder if this is done automatically by web service providers.


There are many ways to make a site faster. However, 90% of those ways cost more in man hours than just buying another server, so in reality noone cares if your site only has 80% of the possible performance. Readable and maintainable code is usually fast enough that only very few usecases require you to do performance optimization.

Both good points. Developer time is very valuable imo and so it should be used in the most useful ways.

Optimization isn't worth the time for many sites.

Right now I'm going into a course for interactive programming for python on Coursera. I was always confused by how Coursera would make any revenue. They recently added certificates though $45 each I think... Also some of these companies trying to add certification use webcams to monitor test taking and others rent out test centers.
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.
b3n3tt3
Profile Joined January 2012
595 Posts
April 21 2013 02:42 GMT
#5717
On April 18 2013 21:26 Isualin wrote:
i know this is not programming but this thread is the best place i could ask.
+ Show Spoiler +
http://i.imgur.com/QlGpd.gif

i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 (     $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format?
P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.


There is a better and more sophisticated way. Try googling steganography. There's a program called openpuff that does it.
phar
Profile Joined August 2011
United States1080 Posts
April 21 2013 03:56 GMT
#5718
On April 21 2013 11:42 b3n3tt3 wrote:
Show nested quote +
On April 18 2013 21:26 Isualin wrote:
i know this is not programming but this thread is the best place i could ask.
+ Show Spoiler +
http://i.imgur.com/QlGpd.gif

i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 (     $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format?
P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.


There is a better and more sophisticated way. Try googling steganography. There's a program called openpuff that does it.

Gotta defeat that light pink book man. If Isualin is doing something for class this may be overkill. But I guess if he's trying to hide shit from someone, openpuff is probably right up his alley. Cool stuff
Who after all is today speaking about the destruction of the Armenians?
necrosexy
Profile Joined March 2011
451 Posts
April 21 2013 06:11 GMT
#5719
any recommendations of LInux API intro texts?
Arnstein
Profile Blog Joined May 2010
Norway3381 Posts
Last Edited: 2013-04-21 19:41:34
April 21 2013 19:41 GMT
#5720
I need help with something:

In a class, I have to make an add function that takes in another instance of that class, and iterate over a private member of that function, a map that takes in two string arguments. Then I have to iterate over the first string argument, and add both to the existing one. This doesn't work:
+ Show Spoiler +

void add ( const PhonebookEntry& copyFrom ) 
{
for ( map<string, string>::iterator itty = this->numbers.begin() ; itty != this->numbers.end() ; itty++ )
{
}

}



What is the correct way to iterate over this?
rsol in response to the dragoon voice being heard in SCII: dragoon ai reaches new lows: wanders into wrong game
Prev 1 284 285 286 287 288 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 52m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Leta 1630
Larva 236
Dota 2
NeuroSwarm231
LuMiX1
League of Legends
JimRising 668
Other Games
summit1g10323
C9.Mang0297
Livibee159
Sick87
Organizations
Other Games
gamesdonequick793
[ Show 10 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2179
Other Games
• Shiphtur583
Upcoming Events
FEL
2h 52m
Patches Events
6h 52m
AI Arena Tournament
10h 52m
FEL
1d 3h
Sparkling Tuna Cup
1d 3h
Replay Cast
1d 16h
WardiTV Weekly
2 days
IntoTheTV X SOOP
3 days
ByuN vs Lambo
MaxPax vs Bunny
PiGosaur Cup
3 days
The PondCast
4 days
[ Show More ]
Kung Fu Cup
4 days
IntoTheTV X SOOP
5 days
SHIN vs GuMiho
Clem vs Classic
WardiTV Invitational
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

Acropolis #5 - GSC
Blizzard Classic Cup 2026
HCC Season 3

Ongoing

Acropolis #5
KCM Race Survival 2026 Season 4
BSL Season 23
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026

Upcoming

IPSL Winter 2026-27
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
eXTREMESLAND 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
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.