|
uncurable mlady posted:what the gently caress sort of magic does postman do that an normal ajax request doesn't do that makes it loving work in postman but spit a bunch of CORS errors otherwise idk what postman is but its probably ignoring cross domain security. this is why people use jsonp for cross domain stuff. altho setting up cors support in webapi isn't hard
|
# ? Feb 11, 2015 04:36 |
|
|
# ? May 10, 2024 04:25 |
|
that's devops stuff
|
# ? Feb 11, 2015 04:41 |
|
you litterrally do like cors=yes in global.asx or w/e and then on all your controllers you do like [cors(*,*,*)]
|
# ? Feb 11, 2015 04:45 |
|
kwinkles posted:the uk is weird man agreed vhdl is trash garbage
|
# ? Feb 11, 2015 05:46 |
|
started as a documentation system for digital designs. it's self-coding documentation, the bizarre world version of self-documenting code
|
# ? Feb 11, 2015 05:47 |
|
Shaggar posted:idk what postman is but its probably ignoring cross domain security. this is why people use jsonp for cross domain stuff. altho setting up cors support in webapi isn't hard Ah yes, jsonp. Also known as "I don't know how to configure my server correctly, so instead, how about anyone using my api has to give me the ability to xss their site at will".
|
# ? Feb 11, 2015 06:00 |
|
what is devops?
|
# ? Feb 11, 2015 06:07 |
|
Flat Daddy posted:what is devops? when you fire the operations guys and tell the developers to deploy their own code and manage all the servers
|
# ? Feb 11, 2015 08:22 |
|
haskell is just ML with a lovely evaluation strategy and a shittier community of imitation category-theory academic bros
|
# ? Feb 11, 2015 09:10 |
|
my stepdads beer posted:when you fire the operations guys and tell the developers to deploy their own code and manage all the servers
|
# ? Feb 11, 2015 09:44 |
|
Shaggar posted:requirejs is what knockoutjs uses by default and also it looks like commonjs is both deprecated and developed by someone at Mozilla so lol commonjs is just the specification it's not actually common.js, it's what most people use with browserify / webpack to bundle their js for client side stuff.
|
# ? Feb 11, 2015 14:02 |
|
oh w/e. I was just gonna use r.js or w/e or maybe just leave it all uncombined lol. lol if ur browsers jit isn't up to the task of optimizing my code.
|
# ? Feb 11, 2015 16:06 |
|
it's not about the JIT, it's about network connection scheduling. but yes, it's not a big deal until you're at the performance tuning stage, and then you can just do whatever YSlow tells you.
|
# ? Feb 11, 2015 16:25 |
|
Im loading libs async as needed instead of all at once so idk how much of a problem it would be.
|
# ? Feb 11, 2015 16:27 |
|
if you're doing it as needed, it just affects the delay between "want to do X" and "have started doing X". it's an easy processing step to add later, I think you're making a Good Life Choice by ignoring it for now.
|
# ? Feb 11, 2015 16:42 |
|
Just a friendly reminder that the original Roller Coaster Tycoon was written by a single programmer entirely in x86 assembly. The hell are YOU doing with your life?
|
# ? Feb 12, 2015 16:59 |
|
Necc0 posted:Just a friendly reminder that the original Roller Coaster Tycoon was written by a single programmer entirely in x86 assembly. The hell are YOU doing with your life? he worked on the game engine continuously from 1993 to 1999 i bet i could deliver a pretty cool game written entirely in assembly if you gave me six years without distraction
|
# ? Feb 12, 2015 17:05 |
|
I don't think I could pay attention to one thing for 6 years by myself.
|
# ? Feb 12, 2015 17:08 |
|
Subjunctive posted:I don't think I could pay attention to one thing for 6 years by myself. but enough about your wife haha
|
# ? Feb 12, 2015 17:10 |
|
Notorious b.s.d. posted:he worked on the game engine continuously from 1993 to 1999 also he went around the world riding rollercoasters so he could work out how to extrapolate the fun/excite/intesity ratings
|
# ? Feb 12, 2015 17:13 |
|
Chill Callahan posted:but enough about your wife haha too soon.
|
# ? Feb 12, 2015 17:16 |
|
ok so i'm taking a cs 101 class with python and i have a really basic question (i.e. this isn't a trick question or something) that i've been unable to grasp in some of the examples, we import math, then do sqrt(x) and in other examples we import math then do math.sqrt(x) and i don't get the difference (we're starting to import modules, so i'm confused in general, not just about sqrt())
|
# ? Feb 12, 2015 19:02 |
|
A Wheezy Steampunk posted:ok so i'm taking a cs 101 class with python and i have a really basic question (i.e. this isn't a trick question or something) that i've been unable to grasp import math one var, math is introduced. if you do print(math) you get a module. you can get the bits in the module like any object, math.sqrt from math import sqrt one var, "sqrt" is introduced, if you do print(sqrt), you get a function, you can now call sqrt() on things from math import * this dumps everything in math into new local variables, so math will be there too
|
# ? Feb 12, 2015 19:09 |
|
someone will be able to explain better, but there are a couple of different ways to import "import math" makes the whole math library available and you need to prepend methods from it with "math" "from math import sqrt" just makes the sqrt function available but with no prepending
|
# ? Feb 12, 2015 19:09 |
|
A Wheezy Steampunk posted:ok so i'm taking a cs 101 class with python and i have a really basic question (i.e. this isn't a trick question or something) that i've been unable to grasp In python you can import certain functions from a module via the from keyword e.g. from math import sqrt. Now sqrt is a regular identifier in your scope. See the python tutorial on modules.
|
# ? Feb 12, 2015 19:10 |
|
thaaat's what i wasn't getting, ty all so if you import a whole module, you have to be specific when you call it? but if you import just a particular thing you don't have to be specific? i guess i don't get the difference between "import math" and "from math import *", why don't they do the same thing? (like i said it's a cs 101 class so i'm a big dumb idiot)
|
# ? Feb 12, 2015 19:57 |
|
A Wheezy Steampunk posted:thaaat's what i wasn't getting, ty all "from math import *" brings everything into your current namespace. if you have some other function named sqrt(), it's going to get wiped out
|
# ? Feb 12, 2015 19:59 |
|
prefect posted:"from math import *" brings everything into your current namespace. if you have some other function named sqrt(), it's going to get wiped out but if you did "import math" you could have your sqrt() and math.sqrt() together? neat, thanks all
|
# ? Feb 12, 2015 20:00 |
|
Notorious b.s.d. posted:he worked on the game engine continuously from 1993 to 1999 lol
|
# ? Feb 12, 2015 20:47 |
|
A Wheezy Steampunk posted:but if you did "import math" you could have your sqrt() and math.sqrt() together? yea
|
# ? Feb 12, 2015 20:47 |
|
A Wheezy Steampunk posted:but if you did "import math" you could have your sqrt() and math.sqrt() together? also, you won't always have functions that obviously came from some module. sqrt is pretty clearly coming from math, but verbNoun() could be in some other random-rear end module, and using the module name to access it will make the code easier to read in a week, when you've forgotten what you were doing at the time
|
# ? Feb 12, 2015 20:52 |
|
Notorious b.s.d. posted:he worked on the game engine continuously from 1993 to 1999 the alternative is losethos, so it's a pretty dumb metric
|
# ? Feb 12, 2015 21:08 |
|
prefect posted:also, you won't always have functions that obviously came from some module. sqrt is pretty clearly coming from math, but verbNoun() could be in some other random-rear end module, and using the module name to access it will make the code easier to read in a week, when you've forgotten what you were doing at the time oh that makes sense so "from module import *" is not a great choice in most situations?
|
# ? Feb 12, 2015 21:22 |
|
a friend of mine, who works on a C# program, has been asked to expose scripting functionality. What's the current state of .net REPLs? The requirements are that "very advanced users" can write and edit their own scripts. IDK would it be easier to expose a python or matlab API or something? He's obsessed with the idea of using the F# console...
|
# ? Feb 12, 2015 21:23 |
|
A Wheezy Steampunk posted:oh that makes sense I once worked with a codebase that used "from import *" heavily. it's bad enough when you're only using it in a few places, but it effectively applies recursively - running "from foo import *" also imports everything that foo imported... there is probably some situation where "from ... import *" is appropriate, but I can't really think of one off the top of my head.
|
# ? Feb 12, 2015 21:29 |
|
gonadic io posted:a friend of mine, who works on a C# program, has been asked to expose scripting functionality. What's the current state of .net REPLs? The requirements are that "very advanced users" can write and edit their own scripts. the f# repl is a Good Choice if you have the freedom to inflict f# on your users
|
# ? Feb 12, 2015 21:33 |
|
PleasingFungus posted:I once worked with a codebase that used "from import *" heavily. ouch!!
|
# ? Feb 12, 2015 21:35 |
|
like the alternative is hooking up bindings to w/e other language, f# will interop with no effort you could probably use ironpython or whatever dumb plang clr port you want but meh
|
# ? Feb 12, 2015 21:36 |
|
been trying to optimize a 2d water algorithm for almost 3 weeks, and did all sorts of crazy things to speed it up, but somehow fails terribly on wave propagation when something hits the water. i'm a terrible programmer
|
# ? Feb 12, 2015 21:39 |
|
|
# ? May 10, 2024 04:25 |
|
Notorious b.s.d. posted:when i was in college the shared build server was literally the BOFH's desktop, physically underneath his desk a few years ago paradox's forums server was a Pentium 833 sitting under Johan's desk and it crashed whenever they announced anything
|
# ? Feb 12, 2015 21:43 |