« first day (1226 days earlier)      last day (3948 days later) » 

01:02
@RoelvanUden You still here?
Hi guys
/app/views/layouts/application.html.erb where line #6 raised:
I am getting error in localhost:3000/home/index
01:30
any one up here
 
1 hour later…
user1881400
02:30
I have a giant list of unique variables stored in an array. It takes up about 500 lines of code. It's a list of all the items available in my console RPG. Since I cannot call .Add() to add my variables to the arraylist in the class itself, I must put it in a method. Is there a better way to do this?
02:50
load them from an external resource?
03:20
@Stopforgettingmyaccounts... you can load all concrete types from the loaded assemblies dynamically if you now an interface and the implementation can be activated via the Activator or some DI/IoC container.
 
1 hour later…
04:35
@JohanLarsson Here is something: stackoverflow.com/questions/5462040/… and there is a link to practical implementation example in there
04:47
Will the algorithm described in this answer correctly construct a tree structure from a flat list? It seems to me that the algorithm would fail for >1 level trees.
I think it will work just fine
@MarcinJuraszek I think I understand it now. For some reason I originally thought the list was being mutated.
 
2 hours later…
06:41
hej @JohanLarsson
do u work on F# program now or its a hobby?
Hey
If im not bothering.. can someone help me with an observableCollection problem?
if I ask cuz I've saw that u asked about it recently. I'm just curious to know.
just ask ur question @Ahmed.C
if any one can help u, (s)he will happy to help u.
0
Q: ObservableCollection not updating through INotifyPropertyChanged

Ahmed.CI've been trying to get this to work but I still have no luck.. Basically I'm using an ObservableColletion to load all my Items into a Listbox which has a custom ItemTemplate. This is my XAML for the ListBox: <DataTemplate x:Key="DataTemplate1"> <Grid d:DesignWidth="431" d:DesignHeight...

I still havent got it solved... :(
06:45
@MRS1367 hobby, I don't do much with F# other than procrastinating
I hate VBA
all in the weekend.
07:02
@Ahmed.C -> I can't help u with ur question. sry
I wanna make my personal site.
So I want help in this, will anybody has time?
@Harish -> so, what's u want to know?
@MRS1367 I'm fresher asp.net developer, and I want earn money from home.
So for this I want to make my own site.
so...
for describing urself, ur abilities and skills, and displaying ur works, right?
Exactly.
But the problem is I've no exp. currently.
07:13
imo, creating a personal site is depend on owner thoughts first
What I have is basic knowledge of asp.net web development.
I mean that how do u want to secdribe urself to others
it's not important for now
in the first step ur imagines about ur website is important
What's the way in this situation?
and it's UI
when u have an interesting UI for ur website
So What UI will be better this time?
07:16
u can find some consumers for ur work and u can learn many things and improve ur knowledge about web design and peogramming
while u are earning money
@Harish you should probably start with learning asp.net first ...
it's depend on u
not from trying making money on something you can't do
(replace asp.net with anything you want/need/like)
@MarcinJuraszek -> if he start to learning about JS and HTML5 and CSS3 in side of ASP.NET, it's not better?
yeah, would be probably better
but the point is, you have to know/can something to make money from it
07:18
I've basic knowledge all these tech.
you don't need a personal page if you don't have anything to put on there
@MarcinJuraszek -> yes exactly
So how I can make my portfolio?
and if you know/can do stuff your page actually doesn't matter :D I mean, the UI or how it's make doesn't matter.
the content matters
that's how I feel
I want to make my portfolio to show my work?
07:21
@MarcinJuraszek -> I said before that first step is his imagines from his personal website
I mean what he want to show in there
@Harish -> u must have some works to display them
what type of work?
any works u've done if u have
as @MarcinJuraszek said, the contents is important
I've made small projects on different topics, will that be worthful?
with good contents in ur website even if it's not very professional, u can find some consumers
idk
what's ur idea about ur works as the end-user or consumer?
So is there any site from where I can get the idea on that topics?
07:26
@MarcinJuraszek -> do u know any website to help @Harish?
I'm not really sure what he's looking for, so I'm afraid I don't :)
there are many websites but I've never check for them
I'm looking for new trends of asp.net.
just search the internet for personal websites
new features that are more in demand these days?
07:28
@MarcinJuraszek -> if I'm wrong, correct me
new trends of asp.net?
you mean like new version of MVC?
when u don't have knowledge as well in what u want to do
I want to develop my knowledge and the work with some money as well.
@MarcinJuraszek thanks
imo, u should think about a small range of consumers and not that consumers that want business and very good and strong websites till u improve ur skills and knwoledge
07:31
From where I can get small consumers?
lemme find a good personal site @Harish
Please!
@MarcinJuraszek -> my words are correct?
heh, I'm not an oracle :D you don't have to ask for confirmation :)
@MarcinJuraszek -> I only want to know ideas about my ideas; cuz I want to improve them with the others ideas if they're not good idea
07:38
I don't know. I've never worked as freelancer and never looked for customers.
but that sounds reasonable
@Harish -> check this:
@Harish -> check this:
@Harish -> check this:
@Harish -> check this:
it has some good tips for designing a good personal website
and this for personal websites:
@Harish -> check this:
@Harish -> check this:
OK.
That are really helpful.
I'm going to check all of them.
07:44
Thanks MRS1367.
and thanks @MarcinJuraszek
Of course.
see you all later.
Bye.
have a nice day
 
1 hour later…
09:01
Is it possible to exclude files from code analysis?
R# generates some files that generates warnings
tried with pragma but no dice
 
1 hour later…
10:09
hey @linguini
@MRS1367 Hi, morning & how r u?
tnx mate, what about u?
@MRS1367 Good thank u :)
@MRS1367 Sunday...relaxing at the same time doing some research about auto color correction of images
did u do ur task as well?
@MRS1367 Your code is really good(after re-factoring) & it does the same 1 click 1 image, 2nd click 2 images etc..!
@MRS1367 That should be fine.
:14894248 Off topic, do you know the answer for this question;Current century (2 digits)?
10:12
sounds good
@MRS1367 Thank you once again.
np :)
@MRS1367 Current century (2 digits)?
u want to calculate the centuries (every 100 year) with two digits?
@MRS1367 It is a question from AForge.net(i'm trying to register over there)
@MRS1367 Do you have any exp in Auto color correction of images?
10:14
@linguini -> imo, it's easy to solve
@linguini -> in MATLAB, I do something like what u want
@MRS1367 Any example in C#
@linguini -> for calculating centuries in 2 digits?
@MRS1367 Do you have any sample of Auto color correction of images? using C#
How do we NOT want people to treat design patterns?
@linguini -> I use this for achieve to my goals in most of the programs
and check this for what u can do with it:
download .NET version from here:
and check this for its AutoColor feature:
10:33
@MRS1367 It looks good. I need this auto color correction.
@MRS1367 Can we do RGB manual correction with this component?
@MRS1367 Regarding AutoColor, I don't see any sample? Sorry to bug you.
in this feature (ColorBalance), u can change RGB colors in three levels (Highlights, midtones, shadows)
and u can see some images in the end part of the page
I use most of them in MATLAB
and some of them in C#
it has only sample codes in Linux OS Bash Script
@MRS1367 Got it
u must write ur codes with it's sample in Linux OS Bash Script
just pay attention to what u must to pass to that functions
10:47
@MRS1367 Bash script :(. No C#
the developer(s) describe(s) all arguments as well.
@MRS1367 well said
it's very easy to write them in other languages
@MRS1367 Current century (2 digits)?? Do you have an answer for this Question?
RoundUp(2014/100)=21
and I registered in that
10:50
@MRS1367 awesome
@MRS1367 Do you work with WPF?
@MRS1367 I got some problem with the WPF design in ListView. If you have some time I can explain to you.
just explain it
@MRS1367 In my listview, I could see the image and its name..no problem. Then i thought of adding col to make it more but I don't see any images.
Code: <ListView x:Name="ListViewImage" Width="Auto" SelectedItem="{Binding ImageFileName}" Grid.Row="0"
ItemsSource="{Binding Path=AllImages}" Margin="0,10,0,0"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode= "Recycling" Height="333" VerticalAlignment="Top">
<ListView.ItemTemplate>
<DataTemplate>

<DataTemplate.Resources>
<Storyboard x:Key="WaitingTimeline" Timeline.DesiredFrameRate="10">
and it's better u ask ur WPF chat-room
11:02
in there, u can finf more experts

XAML

A friendly room for discussing XAML based technologies. Our Co...
@MRS1367 ok thank you mate :)
@MRS1367 Thank you so much for all your suggestions & help :)
I'll check ur question in my free time
in Iran, Friday is weekend
@MRS1367 Ah right I forgot.
11:29
gmorning
@MRS1367 you're in iran?
11:55
This is awesome
> organizations which design systems ... are constrained to produce designs which are copies of the communication structures of these organizations
 
1 hour later…
13:09
@Steve -> yes @Steve
@Steve -> why? how?
lol
what why?
@Steve -> why I'm living in Iran?
just curious is all :)
;)
@Steve -> where r u from?
13:28
sorry playing games, mi usa
which video game?
call of duty
im getting my ass kicked online
not my day i guess
Sam
Sam
13:50
could anyone tell me if I use a datagrid, populate it with a linq query tolist is there any reason I shouldn't be able to edit the cells? I have no obvious properties set to prevent this like readonly.
I wandered if I can't do this and need to set the item sorce as a datatable or something
OK datatable didn't seem to work I was thinking of something else I was doing earlier with crystal reports.
 
1 hour later…
15:15
Hi Giys
Hi Guys*
hey @linguini
could u solve ur problem?
@MRS1367 Yes. At the same time i'm using Aforge libraries.
@MRS1367 Conversion problem with Afroge. "cannot convert source type aforge.doublerange to target type Aforge.range"
@linguini -> sounds good
:14896644  YCbCrLinear filter = new YCbCrLinear();
            filter.InCb = new DoubleRange(-0.276, 0.163);
            filter.InCr = new DoubleRange(-0.202, 0.500);
            // apply filter
            filter.ApplyInPlace(image);
            System.Drawing.Bitmap newImage = filter.Apply(image);
            newImage.Save(@"C:\Users\krangaraj\Pictures\AAA\4X6\Test1.jpg");
and in which line error occurs?
15:25
@MRS1367 Line 2 & 3 filter.InCb & filter.InCr
wat
1
A: What technologies were used to create Outlook Web App 2013?

Scott HanselmanI don't don't know but it smells like ASP.NET MVC and a custom MVVM JavaScript framework that was minified with the WebGrease minifier.

Also, close please :)
15:49
@linguini -> change that two lines to the following:
filter.InCb = new Range(-0.276f, 0.163f);
filter.InCr = new Range(-0.202f, 0.500f);
@MRS1367 Wow..the result it wasn't the same as mentioned in the web. Moreover the saved image size is 8MB and original source file is 2MB.
what's the problem now @linguini?
@MRS1367 The results are too bad. Why t eh saved image is 9MB..its too much
Is ur Final Image bigger in width and height than the Original Image?
Is ur Final Image bigger in resolution than the Original Image?
@MRS1367 resolution is same but the file size is too much
16:02
I dunno why
whether u did something in wrong way or it's for the algorithm of used codes
backup of ur original image
and then use filter.ApplyInPlace
may be it works better than filter.Apply
:14897033   HSLLinear filter = new HSLLinear();
            // configure the filter
            filter.InLuminance = new Range(-0.276f, 0.163f);
            filter.OutSaturation = new Range(-0.202f, 0.500f);
            System.Drawing.Bitmap newImage = filter.Apply( image );
            newImage.Save(@"C:\Users\krangaraj\Pictures\AAA\4X6\Test1.jpg");
@MRS1367 I got to go & i'll catch you tomorrow. Have a good evening. Thanks Mate :)
have a nice day
HSLLinear filter = new HSLLinear();
// configure the filter
filter.InLuminance = new Range(-0.276f, 0.163f);
filter.OutSaturation = new Range(-0.202f, 0.500f);
filter.ApplyInPlace( image );
//System.Drawing.Bitmap newImage = filter.Apply( image );
//newImage.Save(@"C:\Users\krangaraj\Pictures\AAA\4X6\Test1.jpg");
@linguini -> check the above
hey @Harish
what's about u and ur Personal website?
17:00
Hi I'm on mobile & once I go back home I'll check it out.
Thank u
hey again @linguini
@MRS1367:yes
I was wondering how come the output file size is too big!!
By any chance have you tested from your side.
@linguini -> not now @linguini
hi all, has anyone here used asp.net mvc with html5 history or history.js plugin ?
 
3 hours later…
20:05
@RoelvanUden You got a minute to help me with this asm?
@CCInc Yes
Alright, cool
I figured out how to display the full asm code pastebin.com/L0SBJyiV
So I'm pretty sure what I'm looking for is
.text:00000000006AF679                 cmp     eax, 0FFFFFFFFh
Where 0FFFFFFFFh is some sort of bad value
You want to know about "TaskSchedulerMasterImpl[%p]: Database n" yes?
@CCInc FFFFFFFFFFF = -1
Well, I want to know why that jnz jump isn't jumping
Hm.. okay
cmp eax, -1 means it compares result from a call (usually eax) to -1
then jump if not zero, thus, if it differs
20:10
Problem is, I can't figure out the relationship between eax and the variables/call return values
.text:00000000006AF66F                 mov     rax, [rbp+var_48]
.text:00000000006AF673                 mov     eax, [rax+170h]
var_48 is one of the params, moves to rax, then threats it as a pointer and gets +x170 into eax to compare with
Seems like var_48 is a pointer to some result struct
.. am I basically at a stuck point?
Hm, what is unclear?
It's clear
but since I can't see the struct structure
or the actual value of eax
You can just put a breakpoint and check it out
20:19
Alright, I'll try that
It'll be interesting, as this is a linux program, so I'll have to debug through a vm
Hi Guys, anybody can tell why this message appears even-though i'm using Aforge Libraries `Error	1	Cannot implicitly convert type 'AForge.DoubleRange' to 'AForge.Range'	`
At this point:filter.Saturation = new DoubleRange(0.5, 1);
20:38
@linguini -> cuz u must pass a Range to filter.Saturation not DoubleRange
filter.Saturation = new Range(0.5f, 1f);
@MRS1367 Hi. You are correct. I was wondering the actual code is not working.
hey again @linguini
what's the problem?
:14899404 System.Drawing.Bitmap image = (Bitmap)Bitmap.FromFile(tete);
            HSLLinear filter = new HSLLinear();
            // configure the filter
            filter.InLuminance = new Range(0, 0.85f);
            filter.OutSaturation = new Range(0.25f, 1);
            // apply the filter
            filter.Apply(image);
@MRS1367 This is not at all working. I tried both Apply & Applyin. No change
if u use Apply, u must save it after
but with ApplyingInPlace it overwrites on the original file
anyone worked much with resources and localization?
20:54
@JohanLarsson -> I've worked with resources not localization
do you know when they are loaded and if there is a suitable event to listen to?
idk, but imo, they will load when the program needs them by default
but I think that u can change the time for loading them
@MRS1367 See the comments in the code/
HSLLinear filter = new HSLLinear();
// configure the filter
filter.InLuminance = new Range(0, 0.85f);
filter.OutSaturation = new Range(0.25f, 1);
// apply the filter
filter.Apply(image);
image.Save(@"C:\Users\krangaraj\Pictures\AAA\4X6\karthik.jpg");// No Change with the Image

HSLLinear filter = new HSLLinear();
// configure the filter
filter.InLuminance = new Range(0, 0.85f);
filter.OutSaturation = new Range(0.25f, 1);
// apply the filter
filter.ApplyInPlace(image);
image.Save(@"C:\Users\krangaraj\Pictures\AAA\4X6\karthik.jpg");// Changed with the Image
@JohanLarsson -> I've never heard about an event for listening to loaded parts of the resources
what do want to do @JohanLarsson?
I think I solved it, had a dumb, there was no error :D
21:06
@MRS1367 Is there any library which does the auto color correction when i load a collection of Images?
@linguini -> I'll check ur codes for interacting with AForge.NET in later time (tonight) and help u to solve it
@MRS1367 Ok great. If there is any library which does the auto color correction would be great
@linguini -> idk, but it's very easy to solve
@MRS1367 how?
just store their paths in a list or array or sometning else like them and then use For loop or For Each loop on them
and place ur codes in the body of the loop
21:21
For example                                                                                                                          string destination_dir = @"C:\Users\krangaraj\Pictures\AAA";

string[] extensions = { ".jpg", ".gif", ".jpeg", ".png", ".tiff" };

string[] dizin = Directory.GetFiles(destination_dir, "*.*")
.Where(f => extensions.Contains(new FileInfo(f).Extension.ToLower())).ToArray();


foreach (string file_name in dizin)
{
///does eveyrthing
}
If you can help me:
1
Q: Only top portion of image is saved

Outlaw LemurI'm using the following code to save a picture of a canvas if (!Directory.Exists(DefaultSettings.MainPath + "//Skeleton Images//")) Directory.CreateDirectory(DefaultSettings.MainPath + "//Skeleton Images//"); System.Windows.Size size = new System.Windows.Size(canvas.Width, canvas.Height); ca...

+50
@linguini -> yes
@MRS1367 How about applying color correction?
I don't have any idea for now. cuz idk why ur codes not work correctly
I'll check them tonight
@linguini -> so, u can ask a question in SO like ur prev question
@MRS1367 ok mate..thank you so much.
21:34
I'll check ur codes tonight @linguini
@MRS1367 Gotcha..thank u very much:). When do you sleep? (just a question don't mistake me)
I'm in my workplace now
and working on my proj
I don't sleep today till tonight when I go to home
@MRS1367 Wow man..u must be tired.
yes
but I must complete my task ontime
@MRS1367 Please continue with your work. Good work & take rest after your work :)
21:40
tnx @linguini
what's time in France now?
in here 01:08 AM
@MRS1367 Its 10:40
@MRS1367 You really need to sleep after work..because you go back to work tomorrow right?
yes
but I can handle it
@MRS1367 Very good :)
I use to this situations
Hello, how would I make the field name "UserName" dynamic. i.e. in one instance I might want to filter on the UserName column, in another a different column.

from r in _db.tableName
where r.UserName.Equals("Foo")
select new
{
r.ColA,
r.ColB,
r.ColC
}
21:49
@MRS1367 ok mate.
public ResxTranslationProvider(ResourceManager resourceManager)
{
    _resourceManager = resourceManager;
    foreach (var culture in CultureInfo.GetCultures(CultureTypes.AllCultures))
    {
        var resourceSet = _resourceManager.GetResourceSet(culture, false, false);
        if (resourceSet != null)
        {
            _languages.Add(culture);
        }
    }
}
_languages is empty after that
22:06
Can anyone offer some advice on Web Services in .NET. Previously I've written web services with ASMX, for POX and Json. I've read a lot about ditching ASMX and using Wcf. My problem is I need to support POX and Json. Wcf seems overkill for what I need. But now I've come across Web API. I noticed it is similar to Wcf.
My question is, with regards exception and error handling in the Web API service, is it best practice to return a custom error object
yeah, Marcin is here!
hi @JohanLarsson
or are there better alternatives
@Tommo1977 no idea in Sweden
@Tommo1977 asmx is ok, but I would probably go with asp.net WebAPI for new projects
22:10
@MarcinJuraszek Yeah that is what I've read WebAPI is a good choice. Is it good practice for that I try catch all code, capture any exceptions and response with my own custom error object like

public class MyErrorOb
{
public int ErrorCode {get;set;}
public List<string> ErrorMsgs {get;set;}
}
Then my response can be either Json or Xml
depending on what the initial request was
solved the resource thing, _resourceManager.GetResourceSet(culture, true, false); was they way
@MarcinJuraszek Did you see my question ?
you mean use catch(Exception ex)?
yes catch all errors and then return my own custom error object like

public class MyErrorOb
{
public int ErrorCode {get;set;}
public List<string> ErrorMsgs {get;set;}
}
returning an aggregate object is a good idea. using catch(Exception ex) is not
22:17
why not using catch (Exception ex) ?
because you can catch something that you shouldn't
I see, but if the try catches are around those that I want to catch ? that is fine ?
if you catch specific exception type you're expecting to be thrown in certain situations, that's totally ok
thank you
22:57
@MarcinJuraszek Is it also common to return a custom object error to a soap WebApi Client
I think so
rather than a faultexception
23:20
Is there a way to turn off the vs code analysis for R# generated files?

« first day (1226 days earlier)      last day (3948 days later) »