• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:54
CEST 03:54
KST 10:54
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy2GSL CK: More events planned pending crowdfunding3Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
Quebec Clan still alive ? BGE Stara Zagora 2026 cancelled Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info
Tourneys
GSL CK: More events planned pending crowdfunding $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
ASL21 General Discussion so ive been playing broodwar for a week straight. BW General Discussion Gypsy to Korea Pros React To: JaeDong vs Queen
Tourneys
Escore Tournament StarCraft Season 2 [Megathread] Daily Proleagues [ASL21] Ro24 Group F [BSL22] RO32 Group B - Sunday 21:00 CEST
Strategy
Fighting Spirit mining rates Muta micro map competition What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread General RTS Discussion Thread Starcraft Tabletop Miniature Game Nintendo Switch Thread Darkest Dungeon
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread The China Politics Thread European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
ASL S21 English Commentary…
namkraft
StarCraft improvement
iopq
Electronics
mantequilla
Any Web Designers Out there?…
sob3k
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2537 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
Poland17719 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
Spain18258 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
Poland4748 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
Poland17719 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
Poland17719 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
Poland17719 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
The PiG Daily
20:15
Best Games of SC
Rogue vs TriGGeR
Maru vs MaxPax
Rogue vs herO
Clem vs herO
Rogue vs Maru
PiGStarcraft565
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft565
WinterStarcraft250
RuFF_SC2 172
PattyMac 29
ROOTCatZ 22
StarCraft: Brood War
NaDa 45
Dota 2
canceldota352
capcasts226
NeuroSwarm65
LuMiX0
Counter-Strike
taco 630
Super Smash Bros
hungrybox532
C9.Mang0305
Other Games
gofns27496
summit1g13247
JimRising 311
Maynarde105
ViBE98
Hui .90
PPMD36
Mew2King14
minikerr12
Organizations
Other Games
gamesdonequick995
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• RyuSc2 44
• EnkiAlexander 13
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• RayReign 40
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4567
Upcoming Events
CranKy Ducklings
8h 6m
WardiTV Team League
9h 6m
uThermal 2v2 Circuit
13h 6m
IPSL
14h 6m
Hawk vs TBD
StRyKeR vs TBD
BSL
17h 6m
n0maD vs perroflaco
TerrOr vs ZZZero
MadiNho vs WolFix
DragOn vs LancerX
Sparkling Tuna Cup
1d 8h
WardiTV Team League
1d 9h
OSC
1d 11h
BSL
1d 17h
Sterling vs Azhi_Dahaki
Napoleon vs Mazur
Jimin vs Nesh
spx vs Strudel
IPSL
1d 17h
Artosis vs TBD
Napoleon vs TBD
[ Show More ]
Replay Cast
2 days
Wardi Open
2 days
Afreeca Starleague
2 days
Soma vs YSC
Sharp vs sSak
Afreeca Starleague
3 days
Snow vs PianO
hero vs Rain
GSL
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
The PondCast
5 days
Escore
6 days
Liquipedia Results

Completed

Escore Tournament S2: W2
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
StarCraft2 Community Team League 2026 Spring
Nations Cup 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: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 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.