« first day (1172 days earlier)      last day (4002 days later) » 

01:21
hi
'ey there, Steve
Does anyone know what the best way to use a DbContext is? Do I keep one per controller, one globally, or create and dispose of one each time I make a call?
@RodrigoSilva I'm here
Hm, I'm trying to make a global hotkey mapping using M-V-VM
It must be able to parse shortcut combinations like CTRL + ALT + S, that's rather easy, but I was hoping to find a good example on how to do this in WPF
Because there must be a new (probably better way) of doint this than in windos forms
01:35
hmm, you have any code?
Search for gestures and command bindings I think
Hm I don't have any code yet, becasue I'm trying to figure out the best way of doing it
I have not done keybinding much so don't know best-practices
hm... ok, thank you. I'll look into it.
Google gestures and keybindings
I can have a look tomorrow, kinda late here, I should sleep
Ok, thank you. I'll have a look into it
01:42
Is there anyway to have the same directory name?
actually a same folder name?
What do you mean?
well
im making this note taker app and if the user adds the same name to a title is there a way to have 1 or more directories with the same name?
i was thinking if the folder exists then add a 1
2 3 4 ,,,
the same name in the same directory, I'm afraid not, at least that I know of.
That seems like a good option
i thought as well :\
i still love to ask obvious questions xP
Also you should let the user know there is another folder with the selected name
01:48
yea
that was what i had before
but i want to make it smooth without any interruptions
then consider the option you mentioned
It seems like a viable option
it does but i'm wondering how i would keep adding a count at each button click
actually
i think i might know
You'd have to save it on the disk
somewhere
or...
Isolated storage on a windows phone :P
but same applies
Then check you should do this:
when a new folder with the same name is created, rename it to inputname-number
01:51
so u guve the user an option to add a number?
No, you add it yourself
it's kinda like an index
mhm
but how can i achieve it on each save
then have the program count all the folders with the input name, add it 1 more
and there you go :)
01:52
yea i was just thinking from now on just add a number to the end of the filename
so you could have the same name about 10 tiems and it will be 1 to 10 in numbers
:D thanks for the help
what do you develop?
windows 8 , 7 web..
windows develpment, C++ and sysadmin on Linux-based systems
i know c++ but not the other :P
I'm kind of an enthusiasts, not an expert
01:55
wait
I mainly work in FreeBSD
yea i am an enthusiasts
i just love doing this stuff in my spare time
and thinking about taking it as a career
So am I, still a bit young though. A lot of study ahead
so you're more into linux stuff
i'm only 16
I'm 18, so you have time, and so do I :P
01:57
next year will be my last year hopefully then get to uni and get it al done :D
we do
yea
Don't get your hopes very high on the university
They are not very specific
i wont
All the hard work and true research will come from you
and from your own initiative
yea
ur pretty much on your own
there
yeah
Well, it was nice talking to you. I'll see you on the chat, whenever hehe
bye mate
01:59
haha yea you too
bye!
02:55
sup kids
haha sup!
heya Pheonix
@Pheonixblade9 what do you develop?
software
and hardware
but thats only for fun
i do it for fun too :P just the software part
anything in specific
like windows apps, desktop programs
etc
 
2 hours later…
04:54
Happy New Year Everyone! :D 大家新年快乐!:D
05:37
0
Q: SQL distinctly arranging column query issue

LOL SingerI have following table: dbPratiche : In this i wanted to arrage distinct [Provincia contraente] (first column) and count of that [Provincia contraente] present in [Provincia Agenzia]. Eg. If I arrange fist column in distinct with following query: select distinct([Provincia contraente]) fro...

 
1 hour later…
07:04
hello all
i want to split a string and my code is string []tempResponse = response.Split({'assetRegion'}); why i am getting error
how to splti a string with a string
Hello !
no9
no9
good morning
@MuneemHabib you need to learn how to ask questions ... what type of object is "response"?
hey no9
no9
no9
hello @shakthi
whatsup
any clue on what reporting tools can be used for mvc1 ? i want to print reports from mvc1 application.which has no razor
nm, just hurrying up to finish works and fly off to celebrate new year with some drinks !
no9
no9
07:18
hmm... no idea ... ms reporting services?
you ?
i dont think i can use server tools. mvc wont support server side tools ..
no9
no9
no hurry for me ... after work (in about 8 hours) short stop at the store and spending ny with my familly
by meaning reports what exactly did you have in mind? ... sql data?
07:35
i want to print report and view them..like a default template for report. with current user details i will print it..i did it with mvc 4
something is wrong with mvc 1.0 :P absolutely everything goes wrong..
Hi, Just something really quick, can anyone tell me how i can add multiple case statements in one line e.g.
case1, case2, case3
"yes"
switch (timeMode)
{
case TimeMode.Seconds:
TimeMode.Minutes:
TimeMode.Hours:
return "a";

case TimeMode.Hours:
return "c";
default:
return "d";
}
tried it like that but it's not working
no9
no9
@Ahmed.C
Switch (value)
{
case 1: case 2: case 3:
// Do Something
break;
case 4: case 5: case 6:
// Do Something
break;
default:
// Do Something
break;
}
@no9 Thanks!
no9
no9
no problem, happy ny :)
You too!
no9
no9
07:41
@shakthi mvc1 is so outdated that you will need to put alot of effort figuring stuff out
@shakthi but I completely understand how it is to "inherit" and old project...
yea working in mvc 4 first then back to 1. so extra effort is required..
there are ways i can make reports work if i mix mvc with web forms. i dont want to mix them anyway
no9
no9
if you have simple sql query reports, why not just use mcv arhitecture... create views that take params and pass it to sql and return results
08:03
morning all!
Everyone ready for the new year??
no9
no9
:)
gmorning @RaZor
hey buddy
no9
no9
we used to have day off on 2.1.. last year the goverment cancelled that :(
lame....
we always work on this day...
@RaZor yeeaaaaaaaaaaahhhhhhhhhhhhhhhhhhhhhh
no9
no9
08:14
:)
@shakthi you sound excited wanna work for me? :P
how that I have 2 of my best SO friends in here
ha ha work for you ?
does either of you guys have a sample client-server project which uses a WebService to communicate??
work what ? you want me to get drunk and dance ? i do that to myself lol
@shakthi that's why your my best SO friend lol!
the WebService would be the server in my case :)
08:17
@RaZor all my web, windows applications use web or wcf services :P
@RaZor why web service would be a server ?
@RaZor are you drunk right now ?
@shakthi it's more like "server"
cz nerds talk tech even when they're drunk, i like that part
@RaZor aww tell me what you want to do :P
I'll explain my scenario
give me a sec to write it down
yeah take your time
I have a TreeView which gets populated with a custom folder structure based on data in an sql table. Users can add, remove, edit those folders. Here comes the part where I need the webservice: When a user adds or removes or edits a folder, the webservice should be informed about the change and has to inform all other clients (clients will subscribe to the webservice at logon to the application). This way it'll allow me to have an up-to-date treeview folder structure in all running clients
does it make any sense @shakthi
@no9
no9
no9
08:31
well I suck at webservices ... I only use them to pull data from somewhere
mostlikely the clients will have to call a service to get notified
but im sure @shakthi will know more on this topic
@no9 yeah for sure! but I thought I shouldn't leave you out ;)
no9
no9
if I understand your DMS app ...
you have no cetral server for it?
I mean the clients are "stand-alone"
?
at least that is what we had...
:)
my DMS are clients
there is no server
no9
no9
in order to pull this off you will need a "server" who will somewhat manage this "treeview" version...
each client will then post a change and ask for change...
that's why I wanted to have a WebService to communicate with the clients
no they don't ask for changes
the "server" notifies the clients IF there are changes
no9
no9
08:36
well they can ask and get notified :)
like ... a new version of the app ...
for instance on startup my clients call the service that tells them if any new versions are ready
it's more like client x sends a message to the server containing: "I ADDED A FOLDER WOOHOOO!!!!!" then the server will contact the other clients saying: "YOU NEED TO UPDATE!!!" and then the clients will return: "YAY NEW FOLDER ADDED!!!"
@no9 it's kinda like that yeah
no9
no9
i never done it this way ... i alway done it ... client ask server: "hey anything new for me" .... :)
that's always another way to do it :)
but still I don't have any experience with Services..
@shakthi can you help me with this???
no9
no9
I will think about it :)
but you want this to be done before 4pm ... riiiite :P
hehehe @no9 well I want to make a start before I leave today
So I can end this year with atleast 1 positive thing......... the rest of the year wasn't positive in any way so....
no9
no9
08:52
i get you
but i think you will need a service host (a server) somewhere
whom clients shall call to
maybe there is a cross-app solution without a server that I am not aware of
Hmm.. well I was gonna install the webservice on either the Sql Server or the Main Server at the customers
no9
no9
09:18
i think you need to make a server that will host this webservices at your company (or some IIS hosting)
each client will then access the webmethods
and I would use WCF rest services
i think you need 3.5 framework for that ...
why would I want to host the webservice at my company?
that's weird... that means that if we go down, our customers go down...
no9
no9
no... its just if you go down the clients wont be able to call the services...
thats why you should consider hosting...
but thats $$
that would be a future thingie for my boss to figure out
no9
no9
true... for starters you could host the services at your company
and eventually move them to some hosting...
my software isn't live yet so everyone would be a starter :p
but I dont have the time anymore to start a hosting plan....
no9
no9
09:28
its not appropriate to host them at 1 client...
my boss wants to go live at the end of January.....
why wouldn't it be?
no9
no9
your boss needs a drink :)
lol everyone does
no9
no9
well because the server hosting this services should be stand-alone ... its only purpose would be to communicate with all your clients
putting it at 1 client is even worse than your company hosting it
hmmkay, but damn bro, this is my only option for now.... I'll talk about it with my boss...
for the future
no9
no9
09:32
this is interesting :D
someone put much effort into this
yet a 2d map of space sounds weird
lol yeah
@RaZor hey
you should probably implement this kinda clients update with SignalR
any other implementation will be a overhead !!
define: overhead?
@shakthi what do you mean with overhead?
no9
no9
@shakthi I am not aware of SignalR ... is it ment for ASP.NET apps only?
yeah
09:39
it looks like it @no9
@shakthi not gonna work for me ;)
no9
no9
RaZor has winforms apps...
my application is C# WinForms ;)
oops
hahaha
no9
no9
I would go with WCF REST... i belive the implementation should be pretty simple
09:40
anyway signalR is something like pushing data from server instead of client pulling it from server
yeah wcf is simple//
no9
no9
yes I figured it out ... sounds interesting!
lol @shakthi be my teacher for WCF
create service,not just service reference. write a service method. and add web reference. there ya go. its done
lol
O.o
ask me questions and i ll answer you
09:42
k thanks
can any one explain the concept of Signal R how it works
@raman ask @shakthi
wcf has 4 templates..service library ll give you dll, service application is one you can host in iis and run
1st question: @shakthi what template should I use?
09:44
@raman signalR is something like a boss who sits in server watches all the clients. if a client completed a task, server ll push next task to the client.
@shakthi can you please explain the concept of SignalR. i know a litle bit about it
@RaZor use service application if you're creating a new wcf service. so you can add multiple methods later and scale it big\
@shakthi then who works like a boss in the concept.. sokets?
@shakthi k will do.
@raman no magic in signalR. yeah you'll need socket programming a lil bit.
09:46
@shakthi hmmmm that i know.. no magic.. but i want to know the what is exactly and how it works
@RaZor read WCF binding and end points. end point is a url to remote service. whenever you wanna access a service method, you ll access the end point. end point are mentioned in webconfig
@raman you should read online bro
@shakthi what is steps it follows to complete a process.. as you are saying like a boss who will give you next task when you complete the task you have ..
no9
no9
@shakthi any particular reason why should he use pure WCF (soap) over REST that gives you different styles, calls and serialization such as JSON that is cross platform ready?
@shakthi nice info to end the old year and start in the new year :p
no9
no9
if someday RaZor decides that he will also have android/iOS client then he will have problems...
09:49
@raman it uses hubproxy, where every client has a proxy and request ll be sent through. it uses webSocket transport. signalR is event driven stuff
@no9 he said winform development. how android and iOs comes in there ?
no9
no9
@shakthi you never know what his boss will want next month ;)
haha that's true
@no9 NO I WILL NOT GO TO ANDROID!!!!!!
hahaha
not gonna happen lol
and if I do.... why do I have a problem??
09:51
@RaZor good question
no9
no9
android cannot connect to WCF (soap) services
only to WCF rest
at least that was a scenario couple of years ago when I did some android dev
so the whole WCF part had to be re-written
oopsss
@no
@no9 don't care right now
@RaZor anyway learn to implement rest in wcf
no9
no9
plus I think that rest is simpler and better :)
09:56
okay..gotta go and work with colleague. see ya ppl in sometime
no9
no9
whos actually working today?
@RaZor?
@shakthi have fun!
yep ! ;)
no9
no9
today is time for theory and not practise :)
I guess so
@shakthi you have a mail adress where I can send questions to IF I need your help??
has any one here developed for windows phone?
10:01
damn too late...
no and will never will be anyway @Ahmed.C
no9
no9
@RaZor hell be back :)
aite
no9
no9
I did a "hello world" :)
@no9 yeah of course :)
no9
no9
@RaZor whats ur music?
10:03
@no9 House & Electro, a little bit of Techno :)
yours?
no9
no9
oh ... old school :)
hehe The Beatles? :P
no9
no9
not for the faint hearted :)
Rolling Stones (<--- My first concert ever)
no9
no9
awesome :)
i like Jagger
hes a trip
10:05
yeah!
but I don't know much about them :p
no9
no9
i love this video
brb smoke time :)
back @no9
no9
no9
wb :)
@RaZor
is weetpass still active in NL?
thanks m8 :)
pffffff, i'm tired...
no9
no9
10:23
answer my question dude :)
pleeease
ow lol didn't see that question :p
Uhm, as far as I know: In certain cities it is
wait let me see if I can find some info for you
no9
no9
im mostly interested in adam :)
Of course
but I have some bad news for you...
I quote:

"The weed pass is abolished immediately and from 1 January coffeeshops in the Netherlands may only sell drugs to citizens from the Netherlands and not tourists. Neither shall determine how they tackle nuisance around a coffee shop, local self-wrote Minister of Security and Justice to the House.

Customers of coffee shops have to show from next year they live in the Netherlands. You can with an identity card or residence permit in combination with extract from the municipal administration. Municipalities are given the space to apply yourself. Rules"
no9
no9
it was the same story last year
and then:
@RaZor i will be here everyday !
shop closed on weekends !
10:27
@shakthi I don't know if I am ;)
:P my facebook is here [email protected]
you can mail at same address
no9
no9
what is general opinion on this matter in NL @RaZor
what do you mean?
no9
no9
regarding weed and other soft drugs being legal
awesome :)
lol
no9
no9
10:30
why is it then that your goverment tries to end it for outsiders?
because of german and french pressure?
no because of global tourists pressure....
There are lots and lots of problems due to tourists coming to the netherlands to use soft drugs..
no9
no9
i dont get it ... tourists == money
yes, but tourists == problems aswell..
no9
no9
for instance?
and the money that the tourists spends on drugs isn't helping the goverment
it's helping the coffeeshop owners
no9
no9
10:32
its not just spending it on weed... its that they sleep, they eat, drink, go to museums...
problems: nuisance, money problems etc..
no9
no9
well... I was in amsterdam 6 times and I never had any problem :)
Not saying you are 1 of the tourists causing the problems though
lots of tourists are getting money problems because they come to the netherlands and they spend mostly the money they have on drugs.. next thing is that they don't have money to get food, hotel etc.. then they have to lent money
which gives the money problems
they lent money from the wrong people...
no9
no9
then you should ban stupid people out of holland :)
i presume this are mostly kids from england :)
seen alot of those nobrainers
well I hope the restriction doesnt stick ... because i think that holland is beautifull country and I love it every time i visit
the weed tolerance is just a big plus for me since I am still smoking it now and then
Well I hope for you too :p
ahahhahaha
same here buddy :)
only in the weekends tho
no9
no9
10:37
back in days we used to smoke it all days long
weekdays is a no-go for me... I'm having difficulties nowadays because of that...
no9
no9
same here
>)
but it made me a better person I will always say that
plus growing up was pretty fun :P
many dutch people come to croatia during summertime
you ever go to adriatic?
nope
I'm mostly going to the Garda Lake in Italy
no9
no9
I see
but I might go to Croatia someday
no9
no9
10:47
well If you ever decide lemme know cause you will be driving pass me
nice where do you live??
no9
no9
close to Ljubljana... 15km north of it
and yourself?
ah okay
about 15km north of Eindhoven
south side of The Netherlands
no9
no9
ahh... I was in Ultrecht but not in Eindhoven
next time :)
Eindhoven is a very nice city :)
But I would recommend 's-Hertogenbosch, city I was born :)
no9
no9
10:57
all dutch cities are nice to me. The whole grachten are very cool stuff
yeah they are! in 's-Hertogbosch you can make a tour in those grachten by boat :)
no9
no9
usually every trip I have this plan to travel the country, but in the end we get too stoned to do anything :P
That's obivous xD
no9
no9
last time I wanted to rent a motorbike and cruise ... that never happened :)
all i did was peddle 1 gear bike around amsterdam ...

« first day (1172 days earlier)      last day (4002 days later) »