I've C#-WCF/Winforms application.It inserts 450,000 plus records in a staging table in Oracle database using Oracle Client API and a stored proc having a simple insert query. Its taking about 15 minutes to insert records in db and sometimes the records dont get inserted too..giving all sorts of timeout errors at the wcf side. Is there any efficient way of doing these inserts? Thanks for reading. Here's my code which does the batch insert: OracleTransaction tran = null; UpdateRowSource oldURS = this.cmd.UpdatedRowSource; OracleCommand oldCmd = this.dbAdapter.InsertCommand; int oldUBS = this.dbA
I want to set 'secure' flag to the JSESSIONID cookie. Is there a configuration in Tomcat 6 for this? I tried by setting 'secure="true"' in 'Connector' (8080) element of server.xml, but it creates this problem: Connection is getting reset. Note that in my application, the JSESSIONID is getting created in 'http' mode ( index page ), when the user logins, it will switch into 'https' mode.
I work on some ASP.NET projects in collaboration with other developpers and I'm thinking about building a homemade logging solution. But before starting anything I would like to know if something similar to what I'm intended to code already exists. I'm looking for a tool, framework or whatever, that can be used to create a logging webservice. The service will be reachable by all our websites. It offers a set of methods to send logging information to the service which will store them in a database. We can imagine a method named "Trace(String message, TraceLevel level)" where the first argument
I want to add add an Ajax CalendarExtender to my page. And then after selecting a date and clicking on a button I get the selected Day in a label. I have a text box which is the target of the CalendarExtender <asp:TextBox ID="DateText" runat="server" ReadOnly="true" ></asp:TextBox> <ajaxToolkit:CalendarExtender ID="Calendar1" runat="server" TargetControlID="DateText" Format="MMMM d, yyyy" PopupPosition="Right" /> <asp:Button runat="server" ID="Button1" onclick="Button1_Click" /> In the Code Behind: On the first page load I set the date to Today. protected void Page_Load(object sender, EventArg
We have a team project in TFS 2010. This team project is used as a container for a few smaller, related projects in order to share bugs, work items, etc. My question, how do I add a new VS solution to this team project? I created the new solution in my local working folder. The team project is already created on the server. When I go into the Source Control Explorer and try to add the new solution to the project, I can’t add the new solution because I don’t have a destination folder mapped. I can’t map the destination folder because I can’t figure out how to add a new folder to the server proj
I need some help with concatenating in JavaScript. I've got an array. The value of its property: (args['type']) is TERRAIN. In another array, I've got: var myOptions = { zoom: parseInt( args['zoom'] ), center: latlng, mapTypeId: }; I want to set mapTypeId to google.maps.MapTypeId.TERRAIN (by using whatever value is held in args['type'] instead of hardcoding TERRAIN ). How do I concatenate it in this situation?
I don't want to really fly there, it would take too long and probably would be prohibitively expensive for me. But nevertheless I am really wondering if it is already possible, and if so, how expensive it is and which companies might offer such ventures?
I want to use PowerShell with WebDAV (https) to download multiple files from a folder. The name from the download files is unknown. So my plan is to download all files from this folder and create a cleaning job at the server. At the moment I´m searching for a good PowerShell with WebDAV example. Does anybody know a good example?
I was wondering which high-level langunage allows the easiest manner in which to call Fortran subroutines? I currently use MATLAB and calling MEX files seems to be relatively complicated compared to other languages. I'm particularly interested in how the following compares in terms of getting "up and running" quickly: *Python via f2py *R via ? *MATLAB via MEX files Another way of asking this would be "If you were to start over and learn a new language, which one would you choose if your objective was calling Fortran subroutines?" I'm trying to getbthe "best of both worlds" i.e. having good dat
One of our customers faced this error while calling our web service. I think this is because a connection problems from his side, but I need to know the exact reason. Stack trace: Error while calling 10108831-402TV04LF from Thread 1 occurred after 511441 AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.SocketException: Connection reset faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedI
I'm facing a quite tricky problem. I'm trying to get 2 virtual memory areas pointing to the same physical memory. The point is to have different page protection parameters on different memory areas. On this forum, the user seems to have a solution, but it seems kinda hacky and it's pretty clear that something better can be done performance-wise : http://www.linuxforums.org/forum/programming-scripting/19491-map-two-virtual-memory-addres-same-physical-page.html As I'm facing the same problem, I want to give a shot here to know if somebody has a better idea. Don't be afraid to mention the dirty d
I have one master and one regionserer running on one machine,now I want to add another region server to it. This new machine has all the connection config required (as in passwordless ssh etc), as these two machines are running datanodes for my underlying Hadoop (and start/stop from hadoop master starts/stops datanodes on all the machines). I have mentioned two servers (with their entries in /etc/hosts): master slave Now if I do ./start-hbase.sh on the master In the console it says "starting regionserver on slave", but the corresponding log is empty and in the web console i do not see the slav
Is it possible to use extension methods to extend an indexer? I want to be able to get cell's value from DataGridViewCell of given DataGridViewRow using header text like this: object o = row["HeaderText"]; I have this code public static class Ext { public static object Cells(this DataGridViewRow r, string header) { foreach (DataGridViewCell c in r.Cells) { if (c.OwningColumn.HeaderText == header) { return c.Value; } } return null; } } and I want similar indexer. Thanks.
I'm using Acrobat X Pro and would like my form to open with today's date. I am having a hard time finding a script that works in Acrobat X. Appreciate any help. I found this response by Paque in July 2010: Remove your script and replace it with the following document javascript: var f = this.getField("wells_datefield"); if (!f.value) f.value = util.printd ("m/d/yyyy", new Date()); Save your form and open it, and the date should pop right in there. When making the document javascript, remember to not put it inside a function. One way of doing that is the following. In the Acrobat menu: Advanced
Is there a sliding (animated) panel component for Delphi? For instance it can be found in Raize Components (a left panel with a "Hot Spot" or hide/show button). I need not a resizeable panel but a panel that can slide horizontally and smoothly from the left to the right + that has a hide/show button (it's not a big deal if without that button). Thanks!
I'm trying to setup my page to play a video with the following specs: Use licensed JW player Flash player to be used, HTML5 fall back I'd also like to provide alternative file formats for the HTML5 fallback (ogg, webm) Use the RTMP streaming method to deliver the videos via cloudfront Here is a link to my test page: http://coachesmarketingcenter.com/test_new_ppts/index3.html Here is the embed code I'm currently using: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta
I know Extjs 2.3 is pretty old but i'm taking over someone's work here.so my hands are tied for now. well i'm supposed to change few things in the interface and add new functionality. this is my first real ExtJS work (jquery boy here). i wanted to add new icons on a button and it appears i can't even get the image shown correcty as i can't affect the height of the button, either on the button object property, or in css. all that i managed to do is affect the width of the button. here is my attempt btntelButton = new Ext.Button({ name: 'telbtn', id: 'btntel', cls : 'x-btn-icon', iconCls: 'telBu
We have a lot of GNU Make-files. I´d like to time each target used during build to identify any performance bottlenecks. Is there a tool or technique to do this in a convenient and automatic way? I might like to parse these results to keep tabs on the performance factor as the build changes and grows (but it´s already quite large and complex).
I am performing export to excel in asp.net without using any third party controls. How can i give background color to my exported excel sheet? The background color may (not sure) be different according to some cells range. Say from Cell 0- 5 (Cell A-E in excel) is red color, 6-12 is green and so on and so forth. How can i achieve the same? public static void DataSetToExcel(System.Data.DataSet dtExport, System.Web.HttpResponse response, string strFileName) { //Clean up the response Object response.Clear(); response.Charset = ""; //Set the respomse MIME type to excel response.ContentType = "appl
I've a java project configured in netbeans 7.0.1 with tomcat 6.0. When I try to debug it , the project starts but i'm not able to connect to tomcat. The browser shows the busy icon and there is no errors in tomcat console. When I click on the stop debug button it gives the login page immediately. In short debugging is not working.
While working on Master branch, I forgot to create new branch. Made changes to files then inadvertently reverted to the master, loosing all updates. I didn't commit the updated files. How can I retrieve them?
What does the return statement do? How should it be used in Python? How does return differ from print? See also Often, people try to use print in a loop inside a function in order to see multiple values, and want to be able to use the results from outside. They need to be returned, but return exits the function the first time. See How can I use `return` to get back multiple values from a loop? Can I put them in a list?. Often, beginners will write a function that ultimately prints something rather than returning it, and then also try to print the result, resulting in an unexpected None. See Wh
I ran "git status" and listed below are some files that were modified/or under the heading "changes not staged for commit". It also listed some untracked files that I want to ignore (I have a ".gitignore" file in these directories). I want to put the modified files in staging so I can commit them. When I ran "git add .", it added the modified files AND the files I want to ignore to staging. How do I add only the modified files and ignore the untracked files if presented with the git status below. Also, are my ".gitignore" files working properly? $ git status # On branch addLocation # Changes n
According to Wikipedia, function calls don't copy parameters which are are references to a const type: void f_slow(BigObject x); void f_fast(const BigObject& x); f_slow(y); // slow, copies y to parameter x f_fast(y); // fast, gives direct read-only access to y Why does the reference need to be const? Wouldn't a non-const reference accomplish the same: void f_should_be_fast(BigObject& x);
The __future__ module frequently appears in Python modules. I do not understand what __future__ is for and how/when to use it even after reading the Python's __future__ doc. Can anyone explain with examples? A few answers regarding the basic usage of __future__ I've received seemed correct. However, I need to understand one more thing regarding how __future__ works: The most confusing concept for me is how a current python release includes features for future releases, and how a program using a feature from a future release can be compiled successfully in the current version of Python. I am gu