« first day (1354 days earlier)      last day (3820 days later) » 
00:00 - 20:0020:00 - 00:00

20:00
guys
what is .raw?
hallo
Some game loads sprites, but the sprites are ending with .raw
A camera raw image file contains minimally processed data from the image sensor of either a digital camera, image scanner, or motion picture film scanner. Raw files are named so because they are not yet processed and therefore are not ready to be printed or edited with a bitmap graphics editor. Normally, the image is processed by a raw converter in a wide-gamut internal colorspace where precise adjustments can be made before conversion to a "positive" file format such as TIFF or JPEG for storage, printing, or further manipulation, which often encodes the image in a device-dependent co...
likely the worst image format for sprites
How can I open that image?
20:21
@TravisJ You know a good way to get the client file path from jQuery?
@ton.yeung raw syn pure, unadulterated, hard core, serious, no kidding, no shit
@BenBeri look at that wikipedia link under Software support
Its possible that the raw file has some encryption that I would need to see how the game loads it in orderto see it?
most likely not
all you need is love
hi all
how to enable CORS globally for MVC(not webApi) apps?
20:41
I have a business idea but no money to implement it.
Anyone to gimme the money?
rubles are OK?
Equivalent to its euro counterpart sure
Any idea why this doesn't work?
        $(function () {

            $(<%= flUpload.ClientID %>).change(function () {
                var path = $(this).val();
                console.log(path);
                $(<%= hdUploadValue.ClientID %>).val(path);
            });
        });
Doesn't work how?
fucking hell, this game is stressing me out
20:50
@LewsTherin It doesn't post anything to the console.
Probably because the event callback isn't executed
@LewsTherin ...?
How can I force it to execute?
What is a Delta query?
@Greg Do an alert in change.. before var path
@LewsTherin Nothing.
20:53
Are you sure: $(<%= flUpload.ClientID %>). is right?
Try $("#elementid")
Or $(".class")
@LewsTherin Yeah, that grabs an ASP.NET control.
If clientid is the id for the fileupload element then prepend an #
@Greg Oh..?
Mmn
As a javascript object?
Hm, wtf...
It still doesn't work.
Show new code?
        $(function () {

            $("#MainContent_fuUpload").find("file").change(function () {
                alert('Trigger...')
                var path = $(this).val();
                console.log(path);
                $("#MainContent_hdUploadValue").val(path);
            });
        });
20:56
.find("file")
that would have been a lot longer in the days before Jquery :D
What does that do?
@LewsTherin finds an elemnt and attaches a change event handler to it
Mmn its been a while but I didn't think there was a <file> element under a fileupload element?
its broken though
20:58
What is?
there's input type="file" but you're right ... i dont think theres an element name "file" in the html spec
console.log also doesn't work in ie unless the debug tools are open
that would result in an exception
Ah, I don't he is coding for IE. Perhaps Greg is
also the alert ? i guess that a matching test to determine when the event is raised
Fuuk..2 more fucking days for Naruto
@Greg Remove the .find(..)
   $(function () {

            $("#MainContent_fuUpload").change(function () {
                alert('Trigger...')
                var path = $(this).val();
                console.log(path);
                $("#MainContent_hdUploadValue").val(path);
            });
        });
@Austinh100 I just loaded the raw file in like 3 programs htat load raw files, and it doesn't know it, it just doesn't render it, failing. why?
21:05
@LewsTherin Still nothing.
Weird weird
@greg show us the markup for this
10
A: Upload files using input type="file" field with .change() event not always firing in IE and Chrome

dknaackDescription This happens because the value of the input field (the selected filepath) does not change if you select the same file again. You can set the value in the onChange() event to an empty string and submit your form only if the value is not empty. Have a look at my sample and this jsFidd...

@Wardy Markup for what?
21:08
the html code that this javascript refers to
                    <asp:HiddenField ID="hdUploadValue" runat="server" />
                    <input type="file" id="flUpload" runat="server" class="flUpload" />
Ah that's why
(function () {

            $("#flUpload").change(function () {
                alert('Trigger...')
                var path = $(this).val();
                console.log(path);
                $("#hdUploadValue").val(path);
            });
        });
dammit @LewsTherin lol
What did you change?
Unless ASP works differntly and you need to prepend MainContent
21:09
oh hang on
is this in a web form?
Yeah.
not mvc ... but web forms
ah ok
try being explicit
That was the point earlier @LewsTherin of <%= flUpload.ClientID %>
<asp:HiddenField ID="hdUploadValue" ClientId="hdUploadValue" runat="server" />
<input type="file" id="flUpload" ClientId="flUpload" runat="server" class="flUpload" />
@LewsTherin Still nothing.
21:11
i think theres another attrib you have to set too
@Wardy Why explicitly define the ClientId?
Wow, webforms is shit
so that it matches the script
depending on where the element is on the page it'll vary
this is where mvc has an advantage
you can script this out as a template partial view and itll always be the same
then you can match on name
or you could use a data attrib
That isn't any different then:
        $(function () {

            $(<%= flUpload.ClientID %>).change(function () {
                alert('Trigger...')
                var path = $(this).val();
                console.log(path);
                $(<%= hdUploadValue.ClientID %>).val(path);
            });
        });
<asp:HiddenField ID="hdUploadValue" data-upload="output" runat="server" />
<input type="file" id="flUpload" data-upload="input" runat="server" class="flUpload" />
$(function () {

            $("[data-upload=input]").change(function () {
                alert('Trigger...')
                var path = $(this).val();
                console.log(path);
                $("[data-upload=output]").val(path);
            });
        });
21:13
@Wardy Data-Upload isn't a valid attribute.
uh yeh it is
according to the rest ofthe world at least anyway
For html5 it is
I think html5
data-anything
@Wardy According to Visual Studio in my project, it isn't.
you can get away with it in transitional html docs too
vs is a bit retarded in webforms mode
with the mvc editor this stuff a lot smarter
try it
21:16
Lovely error.
wow
webforms are retarded
ok my recommendation
do what i did
write a control that loads an mvc view
then render a partial
and love your life again
@Wardy Not an option for this project...
ok doesn't webforms have a file input server control ?
i thought you could say something like ...
<asp:File ID="flUpload" runat="server" />
21:27
Yeah, except that doesn't work when you have to utilize an <asp:UpdatePanel>. It requires a <Triggers> in order to accomplish that, but when I place it on my data, it does a double postback which breaks my data grids.
huh ?
you cant use a file server control in an update panel?
No, because it does an Ajax request.
That is why you specify a trigger, so it forces a manual Postback.
ah ok
Which breaks my entire page, for some lovely reason.
so you cant put this outside your update panel?
21:31
No, because the content is a modal form.
ok pastebin me the entire html markup for the page
i wanna see what you got going on here
or just the modal form bit of it
how can I make a WebApi action to accept both POST and PUT methods?
The same action?
:S
They are different things. Should be 2 actions
i have very similar logic for creating a new or updating an existing entity
before i started to use WebApi i had a single action for both
Yeah... perhaps refactor that logic out?
21:41
to obtain 80% duplicated code?
Yes lol
If you can hack it to use both put and post.. so be it
i have a few options... either to make a 3rd method that has common logic and call it from Post and Put... or just call one action from another
How is the 3rd option different from:
first looks more clever lol
> Yeah... perhaps refactor that logic out?
21:44
nothing to refactor. You create or get the entity from database, then update its fields with the model values and then save to DB. 2nd and 3rd step are same.
If there is nothing to refactor then how can you make a "make a 3rd method that has common logic "?
the logic that updates fields. In this case it's reasonable at least
jesus this game is stressing me out
football?
21:55
yes
0-0 90 minutes
just turned it on
@LewsTherin @Wardy Figured it out.
they're playing really well this tournament
@Greg Nice.. what was the fix?
21:56
our goalie is doing an incredible job
he looks like he's holding on by the skin of his teeth but you can't argue with the results
red team deserves to win though
@Greg good to hear you got it :)
@JohanLarsson they're just holding the ball the entire goddamn game
21:58
@Pheonixblade9 Really good game imo, the second half pretty insane. 0-0 does not reflect it well.
very stressful
ugh, well
chaotic defending there
@LewsTherin I added a onChange directly to the element and called the remaining portion of code in a function.
@Greg I don't get it.. isn't that what was suggested earlier? Can I see the codez?
BBC cameraman is pretty blatant on finding the attractive women in the crowd
dive
22:14
well... shit...
15 saves. if anyone on our team had been playing as well as Howard..
right.
just scored...
In my WebApi I need to have more operations than CRUD (4 operations) against one entity. Say I need to retrieve list of departments belonging to a specific division. The "/dept/1" URL is for getting dept #1, so what url should be for depts of a division?
22:34
:(
that was a crazy game...
I kind of thought it might be our last so I watched it
@Greg - the output of your source code would be
$(flUpload).change(...
whereas you still need to create a selector there
$("#<%= flUpload.ClientID %>").change(...
to make
$("#flUpload").change(...
it was really close...
yeah, but our passing % was pretty bad
yeah, we had 52% possession... didn't feel like that though
there was a lot of the defense passing the ball, but it sort of broke down in the opposing midfield
22:42
yeah, we just couldn't keep it on their side of the field
0
Q: RESTful - get list of resources by owner ID

LINQ2VodkaI need to get list of departments who belong to a specific division. The /dept/1 URL, according to the REST basics, should be used for getting a specific department by ID, so it can't be used here. Then I have the following options: /dept/division/1 Doesnt look as true REST. Also, I don'...

23:02
surely it should be ...
/dept/1/division/2
or you could say /dept/1/where?divId=2
hmmm....
trying now...
but looking at the other stuff there ... a dept is part of a division
I'd think /dept?1/division?2
then /division?2/dept?1
so surely in the grand scheme of things it should be ...
division/1/dept/1
you can only have 1 query string
1 ? per url
that signifies your start
hm... i just started with WebApi, thought there only possible onlyGet, put, Post and Delete actions...
23:08
are these wrapped up in something bigger?
probably i can make my own and put {action} into routing
/company?division=1&department=1
/dept/1/division
/dept/1/division/2
is a division part of a dept or is it the other way round?
as we're getting list of Depts, so it should start from dept
so drch is right
2
other params are extra
23:12
getting a list of depts in a division?
thats a question of business heirarchy
/division/1/depts
gets all depts in division 1
thats how i would do it
assuming thats how the business is structured of course
probably any of above is correct. Now fixing routes :)Thank you!
depends on your entity model i guess
you will have 1 thing that has a collection of the other
any of you suckers watch the football game tonite
23:15
nope
havent seen so many americans out since canada vs usa in the olympics
busy having a life
never do
Wardy lol)
I'm never eating chocolate or waffles again. Stupid Belgium.
@Pheonixblade9 the camera panned to a Belgian fan in the audience...
and this american dude was like "wtf is a german doing rooting for belgium?"
he didn't realize that the flags have the same colors...
made me cheer harder for belgium
23:22
lol
u w0t m8
00:00 - 20:0020:00 - 00:00

« first day (1354 days earlier)      last day (3820 days later) »