Georgyporgy's Q&A profile
Internet Explorer Development AdBlock for IE
I write something like adblock for ie. It has to parse the page, find unwanted ads and replace them with wanted ads. The problem i faced is when to parse and what to parse. My first idea was to do parsing in a temporary mime filter, but in this case there is a lot of "unresolved" code (internal/external scripts that can modify documen and are executed after parsing). It is also possible to make filter for image/*, load wanted ad myself and return it in filter's Read method but i have to modify ad's "href" so the problem is not solved completely. Also, this approach does not work for activex(flash). After that i tried to parse DOM from BHO, but in this case unwanted objects are displayed for a while before I can replace ...Show All
SQL Server Calling commands from the cmd prompt
I have a series of commands that I need to run which decrypt, unzip, and rename They are all one line commands when entered on the cmd prompt, is there an easy way to do this in ssis or should i write an exe and call them from there Thanks Yes, but the execute process task will execute a program. Granted I could make that program cmd.exe, I stuck on how to make an execute process task that will open up cmd and make the calls that I want. I could write a .exe file that that I could then put in the execute process task, I'm just curious if there's a way to do it w/ out writing my own script.exe file. Thanks ...Show All
Smart Device Development Using VB program to open file on a CDMA device - PPC6700
I'm trying to use the Shell command to run a .exe file on a mobile Pocket PC, but when I run/debug the program on the phone it keeps coming up with the FileNotFound error. I'm thinking it is the path that is wrong, but I can't find anywhere as to how to address the path on a mobile device.. i.e. Shell("c:\program files\calc.exe"). I have tried every combination i can think of, from My Device, to C: to just \... but nothing seems to work and I know I'm missing something. Any help would be appreciated. remember, the features in the full .NET Framework are not all available in .NET CF. you would need to find another way of killing the process. Perhaps there is some P/Invoke/API somewhere that allows you to kill of the proce ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No Support For Initing A Window Handle As Display?
OK, I've just downloaded and went through the framework a bit already. I must say, this is REALLY GOOD!!! No more mashing around acquiring devices and such, everything just works smoothly. I'm delighted!! But then I found a problem. There are people who were using DirectX managed to create UserControls to display graphics and present data based on a user interface. As far as I can tell right now, the framework only supports creating a device as windowed, or fullscreen. Is there an option to specify a window handle that we can create the device with I know that doesn't port well to the 360 scenario but it's something that some of us do use, and after just a taste of what coding with XNA can do, I don't want to go back to the non X ...Show All
Visual C# Custom Business Objects as Data Sources
I've built a class library and it builds fine. I go into the Data Sources of my client windows application but it doesnt appear in the data sources object list even though I've referenced it. I've done a couple of tests with building dummy class libraries and I get this problem intermitantly. I'm new to C# and so I think it could be something I'm doing wrong. Can anyone point me in the right direction. grnr_r wrote: On the classes I wanted to expose as custom business objects, I hadn't defined the class as Public and with the way the Data Sources window works if there are no public properties in the business classes then the project won't appear as a data source. In my project I did have public ...Show All
SQL Server Writing to a delimited flat file but with my choice of the delimiter.
Hi Folks, I would like to write my table to a delimited file but I seem to have no choice but to use comma as the delimiter. Is there any way I can choose the delimiter Thanks. Sid Thank you Jamie. I had missed that. It had not given me a choice at the time of creating the connection manager (csv and fixed length were the only options). ...Show All
Visual Studio Team System Custom "Project Lead" group can not add users
I've created a custom Project group called 'Project Leads'. It has every right at the project level except "Delete this project". I've added the Project Lead to this TFS Security group and he is not able to add users to the other Project security groups What other rights does this custom group need in order to add users to this projects security groups Thanks, John In version 1.0 you must be a member of the Project Administrators group or the global Administrators group in order to modify group membership. One way that you can delegate group administration is to create a group in AD, add then add the AD group to the TFS group. Then you can use normal AD permissions to delegate administration of the AD group ...Show All
Visual J# Differences in 1.1 vs. 2.0 -- sockets/networking
We have a J# layer that communicates with our mainframe. It maintains a pool of GU3270 emulation connections. Prior to deploying 2.0, our virtual machines were able to suspend for backup for periods of approximately 5 minutes every night, and resume service immediately afterward without difficulty. Since deploying 2.0, it seems as though the VMWare freeze on the server image, if frozen for a long enough (4+ minutes it seems) period of time, leaves us with dead sockets in the connection pool. The connection pool is unable to close the connections, as either the sockets, or their output buffers, are null/disposed after image thaw. Without being able to properly close the connections from its perspective, the pool cannot reinstantiate them ...Show All
Windows Forms Save File Dialog. (I have code, just need a little help fixing)
Hey, Ok, so I did the save FIle dialog code and it works fine. But I can't figure out how to amke it so thta is will save the contents of the current page in the webbrowser. Here is the code: private void savePageToolStripMenuItem_Click( object sender, EventArgs e) { Stream myStream = null ; SaveFileDialog saveFileDialog1 = new SaveFileDialog (); saveFileDialog1.InitialDirectory = "c:\\" ; saveFileDialog1.Filter = "Webpage Html (*.html)|*.html|Text File (*.txt)|*.txt" ; saveFileDialog1.FilterIndex = 2; saveFileDialog1.RestoreDirectory = true ; if (saveFileDialog1.ShowDialog() == DialogResult .OK) { try { if ((myStream = saveFileDialog1.OpenFile()) != nu ...Show All
Visual Studio 2008 (Pre-release) Building RGBFilterEffect error
While building RGBFilterEffect sample I'm getting an error building RGBFilterEffectLibPS project... Error: MIDL will not generate DLLDATA.C unless you have at least 1 interface in the main project. Project : error PRJ0002 : Error result 1 returned from 'C:\Windows\system32\cmd.exe'. Is anyone else getting this error ...Show All
Visual Studio SSMS and VSIP
Does anyone know if VSIP addins can be integrated into Sql Server Management Studio There is a "Packages" key under the main SSMS registry key, and if you register your package there, SSMS appears to read those keys (using regmon to see this). If yes, then how do I request a Package Load Key for SSMS The PLK request page only has Visual Studio in the dropdown for which IDE to support. Any help is appreciated... ~Steve Hi Steve, I also think so, because the SQL Server Management Studio and VSIP/VS SDK are unrelated. I am sure that internally the SQL Server Management Studio uses IDE technology borrowed from VS (not only the toolbars, which in turn are borrowed from Office) but all ...Show All
Connected Services Framework HelloWorld Sample-CreateSession times out
hi, Can somebody tell, why should the CreateSession time-out . After clicking CreateSession button, the status continues to show "create session in progress", and after some time, it times out. Links are all proper. thanks,. anita hi, We had a look at the input trace at the location specified. We noticed that, there was an exeception getting thrown. <processingStep description="Entering SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" /> <processingStep description="Exited SOAP filter Microsoft.Web.Services3.Design.RequireSoapHeaderAssertion+RequireSoapHeaderFilter" /> <processingSt ...Show All
Visual Studio Express Editions Help In Coding
I had the following code, how do i actually pass the value from the select statement to the Contactlbl.Text Thanks Protected Sub GoBtn_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles GoBtn.Click Dim objConn As New SqlConnection Dim objCmd As New SqlCommand Dim Value As String = EventCmb.SelectedItem.ToString() objConn.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename='C:\Documents and Settings\HP\My Documents\Visual Studio 2005\WebSites\FYP2\App_Data\Event.mdf';Integrated Security=True;Connect Timeout=30;User Instance=True" objCmd.Connection = objConn objCmd.CommandType = CommandType.Text objCmd.CommandText = "SELECT EventTel FROM ...Show All
Visual C# How to embed DataGridView in dll
I want to create a dll with following function, but when i compile i face error, Error 1 The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference ) D:\ClassLibrary1\Class1.cs 9 48 ClassLibrary1 How to solve this problem, is there any alternative method solve this problem. public void fillDataGrid(System.Windows.Forms. DataGridView DataGridName, string DataMemeberName, string Query, System.Data.SqlClient. SqlConnection ConnectionToDatabase, System.Windows.Forms. Form frm) { if (ConnectionToDatabase != null ) { System.Data. DataSet ds = new System.Data. DataSet (); System.Data.SqlClient. SqlDataAdapter ad = new System.Data.SqlClient. Sql ...Show All
.NET Development Regex group
Hi I'm making a little test building a search application using regex and some other stuff. This is one of the groups in my regex pattern: ( <atta>\\d{4}) The problem is i dont want the value to be 4 only, i need it to be able to find it at that spot even if it is 8, 9 or 10 instead. After doing some reading i saw that there is something you can write like {4+} so that is can be atleast 4 or more. But can't get it working, Anyone can help me Hi, I'm not sure what you're trying to do... {4} is a quantifier, which means your group should match exactly four digitals. If you want t match 4-9 digits, use ( <atta>\\d{4,9}) . But.. How I understood you, you want to match  ...Show All
