Hello. I have a HTTP Module that changes the content of all pages by summarize them. This process takes a while to complete, between 1 and 2 minutes. I want to use the HTTP module to responde a loading page that tells to user that the summarization process is loading... My problem is that I can only responde 1 time. It whoud be great having 2 responses. :) Thanks !! Bruno Conde. pharaoh
brunoconde
Posts
-
Http Module for loading page -
HTTPModule and a Word CorpusYes, thats true but this is what i'm doing now. When my ASP.NET application starts i load the corpus... The problem is when the first incomming HTTP request is processed that is when corpus is load. This is very slow for the first user to see my website. I want something like when the computer loads, at startup, the aspnet_wp.exe (Worker Process) then i load the corpus... You dont know if that can be done in machine.config in ASP.NET configs?? Thanks !! Bruno Conde. pharaoh
-
HTTPModule and a Word CorpusI'm doing a HTTPModule to summarize the text within web pages in my web server. The summarization process is with me but i need a big corpus of words to help on summarization. My problem is : Where do i put this corpus in memory so it can be acessed quickly in runtime ???? Now i have a static variable that stay in memory with the corpus and the next time a page loads it has already the static corpus in memory. I have this static variable when i call HTTPModule. I still have the problem of loading the corpus in the first time that someone loads the page... I takes a while reading it from a file. Is there any way to call my HTTPModule when the IIS starts or something like that??? Do you have any other ideas that can help me??? Where do i put the corpus in memory??? A Windows Service Works??? Can i call a Windows Service that has the corpus in memory and be fast enougth??? Thank you very much !!! :) Sorry for my English...:( Bruno Conde. pharaoh
-
HTTPModule and a Word CorpusI'm doing a HTTPModule to summarize the text within web pages in my web server. The summarization process is with me but i need a big corpus of words to help on summarization. My problem is : Where do i put this corpus in memory so it can be acessed quickly in runtime ???? Now i have a static variable that stay in memory with the corpus and the next time a page loads it has already the static corpus in memory. I have this static variable when i call HTTPModule. I still have the problem of loading the corpus in the first time that someone loads the page... I takes a while reading it from a file. Is there any way to call my HTTPModule when the IIS starts or something like that??? Do you have any other ideas that can help me??? Where do i put the corpus in memory??? A Windows Service Works??? Can i call a Windows Service that has the corpus in memory and be fast enougth??? Thank you very much !!! :) Sorry for my English...:( Bruno Conde. pharaoh
-
ASP.Net User Rights on C DriveHello!! I had the same kind of problem but a litle diferent... I need to create e temporary files in the hard drive and the only way i can do that is by create that file in a directory that ASP.NET user has write access... like Temporary Internet Folder. Try to copy the file you need to run to that folder if you can. Changing admin rigths i dont know !!! sorry... Bruno Conde. pharaoh
-
Regular Expression for html tagsHello!! Im trying to remove all html tags except some tags like and . I did a nonCapturing Group but this don't work. Alternate bar | suppose to match left most option.... If i found a or tag i dont want to replace it with "". Regex.Replace(inputText, @"|]|\n)*?>", ""); Please Help me !!!! Thanks !! ;) Bruno Conde pharaoh -- modified at 11:16 Thursday 22nd September, 2005
-
Regular Expression for imagesHello!! I need to get the size of all images from an html page but i cant do one thing. Whith this expression i get only images where heigth and width come in this order. Ex:
i can make only one to work. How do i do this? r = new Regex("<\\s*img.*height=\"(?.*?)\".*width=\"(?.*?)\".*>", RegexOptions.IgnoreCase | RegexOptions.Compiled); thanks!! ;) Bruno Conde pharaoh
-
HELP!! Regular ExpressionThank you very much for your reply... It was realy that. ;):-D pharaoh
-
HELP!! Regular ExpressionGreetings!! I need to get some text from paragraphs on html pages and i did the next regular expression: <\s*p[^>]*>(?<1>[\s\S]*)<\s*/\s*p\s*> where <1> is the group in witch i store all text inside a paragraph. It works fine on one paragraph. If i have this sample:
hello 1
hello 2
hello 3
i only get one paragraph that is: hello 1
hello 2
hello 3 What is wrong???? please help me. thanks. Bruno Conde.
-
Muting soundHello. I also dont know or worked so far with the system Sound but i think that is only possible with Microsoft DirectX. Download it and try. Bruno Conde ;) pharaoh
-
ArrayListDeconstructor in c# ???? I think Managed code in .NET as Garbage Collector. :doh: And ArrayList is part of managed Code but i dont know if that garbage is collected. You can try something like doing a loop in that you declare a new ArrayList with some elements. Run it. Then go to Windows Task Manager and if the memory of your program doesn't stop climbing then its because that garbage isnt collected. Put some "big" elements in Array List. If not try to set ArrayList to null as you say and try again. Bye. ;) pharaoh
-
Thread Safe or not ...Hello !! :confused: I've been programing in Visual Studio 2003 and now i change IDE to Visual Studio 2005 Beta 2 and of course .NET 2.0 Beta. I converted the project i was doing and i run it. It show lots of runtime errors of Thread Safe because it looks like Windows.Forms is no longer a Thread safe operation (why have they change this???? don't have a clue). How can i call these objects in another thread? i know it has something to do with "Delegate" or "control.Invoke" but i think this has change too. Please help me. :( thanks !! ;) Sorry for my English... Bruno Conde pharaoh
-
ASP.NET big problemhi there. ;) I have a project to make and i'm a litle confused. Between a Browser (like IE or Firefox) and the web server IIS i have to do something (application, Server, module ...) that recognizes a PDA and if so change HTML code or change the text inside it and then answer the request. I need some kind of module or application that work with IIS and, if device is PDA, change the response to the browser. The problem is that i have to change the text within the pages of all web sites... I can configure web.config in ASP.NET on root of all web sites in IIS to recognize or filter PDA devices and i did a module with the help of a web service to change the web pages but this only works with pages that use aspnet_isapi.dll. The rest of the pages pass by this module. This only works in WebService pages or WebApplication pages. I need a "HTTP Runtime Support" of .NET with HttpHandler and HttpModule for all pages and not only for aspnet_isapi.dll. ASP.NET The only way i think this is executable is by making a ISAPI filter for IIS but i need to program in c# for my project ... .NET, C#. Can you Help me !!! PLEASE :( Sorry for my english. Thank you for your time ;) Bruno Conde ;) countbruno@gmail.com
-
WebService send message to clientsI'm a beginer in WebServices. I need to interact my WebService with a DataBase and the clients of the WebService. Because I'm the administrator of DB I need to send to WebClients, of the WebService, updated information on tables, datasets ... For this i need to known from my WebService Witch clients are connected at some time. How can i update clients information without they hask for none? thank's. Bruno Conde. ;)
-
Thread and Not RespondingThanks for the tip. If after i create the thread t and then do t.Join() the application don't stay "Not Responding" but it stays stopped until the thread t stopps. I think that the application stay's in "Not Responding" because in ApplicationTick1() i refer a recursive method. This method takes a while to do it's job and in that while the application stays "Not Responding". Here is a sample of the code in ApplicationTick1: // preenche a arvore MyDelegate d = new MyDelegate(LDAPLibrary.Class1.FillTreeView); this.Invoke(d,new object[] {conn,tv.Nodes,p2,true}); :((
-
Thread and Not RespondingGreatings !!! I have a simple (I think) problem. I need a thread that executes some part of a code and during that time i want to suspent or pause the main application thread. This way the application do not appear (Not Responding) or is the same? Do you have another solution? How can i do this? Sorry for my English !!! thanks. Bruno Conde.
-
Simple Problem with listviewHello! I'm using a listView to display some objects and i have in each row a checkbox control. I want to remove the selection of one item so that the only control selection on the listview is the checkbox. I another way i want the item doesn't turn blue when selected and the only way of selection is the checkbox. Thanks !! Bruno Conde ;)
-
Time EventHandlerBut I can't use a timer because I'm using a thread to do this, i tried and did not work. The idea is great. Thanks. ;)
-
Time EventHandlerI'm making a program to schedule my programs and to shut down my computer in a choosen time but this way my processor is 100 percent, logicaly. How can i change this. while (!(System.DateTime.Now.Equals(shut.getDateTime()))) { } this.Computer_Shutdown(); Please help me. Thank you. :((
-
Service interact with Windows MFCGreetings!! I have been working on a project of a windows service and now i have a big problem. But after installing my new service i discover that the framework lib's don't work when the service starts ( when Windows Starts). I read about this problem in .NET and they say that only windows MFC Library is capable of this. I wonder if there is a class in c# for making possible the framework work on startup. In another way of explaining this my service starts but when I click on the service icon I don't get any result or sometimes I get Error when it shoud show a window I make. This is my problem::::::::::::::::::::::::::::::: Windows Service applications run in a different window station than the interactive station of the logged-on user. A window station is a secure object that contains a clipboard, a set of global atoms, and a group of desktop objects. Because the station of the Windows Service is not an interactive station, dialog boxes raised from within a Windows Service application will not be seen and may cause your program to stop responding. Similarly, error messages should be logged in the Windows event log rather than raised in the user interface. The Windows Service classes supported by the .NET Framework do not support interaction with interactive stations, that is, the logged-on user. The .NET Framework also does not include classes that represent stations and desktops. If your Windows Service must interact with other stations, you will need to access the unmanaged Windows API. For more information, see Window Stations and Desktops in the Platform SDK documentation. :::::::::::::::::::::::::::::::::::::::::::::: How can i resolve this??????????????????????? Please help me and sorry my bad English. :(( :confused: