• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 15:59
CET 21:59
KST 05:59
  • 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: Winners2Intel 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
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!20$5,000+ WardiTV 2025 Championship5[BSL21] RO32 Group Stage3Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! RotterdaM "Serral is the GOAT, and it's not close" Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win 5.0.15 Patch Balance Hotfix (2025-10-8)
Tourneys
$5,000+ WardiTV 2025 Championship Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond) $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review [BSL21] RO32 Group Stage Practice Partners (Official) [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[Megathread] Daily Proleagues [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION
Strategy
Current Meta How to stay on top of macro? PvZ map balance Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Dawn of War IV ZeroSpace Megathread General RTS Discussion 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 Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 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
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Career Paths and Skills for …
TrAiDoS
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1233 users

The Big Programming Thread - Page 883

Forum Index > General Forum
Post a Reply
Prev 1 881 882 883 884 885 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.
sundersoft
Profile Joined November 2011
91 Posts
May 17 2017 22:15 GMT
#17641
Before the setjmp function is called, the previous values of the stack pointer, instruction pointer, and other registers should have been stored on the stack, so you can read those in the setjmp function (e.g. by declaring an array of ints and accessing it out of range) and store them into global variables.

In the longjmp function, you can read the global variables and write to the same locations in the stack before returning. When the longjmp function returns, it will load the overwritten values in the stack into the registers.

To get this to work, you'd have to look up the specification for whatever calling convention you're using to know which parts of the stack to read and write.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-05-17 23:39:17
May 17 2017 23:38 GMT
#17642
--- Nuked ---
Hanh
Profile Joined June 2016
146 Posts
May 18 2017 00:13 GMT
#17643
On May 18 2017 08:38 Nesserev wrote:
Btw, I think you have a paradox: "How to store the original stack pointer on the stack if you first have to change the stack pointer to store it", no?


You don't need to move the sp to write into the stack.
sw $sp, 4($sp)
would do the trick but it's slow and unnecessary since the compiler can keep track of the stack depth and use add/sub instead.
dsyxelic
Profile Joined May 2010
United States1417 Posts
May 18 2017 22:01 GMT
#17644
so I went to the TA and he basically looked into the assignment portal or whatever and found one kid who handed it in so far. He looked through the answer and told me that I was pretty much on the right track except I needed to also change the frame pointer and add in dummy functions and __main() - no idea why, to get it to work. After I tried and it still didnt work properly, he told me just to double check my code and that it might work on the mips simulator even if it doesnt work after compiling in c. if I still can't get it he said to just hand it in and I"ll get most of the credit for figuring out the logic of the code.

so I'm still just as confused as before lol. but apparently he ran the kid's code and it worked. this class sucks
TL/SKT
Hanh
Profile Joined June 2016
146 Posts
May 18 2017 23:54 GMT
#17645
Well, you can't move the stack pointer but you can move the stack content. So I would try to copy the content of the stack down from the setjump point to the longjump point. Obviously you wouldn't really be unwinding the stack and it wastes stack space but I think it fits the requirements of this assignment.
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
May 18 2017 23:55 GMT
#17646
Make sure to post a solution here if it'll be available after it's all said and done. It got me curious...
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
May 19 2017 00:48 GMT
#17647
Maybe one of you can explain it to me.

So you record a pointer to setjmp, and at longjmp you copy the content all the way to setjmp

so that's cool and all but you have values on the stack and how do you know what they correspond to?

If you had variables assigned to values, the stack is going to have those values on it but you won't know what the values mean.
Hanh
Profile Joined June 2016
146 Posts
May 19 2017 02:35 GMT
#17648
That doesn't matter as long as you don't have pointers into the stack. Only thing you need to fix up are the frame pointers and you can do that since they form a linked list.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2017-05-19 18:30:17
May 19 2017 18:21 GMT
#17649
Question on Microsoft Access. I'm confused as hell as to why this isn't working.

I have two simple queries:
select * from TableA left join TableB on TableB.ColumnA = TableA.ColumnA

Returns all rows from TableA.

Then:
select * from TableA left join TableB on TableB.ColumnB = TableA.ColumnB

Returns only rows from TableA where ColumnB is the same.

The first query works like a true left join, giving me all rows from TableA. The second, despite that I've clearly indicated "LEFT", acts like an inner and only gives me matching rows. I cannot fathom why it would do this, why the left join would work as a left when joining on one column but as an inner when joining on another.

I've googled and couldn't really find anything. Was wondering if anyone has seen this before.

Edit: I take that back. I dug a bit more into it and found this: http://allenbrowne.com/bug-10.html. The example I used above is just an example, but what I'm actually doing is joining together two queries, and in one of the queries I have a literal value. Turns out that any join on a literal value will act as an inner join. *sigh*
Acrofales
Profile Joined August 2010
Spain18108 Posts
May 19 2017 18:28 GMT
#17650
My guess is a typo in your query. The documentation says Ms Access has a left join and documents that it works as you'd expect.
Thaniri
Profile Blog Joined March 2011
1264 Posts
May 23 2017 02:11 GMT
#17651
I want to make a program that grabs the css of any given page and pulls certain information out of it. I can easily make a program in the language of my choosing that opens a css file and parses through it, but what should I use that would do that through my browser?

I was thinking something like a chrome extension that does the equivalent of pressing F12, finding the css source, sending it to be processed, and spitting out a result.

Anyone have any advice on pointing me into the correct direction with this idea?
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2017-05-23 02:45:33
May 23 2017 02:45 GMT
#17652
--- Nuked ---
Hanh
Profile Joined June 2016
146 Posts
May 23 2017 07:05 GMT
#17653
On May 23 2017 11:45 Nesserev wrote:

EDIT: don't know what the alternatives for firefox et al. are, but your options should be similar, no?


It is in your signature...
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
May 23 2017 16:56 GMT
#17654
--- Nuked ---
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
May 23 2017 18:10 GMT
#17655
Also I stole your idea, didn't realise how bad KMD thread was :D
AdministratorTwitter: @R1CH_TL
TL+ Member
aRyuujin
Profile Blog Joined January 2011
United States5049 Posts
May 24 2017 01:28 GMT
#17656
On May 17 2017 05:17 Djagulingu wrote:
I'm currently going through tutorials of elixir and phoenix framework and I have been reading it like "Oh shit" "Oh it's nice" "Oh shit this is nice" "Damn this is good" "Hell yeah, this shit is awesome" "Oh my god" "Oh wow" and such. Shit is so easy to learn too. Does anyone here have real world production experience of elixir and phoenix?


i have a little bit of experience with erlang.. what is the advantage of elixir? (In my experience erlang is pretty good at some very specific tasks, basically working with distributed systems, and I do prefer functional programming)
can i get my estro logo back pls
Manit0u
Profile Blog Joined August 2004
Poland17420 Posts
May 24 2017 03:05 GMT
#17657
Poll: Which is it?

React (6)
 
75%

Vue (2)
 
25%

8 total votes

Your vote: Which is it?

(Vote): React
(Vote): Vue


Time is precious. Waste it wisely.
tofucake
Profile Blog Joined October 2009
Hyrule19151 Posts
May 24 2017 11:41 GMT
#17658
I really like Vue, but all the jobs are react
Liquipediaasante sana squash banana
TMG26
Profile Joined July 2012
Portugal2017 Posts
May 24 2017 13:21 GMT
#17659
It's front end, who cares?
Supporter of the situational Blink Dagger on Storm.
tofucake
Profile Blog Joined October 2009
Hyrule19151 Posts
May 24 2017 13:41 GMT
#17660
Employers
Liquipediaasante sana squash banana
Prev 1 881 882 883 884 885 1032 Next
Please log in or register to reply.
Live Events Refresh
LAN Event
18:00
Day 3: Ursa 2v2, FFA
SteadfastSC393
IndyStarCraft 177
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 499
SteadfastSC 393
White-Ra 211
IndyStarCraft 177
UpATreeSC 142
ProTech125
Railgan 67
ROOTCatZ 43
StarCraft: Brood War
Shuttle 460
Bonyth 69
ivOry 14
Dota 2
Dendi985
Counter-Strike
pashabiceps1182
Foxcn163
Super Smash Bros
Liquid`Ken9
Heroes of the Storm
Liquid`Hasu516
Other Games
Beastyqt728
fl0m665
Mlord452
FrodaN427
shahzam403
KnowMe185
Pyrionflax168
C9.Mang0125
ArmadaUGS115
ToD77
Mew2King74
Trikslyr53
OptimusSC21
Organizations
Counter-Strike
PGL192
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Adnapsc2 11
• Reevou 9
• Dystopia_ 0
• Kozan
• sooper7s
• AfreecaTV YouTube
• Migwel
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 3055
• Ler92
League of Legends
• TFBlade886
Other Games
• imaqtpie1303
• WagamamaTV341
• Scarra290
• Shiphtur221
Upcoming Events
OSC
1h 1m
Replay Cast
2h 1m
OSC
15h 1m
LAN Event
18h 1m
Korean StarCraft League
1d 6h
CranKy Ducklings
1d 13h
LAN Event
1d 18h
IPSL
1d 21h
dxtr13 vs OldBoy
Napoleon vs Doodle
BSL 21
1d 23h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
WardiTV Korean Royale
2 days
LAN Event
2 days
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
3 days
Wardi Open
3 days
WardiTV Korean Royale
4 days
Replay Cast
5 days
Kung Fu Cup
5 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
6 days
The PondCast
6 days
RSL Revival
6 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
6 days
WardiTV Korean Royale
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
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
Esports World Cup 2025

Upcoming

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