« first day (1152 days earlier)      last day (3813 days later) » 

11:00 AM
target.Categories = CategorieBijlage +", "+ target.Categories);
I would do the second option. But most people use the first. string.format. whats the diffrence why use one over the other.
Remember im self taught C# and OOP. Im still learning and want to know why and whats best.
 
Ok, I forgot to mention that Categories is not a String Object
Ow got damn it
it is xD
 
Off topic: i need a 3rd monitor why doesnt my boyfriend beleave me.
 
because actually you need 4 monitors: 1 for your own desktop and 3 for each RDP session :p
@no9 you still with us?
 
no9
sorry had a phone
checking now
 
my desktop is usless at the moment im on vpn
 
11:07 AM
np @DaImTo
i mean @no9
 
no9
i tried Task ... but I think I dont understand it
Task.Factory.StartNew(() => this.eventAggregator.GetEvent<LogToApplicationEvent>().Publish(uli));
 
then try to use the Background worker
 
no9
for instance
 
Background worker is way easier to use in my opinion
I gave you 2 options :) with tutorials on how to use either 1 of them
try to figure it out, if you have questions feel free to ask them :)
 
no9
thanks a lot Razor :)
I will hang around this room
 
11:10 AM
Your welcome!
@DaImTo lets play HANGMAN!! :D
 
i cant im busy swaring at sql server 2005
custmers that use this should be forced to upgrade
and I should make soemthing for lunch
 
@DaImTo too bad, but indeed customers should be forced to upgrade
@DaImTo i fixed my problem :)
 
Hi guys, I have a function that is supposed to run a Stored Procedure, is correct to do it this way:
EXEC dbo.SP_BaseData @Variable1, @Variable2, @Variable3,@Variable4
 
@MishMish yep, that is the correct way, if the parameters are filled properly
 
why am i getting this error
Incorrect syntax near the keyword 'EXEC'.
am i really that blind :D
This is the whole function:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE FUNCTION Accounting_BaseData
(
@service_id int,
@StartDate smalldatetime,
@EndDate smalldatetime,
@ShipmentDate varchar,
@CommandTxt Varchar(MAX)

)
RETURNS Table
AS
RETURN

EXEC dbo.SP_BaseData @service_id, @StartDate, @EndDate, @ShipmentDate
 
11:23 AM
Does your SP exists?
@MishMish
are you referencing to the correct DB where the SP is created in
look at the Function name and the name of the SP you want to execute
it's different
 
@MishMish think you are forgeting output maybe?
 
hold on ill check again
hmm no still same error...
This is how my procedure look, and it works fine when i execute it:
USE [Info]
GO
/****** Object: StoredProcedure [dbo].[SP_BaseData] Script Date: 12/11/2013 12:31:16 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
ALTER PROCEDURE [dbo].[SP_BaseData]
@service_id int,
@StartDate smalldatetime,
@EndDate smalldatetime,
 
wheres the output in the stored procedure?
/me never tried function to run stored procedure this could be intersting
 
me neither
 
what do u mean by output mate? :)
the result if i excute it or?
 
no9
11:36 AM
@RaZor I have a question ... can I use one bgWorker in my loop or do I need to reinitilalize it ... currently it runs first time, but then its buisy
 
Code?
 
CREATE PROCEDURE GetImmediateManager
@employeeID INT,
@managerID INT OUTPUT
AS
your stored proecrdure doesnt apear to have an output
it just runs.
 
no9
eerm ... its like the question stackoverflow.com/questions/20515598/…
I used the if (worker.IsBusy != true)
{
worker.RunWorkerAsync();
}
where the event call was and created the methods _doWork and _RunWorkerCompleted
 
ahh so i need to add these under the AS statement?
ALTER PROCEDURE [dbo].[SP_BaseData]
@service_id int,
@StartDate smalldatetime,
@EndDate smalldatetime,
@ShipmentDate varchar,
@CommandTxt Varchar(MAX)
AS
BEGIN
 
no9
i initialized the bGworker in the constructor
and i keep using it .... should i dispose it somehow in the loop im iterating trough ?
 
11:39 AM
@MishMish try just adding output before your AS
 
@no9 use the RunWorkerCompleted Event. It is automatically executed when the BGW is completed running it's tasks
 
@DaImTo Okay ill add OUTPUT after my variables
 
you need to run the foreach loop inside the bg.DoWork method
 
@no9 You might just want to use a Task and Task.Wait()
 
do it like this:
 
no9
11:40 AM
@Razor it works ... its just when next file is processed in the foreach loop the worker is still busy and it skips it
 
then reinitialize it
ow wait
 
no9
should I worry about disposing?
 
if you reinitialize it no I guess not
 
no9
I figured so ... but memory leaks killed me couple of times before
 
You're threading.. in a loop.. and you want to wait for the thread to exit before going to the next item in the loop..? Why are you threading at all? :o
 
no9
11:42 AM
Roel its a long story :)
check the original question
 
:13458566
I add output and executes successfully though still same error on my function class
 
@no9 That still doesn't explain why, but OK, you just need an event
var a = new ManualResetEvent(false);
Waiting for it with a.WaitOne(); or a.Wait()
Set it with a.Set()
 
@MishMish thats becouse now when you execute your function you havent given it an output column to dump the data to.
 
I think I did if u see my class again
else i have misunderstod something
 
@MishMish EXEC dbo.SP_BaseData @service_id, @StartDate, @EndDate, @ShipmentDate OUTPUT
 
11:48 AM
class Example {
	private ManualResetEvent _ev = new ManualResetEvent(false);
	public void SignalTheEvent() {
		_ev.Set();
	}
	public void LoopYoStuffOnceEventGotSet(IEnumerable<string> stuff) {
		foreach(var x in stuff) {
			_ev.Wait();
			Console.WriteLine(x);
		}
	}
}
var example = new Example();
Task.Run(async () => {
	await Task.Delay(1000);
	example.SignalTheEvent();
});
example.LoopYoStuffOnceEventGotSet(new List<string> {
	"a", "b", "c"
});
@no9 Look at my message above.
 
@DaImTo Yea I have done it, still same error, I think im doing something really wrong I have not noticed
 
no9
@RoelvanUden thank you... the bgWorker seem promising and I am almost done with it... bud I will def. look into your suggestion as well, because I lack threading knowledge...
 
@no9 Threading is actually easy. BackgroundWorker is a relic of the past that will over-complicate things. You need to learn about threading, locking and cross-thread/process synchronization. Threading is now done with Task to make use of the super efficient thread pool, locking uses a Mutex internally but has a lock keyword in C# and synchronization happens by making threads talk to each other. We use events for that. NOT the events from C#, but actual OS events.
 
@MishMish try googleing around its definatly doable. I found a few articles on it. I dont have time to play with it to get it working right now though sorry :(
 
@DaImTo NP mate thanks for ur time :)
 
11:55 AM
if you dont get it working tomrrow see if i can play with it a bit.
i definatly think my pc is getting cofused my mouse wont stop blinking
 
0
Q: Get distinct data in complex join

F.R.I.E.N.D.S.I have following 3 tables: Job Master : Ink_ProductionJobs : Client Master : I just wanted to get all the data from ink_Productionjobs table and ClientMaster table against distinct PJobID in Jobmaster table where Isdelivered in ink_Productionjobs='Y'. For that i made following query: ...

 
12:11 PM
we should seriosly rename this channel to SQL today
 
SQL room is dead anyways :D
even the sql im working with now, is going to be used soon in my c# program
it makes it legit
 
no9
@RoelvanUden thank you for the information ... do you recommend any good simple resources to start with?
 
12:28 PM
@DaImTo I'm reading arround the internet and I see that it's possible that you can't call SP with a function
 
@MishMish it sounded like a crazy idea to begin with tbh. But i like crazy ideas.
 
@DaImTo Yea well it seemed as a good solution hehe, but how would you prefer doing it then??
 
couldnt you just dump the code from the SP into the function?
 
12:52 PM
yea im doing it now
 
1:02 PM
PFfff what a shitty day...
 
can't use WaitAll for STA threads. What you suggest me?
 
What.WaitAll?
 
WaitHandle
 
I suggest you use a ManualResetEvent and events instead
 
this is what I'm doing. pastebin.kde.org/peazeuthe
inside the Sub i set the ResetEvend, and also Release the semaphore.
 
1:12 PM
@rogcg Don't block the main thread
 
well, after this For loop I have a method call, that I just want it to be called, after all threads are finished.
this must be precisely sequential.
 
what must be?
 
the next function after this FOr loop
it doesn't matter if the main thread is blocked, it's a service. I just need this specific function to be run on threads, so iti will increase speed processing.
updated the code so you understand. pastebin.kde.org/pj26c9hr5
 
What version of .NET?
 
3.5
 
1:19 PM
ugh
 
yeah. =/
 
I would just run anotherFunction in your MRE event handler
 
what you mean. could you post how would you do that?
you mean in resetEvent?
 
how?
 
1:21 PM
I could maybe help you as you go along, but I don't have time to write the whole thing up for you
 
is it 2 much code?
 
For me, yes, for you, no
 
ok
 
2:09 PM
Anyone here feels like answering some IPC questions?
 
@BenjaminGruenbaum Sure.
 
@RoelvanUden Great :)
I'm doing a BHO (IE extension thing) now and have several instances - one for each tab running. They need to talk.
I heard the best approach is a memory mapped file.
I'm not sure though - wanted advice.
 
@BenjaminGruenbaum A memory mapped file, or shared memory block, is the fastest for IPC.
It is not necessarily the easiest or most developer-friendly.
An anonymous or named pipe, for example, will act much like a TCP/IP connection.
You can accept pipes and talk to them in a stream-based fashion.
What exactly do you wish to communicate between the tabs?
 
Very simple JSON data:
Like "This tab would like all open tabs to know the user logged in"
"The user has seen the preview screen - do not show it again"
Very simple data - currently in JSON
 
Morning everyone
 
2:18 PM
Are there any simple recommended wrappers for it? The smaller the better.
 
@BenjaminGruenbaum That does sound like a good situation for a pipe server.
 
It doesn't have to bee too fast - just very simple.
 
hey people :)
 
Bonus points for something that's under 30 LoC and refers to documentation
 
2:20 PM
LoC?
 
Lines of code
 
@RoelvanUden No threading :P But thanks a lot again I'll read it
 
Well it shows which classes to use. From there, it's like a TCP/IP connection.
 
Also, I don't want client/server - I want to echo everything to everyone
 
2:21 PM
(Which is actually pretty neat to use, too, but firewalls might complain)
I would almost tell you to simply use a TcpListener that echoes over a pool of clients :P
 
I just want a .on and .trigger for all client - that's it.
 
put a seperate network card into each computer, connect them via hubs. Problem solved. @BenjaminGruenbaum
 
It doesn't have to be fast - it has to be simple, maintainable and working
 
@BenjaminGruenbaum You mind an example in TCP/IP?
 
that's kind of fast and reliable and it should work
 
2:24 PM
@RoelvanUden I can code it myself over tcp/ip - I don't want to start a tcp server for this
A memory mapped file sounds more sensible, what I'd really want is a shared queue like I get in Azure - but I guess you don't get that in every day windows.
 
@BenjaminGruenbaum Microsoft Message Queue?
Microsoft Message Queuing or MSMQ is a Message Queue implementation developed by Microsoft and deployed in its Windows Server operating systems since Windows NT 4 and Windows 95. The latest Windows 8 also includes this component. In addition to its mainstream server platform support, MSMQ has been incorporated into Microsoft Embedded platforms since 1999 and the release of Windows CE 3.0. Overview MSMQ is essentially a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. A queue is a temporary storage location from which me...
(it's also availabe on non-server machines)
 
Windows <=8 requires an install
 
that's correct. Is that a problem?
 
Yes - this has to work in XP
 
well I know it works on XP
since that's the last time I used it
 
2:27 PM
Without an additional install
 
o_0
so how exactly will your program be deployed again?
 
It's a browser add on that ranks analysts - it's a paid product
 
oh
that sucks.
 
It doesn't suck - it's actually quite OK since it's mostly coded with crossbrowser technologies - I just need simple IPC
 
> that ranks analysts
I hate such systems but that's too much of a philosophical discussion and doesn't belong here.
@BenjaminGruenbaum anyway just checked again: "Version 3.0, included with Windows XP (Professional, not Home Edition)"
so you don't have to install it...just maybe activate it (which is still not an option I guess)
 
2:39 PM
@BenjaminGruenbaum Old IE must be supported?
 
user1804599
2:57 PM
@BenjaminGruenbaum IPC with ØMQ is pretty simple and requires no broker; it’s just a library.
 
user1804599
It has C++ and C# bindings.
 
@RoelvanUden 8+
@SteffenWinkler "not Home Edition"
@rightfold zeromq? TBH I heard about it but haven't used it for anything - isn't it overkill?
 
3:29 PM
@ton.yeung I just want to communicate between tabs with JSON,
 
@BenjaminGruenbaum - But only in IE?
 
We have a new dev coming in next week yay
 
@JLott - Are you going to have a standoff with every new employee to assert your dominance?
@BenjaminGruenbaum - A chrome extension could do that no problem
 
@ton.yeung Nah, just flaunting boobs is enough.
 
@TravisJ A chrome extension has a background page, an IE BHO does not
 
3:33 PM
@ton.yeung Can't assert dominance if you don't have it.
 
FF, and Safari too, IE is the problem
Before I go ahead and implement all sorts of concurrency stuff in a memory mapped file, or include a library. I want to see if there are simpler solutions. Which there should be.
 
@BenjaminGruenbaum - Does the extension have to persist through the browser closing?
 
@TravisJ no
 
wants to make a joke about how JLott's boobs are the biggest in the world
 
Dev is a male lol and I am helping him setup so he has to be nice to me
 
3:34 PM
In fact - it shouldn't
 
He is also a good friend of mine so I am not too worried
then he can set himself up if he is like that
 
@ton.yeung ...when in reality, God's gift to the world is JLott ;)
 
its been a long time!
 
@BenjaminGruenbaum - Hm. I mean, it sounds simple. But in practice you are kind of talking about accessing other page's local storage. I am not sure if there is a simple way to do it.
 
@ton.yeung haha, truer words have never been spoken.
@TravisJ there isn't, it's a security measure. I have to bypass that and I can - but I don't want to go ahead and introduce many points of failure with no good reason
 
3:37 PM
@ton.yeung We actually did almost hook up at one point haha, then I was like... no.
 
@BenjaminGruenbaum - What is the scope of this extension?
 
@ton.yeung huh? I'm not very sharp today :P
 
Is it a personal project, or something you plan on publishing to others
 
@TravisJ it creates an object (BHO) for every browser tab, I also have a hook for when the DLL is registered.
@TravisJ it's a professional paid product with thousands of users.
 
okay, so no local tricks then =/
 
3:38 PM
I'm in the research phase right now - we're considering migrating away from a framework and we want to know what's involved.
 
Hi...
 
Have you opened the framework using ILSpy (or similar)? Or are you looking at entirely different approaches than the framework provided?
 
@ton.yeung for what? I don't get the context.
@TravisJ The framework is coded in C++.
Ah lol!
 
I have realized now though that there are a lot of things that need to be installed on a dev computer
Figuring out what all extensions is going to be fun
also our application
Sql server
 
@BenjaminGruenbaum - You know, I always knew that IE would access the registry, but I never knew the name of it. BHOs are pure evil. But aside from that.. they seem to have enough power to do what you are thinking of.
 
3:41 PM
TFS
Haha it happens
 
@TravisJ I use the registry but I don't want to poll it. That'd seem slow. Also, what we're doing with a BHO is perfectly legit.
 
Because it is free?
 
I figured. My point was just a side note. Any browser that knows where the registry is terrifies me (which is I why I never use IE).
 
@TravisJ also - horrible browser
 
@ton.yeung Good man
 
3:44 PM
Why would they pay you more? If they know you're willing to work for X and they save Y, why not just keep paying you X?
Haha
 
Yeah, but I could get over that if it would stop raping my computer with whatever content the httpresponse felt like placing there.
@BenjaminGruenbaum - Are you going to use websockets?
 
@TravisJ not for that though
Just figured that the latest version of IE that works with XP Home is 8 and we're dropping support for that anyway.
 
@BenjaminGruenbaum - Basically, IE starts. Your BHO starts. It initializes and waits for a json object to be passed in. That object gets mapped/deserialized. You do something with the information internally. At this point, what are you trying to do with the open tabs? How will they be notified / what hook will be available to communicate with them?
 
@BenjaminGruenbaum there are people using that?
 
@SteffenWinkler oh so much
 
3:47 PM
wtf?
where? and why?
 
Yeah 8 is pretty widely supported
I support 8 with all of my sites.
Ah, xp. Pretty popular. Especially with government offices that don't update frequently.
 
'frequently'
 
@ton - I try to support 95% of the market. So current version - 5%.
 
Win XP will stop being supported in a few months
 
@ton - Same way I feel about users disabling javascript.
@ton - No js? lmgtfy("Enable javascript");
 
3:50 PM
@TravisJ that's a lot less people.
Maybe I'll just work with postMessage - Create iframe in IE, communicate with it with postMessage, communicate between iframes with localStorage events.
 
@BenjaminGruenbaum - For an entertainment site or site which is basically an ad then it is easy to support. But for a business product it saves the user so much time to have js enabled. There is no good reason for them to have it disabled to use the service.
 
@ton.yeung so I assume you're talking to me right now from CLI :P?
 
@BenjaminGruenbaum - Can you create a mediator pattern by having a parent class ( mediator ) for the browser (one instance when the browser opens) and then for each tab create a child instance (colleague ) which will communicate with other children (colleagues) through the parent (mediator)?
 
I solved it already - thanks.
 
ok
 
3:58 PM
The iframe trick should work and it's simplest because it doesn't actually require that I implement IPC
I just use the browser's
Which is for the best for sure.
Find me a better solution I dare you :)
@ton.yeung I know the acronym
In computing, extract, transform, and load (ETL) refers to a process in database usage and especially in data warehousing that: * Extracts data from outside sources * Transforms it to fit operational needs, which can include quality levels * Loads it into the end target (database, more specifically, operational data store, data mart, or data warehouse) ETL systems are commonly used to integrate data from multiple applications, typically developed and supported by different vendors or hosted on separate computer hardware. The disparate systems containing the original data are frequently...
 
I wish the little down arrow in VS for open tabs would sort by type then by name
@ton - I tend to have about a dozen or so open at any given time.
In this case it is a bunch because I am making some architectural changes to the database and the model which maps to it. Kind of cascades around.
 
4:22 PM
Mooorning.
 
Hello :)
 
heellllllllooooooooooooooooooooooooooo
 
How are you guys this morning?
 
Good. I managed to finish 3 features yesterday so I feel like I am already ahead today
 
@SpencerRuport Good :))
 
4:31 PM
Nice!
I'm in the process of converting an ASP.Net Forms app to MVC.
It's a good day.
 
haha
 
Is it a big app?
I imagine it'll be nice to be in MVC-land when you're done.
 
Not terribly large and fortunately I had already been working on it and I've already got a half-way controller.
So the ASPX view code is mostly just for UI stuff already and can be ignored.
But intellisense crashing on VS 2012 is slowing me down. :@
 
could use a set of fresh eyes. Having issues with a downloader not downloading files but showing complete and cant figure out why. stackoverflow.com/questions/20514979/…
 
could use a set of fresh thighs. Having issues with a downloader not downloading files but showing complete and cant figure out why. stackoverflow.com/questions/20514979/…;​ading
 
4:45 PM
lol
 
@Meta I don't know much about WebClient or any of that, but as DownloadFileAsync is non-blocking I'm guessing the code after that executes immediately.
Which means you'd be unzipping a file that's not yet downloaded.
Try moving that extract stuff to your Completed() method.
 
Real thighs realize real lies.
 
Real eyes realize real lies.
X-P
 
real thighs.
real thighs.com
 
hmm, ok
 
user1804599
4:51 PM
Boo.
 
nope, its something to do with the downloading stuff its self
 
thighs on the ball!
 
cause the file is not being downloaded at all for some reason, but it is showing complete
 
@Meta you need to keep your thighs on it
 
lol
 
4:53 PM
lol, okay time to stop with the thighs
 
Anyone ever use Test Complete
 
"But O, how bitter a thing it is to look into happiness through another man's thighs."
 
"But O, how bitter a thing it is to look into happiness through another man's eyes."
-William Shakespeare
 
when I run the code exactly from the tutorial I followed it downloads the fine no problem, but it uses a text field for the path to save it in (I replaced that with a variable).
 
Yep
 
4:56 PM
I am easily tricked
eye
 
thigh
 
lol dangit
 
@Meta I'll take a look, one sec Ima just try it myself.
 

« first day (1152 days earlier)      last day (3813 days later) »