« first day (2392 days earlier)      last day (2778 days later) » 

> My Summer Car is the ultimate car owning, building, fixing, tuning, maintenance AND permadeath life survival simulator. You start the game with hundreds of loose parts and assemble both car and engine.
seems pretty straight forward to me :p
There was this old drag racing game. There was a certain car you could buy and strip down and resell for all of the monies
it's a permadeath jigsaw puzzle with beer
Like life
17:10
Guys, i have a question
i need to wait until a variable is loaded to call a angularjs method controller
0
Q: Pass parameter filled by ajax in ng-init to ng-controller

50l3rI need to pass a parameter to a controller like this: <controller ng-controller="ContactosController" ng-init="getEmpresaContactos(Empresa._EntityId)"> This is the method of the controller: /** * Obtener contactos de empresa * @param {int} Empresa */ $scope.getEmpresaContactos = function(Emp...

anyone help me?
If someone wanted to help you, they would.
Hi all. I'm using Angular2/Typescript and I created a class A with some properties and methods. When I get data back from an AJAX call, I want to cast it to a type of class A. In Typescript, I can use Type hinting, but it isn't actually of type A but it's an Object (Checked that with instanceof) And I can't call any of the methods that are defined in class A. I tried casting it with: <A>obj and obj as A. Any tips?
0
Q: Execute a controller after main controller is executed

iLiveInAPineappleUnderTheSeaI have an index page index.html with its controller indexController. I set some value($scope.ipAddress) in a factory in the indexController which is used by other controllers of the html inside ng-view. When the page is loaded, the indexController is supposed to execute first, set a value in th...

i dont know.. maybe this will help @50l3r
@iLiveInAPineappleUnderTheSea checking.. thanks @iLiveInAPineappleUnderTheSea
sorry if its totally inappropriate @50l3r.
17:14
looks good
@50l3r That either indicates that you lack understanding of the Angular way or you omitted important code
mm i dont undestand
shit i meant correct not current time.. i mean does it show the correct time?
jsfiddle.net/2dysrybL/2
@50l3r ngInit is usually not used liked that and you're passing a variable to the controller method, which you then pass to $watch, which expects a string
So it's unclear what you expect to happen there and what actually is happening. Either way, that's probably not the right approach
You should simply perform your XHR call in a method in the controller, then place your result on the scope
You don't use ngInit at all. You almost never have to use it
i developing an modular app
i have a core controller and secondary controllers
17:20
Quick question: I'm doing a lecture on the difference between ES modules and CommonJS (node) modules. What was weird to you all about ES modules?
if i cant use ng-init how can wait to $scope.Empresas variable in my secondary controller?
@Zirak a lot of people confuse partial import with destructuring
i tried with watch
and are surprised when they export an object but don't get what they expect on the other end
@Mosho Interesting
17:22
@Zirak default caught me out a couple times
@BenFortune Whadya mean?
i tried with timeout and i have a filled variable
If I'm thinking about the right thing. If you were interchanging them, and using export default which would mean require('foo').default
$timeout(function(){
             console.log($scope.Empresa)
        },5000)
is there a good way to prepend an item to a list "in place"? Basically concat in reverse
17:24
@corvid unshift?
@corvid Still concat, but switch the order?
!!> ['a', 'b'].unshift('c');
@corvid 3
desired result of that operation would be ['c', 'a', 'b']
@BenFortune So the polyfill usage in the wild?
17:25
@corvid concat the other way?
@corvid Then what Oliver Salzburg said
You said "in place" so I assumed you meant mutative, if not, then yeah concat
(a,x)=>[x].concat(a)
it's a shame we don't have list comprehensions for stuff like that
or, yknow, lists to comprehend
There's something nicer, actually
17:28
!!> var a = ['a', 'b']; ['c', ...a]
@Zirak ["c","a","b"]
List comprehensions in python are great, I also really like generators but javascript "has those"
python's whole generator thing is so bad
but at least js can do lambdas with >1 expression in them (unlike python)
I'm glad JS added real, C# generators
17:30
@NathanJones That's only a good thing if you involve side effects, which are a bad thing
work said they will buy me a chair of my choosing when I come to canada
nothing in C# is real
@towc Actually everything is except msdn.microsoft.com/en-us/library/…
17:31
@Zirak making scrolling behave like that should be a crime
async generators are super nice, right now I am trying to use them for concurrent downloads limited to n number at a time
I thought of you as a friend @KendallFrey
@Mosho Shut the fuck up look at the chair
It's a throne
yeah pretty intense
but they won't get me that
They said a chair of your choosing!
Petty thiefs
17:32
looks like a bucket seat from a car
@ssube what's the difference?
@NathanJones python doesn't even thread and generators are a total hack
@ssube is that a consequence of the GIL?
lol $5000+ USD
no thanks
17:35
@NathanJones dunno, why is anything in python weird and inconsistent?
@NathanJones yes
the language is made almost entirely of __magic__
@ssube omg I have been saying that forever
no one agrees with me
especially Meta classes
it's all magic names that just happen to be significant
it's like JS before Symbols
17:39
nice
@rlemon Did you go into the advanced settings with the butt warmer?
yes you did!
10/10
@rlemon The only option I'd get there would be the speakers. The rest is basically fluff
You've never lived until your led chair gave you a handie
The mouse area on that thing seems a bit small
17:56
decrease your dpi and you're good to go!
@Xedecimal you mean increase
@monners why are you aussies so crazy
@Loktar @BenFortune @GNi33 what a hilarious video
@SterlingArcher... he's from NZ
kiwis
wait who's from aussieland
monners
yup
17:59
actually @phenomnomnominal just because he might like the song changes

« first day (2392 days earlier)      last day (2778 days later) »