text
stringlengths
8
267k
meta
dict
Q: Switch databases in CodeIgniter Sorry if this is a real newbie question (also a php newbie), but I can't figure it out from the docs: I want to be able to use a default database, if I don't speficy anything else, and that works fine using $this->db with the following configuration: $active_group = 'default'; $active...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: while switching between android phone modes the video runs from the beginning In my application while playing a video if i change the phone's mode the video does not continue to play but it starts from the beginning. all i understand is the activity is recreated when the mode is changed,how do i fix this i have no i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can i setup this layout? I would like to make a rather complex layout. Can someone help me, as how to do my layout.xml ? Layout image No. 1 is a Layout (Table, Linear etc) No. 2 is my listview, containing a row of list_details.xml Edit: so far I managed to do the first part <TableLayout android:layout_heigh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compare tables and identify new or changed fields New to SQL, would like to compare fields between a stg and src table. The identify any differences between the tables and assign transaction status of 'C' for change. Any new records will be set with 'A' for add. STG_DM_CLIENT and SRC_DM_CLIENT What is the best way t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596144", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Not able to load properties file in Java I am trying to load a properties file. The properites file is in the class path of the application. Properties p = new Properties(); p.load(new FileInputStream("classpath:mail.properties")); System.out.println(p.get("hi")); Now I say classpath, because another file called...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to get a user email from Facebook Graph Api? I'm confused here, I'm trying to get user data using Facebook Api, I'm requesting email permission using scope=email like this: https://www.facebook.com/dialog/oauth?client_id=MY_APP_ID&redirect_uri=MY_URI&scope=email In Facebook access confirmation window I see that...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596157", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Show the complete sections of rows in my table view after scrolling is done i have table view(it has sections). at a time it will show only 4 images/rows(the height of table View is set according to that). when the scrolling is done, it will display 5th row half section,6th row full, 7th row full ,8th row full , 9t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multithreaded FTP download I'm trying to process a certain FTP directory which holds several directories and in turn those directories have an arbitrary number of files. So what I'm trying to do is to have 1 thread for each of the subdirectories and each thread to be concerned with the respective sub-dir here is wha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Get by reflection properties of class ,but not from inherited class class Parent { public string A { get; set; } } class Child : Parent { public string B { get; set; } } I need to get only property B, without property A but Child.GetProperties(System.Reflection.BindingFlags.Public | System.Reflection.Bindin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "91" }
Q: Javascript game: moving bar I'm programing a penalty kick off game (javascrit + CSS3) and I need your help to figure out how to build the "pick up your shooting power" screen. Like in those golf games I want it to have a bar that moves from left to right ascending and then descending non stop. The player has to cli...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596165", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Saving images in Document Directory I am downloading images from web in uitableview and want to save in document directory. I am downloading syncronously. I downloaded and saved in document directory successfully, but when i scroll uitable every time images are being saved , i want to save images at the time of down...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Encrypt an decrypt files in iphone I want to encrypt and decrypt file in Iphone using AESEncryption. It works good for NSData. But if i take Data in chunks my file gets currpt. How do i do this. I am able to encrypt and decrypt data using commoncrypto library. But problem occours when i try to read data in chunks. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596169", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to combine MSI files created with WiX in differnet languages to one file where yo can select the language? I have a Windows Installer XML (WiX 3.5) project and five localization files for my installer. Therefore WiX creates five .msi files, for every language one. How can i put all in one .msi and let the user s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to kill Thread + .net + System.AddIn I have developed one scheduler which is creating new thread at each new event. In that thread based on some id one dll is loaded using System.AddIn. Now i want to kill that event in a midway? How can i implement this functionality in this situation A: I assume you are loadin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596176", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: when to malloc and when not to -- c programming I have few issues regarding when to use malloc or in this case strdup. Below is the small function which I have stolen from internet. I am trying to understand the code but stuck with few issues. 1. the code has assigned value to psrc and pdest. example char* psrc =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SVG viewer alternative for flash rendering in IE Hi i have a problem with svg viewer in Internet Explorer, because i use flash, maybe you can suggest me another solution for this browser. A: The Chrome Plugin for Internet Explorer is very seamless. We use it in several projects and have been able to display a simp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to include and use new fonts in win32 project.? I have downloaded new ttf font. And I want to use that font in my win32 project. How to include and use new fonts in my project.? A: Add the font as resource, load the resource, then use AddFontMemResourceEx API: This function allows an application to get a font...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596180", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: On Win7, how do I debug in older versions of IE I get reports that a button does not work in my webapp on IE8 (and older). Everything works in IE9, FF and Chrome. The error is triggered in this click-bind: $("#save_refresh").click(function(e) { alert('hello world!'); }); This is the html: <input class='button' t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596181", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How many messages are send with System.Net.Mail.SmtpClient.Send() if multiple recipients are specified? I have some code which uses System.Net.Mail.SmtpClient.Send to send data from a piece of software I maintain. We're charged on the amount of data we send so it's crucial that we identify the most cost effective wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is RVO (Return Value Optimization) applicable for all objects? Is RVO (Return Value Optimization) guaranteed or applicable for all objects and situations in C++ compilers (specially GCC)? If answer is "no", what are the conditions of this optimization for a class/object? How can I force or encourage the compiler to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "54" }
Q: Javascript JSONP callback function is method of object? function handler1(data) { } function objectA { this.handler2 = function(data) { } } I can call JSONP page and receive data with handler1 function. But I need to use OOP. How can I call JSONP page and receive data with objectA.handler2 function? A: in the sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596191", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linking two activity in android I'm coding a simple android app where you write in a box your name then click ok and a new page will show your name... The problem is that when you click ok nothing happens. Here the main activity public class Click extends Activity implements OnClickListener{ @Override ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596196", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Reason for duplicate keys on http post? Reading about Http Post on Wikipedia it states that This is a format for encoding key-value pairs with possibly duplicate keys. Is this correct and if so what is the reasoning? Why would a client ever post duplicate keys and if a duplicate key is posted how is the correct corr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596199", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How should I style HTML "select" and "option" tags I want to make my HTML <select> and <option> tags beautiful, but I also don't want to get far from native implementation. For example, I don't want to use dome <div> elements and create a drop-down list using jQuery (for the purposes of accessibility). However, as w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596203", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to debug a tokend Is it possible (and if: how) to run a custom tokend that is started by securityd in a debugger? Preferably within the Xcode IDE. A: One can start XCode as root and then configure the debugger to wait for a new instance of the tokend executable. Once the pcscd signals the presence of a smartcar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hbase Stargate REST Interface: How to encode a scanner with filter in XML? I'm using Hbase over Stargate and want to use a scanner with certain filters. In java or thrift, this would be no problem, but I don't find any advice how to encode the filters in XML. The Schema given in the wiki is invalid, so I'd need one ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596211", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: tips to speed up LINQ query? I have a LINQ query which is searching a SQL table of around 250,000 records and only searching on 2 fields. Both fields have been indexed but I find its still running rather slow. Below is the code, can anyone suggest anything to help speed it up? thanks var qryN = ( from bn in dbs....
{ "language": "en", "url": "https://stackoverflow.com/questions/7596222", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ubuntu 11.04 change in simple desktop I am unable to find the way that my system turn in Ubuntu 10 like desktop. currently, my system is showing me the MAC style start menu and side bar. Can anyone know how to switch my ubuntu in simple desktop. Yours, A: Logout, click on your name, then at the bottom you will have...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to scan an image straight onto a cloud database through web browser interface I have a MySQL cloud database with a browser-based front-end. Backend code is written using Perl/Dancer The employee logs on to www.example.com and enters the data into fields, hits ' save ' to create a new record. Now I need to scan i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596227", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Strip closing php tag using perl regex I have php file, and I want to remove closing tag (?>), but only if it is last closing tag and there is nothing after. <?php //some code ?> <?php //some other code ?> // <- this and only this should be removed I have tried pattern 's/(\s*\?>\s*)$//s' and several of its mut...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Significance of AsEnumerable? var query = from dt1 in dtStudent.AsEnumerable() join dt2 in dtMarks.AsEnumerable() on dt1.Field<int>("StudentID") equals dt2.Field<int>("StudentID") select new StudentMark { StudentName = dt1.Field<string>("StudentName"), Mark = dt2.Fiel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596229", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Use "coffee" instead of "node" command in production I have an app.js that is running express.js. I wanna convert the code to coffeescript and thought about to create a app.coffee that I compile to app.js so I can run it with "node app.js". But then it hit me that I could just write that file in app.coffee and run i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596230", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: Mono.TextEditor not working. What am I doing Wrong? I am trying to use the Mono.TextEditor assembly with .NET Framework 3.5 in GTK#. But I keep getting System.BadImageFormatException Could not load file or assembly 'Mono.TextEditor, Version = 1.0.0.0,Culture = neutral, PublicKey Token = null' or one of its dependen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stuck with twitcurl this question has gone back and forth a bit as I have learnt some things about g++ about unix systems (sorry if I messed anyone about). For a project I am currently trying to finish I would like to get twitcurl running with Xcode and OpenFrameworks. If anyone has managed to do this please share w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596233", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Escape whitespace in filepath I am writing a small Java Application and I am having problems with a filepath. I want to execute a batch file with Runtime.getRuntime().exec("cmd /c start c:\program files\folder\file.bat"); But now Java cries because of the whitespace in the filepath. How can I escape it? EDIT: Ok, th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596235", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Converting query expression to Linq method syntax I use EF 4 and C#. I have a query like: var contentsAuthor = from c in context.CmsContents join a in context.CmsAuthors on c.AuthorId equals a.AuthorId where a.UserId == userGuid select new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596239", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: real world experience of ext4yii I have been developing in php/mysql/extjs3 for nearly three years, using a home-made MVC approach, even in fairly big projects, but now I would like to switch to a php framework + extjs solution. My home-made solution works fine but I need something more solid and standardized, since...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596242", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: need jquery slide show for div contents I need a slideshow like this website. as you can see , in the top of the page is a slide show . I just need a slideshow that change the content of each slide . I've made my content for each slide and just need a script that change these content .IVe searched alot but all I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596246", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ASP.NET MVC File method Hi I would like to send user a file but without showing the url. Using File method the problem is that I have my file in another server and so I have only url not a virtual path, I tried to use WebClient to get file bytes to use in File method but it's quite slow, my files are greater than 20...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596249", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Yahoo Pipes and regex: Why does it work only for my first item? Here is my pipe: http://pipes.yahoo.com/pipes/pipe.info?_id=a732be6cf2b7cb92cec5f9ee6ebca756 I am currently trying to get the part before the first space to my item.url and the second part will be the title. For instance, first item is: http://carto1.wa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Mental Poker Toolkit Can anyone suggest a toolkit or framework (or maybe an idea) that can be useful to implement secure and cheat-resistant online poker (texas hold'em) client without trusted third party server? A: LibTMCG is such a Frameworks http://libtmcg.nongnu.org A: What you're asking about is called mental...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596253", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Git: Move a few of the last commits to a new branch and then create a patch for them I've made a few commits and now I want them (say from some commit in the branch) to move them into a new branch, i.e.: master - O1-O2-O3-X-C1-C2-C3 to become master - O1-O2-O3-X \ new_branch - C1-C2-C3 After...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596255", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to scale polygons mapped to a resizeing picture Im craeating a dart scoring program (to use myself in my dart room) and want the user to be able to click in different areas of a picture of a dart board to register the thrown darts. This program will be resizable, so the picture of the dart board can change it's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change in Javascript/CSS not reflecting from CDN I have setup CDN to fetch my images/js/css files. Initially to override browser cache behavior and to reflect the changes in my js/css files, I used to change the version in URL parameters to make it look like a different URL to the browser. Like http://mysite.com/scr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596273", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to Increment the cursor values? My database have 12 values i use the table layout with list view but in the second row its again started to show second value from the database class NoteHolder { private Button b1 = null; private Button b2 = null; private Button b3 = null; NoteHolder(View row)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596275", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Samsung Tab Emulator in Eclipse i downloaded a tab emulator from http://innovator.samsungmobile.com/down/cnts/toolSDK.detail.view.do?cntsId=9500&platformId=1 and have added it to my android-sdk. i am able to create an AVD but unable to set the build target of my project to this tab. when i try to run the application...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596279", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Authenticating a user (in the web application typically Servlet) with his credentials from Android application I am trying to develop an Android application which typically allows users to login (authentication has to be done in the web application. I already have a Servlet which takes username and password and retu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596280", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to create list of color on Java, Android? I need to create Spinner for list of colors. I will take selected item, get selected color and set this color for another elements. I want to set list of colors in .xml, because I have a few spinners, and want to create resource for it. But if I create a simple list of k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: PHP array sorting cant get the correct output can any one help me how to get the sorting of the numbers; num1 = 1 num2 = 1 num3 = 3 num4 = 5 $values = array($_POST["num1"] => 1, $_POST["num2"] => 2,$_POST["num3"] => 3,$_POST["num4"] =>4); asort($values); foreach($values as $key ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Hide counter on FaceBook Like button I have simple html page with FaceBook Like button: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to use inputView property? I have created my own keyboard and I want to open that in place of standard keyboard provided by the iPhone in the uitextview to enter text.In the Apple documentation I have found one property inputView in the UIResponder Class Reference. It is given on this link :-here But I m not get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read file from position FileStream infile = new FileStream(@"C:\Users\John\Desktop\ProjectNew\nov.txt", FileMode.Open, FileAccess.Read); int position = x.Length; infile.Seek(position, SeekOrigin.Begin); But Seek method returns number. How to read the file 'infile' from position to end in a strin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I use my HTTP handlers for selected paths and MVC handler for the rest? I have an MVC2 application. I also have a set of ready HTTP handlers that derive from System.Web.IHttpHandler. How do I use them together? I tried the following in web.config: <system.webServer> <!--other stuff--> <handlers> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Scala: Mix traits and case class in pattern match I want to match on some case classes. If I don't know them, I want to match on a specified trait the classes have to extend. This looks like trait Event //root trait trait Status extends Event //special trait trait UIEvent extends Event //special trait case class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: How does it convert _bstr_t to BSTR when passing as an argument? Taking a simple example: _bstr_t smartString(L"MyString"); Process(smartString); // takes BSTR. Initially I thought _bstr_t has a BSTR operator converting from _bstr_t to BSTR, but looking at msdn there is no such operator defined. How does it work w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: pointing the website from tomcat to the Apache server I have a website website1.com on Apache server developed using PHP and deployed in Apache Server. Now I have implemented a new features/modules in Java and JSP technologies and deployed in Tomcat server. Now what ever I have implemented in Java J2EE techologies s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Function with variable length argument list If I have the following function: function foo($a = 'a', $b = 'b', $c = 'c', $d = 'd') { // Do something } Can I call this function and only pass the value for $d, therefore leaving all the other arguments with their defaults? With code something like this: foo('bar')...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596327", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: wget not working to download jar file from maven repo I'm trying to download a single jar file from the maven repository, from the URL below. http://repo1.maven.org/maven2/com/google/guava/guava-testlib/10.0/guava-testlib-10.0.jar * *Downloading in a browser works fine, and I get the file as expected. *'wget' do...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: template not show menu items in joomla 1.7 I am new in joomla 1.7 I have installed tx_freemium template but this template not showing menu items while other templates like beez_20,fruitshop etc work perfectely. A: i hope this works * *log in admin menu *go to extensions > modules *search your usermenu *to the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Three20 get current Navigationcontroller I have an application calling Information from the web while a user is logged in. In case the session expired, the application delegate creates a quick UIAlertView with a password field so the user can login right away. Now the problem is: In case the user is already at the r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596338", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What are the security risks in using cross-domain XMLHttpRequest? In many places I've seen people have talked about the Cross-Domain XMLHttpRequest, which is not possible, due to some security reasons. However, I haven't found a post indicating what those security reasons actually are? People have mentioned that JSO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to loop a map with minimum resources? I was looking for a best way to loop through a map that involve as minimum resources as possible. Assume I have an object as the value, and the key is a string that referencing to the object. With the following two loop, may I know which one is better and how did you justifi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linux: Snoop a signal without trashing the registers for the subsequent core dump? When I get coredump-causing signal, I want to run my own handler to copy the siginfo_t and ucontext_t structures to global variables, so that they may be accessed in the core dump. Currently at the end of my handler I reassign the def...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596353", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android. How to operate by history stack? Questions 1. How to make the same functionality as physical button "Back" on android phone? 2. Is it possible to make "Next" button using android history stack? I understand that probably it is not possible, but may be yes. So please let me know exactly A: Question 1: Just ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assemblies don't copy to bin directory I have solution with 13 project. One project is WinForm (EArchive), other is class library. When I click on F5(Debug) or F6(Build Solution) the assemblies is building OK, but they don't copy to bin directory of EArchive. When I click right mouse button on EArchive and select Bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the difference between cancelBubble and stopPropagation? Can anyone please tell me difference in usage of cancelBubble and stopPropagation methods used in Javascript. A: For compatibility with IE8 and older use .cancelBubble if .stopPropogation() is undefined: if(ev.stopPropagation)ev.stopPropagation(); else...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596364", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "55" }
Q: How can I generate tags files for latex command for use in Vim? I'm using latex-box and omnicomplete when typing latex in Vim. I find that it can just completes some of latex commands. How can we generate a tags file of the full basic latex command using ctags, or maybe generate tags file from the packages needed i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596368", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Load a view using AJAX in ASP.NET 3 RAZR When using MVC you are calling actions that then load a view and a parent layout/masterpage. When you wish to load a view using AJAX though and then stick that content say inside a div with an id of content you would end up loading all the layout and stuff as well as you are ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the difference between Android's invalidate() and postInvalidate() methods? What is the difference between Android's invalidate() and postInvalidate() methods? When does each one get called? Must the methods be called only in classes which extend View? A: If you want to re-draw your view from the UI thread ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "24" }
Q: Adjusting dropdown in ExtJS combobox I need such combobox, that's it dropdown's width ant that one of input are different and dropdown is adjusted to the right edge of the input. First part is easy - juts set matchFieldWidth to false and assign listConfig.width = something. But what is the easiest way to perform th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596373", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Euro Symbol in RTF I'm trying to get a euro symbol to show in in a RTF document, but am not having much luck. The RTF doc is a template, which is populated with data from .Net (by reading in the text stream and replacing tokens within it). One of these tokens relates to a euro symbol. My code is working as expecte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to detect if a frame is odd or even on an interlaced image? I have a device that is taking TV screenshots at precise times (it doesn't take incomplete frames). Still this screenshot is an interlace image made from two different original frames. Now, the question is if/how is possible to identify which of the li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596378", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: PHP Beginner: Where and how are objects stored? In an app written in PHP (e.g., a social network), let's say that 10 users (signed-in) are browsing the website. In PHP code, there is "user" object created to store users data and to pass values to other functions and classes. Question: When these 10 users go to user....
{ "language": "en", "url": "https://stackoverflow.com/questions/7596379", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: custom listview using cursor and it should display image as listitem I am developing one application which uses custom listview and listview is filled by data from simple cursor adapter. Now i want to display an image as listitem and it's varying in each listitem. my code is: dbHelper = new DatabaseHelper(this); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Hbase regionservers We have installed hadoop cluster. We want to use HBase over it. My hbase-site.xml is below <property> <name>hbase.rootdir</name> <value>hdfs://ali:54310/hbase</value> <description>The directory shared by RegionServers. </description> </property> <property> <name>hbase.clu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596393", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: protobuf-net ignores [KnownType] and requires ProtoInclude to be added using protobuf-net.dll 2.0.0.431 I'm attempting to serialize a class hierarchy using [DataContract] and [DataMember]. [DataContract] [KnownType(typeof(LoginRequest))] public class Message { [DataMember(Order = 2)] public int Id { get;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596396", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Text not flowing correctly around floated elements in Chrome Please see this fiddle: http://jsfiddle.net/VaBCd/ ...view in Chrome (I've got v14) and then any other browser. Notice how in Chrome the text is failing to break at the right place with respect to the 2nd div, which has {float:right;clear:both}. What's t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there a way to Detect Unread Text Messages on WP7.1 I'm looking to build a method which needs to see if there are any text messages on the device which have not currently been read Is there a way to expose the phones messages to detect whether there are any unread ones and return a bool/int value? I know in WinMo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596400", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can iOS Apps have Login Screen? I need to add log in screen and registration forum to my application, such that the user register or log in to the application, is it legal issue or my application will be rejected A: You can have a log in screen. Many apps have them. But Apple has been rejecting apps with a login ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: stdio.h not standard in C++? I know most compilers allow both: #include <stdio.h> and #include <cstdio> But someone argued that <stdio.h> is not actually C++ standard. Is that true? A: It's not true, because C++ main goal is backward compatibility with C. The only difference is that for #include <cstdio> all f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: can not move to retry queue with a clustered MSMQ When I try to move a message to the retry queue inmediatelly it says: "The tranasction's operation sequence is incorrect". I am using windows server 2008 r2 and framework 4.0. BTS is writting to the queue and a WF is reading from it. But I can not see any error at cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change Facebook language in iPhone sdk? I am integrating Facebook API for iPhone OS. I want to change the language of the Facebook from English (US) to Spanish. A: These links of some help to you.... https://developers.facebook.com/docs/beta/opengraph/internationalization/ http://johnklingelhoets.com/faceboo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596410", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: making an installer and installing the libraries if not already installed How can i make up am installer for my java application (jar file) . The same as that of windows installer which proceeds by clicking next and installs the application. What i want with my java app is, the open source library xuggler to get ins...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Add request headers with WebClient C# I have the following code with which I download a web-page into a byte array and then print it with Response.Write: WebClient client = new WebClient(); byte[] data = client.DownloadData(requestUri); /*********** Init response headers ********/ WebHeaderCollection...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to upload files using Yahoo uploader widget in asp.net Many might have had experience using File Upload widget from Yahoo User Interface library. The docs and community all know how to receive the files on the server using another server technology other than ASP.NET. If anyone has indeed used the widget in thei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I show list of Images in vertical scroll view? I have a list of images like this public Integer[] mImageIdsen = { R.drawable.small, R.drawable.small, R.drawable.small, R.drawable.small, R.drawable.small, R.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server XML Replace values in attribute I want to replace the value in an attribute in a XML. This attribute comes multiple times in the xml. How can i replace these all at once my xml lools some what like below : <Example> <A> <B Type = "x">qqq</B> <B Type = "x">www</B> </A> <C> <D Type = "x">aaa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: DB2: How to concatenate null strings in DB2? I have to concatenate 2 columns (ex. FIRSTANME and LASTNAME). I do it this way: FIRSTNAME || ' ' || LASTNAME`. If one of them is null, but the other one is not null, I get null as concatenation result. And I want following behavior FIRSTNAME = null and LASTNAME = "S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How to test HTTP status code set by an ASP.NET MVC action with MSpec I have the following controller: public sealed class SomeController : Controller { public ActionResult PageNotFound() { Response.StatusCode = 404; return View("404"); } } I have created an MSpec specification: [Subject...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596426", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Velocity String Template Loading at startup I have a list of strings in the memory. I want to load all of them as velocity templates during the application startup. How do I do it ? I know how to create template from a string from here: How to use String as Velocity Template? But I want to know how to load all templ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: connect to android device via usb Is there an API or another way to access an android device's data (contacts, gallery, messages) while being connected via USB ? Can it be done using java or .net framework ? Thanks! A: Can either use: 1. ADB commands to view and pull the device data. 2. Connect the device in USB Co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596429", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Java - Object reference or identifier? I am currently creating a big project, and as such I would like to have everything worked out very well and as efficient as possible. In my project, I have a class called Teams, which contains a HashMap(Integer, Team) of Team objects. Each instance of Team has a unique ID (inte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596430", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Java daemon under Linux: Choices? I have a console application (written in Java), which should run on a Linux machine until it is stopped. Logging is done by the application itself. The application needs to be stopped whenever a new version is available (i. e. I login, stop the application, copy the new JAR file, an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to avoid redirect after form submission if you have a URL in your form's action? I have a form that looks like this: <form name="formi" method="post" action="http://domain.name/folder/UserSignUp?f=111222&postMethod=HTML&m=0&j=MAS2" style="display:none"> ... <button type="submit" class="moreinfo-send moreinfo-b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596438", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jeasy-ui runs the div twice In master.php <?php //echo "session check: ".$_SESSION['session_array']; //exit; session_start(); // Session Starts if( !isset($_SESSION['session_array']) ) { header("Location: index.php"); exit; } include("conn.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596445", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to extract id3tag using id3lib under windows ce? I am trying to extract id3 from mp3 under windows ce. After a week test, I have successfully compiled id3lib under windows ce. (The other two failed: taglib and libid3tag. "taglib" requires cmake to build, but I don't know how to build it to serve windows ce. "lib...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: NUnit: SetUp and TearDown for each test in a test fixture across multiple Fixtures I would like to have a generic SetUp and TearDown that is run with every test across multiple fixtures but all within a common namespace. This would be something similar to the [SetUpFixture] attribute but would be run with every tes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596447", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to include and use new fonts in wxWidgets projet? How to include and use new fonts in wxWidgets projet? I am using VS2005. I just want to print text using new ttf font. Thanks in advance!! A: Unless you're willing to link against something like FreeType: http://en.wikipedia.org/wiki/FreeType ...most any program...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596448", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Background PHP Processes I am developing a website that requires a lot background processes for the site to run. For example, a queue, a video encoder and a few other types of background processes. Currently I have these running as a PHP cli script that contains: while (true) { // some code sleep($someAmou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Increase quantity when adding same Option I have managed to implement OOP of Cart Basket An Item contain 1 or more options. If I add same OptionID again then the number of quantity should increase rather than creating another Option Object. How can that be done? If I add same ItemID again, it should refuse to crea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7596451", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }