• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:51
CEST 12:51
KST 19:51
  • 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 2 (2026) - RO8 Preview4[ASL21] Finals Preview: Two Legacies21Code S Season 2 (2026) - RO12 Preview2herO wins GSL Code S Season 1 (2026)6Code S Season 1 (2026) - RO4 & Finals Preview5
Community News
Weekly Cups (May 18-25): MaxPax wins doubles0Crank Gathers Season 4: BW vs SC2 Team League4Weekly Cups (May 11-17): Classic wins double0Code S Season 1 (2026) - RO8 Results2Weekly Cups (May 4-10): Clem, MaxPax, herO win1
StarCraft 2
General
herO wins GSL Code S Season 1 (2026) Code S Season 2 (2026) - RO8 Preview Weekly Cups (May 18-25): MaxPax wins doubles Code S Season 2 (2026) - RO12 Preview Weekly Cups (May 11-17): Classic wins double
Tourneys
GSL Code S Season 2 (2026) Sparkling Tuna Cup - Weekly Open Tournament Crank Gathers Season 4: BW vs SC2 Team League GSL Code S Season 1 (2026) Maestros of The Game 2 announcement and schedule !
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 527 Hell Train The PondCast: SC2 News & Results Mutation # 526 Rubber and Glue Mutation # 525 Wheel of Misfortune
Brood War
General
Every Matchup's Top 5 Winrates (all ASLs & KSLs) Pros React To: ASL S21 Finals BW General Discussion Very long shot - StarCraft x A7X video Pros React to: TvT Masterclass in FlaSh vs Light
Tourneys
Escore Tournament StarCraft Season 2 [BSL22] WB Final & LB Semis - Saturday 21:00 CEST [ASL21] Grand Finals [Megathread] Daily Proleagues
Strategy
Any training maps people recommend? Muta micro map competition [G] Hydra ZvZ: An Introduction Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread ZeroSpace Megathread Path of Exile Stormgate/Frost Giant Megathread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
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 Russo-Ukrainian War Thread Trading/Investing Thread Dating: How's your luck? European Politico-economics QA Mega-thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
Facing Challenges in Mobile App Development streaming software
TL Community
The Automated Ban List
Blogs
Customization Drives Loyalty…
TrAiDoS
Why RTS gamers make better f…
gosubay
ramps on octagon
StaticNine
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2793 users

The Big Programming Thread - Page 857

Forum Index > General Forum
Post a Reply
Prev 1 855 856 857 858 859 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.
Manit0u
Profile Blog Joined August 2004
Poland17751 Posts
March 06 2017 07:01 GMT
#17121
Perhaps we need 2 threads?
Time is precious. Waste it wisely.
meatpudding
Profile Joined March 2011
Australia520 Posts
March 06 2017 07:03 GMT
#17122
On March 06 2017 16:01 Manit0u wrote:
Perhaps we need 2 threads?


The Big Programming Thread and the Little Programming Thread?
Be excellent to each other.
Khalum
Profile Joined September 2010
Austria831 Posts
March 06 2017 10:35 GMT
#17123
Judging a thread by it's title... I thought we were beyond that.
Acrofales
Profile Joined August 2010
Spain18296 Posts
Last Edited: 2017-03-06 11:06:55
March 06 2017 11:06 GMT
#17124
On March 06 2017 09:42 Shield wrote:
Can we please rename thread to what it was? It makes TL look amateur this way.

Easy solution: never visit TeamLiquid, and only hang out on TeamLiquidPro. But yes, it's this thread title being a joke that makes TL look "amateur" (whatever that is supposed to mean in this context), and not the eternal "My Little Pony" thread, the endless sequence of girl blogs, the QQ/Rage threads (one for each game), the eternal shitstorm that are the various politics threads, the KPop thread, etc. etc. etc.

Unsurprisingly, a community forum is an "amateur" site, which is why TLPro was born in the first place.
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
March 06 2017 11:28 GMT
#17125
Congratulations Travis for your graduation!!!!!
"windows bash is a steaming heap of shit" tofucake
Silvanel
Profile Blog Joined March 2003
Poland4756 Posts
Last Edited: 2017-03-06 12:07:55
March 06 2017 11:47 GMT
#17126
Hey i wonder how it is shaping nowdays:
Poll: What do You do?

Programming/Developing (21)
 
66%

Other (PMs, Scrum Masters, Students etc.) (9)
 
28%

QA/Testing (2)
 
6%

IT/System Administration (0)
 
0%

32 total votes

Your vote: What do You do?

(Vote): Programming/Developing
(Vote): QA/Testing
(Vote): IT/System Administration
(Vote): Other (PMs, Scrum Masters, Students etc.)



Pathetic Greta hater.
Khalum
Profile Joined September 2010
Austria831 Posts
Last Edited: 2017-03-06 13:27:24
March 06 2017 13:26 GMT
#17127
On March 06 2017 20:28 Djagulingu wrote:
Congratulations Travis for your graduation!!!!!


I actually laughed out loud when I read this, I like your sense of humour!

[Edit] Also, who else is having VS2017 launch parties tomorrow at work?
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-03-06 13:36:02
March 06 2017 13:35 GMT
#17128
--- Nuked ---
Khalum
Profile Joined September 2010
Austria831 Posts
March 06 2017 13:41 GMT
#17129
It's a reason to drink beer. How could that possibly sound dumb?
Manit0u
Profile Blog Joined August 2004
Poland17751 Posts
March 06 2017 14:03 GMT
#17130
On March 06 2017 22:41 Khalum wrote:
It's a reason to drink beer. How could that possibly sound dumb?


This reminds me of an old joke:

Four men are sitting around the table with 7 empty bottles of vodka and one half-full bottle on it. They're all deep in contemplation, brows furrowed, solemn faces. They're sitting like that for quite a while when, suddenly, dog starts to bark outside. One of the men's faces suddenly brightens up, he stands up and cheerfully raises a toast 'For Rex!'.
Time is precious. Waste it wisely.
phar
Profile Joined August 2011
United States1080 Posts
March 06 2017 17:08 GMT
#17131
I wish I could use VS at work
Who after all is today speaking about the destruction of the Armenians?
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2017-03-06 17:36:31
March 06 2017 17:32 GMT
#17132
I wonder when Microsoft will implement C++17 this time. Last time it took them years... :D

That said, Visual Studio is pretty forgiving when you type slightly wrong code.
E.g. std::atomic<bool> b = true compiles.
Not with other compilers though. You're supposed to write: std::atomic<bool> b{ true };
Manit0u
Profile Blog Joined August 2004
Poland17751 Posts
March 07 2017 16:52 GMT
#17133
[image loading]
Time is precious. Waste it wisely.
Thaniri
Profile Blog Joined March 2011
1264 Posts
March 07 2017 20:59 GMT
#17134
Anyone know how to troubleshoot an angular app on AWS S3? The css for my site loads fine locally but not when hosted online:

I am building the site using angular-cli with ng build --env=prod and dumping the contents of the dist folder into the S3 bucket

http://marekslabicki.s3-website-us-west-2.amazonaws.com/
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
Last Edited: 2017-03-07 21:44:44
March 07 2017 21:43 GMT
#17135
Thaniri, your view source is giving me a 404, but I can load the page fine, and see the elements in console fine.

view-source:http://marekslabicki.s3-website-us-west-2.amazonaws.com/home-page

http://marekslabicki.s3-website-us-west-2.amazonaws.com/app
Life?
Deleted User 173346
Profile Blog Joined April 2011
16169 Posts
March 07 2017 21:46 GMT
#17136
--- Nuked ---
Thaniri
Profile Blog Joined March 2011
1264 Posts
March 07 2017 21:58 GMT
#17137
Not sure what permissions I need to setup so that you can view source. I'm not actually home right now so that's why I'm asking how to debug as opposed to what the error is ^^

What happens is that when ng build --env=prod is called a folder is made called dist which bundles the typescript, including the css, however index.html still link rels for a file called styles.css and on the s3 site it breaks at that point.
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
March 07 2017 22:16 GMT
#17138
Thaniri, well I'm just receiving a bunch of errors in my console overall about the 404. It just seems like while you're hosting the files on AWS. AWS doesn't have the right to actually access them. I guess double check your permissions, and/or DNS settings.

Also possibly related:
https://github.com/angular/angular-cli/pull/2646
Life?
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
Last Edited: 2017-03-07 22:22:29
March 07 2017 22:20 GMT
#17139
On March 08 2017 06:46 plasmidghost wrote:
I'm working further on client-server communications and am stuck on this program. I'm trying to have three clients send an integer to a server, along with a private FIFO name so that the server can output the sum of integers from all three clients through the private FIFO that the client named. How do I even do that? I am totally lost. Everything I look at online is not even close to what I'm looking for.
+ Show Spoiler [Client code] +
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <time.h>

struct output
{
char privateFIFO[14];
int getpid;
int integer;
int sum;
}
inst;

main(void)
{
int read_from_client;
int privateFIFO;
struct output;

printf("Input a name for your FIFO (up to 14 characters): ");
fgets(inst.privateFIFO, 15, stdin);
printf("\nFIFO name is %s", inst.privateFIFO);

printf("Input an integer: ");
scanf("%d", &inst.integer);

write(read_from_client, &inst, sizeof(inst));

if ((mkfifo("inst.privateFIFO",0666)<0 && errno != EEXIST))
{
perror("cant create FIFO1");
exit(-1);
}

read(privateFIFO, &inst, sizeof(inst));

printf("The sum of all integers received by the server is %d", inst.sum);

return 0;
}

+ Show Spoiler [Server code] +
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>

struct output
{
char privateFIFO[14];
int getpid;
int integer;
int sum;
}
inst;

main(void)
{
int read_from_client;
int i;
struct output;
int sum[3];
char tmp1[14];
char tmp2[14];
char tmp3[14];

for(i < 0; i < 3; i++) //should read from the clients and write the integers to an array
{
read(read_from_client, &inst, sizeof(inst));
inst.integer = sum[i];
if(i == 0) //should write the private FIFO names to separate arrays
{
tmp1 = inst.privateFIFO;
}
else if(i == 1)
{
tmp2 = inst.privateFIFO;
}
else
{
tmp3 = inst.privateFIFO;
}
}

inst.sum = sum[0] + sum[1] + sum[2]; //the integer

write(tmp1, &inst, sizeof(inst)); //this should send out the sum to each client via a private array, no idea how to make it work
write(tmp2, &inst, sizeof(inst));
write(tmp3, &inst, sizeof(inst));
}



Sounds like you're trying to do a PING POST system? I worked a ton with LeadMesh, and their ping post system. http://stackoverflow.com/questions/12992653/what-is-a-ping-post
Life?
Manit0u
Profile Blog Joined August 2004
Poland17751 Posts
March 07 2017 23:50 GMT
#17140
On March 08 2017 07:16 ShoCkeyy wrote:
Thaniri, well I'm just receiving a bunch of errors in my console overall about the 404. It just seems like while you're hosting the files on AWS. AWS doesn't have the right to actually access them. I guess double check your permissions, and/or DNS settings.

Also possibly related:
https://github.com/angular/angular-cli/pull/2646


Maybe you'll find some answers for preparing angular for production here: http://blog.mgechev.com/2016/06/26/tree-shaking-angular2-production-build-rollup-javascript/

By the way, what are you using for your web server? Perhaps you could set up an Nginx reverse proxy for serving static assets?
Time is precious. Waste it wisely.
Prev 1 855 856 857 858 859 1032 Next
Please log in or register to reply.
Live Events Refresh
GSL
09:30
2026 Season 2: Ro8 Group B
Zoun vs RogueLIVE!
Maru vs TBD
SHIN vs TBD
Ryung 438
IntoTheiNu 330
CranKy Ducklings SOOP41
Rex18
GSL EN (SOOP)0
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Ryung 437
Rex 21
StarCraft: Brood War
Calm 5095
Hyuk 585
Jaedong 377
Horang2 300
BeSt 273
Pusan 231
Mini 205
ZerO 201
EffOrt 192
Leta 171
[ Show more ]
Soulkey 125
ToSsGirL 109
Last 103
Rush 93
ggaemo 68
Light 60
scan(afreeca) 54
hero 51
Shinee 48
Aegong 48
Mind 45
JYJ 34
Sharp 32
soO 30
Free 21
Nal_rA 20
JulyZerg 15
Bale 15
Terrorterran 11
zelot 11
910 11
sorry 10
Movie 7
Dota 2
XcaliburYe154
canceldota53
Counter-Strike
olofmeister1866
x6flipin225
allub202
kRYSTAL_67
markeloff14
Other Games
summit1g9010
B2W.Neo614
Mew2King141
Pyrionflax90
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 857
Other Games
gamesdonequick550
Counter-Strike
PGL277
StarCraft: Brood War
lovetv 21
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• iHatsuTV 17
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 7
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis1608
• Jankos1136
Upcoming Events
WardiTV Spring Champion…
1h 9m
SKillous vs Strange
Lambo vs Strange
Ryung vs Strange
Lambo vs Ryung
Ryung vs SKillous
Lambo vs SKillous
OSC
8h 9m
Cham vs Percival
ShoWTimE vs Lambo
Krystianer vs sebesdes
Cure vs Babymarine
SKillous vs Arrogfire
Gerald vs MindelVK
goblin vs TBD
Jumy vs HonMonO
Replay Cast
13h 9m
Maestros of the Game
1d 2h
Replay Cast
1d 13h
RSL Revival
1d 20h
Lambo vs SHIN
Solar vs Rogue
herO vs Clem
Maestros of the Game
2 days
IPSL
2 days
ZZZero vs WorsT
Julia vs eOnzErG
BSL
2 days
TerrOr vs Dewalt
Bonyth vs eOnzErG
Replay Cast
2 days
[ Show More ]
RSL Revival
2 days
Maestros of the Game
3 days
OSC
3 days
IPSL
3 days
Dragon vs Artosis
dxtr13 vs Hawk
BSL
3 days
Wardi Open
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
4 days
WardiTV Spring Champion…
5 days
Maestros of the Game
5 days
The PondCast
5 days
Maestros of the Game
6 days
Replay Cast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

ASL Season 21
2026 GSL S1
Heroes Pulsing #1

Ongoing

2026 KK StarCraft Pro League
BSL Season 22
IPSL Spring 2026
KCM Race Survival 2026 Season 2
KK 2v2 League Season 1
Acropolis #4
CSCL: Masked Kings S4
SCTL 2026 Spring
WardiTV Spring 2026
2026 GSL S2
RSL Revival: Season 5
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals

Upcoming

Escore Tournament S2: King of Kings
YSL S3
BSL 22 Non-Korean Championship
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
Bounty Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 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.