Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 512 513 [514] 515 516 ... 796

Author Topic: if self.isCoder(): post() #Programming Thread  (Read 884231 times)

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7695 on: August 23, 2015, 01:02:32 pm »

Here's a sample program from the instructor that shows working with AVX: http://holliday.ecs.fullerton.edu/Cs240/Software/Avxdemonstration/avxmain.asm

I guess you push 2 qword 0's onto the stack and modify them with "movsd [rsp], xmm"? Then you can take the first (second?) qword and pop it into rax. Example is using unpacked doubles, so I'm not sure.
« Last Edit: August 23, 2015, 01:09:07 pm by Bumber »
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7696 on: August 23, 2015, 02:50:33 pm »

Any advice on web scraping for my mod?
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

LoSboccacc

  • Bay Watcher
  • Σὺν Ἀθηνᾷ καὶ χεῖρα κίνει
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7697 on: August 23, 2015, 03:01:33 pm »

http://stackoverflow.com/questions/8448788/google-custom-search-for-images-only < don't web scrape, let google scrape for you, getting the results out is easy enough. how do you need them?
Logged

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7698 on: August 23, 2015, 04:10:22 pm »

Update: You use movq to move a qword to/from xmm registers and memory. Return uses xmm0 instead of rax when you're making use of those registers.

It's all working as expected except the return code is wonky. I set it to pi to test, and now it's bleeding through from previous runs even after I change it. Gonna restart the virtual machine and try some more.
Edit: After restarting my computer, since the VM isn't starting anymore.

Edit II:
It's all working properly. For those who want to see the finished code:
spheredriver.c
sphere.asm
« Last Edit: August 23, 2015, 04:53:51 pm by Bumber »
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

LoSboccacc

  • Bay Watcher
  • Σὺν Ἀθηνᾷ καὶ χεῖρα κίνει
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7699 on: August 23, 2015, 05:02:08 pm »

Check your data alignment might be the cause of your previous issues that seemed random
Logged

itisnotlogical

  • Bay Watcher
  • might be dat boi
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7700 on: August 24, 2015, 01:04:15 am »

Anybody with web experience, is there a simple service that handles paid subscription services and accounts for your site? Like a "Put a link and sign-up form on your page, we'll handle the rest" kinda service?
Logged
This game is Curtain Fire Shooting Game.
Girls do their best now and are preparing. Please watch warmly until it is ready.

Reelya

  • Bay Watcher
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7701 on: August 24, 2015, 03:16:14 am »

I think you want something like OpenID

http://openid.net/get-an-openid/what-is-openid/

No matter what you use, you still need to have your own database to keep track of valid users.
« Last Edit: August 24, 2015, 03:22:38 am by Reelya »
Logged

LoSboccacc

  • Bay Watcher
  • Σὺν Ἀθηνᾷ καὶ χεῖρα κίνει
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7702 on: August 24, 2015, 04:02:41 am »

Anybody with web experience, is there a simple service that handles paid subscription services and accounts for your site? Like a "Put a link and sign-up form on your page, we'll handle the rest" kinda service?


chargebee or stripe fit the bill. chargebee actually has embedded iframes that does exactly that

and I'm building a service that stay on top of paypal where you enter services and handles the rest (including customer communication) but it is far from ready
Logged

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7703 on: August 24, 2015, 04:28:57 am »

http://stackoverflow.com/questions/8448788/google-custom-search-for-images-only < don't web scrape, let google scrape for you, getting the results out is easy enough. how do you need them?

I agree. I want to search for a database of descriptions, filter out the relevant art, accreddit the author of the art and download them. I need it to check for new art periodically.
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

Bumber

  • Bay Watcher
  • REMOVE KOBOLD
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7704 on: August 24, 2015, 11:49:43 am »

Check your data alignment might be the cause of your previous issues that seemed random
I think the issue there was that I completely screwed up my program in memory by messing with the stack. Under the impression that rsp points to the next available spot instead of the current one, I started messing around with stuff like [rsp+8] and [rsp-8]. Then when we get down to "pop rbp", bad stuff. Infinite loop of program messing with the stack and running itself again.
Logged
Reading his name would trigger it. Thinking of him would trigger it. No other circumstances would trigger it- it was strictly related to the concept of Bill Clinton entering the conscious mind.

THE xTROLL FUR SOCKx RUSE WAS A........... DISTACTION        the carp HAVE the wagon

A wizard has turned you into a wagon. This was inevitable (Y/y)?

LoSboccacc

  • Bay Watcher
  • Σὺν Ἀθηνᾷ καὶ χεῖρα κίνει
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7705 on: August 24, 2015, 01:22:55 pm »

http://stackoverflow.com/questions/8448788/google-custom-search-for-images-only < don't web scrape, let google scrape for you, getting the results out is easy enough. how do you need them?

I agree. I want to search for a database of descriptions, filter out the relevant art, accreddit the author of the art and download them. I need it to check for new art periodically.

what if instead of searching internet at large you search here http://dwarffortresswiki.org/index.php?title=Special%3ASearch&profile=images&search=great+one+eyed+cricket&fulltext=Search

I guess it can get a good feedback loop for visibility and stuff

relevant API here https://www.mediawiki.org/wiki/API:Search
Logged

Scoops Novel

  • Bay Watcher
  • Talismanic
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7706 on: August 24, 2015, 02:02:15 pm »

http://stackoverflow.com/questions/8448788/google-custom-search-for-images-only < don't web scrape, let google scrape for you, getting the results out is easy enough. how do you need them?

I agree. I want to search for a database of descriptions, filter out the relevant art, accreddit the author of the art and download them. I need it to check for new art periodically.

what if instead of searching internet at large you search here http://dwarffortresswiki.org/index.php?title=Special%3ASearch&profile=images&search=great+one+eyed+cricket&fulltext=Search

I guess it can get a good feedback loop for visibility and stuff

relevant API here https://www.mediawiki.org/wiki/API:Search

Google custom search let's you bump sites up in priority for scraping, i'll add this in. Know any others, lemme know. Goes to show how fucking good this could be though.
Logged
Reading a thinner book

Arcjolt (useful) Chilly The Endoplasm Jiggles

Hums with potential    a flying minotaur

Cthulufaic

  • Bay Watcher
  • whats a touhou
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7707 on: August 28, 2015, 04:34:20 pm »

Just a quick question to bump this back up, but how can I run a program without having to run it through Visual Studio? (program is in C++ by the by, if that matters in this case)
Logged

Orange Wizard

  • Bay Watcher
  • mou ii yo
    • View Profile
    • S M U G
Re: if self.isCoder(): post() #Programming Thread
« Reply #7708 on: August 28, 2015, 04:47:43 pm »

Use a different compiler?
Logged
Please don't shitpost, it lowers the quality of discourse
Hard science is like a sword, and soft science is like fear. You can use both to equally powerful results, but even if your opponent disbelieve your stabs, they will still die.

Cthulufaic

  • Bay Watcher
  • whats a touhou
    • View Profile
Re: if self.isCoder(): post() #Programming Thread
« Reply #7709 on: August 28, 2015, 04:58:38 pm »

Use a different compiler?
No clue.  But anyway I found the .exe file, which was in the Debug folder for some reason. huh.
Logged
Pages: 1 ... 512 513 [514] 515 516 ... 796