text
stringlengths
8
267k
meta
dict
Q: NHibernate advanced search headache I really believe this is a simple problem, but one of those with a solution that's not obvious to an NHibernate newbie like me... Here's the deal, I'm conducting my NHibernate-related queries from a data service layer that knows nothing about NHibernate (for separation of concerns...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533576", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to embed youtube video into a facebook iframe app? I wanted to make a facebook app with an image which has 2 buttons and under the image there would be a video from youtube. But since coding is new to me I need your help. I tried different codes but none of them worked. the video is not appearing at all. And he...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533577", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do you display all values in an object? This is a Mongoid object, but I think it applies for all objects. How do I split up @product into key, value pairs when @product looks like this: #<Product _id: 4e7cd178e66de72d70000010, _type: nil, created_at: 2011-09-23 18:35:36 UTC, updated_at: 2011-09-23 18:35:36 UT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533581", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Designing an event-driven head-tracking library in C++ I want to provide my team with a very simple C++ interface to OpenCV head tracking. What architecture is best for this application? Should I provide an "event-driven" API or should I make the client query this library whenever it wants a head position (yuck)? S...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533583", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to force Google Maps Mobile to open in map view instead of list/text view? When I open a link with directions embedded (such as the one below) on a mobile phone, it defaults to text/list view instead of the map view, even when trying to use parameters in the URL to force it to map view. http://maps.google.com/ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Single row selection - UITableView Good Afternoon, I'm trying to deploy my application in the selection of a single line in UITableView, but when I select another row, the previous line is not clear. I'm using images to represent the selection of the lines. I've tried to make each user's selection table rows stay wi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533589", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: declaring protected variable in javascript How do i declare protected variable. Let me give an example here // Constructor function Car(){ // Private Variable var model; } // Public variable Car.prototype.price = "5 Lakhs"; // Subtype function Indiancar(){ } // Prototype chaining Indiancar.prototype = new ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: web services and custom soap handlers I want to know if we can we publish web services just with the help of wsdd file? I have a custom made wsdd file and if i deploy it in tomcat then my web services will be published. I want to know how it works without wsdl file ? then i want to know how to provide our own custom...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Aliasing singleton method in a module I have a module called Setup and want to alias a method. This is how it looks, but how it doesn't work: module Setup def Setup::option_set?(option) #... end alias :option_set? :get_information end I guess it has to do with the Setup::-prefix. What to do? A: module Se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533597", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: LINQ to XML. Enumeration yielded no results I'm having trouble populating an object from an XML file. I've copied an example I've found almost exactly, with variable names changed, but I keep getting the "Enumeration yielded no results" exception. Here is my code: Dim element As XElement = XElement.Load(path) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533602", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to determine if element is last or first child of parent in javascript/jquery? I have the following code, emulating a click on the left or right key down events. This is used as part of a gallery slideshow: $(document).keydown(function (e) { if(e.keyCode == 37) { // left ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533604", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Adobe AIR application: Installation shortcut How do I get the Adobe AIR installer that I exported from Flash Builder 4.5 install shortcut to the application on the "all users" desktop on Windows? A: You can't force it, the user must select it during installation.
{ "language": "en", "url": "https://stackoverflow.com/questions/7533611", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to run java code with Apache Ant Here is a part of my build.xml: <target name="run"> <java jar="${jar.dir}/${Main.class}.jar" fork="yes" <assertions> <enable /> </assertions> </java> </target> or <target name="run"> <java classname="${Main.class}" classpath="${cl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to allow access to PHP methods according to user's role? I have a basic User model that satisfies all the needs of a generic user. I now need to create several different roles for the user, each with about 10-20 different methods that are unusable by the other roles. Assume that I have to load the generic User c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why would a website not load? I went to a web page and it would not load. The browsers, Chrome and Firefox both said “Waiting…” and never gave an error or page can’t load, just continually said “Waiting…” In fact, in Chrome it was like that for over thirty minutes and never did load. I could load other websites with...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Why does this toggle checkbox function work in jQuery 1.3.2 but not in 1.6.2? This code simply toggles checkboxes and adjusts text box css. By default, the text box is readonly, then when you click the checkbox it should adjust the readonly and highlight the text box. The following code works fine in 1.3.2, but d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Comparator throws strange ClassCastException: pkg.MyClass cannot be cast to pkg.MyClass I am using a Comparator to sort a List<Entity> by it's property (of type Date) in viewscoped managed bean. The problem is that I keep getting the ClassCastException as follows - java.lang.ClassCastException: pkg.db.BaseArStatus ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Struts 2 Custom Exception Handling I am a newbie to Struts 2. I am using the Apache Struts 2 documentation for learning Struts 2. I need a tutorial for custom exception handling in Struts 2; where should I look? A: I recommend the guides; they cover most functionality, including exception handling. The nutshell v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533628", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Manage timeouts for multiple UDP sockets I have to write a TFTP (Trivial File Transfer Protocol) server on Windows and Linux for a university course. I'm using C++ and I want to use one thread and select() to check for new incoming packets. TFTP requires that if a packet is not acknowledged for a certain amount of t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: upload_max_filesize not reflected in phpinfo() In my php.ini file (there is only one on the system) I have post_max_size = 8M upload_max_filesize = 8M upload_max_size = 8M Originally they were set to 2M. I changed them to 8M restarted apache, even restarted instance. But when I do a phpinfo() on it, it still shows...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533637", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Basic subversion server question on a development web server I've just set up a development web server, where people will be testing out some changes before making these changes on the production web server. Currently the web development team is used to using subversion to make their changes on the production serve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Prevent freezing during reconstruction of complex WPF UI? OK lets face it, during render and a layout pass a WPF UI will freeze.... Any escape from this? Someone talked about XAML serialization and Desrialization but does it really work? All I see is a momentary lapse and frozen window for complex UIs which are des...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: small excel macro-enabled file takes 5 minutes to open on a fast computer, why? I have an unbelievably slow opening excel 2007 macro-enabled workbook that is only 950kb in file size. It’s got 2 worksheets, one is empty, and the other has about 1,000 records spanning 10 columns. The file also contains 3 short macros,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533653", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A design pattern for large conditions in a conditional I'm rewriting a beast of a program that does everything and it's kitchen sink. It's a phone IVR system (press 1 to blah blah, press 2 to...) I've got all of it's functions divvied up into their own projects, however my one biggest pain point comes right when w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533656", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: What's the best place to find Git reference content online while kernel.org is down? I like reading man pages nicely formatted in a browser instead of in my terminal console. Until recently, any time I had to look up details of a Git command, I'd just Google the command (like "git reset") then hit the kernel.org lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: How to log ssh debug info? I need to write the output of ssh debug info into the file. This ssh -v root@172.16.248.xx > result.txt ssh -v root@172.16.248.xx 2>&1 > result.txt doesn't work, the file result.txt is empty, but on the screen i see bunch of debug lines, like: OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533661", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "48" }
Q: Apache keepalive ratio Many web servers are faster when using keepalive, but of course, the client must use this feature AND the user must generate more than one request in a row to be useful. My question : For my web site, I use Apache, I would like to know how many requests has been done by using the keepalive ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533663", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jquery + AJAX + double calls I am building an ajax based navigation and everything works fine, except one thing: When i look in Firebug I can see that on each click the ajax site gets called and loaded twice. This is the script: $(document).ready(function () { //Check if url hash value exists (for bookmark) ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533666", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Animating gradients with jQuery This will be my list question today.. Is it possible to animate radial gradients in jQuery(using .animate), if yes how? Example background: -webkit-gradient( radial, 50% 50% ,0, 50% 50%, 70, from(rgb(25,25,25)), to(rgb(50,50,50)) ); A: You can't do this by default in jQuery, you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Open Source Alternatives to ClearCase maybe my question is not paraphrased properly, so let me try to explain it. I'm trying to investigate open source alternatives to ClearCase. One of the strengths of it is that it allows the logical partitoning of content into separate centralized version object bases (or vobs), ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does my storyboard that is within a DataTemplate not begin? I have a custom drawn 'Path' control with some texblocks inside making up a DataTemplate in Silverlight 4. I used the Animation window in Expression Blend to create a simple animation that I can 'play' and see work OK within Blend. I want this animation...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533670", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating nav menu with nested content_tag ULs and LIs I'm a relative newbie to Rails, but wondering how to create a looping nav menu using content_tag. This should seemingly work, but I've seen that one must use concat inside of a content_tag loop. I feel that I've tried every possible avenue and and googled heartil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to process zip file with Python a.zip--- -- b.txt -- c.txt -- d.txt Methods to process the zip files with Python, I could expand the zip file to a temporary directory, then process each txt file one bye one Here, I am more interested to know whether or not python provides such a way so that I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: i have 4 dropdowns and how can i edit and save the data mvc2 i have 4 drop-downs, insert is working and how can i edit the data and save the data to db mvc2. I got an error while update - The ViewData item that has the key 'SelectedTimeZone' is of type 'System.String' but must be of type 'IEnumerable My Controller ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: NSTableView only displaying "Table View Cell" I have a NSTableView with the delegate and datasource pointing to my controller. I have tried implementing the - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex Method, but no matter what I return, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "35" }
Q: C++ shallow/deep copy? I have this function int getrelation(string name, RELATION& output){ bool found=0; int index=0; for(int i=0;i<a_attributes.size();i++){ if(name==a_attributes[i].str_name){ found=1; index=i; } } if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533686", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Font size and actual text size proportion I know that the actual size occupied by a rendered text is font-dependent. For a predetermined font, however, and knowing the font_size/actual_width proportion for a given font size and a particular text, is it possible to determine the width for another value of size? I gue...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533687", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: CKEditor image properties not saving I am using the latest version of CKEditor, 3.6.2, combined with FCK's filemanager - followed a tutorial that I found here - http://www.mixedwaves.com/2010/02/integrating-fckeditor-filemanager-in-ckeditor/ Everything seems to be working correctly, however, when I insert an image a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Phone's Processes Flooding LogCat Output -- How To Eliminate those Messages? I know how to filter out messages in LogCat, so that's not what I am asking about. The problem is that certain phones are "noisier" than others and flood the LogCat buffer to the point of triggering a bug that makes it discard newer message...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533693", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: SELECT statement issue I have a modal pop up that currently holds checkboxes in it for an admin to be able to add features to a product. I needed to change this to be able to get tied to the category of the product on the current page, but my sql statement isn't working. The tables here are Feature, Category and Ma...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Doctrine 2: how to clone all values from one object onto another except ID? In $entity variable, there is an object of same type as $other_address, but with all field values filled in. I want to set all fields in $other_address object to have exact same values as $entity object. Is this doable in less then N number ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "26" }
Q: LDAP vs database for storing application configuration data What is the best place to store Java application configuration data? (like property files, etc) The data may be modified during runtime though not very often. What are the advantages and disadvantages of both approaches? A: You have to clarify a little. Ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: SQL Server performance erratic after migration I recently had a web application migrated to a different data center. That included moving the database from SQL 2000 to 2005, which shouldn't be a problem per se (I run other instances of the same app with SQL 2000 to 2008 R2). The problem is, after the migration some...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to use Botan Amalgamation files and VS2008 * *Clean install of Windows XP SP3 *Install Python 2.7.2 *Extract Botan 1.10.1 to the desktop *Run configure.py --cc=msvc --disable-shared --gen-amalgamation *Copy botan_all.h and botan_all.cpp to my dev workstation *Make a new project Win32 console project in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Autoloading Problem with Symfony2 I am trying to include MagentoBundle into my Symfony2 app. After installing and configuring the bundle according to the README I received the following error message: Fatal error: Class 'Liip\MagentoBundle\SessionStorage\MagentoSessionStorage' not found in .../app/cache/dev/appDevD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533710", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is the answer to the bonus question in test_changing_hashes of Ruby Koans? In the Ruby Koans, the section about_hashes.rb includes the following code and comment: def test_changing_hashes hash = { :one => "uno", :two => "dos" } hash[:one] = "eins" expected = { :one => "eins", :two => "dos" } as...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "63" }
Q: Save PHP code to file using fwrite I'm having a little problem with a script I'm working on, and this is what I'm running into: First of all a bit about how the script works. It actually uses WordPress (it's a plugin) and it makes dynamic pages based on various settings they can change in the backend. I'm adding an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533718", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compiler error with pow() in a for loop I'm a writing a function to print out a ternary tree in C. Of course, my method is terribly inefficient, but that's beside the point, all I need to do is print out the tree without regard to space or time complexity.The compiler (gcc) is giving me an error on the line where th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533726", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Doctrine querying and accessing with relations No problem, just a question about good code-writing. I'm still learning Symfony + ORM and have no orientation in these frameworks. I have in my database table User (with login column) and Account (also with login column, which is different than the login in User). One U...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533730", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to create record and assign to 1 of 3 sub-types, each sub-type with different properties I'm constructing a schema for a MySQL database. I have a table called 'entry' (the supertype). An entry can be either a 'photo', 'essay', or 'video' (subtype). Each subtype has different properties/columns. My current design...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is using a jQuery resizer faster that using PHP's TimThumb? Hello my question is if using a jQuery plugin to scale/resize images on the fly, will be faster than doing it through a PHP function or TimThumb. This came into my mind because jQuery is a user-side and PHP is server side. A: You can't compare them, both h...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533740", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: SQL does not pull records based on exact date I exported records and I want to know which record was exported on a particular day. It does not work. Here is the data if I query it. * comapny Name * * date exported * ABC Company, Inc 2011-08-01 15:44:52.857 XYZ Company, Inc 2011-08-01 15:44:52.857 I issue ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flex 4 Datagrid itemrender I'm using s:MXDataGridItemRenderer for my Datagrid. The click event for an image inside the ItemRenderer is not getting dispatched.I have pasted my code below. ItemRenderer: <s:MXDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533749", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: error message color in symfony i want to change the color of errors that occour when a form is submitted by users, i set .errorMessage{ color:red } in main.css, but it dosn't work :(, is there any option for error color in widgets? i google it but i can't find answer, my symfony version is 1.4.11, and another qu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533752", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: importing modules in python i am having some trouble in understanding how to distribute a tornado application into multiple files.i need to have one file which creates the application instance another file which handles login/logout functionality ,another which handles profile page view and so on.but what i dont get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A save function in F# that does not want to run I have borrowed the following save function to save values of any type to a given file (cheers to John Harrop, writer of F# for scientists). open System.IO open System.Runtime.Serialization.Formatters.Binary let save filename x = use stream = ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533767", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to swipe between several jquery mobile pages? Here is the code extract which works well with 2 pages: <script> $(document).ready(function() { window.now = 1; $('#device1').live("swipeleft", function(){ window.now++ $.mobile.changePage("#device"+window.now, "slide", false, true); })...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Which database to use- Mysql or Oracle? If someone is to build a University Management System using PHP, which database would you suggest for that- Mysql or Oracle? Or let me put it this way.. is it okay if someone uses mysql as a database for the University Management System or it is better to use Oracle? Thanks in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533775", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: sql order by not working in classic asp loop I have a sql query that orders the rows by an id, however it doesn't seem to output the data in order when in classic asp: sSQL = "SELECT * FROM a ORDER BY ID DESC" Set RS = ConnStr.Execute(sSQL) <% DO WHILE NOT RS.EOF %> <td> <br><p class='h1'> <%=RS("ID")%>- <%=RS("Tit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Rectangle With Only One Border I am creating a template for a button. How do I draw only the bottom border of it? Thanks! A: Since you want a dashed line, use a Line object and set it to the bottom of your control <Line Stroke="Red" Height="2" Stretch="Fill" X2="1" StrokeDashArray="1 2" VerticalAlign...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Displaying Parent/Children name with indent i have an object that have parent/children relationship. below is shorter version of what i have but the below is the core props public class Company { Name {get;set;} List<Company> ChildCompany {get;set;} } displaying something like this: -----ABC Corporation (in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533785", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Fastest ways to get a directory Size and Size on disk I recently answered to a similar question but what I'd like to do now is to emulate using bash the Windows "Directory --> right click --> Properties" function (see fig.). I was able to reproduce something like the Size: in bytes using this command: echo $(find ....
{ "language": "en", "url": "https://stackoverflow.com/questions/7533786", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Database auto increment primary key with business login I have a database with USERS table and EVENTS table, both with auto increment integer primary key called id. when the client app start an event, a message sent to the server, and the server creates a new EVENT entry in the EVENTS table with the username of the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Lazy Initialization Errors from Refreshes How can I prevent LazyInitializationExceptions from being thrown when a page is requested multiple times? If I simply hold Ctrl-R on a page in my webapp, I consistently receive this message in my log files. I have the following interceptor configured in my servlet.xml file:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: FindByIdentity - performance differences The following code works fine from a variety of machines on our domain. var context = new PrincipalContext(ContextType.Domain); var principal = UserPrincipal.FindByIdentity(context, @"domain\username") However, if I run this similar code on a machine that is not on a domain,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533790", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: How do you enumerate all accelerators in C++ AMP? In C++ AMP, how does one detect and enumerate all C++ AMP accelerators? Don McCrady distributed an app here that enumerates non-emulated accelerators. Though I had a DX11 card (GTX 260), I didn't see any available accelerators. Daniel Moth shows here how to query an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: using bitset with floating types Can you have bitset container of floating data types? Example: bitset<sizeof(float)*sizeof(char)> second(5.5f); cout << second.to_string() << endl; It doesn't work correctly. what i'm trying to do is get the bit representation. A: bitset only takes a unsigned long as its constructo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533795", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Detect Arduino port in Python I am using an Arduino for sensing using Python 2.7 on Windows XP, but the non-static nature of the USB-to-serial port translation is giving me a headache. With a physical serial port there is no issue hard coding the port position, but the Arduino is moving around based on what is or is...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533801", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Cygwin's bash became extremely slow after errors I realize there are a few other questions about why Cygwin is apparently slow, but this case seems to be unique. I had some issues where things were reporting lots of errors, and then after a reboot any process launched from bash is extremely slow. I honestly have no...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: pass value swt to swf I have a two swf, index and gallery. I am call gallery.swf in to index.swf. loadMovie("image_gallery/gallery.swf",1); I want to make pass value from gallery.swf. How can I do this. Thanks for answers. A: You can send values in the URL, like this: loadMovie("image_gallery/gallery.swf?variabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533809", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Passing STL and/or MFC objects between modules I have a rather large code base that is highly modular (lots and lots of plugins), and very often need to pass strings and such between modules. For reference, the code: * *only compiles in MSVC/Visual Studio, and very clearly does not and will not support other comp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Eclipse Plugin - Text Editor - SingleLineRule I've been trying to develop my own text editor through a eclipse plugin. I would like just highlight some words in a text editor. I wrote the following lines: IToken xmlComment = new Token(TEXT_START); new SingleLineRule("@st","art", textStart); with these lines I have ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Turn Off CKEditor's Auto Correct Settings Does anybody know of a way to turn off CKEditor's HTML tidying function? I know CKEditor has some pretty strict HTML rewriting rules in place, but I am wondering if there is a way to control those so pages being edited don't get messed up when the HTML does not follow CKEdit...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Set width of list items to fill unordered list So I have a horizontal unordered list with a set width. Inside, I have a dynamic number of list items. It could be 2 items, or 6 - it depends on several factors. I'd like to be able to set the width of each list item so that they fill the entire width of the ul, no matt...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533818", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: How to create a fade transition between the images in an image map / swap. I have created a map of a part of Florida. It contains hotspots over different locations and when you hover over them, all other areas darken. What I have done is create one normal image of the map and separate images for each location with t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533819", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using readablity.js from a Windows Desktop App I need to obtain a stripped down version of a web page programmatically using readability.js and the webbrowser control. http://arc90labs-readability.googlecode.com/svn/trunk/js/readability.js Do I have to load the web page I want to strip into the webbrowser control a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: View Array contents in Qt Creator debugger I am using Qt on Ubuntu. When I debug I only see the very first value of the array in Locals and Watchers. How can I view all the array contents? struct node { int *keys; void **pointers; int num_keys; struct node *parent; int is_leaf; struct node *n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533833", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: include_once errors with youtube api / Zend Gdata I'm using Zend Framework ver 1.11.10, specifically the GDATA/YouTube functions. My log is getting blasted with include_once(Zend\Gdata\Media\Extension\VideoQuery.php) failed to open stream: No such file or directory C:\Zend\ZendServer\share\ZendFramework\library\Zend...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Explanation of combinators for the working man What is a combinator?? Is it "a function or definition with no free variables" (as defined on SO)? Or how about this: according to John Hughes in his well-known paper on Arrows, "a combinator is a function which builds program fragments from program fragments", which ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533837", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "95" }
Q: Why is it that when I have X(long) / (Y*Y*Y)(long) I get Error: Divide by Zero? In my example X is already long and Y is a long also. I am not casting at then. I really just want to divide by a number that is cubed. (using native libraries) These numbers are extremely large. If I convert them to floats and do it, it...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533843", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Is `xargs` the way to go with this problem? I've got a text file with a listing of file locations I want to move, first to temporary directory, do some in the source directory then move the files back to the original location. The listing file is of the format generated by, say, a find command, such as: ~/$ find . -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: System.ArgumentException: Parameter is not valid I have a page that sends html5 canvas data, encoded as a base64 bmp image (using this algorithm http://devpro.it/code/216.html) to a serverside process that converts it into a System.Drawing.Image object and does some operations on it. In my local environment, this wo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533845", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Deserialize unknown section into List or Dictionary I have the following XML file: <Error>0</Error> <Description>1</Description> <Document> <ObjectID>06098INF1761320</ObjectID> <ced>109340336</ced> <abstract>DAVID STEVENSON</abstract> <ced_a /> <NAM_REC /> <ced_ap2 /> </Document> So I deserialize it on ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ClearCase UCM: Is it possible to have a temporary view on any given baseline? Is it possible to open a view (snapshot or dynamic, maybe readonly) on any given baseline (recommended or older) in a stream (integration, development or child) for performing some tasks and then remove the view when done? How? A: To open...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSFetchedResultsController with relationship not updating Let's say I have two entities, Employee and Department. A department has a to-many relationship with an employee, many employees can be in each department but each employee only belongs to one department. I want to display all of the employees in a table view...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "33" }
Q: Facebook API: list of most liked pages Using the Facebook API, is it possible to get a list of the most liked pages (non Facebook pages) that were liked in a certain time span? A: A list of pages is not available via the Facebook Graph API. You could scrape their Page Browser, as it does not require anyone to be l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533852", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to loop and compare two arrays at the same time(PHP) I have two array. What I want to do is compare the key ['user_id'] of two arrays, if they are the same, pass the ['user_id'] and ['ref'] in hidden form. I tried to put them into two foreach, but system seems into a dead lock. <?php foreach($_SESSION['printing...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533855", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Page anchors fail Visual Studio 2010 HTML validation I have a few <a name="something"></a> entries in my html page to enable page anchors; Visual Studio 2010 (with either HTML 4.01 or HTML 5 target) underlines name attribute and shows warning "Element 'name' is obsolete or nonstandard". Am I doing anything wrong? I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jquery flexbox ? I'm using right now FlexBox plugin to make search box, everything work fine but how can i make the css work perfectly with the search box ( the css file that downloaded with flexbox ) I have the following html <form action="result.php" method="post"> <div id="suggest"></div> </form> and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533858", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Time Cost Comparison: Haml render_to_string vs. string addition I'm working on something that will render a small bit of xml (10 lines) every second. I like the ease of constructing Xml with Haml, but I was wondering if anyone knew any details about the server cost of using render_to_string with haml versus building...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533861", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How complete should MongoDB indexes be? For example, I have documents with only three fields: user, date, status. Since I select by user and sort by date, I have those two fields as an index. That is the proper thing to do. However, since each date only has one status, I am essentially indexing everything. Is it oka...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533869", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: .NET Compact Framework Reflection call to internal method in .NET framework class I am trying to load a .NET assembly from a .NET 2.0 CF application. I want to invoke an internal method with three params like so: var obj = new System.Web.Security.SqlMembershipProvider(); MethodInfo mi = obj.GetType().GetMethod("Gen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C++ File list with all file informations I'm planning to make a program that would work between a folder on my computer and my NAS. It would list all the files in both folders, then determine which file is newer, and then upload it to the other device. I know how to upload files via FTP, but I'm stuck at the start,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533873", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unable to load json data with jqgrid, although jsonstring works fine I have a jqgrid that I'd like to populate with my json, but I can't get it to work. I think my json is fine since the grid is working when supplying the json as a string (datatype:jsonstring). The thing is, I don't get any errors from jqgrid, which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533874", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to cascade deletions with Doctrine 1.2? I have been struggling with defining cascade behavior in Doctrine ORM. According to the documentation, one is supposed to use onDelete: CASCADE for database-level cascade (which is what I am trying to achieve here). A complete example may be seen on the Symfony tutorial. H...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533875", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Will Postgres push down a WHERE clause into a VIEW with a Window Function (Aggregate)? The docs for Pg's Window function say: The rows considered by a window function are those of the "virtual table" produced by the query's FROM clause as filtered by its WHERE, GROUP BY, and HAVING clauses if any. For example, a ro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: javax.servlet.ServletException: java.lang.VerifyError: createELResolver signature I am struggling with the following issue and help to resolve it would be greatly appreciated. I am developing an application and have been running it in Tomcat 7.0.19 installed locally on my machine. Everything was working fine until t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533878", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to disable system keyboard handling in Java AWT Application? How can i disable such keys and their combinations as, for example, Alt ; Alt + F4 and others in my Java AWT application? E.g. my KeyboardListener should handle that keys as 'usual' keys and combinations without closing window or entering window menu. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533879", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Tool like magic draw but for generate C# code It's there a plugin for visual studio or a specific program that allows to draw an UML model and generates the classes for C#?? and more, for example Creates a repository classes from classes entities of the entity framework generates A: Visual Studio has had the Class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533880", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: lazy loading not working when on new saved objects, (when getting them from the context that saved them) I have this class public class Comment { public long Id { get; set; } public string Body { get; set; } public long OwnerId { get; set; } public virtual Account Owner { get; set; } public...
{ "language": "en", "url": "https://stackoverflow.com/questions/7533883", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }