|
epalm posted:The "help file" that ships with our software is a directory containing html files, which comes from an MS Word document -> Save As Web Page They were used for internal documentation (e.g. Customer Support scripts, company policies, holiday calendering, release notes etc.) and not customer facing, but I've used ScrewTurn Wiki quite a few times in the past: http://www.microsoft.com/web/screwturnwiki/ You say IIS is a dependency which implies enterprise stuff though, I'm not sure if lumping in a whole CMS/wiki package into the install would, for example, not create headaches in terms of a security audit. (e.g. what happens if an exploit is found in STW?)
|
# ? Nov 7, 2014 20:39 |
|
|
# ? May 2, 2024 03:00 |
|
Scaramouche posted:They were used for internal documentation (e.g. Customer Support scripts, company policies, holiday calendering, release notes etc.) and not customer facing, but I've used ScrewTurn Wiki quite a few times in the past: Well, I suppose I'd want authors to deal with a (web-application-backed) wiki, and our clients to deal with a User Guide in a browser, but that doesn't mean the CMS has to be running on the client's machine. I think what I'm really after is CMS/Wiki software that can gracefully export its entire contents (html, css, js, images) to a folder. That way, there's no CMS to hack on the client's machine.
|
# ? Nov 7, 2014 21:11 |
|
Ah I get you. Then ScrewTurnWiki might not be the solution, it doesn't have native export support: http://www.wikimatrix.org/show/screwturn-wiki
|
# ? Nov 7, 2014 22:03 |
|
I have an ASP.NET MVC question. My site requires user registration and an administrator has to approve each new user before they can log in. I want the admins to be able to see the list of users and be able to approve/reject new ones with a single click, no going to a confirmation page or anything. As I understand these things, since these will be operations that affect the database I want to do them in POST methods. My HTML looks something like this: HTML code:
Please keep in mind, this is a learner project, so if there's something obvious and fundamental I'm missing, be gentle
|
# ? Nov 7, 2014 22:29 |
|
I think I see your confusion; you're struggling with the idea that each button could potentially be a submit and how to handle them independently? What I'm wondering is, why have a button for each one and the round-trip that implies? You could have checkboxes or radios instead (with the default set to approve/reject depending how often each comes up). Then the form can handle each box/id in a FOR...EACH operation with only one submit.
|
# ? Nov 7, 2014 22:45 |
|
epalm posted:Well, I suppose I'd want authors to deal with a (web-application-backed) wiki, and our clients to deal with a User Guide in a browser, but that doesn't mean the CMS has to be running on the client's machine. I think what I'm really after is CMS/Wiki software that can gracefully export its entire contents (html, css, js, images) to a folder. That way, there's no CMS to hack on the client's machine. Maybe something likey jekyll would work here.
|
# ? Nov 7, 2014 23:17 |
|
Scaramouche posted:I think I see your confusion; you're struggling with the idea that each button could potentially be a submit and how to handle them independently? What I'm wondering is, why have a button for each one and the round-trip that implies? You could have checkboxes or radios instead (with the default set to approve/reject depending how often each comes up). Then the form can handle each box/id in a FOR...EACH operation with only one submit. Mostly I'm dealing with people who I know really struggle with anything computer. I didn't want to introduce an extra step, and "push button, thing happen" is as simple as I came up with. Radio buttons probably are a better plan though.
|
# ? Nov 7, 2014 23:33 |
|
Che Delilas posted:Mostly I'm dealing with people who I know really struggle with anything computer. I didn't want to introduce an extra step, and "push button, thing happen" is as simple as I came up with. Radio buttons probably are a better plan though. I got you. If you're still married to the idea, you could fake it out with link buttons. I have no idea how 'MVC' that is, but instead of doing a full submit just have a link button with href="blah.aspx?userid=xx&approve=1" and then let the code behind process it. Insecure as hell and messy to boot.
|
# ? Nov 7, 2014 23:53 |
|
Scaramouche posted:I got you. If you're still married to the idea, you could fake it out with link buttons. I have no idea how 'MVC' that is, but instead of doing a full submit just have a link button with href="blah.aspx?userid=xx&approve=1" and then let the code behind process it. Insecure as hell and messy to boot. I don't think there's a clean way to do it the way I want to. Another problem is that you can do this from multiple places (a "manage users" page and the main admin control panel 'dashboard' thing), and approval/rejection is not the only thing you can do with users. Like you can delete/deactivate accounts and manage their roles too. I think what I'm going to do is reorganize everything so you get to do one function at a time. So no more "manage users" uberpage with all the functionality right there, instead we're going to have a "These are the users awaiting approval" page (with the single form, radio button approach), a "Change User Roles" page, and a Deactivate Users page. That way, each function can be accessed from multiple places if I need to (dashboard/manage users page), each page has one thing you can do on it, and it won't flood anyone with information. It's more clicks but it'll probably be less confusing, and this isn't an area that anyone is going to need to spend a lot of time in; extra clicks aren't a huge deal.
|
# ? Nov 8, 2014 01:03 |
|
epalm posted:How do you provide Documentation / User Guides to your clients via the .NET stack? Entirely in MarkDown, on github. Allow anyone to submit pull-requests to improve the docs. That's not how my team does docs, but it would be pretty awesome and agile and open.
|
# ? Nov 8, 2014 03:02 |
|
I started using MarkDown for all my personal notes and documentation on things (because MarkDownPad for Windows is awesome). I had no idea on the (php) history of it or whatever. Then I read this and this and was like, holy poo poo, is there anything people won't waste their time arguing about?
|
# ? Nov 8, 2014 18:45 |
|
How do I use stream.CopyToAsync(stream) in F#? I use the following, it is what I got working: code:
Mr Shiny Pants fucked around with this message at 21:45 on Nov 10, 2014 |
# ? Nov 10, 2014 21:39 |
|
Mr Shiny Pants posted:How do I use stream.CopyToAsync(stream) in F#? Are you looking for Async.AwaitTask?
|
# ? Nov 10, 2014 21:50 |
|
Mr Shiny Pants posted:How do I use stream.CopyToAsync(stream) in F#? F# async and C# async are different, totally
|
# ? Nov 10, 2014 21:53 |
|
Che Delilas posted:I don't think there's a clean way to do it the way I want to. Another problem is that you can do this from multiple places (a "manage users" page and the main admin control panel 'dashboard' thing), and approval/rejection is not the only thing you can do with users. Like you can delete/deactivate accounts and manage their roles too. Why not make use of Ajax? The "link" is just an anchor tag that is bound to an event that fires an Ajax POST to your server. You could then register a callback on successful completion of that HTTP request to change that row, refresh the table, or do whatever you want to do.
|
# ? Nov 10, 2014 22:10 |
|
So I pretty much "get" what mvvm is supposed to do, and mostly how it should be implemented with WPF... but one thing I haven't figured out is, what is the correct place to change UI interactions? Like sure commands can be used to hook a button action, but what about changing the behavior of a textbox when it's clicked? Like if I want to have it select all of the text in a textbox, instead of just bringing up a standard typing cursor? Does that go in the code behind? I guess it makes sense since the code-behind controls the code of a view (for the most part) but it doesn't take much to muddy up the code-behind with some UI interactions. Unless I'm missing something here?
|
# ? Nov 10, 2014 22:56 |
|
Knyteguy posted:So I pretty much "get" what mvvm is supposed to do, and mostly how it should be implemented with WPF... but one thing I haven't figured out is, what is the correct place to change UI interactions? Like sure commands can be used to hook a button action, but what about changing the behavior of a textbox when it's clicked? Like if I want to have it select all of the text in a textbox, instead of just bringing up a standard typing cursor? Does that go in the code behind? You should probably do that via a dependency property. Instead of handling it within the view, you define a dependency property that's responsible for extending the behavior of the existing control.
|
# ? Nov 10, 2014 23:20 |
|
Ithaqua posted:You should probably do that via a dependency property. Instead of handling it within the view, you define a dependency property that's responsible for extending the behavior of the existing control. Ah, very cool; I wasn't aware of dependency properties. There will definitely be some time tomorrow allotted for refactoring then. Thanks for answering my poorly worded question .
|
# ? Nov 11, 2014 00:30 |
|
GrumpyDoctor posted:Are you looking for Async.AwaitTask? I tried this, but I haven't found the proper incantation yet. It keeps nagging about types not being right.
|
# ? Nov 11, 2014 06:35 |
|
don't be afraid of writing codebehind code and custom controls, though - that is the right way to accomplish some view-specific stuff in WPF (well, maybe stay away from the latter unless you've got a good handle on templatebindings and Generic.xaml...)
|
# ? Nov 11, 2014 06:41 |
|
Mr Shiny Pants posted:I tried this, but I haven't found the proper incantation yet. Can you post a specific error message?
|
# ? Nov 11, 2014 08:38 |
|
GrumpyDoctor posted:Can you post a specific error message? Function: ( Really no clue what I should write so this is what I tried.) code:
code:
|
# ? Nov 11, 2014 10:06 |
|
Bognar posted:Why not make use of Ajax? The "link" is just an anchor tag that is bound to an event that fires an Ajax POST to your server. You could then register a callback on successful completion of that HTTP request to change that row, refresh the table, or do whatever you want to do. This is what I would do. Use Ajax.ActionLink. You can set the method to POST in the Ajax options so that you can't just approve users using the URL. It would be something like this (dependant on the name of your action methods and controllers): code:
e: If it's not referenced by default you can install it with NuGet: http://www.nuget.org/packages/jQuery.Ajax.Unobtrusive/ e: This might be worth a look too: http://haacked.com/archive/2009/01/30/simple-jquery-delete-link-for-asp.net-mvc.aspx/ e: This is also good reading, although it deals with delete links, a lot of these concepts apply still: http://stephenwalther.com/archive/2009/01/21/asp-net-mvc-tip-46-ndash-donrsquot-use-delete-links-because chippy fucked around with this message at 11:10 on Nov 11, 2014 |
# ? Nov 11, 2014 10:53 |
|
Mr Shiny Pants posted:Function: ( Really no clue what I should write so this is what I tried.) You are running into this stupid problem. There are some workarounds there. And the thing you posted earlier is also a use of a C#-style async method in F#, it's just a more convoluted one.
|
# ? Nov 12, 2014 03:59 |
|
Plug: We launched "VS2015 Preview" today: download For .NET, it's going completely open source. The .NET team will do their development (checkins, bugs, ...) all in the open. If for whatever reason you wanted to package up your own tweaked version of System.Xml.dll with your app, say, you'll be able to do that. For WPF, it has a solid roadmap for the future. For VB/C#, here are complete lists of all new language features in C#6 and VB14. Here in the VB/C#/.NET teams we're pretty excited! We'll writing more on the .NET blog, C# blog and VB blog, once we have time to write it in the coming weeks EDIT: Got to mention the new VS2013 Community Edition. It's free, and a major step up from the "express" editions - kind of like the "Pro" version of VS, also allowing VS extensions. It's free for any non-enterprise application development. ljw1004 fucked around with this message at 17:38 on Nov 12, 2014 |
# ? Nov 12, 2014 17:24 |
|
ljw1004 posted:We launched "VS2015 Preview" today: download Can I run this side-by-side with VS2013/2012 or should I stick it on a VM still? EDIT: I didn't read the KB article quote:Although this release is intended to be installed side-by-side with earlier versions of Visual Studio, complete compatibility is not guaranteed.
|
# ? Nov 12, 2014 17:31 |
|
gariig posted:Can I run this side-by-side with VS2013/2012 or should I stick it on a VM still? Most of us in the VB/C# team are running it side-by-side with VS2013. It does install and uninstall cleanly. I've heard two reports from people who said that they installed VS2015, and this prevented VS2013 from opening projects, but it was fixed when they uninstalled VS2015. Not sure what was going on.
|
# ? Nov 12, 2014 17:34 |
|
ljw1004 posted:For WPF, it has a solid roadmap for the future. That makes me happy that there is a some movement for WPF. I'm also really happy with the new features in VS2015. Lambdas in the debugger *Plug* Xamarin is also getting some major love today at Connect. Thanks to the community edition, you can now run our Visual Studio extension without paying for Professional. Also the starter edition is getting support in VS for the first time.
|
# ? Nov 12, 2014 17:43 |
|
ljw1004 posted:Plug: Wow that's nice. Thanks.
|
# ? Nov 12, 2014 17:47 |
|
OP updated. I'll update further as more stuff comes out -- I know there's some good stuff in the ALM space coming soon.
|
# ? Nov 12, 2014 17:51 |
|
ljw1004 posted:EDIT: Got to mention the new VS2013 Community Edition. It's free, and a major step up from the "express" editions - kind of like the "Pro" version of VS, also allowing VS extensions. It's free for any non-enterprise application development.
|
# ? Nov 12, 2014 17:54 |
|
I just wanted to drop in and mention that I just found out today that LINQPad can update the database which has inspired me to buy it because it made the most annoying part of parsing and updating a bunch of dates that SQL doesn't natively support writing C# half in VS and copying it into LINQPad. It was great to be able to slap togethercode:
ljw1004 posted:For .NET, it's going completely open source. The .NET team will do their development (checkins, bugs, ...) all in the open. If for whatever reason you wanted to package up your own tweaked version of System.Xml.dll with your app, say, you'll be able to do that. Is everything going to be MIT or is it going to be mix-and-match? ALl I see is him saying there's already some stuff up under MIT and they want to be license agnostic somehow. quote:For WPF, it has a solid roadmap for the future. Oh hey someone remembered that WPF exists
|
# ? Nov 12, 2014 18:46 |
|
quote:For WPF, it has a solid roadmap for the future. Could Microsoft please make a set of really good controls? And also use it themselves? It would go a long way of making applications written for Windows look better and consistent. I also run Mac OS and it looks really consistent compared to Windows. VS is written in WPF right? That would be nice to have as a base set of good looking controls. Mr Shiny Pants fucked around with this message at 18:58 on Nov 12, 2014 |
# ? Nov 12, 2014 18:53 |
|
ljw1004 posted:For .NET, it's going completely open source. The .NET team will do their development (checkins, bugs, ...) all in the open. If for whatever reason you wanted to package up your own tweaked version of System.Xml.dll with your app, say, you'll be able to do that. Interesting. Time to think about a pull request for ObservableCollection<T>, perhaps. ljw1004 posted:For WPF, it has a solid roadmap for the future. YAY! And I see performance is an area of focus thank goodness. To be honest I'm much more excited about this WPF post than I am about .NET being open source.
|
# ? Nov 12, 2014 20:38 |
|
Note that Windows Forms and WPF aren't being open-sourced, so you're still not going to be able to run any .NET application in Linux without a hassle.
|
# ? Nov 13, 2014 00:04 |
|
ljw1004 posted:We launched "VS2015 Preview" today: download Are there VMs of this on Azure?
|
# ? Nov 13, 2014 00:22 |
|
dpbjinc posted:Note that Windows Forms and WPF aren't being open-sourced, so you're still not going to be able to run any .NET application in Linux without a hassle. One can hope for WPF, forget it for winforms. what's the point? secondly, if someone provides clr bindings for their UI library, as long as the app is developed with it then sure why not.
|
# ? Nov 13, 2014 00:33 |
|
I wouldn't expect any .NET UI libraries from Microsoft to make their way to other platforms anytime soon.
|
# ? Nov 13, 2014 01:03 |
|
Though looking at the roadmap / slides -- basically the theory is write a core, write platform-specific UIs -- does that just translate to a Mac Presentation Foundation and a Gnome Presentation Foundation at some point down the line? Or do they just buy Xarminian and get Xarminain.Forms?
|
# ? Nov 13, 2014 01:29 |
|
|
# ? May 2, 2024 03:00 |
|
Munkeymon posted:I just wanted to drop in and mention that I just found out today that LINQPad can update the database which has inspired me to buy it because it made the most annoying part of parsing and updating a bunch of dates that SQL doesn't natively support writing C# half in VS and copying it into LINQPad. It was great to be able to slap together I believe that's made possible by the LINQ to SQL library straight from Microsoft. Your code is being turned into a SQL script.
|
# ? Nov 13, 2014 01:33 |