text
stringlengths
8
267k
meta
dict
Q: Connecting to .NET COM app from .NET COM client I'm having trouble with something that should be brain-dead simple. I am writing a COM client in .NET that will eventually talk to an old-style C++ COM interface when the server code is written. In the meantime, I've written an unsigned WPF .NET application and impleme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574755", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: another css 100% height question Sorry but I can't get this to work. Should be a quick answer. My html is laid out like so: <html> <header> ... </header> <body> <div class = "background"></div> <div class = "content"> ... </div> <body> </html> The I want the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Django -- Can't get static CSS files to load I'm running Django's development server (runserver) on my local machine (Mac OS X) and cannot get the CSS files to load. Here are the relevant entries in settings.py: STATIC_ROOT = '/Users/username/Projects/mysite/static/' STATIC_URL = '/static/' STATICFILES_DIRS = ( '/...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "56" }
Q: MySQL ENUM column won't match quoted values after import to new machine Recently I've imported a new database to develop on my local machine, however it doesn't work: the ENUM column only works when the variable is sent without quotation marks. Here's an example: mysql.local>select count(*) from psh_products where a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to Get the name of an executable from another project in the solution? I am trying to call one executable from another. Each executable is compiled by its own project and both projects are in the same solution. I found this question, but that only refers to the path of the executable. I'm looking for a way to pr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Expression Engine Channels, Categories and Entries - All with differeny custom fields I have a site with these sections in the top nav: * *About Us *News *Staff *Become a Member Within each top nav item, is X amount of sub sections. eg: About Us * *Who We Are *Industry Stats *Annual Report Then, withi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is there an online tool to test all HTTP methods against some public server? Is there an online tool that can help constructing proper HTTP request to to test all HTTP/WEBDAV methods against some public server? By all methods I mean at least the following: * *GET *PUT *DELETE *MERGE *OPTIONS *PROPFIND ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574773", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Faster way to fill a 160x43 byte array from colors of Bitmap class What's the faster way to effectively fill an array of bytes where each byte represents a pixel (black or white: < 125 = black, > 125 = white) from a Bitmap class? I used this for colored images: Better/faster way to fill a big array in C# However now...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: TinyMce is not working in Chrome I have TinyMce to compose emails in my asp.net page, it is working fine but in Google Chrome no tools (font size, font name, text color etc for example) are working. They work fine in all other broswers. Kindly guide and help me. Thanks A: Here is a link to a HOWTO. It describes wel...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574777", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: E-mail sent with commons-mail is *sometimes* not received. How can I troubleshoot? When I send out an e-mail and it isn't received, how can I figure out what the cause of the problem is? My app sends e-mails through SMTP using the Apache commons-mail library. For testing purposes, I am using the gmail SMTP server. (...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574778", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Programmatically Left Justify a number in an Excel document How do I left justify my columns in Excel programmatically in VB? I have a VB program that is writing an excel file based off of certain information. I have tried using: oSheet.Columns.HorizontalAlignment.Left() This works against columns with text. I ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: java TCP socket message breaks i have a java client-server app in java, both using the same connection class that contains both send/receive messages. for some reason, some of the messages i send are received in a malformed order: here's the code //set up _in = new BufferedReader(new InputStreamReader(this._socket.g...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Design alternatives to thread implementation of coroutines for converting a push method into a pull method I have a collection class that holds lots of different types of data in a compressed format. In order to enumerate over all of the values in the collection is has an Execute(Query, IDataWriter) method. You pass...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tweetstream not connecting? I'm using a recent version of Tweetstream and can't seem to connect to the twitter streaming API. I'm authenticating through oAuth like so: require "rubygems" require "tweetstream" def index TweetStream.configure do |config| config.consumer_key = 'aaa' config.consumer_secret =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574796", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Calling an action in certain time in android I want to call specific action at certain time. I don't want the delay method. let's say for example the phone will change ringer mode at 10:30 pm. Thanks in advance and sorry for my English :) A: You'll have to use AlarmManager Service to do this, and a BroadcastReceive...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574806", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to use logging inside Gevent? I have a code like: log = logging.getLogger(__file__) def func(): print "1" log.debug("Printed") g = gevent.spawn(func) g.join() but when I ran it my log doesn't show in shell. Any ideas? Is there a better way to do logging inside gevent based coroutines? A: It is unrela...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: how to obtain a lock in two places but release on one place? i'm newbie in c#. I need to obtain lock in 2 methods, but release in one method. Will that work? public void obtainLock() { Monitor.Enter(lockObj); } public void obtainReleaseLock() { lock (lockObj) { doStuff } } Especially can I call...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Reference for MongoDB runCommand with optional parameters I need to know where I can find the reference resource for MongoDB runCommand. i.e. what kind of commands are available and what kind of optional parameters each command can use. For example, db.runCommand({addshard: "10.0.4.85:27020", allowLocal : 1, maxSize...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: jQuery Validate treats errors as separate instances instead of combining them I am able to relocate my jquery validate errors to specific container set above my form but the elements show up as separate errors (multiple). Ideally, I want to have one large error box (which on my other pages I already call with class ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574820", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Rails 3 create default nested objects I have a form where the user signs up and creates an Account, an User and a Website. def new @account = Account.new @account.users.build @account.websites.build ... end def create @account = Account.new(params[:account]) ... Everything works fine. Now, I want to cr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574823", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Removing compiler's warning from a method call, advise needed As part of my Utils class, i have both public static boolean isStringEmptyOrNull(String... s) { When testing for a null condition assertTrue(Utils.isStringEmptyOrNull(null)); I get "The argument of type null should explicitly be cast to String[] for the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574827", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: how to sort values with XSLT? I have an XML similar to this: <Test> <grapes> <a>TypeA</a> <b>value1</b> </grapes> <oranges> <a>TypeB</a> <b>value2</b> </oranges> <apples> <a>TypeA</a> <b>value3</b> </apples> </Test> where the values are unique but the Type, might be the same...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574829", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Query : problem in where section I need to write a query like this : SELECT S , D1 , D2 , (D1+D2) as D_Sum , ( (D1+D2) / (X-( SELECT SUM(T1+T2) FROM TBL1 WHERE FCode=81 AND DCode=1 AND S<S )) AS SSS FROM TBL1 WHERE Salon=1 AND ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574830", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: Best way to trigger OnClientCommand from server-side? I've worked myself into a bit of a problem -- I'm not sure there's a graceful way out without restructuring my code. I have a server-side timer which is running and it needs to simulate clicking a tab of a RadTabStrip. Client-Side I have the following method: fun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: open a terminal from python I'm developing a program that has a button. When pressed, I want to open a terminal that runs: sudo apt-get update I'm using: os.system("gnome-terminal -e 'sudo apt-get update'") This works fine. The only problem is that when the update is finished, the terminal closes. What can I do ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574841", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Why doesn't this JQuery stylesheet switcher store a cookie? I have a downloaded stylesheet switcher that doesn't seem to work properly. The switcher works in as much as the new stylesheet is loaded, however the cookie that it is meant to store and read never actually occurs (I assume as much, as when I refresh the p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: facebook, google, twitter, linked in login buttons I'm trying to setup single sign on (SSO) logins for each of these services. I have already setup facebook with a simple piece of code they provide like so: <fb:login-button>Facebook</fb:login-button> <div id="fb-root"></div> <script src="http://connect.facebook.net...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: ActiveRecord::Migration - Referencing a table in another schema I'm using Ruby and PostgreSQL and have created 3 distinct DB schemas: billing (for billing related data), customer (for customer related data) and edocs (for electronic documents related data). I'm not using Rails so I have a stand-alone migration code ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574851", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Recursively load all children/parent records in hierarchy -- Rails: 2.3.8, Ruby: 1.9.2v180, MySQL: 5.1.56 -- I have a recursive model called ExternalCategory which belongs_to :parent, :class_name => "ExternalCategory", :foreign_key => "parent_id" and has_many :children, :class_name => "ExternalCategory", :forei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574854", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Unusual result when merging two transparent images in php Im wondering if I'm doing something wrong, or if this is as good a result as im going to get. Both PNGs on the left are 95x111. The image of the robot has a 5px or so padding of transparent pixels around it, but it seems to be causing problems when they merge...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574856", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Group rows in an associative array of associative arrays by column value and preserve the original first level keys I have an array of subarrays in the following format: [ 'a' => ['id' => 20, 'name' => 'chimpanzee'], 'b' => ['id' => 40, 'name' => 'meeting'], 'c' => ['id' => 20, 'name' => 'dynasty'], ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574857", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "68" }
Q: how to change the text color using using jquery function DoInsert(ind) { var sourceIndex = $("#lstAvailableCode").val(); var targetIndex = $("#lstCodelist").val(); var success = 0; var rightSelectedIndex = $("#lstCodelist").get(0).selectedIndex; var functi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574860", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Scala XML, Get nodes where parent has attribute value match Any way to simplify the following? or reduce the boilerplate code with another function? scala> val ns = <foo><bar id="1"><tag>one</tag><tag>uno</tag></bar><bar id="2"><tag>two</tag><tag>dos</tag></bar></foo> ns: scala.xml.Elem = <foo><bar id="1"><tag>one<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574862", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: what criteria should I use to evaluate an ORM? There are plenty of questions on here that ask 'what ORM should I use with x and y' but I didn't see any that specifically asked how to pick one. Related: Why should you use an ORM?, What ORM should I use for a ASP.Net MVC project?, Are there good reasons not to use an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574863", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How can I access private class members of container class within the anonymouse inner class? How can I access all the member field of the class which contains the function initTimer() from within the AbstractActionClass? Thanks private void initTimer() { Action updateClockAction = new AbstractAction() { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574865", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to set jQuery.data() using object I'm currently trying to use the .data() method to store data using a variable. However, for some reason it isn't working. Here is my proof of concept code: var option = 'x'; $(this).data({ 'x' : 0 }); alert($(this).data(option)); $(this).data({ option : 20 }); alert($(this).data...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574870", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE 7/8 absolute positioned elements cant go down past a certain point JS/Jquery The script is pretty simple var myMenu = null; var myItems = null; var myTopBar = null; var lastPos = 0; function menuFloat() { var scrollTop = $(window).scrollTop(); if (lastPos != scrollTop) { alert(scrollTop); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574877", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Error pushing to proper Heroku Web App Somewhere along the way here I copied a node app and it's still associated with an old git repository/heroku app. When I try to create a new heroku app and push to heroku i get the following error: ! No such app as young-journey-xxxx fatal: The remote end hung up unexpectedly...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574882", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Rotate Image from Code I want to rotate Image Control using LayoutTransform but the problem i am facing is that i can do this in XMAL but not code behind. i am new to WPF here is XMAL ` <Image Grid.Column="1" Grid.Row="4" Height="155" HorizontalAlignment="Left" Margin="103,0,0,0" Name="image1" Stretch="Fill" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574884", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE9 iframe scrolling I have an interesting "issue" that only happens in IE9. There are some forms on our web site that use iframes (the forms live on other sites we have no control over - and example would be Salesforce.com). The scrolling attribute is set to "no". This shuts off the scrollbars and prevents scrollin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574886", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How is google dart related to google closure? I have just started using Google Closure and I have also heard about Google Dart which seems very similar. How are the two related? A: Google closure, is a set of javascript libraries and a javascript parser for compiling and compacting your javascript. There are googl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574900", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: The current request for action 'Index' on controller type 'DinnersController' is ambiguous between the following action methods I am getting this error after trying to implement paging support. I am on this step of the html tutorial: http://nerddinnerbook.s3.amazonaws.com/Part8.htm A: The error you are getting tell...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574902", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Prevent UIScrollView from cancelling touchesMoved: of subview? I have a UIScrollView. On top of it I allow the user to add a DraggableView (a subclass of UIImageView) by applying a long press gesture to the UIScrollView. The DraggableView overrides touchesMoved: and allows the user to drag the view around. This work...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574904", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Showing copied data in Infragistics wingrid I'm using Infragistics wingrid in my C# winforms app. I need to be able to copy column values from an excel sheet and paste it in this datagrid.The grid should show these new values in the cells.How do I achieve this?What code changes would be required? I tried it and only...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574915", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: adding html5 attribute to my website As some of you may have seen arcade fire released a special music video along with google that showcased the power of HTML5, if not its here: http://thewildernessdowntown.com/ My question is I'm redesigning my home page and would really like to add those birds but when i went th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574918", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to complete login with phonegap and devise (Rails) I have a rails app that has devise gem installed (with auth_token setup). I'm not sure how to make my jquery mobile app ask for the token and store it (in a secure way). Thanks! A: i have a similar set up - rails 3 backend with devise as the authentication. i'm...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574920", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Selectbox with Timezones in Rails 3.1 I want to make selectbox like this with simple_form (but it doesn't matter I think). I found that in Rails 2.1 was object TimeZone.us_zones but now it doesn't work neither Time.zone.all or smth. The line example for simple_form: = f.time_zone :time_zone, TimeZone.us_zones And...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574922", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Access IFrame's parent URL Possible Duplicate: access parent url from iframe I've been looking around but can't find a set answer or solution for this. I have 2 websites, www2.domain.net and www3.domain.net both these websites have an iFrame on them that links to www.domain.co.uk/iframe.html What I want to do is ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574926", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: In Notepad++, removing any text not matching a certain string on each line? I have something like: oiuerer jeff oteaweawe gnwaeeeee jeff nbbaweee bbbadx jeff nvxxawee I would like to remove the text which is both before and after the word "jeff" so that each line is only "jeff". How can I do this with regex? Tha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574927", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Direction Cosine Matrix implementation I'm trying to implement the Direction Cosine Matrix on Android. I've read some theory about DCM and I finally coded a draft public void imuUpdate(float dT, float gyro[], float accel[]) { int i; Tuple3d Kacc = new Tuple3d(); // Acc can estimate global K...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574930", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Symbolic link to libraries for compiling java code I have a folder that has the spring libraries. I have a separate folder that contains the java code that contains the code for a simple "HelloSpring" application. In order to compile my HelloSpring application, I need to refer to the Spring libraries present in the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574932", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: OCR scan of letters. Failed in loading training letters Using the javaocr framework from sourceforge. Trying to scan letters from a image, and training the system to recognize them. Getting this exception when loading trainer: java.io.IOException: Expected to decode 26 characters but actually decoded 33 characters i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574935", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Strategies in Scala Is there an equivalent to Haskell Control.Parallel.Strategies or a way to achieve the same thing? That allow an existing code to be evaluated in a different way. By separating algorithm from strategy and algorithm from evaluation. A: Yes, but only in Scalaz and not in the standard library.
{ "language": "en", "url": "https://stackoverflow.com/questions/7574937", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: With the HTML5 Canvas ... how do maintain proportion? // set canvas to fullscreen $("canvas").attr('height',$(document).height()); $("canvas").attr('width', $(document).width()); //load bkgd img to canvas function dwg(){ $("canvas").drawImage({ source: "img/bkgd.jpg", x: 0, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574941", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: document.write not working in html I am try to write inside html document. this is my javascript code: <script type="text/javascript">document.write("Hello World!")</script> I am working with chrome and get the following error: Uncaught TypeError: Object # has no method 'write' I tried alert method and it worked....
{ "language": "en", "url": "https://stackoverflow.com/questions/7574943", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remove Button from Flex Mobile app actionbar with AS3? How exactly would i remove a Button from the actionBar "actionContent" in a flex mobile app? I tried these: this.stage.removeChild(menu_btn); this.removeChild(menu_btn); stage.removeChild(menu_btn); this.stage.removeElement(menu_btn); this.removeElement(m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574950", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to start scalala console? I am starting using scala and I am interested in using the scalala package for doing linear algebra computations. I successfully installed it through sbt but I can't (or better don't know how) start the scalala console. Can anyone point out the steps I have to take to make that possible...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574952", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: MVC3 Editor Template for List Not Populating Problem: When I load the EditorTemplate for UserModel the UserRoles list does not generate a list of UserRole editors. My models: public class UserSearchModel { [ScaffoldColumn(false)] public Guid UserId { get; set; } [DisplayName("User Name")] public ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574953", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Flash builder 4.5: Disable shortcut keys in tree component When we have the focus on a item in TREE component in flash builder app, and start to press keys in our keyboard, the focus changes to the item that begins with the letter that we just push. For example, we have the next data in our Tree component "fruits": ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574955", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Splash Page For Users Who Did Not Authorize App Yet We have a facebook game that uses the Facebook C# SDK 5.2.1.0. We would like a splash page for users who have not yet authorized. My code is set up basically like this: https://gist.github.com/879932. I'm guessing I need a way to know if the user is authorized BEFO...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574960", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to improve PHP code against SQL injection and other threats How can I modify this code to improve protection against sql injection and other threats? It is a MS SQL database. <?php include_once("db.php"); ?> <?php $id = $_REQUEST['id']; settype($id, 'string'); $tsql = "SELECT Table1.Fund FROM Table1 WHERE Tabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574961", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: In Java, how can I construct a File from a resource? File takes String and URI in its constructors. getClass().getResource(...) returns URL and getResourceAsStream(...) returns InputStream. Is there a way to construct a File from a resource? A: You can't. At least not in the standard case where the resource is in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574965", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Insert Page title into hidden form value with javascript/jquery? I've got a form on every page of my site via a template but I'd like to have the page title included into the emails sent via the forms so we know exactly which page the form was submitted from. Is there a simple way to do this with jquery? Thanks for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574966", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Locating Groovy under STS on Ubuntu I have installed Springsource Tool Suite v2.7.2 with Groovy and Grails support on Ubuntu. This works well. I want to use the Groovy installed with STS from the command line on Ubuntu. When I type which groovy I get nothing. How can I find where groovy is installed so I can add t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574967", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Indent code in the same way as = in ex mode in Vim How can I indent code in command mode in Vim in the same way as = in visual mode? A: Try the normal command == with a range: {range}normal! == It will apply == to each line in the passed range. You can also try things with the gv= command, to reuse last selection;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574969", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Security exception when passing .net 3.5 to 4.0 We have some issues while migrating our Asp.Net Web Application .Net 3.5 to .Net 4.0. It seemed that we had a Caspol Security Exception, so we added this to our web.config : <runtime> <NetFx40_LegacySecurityPolicy enabled="true"/> </runtime> and nothing changed. It ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574974", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to store an object in the viewstate? I am using EWS to develop my email client. I found that if I store ItemId in viewstate it will cause an exception says: Type 'Microsoft.Exchange.WebServices.Data.ItemId' in Assembly 'Microsoft.Exchange.WebServices, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574976", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: jquery mouse scroll change div position How can I use the mouse scroll event to control a div's position? I have 12 lis where only 5 of them are visible at any time. I want to be able to show different li elements when the scroll wheel scrolls. If possible, I'd like this in a circular layout. I don't want scroll my ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574982", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Download a PNG file from HTTP endpoint with query string Sorry for the poor title. I have a URL like this: http://testserver:8080/dummy/server?@_1231Fv_C When I access this URL using browser, this returns me a PNG image. But, when I try to fetch it using Jersey client API, I can't download it. (I tried java.nio a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574983", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Facebook App Uncaught OAuthException: An active access token must be used to query information about the current user. thrown Hello I am trying to post to the wall of a user but the following error occurs: Uncaught OAuthException: An active access token must be used to query information about the current user. thro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7574992", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Query output, is an input for another query does - not work I want to use the return of one query as the input for another. When I run them individually they work fine, but when I combine them in one, it does not work. The individual queries are:- select ja.id from job_applications ja join users u on u.id = ja.us...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575004", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is -webkit-focus-ring-color a CSS variable? Browsing through default Webkit CSS here I noticed the following piece of code: :focus { outline: auto 5px -webkit-focus-ring-color } It seems -webkit-focus-ring-color is a variable of some sort. I thought CSS could not have variables. What is going on here? A: That'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575006", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can I do a half m34 transformation I want to do a full rotation, but with an image swap half way through and I can't seem to be able to do that. The full rotation can be seen below. How can I make a half of this but with the nice z axis stuff? This is in a animateWithDuration block (iOS4) // Create perspective trans...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575009", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# chart show all labels Working on a C# web app, my issue is that only some of the values are appearing on the report (This is the X Axis I'm talking about, it only shows every other value). Its simply showing every other one. How can I show all of them? Thanks My Code: <asp:Chart ID="Chart6" runat="server" Dat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575015", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Problem with upgrading rubygems via rvm Trying to updgrade RubyGems to version 1.8.10 via RVM and this error: $ rvm rubygems latest Removing old Rubygems files... Installing rubygems-1.8.10 for ruby-1.9.2-p180 ... ERROR: Error running 'GEM_PATH="/Users/foo/.rvm/gems/ruby-1.9.2-p180:/Users/foo/.rvm/gems/ruby-1.9.2-p1...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575023", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Grails conditional html I was wondering how I can make this code in my view conditional - output it if there is a comment, but if there isn't a comment, don't output the empty <p class="comment"></p> <p class="comment"> ${progressItem.comment} </p> A: <g:if test="${(progressItem?.comment?.size() > 0)}"> <p cla...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575025", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I get the desired behavior in my TCP server? > import Network.Socket > import Control.Monad > import Network > import System.Environment (getArgs) > import System.IO > import Control.Concurrent (forkIO) > main :: IO () > main = withSocketsDo $ do > putStrLn ("up top\n") > [portStr] <- getArgs > sock...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575026", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Connection attempt failed with "EAI_NODATA - No address associated with nodename" in filezilla I get the following error when I try to use Filezilla to connect to newly created domain: Connection attempt failed with "EAI_NODATA - No address associated with nodename" I purchased domain name from "Bigrock.com" and p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575027", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: How to keep accessory view set when leaving the view then coming back later I have not attempeted this before so would like people opinion on how best to handle tableviewcell tick accessory, I have set this up so that when the user selects their uitableview cell they are directed back to the main view and the value ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575030", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Entity Framework single method for Save/Update The problem is I'm trying to find a single method to save an entity, be it a new entity or an already loaded entity. Most all code samples separate Add and Save methods which goes against so many other current designs of having a single Save() method. Let me state I've ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575031", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Writing verification steps for PL/SQL Sequence I am writing the launch plan for one of my code. In which, for each step i have to write a verification step which will tell if the deployment/change has been made properly. Like if there is an alter table command to add a new column then as a verification, I would be u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575035", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Adding custom META tag to ActionMailer email in Rails 2.3.8? I'm sending an email using an ActionMailer class in Rails 2.3.8. I need to add a META tag to the HEAD of the email. Specifically, I want to add this (ultimately for handling special CSS3 on mobile devices): <meta name="viewport" content="width=device-wid...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575040", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Change #hash tag to link on page load How to change # tag + Character to link using javascript This is going #right on the way with This is going <a href="http://twitter.com/#!/search/right">right</a> on the way even this is also acceptable This is going <a href="http://twitter.com/#!/search/right">#right</a> on t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575041", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery Mobile: Loading Message not appearing I have made a web app using jQuery Mobile, jQuery and html. It is basically an rss reader for its site. $(document).ready(function() { $('[data-role=button]').click(function() { var $id = $(this).attr('id'); switch($id) { case 'news-button': v...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575043", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: What's the correct procedure for managing OSGi bundle dependencies? I'm about to start working on an application that I'd like to run in an OSGi container, like Virgo. Virgo's core platform supplies many of the dependencies I'm interested in, like the Spring Framework, but I'd also like to use Spring Integration. Sp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575048", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: with :hover or with hover event for buttons? I'm usually using an <a> to make block type buttons for example: a { color:#fff; display:block; background-color:#ff0000; } a:hover { background-color:#c80000; } Then I put href="javascript:void(0);" on the <a> tag. I'm doing this because :hover on a d...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575054", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: To GC or Not To GC I've recently seen two really nice and educating languages talks: This first one by Herb Sutter, presents all the nice and cool features of C++0x, why C++'s future seems brighter than ever, and how M$ is said to be a good guy in this game. The talk revolves around efficiency and how minimizing hea...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575055", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "70" }
Q: How to do another action, but still show the same url in browser in cakephp I want to call another action in cakephp . I want to run all the code in the action and render the view of that action. I know this can be done using $this->requestAction(), but the problem here is that it is not setting my title for the pag...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575056", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Exception message: no such file to load in rails application I have included test_helper.rb under test in my rails application. I have even included require 'test_helper' in my test.rb files under test->unit. When I run all the test in RubyMine for the application, I get the following error: I have the latest versi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575057", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delegates as Properties: Bad Idea? Consider the following control (snipped for brevity): public partial class ConfigurationManagerControl : UserControl { public Func<string, bool> CanEdit { get; set;} public Func<string, bool> CanDelete { get; set; } public Dictionary<string, string> Settings { ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575059", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Prevent temporary from extending its lifetime? This may be impossible, but I was wondering if it was possible to keep a temporary from ever lasting past its original expression. I have a chain of objects which point to parent objects, and a member function which will create a child object, a simplified example is he...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575070", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: why i can't pass parameters to flash using 'file://' protocol? system info flash player version: 10_1_102_65 OS: linux debian, 6.0.2 web browser: Mozilla Iceweasel 3.5.16 problem description I have a flash file that uses parameters to show output on the screen. unfortunately i don't have sources and can't modify/rev...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575071", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why does 1 / 10 equal zero unless I use variables? Possible Duplicate: Why can't I return a double from two ints being divided This statement in C with gcc: float result = 1 / 10; Produces the result 0. But if I define variables a and b with values 1 and 10 respectively and then do: float result = a / b; I get ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575074", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SSRS OracleClient Error in VS2008 I've searched around for an answer to this, but have thus far been unsuccessful finding something that works for me. I am attempting to connect to an Oracle database in an SSRS report within VS2008, but always get the following error: System.Data.OracleClient requires Oracle client...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575075", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Is It possible to run stylecop on a single file in VS2010? I've tried looking for command line options etc. I'm trying to lower the time I have to wait to see if a build fails due to stylecop. This option does not appear in any context menus or the tools menu: Is it possible to run StyleCop on just 1 file in a proje...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575080", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Why are erlang lib changes not being incorporated into my project? I'm using eclipse 3.6.2 with erlang 5.8.1.1 on a fairly large project that we're not ready to move to a more modern version of the language, so I'm stuck with a bug in eprof: string_bp_mfa([{Mfa, {Count, Time}}|Mfas], Tus, {MfaW, CountW, PercW, TimeW...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575082", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Creating meta language with Java guys! I need to create some sort of meta language which I could embed in XML and then parse with Java. For example: <code> [if value1>value2 then "Hello, Bob!" else "Hello, Jack"] </code> or <code> [if value1+2>value2 return true] </code> I need to implement conditional ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575085", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Filling a date between a data range in array? I have to arrays of dates like this: [6/13/2011, 7/15/2011, 7/18/2011, 8/13/2011] what i want to do is to fill the date between the date array so if theres days missing between any of the date like 7/15/2011, 7/18/2011 i want to add 7/16/2011, 7/17/2011 between them, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575086", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: NSTimer target and userInfo parameter questions I've read around SO as well as looked at the Apple documentation for the NSTimer class, and it seems like the easiest way to create a timer is by using the following method: [NSTimer scheduledTimerWithTimeInterval:15.0 target:self ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: what is the usage of fork while invoke mongod? ./mongod –shardsvr –replSet shard1 –port 27017 –dbpath /data/shard12 –fork fork: for server process ( from mongod document). In plain english, what does fork here mean? Thank you A: It starts mongodb as a daemon. Meaning that it will not stop running when you close th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7575109", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }