« first day (1843 days earlier)      last day (3120 days later) » 

1:33 AM
@SteveG ... dat skype name...
 
when is the uwp skype app coming out?
 
@Sippy lol
 
2:14 AM
How's it going
 
 
3 hours later…
F4z
4:55 AM
@Sippy I know right, just saw that a while back, reminds me of that game in which whatever you do is narrated.
What does this.xyz vs xyz do? where xyz is a control in the form. whats the difference in using 'this'?
 
@F4z there is no difference, unless you have a local variable in scope, also names xyz
 
F4z
5:13 AM
oh ok
 
 
2 hours later…
6:50 AM
Help settle a design disagreement here, please. We have a data processing app that takes input from a folder and creates various outputs - it writes to a log file, it saves anomalous or malformed inputs in a folder, and it moves completed files to a Done folder. I think that while an external contract - the Input folder - should be validated and the app throw an exception if it doesn't exist, all other folders - logs and such - should be created on the fly if they don't exist.
The other POV is that the app should always throw if an expected folder isn't found. (All folders come from configuration)
My logic is that the input folder is a contract between my app and its data producers, and I want my app to fail if that expectation isn't met, because a badly configured system will fail silently - simply fail to find files.
 
F4z
Has anyone used Visual Studio Preview (CODE)
 
But for artifacts produced by my system that are relevant for diagnostics, and not part of the larger processing pipeline, throwing an exception is overkill and will just cause headaches.
@F4z What, this? code.visualstudio.com
 
F4z
Yea!
 
Tried it a bit, but didn't really feel it gave me a lot of power.
 
F4z
it isn't supposed to give a lot of power haha, it's very light weight
 
6:54 AM
So's Notepad++, which is more than sufficient for a lot of coding of the sort that Code is geared for.
But I don't really write a lot of MVC code, which seems to be its focus.
 
F4z
Notepad++ has a ton of features
does it bother any developers that it has soo many?
 
@F4z As long as they don't slow down the core functionality, no, go wild with features.
Visual Studio has a lot of features that do slow down core functionality, though. :(
 
F4z
true,
I guess i dont use everything, just the core
I don't like it when it has a lot of things
 
Visual Studio is like Word. Nobody uses more than 10% of the features, but it's a different 10% subset for each person.
3
 
F4z
haha yea
 
7:12 AM
@AvnerShahar-Kashtan true
 
7:25 AM
hi al
how can we upload more than 5 gb of file on ftp ?
I have tried to make chunks of file but how we can join these chunks after split file into chunks
 
1. FTP should support huge files. The problem is probably with your connection timeouts, which you can probably adjust.
2. FTP uploads the file to a server. To join them, write code that runs on that server and joins them.
3. Joining them on the FTP server will just create the same issue when downloading the files later. Leave them split, and join them only when you need them.
 
@AvnerShahar-Kashtan agreed with you but when I download the file. It is not necessary user will downlaod it manually user can sync the file in his dropbox also is this possible to sync chunks of files and make it one file when user will sync it
 
7:50 AM
@vishuminhas I'm not sure I understand. You're uploading a file to an FTP, and then want to synchronize that file to dropbox?
Why not store it in Dropbox in the first place, and allow users to request it to be shared to their Dropbox?
 
8:19 AM
sometimes I'm more bemused by WPF than annoyed
apparently it won't result in a compiler error if you assign a Window object to the content of another Window object
 
@SteffenWinkler Well, Content is object, so...
 
hm, true
 
But does it cause a runtime exception?
 
it would probably
I'm redesigning a part of my application
 
It has to be object, to support dynamically-assigned datatemplates.
 
8:23 AM
true as well. That was just one of those 'this is stupid on first-sight' moments
 
8:34 AM
That's what happens when a mostly statically typed language like C# hits a mostly dynamically typed one like XAML.
 
8:48 AM
Actually publisher will upload the file on his server than user will download or sync it @AvnerShahar-Kashtan
 
morning all
 
Morning @Squiggle
 
afternoon, @codebrain
 
Hi everyone!
 
Morning @HenrySitu :)
 
9:14 AM
@vishuminhas So either use a longer timeout for your FTP connection, or use a better protocol, like BITS over HTTP which allows for managed transfers of large files.
 
the current FTP spec was formalised in 1985, when HD sizes went up to at least 25 megabytes.
it's a dead protocol :P
 
A list of notable file transfer protocols: == List of file transfer protocolsEdit == === Primarily used with TCP/IPEdit === 9P Apple Filing Protocol (AFP) BitTorrent Infinit FTAM FTP FTP over SSL (FTPS) HFTP HULFT HTTP HTTPS WebDAV rcp rsync Simple Asynchronous File Transfer (SAFT), bound to TCP port 487 Secure copy (SCP) SSH file transfer protocol (SFTP) Simple File Transfer Protocol T.127 === Primarily used with UDPEdit === File Service Protocol Multicast File Transfer Protocol Multipurpose Transaction Protocol Reliable Blast UDP Trivial File Transfer Protocol (TFTP) -- designed f...
I know unix-folk like rsync.
 
linux user here: rsync is live, rsync is love
if only my pizza delivery service would support rsync...
 
I think you'd need client-side support for that as well
 
9:29 AM
@Squiggle I think this is server-to-server copying, if I understood correctly.
@Squiggle Not to mention that when FTP was designed, "security" meant "don't let that guy into our university's computer lab".
 
too true
batch file copying for b2b integration still smells.
that's precisely the sort of thing I've spent the past year trying to eradicate at my current job
 
9:57 AM
Good morning guys
 
mornin'
 
I'm kind of stuck in this.
1
Q: Update value by using DataTables row-reorder in ASP.Net MVC 5

CodeMasterI need to update the OrderIndex value inside database by row-reorder function inside datatables. I have already searched in google and I found this article. I followed all of the steps but it didn't help. Please let me know if you need more information. Thank you ViewModel public class Gender...

 
10:20 AM
What do you mean by "didn't help"? Do you get an error? What else have you tried?
 
10:38 AM
you say you want to update the database, when all you've given us is a ViewModel and a jQuery script
 
@scheien first of all that post is very old and many of the DataTables syntax are out-dated, such as .rowReordering
@Squiggle I used everything that was in that post, the only thing that differs is my ViewModel.
Which is not something special.
 
if anyone has experience with MS TestRunner or Microsoft Test Manager, please take a look at this:
0
Q: Test Runner can't find controls during replay

Steffen WinklerI just started with Microsoft Test Manager 2015 and build two test cases. First one involves clicking on a tray icon and selecting an entry from there - which works fine. Second case is a bit more complex, I wanted to fill out a form in a WPF window and click some buttons. The recording went w...

 
ASP.Net/IIS - how do you all expire static files? Like, when you re-deploy, how do you ensure that all clients fetch the latest CSS etc, and don't just use their local cache?
I know there are various techniques, and we're doing the hacky append-query-string-with-version stuff right now using T4 templates. It smells.
 
11:27 AM
What a fantastic theory
@Squiggle Can you not just invalidate the caches using IIS and recycle?
That's what we do O_o
 
Hey guys, do you mind helping me with an issue?
 
That hugely depends on the issue.
 
Its mostly related to threading
 
Just post your question, if someone can answer then usually someone will :)
 
I have my method, in which I open my thread, in that thread I instantiate WebBrowser and load webpage in it, creating and DocumentCompleted event on it
the problem is that my method fires in another thread (not main)
 
11:31 AM
WebBrowser? is that a UI control? a separate process?
 
and I think thread with WebBrowser ends before event is fired
 
...is this WinForms?
 
windows forms control, I need it to load the page and get content that is laoded with ajax
 
I think it's windows phone
Oh god
 
yea:P
 
11:32 AM
Unfortunately there aren't many people here who have relevant experience with winforms lol
 
All Windows Forms UI stuff needs to happen in the main thread.
 
Cos it's one of those microsoft things that needs to stop existing xD
 
winforms is secondary issue here, its about threading
 
anything else is a recipe for PAIN
 
Rofl
@Dess there's your answer :P
 
11:32 AM
@Dess your approach is hacky and nasty.
 
@Squiggle Yea I know, but it has to be done and I didn't find any other way
 
@Dess my advice is to use a headless browser component that can execute JavaScript
13
Q: Headless browser for C# (.NET)?

Bo MilanovichI am (was) a Python developer who is building a GUI web scraping application. Recently I've decided to migrate to .NET framework and write the same application in C# (this decision wasn't mine). In Python, I've used the Mechanize library. However, I can't seem to find anything similar in .NET. W...

don't rely on WinForms' WebBrowser control
 
> Recently I've decided to migrate to .NET framework and write the same application in C# (this decision wasn't mine).
Multiple personalities? Lol
 
also, if you're scraping content that's dynamically loaded into the page via AJAX... does this thing not have an API you can call instead?
@Dess does this site have some authentication mechanism?
 
my options are somewhat limited, because its commercial app
 
11:36 AM
it's a commercial app that relies on fetching data using JavaScript-enabled web scraping?
 
If you're scraping ajax content can you not just hit that URL yourself, scrape data and display it using winforms itself?
 
nah, they told me they are planning on making API in distant future;p
 
WTF
 
wait, this webbrowser is only to load page, I dont event display it
 
I can't help you with your threading issues, but I can suggest an alternative approach
 
11:37 AM
I second @Squiggle. The WebBrowser control isn't a web scraping tool. It's a GUI component that hosts Internet Explorer's rendering and layout. It's not a general purpose HTML/CSS/JS parser.
 
@Squiggle what alternative approach?:P
 
Being a GUI tool, it makes assumptions that aren't always true - like that it's running on the main UI thread, and such.
 
@Dess figure out what AJAX calls the target site is making, and just make those same calls directly
 
Use one of the headless browsers in the link that @Squiggle posted.
 
like if there's a page which dynamically loads a table via jQuery, that site is making a call to an endpoint saying "Get the contents for this table". There's nothing that says you can't make that same call.
 
11:39 AM
@Squiggle tried that but fiddler didn't give me any good info about those calls (but i'm inexperienced in fiddler)
 
Use something better than fiddler.
 
F12 developer tools should tell you enough
but if the target site is using ASP.Net WebForms then you're fucked :D
 
Get Postman and throw shit at those AJAX urls until you get what you want
replicate with headless browser
gg
 
^ what @Sippy said
 
@Sippy Hello
 
11:40 AM
I spent the weekend figuring out how to use imgur's api
My postman is stronk.
:P
OAuth2.0 is really confusing for the first 20 minutes.
 
then it clicks and everything almost makes sense
 
I'm at that point
It's all still slightly hazy lol
 
ok, thanks guys, i guess i check that out
 
@Dess also know that using any undocumented API or web scraping in commercial software is a recipe for disaster
if they make any changes to their webpages, your software may break.
 
Yea, I know but it's a minor option in this app, only one or two people are gonna use it
 
11:47 AM
hi
 
and it broke already, that's why i'm doing it again now:P
 
how can i use a partial view using the ACTIONLINK?
 
@Dess sounds like a lot of faff for a small feature
 
yea, but if client wants it, client gonna get it:P
 
I hope they're paying through the nose for this crap ;)
 
11:49 AM
not a chance, it's only my second month as programmer :/
well, they are paying a lot for the app, i suppose
oh, my third month*
 
I spent 10 months automating browsers inside a harness. My advice is: Avoid doing this at all costs.
 
Lol
Three months as a programmer and you land this gig
Your luck is bad sir.
 
its first day of my third month:P
 
@SupriyoBhattacherjee What does this even mean?
 
12:06 PM
@Sippy I've found that web-scraping, being a relatively straightforward but very time-intensive task, is a common job for interns and new hires.
Time- and test-intensive.
 
@Squiggle I updated my post, should I re-post it?
 
nah it's OK
 
The only reason I didn't put the controller in the first place was due to I wasn't sure,I'm still not sure.
 
its still a little misleading - I thought you were talking about the .Net DataTables msdn.microsoft.com/en-us/library/…
 
Oops no, it's about datatables.net
 
12:11 PM
you should mention that
 
Ok, I will now.
 
and if the problem is purely on your UI, remove all other fluff
 
when I go to /GenderDD/UpdateIndex , I'm getting the following error
The parameters dictionary contains a null entry for parameter 'Id' of non-nullable type 'System.Int32' for method 'Void UpdateIndex(App.ViewModels.GenderDDUpdateOrderIndexViewModel, Int32, Int32, Int32, System.String)' in 'App.Controllers.GenderDDController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
Parameter name: parameters
 
when you say "I go to", are you navigating to that action in the browser?
 
and next I'm not sure where to put ajax url in jQuery. The post from the other user suggests:

<script type="text/javascript">
$(document).ready(function () {
$('#myDataTable').dataTable().rowReordering({ sURL: "/Company/UpdateOrder" });
});
</script>

but there is no rowReordering in the latest version.
Yes, I'm navigating to see what's happening in the background.
on UI, I can easily drag and drop rows and see the activity but there is no Save/Update happening.
 
12:22 PM
@Sippy i want to show a partial view on click of actionlink. i want to get a form on the same form using the renderpartial
is it possible @sippy
i need help
 
@SupriyoBhattacherjee uh .. yes..
I tend to use JavaScript for rendering partials though.
RenderPartial can be tricky to use if you don't really understand how it works
 
ok..
can u suggest one example
as i am completely new to it
 
uhm
11
A: Submitting partial view data from parent view

SippyWhat you're asking for The functionality you're asking for is AJAX. AJAX requests are 'Asynchronous', which at the most basic level means HTTP requests can be initiated and responded to without the need to refresh the page. As someone wrote in comment to your question, jQuery can be used and do...

That's a post example, but it does set the partial using JS(jQuery)
Should be easy to see how to use it for a GET request
 
Sippy, have you seen my question/post?
 
12:39 PM
@Sippy thanks a lot
 
12:54 PM
 
Hi all, just now I worked on cs file and save changes and changed again at that time my machine is died, after restarting comp that file is empty, is there some way to find that changes, maybe VS creates temp files?
 
@Jamaxack VS usually gives you an option to recover files. If it doesn't, you'll probably need to get the file from source control and make your changes again.
 
Visual Studio does a fairly good job of recovering files after a crash, but sometimes loses a few minutes worth of changes.
@Jamaxack you were using source control, right?
 
@Squiggle Yep, using source control
but there was a lot of changes that I need to do after getting from source control
 
and VS didn't give you the option to recover files?
 
1:09 PM
I didnot change that option
 
Check your file system. They might be there but not included in the project?
 
there is some files in AppData\Local\Temp but there is not exists that file
 
the file it's self is empty?
chances are it's lost in a fluke key-combination accident
 
yes, file is empty
yes, file is empty
 
There's an extremely slim chance that an undelete utility could find it.
 
1:16 PM
@KendallFrey which utility you mean?
 
Recuva is one
 
realllly slim
 
The more you do on your computer before running the utility, the worse your odds become
 
The file is not removed, file is exists but the content is empty
 
I have Recuva on an external USB stick, because you never want to be downloading or copying files if you have something you want undelete to find
@Jamaxack This is part of what makes the chances so slim
Windows can move files around, and it might have left a "deleted" copy somewhere. But probably not.
 
1:19 PM
Woah. thedailywtf.com/articles/shadow-over-xml today's is a real horror
2
 
Can someone help me by telling me how to remove the ':''s from
000000000:Sample:$1.99:001:28/10/2015:5/11/2015:$0.99
and put the values into datagridview1?
 
@Squiggle I turned pale reading that.
 
I asked this on Thursday but it still hasn't been resolved.
 
@Squiggle Whoah..
 
@kolton this is a string? You just split it into an array on ':', surely?
 
1:25 PM
@kolton .Split()?
 
Yeah, I am trying that. But I can't get it to work.
 
what did you try, exactly?
 
I know it's not right. I just don't know how to put the values into datagridview1
 
@Sippy I saw mainframe-developers-turned-VB6-programmers write InStr-based XML parsing, back in the day.
 
@AvnerShahar-Kashtan eugh.
 
1:28 PM
@kolton So you're asking the wrong question. You have an array of strings, and now you want to put them in a DataGridView. Asking about the string-splitting just confuses the issue.
 
Oh sorry.
 
@kolton You should be using a model for your datagridview
Would make life easier.
 
@kolton your Products.txt has many lines, correct?
 
It will, yes.
 
you're just treating the entire thing there as one long string
A Table is a two-dimensional data structure.
 
1:32 PM
Yeah. Well, I was just using the suggestions from Thursday.
 
OK
I would prefer to treat the input text file as a CSV (with ':' instead of ',' as a delimiter) and use msdn.microsoft.com/en-us/library/…
but that's just me :)
also ARGH WINDOWS FORMS >_<
 
Ha.
But using a delimiter wouldn't help in this case?
 
in the string "000000000:Sample:$1.99:001:28/10/2015:5/11/2015:$0.99" the ':' character is the delimiter
that library I linked to allows you to specify your own delimiter
 
The microsoft website doesn't seem to want to work. It says service unavailable
 
working fine for me!
 
1:41 PM
Weird.
 
guys I need help getting data here into a proper data structure
I have this json file but I'm not sure how to properly get the contents into a data structure: pastebin.com/K4PGBiMb
I just want the values of uncontrolled
They're supposed to be coordinates
 
this MTM is frustrating
 
@KalaJ I don't understand the format. Is each element in marker_x correlated with the element in marker_y?
 
I never realized how much I didn't understand about aggregates until this morning.
 
There's a solution to that problem
stop reading.
 
1:49 PM
@AvnerShahar-Kashtan, yes, I was given a horrible json file. So the first x pairs with the first y
 
in some cases it works as expected, in some cases it doesn't work at all (doesn't find the control) and in some cases it chooses to clicks an entire different control (for example: It should click on a save button but instead minimizes the window)
whoever developed that thing must've been drunk
 
@Sippy I'm trying to get some structure and some overall nice architecture in the company. So I'm putting the time in to really hopefully push in that direction.
 
@Squiggle I got it to separate and I put it into their respective columns. But I am having a hard time on getting to the next line to input it into the DGV.
 
@KalaJ Nothing about that looks like it won't deserialize into a strongly typed model...
 
000000000:Sample:$1.99:001:28/10/2015:5/11/2015:$0.99
000000002:Sample:$1.99:001:28/10/2015:5/11/2015:$0.99
000000003:Sample:$1.99:001:28/10/2015:5/11/2015:$0.99

That's the text file. It only inputs the first line.
 
1:53 PM
How is your morning?
@Sippy Postman is fantastic by the way.
 
@kolton that's because you're still treating the entire content as a one-dimensional array
huh yeah - Service Unavailable. MSDN is down.
 
Still down.
 
use ReadAllLines instead of ReadAllText
that returns an array of strings
then you can loop over each line, split by delimiter and work your magic
ReadAllText just returns one big string
 
@Squiggle, maybe I'm having a brain fart but what structure should I use?
 
@KalaJ a series of nested types?
 
1:56 PM
Educate me. I have a SQL Server database that I need to log in to from a Windows Service. I'm getting "Login failed for user NT AUTHORITY\LOCAL SERVICE". What do I need to change to do this?
 
public class Person {
    pubilc PersonInfo info { get; set; }
    public IEnumerable<Marker> controlled { get; set; }
    public IEnumerable<Marker> uncontrolled { get; set; }
}
etc
then just JsonConvert.DeserializeObject<Person>(jsonString);
 
"System.Array" does not contain a definition for "Split" and no extension method "Split".... Dafuq?
 
@kolton string.Split()
 
@KalaJ Read them both into arrays, then use Linq's Zip method.
 
Yeah, did that.
it's products.Split(somethingsomethingsomething);
 
1:59 PM
@KalaJ Start by creating classes for that JSON with Visual Studio's "Paste JSON as Classes" (if you're using VS2013 Update 2 or higher).
 
@kolton ReadAlllLines returns a string[] - an array of strings. You now need to loop over that array to get each line.
 

« first day (1843 days earlier)      last day (3120 days later) »