text
stringlengths
8
267k
meta
dict
Q: Identifying DNS packets When looking a packet byte code, how would you identify a dns packet. The IP header's protocol field would tell that a UDP frame follows, but inside the UDP frame no protocol field exists to specify what comes next and, from what I can see, there is nothing inside the frame that would uniquel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565300", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "13" }
Q: Where to keep h:messages in a h:datatable while validating two h:columns I am using one h:selectbooleancheckbox in each row to make 2 columns editable. Have a look at my JSF page <h:dataTable id="editTable" styleClass = "listtable" value="#{bean.GroupList}" var="group" border="1" first="0" rows="8" width="75%" fram...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565302", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Combining several images in Java I have these several images which I need to be combined using BufferedImage in java. The logic of the program is this: The user will be asked to input data (5 times) then the inputted value will be generated to image (I'm done coding with this part). My problem is how can I Combine t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565306", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SBJSONParser on large integer I'm using json-framework to parse JSON data in an iPhone project. But there's a large number in the json data, such as 10432159274, it will make NSNumber overflow. In the SBJsonParser.h, the doc says Numbers in JSON will be converted to NSNumber or NSDecimalNumber. How can I use it so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565307", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript "SCRIPT5: Access is denied" opening PDF from script I've read many other posted questions on SO and so far have found nothing to help me solve my problem. We have a web form that runs on our LAN opening up PDF files in Javascript using the OPEN function. For the longest time there have been no problems. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: 1 outlet connects 2 UILabel? Is it possible to connect 1 outlet from file's owner to 2 UILabels from the same view? I try to do that, but every time I connect the outlet to the other label, it automatic disconnect from outlet to the old label? Any ideas? Thanks a lot! A: No, it's not possible. When you add such ou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565312", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Setting up a eclipse project for learning gcc I cloned git repository for gcc from github.com. Now I want to navigate the code from eclipse. I have indigo eclipse in windows. How to setup the project(like setting the include paths), so that issues like: "GC_NOT_ALPHA not resolved" doesnot come up. A: Got the answer...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565314", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pre-processing C code with GCC I have some C source files that need to be pre-processed so that I can use another application to add Code Coverage instrumentation code in my file. To do so, I use GCC (I'm using this on a LEON2 processor so it's a bit modified but it's essentially GCC 3.4.4) with the following comman...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565316", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Question on object lifetime : N3242 Draft A point from C++11 n3242 "Duration of subobjects, object lifetime", 3.8/1: The lifetime of an object is a runtime property of the object. An object is said to have non-trivial initialization if it is of a class or aggregate type and it or one of its members is initializ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: iPhone - How to rotate compass for North magneticHeading I have a compass/image where the needle should always point North. I have the compass needle/dial rotating using the following conditional statement: double heading = newHeading.magneticHeading; if( heading >= 0.0 && heading <= 23.0) { nee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565325", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: cache and jQuery.get I have a mobile app using cache via manifest file working and being in cache very well. How can I get to information on the server. jQuery.post works no issues but jQuery.get will not because the browser just checks the local CACHE. Is there away of to make .get work. Putting a random key after ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565329", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to connect sql database that is not in the same LAN I am trying to connect to sql server 2005 database. It's not in the same LAN. I am Getting error like An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565334", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to set focus on the WPF DataGrid or its first row? I have WPF DataGrid placed on the Window. I have a button which performs some business logic and populates the grid. I want to set focus on the DataGrid (preferably first row in the DataGrid) when i TAB from the button. I have set the TabIndex but somehow the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565337", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Java HashMap not finding key, but it should I have a strange issue occuring in my application, I will quickly explain global architecture and then my problem in depth. I use a service to populate a HashMap<DomainObject,Boolean> coming from my database (JPA driven) which is in turn returned to my view, via an EJB rem...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565341", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Simulating a cron job with a Task in Application Start I'm trying to find a very easy easy way to start a simple cron job for my Web Application. What I was thinking about is starting a Task in the Application_Start event. This task will have a while loop and do some action every hour or so like a normal cron job wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Taking dump of the database without getting specific table records :Postgres Can any one tell me , How can i take database dump using pg_dump without getting specific table records. A: If you want a table-wide filter, you can use either --exclude-table=table or --table=table to resp. exclude tables or include only ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get first Monday after certain date? If my app received a certain date, how can I find out the date of first next Monday? For example, I get the date 28 Sep 2011 and I have to find out the date of the first Monday after this date. A: Do like this: GregorianCalendar date = new GregorianCalendar( year, month, day );...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565356", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Linq to SQL: How to save the final queries to a log file? I am looking after an application with lots of LINQ to SQL queries. This is basically SilverLight application with MVC. Some of the data loading is taking quite a bit of time. I wanted to know the exact query that is fired on SQL server. Is there any way of s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: correcting FB meta tags Possible Duplicate: How does Facebook Sharer select Images? Facebook share url thumbnail problem I discovered, after testing, that I had the wrong meta tags for image or url. After correcting the information on my webpage, FB still seems to reflect the old information. Is there something I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: JSF issue about space I am a green bird in JSF, now I was puzzled by the text of it. when I assign the value of the outputText with multi-spaces, the result shown in IE has only one space. ex: the code is like <h:outputText id="name" value="aa (multi-spaces here) bbb" ></h:outputText> the result text shown in IE ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565363", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Visual Studio Extension for Code Alignment Is there any free extension to perform code alignment, like Align Assignments with Productivity Power Tools but to align this code: public int ID; public string Title; public string Text; public decimal Factor; in that way, or something like that? public int ID; publi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: WSDL and SOAP: Return object with methods Is there a way to return in soap an object with his methods? If i return xsd:struct in WSDL i only get the properties of the object but i can't use any of the methods. For example class person { var $name = "My name"; public function getName() { return $this->nam...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565371", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to pass two parameters in android sqlite How to pass two parameters in android sqlite query statement? My query looks like this, but I am getting error. If I use one where condition its working fine, but I want to use two condition. db.query(true, DB_TABLE, new String[] {KEY_ROWID,Source, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565372", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to get all user roles while using entity framework I am using entity framework and membership in my asp.net application. In one of the pages I need to show all the users and ther roles by joing "aspnet_Membership", "aspnet_Users", "aspnet_Roles" and "aspnet_UsersInRoles" tables. But whenever i try to add all th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Memory Leak in reading from sqlite database I dont know how to remove this leaks.Cany any body please help me.Thanks
{ "language": "en", "url": "https://stackoverflow.com/questions/7565380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to make the background DIV only transparent using CSS I am using CSS attrubutes : filter: alpha(opacity=90); opacity: .9; to make the DIV transparent, but when I add another DIV inside this DIV it makes it transparent also. I want to make the outer(background) DIV only transparent. How ? A: Fiddle: http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565384", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "39" }
Q: reduce the size of the image programmatically image from gridview How ca we compare data from web service with data in local folder and replace the data coming from web service with our data in local folder. Also tell me how to programatically reduce the size of the image that is displayed from gridview into Edit Te...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565388", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Spring MVC: FileNotFoundException "\Uploads\MyUploads\loading.gif (The system cannot find the path specified)" Problem Context: I am trying to persist a file, uploaded by the user, to file system. Description: Actually, I am using Spring MVC (3.0) and this is how I am trying to persist the file, String orgName = fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: create 2 vertical scrollbars in layout in android In my layout there is one Listview and multiple controls. If I create scroll view listview scroll does not work. If I remove scroll view listview scrolling is works. how to get both scrolls working? Thanks in advance, Durai A: You cannot get both to scroll. You can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How does the jqueryUI autocomplete example get away with not using $(document).ready I am determined to figure out how the example at http://jqueryui.com/demos/autocomplete/#default works without being wrapped in a $(document).ready because I just spend over an hour and a half trying unsuccessfully to reproduce this...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565403", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Load a cubemap in a DDS file with DevIL I only get the first face in a cubemap. How do I access/load the other ones? With DevIL 1.7.8 on Ubuntu Natty: I use ilLoad or ilLoadImage to load a dds-file with 6 textures, but only the first face gets loaded. ilGetInteger() give the results: IL_IMAGE_DEPTH: 1 IL_IMAGE_BYTE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Underline UILabel text I have UILabel whose string is being set at runtime. The text in UILabel is centrally aligned. I want to display an underline below the label text. But the line should have X same where the text begins (consider center alignment) and width equal to text width (not label width). For underline I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565407", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fail to launch multiple setInterval I am building a function to update a HTML node's background position at a regular basis. The function works for a single node, but when called upon multiple node (in the following example), only the last node is affected by this function. According to the alert(index) within the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565408", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Where is the bug in my polynomial calculation code? my aim is to compare the two different method to calculate a polynomial.. but if you run it on a mac (my computer is MacBook Air) you will find the two results are different... .but.... if you delete the "/* ... */" part OR delete the two "//" before "for ..." it w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Edit text in C# console application? Is there a way to edit text in a C# console application? In other words, is it possible to place pre-defined text on the command line so that the user can modify the text and then re-submit it to the app? A: Yes. You need to use method SetCursorPosition of Console. Example: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: FFT image comparison (theoretical) Can anybody explain me (simplified) what happen if I do an image comparison with FFT? I somehow don't understand how it's possible to convert a picture into frequencies and how this is used to differentiate between two images. Via Google I can not find a simple description, which I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565417", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How display section of time in different text field? I have three text field in which i want to show the current time. In the first text field,it shows only hours , in second text field it shows only minute and in last one it shows am or pm. For getting current time I use this code but how do I show according to my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565418", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What's the extra time for when loading web page in rails? I got a page which is generated in a few milliseconds. Completed 200 OK in 83ms (Views: 75.9ms) When I try to load this page with "time wget http://localhost:3000/search", I fould that it takes 1.5 seconds. real 0m1.562s user 0m0.001s sys 0m0.00...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565419", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Create and clean DB setup only once for testing all DAOs Does anybody knows a way to achieve the following flow for testing DAOs: * *Run SQL script to create common DB setup (insert data into all tables) *Test DAO1 *Test DAO2 *… *Clean-up DB Data created in Step 1 Using Spring, Hibernate, JUnit, Maven stac...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565420", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Insert Image to a Document I am new to VC++, I want to know if it is possible to insert an image created by my kinect camera to a RTF doc or MSWord doc using VC++ in a Win32Console Application? Any pointers on how can I achieve my goal? Thanks! A: Yes, it is possible. I assume that you already have a way to get the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565424", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Core Data get sum of values. Fetched properties vs. propagation I'm relatively new to Core Data (coming from an SQLite background). Just finished reading the 'Core Data for iOS' book but I'm left with a number of baffling questions when I started modelling an app which has the following model: * *'Accounts' entit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Keybinding on a treeview item, with CommandParameter I'm trying to execute a command located on my ViewModel, using a TreeViewItem with a KeyBinding, and a MenuContext. Currently, using the context menu, the command is invoked on the correct ViewModel instance. However, when I select a TreeViewItem and press the "C"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565428", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Warning: This page calls for XML namespace http://primefaces.prime.com.tr/ui declared with prefix p but no taglibrary exists for that namespace I'm trying to start with Primefaces 2.2.1, but I can't. I have the following definition in pom.xml: <repository> <id>prime-repo</id> <name>PrimeFaces Maven Repos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565431", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android in accessing value of a string I am working on android. i want to access the file from server. if i write my url in this way: URL sourceUrl = new URL("http://192.168.1.214/MusicApplication/searchsongxml.php?"); then it works correctly. But if i declare the server name in strings.xml as follows: <resources> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565435", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OOP concepts in Python Can any one suggest any links where Python object oriented concepts are clearly explained with example.. Data Abstraction Encapsulation Class Object Datahiding Inheritance Polymorphism A: Here is a good starting point: Introduction to OOP with Python.
{ "language": "en", "url": "https://stackoverflow.com/questions/7565439", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MySQL select rows where values in one field match values in another table I have the following tables: * *tbljobpost with fields job_id int, job_title varchar(50), skill_cat_id varchar(50) *tblappskills with fields app_control Int, skill_cat_id Varchar(50) tbljobpost: +-------------------------------------+ | ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: User Management in ASP.Net MVC 3 i have a project using ASP.Net MVC 3, and now i want to make user management. i want to make it like this one : http://mrgsp.md:8080/awesome/user how to make that user management ? thanks a lot A: I created a Model which references the MembershipUser but also allows for creating an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565444", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change Vagrant port forwarding on a running system I have a Vagrant system up and running and I want to apply a change to it which is as little as changing one of the forwarding rules. From this page: Forwarded ports are applied during vagrant up like any other configuration. But if you already have a running sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565446", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Soccer query - How to extract these data? I have a Soccer website, and I have a calendar of the match organized in this MySql table (called calendario) : TEAM1 TEAM2 V1 V2 DAY ID_SEASON team1 | team2 | 3 | 1 | day1 | 1 team3 | team4 | 1 | 2 | day1 | 1 team1 | team4 | 0 | 0 | day2 | 1 team3 | team2 | 4 | 2 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565450", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Reload tab in android I have tabhost in my application(2 tabs),when i select tab2 the content has been dislayed has a list view ,again i have list click event here to move further another list view,here the 2tab already in selected mode and it's focus not been changed,when i click the 2tab again i need it to reload ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565455", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android Table Row Image dimension I want to put one image on the beginning of each row in my application . The problem is, the image is too big and when I put it there, it occupies the whole screen. main.xml : <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565456", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to display hours between two dates in mysql Two datefield <input type="text" name="from date" > <input type="text" name="to date" > Example : If fromdate is 2011-09-12 and todate is 2011-09-15 ouput should display : display every hour 2011-09-12 00:00:00 2011-09-12 01:00:00 2011-09-12 02:00:00 2011-09-12 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565463", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Display value in a loop I am using Spring MVC 3. From my controller I set value mav = new ModelAndView(); mav.setViewName("reports"); mav.addObject("ReportList", ReportList); return mav; In JSP <c:forEach var="list" items="${ReportList}"> $(list.name) </c:forEach> ReportList has a size of 7. ReportList is a l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565469", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Appying Background Color to entire line of Text I have a RichTextBox in a WPF Application. I would like to apply alternate coloring to each lines of texts. I have set the Background property to be of the desired color, but due to differences in text length, only the portion containing text gets the background color....
{ "language": "en", "url": "https://stackoverflow.com/questions/7565471", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: get current lat long without GPS in blackberry storm 2 i m working with the application which are needed to get current lat long of user . in our area GPS is not working so how to get lat long without gps system A: You can send your wifi and/or cellid info to google (or to RIM's own service but that is still alpha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565474", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Disposing Custom Class : Setting NULL VS .Dispose Possible Duplicate: Calling null on a class vs Dispose() Just want some information regarding Disposing an Object. I have create a Employee Class which i inherit from IDISPOSIBLE Interface. Below is the sample Code public class Employee : IDisposable { pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565481", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Minimisation problem in Python, fmin_bfgs won't work but fmin will, 'Matrices not aligned' I have a function in python which takes a vector and returns a real number. I am using the scipy.optimize fmin and fmin_bfgs functions to find the argument which gives the function its approx minimum value. However, when I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565482", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does this SQL query take 8 hours to finish? There is a simple SQL JOIN statement below: SELECT REC.[BarCode] ,REC.[PASSEDPROCESS] ,REC.[PASSEDNODE] ,REC.[ENABLE] ,REC.[ScanTime] ,REC.[ID] ,REC.[Se_Scanner] ,REC.[UserCode] ,REC.[aufnr] ,REC.[dispatcher] ,REC.[matnr] ,REC....
{ "language": "en", "url": "https://stackoverflow.com/questions/7565484", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ignoring Aspectj during junit tests Here is situation: * *We have class with defined aspect to it's methodA; *We have JUnit test for this methodA; When I run JUnit test it activates Aspect as well. Any thoughts how to ignore Aspects during unit tests? I have separated tests for my Aspects and it works fine. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565490", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Unable to create table in MySQL using Doctrine and Symfony2 I am working with Symfony2 and Doctrine ORM using MySql . After creating an Entity, I am not able to create the table. It throws an exception. anu@anu-bridge:/var/www/Symfony$ php app/console doctrine:schema:update --force --dump-sql [Doctrine\DBAL\Schema\...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565492", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: Understanding the flow of a struct in C I am trying to learn how structs work in C. I am familiar with constructors in Java. Now, I have an example of creating a tree in C with structs. struct a_tree_node{ int value; struct a_tree_node *leftPTR, *rightPTR; }; I am currently trying to visualize how this ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565494", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Updating multiple rows in one query very slow performance I am looking at the best way to update multiple rows at once with a single query. Currently I have: UPDATE `profiles` SET `name` = CASE `id` WHEN 1 THEN 'John' WHEN 2 THEN 'Jane' END, `gender` = CASE `id` WHEN 1 THEN 'Male' WHEN 2 THEN 'Female' END WHERE `id`...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565497", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Android: Live Video Streaming I have an app that download a video from ftp then save on sd card in encrypted form , when user want to see that videos , then it decrpted and then showing but i have a problem with that is takes long dely on decrption. Is there any way to play a video like live streaming when it is in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565503", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: A void* being used to maintain state... (C programming) Currently we are learning how to program AVR micro-controllers (Ansi C89 standard only). Part of the included drivers is a header that deals with scheduling ie running tasks at different rates. My question is to do with a quote from the documentation: "Each t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565507", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: What is a pull-through cache? I found a reference to this concept in the EHCache documentation, but I could not find any proper explanation of what it means. It tried Googling around but to no avail. A: The more common term is self populating cache. In Ehcache docs a SelfPopulatingCache (= pull-through cache) is de...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565514", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Persisting two entities at the same time I have been struggling with this for sometime and can't seem to get past the problem. I have a persisted entity called SiteVisit which is many-to-many related to Staff via an intermediate table called SiteVistHasStaff. Using Netbeans, CRUD and JSf I have been able to populat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565524", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: :onchange in form not working, in rails 3.1 app This is exactly my problem. In my case the :onchange function is not working, though I have added the jquery in the application.rb. in the form, I need to alert the users <%= telephone_field(:user, :phone_country_code, :size => 1, :onchange => "if $('user[phone_country...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565525", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jquery ColorBox: Display inline content with next and previous button I'm trying to use a Jquery Lightbox called ColorBox (http://colorpowered.com/colorbox/) but I'm running into some troubles. I want to use the lightbox to display inline content but also have the next and previous button appear. This way, like in a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565532", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Absolute url overwiritten as a Relative URl when adding a new html element like iframe etc (i.e adding the a base address at prefix of URL supplied) I am trying to add an iframe to my website. The problem is that our CMS automatically overrides the src address given ex: I set the absolute url (source address) to htt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565536", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: width/height after transform How do I retrieve the width and height properties after I've applied transform: rotate(45deg);? Like, 11x11 square after rotation becomes 17x17 (Chrome result), but javascript still returns original width/height - 10x10. How do I get this 17x17? A: I made a function for this, domvertice...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: SQLAlchemy ForeignKey can't find table Getting this error when I try to instantiate the ConsumerAdvice class. Foreign key associated with column 'tbConsumerAdvice.ConsumerAdviceCategory_ID' could not find table 'tbConsumerAdviceCategories' with which to generate a foreign key to target column 'ID_ConsumerAdviceCate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565549", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: how to sort an array of objects by the parents of the objects I have the following model objects: Participants.rb belongs_to :user belongs_to :board Users.rb has_many :participants Boards.rb has_many :participants I want to sort the following array by the name of the users when I get the information from the d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to execute JavaScript in Ruby written Webdriver test? Is there a known solution to perform Eval (Javascript execution) in Webdriver, Ruby bindings? The equivalent of the following example in Java. WebElement element = driver.findElement(By.id( "foo" )); String name = (String) ((JavascriptExecutor) driver).exe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565562", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: MySQL: SELECT DISTINCT from multiple tables I have database with several tables in it. For sake of example I will simplify it and try to explain in detail. One table is called Products, another called Brands, and the last one is called Categories. As you might guessed each Product can have only one Category assigned...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565573", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery number compare I met a trouble to compare number in jquery. test code here: <script src="jquery.js"></script> <script> jQuery(document).ready(function(){ var val1 = $("#aaa").attr('title'); var val2 = $("#bbb").html(); if(val1>=val2){ $("#ccc").html(val1); }else{ $("#ccc").html...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565574", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Set value for a parameter in app.yml in symfony I'm using Symfony Propel. I want change my app.yml variable value inside a for loop. My code is for($i=0;$i<5;$i++) { $previousValue = sfConfig::get('app_url'); sfConfig::set('app_url', $previousValue+1); echo sfConfig::get('app_url'); } I have set default value for ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565585", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Pattern matching with more than one match Consider the following Scala code. val a = "both" a match { case "both" | "foo" => println ("foo") // case 1 case "both" | "bar" => println ("bar") // case 2 } I would like match to work so that if a == "both", Scala will execute both cases. Is this possible or...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565599", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: YouTrack java.lang.OutOfMemoryError - Teamcity integration We are getting the error below which is causing YouTrack to crash. We are using YouTrack to scan TeamCity for changes which I beleive is causing the issue below. How much memory should YouTrack need to run with TeamCity integration and which config should we...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565603", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android: How to add a vertical progress bar to a home screen widget? I need to put a vertical scroll bar in a home screen widget, and after searching many times, I can't find a convenient solution that works on API3 and above! I tried many solutions: - using bitmap created at run-time, but on some displays it never ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Help designing manager class I'm designing a UI manager class that will manage all my UI elements (this is for an XNA game, so there is no existing UI framework) but I'm wondering how to deal with situations where I want the UI manager to have special access to data in the UI elements that other classes can't access...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: how to create sub menu in magento admin using module I'm developing magento module.I would like to add menu in admin section. like. admin-> catalog -> Attributes -> Manage Attribute-> Here mymenu Magento version 1.5.1.0 How can i do this ? A: in your module's adminhtml.xml put the following: <config> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to check a checkbox is not selected <li> <label><spring:message code="label.roles"/></label> <form:checkbox path="roleIds" value="1" /> <label><spring:message code="label.users"/></label> </li> <li> <label>&nbsp;</label> <form:checkbo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565617", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to reorder this array? I have a database table as follows: This returns all column titles in the pic, but the one's that are most important are slug, and parent (not sure about id_button). The array gets ordered automatically by id_button ASC, which really irks me. But, anyways, this is not important, as I need...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Lockable Surface in WPF I want a custom Control in WPF which have a appearance similar to HTML, we use for showing Images in the centre of the screen with the whole screen locked and only image is showing. I dont want to show images, I want to show UserControls within this section. Can someone give suggestions of ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565621", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Compile test program with wxWidgets in MAC OS: MAC X 10.7.0 The Mac OS X install an older version of wxMac(wxMac-2.8.8.1) in /usr, but I install a newer one(wxMac-2.8.12.0) in /usr/local. To install it, I compile the new one with the flag: arch_flags="-arch i386" ./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565623", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there a way to override the "key" function for list.max() and list.sort() in the class of the list items? I have multiple subclasses of a superclass that store something in a instance_of_a_class.value and I override __cmp__() to provide reasonable ==, <, > etc. comparisons. However, I have multiple places in my c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565630", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Array selector function by property value I have: var array = [ { key: '1' }, { key: '2' }, { key: '3' } ] I want: var obj = getFirstItem(array, 'key', '2'); And as a result: obj = { key: '2' } Is there such function in JavsScript or jQuery? A: I don't know of a built in function. However, it would be trivial ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565631", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Preview Image while file uploading using "UPLOADIFY" I am uploading the file using the script from "UPLOADIFY" site, The image is uploading successfully, But Now I want to preview the image on my UI Page, I have written some script (Converted image into Base 64 Encrypted code) to preview the image. Both the functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why i am not able to load Advertisement sometimes? I have implemented AdMob to My Application from this Docunemtation: Here I can see the ad perfectly as I want. But some times I cant able to see the advertisements. If i refresh the activity, it will show me the Advertisement again. and ita work perfectly. But when ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Indent the text in a UITextField My question is as simple as the title, but here's a little more: I have a UITextField, on which I've set the background image. The problem is that the text hugs so closely to it's edge, which is also the edge of the image. I want my text field to look like Apple's, with a bit of hori...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565645", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "79" }
Q: Comparing files between 2 workspaces in Eclipse I've got two different workspaces for two different projects I'm working on, however some of the code I checked out is from the same package spread across the two workspaces...and I have a feeling I've changed different parts of the packages across the two workspaces I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565648", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting list of file handlers in an eclipse rcp project I'm developing a RCP application. In a project workspace, I get file/folder handlers of known files to me by getFile(String name) and getFolder(String name) methods. Is there a method which returns array/list of files which matches a regex? (Like getFiles("*.tx...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I remove all but some records based on a threshold? I have a table like this: CREATE TABLE #TEMP(id int, name varchar(100)) INSERT INTO #TEMP VALUES(1, 'John') INSERT INTO #TEMP VALUES(1, 'Adam') INSERT INTO #TEMP VALUES(1, 'Robert') INSERT INTO #TEMP VALUES(1, 'Copper') INSERT INTO #TEMP VALUES(1, 'Jumbo') ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565664", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Nancy with Razor: Views are cached, making development really hard I'm new to Nancy and Razor (and MVC). If I make a change to a view I have to restart the application somehow (change web.config, restart dev server etc) for the change to take affect. I think the cache may be Razor's static dictionary? It stores each...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Open video from a URL on webView Iphone In my Iphone app I open a URL on a webview.This URL contains videos. When I open a video it is not played fullscreen and if I rotate the screen it is not rotating. How can I manage this video ? I don't have any player. Can anyone help me ? Please help... A: these two links ca...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Upload file that is in the cpan database I have a small module on CPAN - http://search.cpan.org/~bessarabv/. I made a mistake and at first uploaded file SQL-Easy-0.04.tar.gz and only then SQL-Easy-0.03.tar.gz After that CPAN thought that the 0.03 is the latest version of the module. To fix this problem I've requeste...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565671", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Generics in Scala: implementing an interface/trait twice? Given a generic interface such as the following interface I<T> { void m(T t); } I can in C# create a class that implements I twice (or more) with different types supplied for T, e.g. class C : I<int>, I<String> { public void m(int i) { } public voi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: enumerating all possible strings of length K from an alphabet in Python Possible Duplicate: is there any best way to generate all possible three letters keywords how can I enumerate all strings of length K from an alphabet L, where L is simply a list of characters? E.g. if L = ['A', 'B', 'C'] and K = 2, I'd like ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to add entity to multiple tables? I have 2 tables in my DB: Students and StudentsHistory. The idea is that every change in the Students table must create a new record in the StudentsHistory table (e.g. when I edit a student, 2 operations must be performed: UPDATE on Students and INSERT on StudentsHistory). How c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565680", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jQuery modification needed in script Here is a jQuery script for sliding in letters, but how do I remove the last class of "fade out" so that the letters remain at their final position? Here is the demo: http://blog.waiyanlin.net/example/jquery/flyingtext.html and here is the script for it: $(document).ready(functio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7565681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }