• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:40
CEST 11:40
KST 18:40
  • 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: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Chinese SC2 server to reopen; live all-star event in Hangzhou16Weekly Cups (Oct 13-19): Clem Goes for Four0BSL Team A vs Koreans - Sat-Sun 16:00 CET6Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (March 17-23): Clem Bounces Back DreamHack Open 2013 revealed The New Patch Killed Mech!
Tourneys
$1,200 WardiTV October (Oct 21st-31st) SC2's Safe House 2 - October 18 & 19 INu's Battles #13 - ByuN vs Zoun Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers
Brood War
General
Is there anyway to get a private coach? BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ BSL Season 21 OGN to release AI-upscaled StarLeague from Feb 24
Tourneys
300$ 3D!Community Brood War Super Cup #4 [ASL20] Semifinal B Azhi's Colosseum - Anonymous Tournament [Megathread] Daily Proleagues
Strategy
Current Meta Roaring Currents ASL final [I] Funny Protoss Builds/Strategies BW - ajfirecracker Strategy & Training
Other Games
General Games
Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV ZeroSpace Megathread
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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 The Chess Thread Russo-Ukrainian War Thread Men's Fashion Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Series you have seen recently... [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023 Formula 1 Discussion NBA General Discussion
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 Recent Gifted Posts
Blogs
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
The Heroism of Pepe the Fro…
Peanutsc
Rocket League: Traits, Abili…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1084 users

The Big Programming Thread - Page 619

Forum Index > General Forum
Post a Reply
Prev 1 617 618 619 620 621 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.
Prillan
Profile Joined August 2011
Sweden350 Posts
April 21 2015 16:32 GMT
#12361
On April 22 2015 00:08 sabas123 wrote:
Show nested quote +
On April 21 2015 23:51 Zocat wrote:
In that case I would try to get a hold on the obs overlay's source if it's possible.

Other options (probably) exist, but might trigger anti-cheat:

You can read SC2's memory.

You can read the actual video output and compare it against some heuristics (i.e. if displayed image is matching the loading screen it should be a game starting).

You probably can monitor the traffic and look for certain messages being send.

I can't find the source code from the scene switcher, I will ask R1CH if he is so kind to give it to me^^

If not I think I wil ltry to compare the video input as you suggested.

It's a registry value.
HKEY_CURRENT_USER\Software\Razer\Starcraft2

StartModule is set to 0 if you're not in a game and 1 if you are.
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
April 21 2015 16:51 GMT
#12362
On April 22 2015 01:32 Prillan wrote:
Show nested quote +
On April 22 2015 00:08 sabas123 wrote:
On April 21 2015 23:51 Zocat wrote:
In that case I would try to get a hold on the obs overlay's source if it's possible.

Other options (probably) exist, but might trigger anti-cheat:

You can read SC2's memory.

You can read the actual video output and compare it against some heuristics (i.e. if displayed image is matching the loading screen it should be a game starting).

You probably can monitor the traffic and look for certain messages being send.

I can't find the source code from the scene switcher, I will ask R1CH if he is so kind to give it to me^^

If not I think I wil ltry to compare the video input as you suggested.

It's a registry value.
HKEY_CURRENT_USER\Software\Razer\Starcraft2

StartModule is set to 0 if you're not in a game and 1 if you are.

Thank you so much!
The harder it becomes, the more you should focus on the basics.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
April 21 2015 19:17 GMT
#12363
does anybody have some good resources for learning assembly?

The harder it becomes, the more you should focus on the basics.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
April 21 2015 19:22 GMT
#12364
On April 22 2015 04:17 sabas123 wrote:
does anybody have some good resources for learning assembly?



Why would you want to do such a thing? I mean, learning how everything works low level is good, but assembly is very much unnecessary these days.
Acrofales
Profile Joined August 2010
Spain18095 Posts
Last Edited: 2015-04-21 19:27:12
April 21 2015 19:26 GMT
#12365
On April 22 2015 04:22 Morfildur wrote:
Show nested quote +
On April 22 2015 04:17 sabas123 wrote:
does anybody have some good resources for learning assembly?



Why would you want to do such a thing? I mean, learning how everything works low level is good, but assembly is very much unnecessary these days.

Why are you questioning why he wants to learn that? Assembly is far from unnecessary the moment you want to program anything really low level (microcontrollers for instance) or a compiler, assembly is pretty damned necessary.

OT: I don't have a good reference work for you, but I disagree that it is useless.
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
April 21 2015 20:22 GMT
#12366
On April 22 2015 04:17 sabas123 wrote:
does anybody have some good resources for learning assembly?



You need to be more specific than assembly. Are you learning x86, arm, or some other architecture?
I'll always be your shadow and veil your eyes from states of ain soph aur.
sabas123
Profile Blog Joined December 2010
Netherlands3122 Posts
April 21 2015 20:26 GMT
#12367
On April 22 2015 04:26 Acrofales wrote:
Show nested quote +
On April 22 2015 04:22 Morfildur wrote:
On April 22 2015 04:17 sabas123 wrote:
does anybody have some good resources for learning assembly?



Why would you want to do such a thing? I mean, learning how everything works low level is good, but assembly is very much unnecessary these days.

Why are you questioning why he wants to learn that? Assembly is far from unnecessary the moment you want to program anything really low level (microcontrollers for instance) or a compiler, assembly is pretty damned necessary.

OT: I don't have a good reference work for you, but I disagree that it is useless.

Im not planning on writing my own compiler (although it does sound fun), but im more intrested as to what my C code is getting compiled to.
The harder it becomes, the more you should focus on the basics.
waffelz
Profile Blog Joined June 2012
Germany711 Posts
April 21 2015 20:40 GMT
#12368
Just like Blitzkrieg0 mentionend, assembly isnt like c/whatever language. Its the language that your code gets translated to depending on your given architecture. However, there are programms for reverse-engineering, that let you see what happens on that level when running the programm. This however, is most of the time pretty hard to understand. I will check my notes tomorrow though if I find the time. Had to learn assembler 2 semester ago, so I might have some ressource saved.
RIP "The big travis CS degree thread", taken from us too soon | Honourable forum princess, defended by Rebs-approved white knights
Chocolate
Profile Blog Joined December 2010
United States2350 Posts
Last Edited: 2015-04-21 20:43:01
April 21 2015 20:42 GMT
#12369
Does anybody know of a really detailed resource that explains how to decompose a set of multivalued dependencies into fourth normal form? I guess this is more of a CS question than a programming one but I'd really appreciate the help.
avenmarine
Profile Joined May 2012
United Arab Emirates9 Posts
April 21 2015 20:45 GMT
#12370
On April 22 2015 05:26 sabas123 wrote:
Show nested quote +
On April 22 2015 04:26 Acrofales wrote:
On April 22 2015 04:22 Morfildur wrote:
On April 22 2015 04:17 sabas123 wrote:
does anybody have some good resources for learning assembly?



Why would you want to do such a thing? I mean, learning how everything works low level is good, but assembly is very much unnecessary these days.

Why are you questioning why he wants to learn that? Assembly is far from unnecessary the moment you want to program anything really low level (microcontrollers for instance) or a compiler, assembly is pretty damned necessary.

OT: I don't have a good reference work for you, but I disagree that it is useless.

Im not planning on writing my own compiler (although it does sound fun), but im more intrested as to what my C code is getting compiled to.


Use a debugger that can single step, like Ollydbg. Use the inline assembler to set a break point e.g. _asm { int 3 } Then just Google the instructions that you don't know. And it's worth learning the c calling conventions.
Acrofales
Profile Joined August 2010
Spain18095 Posts
Last Edited: 2015-04-21 21:03:06
April 21 2015 20:59 GMT
#12371
You can also play around with http://yasp.me/ which simulates an 8-bit machine. Far simpler than modern x86 or ARM assembly instructions.

In fact, just browse through this stackoverflow thread, lol. A bewildering amount of choices: http://stackoverflow.com/questions/27568/assembler-ide-simulator-for-beginner
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-22 03:37:05
April 22 2015 03:27 GMT
#12372
i can actually list 4 bugs with netbeans

1) alt tab doesnt work sometimes/correctly
2) copy paste randomly stops working and you have to restart
3) rarely it can't clean and build for no reason, i make sure that i dont have any files open *shrug* and i restart and it works again
4) java.net.BindException: Address already in use: JVM_Bind
5) i THINK undo/redo stop working after you do it too much. i once used "undo" (cnt z) to go back for fucking ages just so i could copy the old broken code for my report, then i couldnt redo at all. i was like WTF for so long. its possible i clicked open another project or something by accident tho, i was pretty fucked. but yeah i dont rely on undo as much anymore

wow i just found out that magical "-1" i added to the grid math formula was only required because my inputstreamreader was adding an extra line (which was Null, and which i just had to uncover and remove due to a malformed url being formed during image generation loop) to the urlList. so there was actually no mathematical basis for adding that -1 based on the actual problem data. so basically i really am a genius
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2015-04-22 08:51:13
April 22 2015 05:01 GMT
#12373
+ Show Spoiler +
why am i getting no Alert (or anything else whatsoever) from my ajax response?

serlvet

response.getWriter().write(new Gson().toJson(arrayOfMap));


json string
+ Show Spoiler +

{"data":{"id":"YPekRdk","title":null,"description":null,"datetime":1429674575,"type":"image\/png","animated":false,"width":600,"height":200,"size":85694,"views":0,"bandwidth":0,"vote":null,"favorite":false,"nsfw":null,"section":null,"account_url":null,"account_id":0,"deletehash":"AZi041RwarCFD3I","name":"","link":"http:\/\/i.imgur.com\/YPekRdk.png"},"success":true,"status":200}


ajax
+ Show Spoiler +

[code]

$(document).ready(function () {
$('#button').click(function () {

var array1 = [];

$('#sortable2 .selectedItemImg').each(function () {

array1.push($(this).attr('src'));
});

// alert(array1);

$.ajax({
url: 'generate',
type: 'POST',
contentType: 'text/plain',
dataType: 'text/html',
data: array1.join('\n'),


success: function (data) {

alert("WHY IS THIS NOT DOING ANYTHING?");

}
}
);
});
return false;
}
);
[code]


edit: its ignoring my postResponse i think and defaulting to processRequest?

[image loading]

fixed, i was calling processRequest at the start of my postResponse method, i think its put there by default and i forgot to comment it out 10 years ago


+ Show Spoiler +

why is it on a new line.....WHY IS IT ON A NEW LINE....THERES NO BR....!!!!


ok im done. it took an entire day to convert it to Offline Mode with everything working. jesus christ.

im HOPING that i miscalculated my other (late) assignment deadlines , coz they give you 20 days plus "working days" and i didnt count any "easter holiday" days when i worked it out. so i might have +1 day....

ok ok im waiting for them to email to confirm. but i might have +4 days for the 2 assignments which are otherwise due tomorrow and next day

fuck i just realised since im a day behind from BSing around i have to submit this assignment today

actually i dont, the deadline is friday PM and i just have to get it bound by then, i can go to a local printer instead of the uni one which wants them by today

HOWEVER

after all this i realised that since Late assignments are capped at 40 and since i got less than 40 for the first assignment of the two units, i literally can't pass them even if i do their second assignments by monday.

the office confirmed to me that im able to fail up to two units in order to get permitted to Second Assessment period , so as long as I get 40+ for Project and 40+ for my uncoming exam, i should be OK

so basically i have to just write my Project Report and get it bound and printed by friday PM and i'm in the clear (sort of)

hopefully my head of department will confirm this with me if he can wade through the mess
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
dust7
Profile Joined March 2010
199 Posts
April 22 2015 12:31 GMT
#12374
On April 19 2015 07:46 FFGenerations wrote:
nice dude cool ideal. i dont "follow" on twitch and was surprised when i cudnt find a list of people i subscribe so i end up with everyone on my bookmark bar and just click them from time to time lol

love the sound alert idea

Thanks

The addon is currently being reviewed by Mozilla but you can already use it.

https://addons.mozilla.org/en-US/firefox/addon/streamalert/

I'd very much appreciate any feedback.

Artesimo
Profile Joined February 2015
Germany563 Posts
April 22 2015 15:10 GMT
#12375
Hey folks, again I struggle with something.
I am asked to open a txt file and work with whats in it.
The text file goes like this:


Festival "Big-Bonanza 2015":
Theese are the guests of this years "Big-Bonanza"
Alpha Beta
the hosts are Gamma Delta and Epsilon Zeta
Eta Theta
Iota Kappa
Lambda Mu
[...list of guests goes on like that]


I am asked to store guests and hosts seperately while extracting their first and lastname, however, i can only think of very "ugly" and not really acceptable ways of seperating like reading in each line and sorting stuff out then like:
only 2 seperate words? -> must be an guest
check for "hosts" -> first 4 words starting with a captital letter must be the moderators.

I have no problems in terms of opening the file or reading it in, only the seperation thing I am unable to manage, since guest "Alpha Beta" is weirdly between the first 2 lines and the line which says who the hosts are, whlye the rest of the guests are further down. Also, extracting the hosts from the line without using methods that are easy to fail (like the above stated - what if a host has a middlename? what when the 2 hostnames arent the only thing with capital letters in the line?) or "cheating" (like just searching the line for the host names - if we knew their names, we wouldnt write a programm to get them from the list in the first place).

I also thought about splitting the file, by creating 2 dummy-files, fill one with only the guest names (like putting all lines with length X in file A, and the rest of the in file B) and fill the other with the rest of the lines. This still doesnt solve my problem with the mods as well as it doesnt really seem practical. Also, it would go way beyond what our current state of lnowledge is, while this wouldnt bother me, I assume there is some rather simple method/trick that should be learned here. Unfortunately, we had no programminglecture so far this semester, since so far all got canceled because our prof didnt feel well/got canceled without a notice.
dust7
Profile Joined March 2010
199 Posts
April 22 2015 15:19 GMT
#12376
Do you know regular expressions?
Artesimo
Profile Joined February 2015
Germany563 Posts
April 22 2015 15:24 GMT
#12377
On April 23 2015 00:19 dust7 wrote:
Do you know regular expressions?


No, but thanks for the hint. It seems like a good solution to extract the names of the guests if I understand it correctly.
I fell like it wouldnt help much with the moderators though or am I missing something?
dust7
Profile Joined March 2010
199 Posts
April 22 2015 15:25 GMT
#12378
You should be able to extract all the desired information after reading 1 or 2 tutorials about regex.
Artesimo
Profile Joined February 2015
Germany563 Posts
April 22 2015 15:27 GMT
#12379
Cool, thank you for the fast help.
Ropid
Profile Joined March 2009
Germany3557 Posts
April 22 2015 15:34 GMT
#12380
You might be supposed to learn about your first parser. Do you know about "syntax diagrams"? You could look up a picture of those to see what they are. You could try to draw a graph like that, that could parse your input text here. You can translate that graph into your programming language as functions with recursion without having to think much. The graph would be some sort of blue-print for what your have to write. Regex has limits but is good for the lowest level in your syntax diagram where it's about finding words.
"My goal is to replace my soul with coffee and become immortal."
Prev 1 617 618 619 620 621 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 20m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 205
SortOf 168
mcanning 63
StarCraft: Brood War
hero 1802
Flash 732
firebathero 417
GuemChi 359
Killer 339
Leta 259
Mini 188
Hyun 182
PianO 142
Soma 126
[ Show more ]
ZerO 107
ToSsGirL 76
Aegong 29
Free 25
Sacsri 15
Sharp 15
Rush 7
Bale 5
Mong 1
Dota 2
XaKoH 401
XcaliburYe169
canceldota73
League of Legends
JimRising 578
Counter-Strike
olofmeister1468
shoxiejesuss770
Stewie2K299
Other Games
summit1g7647
singsing798
ceh9571
B2W.Neo380
Hui .150
Mew2King56
Trikslyr13
ZerO(Twitch)6
Organizations
Other Games
gamesdonequick612
Counter-Strike
PGL270
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• LUISG 30
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• iopq 0
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV507
League of Legends
• Jankos1812
• Lourlo755
Upcoming Events
Replay Cast
20m
OSC
6h 20m
Tenacious Turtle Tussle
13h 20m
The PondCast
1d
OSC
1d 2h
WardiTV Invitational
2 days
Online Event
2 days
RSL Revival
2 days
RSL Revival
3 days
WardiTV Invitational
3 days
[ Show More ]
Afreeca Starleague
3 days
Snow vs Soma
Sparkling Tuna Cup
4 days
WardiTV Invitational
4 days
CrankTV Team League
4 days
RSL Revival
4 days
Wardi Open
5 days
CrankTV Team League
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
CrankTV Team League
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
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
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.