« first day (1382 days earlier)      last day (3570 days later) » 

9:00 PM
im on dotnetfiddle.net
The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
 
string clean = Encoding.UTF8.GetString(Convert.FromBase64String(bytes));
you are trying to read a base64 string from a byte array?
 
i typed that too
from string
 
@KraziiKiiD Well, did you try passing it a legal base64 string?
 
yes
 
And what happened?
 
9:02 PM
cross browser hell
 
cannot convert byte[] to string
 
standards are such a laughable concept
 
You didn't pass it a legal base64 string
 
9:03 PM
The code you posted and the errors don't match
 
i do
 string data= "";
 byte[] bytes = Encoding.UTF8.GetBytes(data);
return Encoding.UTF8.GetString(Convert.FromBase64String(bytes));
the data has some base64 encoding
 
thats backwards
 
@CharlieBrown Not sure how you got to that... but it's helluvalot better nowadays.
 
getstring first, then convertfrom64
@RoelvanUden yeah, just stuck on a stock android browser issue
@RoelvanUden so im venting
 
@KraziiKiiD You convert bytes to base64 string, not the other way around
 
9:05 PM
Oh, right, that thing is painful. What's the issue?
 
hmm
 
Can someone tell me what I've done wrong here.
    $(".rdoLinkTo").on(function () {
        if ($("<%= txtCourseLinkTextToDisplay.ClientID %>").val().length < 1) {
            $('.rdoLinkTo').find('input:radio[value="Web Address"]').click();
        }
    });
 
some magic reason, input[type=date] is disabled in that browser... but only on my site, not in a jsbin test
wish i could connect a debugger/inspector
 
When that textbox is less than one, trigger that click on the radio button with a click.
 
Convert.FromBase64String(Encoding.UTF8.GetString(coded_data_bytes));
 
9:06 PM
@Greg "on" what? maybe on('click', function(){})
 
but can't return byte[] i wanted string
i still cant see the error
im too tired...
 
Well, right now the default radio button is "Email". I want it to default to web-address and do it with a click to trigger all my other logic.
 
@KraziiKiiD converting a string to a base64 string is a two-step process. What are the steps?
 
@Greg i think your just missing the 'click' part of that handler
 
@CharlieBrown Random thought, could it be that you're accessing by IP and stock Android browser treats that as something with different rules?
 
9:08 PM
@KendallFrey convert to base64 (utf8 getbytes (string))
 
@KraziiKiiD precisely, now implement it
 
@RoelvanUden nada, im just checking my qa site. if you have a driod with a stock browser i can shoot you the link
 
@CharlieBrown I don't think that is it. As it is during a page load, so it wouldn't have a click.
 
@CharlieBrown Yeah, go for it.
 
i've done it, but i need the backward thingy
 
9:09 PM
so you just reverse the process
 
@Greg im just saying that you have the on(string, func) method written incorrectly
 
string -> bytes -> base64
string <- bytes <- base64
 
@CharlieBrown Oh, is there something else I should be using?
 
@Greg your missing the first parameter in the on method
 
@CharlieBrown The radio button list is defaulted to email, and at page load I want it to default to Web Address.
 
9:11 PM
@CharlieBrown Server not configured?
 
@RoelvanUden oh lord
 
@CharlieBrown Yes, my servant?
 
thats not good
 
:17986525 return Encoding.UTF8.GetString(Convert.FromBase64String(encodedData));
 
@RoelvanUden lol, wrong link... quickservice.qa.ameriprise.com
 
9:12 PM
again says: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
 
What is the input?
 
some numbers
 
no, literally what is the input?
 
is a problem that im using base64_encode on php ?
 
9:13 PM
@CharlieBrown Where should it be?
 
42192
 
why have we been talking about PHP for the last 2 hours?
 
How is that a valid base64 string?
 
@RoelvanUden click either button, 3rd field on login page should be date picker
 
wait
 
9:14 PM
@CharlieBrown But it's not according to my Chrome.
 
yeah, Chrome is all good
 
By the way, you error still doesn't match
 
@KendallFrey this is the string: NDIxOTI=
 
There is a weird other browser for driod that used to be the default
 
better
 
9:15 PM
@CharlieBrown No, I mean, I'm testing on Desktop first in Chrome and it doesn't have a date picker at all.
It's a type=text
 
@RoelvanUden oh, yep, thats correct
 
@KraziiKiiD that works fine for me, what error are you getting?
 
its input[type=date] so it uses the native picker, which on desktop chrome is just a date mask
 
@CharlieBrown You confused me. It's supposed to only appear in Android then?
 
that with the input, how you decrypt it? show me
 
9:16 PM
on driod chrome you get a date selection widget, the browser handles all of it
 
You posted the code yourself
 
but is says that:
 
:17986614 The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
 
So that slide just got approved for my Dev. Kickoff. Yup, we're killing biztalk (the colour picture is animated)
 
9:16 PM
@CharlieBrown No, I mean, really in the inspector it actually says type=text with parsley as some form of validator for the field.
Even in Chrome it should say type=date o_o
Or do you emit different HTML for different browsers?
 
@RoelvanUden oh, sorry, my bad... i havent released that change yet... im swithing it to text for desktop chrome just to test something out
 
@KraziiKiiD Where are you getting that error? The code you gave me is fine
Make a small sample that I can paste and run
 
at the return line: return Encoding.UTF8.GetString(Convert.FromBase64String(coded_data));
 
using modernizr query, we had a bug i was researching, it will be date everywhere else
 
Give me the real code or the real error
it works for me
 
9:19 PM
thats direct to my dev box
 
@KendallFrey oh nevermind, i saw the problem, i told you im too tired at the moment..soryy for bothering you
 
What was it?
 
you'll laugh
 
@CharlieBrown Huhn. That's odd.
 
9:22 PM
i had some other strings next to it but with forecolor white, and alway starts with '<--" and i wrote then:
return Encoding.UTF8.GetString(Convert.FromBase64String(codedData.Substring(0, codedData.IndexOf('<'))));
 
@CharlieBrown Well, unfortunate, same result here.
 
@RoelvanUden i need some sort of inspector to figure it out i think
 
@KraziiKiiD That's why you always give us the real code :)
 
Yeah.. I know you can debug into Android using a VM but not sure if that applies to web.
 
@KendallFrey :) i've missed saw that.
@KendallFrey Night guys, and thanks for your time :)
 
9:28 PM
@RoelvanUden disabling js seems to make it work, although it visually looks disabled still
 
C# room: solving PHP problems since 2014.
Wrong detection probably.. :/
 
narrowed down to 1 of 5 scripts
@RoelvanUden it was the fastclick library
 
9:46 PM
I got to vent
I know Paul Betts and team put a lot of work into ReactiveUI
but documentation and samples are
depressingly difficult to find and make to work
 
had that same prob in a wpf app with it
 
@CharlieBrown glad I am not the only one
I am sure they know it inside and out
but when a sample from Jul 11th this year does not compile, I have an episode
sample compiles
my bad
sorry Paul if you are listening somewhere
 
10:31 PM
@KendallFrey classic, nontrivial pronunciation.
 
10:49 PM
@JohanLarsson I tried to pronounce "sks" just like I would expect it to be in English, and I still had to try 10 times.
That kind of stuff is why I wish I knew svenska.
 
alwping hard
 
what does it mean?
 
If you have an item, like a textbox and when you query the database, if you don't validate and it is empty will it not show as a null?
 
@JohanLarsson alwp?
!!urban alwp
 
10:55 PM
@KendallFrey [ALWP](http://alwp.urbanup.com/5744632) Actual Laughter Was Produced.

When the LOL just doesn't quite convey what happened.
 
It claims there are too many parameters.
 
Hello :)
 
How are you?
 
11:10 PM
Pretty good, vacation, been in my horizontal office a coupleof days.
And you?
 
Very good thank you :)
Happily sitting here tapping away xD
 
tapping?
 
Yeah, the keyboard. Hahaha
 
do you write much C#?
 
I love it! And yes :D
I currently on 3 projects on work, 2 of which are in C#.
I have taken part of one home (a library for it), and been building on it there so I can release it as open-source.
 
11:17 PM
hope you got permission for that :)
 
@JohanLarsson I still thank you very much for helping me with that wpf project. It really helped me in landing a Job.
@Pheonixblade9 Yes, my boss is not bothered, as it's only a part of the end result.
 
@avitex :)
 
I am really hoping someone will look at the project in it's infancy, and push a few commits my way. I really think I could learn some better practices.
But I am quite happy to just keep working on it all the same.
 
Starring it for visibility then.
I'm too sleepy to read code now 01:21 here
 
I have learnt that I love C#. It allows really good structure in projects.
@JohanLarsson Thank you :D
 
11:22 PM
Is it for VLC the mediaplayer?
 
Yes, and more specifically the libvlc part of it.
The heart of it at the moment is this file: github.com/avitex/VLCHug.NET/blob/master/Bridge/Internal/…
I am making an effort to make sure everything is commented, and documented
 
Do you use StyleCop?
 
No but let me look that up now. I need to learn more :D
Oh cool
Consistency enforcer!
I think I need to invest in resharper.
 
I don't love all rules but still obey most of them. Stylecop is pretty nice when sharing code in a project.
@avitex yeah, pretty short payback on it I think. For generating boilerplate like equals & propertychanged.
 
@JohanLarsson I am just worried that I will not use it to it's full potential.
I did sign up for puralsight, hopefully I can get rid of some things that I may be doing terribly wrong.
 
11:31 PM
don't worry about that imo, learn as you use it.
^ looks a bit strange
 
@JohanLarsson I think Ill start saving up for it now.
 
public EventHandler<string> OnAdded could be an option
 
@JohanLarsson To be honest, I am putting them into these files temporarily.
 
I'm really tired so probably reading it wrong.
 
I started working on an eventhandler, but I didn't quite know where I was going with it.
@JohanLarsson No, you're reading it right. I just didn't know where to go with it, so I stuck the delegates in some files xD
 
11:35 PM
    public event EventHandler<string> OnChanged;

    protected virtual void OnOnChanged(string e)
    {
        var handler = OnChanged;
        if (handler != null)
        {
            handler(this, e);
        }
    }
I think ^ is the idiomatic way to declare and event in C# (not sure what idiomatic means :))
 
@JohanLarsson Cool! I will use this.
 
You can probably find SO answers with many upvotes about it
var handler = OnChanged; // this can look strange but it is to avoid threading issues, copy to a local and then check for null > invoke
VLCInterface.Core.Events.DelegateGroups // this nesting (four levels) is not super nice if the project is small.
@avitex Read about how to implement IDisposable this does not look perfect.
 
@JohanLarsson I keep searching how to, and keep forgetting
 
1171
A: Proper use of the IDisposable interface

Ian BoydThe point of Dispose is to free unmanaged resources. It needs to be done at some point, otherwise they will never be cleaned up. The garbage collector doesn't know how to call DeleteHandle() on a variable of type IntPtr, it doesn't know whether or not it needs to call DeleteHandle(). Note: Wh...

@avitex I have a snippet for it, the I just type disp and R# generates a stub
got a feeling ^ is wrong for some reason
not the snippet I use at work, similar but not identical.
 
@JohanLarsson Just reading on it now.
 ~MyObject()
 {
     //we're being finalized (i.e. destroyed), call Dispose in case the user forgot to
     Dispose(); //<--Warning: subtle bug! Keep reading!
 }
This is exactly something I have been doing.
 
11:48 PM
treat everything I wrote as things to google not hard rules
what file has the most code? I'll read one more
 
This isn't the largest, but it feels very dirty.
@JohanLarsson Thank you for this
 
StructLayout & Intptrs shrug I know nothing about that voodoo
 
@JohanLarsson Hahahha, yes I got a warning about that. I will be fixing that
I learnt the other day, the IntPtrs are platform dependent if I remember correctly.
 
yeah that woudl be my guess
 
holy shit VS2013's built-in code profiler is pretty slick
screw you, redgate
 

« first day (1382 days earlier)      last day (3570 days later) »