« first day (1476 days earlier)      last day (3475 days later) » 

8:00 PM
Anyone on that child element to get the parent element from child?
 
use jquery
 
Hello
how to handle low pay hike ?
@RoelvanUden Happy birthday :)
@LewsTherin Happy Birthday :)
 
low pay hike? as in, a low raise in pay each year?
 
yeah
though i performed well, my team fucked up.
 
Big business evaluates like that often, its hard to overcome.
 
8:05 PM
get a pay raise clause in the contract
 
depending on your circumstances, you could find another job. In my area, its easy to get a new job the same day
 
FYI the order is completely random
@KendallFrey
 
Why are you enumerating resources anyway?
I can't imagine a use case where you'd want to do that
 
I told you a use case
 
Not clearly
I only heard something about localization and German
 
8:11 PM
well, if you didn't want to read what I wrote....
 
I did
It didn't make sense
 
ha reading. and all thats associated with it
 
that stung, kendall.
We used to be as close as butter
check that, as close as fabric on a shirt
check that, as close as kim and kanye
 
@KendallFrey we're using resx to internationalize some of our pages. Do you understand this portion of what i said?
 
Im that flight that you get on, international
 
8:18 PM
hey
that's music
 
@Steve I understand how one would use resources for localization, if that's what you mean
 
okay cool. Our page is a SPA with angular, do you understand this part?
 
I am spa/angular king
 
I have no idea what angular does, but I know what SPA stands for
 
angular calculates the dirivitive of 3^
 
8:20 PM
okay, so during the first hit to our server, we create a viewmodel for our SPA, in which we pass in the localized strings found in the resource file
 
How are you doing localization?
 
internationalization
 
The way I'm familiar with is using satellite assemblies
 
!= localization
 
oh, so what's internationalization then?
 
8:21 PM
:p
yup, so we pass a list of strings into our angular app from mvc which is the localized strings found in the resource files
do you understand that part?
 
ugh so much buzzword
 
@Pheonixblade9 the fact that you created the chatroom tittysprinkles, is awesome
really awesome
 
I think I get it mostly
 
@CharlieBrown yeah i could do that. but i been here for an year and i am comfortable here. Its close from where i live and comfortable timing.
 
okay cool, so now you know the use case :p
 
8:22 PM
I don't understand how you find the localized strings though
@Steve wat...
 
We have one resource file for each locale
 
makes sense
all on one assembly, or in satellites?
 
so, basically what I need is a way for
@KendallFrey no idea
 
Do all the resx's live in one project?
 
@KendallFrey i'm not part of determining how to swap the different resx files
for this part of the solution yes
 
8:24 PM
then what?
you just take a localized resource dictionary and fly with it?
 
because people cant actually fly
duh
 
yep
 
So, each resource should have a name (key) that you can use to find the localized version of that resource. Right?
For example, if you want to display a flag on the website, you would get the resource named "flag"
 
just asked the guy who's doing it, he says its done automatically by ms
its based on the naming convention of the resource file
 
selecting a culture you mean?
 
8:27 PM
yeah, looks at the browsers current culture, and if there is a resource file matching the browsers locale, it pulls that resource file instead of the default one
 
Makes sense
 
and since its a SPA, we're not hitting the server for every resource we need, we're pulling them all in one go and passing them to angular
 
so each image in the resources is not a separate http request? (assuming there are images)
 
nope, not images, text
 
so the text then would be sent as a giant XML doc or something?
 
8:31 PM
load the resource values into a dictionary and store in asp.net mvc viewmodel, and convert that to js with a neat library out there
 
So angular gets the entire resource dictionary in one go, and presumably it remains a dictionary on the angular end?
 
basically yeah
 
@shakthi the only way to get large raises these days is to move companies
 
So your question is only about what happens in angular?
 
my question was, when we iterate over the resource file and put it into a dictionary for the asp.net mvc viewmodel, which order will they be in? the xml order, or the order displayed in the designer
 
8:34 PM
My question is, why does it matter?
 
Question for the masters, is order of PropertyInfo[] guaranteed?
 
I doubt it
 
because one of the things I'm doing is a country drop down list. If the user is in germany, I want to display Germany first in the list, so when I create the german resource file I want to have germany on top, the japanese one to have japan on top
 
So this:
        PropertyInfo[] properties = typeof (T).GetProperties(BindingFlags.Public | BindingFlags.Instance);
might be different from call to call?
 
@Steve So if you have a list containing localized country names, you want to reorder them based on the locale?
 
8:37 PM
Basically, when they have the current culture of germany, whats happening is that it's pulling the german resource file.
 
> The GetProperties method does not return properties in a particular order, such as alphabetical or declaration order. Your code must not depend on the order in which properties are returned, because that order varies.
 
I wanted to declare "germany" as item # 1 in the germany resource file
 
@KendallFrey is the smartest man alive! In this room ... :)
 
but as I found out (and as you just pasted), not possible
 
@Steve I have a feeling it's possible, but not with your approach
@Darek Because I know how to read documentation? pshaw
 
8:38 PM
Oh its possible, I'm going to figure it out with angular
instead of relying on the order of the resource file
 
Because you know where to look in an instant
Thanks as always
 
the documentation is always where to look
@Steve From the perspective of someone with no experience in this situation, I'd give countries an ID, and then add a resource specifying the ID of the first country in the list
Hey, anyone for T4 and TFS? I've determined that unshelving a runtime .tt file does not count as saving it, and won't trigger the T4 preprocessor. How can I remedy this?
 
@KendallFrey they have an ISO code, which i'm using as the 'key'
in the resource file, and a value when converted to a list
 
ah, yes, of course
silly me
 
everything is working, just couldn't get the 'german' name to appear first for the german locale, but I haven't poked it too much with angular
which is my next step
 
 
1 hour later…
10:36 PM
is a AC motor considered an engine?
 
10:46 PM
@NETscape it's a motor
 
11:19 PM
They are trying to develop a magnetize engine though
 
@NETscape a what?
 
11:41 PM
 

« first day (1476 days earlier)      last day (3475 days later) »