• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 15:41
CEST 21:41
KST 04:41
  • 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
Team Liquid Map Contest #22 - The Finalists14[ASL21] Ro16 Preview Pt1: Fresh Flow9[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy21
Community News
2026 GSL Season 1 Qualifiers11Maestros of the Game 2 announced32026 GSL Tour plans announced10Weekly Cups (April 6-12): herO doubles, "Villains" prevail1MaNa leaves Team Liquid20
StarCraft 2
General
Team Liquid Map Contest #22 - The Finalists Weekly Cups (April 6-12): herO doubles, "Villains" prevail MaNa leaves Team Liquid Oliveira Would Have Returned If EWC Continued 2026 GSL Tour plans announced
Tourneys
2026 GSL Season 1 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) SEL Doubles (SC Evo Bimonthly) $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
Mutation # 521 Memorable Boss The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power
Brood War
General
ASL21 General Discussion BGH Auto Balance -> http://bghmmr.eu/ Pros React To: Tulbo in Ro.16 Group A RepMastered™: replay sharing and analyzer site BW General Discussion
Tourneys
Escore Tournament StarCraft Season 2 [ASL21] Ro16 Group A [ASL21] Ro16 Group B [Megathread] Daily Proleagues
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
General RTS Discussion Thread Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
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 Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books [Manga] One Piece Movie Discussion!
Sports
McBoner: A hockey love story 2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT]
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Reappraising The Situation T…
TrAiDoS
lurker extra damage testi…
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2862 users

The Big Programming Thread - Page 714

Forum Index > General Forum
Post a Reply
Prev 1 712 713 714 715 716 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.
Wrath
Profile Blog Joined July 2014
3174 Posts
Last Edited: 2016-03-28 18:09:03
March 28 2016 18:03 GMT
#14261
Well guys, tomorrow is my big day, if I succeed in this front-end interview, I could finally throw away my current life that I may be regretting. But who knows?

Lets hope it go well
LaNague
Profile Blog Joined April 2010
Germany9118 Posts
March 28 2016 18:43 GMT
#14262
On March 27 2016 03:07 FFGenerations wrote:
is offering websites to small business a thing? like you cold call businesses with shit websites and offer to make something for them with a portfolio . coz that's what i thought people would like to do. but maybe theres not much actual money in it (considering how much you guys get paid working higher brow jobs)




ive had people call me with such offers for my fathers company when i was working in his office for a bit.
its not really shit, its just utterly unremarable.

Mostly some random designers from Berlin, guess they got attracked by the startup and art scene and spewed out pretty quickly.



FFGenerations
Profile Blog Joined April 2011
7088 Posts
March 28 2016 19:28 GMT
#14263
On March 29 2016 03:03 WrathSCII wrote:
Well guys, tomorrow is my big day, if I succeed in this front-end interview, I could finally throw away my current life that I may be regretting. But who knows?

Lets hope it go well


well thats the kind of attitude they are probably looking for :D
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
March 29 2016 15:43 GMT
#14264
On March 29 2016 03:03 WrathSCII wrote:
Well guys, tomorrow is my big day, if I succeed in this front-end interview, I could finally throw away my current life that I may be regretting. But who knows?

Lets hope it go well


Good luck!

Don't regret your current life though!
There is no one like you in the universe.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
March 29 2016 17:01 GMT
#14265
I'm reading 'Effective Modern C++'. Damn, C++ has become even more complex but I guess C++ jobs will still be well (or even better) paid, right? Has anyone tried to get familiar with C++11/14 yet or has anyone read that book?
Cyx.
Profile Joined November 2010
Canada806 Posts
March 29 2016 18:24 GMT
#14266
On March 30 2016 02:01 Shield wrote:
I'm reading 'Effective Modern C++'. Damn, C++ has become even more complex but I guess C++ jobs will still be well (or even better) paid, right? Has anyone tried to get familiar with C++11/14 yet or has anyone read that book?

I'm actually in the middle of it right now too, it's my build time reading :D It's a really good book, although almost all of it has been disseminated to stackoverflow at this point so if you've been keeping up to date there's not a *ton* of new stuff in there, just collected wisdom from the last 5 years or so It's a really good book though, and C++11/14 is a significantly better language than C++98/03 was.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
March 29 2016 22:18 GMT
#14267
On March 30 2016 03:24 Cyx. wrote:
Show nested quote +
On March 30 2016 02:01 Shield wrote:
I'm reading 'Effective Modern C++'. Damn, C++ has become even more complex but I guess C++ jobs will still be well (or even better) paid, right? Has anyone tried to get familiar with C++11/14 yet or has anyone read that book?

I'm actually in the middle of it right now too, it's my build time reading :D It's a really good book, although almost all of it has been disseminated to stackoverflow at this point so if you've been keeping up to date there's not a *ton* of new stuff in there, just collected wisdom from the last 5 years or so It's a really good book though, and C++11/14 is a significantly better language than C++98/03 was.


I'm very confused with all the little details as I don't want to forget any details so I'm not caught offguard while I design a class. Other than that, the more I read, the more I understand how little of C++ I know, haha. The book definitely helps though. I've not read explanation yet why pass by value could be a good thing other than that the compiler may use move semantics. I'm not aware of all the rules when this is supposed to happen though.
Chocolate
Profile Blog Joined December 2010
United States2350 Posts
March 29 2016 22:39 GMT
#14268
Well the thing about C++ is nobody really knows all of it. It just has so many things in it.
Wrath
Profile Blog Joined July 2014
3174 Posts
March 30 2016 19:27 GMT
#14269
How do you compare 2 txt files each of them is around 90MB. You need to know if they are identical or not. They contain data in rows format but those are not sorted the same way in both files.

Basically you want to compare 2 90MB unsorted text files. A way that came up to my mind is using Cygwin to use Linux sort command and "merge" both files into a 3rd file without duplicating records. Number of records is the same in both files. Logically if the 3rd file got the same record count as the other 2 files, does that mean that those files are identical?
xtorn
Profile Blog Joined December 2013
4060 Posts
March 30 2016 19:36 GMT
#14270
Holy mother of all that is sweet and pure.

http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash
Life - forever the Legend in my heart
Acrofales
Profile Joined August 2010
Spain18263 Posts
Last Edited: 2016-03-30 19:40:47
March 30 2016 19:39 GMT
#14271
On March 31 2016 04:27 WrathSCII wrote:
How do you compare 2 txt files each of them is around 90MB. You need to know if they are identical or not. They contain data in rows format but those are not sorted the same way in both files.

Basically you want to compare 2 90MB unsorted text files. A way that came up to my mind is using Cygwin to use Linux sort command and "merge" both files into a 3rd file without duplicating records. Number of records is the same in both files. Logically if the 3rd file got the same record count as the other 2 files, does that mean that those files are identical?

Was that one of your interview questions? How did it go?

If you need an exact answer, you'll have to do something like that (sort both alphabetically and then do an exhaustive row by row comparison). If you don't need an exact answer, a far easier and quicker way is to count every character. If the counts are the same you can be virtually certain that they are the same, but not 100%. On the other hand, if they are different you can be 100% certain the text files are different.
Ropid
Profile Joined March 2009
Germany3557 Posts
March 30 2016 19:58 GMT
#14272
On March 31 2016 04:36 xtorn wrote:
Holy mother of all that is sweet and pure.

http://www.theverge.com/2016/3/30/11331014/microsoft-windows-linux-ubuntu-bash

Here's someone from Canonical writing about it:

http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html


On March 31 2016 04:27 WrathSCII wrote:
How do you compare 2 txt files each of them is around 90MB. You need to know if they are identical or not. They contain data in rows format but those are not sorted the same way in both files.

Basically you want to compare 2 90MB unsorted text files. A way that came up to my mind is using Cygwin to use Linux sort command and "merge" both files into a 3rd file without duplicating records. Number of records is the same in both files. Logically if the 3rd file got the same record count as the other 2 files, does that mean that those files are identical?


If you are already using that sort tool, couldn't you just completely finish the job with the rest of the tools? Like so on the command line:

diff -q <(sort one.txt) <(sort two.txt)

The slowest about this is the sort tool. It's something like 5 seconds for 90MB text.
"My goal is to replace my soul with coffee and become immortal."
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
March 30 2016 23:06 GMT
#14273
--- Nuked ---
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2016-03-30 23:15:39
March 30 2016 23:15 GMT
#14274
Why are string literals considered to be lvalue? I don't understand.

std::string hello = "Hello!";


Are you able to access "Hello!" after this line? I don't think so. So, it has to be rvalue then but the standard considers it lvalue, I think.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-03-31 00:18:47
March 31 2016 00:14 GMT
#14275
--- Nuked ---
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2016-03-31 16:34:18
March 31 2016 16:25 GMT
#14276
I thought I'd share my programming achievement for the day.

I'm managing the ETL between our 3rd party pricing system and our ERP. We get pricing like this:

ItemCode Distributor Month Price
123 123 201501 8
123 123 201505 8
123 123 201506 8
123 123 201507 8

I have to convert it to this:

ItemCode Distributor Start End Price
123 123 201501 201501 8
123 123 201505 201507 8

I wanted to do it without using any cursor or do-while loop. Also have to consider that there can be well over 1 million rows to process. Turns out to have been one of the more challenging SQL I've had to write in a long time. You can't just do a basic group by with a min and max on the Month, otherwise it would set the price to be from 201501 to 201507, which isn't correct.

I was able to do it by first finding all the prices that have no price for the previous month, assigning a unique ID to each one, and then running a recursive query to find the next month with the same price for each ID. It would pass the parent ID to each subsequent child. Once that was complete, then I could just do a group by using the ID. Simplifying it, but hopefully you get the idea. With proper indexes, it runs quick enough to handle the large row count.

It was a nice accomplishment to follow one of the busiest weeks I've had in a while.
Wrath
Profile Blog Joined July 2014
3174 Posts
Last Edited: 2016-03-31 19:32:38
March 31 2016 19:32 GMT
#14277
Was that one of your interview questions? How did it go?

No it is not, just a problem I faced yesterday.

Thanks for asking... I... had better interviews...
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2016-03-31 23:09:26
March 31 2016 23:08 GMT
#14278
On April 01 2016 01:25 enigmaticcam wrote:
I thought I'd share my programming achievement for the day.

I'm managing the ETL between our 3rd party pricing system and our ERP. We get pricing like this:

ItemCode Distributor Month Price
123 123 201501 8
123 123 201505 8
123 123 201506 8
123 123 201507 8

I have to convert it to this:

ItemCode Distributor Start End Price
123 123 201501 201501 8
123 123 201505 201507 8

I wanted to do it without using any cursor or do-while loop. Also have to consider that there can be well over 1 million rows to process. Turns out to have been one of the more challenging SQL I've had to write in a long time. You can't just do a basic group by with a min and max on the Month, otherwise it would set the price to be from 201501 to 201507, which isn't correct.

I was able to do it by first finding all the prices that have no price for the previous month, assigning a unique ID to each one, and then running a recursive query to find the next month with the same price for each ID. It would pass the parent ID to each subsequent child. Once that was complete, then I could just do a group by using the ID. Simplifying it, but hopefully you get the idea. With proper indexes, it runs quick enough to handle the large row count.

It was a nice accomplishment to follow one of the busiest weeks I've had in a while.


Yeee, nice :p

I can't imagine doing it in SQL but it looks super close to how you would implement union-find/merge :o


On April 01 2016 04:32 WrathSCII wrote:
Show nested quote +
Was that one of your interview questions? How did it go?

No it is not, just a problem I faced yesterday.

Thanks for asking... I... had better interviews...




aww, better luck another time
There is no one like you in the universe.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
April 01 2016 14:55 GMT
#14279
On April 01 2016 08:08 Blisse wrote:I can't imagine doing it in SQL but it looks super close to how you would implement union-find/merge :o

What's a union-find/merge?! Man, I need to take an algorithm class so I can know about these ahead of time without having to spend hours to work up my own.
Manit0u
Profile Blog Joined August 2004
Poland17726 Posts
Last Edited: 2016-04-01 15:36:01
April 01 2016 15:34 GMT
#14280
Anyone here good with maths?

How would I write a computer program to calculate (find a and b) 6 = a^3 + b^3 where a and b can be any integer (positive or negative)?

I desperately need solution to this equation and I'm too noob at this stuff...
Time is precious. Waste it wisely.
Prev 1 712 713 714 715 716 1032 Next
Please log in or register to reply.
Live Events Refresh
Big Brain Bouts
16:00
#112
Serral vs herOLIVE!
RotterdaM1697
IndyStarCraft 265
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 1697
IndyStarCraft 265
UpATreeSC 82
StarCraft: Brood War
Aegong 77
Dewaltoss 75
Sexy 62
ggaemo 42
Dota 2
febbydoto7
Counter-Strike
fl0m8297
olofmeister4335
Super Smash Bros
Mew2King54
Heroes of the Storm
Liquid`Hasu356
Other Games
Grubby3172
summit1g2925
FrodaN1653
Beastyqt578
Mlord347
KnowMe228
Pyrionflax189
ArmadaUGS166
Trikslyr164
QueenE43
MindelVK18
Organizations
Other Games
BasetradeTV321
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 19 non-featured ]
StarCraft 2
• StrangeGG 95
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
StarCraft: Brood War
• HerbMon 24
• 80smullet 20
• FirePhoenix9
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV733
League of Legends
• Nemesis2679
• TFBlade1357
Other Games
• imaqtpie1110
• Shiphtur227
Upcoming Events
Korean StarCraft League
7h 20m
CranKy Ducklings
14h 20m
WardiTV Map Contest Tou…
15h 20m
IPSL
20h 20m
WolFix vs nOmaD
dxtr13 vs Razz
BSL
23h 20m
UltrA vs KwarK
Gosudark vs cavapoo
dxtr13 vs HBO
Doodle vs Razz
Patches Events
1d 2h
CranKy Ducklings
1d 4h
Sparkling Tuna Cup
1d 14h
WardiTV Map Contest Tou…
1d 15h
Ladder Legends
1d 19h
[ Show More ]
BSL
1d 23h
StRyKeR vs rasowy
Artosis vs Aether
JDConan vs OyAji
Hawk vs izu
IPSL
1d 23h
JDConan vs TBD
Aegong vs rasowy
Replay Cast
2 days
Wardi Open
2 days
Afreeca Starleague
2 days
Bisu vs Ample
Jaedong vs Flash
Monday Night Weeklies
2 days
RSL Revival
3 days
Afreeca Starleague
3 days
Barracks vs Leta
Royal vs Light
WardiTV Map Contest Tou…
3 days
RSL Revival
4 days
Replay Cast
5 days
The PondCast
5 days
WardiTV Map Contest Tou…
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2026-04-16
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
Escore Tournament S2: W3
StarCraft2 Community Team League 2026 Spring
WardiTV TLMC #16
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
IEM Kraków 2026

Upcoming

Escore Tournament S2: W4
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
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...

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.