« first day (2139 days earlier)      last day (2810 days later) » 

C4u
1:00 PM
@ntohl Check the addon stylish.
 
I have it, just the mozilla format is not right for opera
I think
 
I think it's different with AMOLED, but I am pretty sure it drains more on older display types. @Loetn
 
I try to paste something into stylish, but there are errors in it
 
War
@C4u how does that work ??? ... or should I say ... I can't update the SO code so what does one do with the stuff on github to get SO to look like that?
 
C4u
Install stylish. It will overwrite the css code.
 
1:02 PM
yeah, LCDs drain more with black, AMOLED less, I believe @Loetn
 
C4u
In stylish define a new style and copy&paste the code from github. Save and you are done.
@JakobMillah Coders who are looking for their expenses on current arnt paid fairly in their job.
 
@JakobMillah Apparently :) quora.com/…
 
C4u
Or the current price is just evil. Cant be that much.
 
You would think otherwise
 
1:04 PM
@TomW i am talking about WCF Service Application
 
@Kob_24 you said
> it works fine in wcf Serivce library but not in application
 
and WCF Service Library includes app.config file
 
what works fine in the library?
 
in application
 
user47589
lol
 
1:05 PM
\o/
 
@Amy o/
 
C4u
@War Stylish in this case isnt an adjective, its the name of an adddon.
 
War
@C4u stylish ?
 
yes yes!!
its an addon.
 
1:06 PM
@TomW if i use app.config to connect to db
 
C4u
@War S t y l i s h
 
@Amy ponies can't swim?
 
War
hmmm not an addon I have ever played with
 
user47589
what makes you think that
 
War
have to give that a look in to :)
 
1:07 PM
this works.. but if i create wcf application and add same string in web.config
it wont work
 
@Kob_24 libraries don't load their own config file, you have to host it somehow, and the host will read it
 
lol .. it's about drowning if you look closely..
 
so how are you hosting this library
 
C4u
@War addons.mozilla.org/en-GB/firefox/addon/stylish Yeah its awesome. You can just write styles for yourself. For any website. I mean, css is a bitch, but its worth it.
 
user47589
i have no idea what you're talking about, @ElieSaad
 
1:07 PM
@Kob_24 hopefully that is only accessable internally as you just pasta'd username PW in the connection string
 
EVERY SINGLE TIME. GOSH
lol <--- it's a drowning dude. Look at him.
 
War
@C4u css is awesome :)
 
C4u
Bitches can be awesome.
 
War
@ElieSaad he could just be cheering, or taking part in a mexican wave
 
@Froxer dont worry bout that
 
1:09 PM
@ElieSaad Girls can drown too :)
 
Ok
no they cant, they turn into mermaids
 
War
@Loetn only the ones with small boobs
 
@Froxer Ow right
 
@Loetn Yeps ^^
@scheien Saw that. Pretty big difference :P
 
user47589
um, ok.
 
1:10 PM
Hi Amy
i got the job btw
 
it's working
copy paste version didn't work. Only from userstyles.org
 
@Kob_24 but there is no connection error when using the app?(not the wcf service)
 
How does registering hours work in companies if its 30 min past an hour.
Do you round it up ?
!!wat
 
War
@Froxer I would but i'm an asshole
 
C4u
1:12 PM
@Froxer We are saving even seconds.
 
@juanvan no connection error
 
@Froxer We are working with percentages of an hour here
 
its not reading the string at all
 
War
either that or fill it in with 0.5 hours
 
and idont get it why
 
1:13 PM
well in their tutorial i saw just hours, no minutes
so i guess i have to
 
Tutorial to register time? Shiet
 
you set a break point on the DbContext and it is not executed
 
Shieeeeeeeet
not tutorial
 
Yeah, some guidelines or whatever. That's some deep shit documentation. We don't even have anything close to that internally.
 
The walthrough of the systems
 
1:14 PM
Figure it out yourself or ask
Also a major reason why I am leaving :P Documentation sucks
 
rip
 
So anyone here is using MassTransit?
 
im still waiting for my computer..
3rd day and counting
#FeelsUsefulMan
 
@Froxer We work on half hours here. If work only takes 10mins, the customer is still billed 0.5 hour.
 
Hmm ok
 
1:16 PM
we use to bill the hour all the time
everything is an hour minimal
 
@Froxer that's pathetic
not uncommon at all, but wtf
 
@Froxer It took like 1 ½ month before I started doing work here..
 
1 and HALF month
how!?
 
Don't ask me
 
Do you mean until you learned the codebase
Or do you mean until you got the tools to do so
 
1:17 PM
Nope, until they actually gave me some real tasks to do
 
oh
idk, im gonna be happy either way
i just want to learn
 
I hope you got good tutors
 
you're still looking for jobs, right
 
Yea, my mentor is good
 
Because until you finish probation, they can be like 'oh actually we don't need you, bye'
 
1:19 PM
No, im not actively looking for a job anymore.
Should i be worried ?
 
@TomW Quit and looking
 
Oh ur talking to jakob
 
And you too I believe
Unless you got the fulltime straight off the bat :)
 
@Froxer no, you
 
Ok i mean yea, its 6 months thingy
 
1:20 PM
Then you are not saferoni
 
but they didnt just hire me
they hired 2 backends, 2 front end juniors
 
Coolz. I want to become frontend dev.. Shiet
 
isnt it worse pay tho
 
Just saying, if this is any indication of their attitude you might before long wish you found something better
 
Might be. Money isn't everyithng
 
1:21 PM
there's a front-end position for you
 
It feels good tho @TomW so idk what u mean
 
@scheien A lot of jobs all over the country, but I am not moving my ass :)
 
@JakobMillah why on Earth would you want to subject yourself to such a thing?
 
@mikeTheLiar Because backend is boring
 
@JakobMillah :)
 
1:23 PM
why is it boring
 
@JakobMillah u fukken wot m8
 
hahhaha
 
@Froxer I mean, being disorganised and not bothering to do things that are necessary for a new hire to start work is not uncommon, but it does sort of indicate that they don't give a shit
 
i like to debug my backend code for some reason
im weird
i mean they ordered it before i begun
its just postnord is bad
 
I'm an esthetic person :P I love UX development
 
1:24 PM
@Froxer lol ye, they are.
 
@Froxer Postnord huh? They are becoming our customers soon...
 
@Froxer I read that they didn't deliver packages intentionally.
 
I get that feeling that they just didnt give a damn or something.
so i wouldnt blame the company i am at too much
 
It's been holiday and shizzle
 
i guess
i mean i cant complain
they let me just pluralsight and chill
i really cant complain :P
i have my own laptop always with me with a IDE
 
1:26 PM
It can't be worse than what I've had. Last 2 months I pretty much daily registered "8 hours, waiting for job. personal project"
 
wow, how
Another q
so i started Monday
 
I don't know. I've spoken to project manager for many months that I have nothing to do. I get nothing
If I get something, I am done within an hour
 
i was here 10.00 for a intro went home 17.30~, then yesterday i came 10, went home 18~
today i came 8.00 - planning to go 18~
 
why stay so long?
 
Does today fix yesterday and the day before ?
 
1:28 PM
that depends on your company
 
Depends on your company.
 
That depends on how the rules for flexitime are
 
Ok
Well, on the intro they said that for instance i could work 35h one week and 45H the next
 
Where I work they don't care as long as I have the required amount of hours by the end of the month. (or more)
 
and be fine
but what if i do less half the week, and more the other
 
1:28 PM
We have 30-+ flex time for hour customers, but we can flex quite a bit. It's all coming down to having those 40 hours at the end of the week
 
@scheien More = ok, less = oewch
 
@Loetn Less = WTF your problem. (I'd assume)
mostly because they don't have a proper flexi time system
 
@Kob_24 any luck?
 
i'm off until tomorrow. bye bye :)
 
bb
 
1:32 PM
bb
 
bye bye bye, delilah
 
soo
hmm
 
how can I make code within a task threadsafe?
						Task.Delay(500).ContinueWith(t =>
						{
							if (m_ProjectViewModel.JustSaved.Contains(_fileChangeArgs.FullPath))
							{
								m_ProjectViewModel.JustSaved.Remove(_fileChangeArgs.FullPath);
							}
						});
Can I grab a lock on m_ProjectViewModel in this instance?
 
War
@Asheh make it atomic
 
lock (m_ProjectViewModel)
{
}
?
 
War
1:33 PM
the problem with locks is that you rely on all places doing threading to use the same lock object
 
i think in this case i can
 
War
if other stuff uses a different lock object to do the locking the code isn't thread safe
 
Yeah i see what you are saying
hence why you tend to use static objects
for locking?
 
War
I gues sthe issue is scope
 
I once saw code in our codebase that locked on a [ThreadStatic] private object _lock;
I've changed my mind several times on whether that is retarded or not
 
War
1:35 PM
if that m_ProjectViewModel is in the parent class and that parent class is the only thing interacting with it directly you could wrap all calls with a lock on that
 
@juanvan naa
not yet
 
War
@TomW yeh i often wonder that ... is there even a right answer to that?
 
i use this now
            Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
 
War
I tend to take to locking on the object in question
 
@War well I think Kendall explained ThreadStatic to me once in a way that cast doubt on it
 
1:36 PM
lets see whats gonna tell
 
But I'm still not sure
 
War
but that raises some weird questions too
 
A threadstatic member is not always necessarily a different object in each thread, only if you reassign it on that thread, I think
 
Additional information: exePath must be specified when not running inside a stand alone exe.
 
War
@TomW threading is always a weird place ... no matter how much you think you've got it there's always some dumb ass gotcha
 
1:37 PM
hmm
 
War
@TomW ah that one ...
 
@War where if that is true, the lock would probably work as intended but I don't see what the purpose of the ThreadStatic is
 
what exePath should be specified lol
 
War
static string foo = "bla";
thread.start( () => {  foo = "some value" } )
thread.start( () => {  foo = "some other value" } )

What's the value of foo?
 
@Kob_24 why are you doing that?
 
War
1:38 PM
threading is evil
 
because i am trying to load the config file and read the string from it programmatically
 
C4u
I would await it.
 
War
as long as foo is not replaced in any thread it should be ok
 
@Kob_24 why?
 
C4u
Then the question would be answerable.
 
War
1:39 PM
soon as you start assigning things ... shit gets weird
 
my app does not recognize my web.config file
 
War
@C4u has the right idea though ... assuming that's possible ... await the other shit then evaluate based on foo
 
i have a sql function, dbo.myFunction, and it has RETURNS [nvarchar](max) WITH EXECUTE AS CALLER AS EXTERNAL NAME [NetUtil].[UserDefinedFunctions].[myFunction] from what I'm finding through google, it sounds like the function is calling an assembly somewhere?
 
War
@Bardicer sounds like SQLCLR
 
@Kob_24 what kind of app?
 
1:41 PM
pardon my ignorance...but... what's that? common language runtime?
 
web/windows service/console?
 
where would i find the actual code it's doing?
 
@Kob_24 what data access are you using in the App that it does not see the web.config - think it is an MVC app?
 
War
@Bardicer yes it is ... its a means to write sproc code in C# say, then embed that in the db, so when I make a sproc call I run the C# code, usefull when you want to do some particularly complex sproc stuff
I used to use this to do things like data cleaning processes, you can fill a table and have it do things like fix casing or lookup missing stuff on an API hosted on a remote server that returns json
Fixing addresses if i recall was a good one
for each row look the data up on the PAF then correct the various components as needed and write them back to the row ... much easier to do this in C# code than in a cursor but having the C# running directly in the SQL db service often meant it was way more efficient than connection and pulling the data, altering it then pushing it back
 
Wcf application
 
1:51 PM
ah, i see
just talked to my boss, same concept
we're using asp.net mvc views as email templates
so call the url, pass the params, get the html, then stick that in the email body
 
@Kob_24 Do you mean the WCF Service Application project template in Visual Studio?
 
somewhere in there, characters like â„¢, ©, ¤ are getting turned into "???"
 
yes excactly thats what i mean
@TomW
 
Right, that is a web application. It's hosted in IIS
Or IIS express if you launch it directly from VS
And I guarantee that the configuration system works, it has worked since it was new, it works now.
 
and thats what i was trying to tell , there is two templates one called WCF Service Library and one called WCF Service Application..
the service library template has app.config file and the second one has web.config file
my connection strings works with the app.config but not with the web.config file
 
1:55 PM
mwahahaha i found it
 
@Kob_24 define 'works'
 
ok wait
 
in service bus scenario is there big difference between InMemory, MSMQ, RabbitMQ persistence?
 
look at the first picture
all the parameter of the connect are null
this happens if i use web.config in WCF Service Application
the second is for app.config in WCF Servcice Library
 
War
@QuietNaN not really ... of those provide message queuing
 
2:06 PM
@TomW or does any one knows how to configure the app.config file in WCF Service Library to recognize the WcfServiceFactory
 
@Kob_24 what does that have to do with the previous question?
 
in WCF SErvice application its possible to write in the svc factory = "FactoryName"
@TomW because any of these answers could solve my problem
 
what is Get_Connection_String?
 
i use the WCF Service Application just because i am note able to configure my factory from my app.config
its a method in the SDK that is implemented 100 years ago hehe. i have to connect trough it to collect data.
but thats how is the methods looks like
        public static bool Get_Connection_String(out string oConnString, out string oDbProvider, out string oDbUser, out string oDbPwd, string iConnectionName = null);
 
You aren't asking the right questions. You've shown no evidence that your application can't read its config file. I expect that it can, just the SDK stuff you have is broken
 
2:10 PM
its not because as i told u tested it and it works fine
i tested it with WCF Service Library and it works as a charm
 
ok...so is there a way to be able to render ALL characters? currently, we're using Encoding.UTF8 which is resulting in things like â„¢ being converted into question marks. (That's ALT+0153).
 
In your GetData method I guarantee that if you put a line ConfigurationManager.ConnectionStrings["sql_skfuser"] it will return your connection string.
Your problem is in this other junk, not in the configuration system
 
i tried it
 
War
Jeez I hate security problems
 
so far i'm just finding this problem in connection with php
 
2:11 PM
i just drop the first question.. What about if i want to configure factory in app.config in WCF Service Libray
 
War
I need to reset a users password in SSO when all I have is the users username and their temp password + the new password they want in one of the many apps plugged in to SSO
such a dumb scenario to be in
 
if you look here
they wrote like this " If you are using fileless activation and do not have an SVC file, change your web.config instead"
 
@Kob_24 you don't, the service factory is part of the hosting environment i.e. the application. A library, as I've told you repeatedly, is not an application, it's a library. It doesn't host anything itself, so it can't use a service factory
 
alright how to configure unity in WCF Service Library then Lol ?
I Created a host and try to configure it there
but i still get the smae issue
 
You don't
As I keep telling you, it's a library
 
2:15 PM
complaning about my constructor is parameter less
 
Unity belongs in the composition root, which in the hosting application, not in a library
 
War
^
was telling someone that the other day
 
I don't understand why you're making this so difficult
Just use it the way it's designed to be used
 
War
can't recall who it was ... someone was trying to put IoC stuff in to the their lib
I was like ... wtf ??
 
isn't that what AddNewExtension for?
to create a lib as extension, than add it to the component root of Your app?
 
2:53 PM
Visual studio is being rude
nvm, im retarded.
In my head i was doing CTRL - Alt - C
In fact i was doing CTRL - Alt - N
 
3:11 PM
Anyone there ?
 
i'm here
but i'm the least helpful person here
 
Thats ok, im just happy you are here :)
I found the answer on SO
Was curious how to keep the console app window open after executing in VS.
244
Q: Preventing console window from closing on Visual Studio C/C++ Console application

MartinThis is a probably an embarasing question as no doubt the answer is blindingly obvious. I've used Visual Studio for years, but this is the first time I've done any 'Console Application' development. When I run my application the console window pops up, the program output appears and then the wi...

I have always done Console.ReadKey();
But this is a better solution
 
lmao
i just had the same problem
i've been doing pure web application development and was testing some code in a console app
and was like 'wait, no! don't close!'
 
Yea same
:P
CTRL F5
 
my fix was to set a breakpoint
 
3:19 PM
Yea, that works too
I was just looking for the most clean solution
 
yeah
console.readkey()
my console development was in college and used c++
but cin >> don't work on c#
 
Ok
Cool
 
console.readline() is better
for me at least
 
Not neccessary
Simply CTRL F5 has the same function without needing to add any extra code / set any breakpoints.
It will await input to close.
 
3:35 PM
Hello everyone
I have a quick question
 
...
 
I have a biitmap .bmp image which is 1000 * 1000 pixells
I use this to load it: private BitmapSource initialBitmap = new BitmapImage(new Uri("C:\\Users\\Khalil\\Desktop\\Original.bmp"));
Why after I load it, it is 800 * 800?
@ElieSaad ?
 
War
Colleague gets given a bug to fix, fixes it ... generates 2 more bugs, so I roll back his change.
His argument: I shouldn't have done that as his code fixed the bug it was meant to
 
No clue, but i was checking some SO ..
127
Q: Resize an Image C#

inikiAs Size, Width, Height are Get() properties of System.Drawing.Image, How can I resize an Image object at run-time in C#. Right now, I am just creating a new Image using: // objImage is the original Image Bitmap objBitmap = new Bitmap(objImage, new Size(227, 171));

 
War
Apparently i'm the one in the wrong ... i'm the dev team Manager he's the one with the attitude ... have temped to tell him to go fuck himself
 
3:47 PM
yeah why not
if he reports to you
 
@War Depends on what the bugs are. If they're worse bugs, sure, but if they're minor bugs...
 
War
I've told him before that the problem was that he couldn't solve the problem he was working on because he was missing some key knowledge and he flipped
I got told I was too hard on him
Is it really too much to expect a ".Net Web Developer" to understand Tasks?
bear in mind this guy likes to tell me baout his "15 years of experience in the industry"
 
Not necessarily to understand, but if you don't understand, learn
absolutely
 
When you say key knowledge, are you referring to something he could have googled, or something he needed to be told by a manager or similar?
 
War
@KendallFrey I didn't mind so much that he generated 2 new bugs ... my issue was that he got shitty with me over rolling back his failed attempt at fixing the problem at hand
he seems to think that calling a task like this is a good thing and doesn't understand why its bad ...
var result = SomeMethodAsync().Result;
 
3:53 PM
@War Well if the new bugs were minor artifacts of the changes, I'd be pissy too.
 
War
I have repeatedly explained it to him
 
@War oh. oh dear
 
War
he was doing something ...
Session["Token"] = Api.GetAsync("Auth", loginDetails).Result;
 
hello:)
 
War
couldn't understand why when I said "that session variable might not be there on the next line where you want to use it"
 
3:56 PM
@War I don't understand either.
 
War
I had this conversation with him (the same conversation mind) at least 10 times over the course of a month
 
I have one quick question if you guys have time a moment to spare:
 
War
@KendallFrey the method in question queries a remote API to get the token ... if the call doesn't await the token hasn't yet been resolved so the session variable hasn't been set
it's not hard to figure this stuff out
especially if you have 15+ years of xp in this
 
I'm still confused. I don't know ASP.NET
 
War
@MooseTheTitan see star board, top item!
@KendallFrey you not used Tasks before?
 
3:58 PM
Yes
 
War
this is just a c# thing ... nothing to do with asp.et
 
But I'm not sure what you're referring to with missing data or whatever
 
War
var result = SomeAsyncCall().Result;
is result what i want on the next line of code?
 
If what you want is the result of the task, yes
 
War
wrong
 
3:59 PM
no
 
War
var result = await SomeAsyncCall();
 
.Result returns the result of the task
 

« first day (2139 days earlier)      last day (2810 days later) »