• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:24
CEST 14:24
KST 21:24
  • 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
[ASL19] Finals Recap: Standing Tall2HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Retirement From ASL18Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster14Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation What is Lactobacillus used for? Weekly Cups (June 23-29): Reynor in world title form? StarCraft Mass Recall: SC1 campaigns on SC2 thread How does the number of casters affect your enjoyment of esports?
Tourneys
FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29) WardiTV Mondays SOOPer7s Showmatches 2025 $200 Biweekly - StarCraft Evolution League #1
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
[ASL19] Finals Recap: Standing Tall Flash Announces Retirement From ASL ASL20 Preliminary Maps BW General Discussion BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Things Aren’t Peaceful in Palestine Stop Killing Games - European Citizens Initiative Russo-Ukrainian War Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread Korean Music Discussion
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 675 users

The Big Programming Thread - Page 937

Forum Index > General Forum
Post a Reply
Prev 1 935 936 937 938 939 1031 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.
sc-darkness
Profile Joined August 2017
856 Posts
January 10 2018 23:57 GMT
#18721
On January 09 2018 07:51 travis wrote:
Show nested quote +
On January 09 2018 04:57 dsyxelic wrote:
has anyone here had a situation where they regret rejecting a perfectly decent looking offer because they are in the interview process/final rounds with companies they like better and would be better for their career?

i might have to do that and am not sure what i will regret more, not taking the risk and finishing up with the other companies or not taking a perfectly fine job. cannot delay deadlines anymore and assume no reneging (its a clusterfuck since it's a coop)


The advice I have always seen is to delay as long as possible, while informing the other companies of your situation.


Yeah, don't fall between two stools.
Hanh
Profile Joined June 2016
146 Posts
January 11 2018 00:36 GMT
#18722
On January 11 2018 07:51 WarSame wrote:

Sure, but I'm making mistakes in an unreleased app and asking for feedback. That seems like an ideal security learning, right? The problem is I didn't get specific feedback on security when I originally asked for it. I got scorched for having improper security rather than getting feedback. Then you and a few others gave me good, specific, actionable feedback, which helped quite a bit.

I understand security is difficult. I understand why you need professionals. If this were an enterprise app I would obviously hire professionals, but this is just for learning.

Taking a course is a good recommendation, but I think the time invested to reward of that would be minimal for me.


Well, I guess the point that people want to make here is that security is too hard for this forum. Though I would argue that in your case I don't see any cause for alarm. You are not releasing it and are well aware of the risks involved. But you won't have much feedback here. Like most things, it is not black and white. You want to have just the right level of security without too much inconvenience and cost. Otherwise we would have biometric scanners on every door of our homes. I think a more reasonable recommendation is (if you care about the app's security)
1. learn the pro/con of the different security schemes
2. know how to pick which one is suitable for your requirements
3. never try to invent your own scheme
4. never try to re-implement a known scheme either
tofucake
Profile Blog Joined October 2009
Hyrule19029 Posts
January 11 2018 02:21 GMT
#18723
On January 11 2018 07:51 WarSame wrote:
Show nested quote +
On January 10 2018 20:45 Hanh wrote:
On January 10 2018 13:41 WarSame wrote:
Do you honestly think "go learn security" is even advice at all? It's a recommendation at most. Further, one of the best ways to learn is by doing and making mistakes. I posted my code and asked for feedback. I got none. So thanks for that.


Let's call it a strong recommendation. Making mistakes in security is not a good way to learn. Either:
1. your project doesn't require much security. You mess up and there is no consequence. You didn't learn anything because no one cared enough to attack your system and it seemed to work.
2. your project requires strong security. You mess up and it's a shit storm. Lots of people are angry.

See, ... you can't get it right. It's just too hard. They tell you to learn about security because you should have an idea of how difficult it is. If you are not, then let's hope that what you do does not need to be secure.

Coursera has a course Cryptography I which is quite good. And there are plenty of books too.

Sure, but I'm making mistakes in an unreleased app and asking for feedback. That seems like an ideal security learning, right? The problem is I didn't get specific feedback on security when I originally asked for it. I got scorched for having improper security rather than getting feedback. Then you and a few others gave me good, specific, actionable feedback, which helped quite a bit.

I understand security is difficult. I understand why you need professionals. If this were an enterprise app I would obviously hire professionals, but this is just for learning.

Taking a course is a good recommendation, but I think the time invested to reward of that would be minimal for me.


yes you did, you even ignored the part where we said "don't use SHA-256, it's bad" and used SHA-256
Liquipediaasante sana squash banana
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
January 11 2018 03:13 GMT
#18724
Fair enough. I meant "originally" as in when I actually posted my code/github a few pages ago, though you are right that your link has my first security questions. I recognize "originally" was a misleading word.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
bo1b
Profile Blog Joined August 2012
Australia12814 Posts
January 11 2018 05:39 GMT
#18725
Please go and take mooc on it or something, it's not exactly something you can pick up on a forum.
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
January 11 2018 08:39 GMT
#18726
Man, we have a really annoying client. They want us to optimize our app deployment process because it's taking too long in their opinion (52 seconds on their machines).
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain17967 Posts
January 11 2018 08:57 GMT
#18727
On January 11 2018 17:39 Manit0u wrote:
Man, we have a really annoying client. They want us to optimize our app deployment process because it's taking too long in their opinion (52 seconds on their machines).

Hm. 52 seconds seems long to wait for app deployment. I'd probably complain too. If all their employees open and close the apps a lot, that's a lot of wasted time.

Whether you should pay attention to it depends on whether it can reasonably be sped up, whether your competitors have better speed properties and how much the client is paying you.

If I misunderstood and it has nothing to do with client side load time, but is the time it takes for your devs to deploy updated versions, then lol.
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
Last Edited: 2018-01-11 11:53:40
January 11 2018 11:52 GMT
#18728
On January 11 2018 17:57 Acrofales wrote:
Show nested quote +
On January 11 2018 17:39 Manit0u wrote:
Man, we have a really annoying client. They want us to optimize our app deployment process because it's taking too long in their opinion (52 seconds on their machines).

Hm. 52 seconds seems long to wait for app deployment. I'd probably complain too. If all their employees open and close the apps a lot, that's a lot of wasted time.

Whether you should pay attention to it depends on whether it can reasonably be sped up, whether your competitors have better speed properties and how much the client is paying you.

If I misunderstood and it has nothing to do with client side load time, but is the time it takes for your devs to deploy updated versions, then lol.


It's the time it takes to deploy it to the servers and has nothing to do with client-side load times.

Also, it's pretty hard for us to optimize it any further. On our servers it takes 15 seconds to deploy...
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain17967 Posts
Last Edited: 2018-01-11 13:53:24
January 11 2018 13:52 GMT
#18729
On January 11 2018 20:52 Manit0u wrote:
Show nested quote +
On January 11 2018 17:57 Acrofales wrote:
On January 11 2018 17:39 Manit0u wrote:
Man, we have a really annoying client. They want us to optimize our app deployment process because it's taking too long in their opinion (52 seconds on their machines).

Hm. 52 seconds seems long to wait for app deployment. I'd probably complain too. If all their employees open and close the apps a lot, that's a lot of wasted time.

Whether you should pay attention to it depends on whether it can reasonably be sped up, whether your competitors have better speed properties and how much the client is paying you.

If I misunderstood and it has nothing to do with client side load time, but is the time it takes for your devs to deploy updated versions, then lol.


It's the time it takes to deploy it to the servers and has nothing to do with client-side load times.

Also, it's pretty hard for us to optimize it any further. On our servers it takes 15 seconds to deploy...


Then I don't get it. Why does your client have to deploy often enough that they care about how long it takes?!

In fact, why does your client have to deploy at all? Are they too cheap for a service contract?
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
January 11 2018 14:58 GMT
#18730
On January 11 2018 22:52 Acrofales wrote:
Show nested quote +
On January 11 2018 20:52 Manit0u wrote:
On January 11 2018 17:57 Acrofales wrote:
On January 11 2018 17:39 Manit0u wrote:
Man, we have a really annoying client. They want us to optimize our app deployment process because it's taking too long in their opinion (52 seconds on their machines).

Hm. 52 seconds seems long to wait for app deployment. I'd probably complain too. If all their employees open and close the apps a lot, that's a lot of wasted time.

Whether you should pay attention to it depends on whether it can reasonably be sped up, whether your competitors have better speed properties and how much the client is paying you.

If I misunderstood and it has nothing to do with client side load time, but is the time it takes for your devs to deploy updated versions, then lol.


It's the time it takes to deploy it to the servers and has nothing to do with client-side load times.

Also, it's pretty hard for us to optimize it any further. On our servers it takes 15 seconds to deploy...


Then I don't get it. Why does your client have to deploy often enough that they care about how long it takes?!

In fact, why does your client have to deploy at all? Are they too cheap for a service contract?


They have their own, huge IT department. Supposedly deployment taking this long breaks their Kubernetes in some way.
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4725 Posts
Last Edited: 2018-01-11 16:31:14
January 11 2018 16:26 GMT
#18731
So i have problem with Selenium, running Firefox and Python 3.6.2. I am navigating trough webpage and need to open and select item from menu which is normaly opened by right click. And i have problem scrolling trough that menu.

Both:

install_download = wait.until(EC.element_to_be_clickable((By.XPATH, paths['install_download'])))
install_download.click()
actions = ActionChains(driver)
actions.context_click(install_download)
actions.send_keys(Keys.ARROW_DOWN)
actions.send_keys(Keys.RETURN)
actions.perform()

and

install_download = wait.until(EC.element_to_be_clickable((By.XPATH, paths['install_download'])))
install_download.click()
actions = ActionChains(driver)
actions.context_click(install_download).send_keys(Keys.ARROW_DOWN).send_keys(Keys.RETURN).perform()

Fail. Menu is opened but no move down (or enter) is performed.

While with usage of pyautogui it is succesfull.

install_download = wait.until(EC.element_to_be_clickable((By.XPATH, paths['install_download'])))
install_download.click()
actions = ActionChains(driver)
actions.context_click(install_download)
time.sleep(2)
pyautogui.press('down')
pyautogui.press('enter')

However i cant use pyautogui since it makes a lot of problems when running with screen locked (unless You have fix to that). Pressing down manually on keyboard also works.
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17242 Posts
Last Edited: 2018-01-11 18:45:21
January 11 2018 18:42 GMT
#18732
On January 12 2018 01:26 Silvanel wrote:
So i have problem with Selenium, running Firefox and Python 3.6.2. I am navigating trough webpage and need to open and select item from menu which is normaly opened by right click. And i have problem scrolling trough that menu.

Both:

install_download = wait.until(EC.element_to_be_clickable((By.XPATH, paths['install_download'])))
install_download.click()
actions = ActionChains(driver)
actions.context_click(install_download)
actions.send_keys(Keys.ARROW_DOWN)
actions.send_keys(Keys.RETURN)
actions.perform()

and

install_download = wait.until(EC.element_to_be_clickable((By.XPATH, paths['install_download'])))
install_download.click()
actions = ActionChains(driver)
actions.context_click(install_download).send_keys(Keys.ARROW_DOWN).send_keys(Keys.RETURN).perform()

Fail. Menu is opened but no move down (or enter) is performed.

While with usage of pyautogui it is succesfull.

install_download = wait.until(EC.element_to_be_clickable((By.XPATH, paths['install_download'])))
install_download.click()
actions = ActionChains(driver)
actions.context_click(install_download)
time.sleep(2)
pyautogui.press('down')
pyautogui.press('enter')

However i cant use pyautogui since it makes a lot of problems when running with screen locked (unless You have fix to that). Pressing down manually on keyboard also works.


Have you tried using submit() instead of perform()? You could also try with ENTER instead of RETURN (and I don't know if you need perform after return, another thing to test would be to try arrow_down and then submit).
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4725 Posts
January 11 2018 21:13 GMT
#18733
I did try "ENTER" and also u'\ue007' both dont help here. But havent tried submit(). Will look at it tomorrow.

Also i looked closely at documentation of ActionChains and i suspect this might be some tricky thing releted to focus, will test it.
Pathetic Greta hater.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 12 2018 19:49 GMT
#18734
Javascript.

Can someone explain why this works:
txt.split("\n").map(x => parseInt(x))

But this only works for some lines:
txt.split("\n").map(parseInt)

In fact in this latter case, only the first number is correct, the rest is either NaN or some completely different number, yet still within a factor of 10 or so of the correct number.

I wouldn't even know where to look up the difference between those... I'm not even sure I want to know about this...
If you have a good reason to disagree with the above, please tell me. Thank you.
slmw
Profile Blog Joined October 2010
Finland233 Posts
January 12 2018 21:12 GMT
#18735
It seems parseInt takes two parameters (string, radix). Array.map will pass your function three parameters (value, index, array). The first one, the value of the element, will be used as the string input to parseInt. The second one, the index in the array, will be used as the radix. Therefore all your calls to parseInt will use a different radix and life is hard.
dark.matter
Profile Joined April 2017
177 Posts
January 12 2018 21:15 GMT
#18736
Does anybody know how to identify which unit types are associated to unit ids in any action, such as select or attack move from rep data? I'd like to use screp (https://github.com/icza/screp) for some analysis.
sc-darkness
Profile Joined August 2017
856 Posts
January 12 2018 21:54 GMT
#18737
How many interviews does it take you to get a job offer and how many years of experience do you have?
Excludos
Profile Blog Joined April 2010
Norway8042 Posts
Last Edited: 2018-01-12 22:08:22
January 12 2018 22:06 GMT
#18738
On January 13 2018 06:54 sc-darkness wrote:
How many interviews does it take you to get a job offer and how many years of experience do you have?


Not sure if this was directed to anyone specific but I can answer for myself:

My first job I got dirt lucky on. While I was working part time during my studies, a guy overheard me trying to explain what a dual band router was to a customer, asked me what I was, and handed me a job interview when he found out I was studying CS. Had the job soon after. (I also applied and got an interview for another place, which I ended up not getting)

After quitting that job a year and some months later I applied for like 20 jobs, went to 5-6 job interviews, and got nothing. After a while a buddy from school landed me a job interview for his workplace, which accepted me soon after. So everyone claiming "connections is key" was, at least in my case, 100% true. Knowing someone somewhere makes everything so much easier.

That said, now that I have 3 years of experience, I don't think I would have any trouble landing another job if I was to lose this one. It's most difficult coming fresh out of school
Lmui
Profile Joined November 2010
Canada6213 Posts
January 12 2018 22:11 GMT
#18739
When I was in University, for my internship, I shot out probably 15? resumes to various positions. I got 2 interviews, 1 job offer. I took the job, was pretty happy about where I was working and made a good impression.

After I graduated, I took ~6 months off to relax, then I put in one application back to the same company where I did my internship, and got the job offer about about 3 hours later.

If you have connections, life is easy. Referrals are also helpful, especially if the person the referral comes from is in the same department/role as the applicant.
shz
Profile Blog Joined October 2010
Germany2687 Posts
Last Edited: 2018-01-12 23:37:07
January 12 2018 23:36 GMT
#18740
On January 13 2018 06:12 slmw wrote:
It seems parseInt takes two parameters (string, radix). Array.map will pass your function three parameters (value, index, array). The first one, the value of the element, will be used as the string input to parseInt. The second one, the index in the array, will be used as the radix. Therefore all your calls to parseInt will use a different radix and life is hard.


^ this.

You could do stuff like

const intParser = string => parseInt(string, 10)

const parsedInts = yourArray.map(intParser)


or (if you want to use different radixes at times):


const makeIntParser = radix => string => parseInt(string, radix)

const intParser10 = makeIntParser(10)

const parsedInts = yourArray.map(intParser10)


It can be worth it if you need to reuse this again, otherwise

const parsedInts = yourArray.map(x => parseInt(x,10))


is still concise enough.
Liquipedia
Prev 1 935 936 937 938 939 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 3h 36m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 294
RotterdaM 244
EnDerr 32
ForJumy 21
StarCraft: Brood War
Rain 6094
Sea 4705
Larva 600
EffOrt 532
Mini 455
Pusan 343
BeSt 311
Stork 290
Zeus 262
Last 193
[ Show more ]
Snow 148
Mind 142
ZerO 122
Hyun 112
Rush 87
Light 66
hero 63
JYJ46
Aegong 43
Movie 29
Sharp 23
NaDa 18
sSak 14
Noble 12
Barracks 10
ajuk12(nOOB) 10
scan(afreeca) 9
IntoTheRainbow 8
Icarus 7
SilentControl 7
HiyA 6
Hm[arnc] 3
Britney 0
Stormgate
NightEnD11
Dota 2
Gorgc4210
qojqva1549
BananaSlamJamma537
XcaliburYe421
febbydoto6
League of Legends
singsing2123
Counter-Strike
x6flipin599
markeloff54
Super Smash Bros
Mew2King160
Westballz12
Heroes of the Storm
Khaldor178
Other Games
B2W.Neo740
DeMusliM501
Fuzer 474
hiko260
Pyrionflax252
XaKoH 251
crisheroes215
SortOf93
ArmadaUGS41
ZerO(Twitch)7
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 40
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1178
Upcoming Events
uThermal 2v2 Circuit
3h 36m
OSC
6h 36m
Replay Cast
11h 36m
The PondCast
21h 36m
RSL Revival
21h 36m
ByuN vs Classic
Clem vs Cham
WardiTV European League
1d 3h
Replay Cast
1d 11h
RSL Revival
1d 21h
herO vs SHIN
Reynor vs Cure
WardiTV European League
2 days
FEL
2 days
[ Show More ]
Korean StarCraft League
2 days
CranKy Ducklings
2 days
RSL Revival
2 days
FEL
3 days
Sparkling Tuna Cup
3 days
RSL Revival
3 days
FEL
3 days
BSL: ProLeague
4 days
Dewalt vs Bonyth
Replay Cast
5 days
Replay Cast
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.