« first day (1103 days earlier)      last day (4070 days later) » 

22:01
Why do tablets need to connect to a carrier?
get a good plan on your phone, and sync em/set up a wi-fi hotspot
Read an interesting article today, about how the NSA was behind the scene of Blackberry collapsing because the NSA couldn't get into their system's data.
@KendallFrey I haven't
@TravisJ Congrats ;)
Is here anyone who is familiar with wpf and custom controls? :) I would be thankful for help.
@Reed - thanks :)
@user2799180 A bit ;)
I postet this question today: stackoverflow.com/questions/19545136/… and I still did not find the solution
@ReedCopsey it workes perfectly for a string but unfortunately not for the model.
22:13
Anyone know how to make a header item in bootstrap responsive. This particular logo; doesn't fit to proportion.
@user2799180 Just replied - I suspect that's your issue
@ReedCopsey I forgot to tell you...it does not work for the model.Name either
yeah - you need to subscribe to the events there
(I edited)
the change event you're using will only trigger when the Draw instance changes, not when things within the Draw instance change
@ton.yeung Depends on the carrier ;)
@ton.yeung People still charge for tethering? that should be illegal
Wha? bloody hell.
Verizon doesn't (can't, legally), but most of the other US carriers do
though tethering is often cheaper or the same as another device
(and works with everything)
22:16
For 50$:
-unlimited Nation wide calling for 10 #'s
-unlimited nation wide calling for evening
5gb data
unlimited texts
Voice mail, visual voice mail
caller ID, conference etc.
(insert basic phone stuff here)
@ton.yeung They got their cell infrastructure from the US government, and it's part of the deal that worked it out
tmo?
Telus.
Damn canada - they sit there and bitch about cell plans, but they're way better than the US :p
I phoned them and said "This is why I can get through my company on Rogers. Either you beat them or I leave with my entire family plan" They bent over for me :)
and I have to listen to it on the radio all of the time
22:18
i dont get why every telco outside of the UK charges for caller id
@ I thought this is the good Thing about WPF. That I can generate collections which directly generate net controls in the UI. But listening to Events makes that in this Special case really complicated
@user2799180 Not really - something has to listen to those events
@ton.yeung Your familiar with Bootstrap, any idea why an image won't appear responsive?
So I would need to embed javascript to scale it?
So it would be better to have it defined in the Bootstrap Stylesheet.
Unfortunately I'm trying to do this scale to an image that I don't have control over, it is inserted randomly by the user and will constantly change.
22:36
@ReedCopsey Could you add an efficient example to your Response. Maybe one that could work if in a way that I can create this models in a collection which then creates several ui elements via a datatemplate?
I do not see yet how this will be possible in an automatic way. Sorry, I`m quite new to MVVM
In general, MVVM doesn't apply when you're making a custom control
the custom control is 100% view
there isn't a "simple" or "automatic" way to handle this in this case -
is there a reason you're subclassing "Image"?
this seems more like something you'd just use a Canvas for directly...
I want to create a control which acts like a drawing control. This means it is bound to a collection of Points. On each update of this collection it should draw an image
subclassing Image will just make your life far more difficult in this case
you should use a Canvas
But I use Direct2D to draw images
I'd, personally, just make this a UserControl with a Canvas, and draw the items as needed
oh
22:44
yes :D
Then a UserControl containing the Image would still be easier
subclassing controls in WPF leads to odd things...
Oh ok, where would be the difference for this binding to a collection?
I mean now I use the canvas to write the imagesource. Where would be the difference having a user control? For DP I have not seen really a difference between User Controls and Custom Controls
Well, if you had an ObservableCollection of points
you could listen to the collection changed events, and redo your draw operation
it'll fire when any point is added/removed/changed
(that won't change the behavior here - it'll just make your life easier later)
but a collection of Points would only allow me to draw one line or whatever. Not multiple ones with different Color :)
You see, why I want to bind to a model. But maybe there is an easier solution.
right now, you have a single List<Point>
there isn't >1 in your code
22:49
yeah because it was the easiest Approach so far, I thought expanding it to a 2D list would not lead to problems
Ugh, Javascript ain't playing nice. Damn it.
what is/n't it doing
Well, if it detects a mobile device. It resizes the image; instead it squishes on mobile.
codez?
	jQuery(document).ready(function ($) {

	    var scale = 0.5;

	    minWidth = 100;
	    minHeight = 50;

	    if ($('#LogoPane').width() * scale > minWidth && $('#LogoPane').height() * scale > minHeight)) {
	        $('#LogoPane').width($('#LogoPane').width() * scale);
	        $('#LogoPane').height($('#LogoPane').height() * scale);
	    }

	});
22:53
...
@ReedCopsey would it be possible to update the model in the control and not through a notification and use a string or bool then to initiate the drawing?
Isn't this function ($) overwriting the variable $ with the injected event?
That could be possible, but it doesn't appear to.
ok
Is there an error there? It seems there could be an extra `)` at the end of
* scale > minHeight)) {
So this is supposed to shrink the image, but instead it becomes smaller than intended?
When it detects a small screen, (phone) it is supposed to trigger yes.
22:58
Is it because cutting the image in half is too much of a reduction?
Well, the original size is 925 by 150; I need that to be shrunk to fit on 360 resolution width.
@user2799180 Yes, potentially - if you don't need changes in the model to reflect, and only "push" into the model, then you could handle it that way
Proportional.
but it's less flexible
@Greg - It seems that it should do that. You said that instead of shrinking, it is squishing. Can you expand on that?
23:01
It makes the image unreadable, it makes it so condensed you can't read it.
@ReedCopsey I know. What I really Need is that I can create a collection of models in the viewmodel and by using a template in the xaml I want to generate a drawer control for each of the models in the collection. And I want be able to send them updates. Points and DoDrawing or whatever.
Does the height and width get set according to the calculation?
I think there is a code issue with the detection, it is resizing everything.
@user2799180 Its not really that tough - you just need to use the proper collection types (Observablecollection) then subscribe to the events
It should.
23:02
Did you remove the extra )?
I fucked something up horrible.
Yes.
It shrinks everything? It is only looking at one id though.
Ah, I think I know what it is.
@TravisJ Please be my savior.
@ReedCopsey Would it be possible to give an example how to do it?
In the Model: public event PropertyChangedEventHandler PropertyChanged;
This is actually a hard issue to realize sometimes. Basically, the DOM on the device becomes ready before the images are fully loaded. However, as a result of the DOM being available jQuery fires its document.ready event. Try attaching this to the window.load event which will wait for the images to full load before firing
window.load = function(){
var scale = 0.5;

minWidth = 100;
minHeight = 50;

if ($('#LogoPane').width() * scale > minWidth && $('#LogoPane').height() * scale > minHeight)) {
$('#LogoPane').width($('#LogoPane').width() * scale);
23:05
in the Custom Control: within constructor: drawModel.PropertyChanged += new PropertyChangedEventHandler(onChangedProp);
@greg - Sorry, window.onload (instead of window.load)
You might be right!
Still doesn't- GRRR
23:08
Would the fact an image may not be the only content affect it, I'm trying to have that div get resized if it doesn't fit within the resolution. But shouldn't bootstrap determine that for me?
I do not use bootstrap so I am not sure
You know of any simple detection scripts I could try without relying on bootstrap? Simply bypass it for this one flipping tag
@user2799180 Use ObservableCollection, and listen for CollectionChanged
since you care about the points
Ok, is it as simple as subscribing to Events across different classes?
@Greg - What are we detecting?
23:14
Smartphone resolutions
In Portrait mode.
Well, I would just look for low res screens in general. That would basically be when a user had a resolution with width lower than, say, 1000px? The thing is, some mobile phones are very high res, the physical pixel size is just smaller.
$(function(){ if( $(window).width() < 1000 ) { /* low res */ } });
You think that would be enough to then prompt it to force the image lower?
Forcing the image to be smaller would still require the metric used before. How much of the screen is the image supposed to span?
Are the images coming from the database-ish?
A stored height and width parameter will go a long way towards being able to manipulate images if you can manage to store it while uploading the image the first time.
The entire span.
It has a row for itself.
Yeah, it still doesn't resize it.
@ReedCopsey Thanks a lot, I will try this tomorrow.
23:24
Let me adjust the height vs width.
It resized it, but it squished it. Let me revert it back real quick.
I'll take a look at it tomorrow, thanks for your help Travis. This got closer though
	jQuery(document).Window.load =
        $(function () {
            if ($(window).width() < 1000) {
                var scale = 1.0;
                minWidth = 925;
                minHeight = 150;

                $('.LogoPane').width($('.LogoPane').width() * scale);
                $('.LogoPane').height($('.LogoPane').height() * scale);
            }
        });
window.onload = function(){
    if ($(window).width() < 1000) {
     var scale = 1.0;
     minWidth = 925;
     minHeight = 150;

     $('.LogoPane').width($('.LogoPane').width() * scale);
     $('.LogoPane').height($('.LogoPane').height() * scale);
   }
};
@greg - window.onload is native javascript API
Oh, I didn't know that.
I'll catch you tomorrow.
Thanks for your help, I may inquire further tomorrow. Unless I can't sleep.
k c ya :)
23:55
weird... I just noticed some stuff with the build server... now I'm doing architecty things like managing the build and making sure the deploy checker is running
I guess that's a good thing, right?
our test architect is on vacation
That doesn't sound architectury,that sounds developory ;p
well, usually our test architect manages the build server.

« first day (1103 days earlier)      last day (4070 days later) »