text
stringlengths
8
267k
meta
dict
Q: 2D Array - C vs Java What is the difference between a Dynamic 2D Array in C (int **arr) and A 2D Array in Java (int [][]arr) ? Is a 2D Array in C/C++ similar to a 2D Array in Java? A: The answer will change according to part you want to compare. In Java, arrays are objects that have methods and attributes, however...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615062", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Packages in Servlets In Apache tomcat, there was a project created that included Servlets to service the incoming requests. Java class files were kept under WEBINF\classes\com\example\web Why do the Java files need to include "package com.example.web" statement so that their compiled classes may be kept in com\exa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615063", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Make object move up/down 315 degree slope based on working code from 45 degree slope Alright, so I need to know how to move a object up/down a 315 degree slope based on the code i have for moving said object up/down 45 degree slope. Currently the object moves up/down the 315 degree slope like it's 45 degrees, which...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615067", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Core Data information in application I have an app that I'm building where it has some data built into it that is contained in a core data data model. When I run the app to the simulator, the data is there and everything is peachy. However, when I deploy the app to the device (an iPad), the app works fine, except ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615078", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Amazon EC2 EBS IO Count is high I am running Ubuntu 11.04 +Apache +Mysql +php on free micro tier of Amazon EC2, complete root is attached to EBS.. The db size of mysql is 700 MB.. but in just 45 hours of running the instance.. I/O count is 713,136... ?? I have installed phpbb on my website and it is getting around 4...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615081", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: append date to osql made backup with batch thumbs up for this forum and am glad there's so many volunteers around on line. I'm not familiar with batch, so maybe someone would be so kind to enlighten me with answer. Be very thankfull. I try to backup many sql db with osql and then rename them with appended date ( and...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: eclipse ee servlet tomcat doPost http405 I'm trying to go a post from HTML to Java Servlet using eclipse ee and tomcat starting the server through eclipse. But I am getting: HTTP Status 405 - HTTP method POST is not supported by this URL <!DOCTYPE html> <html> <head> <script type="text/javascript"> </script> </head...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615084", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Show time tag in SSRS Parameter I have an SSRS report with two parameters: StartTime and EndTime. I have default values on the parameters to be set as the current date at 12:00am and the previous day at 12:00am. However, since 12am is the default time on SSRS, it will not show in the parameter selection. What yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615090", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Import picture and save to isolated storage WP7 I am currently working on a project where the user needs to select a image from there photo gallery and import it. Using the following code I am able to import the picture but I have a few questions. * *What is the image named upon import? *Where is the image locat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615095", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: tar/bzip files without including the folder structure sample setup: folder structure /folder1/folder2/folder3 folder3 has 2 files: * *sample.backups.tar *sample My objective to run a script that bzips sample and appends it to sample.backups.tar, remove the compressed file outside bzip. I wrote the following lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615096", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I view the SQL command sent by .SaveChanges() For debugging purposes, I'd like to view the SQL command that is being sent to my database when I call .SaveChanges() on my container object. Is there a way to spy that value? Thanks in advance!
{ "language": "en", "url": "https://stackoverflow.com/questions/7615106", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to implement a longtouch with a ListView? How do I implement a long touch event into my ListView? The only useful MotionEvents I see are ACTION_DOWN and ACTION_UP (there's no ACTION_STILL_DOWN event). A: implement the OnItemLongClickListener interface in your ListActivity or you can use getListView().setOnIte...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why is this not context free grammar? I vaguely recall { a^n b^n c^n is, n>=0 } not context free. But isn't the following a valid context free grammar that captures the above S -> abcS S -> null Quoting Wikipedia: "In formal language theory, a context-free grammar (CFG) is a formal grammar in which every productio...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615112", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Define "custom" integer-based type? I have a program that is interfacing with an external library that, among other things, has an unsigned 12-bit value packed in a larger struct. This used to be 8 bits, so we simply marshaled it as a byte. Now that it's 12 bits... I can use a ushort, but that opens up issues of (a)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615113", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "20" }
Q: Showing a pop up window when someone likes my fb page My client wants to display popup window with some coupon codes when some one clicks the like button of his shops facebook fan page. He is currently using the static fbml. I never worked with fb pages before. So know nothing about there api. I prefer javascript if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615118", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can you add an ID to dynamically generated href? how can you add an ID to a link generated like this? function addElement(list, pos) { var linkUrl = productList.products[pos].productLink; var linkItem = document.createElement('a'); linkItem.setAttribute('href', linkUrl); The previous code generates ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615126", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: move magento db to another server I have a Magento website, from the cpanel I created db backup and saved it to my pc, but I don't know how to import it to my new magento website. P.S: the old hosting is now expired and I have only this db backup. A: I've found exporting the Magento database through cpanel/phpmyadm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615128", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: rails 3; activerecord; where; NOT EQUAL condition comparison between two columns in database Is there some way of comparing two columns in a database using where? Say, I have two columns for user that tells: * *city_of_birth *favourite_city And I would like a list of users that have favourite_city that is dif...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615134", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: sqlite statement not ok... why? - iphone I've been working on incorporating a sqlite db in my iPhone app. The database has been created, and I have successfully inserted elements into the database. Now, when I try to select from the db, my prepare statement is not meeting the requirement of SQLITE_OK. Here is the co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615138", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Can not populate drop down list using hibernate query in spring mvc Here is my controller. In this I am using the reference data to send the List to my JSP page. Read the list into countryList which contains list of all country names populated using hibernate query @SuppressWarnings("deprecation") public class custo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615139", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby version mismatch when deploying war over tomcat I am using Rvm and have install jruby-1.6.4 (with ruby 1.9.2) i use warbler to create the war file and deploy it over tomcat-6.0.4 the problem is while i run the application the tomcat logs shows ruby version used as 1.8.7 I checked the version of ruby thru rvm l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615147", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: if / else simplification to ternary operator Can this be done for the code below. Problem I see is that there are two statements in the else clause and I couldn't figure out a way to fit in the echo...I need to return a 1 or a 0. Perhaps someone knows a trick? function empty_user($c) { if((int)!in_ar...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615154", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting the "like" button to appear on ALL of my web site's pages I have been able to ge the "like" button to appear on my home page, but cannot get it to show up on ALL my pages on the site. I have tried copying & pasting this code: <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode('ht...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615155", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error with logging users on facebook I have an app on facebook, and I log the users on my database (a script checks if the user is already on the db, if not, it adds him). The users table has only one field - "userid", which is a primary key. The script that checks if the user is already registered in the db is: ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Java JFrame / Canvas doesn't repaint A mouse listener calls repaint() and I can see that it does actually go past the drawing part because I see globalcounter incremented in the output of System.out.println(). On the screen, however, I don't see any change until I minimize the window and maximize again, resize it, o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Email address links for user I have a database system to keep track of students. This is used by a few other people in the office who are not tech savvy. I need to be able to email about 120 students at one time. Given the character limit on URLs/browsers/what have you, using mailto is not an option; the character...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615159", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: getElementsByClassName returns [] instead of asynchronous appended node (I ask my question again after the first one was terribly formulated) I face the following problem: <div class="testA" id="test1"></div> The above written element is predefined. I now load a xml tree via XMLHttpRequest & Co. delivering the foll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615162", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: SQL INNER JOIN on Text Columns I have two tables (equipment & software) that I want to do an INNER JOIN on. They both have a field called EQCN. It is a text field. I get the following error: The data types text and text are incompatible in the equal to operator. There has to be a way around this. A: Change the da...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615163", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Messaging Script - Text isn't uploading when queried I have a simple messaging script that allows the Admin to send pre-defined messages to the users. The two fields that seem to prevent the query from completion are the subject and body - the formats within the database are both 'text' with default set to NULL. Cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615170", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Installing Pygame and Pymunk on Mac OS X 10.6 I have not been able to install Pymunk and Pygame for the same version of python. I have tried binaries, source installs, fink, and Macports, for system python, python 2.6, and python 2.7, with 32 and 64 bit versions. In some cases the pymunk unit tests cause a segmentat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615171", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ruby on Rails: How to have ActiveRecord callback load a shared variable between callbacks I have a couple of before_save and after_save callbacks that need to share an instance of an object between each other in a Ruby on Rails project. I thought that adding an additional method called load_object where I load the o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: What is wrong with these @font-face fonts in IE9? For some reason, when I view this page in IE9, all of the @font-face fonts look way smaller than they should, and maybe like a different typeface too. As far as I can tell, everything about my syntax should be cooperating with IE9. Others have had trouble replicating...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615178", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Play Sound file without importing winmm.dll or microsoft.visualbasic.dll I am writing a program using Delphi prism. The goal is to be able run on windows and linux (mono) from the same project. So, at this point I need to have a way of playing a sound file for windows and linux(mono) without having to import winmm.d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615184", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using a specific Firefox profile in Selenium WebDriver in C# I am trying to use a profile I already have set up for firefox with selenium 2 but there is no documentation for C#. The code I have attempted is as follows: FirefoxProfileManager profileManager = new FirefoxProfileManager(); FirefoxProfile profile = prof...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615193", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Can this possibly work to generate forms in Symfony 1.4? I'm currently attempting to generate form elements in Symfony based on the application's model. I know the code below is invalid, but I'm hoping it shows what I'm trying to do. I've really hit a wall with it... I can't seem to wrap my head around how I'd utili...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615198", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: T-SQL - get value between two dates I just watched such an example which shows how to get all cols by date here it is... DECLARE @MyGetDate DATETIME SELECT @MyGetDate = '2 Mar 2003 21:40' SELECT * FROM @Table WHERE convert(varchar, @MyGetDate, 14) BETWEEN convert(varchar, startDate, 14) AND convert(varchar, endD...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615213", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In JavaScript, why is "0" equal to false, but when tested by 'if' it is not false by itself? The following shows that "0" is false in Javascript: >>> "0" == false true >>> false == "0" true So why does the following print "ha"? >>> if ("0") console.log("ha") ha A: // I usually do this: x = "0" ; if (!!+x) cons...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615214", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "276" }
Q: How php/mysqli ( prepared statements + bind params ) protect against SQL Injection? How php/mysqli ( with prepared statements + bind params ) protect against SQL Injection ? Mysqli applies only "real_escape_string" for variables or do something else? May i say that the function below is totally useless when using my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615217", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding init.d service (chkconfig / autocomplete in shell) I've made a startup script, (i.e. myserviced) and put it in /etc/init.d/ I ran chkconfig --add myserviced I can start/stop/restart the service just find using: service myserviced start etc. However, I notice that when I type "service" and then do TAB (to ge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615226", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to change the highlighted color of a tabbaritem? I am trying to change the highlighted color of the tabBarItem just like the Viber app does. I don't want to change the color of all the Bar, just the highlighted color. I have read a lot posts here, but none of them explained how to do only this modification. Does...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615228", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Multiple Facebook Canvas Applications within same web application - CanvasAuthorizeAttribute I am having a problem with running multiple Facebook applications under a single Web application. Similar to this problem: Multiple facebook apps under one web application I do like the solution suggested here, however the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615231", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to send video stream to soap web service I need to send recorded video stream to web service. I'm doing encoding video stream using Base 64 but im getting out of memory exception. So I'm thinking another way to do this. I searched for this but I can't find any reference link. Is there another way to send the vi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615232", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Linq, OrderByDescending, First, and the nefarious DefaultIfEmpty Hopefully this is a simple matter of me not understanding something basic. Below are two Linq statements from an application I'm working on. EDMXModel.Classes.Period p1 = entities.Periods.DefaultIfEmpty(null).OrderByDescending(ap => ap.UID).First(); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615237", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Can I create nested classes when using Linq-To-Entities? I'm still learning Entity Framework and Linq-To-Entities, and I was wondering if a statement of this kind is possible: using (var context = new MyEntities()) { return ( from a in context.ModelSetA.Include("ModelB") join ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615241", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Why isn't -moz-animation working? The following CSS works fine in Webkit. Haven't checked it in Opera, but I know it's not working in Firefox. Can anybody tell me why? The correct classes are definitely getting applied to my HTML (inspected it with Firebug, and I do see the -moz-animation: 500ms ease 0s normal forwa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615243", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Timer start/stop parameters I've made leaps and bounds in skill and progress since joining this community. You all are a huge help. I'm having trouble with giving a timer that I've implemented certain parameters for when it starts and stops. I either get errors saying "the local variable timer may not have been init...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615248", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: HTML tags in RTL forms I store some RTL language strings - which have some HTML tags embedded - in a DB. When I echo these strings on an HTML page these are rendered correctly. However, when I place these same strings in a <textarea> the HTML tags are all messed up. Here below is an example (you'll need to copy past...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615250", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Objective C - Creating Angles From Current Time I'm trying to write code to draw a clock on the screen of an iOS device. I need to get the angle of a line (seconds, minutes, hours hands of clock) from the current time. My code accurately grabs the time, but for some reason, all of the angles I receive end up being t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615251", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Programmatically implementing callbacks with JS/jQuery So, I'm writing a web app. Pretty much everything is done client-side, the server is but a RESTful interface. I'm using jQuery as my framework of choice and implementing my code in a Revealing Module Pattern. The wireframe of my code basically looks like this: (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: HorizontalAlignment on image not working in PdfPCell in itextsharp I am adding a image in PdfPCell and i want that to be center aligned. For that i used following code but its not working PdfPTable Outertable = new PdfPTable(1); PdfPCell celltop = new PdfPCell(new Phrase(" ")); iT...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615259", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jQuery UI issues with tables in dialogs I have a jQuery UI dialog to which I applied a padding, and inside the dialog I have a long table. I then configure the dialog to be of limited height in order to have a scrollbar. It seems that whenever a nowrap is applied to the table cells, the padding to the right of the t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615261", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Change aspects of page with PHP I'm trying to make my PHP code update parts of my HTML when executed, and I'm not really sure how to do it without relying heavily on javascript and hidding divs etc. It works in a way that when the user clicks the "tick" or "cross", it updates a database and hides a div whilst showin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615263", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Save pdf form in mysql Is there a tool/software that I can use for clients to save their pdf form online. Example: I have e generic fill-able pdf form online, have them fill it out online and save it on the fly. Is there something like that out there? A: It is possible but why save it in the database? You could pro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615266", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Symfony2+Behat+Mink: how should I refactor? in this tutorial is proposed this file system: XXXBundle |---Features | |----FeaturesContext.php |---ProductCategoryRelation.feature where FeaturesContext.php is the file that stores the functions //FeaturesContext.php /** * Feature context. */ class Fe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615267", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to refactor helper methods in RSpec files? I am using Ruby on Rails 3.1.0 and the rspec-rails 2gem. I would like to refactor the following code (I have intentionally omitted some code and I have given meaningful names in order to highlight the structure): describe "D1" do # Helper method def D1_Method_1 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Ruby Concept - Yield Working my way through Ruby concepts right now. Coming from a VB background, there are some concepts I don't quite grasp yet. Yield is one of them. I understand how it works in a practical sense, but fail to see the significance of Yield, or when and how I would use it to its full potential. A:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615269", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Drupal Filefield User Permissions Granularity I have a Drupal 6 site with a node type that has an optional, unlimited value, Imagefield (Filefield/CCK) setup. The node type's content permissions are set to allow all authenticated users to be able to edit those nodes, which is great. Users can edit a node and attach ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615276", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make Jasper Reports programmatically determine the Name of Columns within the report it self? I am generating a report with that will have a 7 columns where the last 6 should have the the last 6 months listed. So as of the time of this writing it should be: NAME -> September -> August -> July -> June -> May -...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615281", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: injecting arabic text in div at runtime as ajax responce shows weired characters I have a php page which supports arabic text properly. I am using ajax to get some arabic text from server.php file but when i try to create dynamic div and put ajax responce (which is mixture of numbers and arabic text) in it...it does...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Puzzled using codeigniter on shared hosting server This ones a new on me. I'm transferring a site I made in codeigniter to a godaddy shared hosting server. I can get to the home page with: http://www.example.com But when I try to go to the other pages like: http://www.example.com/about-us/ It throws me this error...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615284", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to average data from 7AM to 7PM of one day in SQL 2005? Possible Duplicate: How to average/sum data in a day in SQL Server 2005 I have a set of data which is called Dryer_Data. This data is recorded every minute. I need to average it Dayshift: from 7:40AM to 7:40PM everyday, and Nightshift from 7:40PM to 7:4...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615285", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: webservice hosted on iis7.5 has one webmethod invoked every 5 minutes exactly by a "ghost" I am a .Net developer encountering behavior of my ASMX webservice on an IIS 7.5 machine for the first time. It is a staging server so I know I am the only one using it. Strange behavior as follows: * *There are 5 webmethods...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615286", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Browscap.ini throwing an error when loading PHP (command line - PHP_CLI) I have a cronjob that summarize browser statistics. This cronjob loads data and then use the get_browser() PHP function to parse the browser information. Here's what I did: cd /etc/php5/cli/conf.d me@ubutnu:/etc/php5/cli/conf.d$ sudo wget http:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615290", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "11" }
Q: How to predict when next event occurs based on previous events? Basically, I have a reasonably large list (a year's worth of data) of times that a single discrete event occurred (for my current project, a list of times that someone printed something). Based on this list, I would like to construct a statistical model...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615294", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Can a texbox click event be captured? Sorry to bother you again on this problem. The solution I accepted from James Johnson didn't actually work because, it prevents me from entering any data into the textbox which is not what we want. We would like to diplays the message as a help info only. In other words, we woul...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615298", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do i get this IF statement working? Fixed a lot of it, getting an error during the myInt declaration, saying it cannot find the parse method. I've added the imports NetBeans mentioned along with it but still nothing. Here's the updated code: import java.util.Scanner; import java.lang.Integer; import java.lang.St...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615303", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android LinearLayout within LinearLayout? I tried to make a simple layout like so <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Haskell OpenGL won't open in Ubuntu This one is a bit weird, but I will start at the beginning: As far as I gathered, there are 3 ways to open up an OpenGL window in Haskell: GLUT, GLFW and SDL. I don't want to use GLUT at all, because it forces you to use IORefs and basically work in the IO monad only. So I tried G...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615310", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: A way to pass in a constant list into a cmake macro? I have a CMake macro like so: macro( foo a b ) list( FIND b ${a} is_found ) endmacro() And I try to call it like so: foo( "test" foo;bar;test ) This doesn't work. Also this does not work: foo( "test" "foo;bar;test" ) In all cases I get is_found equal to -1, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flask's @before_request executes more than once I added an app.logger.error('test') inside my @app.before_request and noticed that there are up to 8 lines of test in my log per request, even if it's just abort(500). I just can't seem to find out why, what could cause this? A: If you run with app.debug = True and se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to make sbt `console` use -Yrepl-sync? New in Scala 2.9.1 is the -Yrepl-sync option, which prevents each REPL line from being run in a new thread: scala -Yrepl-sync When I run console from sbt, how do I have it pass this in? A: Short answer: set scalacOptions in (Compile, console) += "-Yrepl-sync" How to disc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615318", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: @Html.DropDownList width Q: How to set width for @Html.DropDownList (and not in css)? @Html.DropDownList("ListId", String.Empty, new {style="width: 250px;"}) @* no go!*@ A: The second argument of the DropDownList helper must be an IEnumerable<SelectListItem>. You are passing a string (an empty one to be more pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615321", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "30" }
Q: Java constructing an http request message I asked a similar question in another thread but I think I'm just having trouble getting the syntax right at this point. I basically want to open a socket in Java, send a HTTP request message to get the header fields of a specific web page. My program looks like this so far:...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615323", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jquery shoutbox IE error Hey I have some jquery/ajax code for a shoutbox and the problem I am having is that in IE when I had the form tags around the input message and submit button in the html code, upon pressing the enter key in the message box it was reloading the page, this was not occuring in other browsers, s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ODP.NET doesn't work System.Data.OracleClient does We are switching from the obsolete System.Data.OracleClient. I have switched all the references in the ASP.NET 2.0 code, however when I try to access the database server using ODP.NET calls I get ORA-12154: TNS:could not resolve the connect identifier specified. Thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: overflow-y for ul, scroll down the list I have a problem with my menu. I only want four menu items to appear at any time, meaning that if there’s an overflow, it’ll be clipped, and the user will have to scroll down. I tried setting overflow-y, hoping to see it get clipped, but instead, a horizontal scroll bar appear...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615335", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Create_table method/block I come from a java/c++ background and I just started learning Ruby. I am having problems understanding blocks attached to methods. This is a method used to migrate a database. create_table :model_names do |t| t.string :name t.string :address t.timestamps end My question is: whe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615339", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How to connect to a device on network with c# I have a device on my network that controls a piece of hardware. I can control it with my browser like: http://xx.xx.xx.xxx/setvalue.html?Address_Value_Array={someValueToSendToDevice} I do not need any form of a response from the device. I'm wondering what is the usual w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Git --bare ... Why does fetch not always show the most recent commits? I have a few GIT repos that I mirrored locally to show up in my JIRA instance, but I have noticed some (to me) strange behaviour. I have a repo, we will call this "myrepo". If I do a git clone, and git pull, I always get the most recent commits. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: I can't seem to figure out how to center align my table <table border="0" align="center"> <tbody> <tr> <td>Cell1</td> <td>Cell1</td> </tr> <tr> <td>Cell1</td> <td>Cell1</td> </tr> <tr> <td>Cell1</td> <td>Cell1</td> </tr> <tr> <td>Cell1</td> <td>Cell1</td> </tr> </tbody> </table> I am not good with coding. I've trie...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Model with recursive self relation in Django's admin Say we have a model with two self-recursive relations: class Article(Item): # Item in this case is an abstract class date = models.DateField() parent = models.OneToOneField('self', null=True, blank=True) subatricles = models.ForeignKey('self', null=Tru...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615351", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: django querysets + memcached: best practices Trying to understand what happens during a django low-level cache.set() Particularly, details about what part of the queryset gets stored in memcached. First, am I interpreting the django docs correctly? * *a queryset (python object) has/maintains its own cache *acces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615357", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: AsyncTask and Background Thread when to Use What is the difference between AsyncTask and Background Thread. Which should be preferred or any scenarios to use these? What I am trying to achieve right now is Will be sending request to server when user goes on a specific activity and display the data received on the sa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: php multidimensional sort I have an a couple of arrays like so. Array ( [state] => Array ( [0] => WA [1] => CA [2] => CA [3] => NV [4] => MO [5] => CA [6] => CA [7] => CA [8] => CT [9] => FL [10] => FL [11] => ID ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615367", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can't initialize struct with nested pointers to other structs I'm using a third party library which defines this struct: typedef struct { unsigned short nbDetectors; //! structure of detector status struct DetectorStatus { unsigned int lastError; //< last detector internal error ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615369", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Is my JavaScript statement correct or not? I need to know my JavaScript sentence is correct or not? I am very much confused with the single quotes and plus symbols. document.f.SQL.value ='\('+ document.f.SQL.value + a[i] + ' >= \''+ document.f[a[i]+"_A"].value + '\' AND '+ a[i] +' <= \''+ document....
{ "language": "en", "url": "https://stackoverflow.com/questions/7615370", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-7" }
Q: Is there an updated version of "Improving .NET Application Performance and Scalability"? I'm looking for an updated version of this article: Improving .NET Application Performance and Scalability. The message on this page states: Retired Content This content is outdated and is no longer being maintained. It is provi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615376", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Auto-Full Screen for a Youtube embed I have a Youtube video embeded on a webpage. Is it possible to have the video go full screen when the user presses play, using the HTML5 iframe with Youtube's API? Using the Chromeless player is not an option as the website is intended for iPads. A: This isn't possible with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615380", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How to exclude fields form being indexed with Sitecore search (new method) How can I specify which fields to index with lucene indexing with Sitecore (new method)? For example I'd like to index only the fields 'title' and 'text'. There seems to be a IndexAllField parameter that can be set to False but how can I set ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Do I have to clear events from the DOM if an element is removed? Let's say I have a page that loads pages dynamically. As each page loads into the DOM, events for the elements in that page are added. If the user loads another page, the elements loaded previously will be removed from the DOM. Naturally, because the e...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615383", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: YUI3 Datasource to return custom Object How can I get the YUI3 sendRequest applied to a Datasource to return predefined objects, instead of plain ones? For example, I have this Base class with its methods: function Student(id, name){ this.id = id; this.name = name; } Context.prototype.setId = function(id){ t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: playing video iphone - mpmovieviewcontroller I'm playing video with MPMoviePlayerViewController. I get video url from web service. But first I select video quality with AlertView. For example 240p 360p 480p… All video plays except 240p. MPMoviePlayerView appears and then disappears with notification MPMovieFinishRea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615391", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: gem 1.8.10 error I just setup an EC2 instance on ubuntu and installed ruby 1.9.2. I also updated the rubygems by executing gem update --system. Once the installation was done, I typed gem -v and I got the following error Invalid gemspec in [/usr/local/lib/ruby/gems/1.9.1/specifications/tilt-1.3.3.gemspec]: invalid d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rendering image on the mobile browser? i am creating a mobile site, now my problem is the images are getting render when i run the site on PC, and also while running the site on IPhone, but when it comes to Opera Browser for any symbian based mobile, the images are not at all rendering.. i am using asp:Image control...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django returns blank pages Suddenly I started getting HTTP 200 with zero byte content for every request handled by Django. This problem has appeared in past, too, and seemed to randomly disappear. I see a debug view when I make syntax errors, but if the code executes fine, I get a blank page. I tried resetting Apa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615398", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I bind a custom UserControl to the current item inside a ItemTemplate? I have a ListBox that is data bound to an ObservableCollection. Inside the DataTemplate, I have this custom user control that I want to bind to the current item. How do I do that? What should the binding path be? Model: private Observable...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615415", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: mysqli query generates 500 internal server error $mysql_connection = new mysqli(blah blah blah.. $query = "SELECT * FROM posts ORDER BY id DESC"; $result = $mysql_connection->query($query); That little last instruction here generates a 500 Internal Server Error in my site, I didn't posted the whole code because I d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615421", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: AVAssetReader fails after the app is put in the background, why? I have playback working with AVAssetReader and iPod library and when I put the the app in the background it will continue reading in audio to the playback buffer but when it gets to the end of a song and starts reading on the next song it fails when st...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615422", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Add same subview multiple times to view I don't know if this is possible, but what I would like to do is add a subview several times to the view. I have tried something like this: [self.view addSubview: newView]; newView.center = CGPointMake(160, 100); [self.view addSubview: newView]; newView.center = CGPointMake(16...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615425", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: JCrop doesn't save selection when image size is changed I am using jcrop for the first time. ANd I have a problem with image size and cropping. When user upload image 1366x768 or larger I preview it on my page. I also have crop selection preview and it works fine. When I submit positions it crops fine (it's when I u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7615427", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }