• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:36
CET 18:36
KST 02: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
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation13Weekly 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 RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview TL.net Map Contest #21: Winners
Tourneys
RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
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
FlaSh on: Biggest Problem With SnOw's Playstyle BGH Auto Balance -> http://bghmmr.eu/ What happened to TvZ on Retro? SnOw's ASL S20 Finals Review BW General Discussion
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
PvZ map balance Current Meta Simple Questions, Simple Answers How to stay on top of macro?
Other Games
General Games
Clair Obscur - Expedition 33 Should offensive tower rushing be viable in RTS games? Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread
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 Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread 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: 1860 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
Poland17433 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
Spain18119 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
Poland17433 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
Poland17433 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
Poland17433 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 2h 24m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
TKL 388
IndyStarCraft 142
SteadfastSC 138
Railgan 71
BRAT_OK 50
MindelVK 19
Vindicta 2
StarCraft: Brood War
Britney 23926
Horang2 1496
GuemChi 637
firebathero 184
Rush 113
Dewaltoss 64
Last 63
Mong 36
yabsab 33
zelot 24
[ Show more ]
scan(afreeca) 18
Dota 2
Gorgc6071
qojqva2477
League of Legends
Reynor80
Counter-Strike
fl0m812
Heroes of the Storm
Khaldor596
Other Games
RotterdaM354
Organizations
Dota 2
PGL Dota 2 - Main Stream9051
PGL Dota 2 - Secondary Stream1597
Other Games
EGCTV1110
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Reevou 12
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 12
• FirePhoenix11
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• Ler74
Other Games
• WagamamaTV464
• Shiphtur210
• imaqtpie66
Upcoming Events
BSL 21
2h 24m
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
2h 24m
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
5h 24m
Wardi Open
18h 24m
Monday Night Weeklies
23h 24m
Replay Cast
1d 5h
WardiTV Korean Royale
1d 18h
BSL: GosuLeague
2 days
The PondCast
2 days
Replay Cast
3 days
[ Show More ]
RSL Revival
3 days
BSL: GosuLeague
4 days
RSL Revival
4 days
WardiTV Korean Royale
4 days
RSL Revival
5 days
WardiTV Korean Royale
5 days
IPSL
5 days
Julia vs Artosis
JDConan vs DragOn
RSL Revival
6 days
Wardi Open
6 days
Liquipedia Results

Completed

Proleague 2025-11-14
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
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
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

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
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.