Sigh, I remember having to do this at uni....RPN anyone? Seriously though look up Reverse Polish Notation and stacks. It might help...it might not :) I am not very helpful am I? I just went on a nostalgia trip is all because of your post! :) thank you :) Cads
Senseicads
Posts
-
Let the user write a line code -
File FormatNo from now on it will be Luc said 30!!! its too late now! its in print and everything! :)
-
File FormatLol I think you are right. I pretty much just need a datastore. Thanks for the guidance :) Ian
-
File FormatI guess it would be fairly open ended as to how many podcasts that a user could subscribe to. I never really thought about how many records there would be( starting to sound like the amateur I am here!:) ) Actually thinking about my own usage, I am subscribed to about 10 different podcasts each with say 10-20 episodes in it. Certainly over your 30 records mark! ;) lol Is that a good rule of thumb? More than 30 use a db? Thanks Cads
-
File FormatIt just seems so OTT to use a Database to store what is basically RSS Feed data. [edit]Although saying that I didn't think of using Access...hmmm...just not sure...
-
File FormatHi everyone, I am kind of just after a bit of advice and opinon. I am making a podcatcher in C#(duh that's the board I am posting to :) ). I don't have any problem with the coding yet(touch wood) however I am trying to decide how best to store the information on the subscribed to podcasts and their relevant episodes. Straight away I thought about saving it as an xml file, podcast RSS downloaded as an xml file, fairly easy convert of my object into XML and then back to saving it. But then I thought it could get a bit iffy when it comes to duplicates. I don't really want to have to traverse the entire XML doc to find duplicates, and ensure that they don't happen. So thinking ahead i created my podcast episode objects with a unique id. but then i don't really want to save my subscription list in a db either, that seems to me to be overkill. The only other thing is to just output the subs list into a text file, then read each object in and ensure that there are no duplicates from what ever storage container i put them in(ArrayList prob :)) This seems a bit naff too though. I don't know I think maybe I am just rubbish at making a decision :), but I would appreciate some other people's input into how they would store the data. Thanks in advance Cads
-
Right tool for the jobThats really not a bad idea that. Hmmm I didn't really consider doing something like that but it may prove useful to know how to do it in the future. It might not as well, but it wouldn't hurt to know would it? :D Will have a browse around t'net and try and get me some knowledge then, any articles you would reccomend I read? I like the phrase "database agnostic" dunno why just had me chortling :D
-
Right tool for the jobThats what I thought, when I was planning it out. He got all snippy about the idea tho :) Its for me alone anyway so I guess I shouldn't really care whether he approves or not anyway! :) Cheers Guys Cads
-
Right tool for the jobI wasn't 100% sure that this was the right board to post this question in but my application is going to be in C# so thought this was the best fit. I am creating a simple lightweight app that I intend to use to keep track of the bugs I find in my bigger projects. I am a newish developer and I want to learn a bit of C# and thought this would be a useful (to me at anyrate) app to have and a good learning tool. Now I was intending just to attach an access database to the program to store each bug record. As its just for personal use and its only supposed to be a a small utility I thought this would be safe and easiest to do without having to bother with downloading and installing a mysql database and all the rest of that kind of hassle, plus I can just take a copy of the database onto which ever machine I go to and the computer with the database server running on doesn't need to be always on. I don't do much database programming and so can't see that it is worth the effort on my part. However a friend of mine has poo-pooed the idea and is on at me now about how stupid an idea it is to use access as its 'not a real database' and I should be using mysql or at the very least sqlexpress. I am fairly ok at SQL having used it for a number of jobs and would have no probs using it as part of the application if I thought it was neccassary, but I just don't think it is...what does anyone else think? Should I just bite the bullet and download mysql or is using access 'babyish' and 'not worthy of a developer' as my friend puts it? was actually a little offended by his attitude tbh and wish I hadn't told him what I was doing but c'est la vie! Cheers Cads
-
Sh*t people storming the cash counterIt's not exactly self discipline, it's just what people do. It's the norm around these parts :) You do get people pushing in and jumping the queue but then the rest of the queue tuts and shakes their heads and the queue jumper is made to feel properly ashamed of themselves! :) They won't move like but at least us proper 'queuers' have tutted and shook our heads. Cheers Cads
-
Sh*t people storming the cash counterYou want to live in England...queuing is almost our national sport. Here for some unknown reason at a counter with multiple windows open we can form a single queue which will then filter one by one into each window as it becomes open...no-one tells us to do this, there are no signs...we are just english :) Its the most democratic form of queuing in the world! :D lol It happens everywhere even places like burger king and mcdonalds :) lol Cheers Cads
-
Chart reccomendationThanks Mubashir, thats a good list will have a look thru them and see if anything leaps out :D any you would personally reccomend? Cheers Ian
-
Chart reccomendationI seen that one before, it puts me off because the licencing issues aren't what we are looking for. We need something that we can pay once and distribute freely there after. We have a number of clients all running the same applications on their own servers so the licencing offers on .netcharting really wouldn't be useable for us. thanks for the input tho :D Cheers Ian
-
Chart reccomendationHi Wondering if you fine fellows can reccomend a charting/graphing library for me to use. Doesn't need to be dynamic, don't mind paying a bit for it altho a free one would be nice ;) Licence needs to be able to be distributed freely when we have used it though. Needs to do simple bars and pie charts. We were using simplechart but that doesn't allow us a lot of freedom to customise it. Thanks Ian
-
Export a table to a csvThanks thats the way I have implemented it now. I perform the purge whenever the application start method runs. The Server is shutdown at the end of each working day so it should purge once a day. Its a right bit of a bugger tho. Esp as I haven't been able to figure out as to when the application object is created if the path of the calling webform isn't in the root then it has the potential to create CSV directories allover the shop :-S I am using MapPath to get the Path name and it just picks up the current location. nightmare! :( lol I am sure is will come up with something tho :D Cheers For everyone's help esp Martin! :D Ian
-
Export a table to a csvyeah I can do all that I can put the csv file using streamwriter...i just need to know where to put the file that streamwriter creates and how do i access it! At the moment I am attempting to place the file on the server and then redirect the browser to the file name. This isn't working for me yet however, and I am not sure that this is even the best way to do it. I was asking which is the best way. Here is my code, so you can see where I am currently coming from, it don't work like but it should give you an idea as to where i am coming from. But don't forget I am enquiring about best practices here, not how to fix this specific bit of code.
Protected Sub btExport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btExport.Click Dim datTable As DataTable = gvReport.DataSource ' Create a directory for the file to be stored on the server ' Check whether a directory exists in the first place. If not create it. If Not Directory.Exists(Server.MapPath("CSV")) Then Directory.CreateDirectory(Server.MapPath("CSV")) End If ' Create a unique identifier. Dim strFileName As String strFileName = Server.MapPath("CSV") & "\" & GetTempName() Dim objStreamWriter As StreamWriter objStreamWriter = File.AppendText(strFileName) ' Code to write the csv file to the writer. objStreamWriter.Close() End Sub
Cheers Ian -
Export a table to a csvSo having a quick glance thru that article and the code for it, that just writes a csv string to the browser. I can do that already, I can parse the table to a csv stream no probs. :D My question and what I am more interested in knowing about is how I can export a .csv file from the datatable to a file through a button click on the browser...do i have to save the csv on the server? or can i save it straight to a user specified location on the local machine? I was thinking that if it wasn't possible to save to the user's local machine do I save it to the server with a unique name then try and open the file from the server? Is that the best way of doing things? or is there a reccomended best practive for this? Thanks for taking the time to help. Cheers Ian
-
Export a table to a csvCan someone tell me if this is possible please. I have created a web based reporting application for my boss and he wants the option to export the tables that get shown to a .csv file. Seems reasonable except I am pretty sure that as it's web based I can only write back to the server...is this true? If not what do I do to save the .csv on his local machine? I was thinking that maybe I can save it on the server then try and open it on via the browser so the standard download attatchment window comes up? is there a set/standard or best practice way of doing this? Thanks in advance for any help. Ian
-
Events from a custom controlThanks a ton Christian, You know when a solution is staring you right in the face and you can't see it!! :D Most of that I think was down to me using another person's control and attempting to make it work with what they had done...note to self...think outside the box :D Cheers Ian
-
Events from a custom controlI have a user control built with a checkbox list as part of it. It was built by someoneelse and i am just attempting to use it. I want to be able to handle the checkboxlist selectedindexchanged event when using the control as part of another webpage. Can someone help me as to how I should do this please? Its got me a little confused. I have set up a property to return the checkboxlist as an object but don't know how to set it up to get the event. i have snipped and edited down the whole control and it is detailed below. Sorry if its a lot of code but better that you have all the info. <%@ Control Language="VB" ClassName="ctlDropDownCheckBox" %> Protected Width As Long = 150 Public ReadOnly Property List() As CheckBoxList Get List = chkResults End Get End Property
">
" class="uiSelectBox" style="display:none;" onclick="javascript:<%= Me.ClientID %>_Update();" ondatabinding="javascript:alert('100');" >
Cheers Ian