• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 04:36
CET 10:36
KST 18:36
  • 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
TL.net Map Contest #21: Winners11Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation4Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
[TLMC] Fall/Winter 2025 Ladder Map Rotation Mech is the composition that needs teleportation t Weekly Cups (Nov 3-9): Clem Conquers in Canada Craziest Micro Moments Of All Time? SC: Evo Complete - Ranked Ladder OPEN ALPHA
Tourneys
Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship Merivale 8 Open - LAN - Stellar Fest
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
Rapidtags: The Ultimate Tool for Hashtag and Keywo Terran 1:35 12 Gas Optimization FlaSh on: Biggest Problem With SnOw's Playstyle BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET [ASL20] Grand Finals [Megathread] Daily Proleagues
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Should offensive tower rushing be viable in RTS games? Path of Exile 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
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine Canadian Politics Mega-thread The Games Industry And ATVI
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion! Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1222 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
Poland17428 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
Spain18114 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
Poland4733 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
Poland17428 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
Poland17428 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
Poland17428 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
Replay Cast
09:00
WardiTV Mondays #59
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 286
StarCraft: Brood War
Britney 49000
Rain 2987
Hyuk 2893
Soma 360
Backho 327
Rush 213
Pusan 117
JulyZerg 53
sSak 31
zelot 14
[ Show more ]
NaDa 12
Noble 11
ZerO 10
Hm[arnc] 8
Terrorterran 7
Dota 2
XaKoH 419
XcaliburYe139
Counter-Strike
fl0m1798
olofmeister680
shoxiejesuss411
oskar63
Super Smash Bros
Mew2King237
Other Games
ceh9502
Happy244
Pyrionflax116
ZerO(Twitch)4
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH257
• LUISG 21
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1347
• Stunt515
Upcoming Events
OSC
1h 55m
Kung Fu Cup
2h 25m
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
13h 25m
The PondCast
1d
RSL Revival
1d
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
1d 2h
WardiTV Korean Royale
1d 2h
PiGosaur Monday
1d 15h
RSL Revival
2 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
2 days
[ Show More ]
CranKy Ducklings
3 days
RSL Revival
3 days
herO vs Gerald
ByuN vs SHIN
Kung Fu Cup
3 days
IPSL
3 days
ZZZero vs rasowy
Napoleon vs KameZerg
BSL 21
3 days
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
4 days
RSL Revival
4 days
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
4 days
WardiTV Korean Royale
4 days
BSL 21
4 days
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
4 days
Dewalt vs WolFix
eOnzErG vs Bonyth
Wardi Open
5 days
Monday Night Weeklies
5 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

Proleague 2025-11-07
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.