• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:58
CET 09:58
KST 17:58
  • 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
Behind the Blue - Team Liquid History Book16Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8herO wins SC2 All-Star Invitational14
Community News
ACS replaced by "ASL Season Open" - Starts 21/0222LiuLi Cup: 2025 Grand Finals (Feb 10-16)37Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2Nexon's StarCraft game could be FPS, led by UMS maker12PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)15
StarCraft 2
General
Nexon's StarCraft game could be FPS, led by UMS maker Behind the Blue - Team Liquid History Book How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Terran Scanner Sweep Weekly Cups (Jan 12-18): herO, MaxPax, Solar win
Tourneys
$5,000 WardiTV Winter Championship 2026 StarCraft Evolution League (SC Evo Biweekly) LiuLi Cup: 2025 Grand Finals (Feb 10-16) SC2 AI Tournament 2026 PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Map Editor closed ? [A] Starcraft Sound Mod
External Content
Mutation # 513 Attrition Warfare The PondCast: SC2 News & Results Mutation # 512 Overclocked Mutation # 511 Temple of Rebirth
Brood War
General
BW General Discussion Which units you wish saw more use in the game? TvZ is the most complete match up Ladder maps - how we can make blizz update them? ACS replaced by "ASL Season Open" - Starts 21/02
Tourneys
[Megathread] Daily Proleagues Escore Tournament StarCraft Season 1 Small VOD Thread 2.0 KCM Race Survival 2026 Season 1
Strategy
Fighting Spirit mining rates Zealot bombing is no longer popular? Simple Questions, Simple Answers Current Meta
Other Games
General Games
Diablo 2 thread Path of Exile ZeroSpace Megathread Nintendo Switch Thread Battle Aces/David Kim RTS Megathread
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
TL Mafia Community Thread Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Ask and answer stupid questions here! Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Req][Books] Good Fantasy/SciFi books [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Search For Meaning in Vi…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2639 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
Poland17662 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
Spain18216 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
Poland4742 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
Poland17662 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
Poland17662 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?
plasmidghost
Profile Blog Joined April 2011
Belgium16168 Posts
March 07 2017 21:46 GMT
#17136
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));
}
Yugoslavia will always live on in my heart
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
Poland17662 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
Next event in 2m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech135
StarCraft: Brood War
Sea 1171
Bisu 181
ToSsGirL 152
Shinee 96
Sharp 45
Hm[arnc] 29
Noble 20
NotJumperer 1
Dota 2
XaKoH 424
NeuroSwarm137
League of Legends
JimRising 646
Counter-Strike
olofmeister2346
kRYSTAL_31
Super Smash Bros
Mew2King108
Other Games
summit1g7994
C9.Mang0704
ceh9367
Happy183
crisheroes125
Organizations
Counter-Strike
PGL12225
Other Games
gamesdonequick843
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• Sammyuel 28
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt1044
• HappyZerGling118
Upcoming Events
Replay Cast
2m
Wardi Open
3h 2m
Monday Night Weeklies
8h 2m
OSC
15h 2m
WardiTV Winter Champion…
1d 3h
PiGosaur Cup
1d 16h
Replay Cast
2 days
WardiTV Winter Champion…
2 days
Replay Cast
2 days
PiG Sty Festival
3 days
[ Show More ]
The PondCast
3 days
KCM Race Survival
3 days
WardiTV Winter Champion…
3 days
Replay Cast
3 days
PiG Sty Festival
4 days
Epic.LAN
4 days
Replay Cast
4 days
PiG Sty Festival
5 days
CranKy Ducklings
5 days
Epic.LAN
5 days
Replay Cast
5 days
PiG Sty Festival
6 days
Sparkling Tuna Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2026-02-14
LiuLi Cup: 2025 Grand Finals
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Nations Cup 2026
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025

Upcoming

Escore Tournament S1: King of Kings
[S:21] ASL SEASON OPEN 1st Round
[S:21] ASL SEASON OPEN 1st Round Qualifier
[S:21] ASL SEASON OPEN 2nd Round
[S:21] ASL SEASON OPEN 2nd Round Qualifier
Acropolis #4
IPSL Spring 2026
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
WardiTV Winter 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
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.