text
stringlengths
8
267k
meta
dict
Q: Nested SOAP Header Element I want to create nested SOAPHeaderElement in Metro web services... It sould be something like I am using JAVA .JAX-WS 2.2.5 (Metro) <Auth> <UserName> data1 </UserName> <Password> data2 </Password> </Auth> Metro provides WSBindingProvider to create headers but I want to create...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JWPlayer 4 javascript events are ignored First of all, I can't upgrade to a newer version of the player, because I need the displayclick=fullscreen option to work, and it doesn't with version 5. So, what I need to do is this: have the player auto-start with no volume and no controls on the page (this works just fine...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612956", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iframe resize issue in firefox i know this is so basic ,its so basic that it hurts me to ask this question but the issue is starting to make my hair too fall out lol. i'm making a liquid website so everything resizes,so far so good...my page has a couple of iframes ,they will resize just great in i.e using % for hei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612959", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to allow decimal values in Telerik Silverlight GridViewDataColumn filter dialog? I've got a data column defined within a RadGridView that uses a currency value. Here's the definition: <telerik:GridViewDataColumn UniqueName="WSA" Header="WSA" DataMemberBinding="{Binding TicketSalesRolling12WeekAvg, Converter={Sta...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612962", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android emulator not working? I develop mostly for iPhone and have started very recently with Android. Tried the hello world, but when hit run the emulator just shows a black screen with an Android logo shining. package com.hyper.tuti; import android.app.Activity; import android.os.Bundle; import android.widget.Tex...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612963", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: gettext usage for 2 strings that are the same Is there a more compact way if I want 2 keys have the same value? This works: msgid "Next" msgstr "Pág. seguinte" msgid "Next page" msgstr "Pág. seguinte" I could imagine writing it like this instead but is it legal? msgid "Next", "Next page" msgstr "Pág. seguinte" I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612964", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery UI - Resizable: alsoResize not accurate? Ok I'm not using the 'alsoResize' but I've tested and it behaves the same. When you resize the main element, the black border from the bottom element 'marquee' often nudges out of line with the dashed white border from the top element. $(".layer").resizable({ //als...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612968", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Preventing entire table from locking while bulk INSERT I have a stored procedure that performs a bulk insert in a table. I added BEGIN TRANSACTION command just above the INSERT query to enable ROLL BACK if something goes wrong. When the bulk insert initiated, it locked the entire table and other users were unable to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612971", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Open Second Link on a page using Jquery I am trying to open a link on my page in a new page with Jquery. <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("a:eq(0)").attr("target","_blank"); }); </script> </head> <body> <h1>Welcom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612981", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: What is the difference between a Confusion Matrix and Contingency Table? I'm writting a piece of code to evaluate my Clustering Algorithm and I find that every kind of evaluation method needs the basic data from a m*n matrix like A = {aij} where aij is the number of data points that are members of class ci and eleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: tools.jar exists, but cant find sun.security.tools.JarSignerResources I am seeing the following exception (on a Linux Java6-sun install, but not on OSX) Caused by: java.util.MissingResourceException: Can't find bundle for base name sun.security.tools.JarSignerResources, locale en_US at java.util.ResourceBundle.thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612985", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to read certain registry keys in C I'm using RegOpenKeyEx() and RegQueryValueEx() to try and get the value for six keys in the Windows registry. I'm able to do it for four of the six but am failing on certain others. wchar_t * getRegKeyValue(HKEY rootKeyToGet, LPCWSTR subKeyToGet, LPCWSTR valueToGet) { HK...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ordering file location on linux partition I have a process which processes a lot of files (~96,000 files, ~12 TB data). Several runs of the process has left the files scattered about the drive. Each iteration in the process, uses several files. This leads to a lot of whipsawing around the disk collecting the file...
{ "language": "en", "url": "https://stackoverflow.com/questions/7612999", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: An optimized method to compare IP addresses with wildcards in PHP? Anyone know of an effective and secure method to see if this input: $_SERVER['REMOTE_ADDR'] matches against something similar to this array of inconsistent filters (note that 200.100.*.* could be expressed as just 200.100.*) with wildcards indicated...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613002", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: increment variable according to numbers of clicks I have following code: javascript: var counter = 0; var totalItems = 8; var restItems = $num-totalItems; if (restItems==22) { $('#next').click(function(e) { e.preventDefault(); counter++; updatestatus(); }); } function upda...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613003", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Matlab: Optimize this (pt 2) Here's another one: ValidFirings = ((DwellTimes > 30/(24*60*60)) | (GroupCount > 1)); for i = length(ValidFirings):-1:2 if(~ValidFirings(i)) DwellTimes(i-1) = DwellTimes(i)+DwellTimes(i-1); GroupCount(i-1) = GroupCount(i)+GroupCount(i-1); DwellTimes(i) = []; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613011", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: uncaught syntaxerror unexpected string I'm trying to make a drop-down menu, works fine in firefox It does not work in other browsers get the following error: jQuery(".parent").hover( function () { jQuery(this).toggleClass("activeli").(".parent").stop(true, true).slideToggle(); << error line }); This is the web...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613014", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create an installer for a set of components, some optional, from Visual Studio 2010? I have a package I am putting together that contains the following components: * *Core windows service *Core web service ( requires windows service ) *Secondary web service *Front end This is designed for a distribute...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613018", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: set 100% width and a maxwidth of 400px? I want to do the folowing: image.style.maxWidth = "400px"; image.style.width = "100%"; so the image maxwidth is 400px but if the user resizes his webbrowser window to a width of -400px the image will be resized to the same with as the window. The problem is: How do you this is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613022", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: android XML parse into Hash map not working I am getting the most bizzarre behavior with trying to parse an XML, I run through it step by step and all values are assigned and retrieved in order and then the object I create is added to a HashMap for easy look up, the problem is when I am done retrieving it all the Ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Confusing use of synchronized in Java: pattern or anti-pattern? I'm doing a code review for a change in a Java product I don't own. I'm not a Java expert, but I strongly suspect that this is pointless and indicates a fundamental misunderstanding of how synchronization works. synchronized (this) { this.notify(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Reverse custom django Admin Site urls? Is there a way to reverse URLs added to a custom django AdminSite, for example class MyAdminSite(AdminSite): def get_urls(self): urls = super(MyAdminSite, self).get_urls() my_urls = patterns('', url(r'some_view/$',self.admin_view( SomeView.as_vie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613028", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Android gridview, how to remove the gaps between grid items I am trying to use GridView to achieve a mosaic effect. The grid items are all images, similar to the Gri 2 in the APIDemo sample. The problem is that there are always gaps between the images, even after all the padding and spacing are set to 0. Did I miss ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613032", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I monkey patch a gem that is managed in Bundler? Specifically, I want to point delayed_job at a different table with: set_table_name "my_table" I just switched to Bundler from vendoring gems. I used to just change the code in the vendored gem, which was probably stupid. I probably need to do a monkey path fo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613037", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ipython how to execute several history lines In ipython, we can use _ih[32:39] To show history lines between 32 and 39. How can I directly execute these history lines? A: Use the exec statement: exec(_ih[32:39]) http://docs.python.org/reference/simple_stmts.html#exec A: You can create a named macro from the l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613044", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "34" }
Q: Declaring JavaScript Variables Efficiently I'm trying to optimize a small web application's use of JavaScript variables. I have about five functions that each produce an Ajax call, and repeatedly make use of a query string. Should I declare the query variable inside of each function, or will it increase efficiency...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613047", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android layout: Measure views in order to choose correct TextView font size I am currently working on an Activity that features components with weight. Those components contain text and icons. As far as I know, android does not provide features to scale text according to it's parent view. As a consequence, I need to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613051", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I add submenu dropdown to my current wp theme top menu? I have created a new WP Theme and in the header have inserted a top menu / nav ... but it's just 1 level depth. How do I modify this so that I have show subpages in a dropdown style please? Here is the current code: <div class="header_right"> <ul> <?ph...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613052", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android `settings.db` reference? Is there any reference about settings.db database file? I see mostly obviously variables but there is not enough for confidence. A: On a rooted device, you can pull the file from /data/data/com.android.providers.settings/databases/settings.db (you will need to do adb root before) Th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613053", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting the default datatype of LINQ to sql datacontext Is there any way of changing the default mapping for LINQ to sql datacontexts? I want to change INT to map to long rather than int every time a new entity is created. A: Two ways I can think of: * *Create a DBML file. *Find-replace System.Int32 to System.I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to set a this.var from a class inside a function that's in that class? I want to set the this.session variable from within the last this.rpc via this.setSession() but this is 't working for me: anyone got an answer for me? I'm still learning javascript classes and coming from php classes, it suprises me that thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Submitting Repeating InfoPath Table to Sharepoint list in Browser Enabled Form Hopefully you can help. I am working on a Browser Enabled InfoPath 2010 form that lives in a Document Library on a SharePoint site (2007 and 2010). In this form there is a repeating table with data that needs to be captured for reporting ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613058", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to deal with classpath conflict In my project, I'm using both glassfish-embedded 3.1.1 and the guava lib... The problem is that glassfish comes with the old implementation of guava (ie google-collections)... This results in NoSuchMethodError at runtime, for example when using Lists.reverse(), or Sets.newIdentit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Style Select And Multiple Select? How can I style both the <select> HTML tag, and the <select multiple="multiple"> HTML tag while both of the tags reside under a <form> tag? Of course styling within CSS. If someone knows how to accomplish this, may someone give me an example? Thank you! Aaron A: You can use classes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jquery get the parent ul of a list item click I am trying to write a simple hover function (please don't suggest another, I have specific needs). I have the hover work so that it will show to the right of the list item that it is hovering. The style of the page shows a left navigation where the ul background looks...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: undefined method `new_confirmation_path' Confirmation Module Devise + MongoID I am trying to work with Rails 3.1 + Devise Module :confirmable + MongoID with this template: https://github.com/RailsApps/rails3-application-templates/raw/master/rails3-mongoid-devise-template.rb Mi template working fine but now I have ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613069", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: Performing an OR of two Mongoid "any_in" queries If I have two queries that look like: Store.any_in(:store_id => @user.stores_followed) Store.any_in(:store_id => @category.stores) How do I join these into an OR using any_of? I tried this and it doesn't. I tried Store.any_of({:store_id.any_in => @user.stores_followe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Meta tag invalid property attribute I'm trying to change the default thumbnail pic facebook uses when I post my website url on fb. Now I've been on a couple of websites/forums and there is a lot of confusion/differences about it. Most people say that you should include the following line in the <head></head> tag of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613072", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to apply function by column to a list of matrices How would I go about applying a function by column to a list of matrices? For example I have a list like below. [[1]] [[1]][[1]] [,1] [,2] [,3] [1,] "b" "c" "d" [2,] "y" "y" "y" [3,] "z" "z" "z" [[1]][[2]] [,1] [,2] [,3] [1,] "b" "b" "c" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613076", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: django wizard -- How to realize a dynamic form(or formset) in wizard I have asked a similar question yesterday but perhaps it was too concret. I have read a lot about this on net, but I didn't find any solution. Here is what I want to realize: * *I want to implement a wizard which has 2 steps. first step---P...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Twitter Bootstrap on page tabs: not hiding tab content I'm trying to get the twitter on page tabbed content to work. I have the tabs working with switching around active class on the tabs. I've included jquery and the bootstrap-tabs.js but the following code can't seem to get the tabbed content to hide / display as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can top output show more than 100% in %MEM against a process? Can the %MEM value for a process show more than 100% in top output?Is this ever possible? A: Yes, because the value shown is the percentage of physical memory excluding swap, but a program can use more than this if it also uses swap.
{ "language": "en", "url": "https://stackoverflow.com/questions/7613081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: C++ exceptions in main My class Person has different files as attributes. class Person { private: fstream history; fstream familyTree; public: Person() { history.open("history.dat"); familyTree.open("tree.dat"); } } I need my program to return different values if any of the files c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Right way to redirect to list page after successful add Simple question I'm sure but in Symfony 1.4. After I the form is submitted to add what is the best way to automatically go to the list all page? A: In a typical symfony setting, the general idea would be: public function executeCreate($request) { $form = new...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613087", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exif data returns string with ? box characters only within javascript I'm fetching exif data using exif_read_data and inserting it into an image alt tag which works fine, but when I fetch that data using javascript (var hovertext = $(this).find('img').attr('alt');) a bunch of weird question mark/box characters appea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613088", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Open Source Software For Transcribing Speech in Audio Files Can anyone recommend reliable open source software for transcribing English speech in wav files? The two main programs I've researched are Sphinx and Julius, but I've never been able to get either to work, and the documentation with each on transcribing fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613089", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Issue with Coffeescript comprehensions and closures I ran into a problem when converting some JavaScript to CoffeeScript. The basic issue is I went from using $.each to CoffeeScript comprehensions and I now have a problem where the last value of the comprehension is being captured in closures. Lets start with the or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613100", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to store large data source while using jQuery aotocomplete in the front end? If you have 1000k rows of data, it looks like zipcode/city/state, if you type 95101 in the website text field, it will show san jose, ca; and complete the text field autocomplete. What kind of data structure are you choosing to store th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CMAKE API - producing an AST from the root CMakeFile I'm toying around with the idea of creating some tools for code analysis. My projects of interest all use cmake and clang++ now. To start with I need to get my hands on the CMake AST for a certain project. In essence I want to do the following (psuedocode): CMake...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: MonoTouch binding not creating partial classes I'm attempting to do what is shown on the MonoTouch binding page and add some methods to a bound class. It says that all I have to do is include these in a partial class defined in a separate file that is included in the generation process with the -s option. The proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: PHP string to float bug? So, I got this: $a = "149.45"; var_dump($a); gives string(6) "149.45" now $b = $a * 100; var_dump($b); so far so good: float(14945) and now $i = (int)$b; var_dump($i); What the ...? int(14944) Tested on PHP 5.2.17 (on CentOS) and PHP 5.3.2-1ubuntu4.9 (On ubuntu). Can anyone tell me if ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613117", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reading an XML Node only I am having an issue getting the value of an XML, it is loading it in the XML document when i debug, but it is not finding the value or the node i want to access. Here is the xml. The value i want to get is "Active". Now this XML is not a file or anything , is being passed as a string... (ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613123", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make a transparent window with Qt Quick? Is there a way to make the window of a qml application transparent? I'm looking for a detailed description on how to draw simple shapes with qml while making the window of the application transparent, as well as the background. A working source code demo would be aweso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613125", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "25" }
Q: deleting / resetting DOM nodes I have a web application in which you view/explore a 2D network graph. when you mouseover a node, a request is sent to the server - the server gathers information and sends it back to the client - the client saves all informations in a JS class TooltipGraphListener like this: var w = n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How do you handle shared members when dealing with interfaces? So I did tons and tons of work trying to make an interface for a common set of classes. The idea was to make an interface that each class could use within the set, but ultimately each class is different. Turns out interfaces do not like shared members....
{ "language": "en", "url": "https://stackoverflow.com/questions/7613133", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Float property not working I'm having some issues trying to write CSS to make a box float to the right of my page. I have a div called #right-box-uploadphoto that is the grey box on this page http://s361608839.websitehome.co.uk/salesboard/After_Login.html The CSS is this: #right-box-uploadphoto{ width: 240px; height...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to check whether process ended or not with php? I want to check whether process is ended or not with php. Please tell me what is the better way to solve this problem. I have consider several idea for this, for example: pattern1: $res=array(); exec('ps auxww | grep "some.php some_param 1" | grep -v grep', $res); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Regex to match pattern "Double-Double;" I have trouble finding a regex matching this pattern: * *A numeric (decimal separator can be . or ,), followed by *a dash -, followed by *a numeric (decimal separator can be . or ,), followed by *a semi-column or a space character This pattern can be repeated one or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613140", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: WCF Return Type Issue I am using automapper to map a master class to various child classes. Example: I have a class called VitalStatistics (master class). This class holds all fields for a record. The company business rules indicate that only certain fields are needed based on the State location. So, California may ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613146", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: CSS Dropdown Menu Disappear in IE My menu looks great in firefox and chrome. But IE. It dissapears. Anybody can help me ? http://tinyurl.com/6yzd2jc A: Here's my guess as to what's happening. Could be totally wrong. The dropdown is supposed to disappear when the user mouses out of the link or the dropdown itself. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is it possible to generate scripts from SQL Server 2008 to SQL Server 2008 Express Is it possible to generate scripts from SQL Server 2008 that can then be used in SQL Server Express editions or is it not possible. I read it is not possible, but is there another way. A: Sure - what are you trying to do?? SQL Serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613149", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Quartz´s configuration with Oracle How to configure the Quartz's configuration file to work with Oracle. I'm using Quartz.NET 2.0, Oracle 10G and Visual Studio 2010. I have implemented Quartz 1.0.3 in a project. I have to update the Quartz project to version 2.0, in order to do that i created a Job in a test project...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613151", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Transform xorcrypto encryption module to AES encryption module I have been given a sample encryption module which simply xor a key with the packet data and place the result in data field of constructed packet itself.... The code for xoricv module is here. void xorcrypto(uint8_t *key, uint32_t keylen, uint8_t *da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Silverlight custom navigation window I am developing a Silverlight MVVM app. I have a window with a frame. I have 3 pages, the first for data input, the second for editing the data, and the third for the user to review data and commit changes. I added 2 buttons, "previous" and "forward", so that the user can naviga...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Inheritance behavior issue I've been reading about inheritance but I still dont have it 100% clear, here goes my question: I have for example a class full of stuff: class Something { public: Something(); Something(int A); Something(Something S); ~Something(); Something& operator=(const Somethi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .htaccess and mod-rewrite This is my code in .htaccess: RewriteEngine On RewriteRule ^(.*)$ framework/public_html/index.php/$1 [PT,L] I'm getting "Internal Server Error". What's wrong? A: Try this: RewriteCond %{REQUEST_URI} !^/framework/public_html/ RewriteRule ^(.*)$ framework/public_html/index.php/$1/ [PT,L,NC...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Code folding regions in ruby on VIM? I know not everyone like code folding, but as a convert to Rails and a convert to VIM, I want one of the conveniences back that I had in Visual Studio.Net. I want to be able to place arbitrary #region #endregion tags and have VIM fold them for me like everything else. I have syn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: bash: line wrapping with fancy PS1 that does positional echo'ing I have something like this in my login script that keeps $foo in the top right of my terminal. It works, but with a caveat. If I type a really long command it doesn't wrap. (Well, it'll wrap if it's more than two lines long, but the 2nd line overwrite...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613166", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why does commandButton action listener does not working? I'm using Primefaces components with JSF2.0 and Tomcat 6. The goal is to dynamically create a server components from bean. Just for test I did the next thing: private Panel editorPanel; private CommandButton btn; public void createComponents()...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613173", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In C, is there a difference between a NULL pointer and a pointer that points to 0? If so, what? In C, what is the difference between a NULL pointer and a pointer that points to 0? A: The ISO/IEC 9899:TC2 states in 6.3.2.3 Pointers 3 An integer constant expression with the value 0, or such an expression cast to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Backwards Compatible Android/Java Code I'm writing some code that is going to be used by some partners that maintain SDKs. The SDKs are used by developers on Android 1.5 through 2.3.7. My code uses features that are only available on 2.2 and later. How can I write my code so developers using the partner SDKs don'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Why do I need "out" with a string in C#? I know string is a value type in C#. I understand everything in C# are passed by value. But if it's a value type anyway there is no need 'out' or 'ref', right? A: String is a reference type (a class) as others have pointed out. It's just that it's immutable, which makes it s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }
Q: Embed video javascript code from database in PHP This is probably a pretty simple thing. I am testing out several video hosting services where I host the videos and use their embed code to display on my site. Now this embed code is stored in the database and is associated with each topic. So on a given page there co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I deactivate INFO messages in JBoss? I don't like to see INFO messages in JBoss. Do you know a flag to controll the JBoss output? I would like to deactivate the INFO messages. A: It depends what you want to do exactly. * *If you want to change the default log level you have such possibles: * *go to th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613185", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: When should UIViewController add/remove observers on NSNotificationCenter? If I add an observer to the [NSNotificationCenter defaultCenter] in my viewDidLoad should I be removing it in viewDidUnload? A: You should remove it in dealloc method. A: If you need to add these in your initializer, you should remove it in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613186", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Tiny server/client setup - server doesn't respond. All code provided I'm teaching myself Coffeescript/node and, of course, the only way to do this is with TDD. That means I'm also teaching myself vows. There are, I think, at least two problems. One is -- where does the asynchronous code to get the HTTP response lie?...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613189", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AJAX POST Request Only Works Once in Safari 5 I use my own custom AJAX library (I'm not interested in using jQuery, etc.), which is working flawlessly in the following browsers: * *Firefox 7 *Chrome 14 *IE 8 *IE 8 (compatibility mode) Using my custom AJAX library in the aforementioned browsers, I can make as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: android wifi state changed with broadcast receiver If the user has left the app via the back button key and the app contains a broadcast receiver for wifi state changed will a change in the wifi state trigger the 'left' app receiver and resume the app? Or will the receiver only work while the app is visible? A: I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613200", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to strip the & symbol from only the URLs in a file? I have a file, index.html, containing data like this: <li><a href="/battered-fried-chicken-breast-no-skin.html">battered fried chicken breast, no skin</a></li> <li><a href="/bbq-short-ribs-with-sauce.html">bbq short ribs with sauce</a></li> <li><a href="/bbq-sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613202", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Configuring one web.config file for different servers Is there a way to configure a web.config file to execute it's rules only if there is a match to a server name? For example, we have two servers: WebDev (for development) and WebLive (live web server) On the live server, we have a URL rewrite rule that configures ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery dynamically populating a select option tab I am trying to achieve something like this, <select id="time" size="1" name="Time" disabled="disabled"> <% foreach (string item in (List<string>)Model.OpenCloseTime[dynamicVariable].AppointmentTimes) {%> <option id="<%:item%>" value="<%:item%>...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613209", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I creating an autocomplete textbox with the "Search" magnifying Glass If I create a textbox in a Firefox with a type of "autocomplete" I am able to get autocomplete working properly. However, the textbox is a intended to be used as search textbox (with autocomplete). Thus, in addition to autocomplete I als...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613212", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How To Align Form Tags Properly? I want to align the input and form elements to the right and have the label informatuion to the left, all while maintaining the label being vertically centered with each input it is aligned up to. I also need some space between each <li> tag per se. You can view what I am talking and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613215", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Disabling third party login in social comment plugin I'm using the social comments plugin in my Facebook app. In the plugin's documentation it says that the third party login can be disabled in the setting section of the plugin. How do I enable users to comment using other login providers? On the settings section o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Asset Subdirectories in Rails 3.1 I have a Rails 3.1 app with an image: app/assets/images/icons/button.png It seems like the image should be served at this URL: assets/icons/button.png but if I go to this URL I get a 404. To fix this I created an initializer and added my images/icons subdirectory to the asset path...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Converting Bitmap to a vector of unsigned char As the title says, I'm trying to find a method of converting a GDI+ Bitmap to a vector of unsigned chars, any help would be greatly appreciated. A: Have a look at Bitmap::LockBits. Once you've locked the bits, it should be trivial to copy them to a vector<unsigned char...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: difference between self.up and up in rails migration I have noticed that some tutorials use self.up and self.down for migration methods. I understand that the self keyword indicates the method belongs to the instance only, but do they actually make a difference? A: This is a change in Rails 3.1 - it used to have t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Exporting Facebook Discussions topics On Oct. 31, Facebook is going to remove the "Discussions" app and I would like to know if there is some way to export the topics. A: The info on the discussions tab is unfortunately not available via the API. You would have to export it manually (copy and paste). A: There is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to add new html5 like buttons in website I'm relatively new to this and looking to implement like buttons for videos and articles on a website. I would prefer to get the better functionality from the html5 option over the iframe option. Not sure what I need to do as far as creating the app, getting app ID, and w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613244", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: "Unknown delivery tag" from RabbitMQ when ack'ing a message in a cluster with replicated queues We've been using Rabbit successfully for about a year. Recently have upgraded to v2.6.1, because we want to use clusters with replicated message queues. My testing has hit a puzzling behavior that smells like a Rabbit bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: AJAX/XML/PHP - Comparing results from two queries and displaying them Right now I have one query that returns a list of results and displays them each as links on a page using AJAX. I have another working query that I want to use to compare to the first one, but I'm unsure how to do it exactly (new to AJAX). What ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filter Magento Product collection for products that have a review Hi as per title I want to filter for products that have a approved review. Any help appreciated. I have a feeling its based around the rating summary but not sure how to filter for that? Thanks in advance. Chris A: function getReviews() { $reviews = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Evision Argos/Oracle performance I have a report in Evisions Argos that runs in 1-2 minutes on one server and for almost an hour on another. It is the exact same datablock with the exact same code, just running against a different database. I won't display the script here, I just want to know what kinds of things o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613257", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: If no image, display text? I'm having a problem finding a code that will display text (<?php bloginfo('name'); ?>) when no image has been defined in the img src= (<?php echo get_option('to_logo'); ?>). This works in Firefox, of course, as a simple alt tag. But doesn't cut it in all browsers. <a class="logo" href="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613264", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how can I get the first element of a XElement how can I get the first element <outline title="Javascript" text="Javascript"> </outline> from this XElement <outline title="Javascript" text="Javascript"> <outline text="j" title="j" type="rss" xmlUrl="http://wwww.Java.com/rss2.xml"/> </outline> this is my code var d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: LINQ vs Stored Procedures vs Inline Queries We are a small team working on a very tight deadline to develop a large web application in .NET. We are using multiple databases (one per client) so our requirements are slightly different than most applications. The databases will only be used for this particular applicat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why would a developer place a forward slash at the start of each relative path? I am examining some code for a friend, and have found that the developer who built his site began each and every relative src, href, and include with a forward slash /. For example: src="/assets/js/jquery.js" I have never seen this bef...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "77" }
Q: Oracle: Aging - 7 Buckets - By Account Report Definition (ARXAGS) Is it possible to get the code file behind a standard Oracle report from a resource other than my IT department? I only have minimal read-only permissions on our server, and the IT folks here are not willing to share this information with me. I am tr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MediaWiki anti-bot coding I want to modify MediaWiki handling of user registration to add an anti bot check. It looks like the addNewAccountInternal() method in the includes/SpecialUserlogin.php file is the right place to do it. The problem is that nothing I change in that file seems to make any difference. Not even...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MYSQL SELECT WHERE LIKE WITH AES_ENCRYPT How would I perform a Mysql SELECT with WHERE and LIKE serach if field is AES_ENCYPTED? Example: SELECT AES_DECRYPT(place,'"+salt+"'),AES_DECRYPT(web_address,'"+salt+"') FROM access WHERE place= LIKE '%(AES_ENCRYPT('"+searchStr+"','"+salt+"'))',%') Basically, perform a sea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7613289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }