« first day (1466 days earlier)      last day (3490 days later) » 

12:37 AM
@TravisJ Hello.
 
@Greg - Hey man, sorry I am just leaving work
Will be back tomorrow :)
 
@TravisJ Ah, I had a quick question.
 
how quick?
 
Real quick
 
you have 2 minutes :P
 
12:40 AM
What is the best way to do Responsive Grid.
Just float? Or is there something better to look into?
 
I want to build one of my own.
 
It is a pretty opinionated topic
I use a set of divs and spans personally
 
Just want to keep it responsive.
 
What do you think of when you say responsive?
 
12:42 AM
I personally do float. Container / Float.
 
float is pretty widely used
 
That is kind of what I thought, people give me such flak.
For the float approach.
 
It is also pretty common to take a space, use margins on something inline, and let the browser wrap it naturally
 
You have an example? I don't want to keep you.
 
Just look at the tags in this room below C#
 
12:44 AM
??
 
That is technically a responsive grid
it just fills space
 
So, how do you keep the Grid?
 
Depends on where the bounds are, that should be the easy part
k I really gotta go though
ask me tomorrow
 
Okay.
 
 
4 hours later…
DPM
4:34 AM
Hi All,


I have a function call which results in two conditions(True and False).When the condition is false,I wanted the code to display a message box with the two options (STD and FACTOR) and when the user clicks the STD button It should direct to another page.
HOW IT POSSIBLE?
 
 
2 hours later…
6:23 AM
Hi there... Can somebody tell me what this syntax means?
((ListViewItem) sender).Content as XmlElement
I came across couple of similar ones lately
and want to understand them
someting like ((...) ...) ... as ...
 
6:37 AM
@ton.yeung I 100% agree with you
however I honestly don't know where to start with
I did C years ago
and now that I am back with C# I am under tons of new concenpts
and new syntaxes
all day today I was trying to figure out what Dependency Injection is
I understand but when you want to use it you should be able to implement it
true that
How did you dive into these concepts? I am electrical engineer so never had a chance to do something in depth as people do over their degre
degree*
Oh...
interesting
I know myself :P
I did IT before but harware engineering not software
So did you just dive in and starting learning from one side and pushed through
that's exactly why I love to learn even more and more and do programming cuz I absolutely enjoy it to the max
I understand.
I am not a total beginner and developed multiple application over the past years. Now I am trying to dip into the MVVM concept and reading article Josh Smith developed ... quite fascinating
However, sometimes I face syntax or an implementation that I have no idea about and upon popping the question people tell me what a beginner I am and have no idea about anything :)
hah... quite a nice description
 
what is the question?
 
very useful points... will definetely look into them :)
 
Write a lot of code and chat is probably a decent strategy
Maybe post small nice samples for flaming every now and then
 
that's true... however it's such hard position to ask stupid questions @JohanLarsson
 
R# is also good I think, it suggests changes like foreach -> linq
@Mehrad that attitude is your enemy :)
 
6:51 AM
ah man... without google it would be almost impossible ... :)
Well @JohanLarsson I am fighting against it. as long as I learn I am fine.
 
imo it is more important that a sample is small and clean.
I often close gists that are longer than a screen. ~10 lines illustrating the isue is ideal.
 
as I mentioned, I dove into MVVM pattern described by Josh Smith and absolutely enjoyed how he explains the concept. The demo programs he puts up are a class room by themselves.
@ton.yeung that's true. there isn't a day that I don't spend at least 5 hours reading and watching... long way to go :)
 
I think MVVM has a tendency to scare people. Avoid having business logic in the code behind of the view and try to use binding as much as possible and you will be fine I think.
yeah Pluralsight is nice, have your employer pay for your subscription?
 
i'll definitely give it a shot @ton.yeung
@JohanLarsson quite like the idea
 
how do you mean company account?
 
6:57 AM
they have paid for some books and stuff in the past so I would say I will have a shot
 
@ton.yeung It is an easy question to answer though. 'I enjoy learning about stuff'.
ouch
I rarely watch pluralsight at work though
Enjoy watching it at home though, TV is so painful.
 
anyways guys... enjoyed the conversation and love to hear about them more. I normally hang around in the 2nd monitor for the StackCodeReview. I'll make it a habit to ask for your input on the stuff I am not confident about here more...
 
@ton.yeung nice
<- gtg
 
7:12 AM
Are you die-hards or not? Who needs sleep?! @JohanLarsson @ton.yeung
 
@FizzledOut Good Mording at all
Good Mording at all
 
Mording to you too.
 
7:55 AM
Totally mording... At all.
 
 
2 hours later…
9:37 AM
Programming for phones is such a huge pain in the ass. I'm so over it.
 
hi
hiii
 
hi everyone :)
 
Do you use a tool like Xamarin to develop for phones?
 
hi @RoyaanKhan happy coding
 
@Ludovic no because I'm too poor to pay for Xamarin atm. And I'm aware they have a "trial" but the trial is too limited to be useful.
 
9:44 AM
@jay
@jay_t55 isn't other free tools exists?
 
Hmmm, @Ludovic I'll have another look. Maybe I missed something.
 
@jay_t55 i think there is some free but you'll have to develop your front end in html :/ eg:mosync.com
what do you want to develop?
 
Well I have a metro and desktop app called SkyNotes. It's like a word processor but auto syncs with OneDrive (it was made when OneDrive was called SkyDrive) and so now I just wanna make a mobile version of that app.
 
Ho ok
 
I can make windows phone apps no problem but I can't even get a start on it. it just feels like phone apps are way too much effort these days
and MS is pissing me off with their stupid "Capabilities" and "Declarations" and the 700,000 different sized icons you gotta make for just 1 app
 
10:00 AM
That's why they are doing some cross plateform development tools. I only developed in Android and heard that Windows Phones developments are not that hard but IOS...
 
So did @Shaun get fired or what?
 
10:20 AM
@RoelvanUden Is this a bitwise flag?
int val = (int)newADUser.Properties["userAccountControl"].Value;
newADUser.Properties["userAccountControl"].Value = val | 0x2;
 
@Sippy Yes
 
Can you tell what that does from looking at it?
 
@Sippy It adds bit 2 to val.
No idea what val is, or what bit 2 is supposed to do, but there you go
 
I have literally no idea what UAC does.
It's an int value, the ones I have here are 514
Then there's some more which are 544
And the ones for the type of user I have are 546 lol
I'm guessing adding bit 2 isn't just adding two to 544.
 
Punch it into your calculator and you can see the bits
@jay_t55 If you have a store app, just wait a bit for universal apps? :-)
 
10:25 AM
544 | 0x2 like that?
 
So that's two flags. No idea what each does, but there you go!
 
OHHHHHHH
Well now I get that bit.
Still have no idea wtf UAC does or how to set it properly hahaha
 
No idea either. Normal people define an enum with [Flags] so it makes sense.
Instead of remembering codes.
 
Shit.
 
Hi. Is it clever to change table structure when using LINQ to SQL :o?
Hah not even it is not clever its not even possible, huh. Seems like I will have to use LINQ to Dataset.
 
10:39 AM
@RoelvanUden Teammate explained that because active directory is stupid, you can only store a number for the permissions of each user, so they use bitwise to determine role based permissions.
I still don't know which roles are which and neither do they, but that's a bit more clarity at least.
 
11:01 AM
Wow.
This chat, as a tab in Chrome, was using 1gb of memory.
Was like why the fuck is my laptop running this slow it has 16gb of ram
Chrome was using 10gb
Lol
 
My FireFox is eating 1GB atm...
 
The weird thing is just closing and reopening the tabs resets their memory usage
So there's some kinda leak somewhere.
 
Chrome stable?
 
yeah
I've had this tab open for like 3 weeks btw.
So it's a slow leak lol
 
Hm.. mine is open for about 2 weeks as well.
So a Chrome-specific thing perhaps
 
11:06 AM
Yeah possibly.
 
ResourceDesign selectedResource = Game.ResourceDesigns.Find(y => y.Name.Contains("Base")); <--- return null
what is the trouble?
 
ResourceDesigns doesn't contain Base.
Or no object with a name that contains Base, rather.
 
Name = "Base metall";
it must return anything
 
Can you paste a codeblock rather than single lines please if you want help
@RoelvanUden If you make a submission from a partial view, does it submit through the view?
So if I have a partial view in index, submitting from that partial view will return to the partial controller or the base controller?
 
11:23 AM
Hi guys ...
 
@Sippy Whatever it is in, it's just html.
 
@RoelvanUden Ah right, thought MVC might do something clever, as it can be known to do :P
 
Nah. MVC is rather predictable. Less assumptions and "thinking", the better.
Predictable software is good. Fighting against a framework is not.
 
@VictorioBerra Ah I didn't know that, thanks.
 
11:25 AM
I came across a DataRelation feature of ADO.Net... Its helps in defining relationship between tables in disconnected environment.. Have you used it?
 
@RoelvanUden You say that, but MVC does a lot of that shit.
 
oh)
 
i mean is that the only advantage..
 
Once you understand it, it's easy to use. Figuring it out can be a pain in the ass.
 
i find))
 
11:26 AM
@Sippy Like what?
 
@RoelvanUden Best example is the scaffolded items that contain dropdowns.
 
@Sippy How so?
 
@Html.DropDownList("SiteID", String.Empty)
Populated by ViewBag.SiteID
Which is a selectlist
There's also a strongly typed way to do that.
Which looks like the thing you guys told me off for yesterday :D
@Html.DropDownListFor(model => model.departmentGroup, (SelectList)ViewBag.DepartmentGroups)
@GLeBaTi Your Name property is written in Cyrillic ..
You can't automatically translate latin characters to cyrillic ones..
 
hi there any built function to calculate number of permutations nPr in C#?
 
@RoelvanUden @using (Html.BeginForm("Index", "SomeOtherControllerName"))
That will work :D
 
 
1 hour later…
12:41 PM
Hi there. I have a problem about how I can design a transition between an polling structure and an event-driven structure. I need to poll data, convert it to C# data types and put them in Item classes that call events if the value changes.
 
poll, then fire events
 
There are much Items, and every Item fires an event that need some time to be handled. If I do it in one thread, it's slow. I could make the event handler call a new Thread and the handler doing it all asynchronously but the most time it's slower to create all the threads that doing it asynchronously.
 
Hey! I'm going to do a WPF app on To Do List, any tips before I start?
 
angular: using a custom directive. this directive is implemented in a repeater:
<div ng-repeat="address in addressBook.Addresses">
<customDirective></customDirective>
</div>

within my directive, i set an isolated scope:
scope: { address: "=" }

but it doesn't pull in the address property from the ng-repeat scope as it should...
suggestions?
@ton.yeung
 
Hi,
i am trying to make a setup with the help of InstallShield
i want to copy some file in system when i install my setup in machine
for it i have added a installer
and write a bunch of line
[RunInstaller(true)]
public partial class InstallerPOS : System.Configuration.Install.Installer
{
private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public InstallerPOS()
: base()
{
InitializeComponent();
// Attach the 'Committed' event.
this.Committed += new InstallEventHandler(InstallerPOS_Committed);
}
 
12:54 PM
I had the idea of creating a BlockingCollection where I can put my poll results and then have some class that consumes from the BlockingCollection and converts it for the Item objects. In this case I can scale the amount of consumers. If my polling is too fast, I could simply add some more consumers
 
but it's now working
i need help
please help me
 
But what if I change the value of an Item from outside? I need to remove the values of the BlockingCollection because they are obsolete and this is impossible because I can only consume a "random" value.
 
Anyone offer some advice on MS ReportViewer usage ?
 
I guess I need to lock the BlockingCollection (if this works?), remove all items, check them and put all back that dont need to be removed. This may take a while and can remove the advantage of using a BlockingCollection. I am not sure if a BlockingCollection is useful or if another solution would be better?
 
it makes me mad that nobody in the JS room ever talks about JS, or at least not when i'm in there
@KendallFrey
 
1:04 PM
Can someone tell me how to make a good navigation menu in C#?
I'm using WPF.
I'm kinda stuck designing the UI before coding
 
@Steve They don't when you're not there either

This room in a nutshell.

Jul 16 '13 at 17:12, 31 seconds total – 4 messages, 3 users, 0 stars

Bookmarked Jul 16 '13 at 17:13 by SomeKittens

 
@HassanAlthaf Design the UI before you code it. That generally works a lot better than beginning to code while trying to figure out what kind of UI you want. In direct response: depends on your application.
 
@Steve It's more like a big chat room. :)
 
@Steve We might talk more about JS lol
 
hi @all happy coding :)
 
1:08 PM
@RoelvanUden Quite possible lol
@KendallFrey I'm assuming you have access to the ECMAscript room, do they have more javascripty conversations in there?
 
nah
it's just a meta-JS room
 
Oh lol
 
it gets active when the JS room fills with vamps & trolls
 
mmmmm vamps
 
@RoelvanUden That is what i am doing? I am stuck in menu.
@RoelvanUden I want to create a menu to select pages.
 
1:16 PM
How do I turn a question into an "article" around here?
2
Q: Automapper resolvers performance

DarekAs I am working on a large project involving multiple DTOs and mappings between them, I was a little concerned about performance of various ways to resolve and map values between two classes and a third source. So I have written this small program to test various ways to map some common propertie...

 
article?
 
KB?
post?
Fun fact?
Story?
 
1:30 PM
@Darek If you want to answer your own question, do so
 
1:53 PM
I am not sure I have an actual answer @KendallFrey Although, I know that I don't know.
:D
 
Woop! Done with the UI
 
But it is interesting that the Singleton's are best performing
 
Just a bit of C# now.
 
isn't it?
 
Stack Overflow doesn't care about interesting
 
1:55 PM
Now I need to devise a way to properly cast property types or at least check for discrepancies
Cause linq2db/automapper does not like when I throw a decimal at an int
And my glorious developers in their unlimited lack of wisdom decided not to match column types between two tables with the same data. After all, there is nothing wrong with having money stored as float(53) or numeric(18,2), right?
or a bit as float(53)
right?
Of course right!
:P
 
Nothing wrong at all!
 

« first day (1466 days earlier)      last day (3490 days later) »