instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to start JBoss AS with external IP NAT address. I have hosted JBoss AS in an Amazon EC2 Instance. Amazon EC2 manages two categories of addresses: public and private ip address (also public and private dns). I have started JBoss AS binded to public DNS using run.sh -b public_dns but in the console showed the the ...
stackexchange/codereview
how can run functions of powercfg by c# code? for example I want to run this, for Set turn off the display: never powercfg -CHANGE -monitor -timeout -ac 0
stackexchange/codereview
I deleted a /common folder from the root directory of my SVN store and it turns out I need it... problem is I can't figure out how to just restore that one folder. This folder is on a specific version.... I don't want to restore all changes on that version, just this specific folder.
stackexchange/codereview
I get this error when trying to start the server. logger.rb:541:in `exist?': can't convert Rails::Paths::Path into String (TypeError) This is the code in my development.rb. require 'log_formatter' config.logger = Logger.new(config.paths.log.first) config.logger.formatter = LogFormatter.new config.logger.level = Logger...
stackexchange/codereview
I'm using the latest versions of MacVim, rails.vim and my terminal is ZSH. When I run a rspec (rspec2),the spec output buffer prints the output to a certain extent(around 10 lines) and then hangs, making the whole macvim hang. Then, when I press Ctrl+C, I see the remaining spec results (small no. of lines, all passed) ...
stackexchange/codereview
I'm developing a software that show's users spareparts searched with various different criteria. Spareparts are in one table (actually a flat BOM-structure) and stock quantities in another. Stock quantities are a bit problematic since there can be 0 to 5 different locations (rows) for 1 sparepart and different amount i...
stackexchange/codereview
Possible Duplicates: Random weighted choice Generate random numbers with a given (numerical) distribution I have a list of list which contains a series on numbers and there associated probabilities. prob_list = [[1, 0.5], [2, 0.25], [3, 0.05], [4, 0.01], [5, 0.09], [6, 0.1]] for example in prob_list[0] the number 1...
stackexchange/codereview
All the methods and examples I can find about the Google maps api is based on a postcode, or coordinates to get the desired location - what if I want to place a marker for a specific business which has been added to google maps, so it shows tel number etc like an embeded map would? Even if I use exact coordinates for t...
stackexchange/codereview
I tried to place 4 mschart controls on the same page but it is giving me major grief. Each chart appears properly when I place one per page, but as soon as I place multiple the first two are displaying incorrect data and the last two do no display anything at all. I made sure that I am not using the same session variab...
stackexchange/codereview
Let me tell with an example. Suppose the contents of a text file are as follows: function fun1 {    int a, b, c;    function fun2 {      int d, e;      char f g;      function fun3 {        int h, i;      }    } In the above text file, the number of opening braces are no...
stackexchange/codereview
I want to create my own container view controller, i.e. something like UINavigationController or UITabBarController. Docs say I should not do that, but why not? Navigation and tabbar containers are good examples that such thing is possible and works really well. Also I understand that iPhone has small screen and people...
stackexchange/codereview
I have a Core Data entity named RSSItem with a Date attribute named publicationDate. Is there a way to create a predicate for a NSFetchRequest that would include all entities with a publication date in the last 24 hours? I have tried this: NSString* expression = @"publicationDate.timeIntervalSinceNow >= -86400"; return...
stackexchange/codereview
I have developed a ASP.Net Web Site in vb.net language. I can debug it and run it from Visual Studio 2005. I have published it . But when I want to open this .aspx file in Internet Explorer without Visual Studio 2005, I have an error
stackexchange/codereview
I have a bizarre problem that is causing us problems. We have a simple C# Wpf UserControl. Its a progress bar - nothing fancy - just a border that changes size depending on bindings to Value and MaxValue. It works fine 99% of the time and we use it in a dozen or so places in out code - including the splash screen. It a...
stackexchange/codereview
I have Object: MyClass *obj= [[MyClass alloc] init]; What's the difference between: [obj release]; // Only obj own this object. and: obj = nil; Does iOS deallocs obj when i set obj = nil? I have a pointer, sometime i set it point to an object, sometime do not. So, when i want release a pointer i must check is it nil...
stackexchange/codereview
I use WordPress 3.0.1 and install Exec-PHP plugin. I edit the code in admin panel- pages - html cede. I want to add some JavaScript in a custom page. When the code use two ampersand, it occupy wrong. && become &#038;&#038; How to solve this problem? for(i=0;i<3;i++) { var l=a.length; //alert(l); var iNum=parse...
stackexchange/codereview
I have this code: emailRows = [] for rowTuple in listOfRows: #row loop emailLine = [] for tup in rowTuple: #field loop emailLine.append(str(tup).center(20)) emailRows.append('\t'.join([field.strip().center(20) for field in emailLine])) ...
stackexchange/codereview
Microsoft SQL Server 2008 (X64) Microsoft Corporation Developer Edition (64-bit) i need to create a job for the SQL database to backup everyday with a different set of new files i tried doing it and it over rites everyday i wanted it to create new files everyday... Plz help me as soon as... Note: If i want ...
stackexchange/codereview
When I am writing documents, I find myself settling on an organization convention appropriate to that document, and I would like Vim to syntax highlight that convention. But making a ftplugin is too "global", I want the syntax coloring to come with the document, so if I send it somewhere without that plugin they can s...
stackexchange/codereview
My app was working fine until this morning but I started getting the errors below after I renamed my Netbeans 6.9 project this morning. I'm getting the following error when building my Spring 3.0.4 app: The prefix "p" for attribute "p:driverClassName" associated with an element type "beans:bean" is not bound applicati...
stackexchange/codereview
As far as I know you cannot run .NET 1.1 code and .NET 3.5 code in the same process as they do not use the same version of the CLR. What are the implications of this for inheritance? I can imagine that you should be able to reference 1.1 assemblies from 3.5 code as the interfaces are well defined and the implementation...
stackexchange/codereview
I am having trouble testing a unity controller factory. I am mcoking out the unity container and asserting that a method was called on it. I am getting invalid cast expection though but cannot really see what is wrong with my code. Here is the class under test: public class UnityControllerFactory : IControllerFactory ...
stackexchange/codereview
This must be a common problem. User control A has a TextBox T. User control B inherits from user control A. User control B is placed onto page P. During the Page_Load event of page P, if you attempt to access TextBox T, you'll find it's null. Is there an elegant solution for this?
stackexchange/codereview
I'm using OpenCV to match a bunch of viewpoints into a panorama. The result is a bunch of images on a black background (sort of a polygonal shape). What I want to do is crop this polygon so that there is no black in the resulting image. Is there a good algorithm to do this? The naive way I am thinking is to start with ...
stackexchange/codereview
I know this question have been asked a lot of time. I want a suggestion on which algorithm is suitable for approximate string matching. The application is specifically for company name matching only and nothing else. The biggest challenge is probably the company end name part and short named part Example: 1. companyA p...
stackexchange/codereview
Is there a way to get ajax requests from http://foobar.com to snatch data from pages such as http://sub1.foobar.com/choco.php ? It seems subdomain requests are still not allowed via javascript
stackexchange/codereview
I'm stuck here. I've got a Procedure that I want to run X* times in a row. (*X is couple of thousands times) The procedure based on input data does this: 1. Looks for an actions.id, if not found LEAVEs. 2. Looks for users.id, if not found, creates one and uses LAST_INSERT_ID(); 3-5. Looks for summaries.id (3 types, tot...
stackexchange/codereview
I will try to explain my problem with as little code as possible. Basically I have several sortable lists connected in the usual way. Each item in the list has some hidden elements that are toggled with a button on the respective items. There is also a second button that causes the list item to slideUp and be removed f...
stackexchange/codereview
I am having a meltdown over something that seems so simple and yet isn't working. Here's my scenario. I have an object structure of tEvents, which contains properties of an event like a run of concerts. tEvents in turn contains an entity set of tEventOptions, which include properties like EventDate, Cancelled etc. I...
stackexchange/codereview
Yet another static question. I have read the following: What are static variables? file scope and static floats http://msdn.microsoft.com/en-us/library/s1sb61xd.aspx And I still fail to understand the following behavior: I have one h file: // StaticTest.h #include <stdio.h> static int counter = 0; struct A { A...
stackexchange/codereview
I am building a custom UIComponent and adding elements (and other stock UIComponents) inside it. The component renders ok, however it cannot be found from the ViewRoot. Let's say I have: ResponseWriter writer; @Override public void encodeBegin(FacesContext context) throws IOException { writer = context.getResponse...
stackexchange/codereview
I have some problems 1. how do I make my statusbar context menu that consists of 2 choices of menu preferences and addons status example of context menu i want to make this is my code : <popupset> <menupopup id="intransContextMenu"> <menuitem label="intrans aktif"/> <menuitem label="preferensi"/> </menupop...
stackexchange/codereview
I want to create a project using struts and hibernate. Also, I also wanted to use jQuery in it. I tried going through some tutorials in using spring+struts+hibernate+jquery but it just won't work. I took a look at the struts2 jquery plugin showcase at http://code.google.com/p/struts2-jquery/ and saw that it was what I ...
stackexchange/codereview
This is my layout: <ListView> <TextView></TextView> </ListView This xml is the main.xml with main.java. How can i embed intro.xml with intro.java into the <Textview>? thanks for your help.
stackexchange/codereview
I am not able to use exec with mail command on found files. # find /etc/ -name my.cnf -mtime 0 -exec mail s.o@gmail.com find: missing argument to `-exec' Check if my.cnf has been changed in the last 24 hours if yes, as in this case, send the file by email if it has not been changed in the last 24 hours, do nothing. Up...
stackexchange/codereview
I have added some pre commit hooks to my SVN repos that check that people are putting a JIRA item against every commit. This works fine. However looking at the svn logs it would be nice to have the summary shown in the commit message otherwise it's just a bunch of numbers and you have to refer back to JIRA all the tim...
stackexchange/codereview
I am looking for a regex, that extracts everything after a given text (here, "HIT") until the next pipe symbol "|" which is NOT surrounded by "[[" and "]]". Example-Text: text | HIT = [[t1|t2]] moretext [[more braces]] | moretext | moretext This is the regex I've tried: HIT[ \t]*=(.[^\|]+) Of course, this only return...
stackexchange/codereview
I need to call a stored procedure that was created in Access 2007 from the program in VB 6.0. This is the working Stored Procedure on the Access db when you right click -> Design View: PARAMETERS prodCode Text ( 255 ), orderNum Text ( 255 ); SELECT Sum(FullPrice) AS Expr1 FROM Transacs WHERE (((Transacs.prodcode)=[prod...
stackexchange/codereview
I'm loading and displaying a large image say 6000 x 6000 px using an image tag. I wanted to take a snapshot of the image. But the maximum limit I get is 2880 px dimensions using Flex 4, flash player 10. Didn't the limit of FP 10 increased to 4096 px? Then why am I getting 2880? Is there a way to increase that size. Or ...
stackexchange/codereview
I have noticed that the std::map implementation of Visual Studio (2010) allocates a new single block of memory for each node in its red-black tree. That is, for each element in the map a single new block of raw memory will be allocated via operator new ... malloc with the default allocation scheme of the std::map of th...
stackexchange/codereview
Here is my issue: I have an UITableViewCell with more than 1 line in the content (the text is very long). The vertical alignment of the ImageView (I put an image in the left side of the cell) is in the centre (I guess this is by default), but I want to see this image in the top. Do you have any idea of how can I modify...
stackexchange/codereview
I am trying to get all the cells in my UITableView to call the CellForRowAtIndexPath when I rotate the device. I call a [self.tableView reloadData] in the willRotateToInterfaceOrientation method. This gets called (i've NSLog-ed it). But when I rotate the device CellForRowAtIndexPath only gets called for new rows that n...
stackexchange/codereview
If I delete a row from my table using a standard animation such as UITableViewRowAnimationFade the code crashes with this error: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 1. The number of rows contained in an ...
stackexchange/codereview
Problem: Load js files asynchronously, then check to see if the dom is loaded before the callback from loading the files is executed. edit: We do not use jQuery; we use Prototype. edit: added more comments to the code example. I am trying to load all of my js files asynchronously so as to keep them from blocking th...
stackexchange/codereview
I am serializing an object to a database field using ActiveRecord's :serialize functionality in Ruby on Rails class DrawElement < ActiveRecord::Base ... serialize :content end The reason I'm serializing the objects is that I'm dynamically loading the types from disk using const_missing, so I don't have to setup d...
stackexchange/codereview
When i try this code in javascript, why doesn't it catch the error on the misspelling on XMLHttpRequest? try { var x= new XMLHdfattpRequest(); } catch (e){ alert(e); }
stackexchange/codereview
I have strings like this: 00123_MassFlow 0022245_VOlumeFlow 122_447_Temperature I have to split these strings with _ using C#. _ may appear multiple places but i have to take last value. My should be like this: MassFlow VOlumeFlow Temperature How i can achieve this?
stackexchange/codereview
I am trying to use MEF to load a DLL as an when it is needed, however, the information in tutorials I have read hasn't been the most helpful. This site gives a bit of code (shown below) but doesn't really explain anything. private void LoadPlugins() { var catalog = new AssemblyCatalog(Assembly.GetExecutingAssembly())...
stackexchange/codereview
Much like the required device capabilities on the info.plist file, is it possible to configure an application such that it will only be available on some device models? I know how to target it by device family (iPhone&iPod vs iPad), but in this case I'm looking to target by model. I also know how to programmatically de...
stackexchange/codereview
in the past when I type ruby-mode in emacs this work great but now appear in the buffer Debugger entered--Lisp error: (file-error "cannot open load file" "cedet) what is cedet?...where would it be? when run Lisp slime this work perfectly...I know it error must be a newbie mistake but I don't know what can I do? and I'm...
stackexchange/codereview
I have articles written formatted in html, and I would like to display it inside my asp.net page. Please help
stackexchange/codereview
Possible Duplicate: Matlab to C or C++ is there any software to convert MATLAB code to c....
stackexchange/codereview
This seems like a straightforward thing to do, but I don't seem to be able to work out the correct syntax. I currently have this: KeyValuePair<string, string>[] kvpArr = new KeyValuePair<string,string>[]; However, this seems to work: KeyValuePair<string, string>[] kvpArr = new KeyValuePair<string,string>[10]; But I ...
stackexchange/codereview
I've been looking for a jQuery plugin to load a gMaps using Google Maps API v3. What are the jQuery plugins you use in this case? At the moment, jMapping is the best I've found: https://github.com/brianjlandau/jmapping
stackexchange/codereview
I'm trying to install php HTTP extension but I'm getting the following error during installation : checking for magic.h... not found configure: error: could not find magic.h Has anyone had a similar experience ? I'm on a MBP running 10.6.5 & php 5.3.3. Thanks
stackexchange/codereview
Is there a good way to apply intellisense in .skin files in ASP.NET 4? like a microsoft visual studio tool for example? I installed an intellisense schema for .skin files to my visual studio 2008 long time ago but it had some bugs so i had to remove it. any improvements in visual studio 2010?
stackexchange/codereview
This is my code to render a JTable and change the color of rows, but it doesn't show a checkbox in column 6, only string (true,false). Can you provide a solution to fix this? Thanks in advance. public class JLabelRenderer extends JLabel implements TableCellRenderer { private MyJTable myTable; /** * Creates a...
stackexchange/codereview
I'm using the jquery jdiv plugin for mega menus. How can I use jquery to allow the user to keyboard(tab) to the mega menu(div that shows when a link is hovered or focused)? After the mega menu loses focus, I would like the focus to return to the next navigation bar link. Basically, I'm just trying to make this all keyb...
stackexchange/codereview
We're moving a website to Wordpress, and I need to modify our iPhone app to get data from the new site. Currently it gets neatly structured data out of our database, but now all data will be stored in the text of Wordpress posts and formatted by WP plugins. Any suggestions for a good way to get that data to the app? I ...
stackexchange/codereview
I have this little piece of jQuery/jqModal code which works fine. However, I am trying to add the ability to navigate away from the page when the ajax call succeeds (returns some data). $(document).ready(function () { $('#jqmWindowContainer').jqm({ modal: true, ajax: ' –- my url –‘, onH...
stackexchange/codereview
I'm trying to build a single query that can add/subtract seconds from a datetime stamp. Here's what I have currently UPDATE `table` SET end_dt = DATE_ADD(end_dt, INTERVAL (15 - TIMESTAMPDIFF(SECOND, NOW(), end_dt)) SECOND) WHERE DATE_SUB(end_dt, INTERVAL 15 second) <= NOW() Basically it's to reset the d...
stackexchange/codereview
I am new to Ruby and Rails so this question might be trivial, but How can you include/use a gem in Rails? Do you just put "gem ' What do you do after that? If this procedure is correct, when I try to run 'rails server' it spits out this error /.rvm/gems/ruby-1.9.2-p0@global/gems/gdata-1.1.1/lib/gdata.rb:21:in `require...
stackexchange/codereview
We sign our .net code with a .PFX cert file. A colleague now needs to use the the same cert to sign a .jar file for a customer. Can someone point me to a link or an example of how I can do this please? The jar file will be used on Oracle Web Logic Server running on Solaris. And, once signed do we need to send out anyth...
stackexchange/codereview
I'm working with a large Rails application, and i've been tasked with disabling rake tasks that could be harmful if run on our production environments, such as db:migrate, reset, etc. However i'm not sure what the best course of action here is. So far my solution is to put a statement like this at the top of the datab...
stackexchange/codereview
I'm almost certain I already know the answer to this question but nonetheless: Is it possible to move an app's icon to a particular page using the iPhone API, that is, without the user dragging the icon themselves?
stackexchange/codereview
I have a long htdoc of similar pattern which goes on like this: <td class="MODULE_PRODUCTS_CELL " align="center" valign="top" height="100"> <table width="100" summary="products"><tr> <td align="center" height="75"> <a href="/collections.php?prod_id=50"> <img src="files/products_categories50_t.txt" border="0" alt="produ...
stackexchange/codereview
I read that on an SM with 8 SPs, each thread in a warp is mapped to each of the 8 SPs during the execution of one instruction. Hence, a warp is executed in 32/8 = 4 clock cycles. If so, then suppose I have an if-else statement in the code. Suppose the "then" and "else" branch instructions each take one clock cycle to ...
stackexchange/codereview
I am using this class to fetch the oAuth token from twitter and trying to update the status. http://twitteroauth.labs.poseurtech.com/connect.php I am able to generate the oAuth token from my local system and can even update the status through it.But when I put the same code on server it is throwing one error,which is :...
stackexchange/codereview
I designed buttons are not clear in corners in my app in iphone, what is the photoshop resolution for designing Iphone icons and other navigation icons?
stackexchange/codereview
I using MFC AppWizard and created the SDI application I need to set colour for the outputwnd debug tab in some sequence for example if any wrong value entered in the some control i need to display text in RED stating that invalid value entered if login done welcome message in GREEN and so on I tried to use DrawIt...
stackexchange/codereview
In my iphone app, I have a requirement for videos. I want to embed the videos into the application. I dont want that the video plays in youtube player and my application looses the control. How to embed video in the app? Please Help and Suggest Thanks
stackexchange/codereview
i have an xml file which contain some data like: <?xml version="1.0" encoding="utf-8" ?> <permission> <CP name="My Messages"> <field name="name"/> <field name="age"/> <field name="ID"/> </CP> <field name="time"/> <CP name="My Attandance"> </CP> </permission> by using my ...
stackexchange/codereview
I was wondering why C# doesn't allow private virtual functions and ran across the aptly named Why are private virtual methods illegal in C#? In the accepted answer Eric Lippert (who probably knows what he's talking about...) said: If you desire to restrict the ability to override the method in non-nested derived clas...
stackexchange/codereview
May be this is too trivial question. I use C#, asp.net 4, EF4, I have a page with a DetailsView control is connected with EntityDataSource. All is working. In code behind I need to create a variable that will populate with data from EntityDataSource, lets imagine field UserId. My questions: How to retrieve and use data...
stackexchange/codereview
pls help me in this immediately... Problem with JAVA command in shellscript.. I have a script Cachereload.sh in one server which has the following command: java -jar SingMgmnt.jar $4 $2 $3 sixdee sixdee $5 This is working very fine when i run it from the same server. But i want to run this script from another server a...
stackexchange/codereview
After a user logs out, if they hit the back button, they can go back to the last page they were on before logging out. The app I am working on will often be used on a public computer (library or computer lab, for example) and I'd like to prevent users from being able to see anything from previous user sessions. I'm on...
stackexchange/codereview
String CompilePath = "abc.java"; JavaCompiler compiler = ToolProvider.getSystemJavaCompiler(); String classpath = System.getProperty("java.class.path"); System.setProperty("java.class.path", classpath + ";" + LocalMachine.home + "WebContent/WEB-INF/lib"); int result = compiler.run(null, null, null, CompilePath); The a...
stackexchange/codereview
In the GNU implementation of std::string, its _S_empty_rep_storage is defined as: template<typename _CharT, typename _Traits, typename _Alloc> typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[ (sizeof(_Rep_base) + sizeof(_CharT) + sizeof...
stackexchange/codereview
I am more of a .Net guy, but the site I currently work on has some legacy Classic ASP pages lying around. In one of the forms we have a couple of hidden inputs that get set to variables created and set by some VBScript at the beginning of the page like so: <input name="referer" type="hidden" value="<%= oReferer %>" /> ...
stackexchange/codereview
I am devolping a console math intensive application on Mac OS X. It's implemented in C++, and I'm using no special IDE, just a plain text editor, and GCC for compiling. Currently, my implementation is quite slow with my data. What is the easiest/best way to profile it to know which parts to optimize? I use valgrind, a...
stackexchange/codereview
I am doing a custom editbox class. It starts something like: public class AmountField extends EditText { and has overriden the constructor to implement the EditText widget style /** * Make a new AmountField Object. * * @param context * the context of the field * @param attrs * attributes f...
stackexchange/codereview
I'm trying to have my page show a HTML textarea submission form after the user clicks on a button using AJAX, but for some reason the response from AJAX shows everything except for the textarea. I'm a bit new to web developing so my code is a mess. I deleted some stuff out of the code to make it easier to read, but the...
stackexchange/codereview
I'm very new to ASP.net and webform applications, and I'm inheriting some pretty bad code, but I've got a strange problem that I can't figure out or figure out how to google about it. In my web site, Resharper is complaining on every page that it couldn't find the corresponding ContentPlaceHolderID from the master page...
stackexchange/codereview
im new in Websphere 7, and im looking some plugin to debug the apps deployed in WAS 7 using Eclipse. Some one know any plugin? Thanks!
stackexchange/codereview
#include<stdio.h> #include<stdlib.h> #define GREY 1 #define BLACK 0 #define WHITE 2 typedef struct node * graph; typedef struct stack * snode; graph cnode(int data); //cnode is to create a node for graph void cgraph(void); struct node { int data, color; struct node *LEFT, *RIGHT, *TOP, *DOWN; ...
stackexchange/codereview
if($('.navigation ul li ul').children().length === 1) { $('.navigation ul li ul li a').css({opacity:0.5}); } else { $('.navigation ul li ul li:first-child a').addClass('first'); $('.navigation ul li ul li:last-child a').addClass('last'); } Basically I...
stackexchange/codereview
I have an Activity that implements a Gesture Detector to catch the user fling input for navigation to other screens. That was working fine - but - I recently updated a class that derives from BaseActivity to add an onClick function and now that click event seems to block the onFling from being hit. The onClick is tie...
stackexchange/codereview
I'm trying to decode some JSON and insert the values in MySQL. Here is my code: $json = ' {"d":[{"Id":1059,"Name":"Alfa Romeo - 145"},{"Id":20020,"Name":"Alfa Romeo - 146"},{"Id":1060,"Name":"Alfa Romeo - 147"},{"Id":20021,"Name":"Alfa Romeo - 155"},{"Id":1061,"Name":"Alfa Romeo - 156"},{"Id":20022,"Name":"Alfa Romeo -...
stackexchange/codereview
What is the ideal resolution value that can i choose for my android application.
stackexchange/codereview
HFText is a string while HTMLViewer1 is the THTMLviewer. HFText:= '<html><head><style>'+ 'body {font: Arial 8pt;}'+ '</style></head>'+ '<body marginwidth="0">'+ '<img src="http://10.0.0.20/picture/1.jpg" />'+ '</body></html>'; HTMLViewer1...
stackexchange/codereview
Is there a way to get a black keyboard? The default one is bluish. And the Alert style one is semi-transparent black. I was wondering if it was possible to have the keyboard black, e.g. non transparent. Or do I have to pull up a black view behind the keyboard to reduce the transparency effect?
stackexchange/codereview
how do you delete text inside <ref> *some text*</ref> together with ref itself? in '...and so on<ref>Oxford University Press</ref>.' re.sub(r'<ref>.+</ref>', '', string) only removes <ref> if <ref> is followed by a whitespace EDIT: it has smth to do with word boundaries I guess...or? EDIT2 What I need is that it will ...
stackexchange/codereview
package portale.interfaccia; public class PageIndex extends FlowPanel { protected Integer prova; private PageCenter center; public PageIndex() { this.center=new PageCenter(); this.add(center); } } package portale.interfaccia; public class PageCenter extends FlowPanel { public P...
stackexchange/codereview
I have a table that contains a XML data type column. Right now the approach is to use XPath to query values that are within the XML. Unfortunately this method is turning out to be extremely slow. The table has about 500,000 rows. It is actually a staging table that receives new data every day, so applying XML indexing ...
stackexchange/codereview
I have a little weird behavior with my ASP.NET MVC 2 application. I'm using IIS 7.5, Windows Authentication and ASP.NET Impersonation for my webpage to load. After several searches, I didn't found a nice way to get rid of the 500.24 Request that I keep getting on every page load (The favicon.ico at the root directory t...
stackexchange/codereview