« first day (1139 days earlier)      last day (4035 days later) » 
00:00 - 14:0014:00 - 00:00

00:46
So somebody approached me and asked this question:
"Go to any semi-complex site, and it will sit there and load forever. But if I press the stop button, it will load, not correctly, but it loads. If I restart the modem, it works fine. This mainly happens after playing a semi-high-res game online"
What do y'all think?
He needs a new modem
or isp
Game could be leaking memory.
Does your friend use chrome?
Yes, I believe so.
Chrome is usually pretty good about managing memory
So you think it is a memory issue, not a netowrk issue?
00:55
could be some sort of virus, did your friend try running a scanner like malware bytes?
@Billdr It happens to me, sometimes, as well, and we don't share the same isp.. then again, my ISP is pretty bad.
I don't believe it is malware, I think he keeps a/v up to date pretty well
Any other ideas?
sorry, I'm trying to solve this problem so I can get home.
an upvote or two would probably work wonders at this point. hint hint
lol okay
<3
ty
It's fricking weird. Neither of the paramaters are getting caught.
If I put the int in the url manually with ?folderId=1 it totally sees it. I don't know how to do that with a file though. :/
01:10
2
Q: C# HttpClient 4.5 multipart/form-data upload

identHas anybody an idea how to use the HttpClient in 4.5 with multipart/form-data upload? I couldn't find any example in the internet.

same question?
Hmm... does it work in other conditions, such as synchronous POST?
teddy, I've provided all the relevant server side code, unless you want the attributes the method is tagged with. On the server side 'file' is always null.
I don't believe so, CC.
And it is a similar question to that one, but I'm using a more modern approach.
going in and manually writing the headers is not something I want to do if I can avoid it in any way.
*thanks for taking a look though
sorry, I'm frustrated and forgot my manners.
Sorry, I'm just not an expert on this type of stuff
01:27
No worries.
01:47
@Billdr hello?
I am writing the code, please wait.
got the folderId part to work. Woo me.
02:04
@Billdr here?
indeed
public ActionResult AddFile(HttpPostedFileBase file, int folderId)
public ActionResult AddFile(int id)
client.PostAsync("/Company/AddFile/{id:int}", requestContent)
requestContent.Add(folderContent, "folderId", "folderId"); // remove
I'm not sure how that gets a file to my server.
also, folderContent to work :D
server-side code
Request.Files
Ah, I see.
Request.Files is empty :(
02:40
0
A: How to upload a file and a paramater to a remote server via HttpClient PostAsync method?

BilldrAfter a lot of trial and error I got it. There were a few problems. 1) paramater names are expected in quotes 2) I was missing a bunch of header information. Here's the working code. private void AddFile(FileInfo fileInfo, int folderId) { using (var handler = new HttpClientHandle...

There's the answer, if anyone was playing along.
02:55
@Billdr Hmm.. interesting
of course now my migrations aren't working. cry
Are you still playing around with bitcoin, CC?
03:07
reputation grows slowly :(
still work?
Anyone on that works with biztalk?
Question: I have a freshly installed opensuse installation on my vps, but I have no way of accessing it. SSH times out, and I don't know if vnc is runnig or not.. any ideas?
Ping the box?
I'm as done as I'll get. Time to go home, sleep, and wake up to drive for turkey day!
laters.
See ya @Billdr
 
1 hour later…
jim
jim
04:18
morning!
04:40
morning :)
guys i'm setting session in javascript using sessionStorage.setItem("username", "John"); is there a way to access the session variable in the code behind file ?
05:08
@Billdr I just now saw that post :/ I try to be involved, yeah. It's no longer economical to mine from my gpu, however
jim
jim
Anyone worked with XtraGrid?
 
2 hours later…
07:16
anyone particularly magic with INotifyPropertyChanged?
I'm developing an asp.net MVC5 app, will I be able to deploy it on any asp.net hosting provider or do they have to have some specific versions of MVC and EF libraries as well?
jim
jim
EF - not, you just include them into your solution
I think MVC must be supported as the razor syntax should be handled by appropriate handler
(IMO)
thanks jim
jim
jim
@Recursor what's the question?
I've got a parent class that implements a PropertyChangedEventHandler and a basic raiser (NotifyPropertyChanged) both of these are seen by inherited classes, but when I try to subscribe from a third class to a child class it can see the PropertyChangedEventHandler, but the additions are not seen immediately after nor are they ever preserved
jim
jim
07:29
hmm... got no simple answer, need to try your code but have not time for that at the moment. Sorry.
07:51
no problem
08:04
morning
08:34
Hey @TravisJ
@PLaine - The most important thing to look for with a host is that they support .net 4.5. It is not the same as 4.0. If they support .net 4.5 then you are good to go. You should make sure to have access to at least one instance of MSSQL as well for the asp.net membership schema.
@RaZor - Hi :)
See you guys around :D
You leaving? :(
08:56
@TravisJ ok thanks
morning guys hows the coffee
Morning DaImTo!
Tastes good! :D
i need more. 10 more ponts btw :)
yours?
nice
I need more (Coffee) just got some. I got 10 more points last night
09:04
hehe me too!
Lets fix that sentence i need to learn not to type faster then i can think.
but not the points some1 downvoted 1 of of answers :p
Down vote with no comment sucks. No idea why they dont like your anwser.
exactly...
hey guys
i need to ask about ajax calls in asp.net MVC 4
i have to drop down lists, and when the user selects an item from the first drop down, i have to change the content of the send drop down
the second drop down data is fetched from database regarding the selected item in the first drop down
is ajax call is the best solution or i should do it in other way?
09:21
@Hanady that's a perfectly reasonable way to do it.
@HollyStyles okay i did it this way but i think there's something wrong
What do you think is wrong?
when the data is returned from the server, something wrong is happening, i'm not sure what is it
i'll show you what i did
function fetchTowns() {
var e = document.getElementById("DistrictName");
var districtID = e.options[e.selectedIndex].value;
$.ajax({
url: '/Kalam/FetchTownsByDistrict',
data: JSON.stringify({ districtId: districtID }),
type: 'POST',
contentType: 'application/json; charset=utf-8',
success: function (data) {
$.each(data, function () {
console.log(this);
});
}
});
};
and this is the server part:
[HttpPost]
public JsonResult FetchTownsByDistrict(string districtId)
{
int districtID = int.Parse(districtId);
List<Town> towns = districtManager.GetTownsByDistrict(districtID);
return Json(towns, JsonRequestBehavior.AllowGet);
}
Why POST method? Use GET
and the ajax call type should be also 'GET'?
09:29
Yes
i have tried this before
but i was getting an exception
the districtId in int.Parse(districtId); is being null
Before or after you added JsonRequestBehavior.AllowGet ?
before
url: '/Kalam/FetchTownsByDistrict/' + districtID
You don;t need "data:" in ajax call you're GETting not POSTing
var districtID = $('#DistrictName').val();
You have JQuery so use it
instead of getElementById
okay
09:34
[HttpPost] get rid of it or change to [HttpGet]
oh i did but i'm still getting the same exception
What districtId is null ?
What is exception message and what line of code/
?
this is the exception: Value cannot be null.
windows phone development need a lot of patience to learn !
at line: int districtID = int.Parse(districtId);
09:37
@codebrain How so?
What does your javascript ajax code look like now?
function fetchTowns() {
var districtID = $('#DistrictName').val();
$.ajax({
url: '/Kalam/FetchTownsByDistrict/' + districtID,
type: 'GET',
contentType: 'application/json; charset=utf-8',
success: function (data) {
$.each(data, function () {
console.log(this);
});
}
});
};
@RoelvanUden Three types of APIs, Managed Code, Managed with Native(C++), Native (Only C++). IDE looks fine. But lots of socket, pixel, math involved in app development.
requries more skill and knowledge than web development !!!
public JsonResult FetchTownsByDistrict(string districtId)
change to
public JsonResult FetchTownsByDistrict(string id)
int districtID = int.Parse(districtId); change to int districtID = int.Parse(id);
the argument name must match your route in App_Start\RouteConfig.cs
url: "{controller}/{action}/{id}",
url: '/Kalam/FetchTownsByDistrict?districtId=' + districtID
Or that may work instead, add as a query string parameter
@codebrain What? You can use Windows Phone XAML as managed code. You don't need native interop or native code at all. Windows Phone is almost as easy as building a WPF GUI
09:42
@Hanady you get all that?
@HollyStyles oh i got it now
so the parameter should always be id
@RoelvanUden is it ? I am watching MS Virtual Academy online classes of WP 8 jumpstart.
boring as hell.
@Hanady for urls like this : controllername/methodname/id yes
ah okay i see
@codebrain Oh I never did that. I just jumped in and designed GUIs, hooked it up with data bindings to view models and it was a pleasant experience.
09:44
@Hanady for urls like: controllername/method/name?paramname=val no
@HollyStyles ah okay
@RoelvanUden did you find any other quick jumpstart to wp dev ? like involves data storage, speech api so on..
@Hanady Cool
you know i got rid of the exception, but when the server returns the results, i'm getting an error in log.Console
What browser you using IE ?
@codebrain Data Storage is the Isolated File system that is available in all XAML-based frameworks, such as SilverLight, Win8 and WP8. It basically restricts you to a single 'app' folder and doesn't do anything else that is unpredictable. Speech, I do not know about.
@Hanady I would ditch the $.each and just console.log(data) and inspect that first
this is the error
@HollyStyles ok
@RoelvanUden Speech is newly launched API. I want to to something like "JARVIS" :P
user:Jarvis. wp: yes,sir. user: call roel. jarvis: dialing roel. tring tring :P
@HollyStyles when the server returns empty results, i'm not getting the errors, but when it's returning data (towns), i'm getting the error
09:52
@Hanady Can you paste the error message?
GET http://localhost:49895/Kalam/FetchTownsByDistrict/2

500 Internal Server Error
44ms
the error i'm getting is in the console
@Hanady is Town a generated type from Entity Framework or LINQToSql?
hello there need a help on timer
?
@HollyStyles mmm i'm not really an expert in entity framework but i can tell that i have database first, so Town is a table in sql server and the class is generated in the entity framework
@Hanady Right they tend to have circular references (from the foreign keys) that mean they don't serialize to JSon very well. I suspect that's your issue. Transfer the Name and Id from Town into a TownModel class or even use the Built in SelectListItem class and return a list of those instead
09:57
@HollyStyles ah okay i see what you mean
@Hanady cool
10:21
hi codebrain
I've got this simple linq query that's giving me a head-ache
List<Speciality> specs = dbSpecials.Where(s => lstSpecials.Contains(s.Id.ToString())).ToList();
ERROR: LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.
but the Id (that has the .ToString()) is an int!?
103
Q: Problem with converting int to string in Linq to entities

Shimmyvar items = from c in contacts select new ListItem { Value = c.ContactId, //Cannot implicitly convert type 'int' (ContactId) to 'string' (Value). Text = c.Name }; var items = from c in contacts select new ListItem ...

OOOOH
need some help with ssrs
localhost/reports$sqlexpress/ throws 404.0 - Not Found. Help!
on ie
@HollyStyles everything is working fine now :D Thanks a lot :)
10:29
@RoelvanUden Thanks... I thought I was really losing it.. :D
@Hanady no problem.
@PLaine It's just Linq2Sql being retarded :D
@RoelvanUden how would you compile ToString into TSQL for all types in a not retarded way? :)
@HollyStyles Not. You have to build queries that don't need it and you can use implicit conversions. Also, I'm no fan of generation of queries because of retarded crap like this. Want to have nice queries and a good database structure, just write it yourself :3
HollyStyles nods
10:44
anyone here know a good image editor for merging 2image online?
I am using ControlPaint.DrawReversibleFrame() to draw a quick series of disappearing concentric shapes to give mouse click position's visual feedback,
but it is only showing series of rectangle shape.
how can I show series of co centric circular shape for feedback of mouse click position's visual feedback? Thanks in Advance.
Any one can help on it.....
need some help with ssrs
localhost/reports$sqlexpress/ throws 404.0 - Not Found. Help!
on ie
@Elegiac Merging? What do you mean?
11:00
like inserting an image into another and making a new image ...
png image
@Elegiac I'm still not sure what kind of result you're expecting.
You mean you want to conceal an image using a steganography technique?
sample i have an image of a face ... then 2nd image was an eyeglass and i want to merge both image to have face with eyeglass
Oh no clue. Machine learning to recognize something like that is rather complex
or more image to insert
i know photoscape and photoshop can do it but im lazy dl it with littlethings that i just need to edit
so i need 1 that can do online
hello anybody worked on this issue A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
11:06
@Amrutha It get a similar message when I failed to switch on the distributed computing cluster.. I suppose you have a different situation. Context is everything.
@RoelvanUden hi actaully I am trying to send a notification using .net service to android mobile...When I run the notification.aspx file from server it is displaying that error message
Stream dataStream = tRequest.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
dataStream.Close();
@RoelvanUden i am getting the error at getrequeststream
@Amrutha The gods are angry, you must sacrifice more chickens :)
1 message moved to Trash can
T.T
what the
thats the third time youve asked the same question
if someone knew, they would answer
ask on SO proper or search a bit more
11:18
@ZarlesKrieger Clearly the page you are trying to reach does not exist. The only advice I can give is to re-read setting up and configuring SSRS you must have missed something
my question was going up, so i was repeating me, sue me
repeating it*
Both Zarles and Amrutha can be categorized in the vague department.
@Holly Styles : but i've been working with ssrs for a while, it's been configured, and then suddenly it tells me"Enter a user name and password to access the datasource" and i am trying to follow these steps in kb.preactor.com/KnowledgebaseArticle10041.aspx but i fail at the first one
And Roel van in jerk department >.<
Agreed, when seen from the view point of someone whom did not put in enough effort to ask a sensible and concrete question, that is an appropriate classification for me.
u dont find it sensible cuz u dont kno the answer for it
11:33
@ZarlesKrieger That's better if you posted that in the first place you probably would have got more response (possibly)
since this is a chat, i kept it short, and i assumed any ssrs person would kno what localhost/reports$sqlexpress/. is for and what i was trying to do
@ZarlesKrieger You said you had 404, now you have Credential issue. I know what the url's for but SSRS is a big bloaty bit of software you're issue could be any of hundreds of little things. So anyway think about who you are logged in as, what is the security set-up for your Sql Server? Sql Only? mixed mode?
Mixed
logged in the admin
in as admin*
@ZarlesKrieger So I see where you got the Url from (I followed your link) Are you using SQLEXPRESS on your local machine? Where is SSRS set up? on your machine or a windows server/
Hello
11:40
@HollyStyles on my machine
yeah u r ight
right*
I want to check the exact string in a string line
Hey
If you was going to create a server in c# for example, accept multiple socket clients, would u give a new thread for each client?
@ZarlesKrieger So what is your Report Manager url in SSRS configuraion Manager on your machine?
@JonyKale Yeah go for it !
11:45
@HollyStyles Wouldn't it be bad to create thread for each client O.o
@JonyKale Why?
@HollyStyles this is what i get tinypic.com/r/k4xq81/5
@HollyStyles i think i miss understand what a thread is, can you explain it in short words what's the purpose of a separated thread?
HollyStyles has suddenly lost the will to live and jumps off nearest building
@JonyKale so that your main program takes care of incoming clients, assigning threads to each one of em and do other stuff, while the thread takes care of the client all by itself
11:49
So thread basically splits processes? so each user will have it's own process instead of having the main program process doing it's stuff
@JonyKale how many concurrent clients?
something like that
usually you have one thread for accepting and another thread(s) for processing
@JonyKale also - will the clients stay connected, or is it something with a short life (like a web request)
@drch Is that better than a separated thread for each client?
They stay connected, they can log out
Let's say 100-200 clietns at a time
spinning up 200 threads doesn't sound very good
11:51
Spawning a thread for each client is not really a good idea for performance.
Like I thought, that's why I asked
If you can use .NET 4.5 you can make use of async/await, solving it for you.
you could start with just 2 threads, since waiting for a connection will block
So one thread for accepting, one thread for processing the clients is good?
yeah good start. you could add more threads or tasks or whatever if you need to get more paralellism in the worker part
it also depends on how much it takes for the server to process whatever the request needs to do
11:53
@drch Question ; I've never worked with multiple threads, just once when was trying to make a 2d game in java. Each thread should have it's own class?
a thread is a different concept than a class. its just another concurrent execution context of your code that happens at the same time
I wan't to check the exact string in sentence.
For eg : My sentence is "This is good" and i want only retuns true if it contains "is" as a whole string not from "This"
sentence.Split().Any(x=>x.Equals("is"))
or regex
\bis\b or something
hello
I return date as "dd/mm/yy hh:mm" from a mvc action to view through an ajax request. datatype:json. what i get in the view is
@Chets yourstring.Contains(" is ")
11:59
Date(1343567800)
why the date isn't coming ? cz hh:mm colon messing json formats ?
@dr
@drch ^
@drch it's working, thanks
@chets, by tagging only (at)dr you're tagging all the people whose nick starts with dr .
@codebrain that's 1343567800 seconds elapsed since the epoch
12:02
epoch ? new term. it wasnt exactly the same number that i said. can you be little elaborate ?
Typically the epoch is 1st Jan 1970 for Javascript anyway
@codebrain yeah thats the default shitty .net date serialization
json.net / webapi uses ISO 8601
whatta do now ?
ISO 8601. That's some shit definitely. What's the solution ?
Hi all...:)
12:07
@codebrain might be easiest to pass millis since epoch. then in javascript you can do new Date(epochMillis)
hey @smruti and @steffen
need help...again. WPF binding in C#. I've a DataGridTemplateColumn. The CellTemplate should be a TextBlock and the CellEditingTemplate should be a ComboBox.

The last part is working but I've trouble with the CellTemplate
That's nice. Let me try it now. Thanks :)
How to get Interop.CDO.dll for sending email?
I need to bind the Text property of the TextBlock to the SelectedItem property of the ComboBox.
I've a FrameworkElementFactory for the combobox and a FrameworkElementFactory for the TextBlock
but if I do something like this:

`textFactory.SetBinding(TextBlock.TextProperty, new Binding("nameOfCombobox") { Mode = BindingMode.OneWay, RelativeSource = new RelativeSource() {AncestorLevel = 1, AncestorType = typeof(DataGridTemplateColumn), Mode = RelativeSourceMode.FindAncestor } });`
it says that it can't find the RelativeSource target.
but the template column must be directly above those things
12:16
@codebrain sorry
that's okay
i just wanted to tell you.
12:30
lol
Is there some decently easy way to compare a KeyEventArgs struct to a WM_KEYDOWN message?
like, as in, make sure the same keys are pressed?
the only solutions I found ignored stuff like Modifierkeys for example
12:55
does anybody know if there is a Visual Studio plugin that automatically inserts method commentary at VERY method or event???
@RaZor just type three forward slashes on the line above your class or method. Or do you mean something like Ghost doc?
@HollyStyles I know how to add commentary, but I forgot to do it while I'm programming so all methods in my application (which has over 50k lines of code) doesn't have commentary
so I need some sort of tool which automatically inserts commentary for each method/event or what so ever
@RaZor what your going to add comments to all the methods. Never heard of a programer that did that. Most programs i find have 0 comments.
@DaImTo I do that
@HollyStyles so do i wish i worked with you. I hate it when theres no comments.
13:06
@DaImTo Well, it's just commentary which explains what the method does and what role the parameters send with it have
But I guess there is no such plugin for Visual Studio then... :'(
When i started this job a few years ago i was put into an asignment. After 6 months i finaly found a line that was commented. coment was // dont break this
lmao
I have a string which contains a date like this "2013-08-30 16:07:23.000". How can I make a DateTime-object with this? I tried DateTime.ParseExact(myString, "yyyy-MM-dd HH:mm:ss.fff", null), but I get an error saying that my format is not correct.
I started a new job recently, you wouldn't beleive some of the comments! Like: //Return the return code immediately above return returnCode; I'm like WTF?
Not surprising considering they were deploying debug builds to production as well! I nipped that in the bud straight away.
@DaI We're looking for a web dev at the moment
@DaImTo ^
And a mobile phone dev
13:12
I had to wrwright a hunk of cobal code back in the day. Lead programer found it. Apperntly one of the old programers was a little upset with his girlfriend at the time of writhing this lovely hunk of code. Variables like dumbB**h F***H**e where all over the place
It was quite entertaining but Not easly to try and ttack down what exactly dumbB**ch was suposed to be doing.
Lol, my check in comments are often quite blue :)
I have a habit of sending Blah messageboxes to production :(
Yeah so, anyone near London UK who fancies mobile and/or web with .NET/Objective-c/Java stacks we're hiring. Go through me coz I get 500 squids if you're hired and pass probation, I'm willing to split this 50/50 apsgroup.com
I really need to see london some day.
13:38
brb
back
london sucks
lmao
@drch Okay I'll bite, what sucks about London?
mostly the brits
b-b-b-bbut ...
13:48
suppose i should say the Londoners rather than the brits
I'm here, you can work with me, I'm a barrel of laughs! I'm only half brit
Yeah Londons full of yanks
and Poles and Latvians and Spanish and Everything else
yanks are the second worse thing about london
=]
God damnit.... anyone can help me with a debug error?
altho actually havent run into a whole lot of americans out here. you can hear them, but thats it. the accent gets lost in all the other european ones you hear.
Error: "No symbols found. You need to load symbols in order to find the source for the current stack frame"
Visual studio error..
13:50
@RaZor Put breakpoint before the error, drag yellow arrow passed the problem, continue. How's that?
@RaZor are you compiling in release mode?
@drch no debug mode
@RaZor Re-build
Or attach to running code that actually matches your source :)
@HollyStyles still not working....
Well we have two Americans and one Canadian plus just about all other nations
13:53
what do you mean by attach to running code?
Hell we even have a Vietnamese guy
lol
first place i worked at in london, on a team of 16, we only had one person from the uk. a scottish dude
and he fought with the french guy all the time
it was grand
@HollyStyles PDB File is missing for assembly: mfc42.dll 6.06.8063.0
mfc! ack
look
this comes when I try to hop in to the next breakpoint. in a different class
13:58
@RaZor Hmm are you C++ ing/
hell no.... C#
omfg... I switched to designer mode... BOOM VS2012 crash...
Design mode ??? ooohh yeah I remember lol don't go near there ever
0
Q: Visual Studio 2008 not loading MFC dll symbols

PeterVisual Studio 2008 doesn't appear to be loading symbols for MFC dlls when I debug my application. This used to work fine in 2005 - ie. when it loaded the dll it said "Symbols loaded" and can then debug it. In 2008 (having upgraded to MFC 9, so they are different libraries) it doesn't say that it'...

00:00 - 14:0014:00 - 00:00

« first day (1139 days earlier)      last day (4035 days later) »