text
stringlengths
8
267k
meta
dict
Q: How do you pass cucumber a text file of features to run? ie. rerun.txt I finally figured out how to output failing tests to a rerun.text cucumber -p headless --format rerun --out rerun.txt 'path of feature files' We get the output file of rerun.txt but when we try to do cucumber -p headless rerun.txt it gets a lexi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587561", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Convert a string to type "LuaFunction" I'm using the LuaInterface in .net for a large project I'm working on. Is it possible to convert a string straight into a LuaFunction (similar to how LoadString() works?). A: LuaInterface has LoadString, that is how you get lua source code parsed into a LuaFunction, you can t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: How do I read in a CLOB column that's too large to fit in a string? I have an Oracle SQL database with a CLOB column that holds a great deal of data. I'm running into the issue that a regular PHP string variable will not hold all of the data that I have in the CLOB column. It will only read in 4618 bits, but my fil...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587567", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: GWT using UiBinder vs Pure Java I'm starting a new gwt project, and I've decided to use UiBinder instead of pure java. I'm starting to regret this decision. In fact, I'm starting to think that maybe I should switch to pure java. But before that, I thought I post a question and get your feedback. In my limited exp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587568", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Store forum subcategories in the same table or in a separate table I'd like to hear opinions on if it is better to keep forum categories and subcategories in the same table or in two separate tables... Let's say you have a table ForumCategories. By adding a colum ParentId referencing the PK Id in the same table you ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587571", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: jQuery error in using css function after get function It seems the syntax below is wrong because I am getting an error "css is not a function" in Firefox. What's the correct syntax? I am trying to add a css property to the first object in the set. $("div[id$='rvReport']").get(0).css("overflow", "auto"); A: You sho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to define a parameter recursively in GAMS? I need to define a set of parameters that have a natural recursive relation. Here is a MWE where I try to define the factorial function over a set of (nine) parameters S: $title TitleOfProblem set S / s1*s9 /; alias(S, S1, S2); set delta1(S1,S2); delta1(S1,S2) = yes$...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587575", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Help Me Understand What is Going On Here? Class/Objects I'm a beginner and I wrote this code: #import <Foundation/Foundation.h> @interface XYPoint : NSObject { int pointX; int pointY; } - (void) print; - (void) setX: (int) x; - (void) setY: (int) y; @end @implementation XYPoint -(void) print { NSLog(@...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587582", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What's the ActiveRelation (arel) equivalent to :from I have this named_scope in one of my models: named_scope :latest_100, :from => '(select * from videos order by videos.created_at desc limit 0, 100) as videos' Its purpose is to create a pool of the last 100 videos (returning that results as 'videos' s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Using an "AS" clause in a sub-query than contains a "WHERE" clause I want to store result in the variable generated by using "AS" clause in the MS Access, and use this result in the sub-query with WHERE clause. I tried this: SELECT en_date AS date_en, (select sum(amount) from main where CrDb='Cr' and en...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Read binary data from std::cin What is the easiest way to read binary (non-formated) data from std::cin into either a string or a stringstream? A: For windows, you can use the _setmode function in conjunction with cin.read(), as already mentioned. _setmode(_fileno(stdin), _O_BINARY); cin.read(...); See solution s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "18" }
Q: jQuery toggle toggles itself back to its original state I have two bits of code, nearly the same <div class="favButtonHolder" alt="{% url inturl int.id %}"> {% if int in user.get_profile.favorites.all %} <div class="favorite favButton" style="display:none;">Favorite</div> <div class=...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Update Lookup field using SOAP I'm using the PHP SOAP CRUD classes provided in the CRM 2011 Developer Training Labs. The routines are working fine for standard read, create & updates. However, I can't work out how to define the GUID attribute, e.g. If I want to update the leadsourceid within a contact. Definition be...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587605", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Microsoft Office Communicator SDK vs Lync SDK Since Lync is the replacement to Microsoft Office Communicator, does that mean that if I write an app that integrates Microsoft Office Communicator 2007 R2, and then later I upgrade to Lync 2010, will I have to rewrite the integration portions of my app? A: Presumably y...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587607", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why do simple osascript commands fail in OS X Lion? I have two very simple OSA scripts to allow logon and logoff of computers in a lab environment. These scripts work flawlessly in Snow Leopard when pushed via ARD, interactively within an ssh session, but they fail on machines running Lion. Stripped down to its esse...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587610", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Get the correct non-virtual MAC address in java I am programming a virtual router. And my first task is to build an Ethernet Frame. I am currently trying to get the MAC source address. I have code that gets all the MAC addresses being used on my machine but I have a virtualbox host network so the code is grabbing th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587612", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Tilt Effect for HubTile I added the TiltEffect.IsTiltEnabled property to my HubTile: <toolkit:HubTile toolkit:TiltEffect.IsTiltEnabled="True" Title="title" Message="This is message" x:Name="name" DisplayNotification="False" Source="pB.png" Tap="tap" /> I also added the HubTile type to the TiltableItems collection i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587613", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Is "Not Found" necessary in "HTTP/1.1 404 Not Found" I've found that header('HTTP/1.1 404'); works just as well as header('HTTP/1.1 404 Not Found'); in PHP. So I looked in the specification, but couldn't find anything about it; Is the HTTP status header description optional? A: The description can be any human-re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Bonjour/ZeroConf Implementation for Android(HoneyComb) I am trying to implement bonjour/zero conf on my android app for Android tablet using Honeycomb. I am using jmDns library for searching the all the available devices. I need a list of android devices connected to wifi. Basically, i am adding them in a list so t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Using member functions within Sench Touch List itemTpl The documentation about List mention that itemTpl follows the XTemplate syntax. I would like to use member functions in my itemTpl If I initialize itemTpl with an XTemplate and that the member function has no argument it works: items: { x...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Truncating memory mapped file I would like to use a read/write memory mapped file to manage some indexes (unsigned int) I'm creating. I've followed the code examples found here and here I don't know the size of the file initially, so I plan on making it about 4K to start with and grow accordingly. However, I'm unsur...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587625", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Row Header For Cross Tab Report In Crystal Reports I have designed one crystal cross tab report.it is displaying like this col1 col2 col3 row1 row11 val1 val2 val3 row2 row21 val1 val2 val3 but i want heading for the row also i.e. i want report like this name1 name2 col1 col2 col3 row1 row11 val1 val...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587626", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Android: start listener after timing i've an activity with a ToggleButton that must start (if checked on) or stop (if checked off) a listener. The problem is that i want to start the listener after a specific time (10 sec for example) but keeping the ToggleButton active and if the user click on it before the timing ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Add field to array without index defining - PHP Thanks guys. I was wrong about my way. Please don't post anymore. I had some trouble with my array. I generate my array in this way: private function _getMenuBar(){ $data = array(); $query = $this->db->query("SELECT * FROM df_menubar_table WHERE visible = 1 AND...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587629", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Rails 3 migration Current migration: t.string "email", :default => "", :null => false add_index :users, :email, :unique => true I want to create a new migration to remove the :null => false requirement and also remove the default => "" for email. Also, I would like to change the index to remove :unique => true. W...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: ScheduledDisposable What is a good case/example for using the ScheduledDisposable in Reactive Rx I like the using the CompositeDisposable and SerialDisposable, but would you need the ScheduledDisposable. A: The logic of using the Rx disposables is that code that performs some sort of set up operation can return an ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587633", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: EF using LINQ trying Contains In passing in a Array Is there a better way to write this CONTAINS from an ARRAY? I am passing a string/array into my LINQ statement. In SQL the code that is working is SELECT * FROM dbo.option1 WHERE option1Code IN ('9841','V237','SV02','2057') In EF using LINQ I am trying ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587636", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Computers "Member Of" VBS Script I have the following VBS script and it has been very helpfull when adding multiple new computer accounts to a school that I work for. I would like to know if anyone can modify the script so that it can also add a group to the "Members Of" tab of the newly created computer accounts. T...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587638", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Javascript eval for boolean expression evaluation I need to evaluate a boolean expression built by the user. I see two ways to do it: 1) build a string and pass it off to eval 2) build an abstract syntax tree and evaluate it myself I have implemented it with eval since it's the simplest solution. I'm not convinced t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587639", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Mac App Store Sample Receipt... Where Is It? I'm adding some features to a pre-existing mac app that uses receipt verification. The way the app was coded, it relied on Apple's sample receipt to be on the desktop (for debugging). The URL that the receipt used to be at now redirects to a different page. Where can I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Ruby can't find the method capture2e from open3 module I am trying to use the script blogger.rb and I just can't get it work. It keeps giving me the error : blogger.rb:294:in text2html': undefined methodcapture2' for Open3:Module (NoMethodError) The script does a require Open3 in the beginning. I don't unders...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587641", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Detecting Single OR Double Tap I'm trying to add 2 actions inside an IBAction, one for 1 tap and a different one for a double tap, and I came up with this code: .h UITouch * touch; .m - (IBAction) button { BOOL tappedTwice = NO; if ([touch tapCount] == 2) { tappedTwice = YES; // Action ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587644", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I move an element up/down one position in tree I cannot seem to find what should be a basic function of JavaScript. I want to move an element up one position or down one position by a button click. jQuery and other proprietary libraries are not an option. function moveDown() { if (document.getElementById(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587646", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Symfony2 FOSUserBundle Registration Role Exception i am quite new in Symfony2, i`ve tried to use FOSUserBundle, most of it works fine, but when i try to register i do always get same result: Warning: Invalid argument supplied for foreach() in /var/www/own/envelope/vendor/bundles/FOS/UserBundle/Model/User.php line 37...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587650", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Passing user credentials to a Webservice We have a website that calls a remote web service. This web service is stateless and needs the credentials every time to get the data back. How do we pass the credentials back and forth? for example a call to string GetAddress( userid,password) Is it ok to store the creden...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: XCode 4 -> Quick way to jump (or switch) to super class If we press ctrl+command+up arrow we switch between file code and header code. (.m to .h) If we press ctrl+command+j or command + mouse click we jump to definition of variable. But it not work for super. So, there are a fast way to do it? A: I'm a little late...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: After upgrading Ruby1.9.2 from p180 to p290, libruby dynamic library path isn't updated I used RVM to upgrade Ruby 1.9.2 from patch level p180 to p290: rvm upgrade 1.9.2-p180 1.9.2-p290 Then, I used these commands to update my Rails gem and other gems gem install rails 3.0.5 gem update Everything seems to be fine;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587655", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Building Intrusion Detection System but from where to begin I have searched a lot on Intrusion Detection system but now I am confused as now from where should I start. I dont know whether any open source reusable codes exists but I want to make Intrusion Detection and Prevention System with Neural Network. From th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587657", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Visual Studio 11 italic parameters I'm currently trying out the new Visual Studio 11 which can be obtained here. And I must say I do like it :) I have only some small nuisances with it... VS11 now supports some new coloring options for keywords/typedefs/etc and also for parameters you get passed in a function. Some ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Filter null or empty input using LOAD DATA INFILE in MySQL I have some very large files (millions of records) that I need to load into a database. They are of the form: word1\tblahblahblah word2\tblahblah word3\tblahblah word4 word5\tblahblah ... My problem, is that I want to ignore the lines that have no second re...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587660", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: AS3 Returning a variable from an event listener function I'm trying to return XML from an event complete back to the main function, but can't figure out how to do it. Here's the functions I'm calling: Main File: public var mySendAndLoad:SendAndLoad = new SendAndLoad(); mySendAndLoad.sendData(url,variables) The my...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to access the properties of an instance of a derived class which is passed as a parameter in the form of the base class In C# I have a base class and a derived class. I have a function which has the base class as an input parameter public void SomeFunction(BaseClass InstanceOfDerivedClass) Is there a way I can ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587667", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Ringtone Preference not saving choice I have a ringtone preference in my app but when I select the tone I want, it does not get stored in the preference value. I can click the preference again and it will not show what I just selected. here is the XML <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: AppEngine mapper API import error EDIT: I just gave it a go on appengine itself and it seems like it actually works there, so the problem is just with the dev server. I would still be interested in understanding why this is happening... I am using the AppEngine mapper API (mapreduce) and am having a problem with imp...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use Parallel Thread to sum up 1 billion consecutive numbers, return one single number? Faced this question in my interview. What I answerred is that: * *divide 1b numbers into 10 group *Use threadpool to create one thread for each group, 10 totally *each thread sum up the result for the group passed and retrun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587676", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to use C code (libqrencode) in an iOS project I started coding about a year ago on iOS and have got to grips with writing Objective C and have managed to produce a few apps. I'm attending my first hack day next week and have come up with a quasi-treasure hunt idea that involves QR codes. I've managed to find Ob...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587681", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Getting a users IP when cURL'd? On some of my sites I have cURL pulling a script from another one of my domains - that script needs to get access to the IP of the person visiting the site, but I'm stumped at how to do that. Because I'm using cURL, the REMOTE_ADDR variable is the server's IP address. How can I collec...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587684", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Flash RegExp Problem I am use RegExp. This code give sş. I want to make ss. How can I do this. Thanks for answers. import RegExp.as; var pattern:Array = new Array(); pattern[0] = new RegExp("ş","s"); var patternReplace:Array = ["s"]; function decomposeUnicode(str:String):String { str = "şş" for (var i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587688", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Newbie: Checking to see if radio button is checked on form initialization. What does this code mean? I am a javascript novice. I'm trying to build a complex form whilst simultaneously learning JS and JQ... not an easy task. This code works, but I don't know what two lines do, so I thought I'd ask here. What this cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587690", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: find what variables changed per value of another variable Given the following data.frame: t x y --------- 1 1 3 1 1 3 1 1 2 2 1 2 2 2 2 I would like output of the form t cnt cux cuy --------------- 1 3 1 2 2 2 2 1 where cnt is the count of all rows with a particular value t, c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Best portable DB engine that supports Linq I need to know what is the best portable db, for this situation I've an application base on sql server db, we use both LINQ TO SQL, and ADO.NET, in this application. Now we need to make a portable version of it, but the fact we are using Linq To Sql, preventing us from usin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587694", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: What is the := operator called in VB.NET? In VB.NET, you can invoke methods (or add attributes) with optional parameters like so: DoSomething(FirstName:="Bob", LastName:="Smith") ... <MyAttribute(SomeParam:=400)> Public MyClass ... I was trying to find out the name of the := operator, so I looked within MSDN'...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: WordPress plugin is not work properly A WordPress plugin that has always worked OK in the past suddenly isn’t working, why do this type of error in wordpress? A: You've probably upgraded your Wordpress version and the plugin is no longer compatible. Another possibility is that you've installed a conflicting plugin ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587698", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-3" }
Q: How to render (fast) text on path? How to render (to image) text on path with any renderer working on linux? Like this: text on path. Performance is important. A: Short answer: I'm on a Debian Squeeze system with the python-cairo package installed. If I run the warped text example it provides (85 lines of Python):...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# COM Interop and Application.DoEvents() I found the following code and am trying to implement it in a COM module: public Bitmap GetThumbnail() { ThreadStart _threadstart = new ThreadStart(GenerateThumbnail); Thread _thread = new Thread(_threadstart); _thread.Set...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587704", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Split a string on capitals and digits I'm currentl using thing.replace(/([a-z])([A-Z])/g, "$1 $2"); to split a string on capitals like so. HereAreSomeWords ====== Here Are Some Words SomeMoreStuff ====== Some More Stuff I'd like to update the regex so that it will split on groups of numbers as well. So the desire...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587711", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any out of the box code to serialize a model to Key Value Pairs using ModelMetaData? I know that ModelMetadata is used to bind values from a model to fields. Is there any out of the box MVC code that will take a model and use it's ModelMetadata to generate KeyValuePairs for the values of all of it's proper...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Image does not have width at document.ready I have a function that I wish to use to resize images: http://jsfiddle.net/eUurB/ When I run it on document.ready, it has no effect; the image size returned is '0' (You may notice that it does work in the fiddle... I'm not sure what's causing this inconsistencty to be hone...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: 2nd sound plays with less integrity? I want to press the button on the headset, play a sound via the speaker phone, then record a 10 second audio clip. Here is my code: SoundPool soundPool; HashMap<Integer, Integer> soundPoolMap; soundPool = new SoundPool(4, AudioManager.STREAM_MUSIC, 100); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to prefill a form with post data in ASP.NET I need to populate a form in the main page which on being submitted opens a lightbox which contains another form . I was planning to submit the form using Post as that seems to be the only way I can define which iframe to open in the lightbox .However my question is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587717", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Content problem, any better solution? Currently i'm building an system that will let the user to create an small website inside their system. To access their website, user will type www.USERDOMAIN.mywebsite.com (just an example...) Well, USERDOMAIN will be their username on my database, and mywebsite will be the sys...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587719", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Android mutate() changes appearance of LayerDrawable I have a LayerDrawable defined in xml that I load from disk and reuse in a few parts of my application. To prevent an instance of my LayerDrawable from affecting other instances I call mutate like defined here. However calling mutate is also changing the appearanc...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587720", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Links not taking to class for some reason my links aren't conforming to my class. What's going on? .greyBoxTxt { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#7b7d7e; } a.greyBoxTxt { color:#0164a5; text-decoration:none; } <table width="100%" border="0" cellspacing="...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587722", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android - Screen Event Can anyone tell me what event is fired when you come from Screen B to Screen A after pressing "BACK" button. Screen A = 1st screen Screen B = 2nd screen what event is fired when i come back to screen A from screen B. *By Screen i mean Activity A: No "events" are fired, just normal Activity li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587725", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Like button counter is not changing I have had users click the like button on my website but the counter remains at one. I am using html5 version I have also tried the iframe version with same results My site is dvmark.com A: I was having the same problem, cleared my browser history and now it is showng the most u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587728", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Stopping renderer in springy.js library Is there anyone has used springy.js library? I would like to ask after I started a renderer by renderer.start();, how to stop it? Seems there is only start() function defined for the renderer object but there is no stop() function... A: There is a settimeout() function in th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Trouble combining rows into one column using CAST( Ok SO, here's your time to shine! No really, I'm getting my butt kicked by an MS-SQL query that I can't seem to get to work. What I am trying to do is search on a patient name; but also return patients who have a similar first or last name to the querying patient's ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587733", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Find the least element in an array, which has a pattern An array is given such that its element's value increases from 0th index through some (k-1) index. At k the value is minimum, and than it starts increasing again through the nth element. Find the minimum element. Essentially, its one sorted list appended to an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587735", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Filtering data based on data through multiple relationships So I have this in my DB: CommodityCategories ------------------- CommodityCategoryID (PK) Name Commodities ------------------- CommodityID (PK) CommodityCategoryID (FK) Name VendorsCommodities ------------------- VendorID (PK, FK) CommodityID (PK, FK) Ve...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting isEqualToString: unrecognized selector sent to instance error I'm getting this error when clicking the same UIButton twice, it crashes the second time only when the request to the server is not able to go through. -[SendHelloFax isEqualToString:]: unrecognized selector sent to instance 0x12b49150 Update: I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587738", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Problems comparing two arrays in Ruby In ruby, I am trying to compare a list of URLs with a previous list of URLs, and get only the new ones. I put the old list in a text file with one URL per line. I am reading the text file into an array like so: oldLines = File.open('logfile.txt', 'r').readlines I have an arra...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587742", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Incrementing a global static int in main Here's my code: File DataTypes.h static int count=0; File TreeOps.h #include"DataTypes.h" void printTree(Tree* ptr) File TreeOps.c #include"TreeOps.h" void printTree(pointer){ count++; // incrementing the count; printf("%d",counter); } File TreeMain.c #include"TreeOps.h" ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Text in TextView not shown in multiple lines - it gets truncated in a single line Below is an outline of my layout. I have my ScrollView inside another LinearLayout because I would be adding more views to it in runtime. Anyway, the problem is - the text in the TextView is always truncated to a single line, and is n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587746", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Where should I display or store data that is imported from a file? When I do an import of data from a file, such as csv or text file, I would like to display on a summary page (table view) about what is going to be imported to the database, and user can select or deselect what will be imported into the database. I w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587747", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I make a singleton bookmark in my org file? I have an org-mode task list that I keep in version control. I would like to press a key and turn the current position into a bookmark target that I will be able to access anywhere I have the list checked out, regardless of other changes that have been made to the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Node.js listen to MongoDB change Is there a way for Node.js to listen to a change in a particular data in a collection of MongoDB, and fire an event if a change happens? A: MongoDB apparently now supports triggers and watch, this answer is outdated. [Original] I believe you are looking for a database trigger. Unfor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587756", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to fix warning MIME type text/html How to fix Resource interpreted as Script but transferred with MIME type text/html. What can cause it and how to fix ? A: I assume you're looking at the Chrome console. The message means that you're loading a .js file, but the server is saying that the file is a HTML file. Yo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587759", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: Creating a simple rule to rewrite a friendly URL to the physical URL I cannot wrap my head around URL rewriting. What I want to do seems very simple but I am having problems getting the results I want. I would like allow users to type www.mysite.com/search/real with an optional / at the end. This would take them t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587760", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: VideoView / MediaPlayer Error (1, -18) I have an application that is built to API level 2.2. This application contains a video that starts playing as soon as it is launched. The video is played inside a VideoView and the actually video file is stored in my internal storage (files directory for my apps package). Mos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587761", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Best way to make JSON out of PHP and display it in my jQuery success case? I have this code in jQuery: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> <script type="text/javascript" > $(function() { $("input[type=submit]").click(function() { var n...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587765", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Could not force hibernate to go to the database to get new object Session Factory: hibernate.current_session_context_class=jta hibernate.cache.use_second_level_cache=false Transaction: - UserTransaction is used. getCurrentSession() of SessionFactory is used to get Session. The problem is that I could not force the ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587768", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Air App very large on install? I have just developed a new Android Air application using Adobe Flashbuilder and I am having the issue that when it is installed on a device it is 10mb in size which is huge. I dont understand why this is as when I look at the size of the entire App Folder in Flashbuilder it on...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587769", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# Which thread pattern to choose Say we have an interface method A, which is reentrant capable and for every entry in the method the current thread shall wait until an event occurs specifically for this thread: void interfaceMethodA() { doSomething(); waitHandle.WaitOne(); } Now, there will be set()-calls ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Access Css of Asp:Button So I want all buttons on my site to look the same and I need to edit a CSS file for them. I was just wondering how you can access the css style of all controls named -asp:button. Ie. Button { Font-size: 10px; } or #Button { Font-size: 10px; } So far this is not working. A: ASP.NET Button co...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587776", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Problem accessing sql server database 2008 r2 over network I've just finished my c# application with sql database built in 2008 r2 version I wanted to share this database over LAN and my connection string is : ConnectionString = @"Data Source=192.168.0.1,1433\SQLEXPRESS;user id=Rula; password=marojo;AttachDbFilename...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Local property Should Be Explicitly Provided I cannot see the share in my facebook wall through a like button on my site I used https://developers.facebook.com/tools/debug I have a warning: " Warnings That Should Be Fixed The Property INFERRED og: local property Should Be Explicitly Provided, Even if a value INFERRE...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587781", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Why is std::cout not printing the correct value for my int8_t number? I have something like: int8_t value; value = -27; std::cout << value << std::endl; When I run my program I get a wrong random value of <E5> outputted to the screen, but when I run the program in gdb and use p value it prints out -27, which is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: How can I dynamically link to a directory that doesn't exist (yet)? I have an InstallScript project that I'm looking at manually recreating as a Basic MSI project. For the InstallScript project, we have several components that utilize dynamic file linking, and link to a location specified in a path variable. However...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587783", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Javascript, ajax loading external page, redirect breaks links I am building a chrome extension that loads a real preview of links you click in your search results. I analyze the links that come up, and add a <base> url element that handles all relative urls. However, when I do an ajax request for a pages html, but ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587784", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Moodle Installation When I install Moodle using Fantastico I cant seem to create courses. Does anyone know if there is a problem with Moodle 2.0.2 when installed through fantastico? I have tried uninstalling and reinstalling but I am going around in circles. Thanks for the help! A: Use the following bash commands ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide number button on UIKeyboard? Is there a way to hide number button and space button? Mantaining UIKeyboard transparency?? I need a keyboard with only letters, backspace and NEXT button, nothing else. I need compatibility from iOS 3.1+! thanks. A: Apart from making your own keyboard (it's not that diffic...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587792", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android how many threads can I have going? I have an Android app that has separate things going on but are all basically threads (and definitely are threads to the Android debugger) There are multiple animation listeners that loop and call each other There is a countdown timer that is always counting down to zero a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587808", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: invalid types ‘float[int]’ for array subscript error and passing variables to scipy.weave.inline I've been playing with Scipy's inline tool (via weave) for fun, but I'm running into some trouble. My C is rusty and I have a feeling that I'm missing something simple. The function below is designed to take a 3D float32...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587810", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Unable to make PUT/POST/DELETE HTTP Call using CORS in JQuery 1.6.4 So, I can successfully make a GET call to my service using CORS. However, something must be going wrong at the preflight level for the POST, PUT, and DELETE operations. However, from what I can tell, the header responses my server is returning in ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587812", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: mediaelement.js with GWT I have a problem for integrate mediaelement in my GWT Integration. You know in GWT application you have only one HTML page and I need in DialogBox to integrate a video player, video works good but I don't have controls like fullscreen, duration time. That seems that javascript function doesn...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587817", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Need help creating a simple regex in Perl I'm still useless when it comes to creating regex patterns. This one has got to be really easy. Given the string: /home/users/cheeseconqueso/perl.pl I want to place the string ./ right in front of the very last / in the original string to produce: /home/users/cheeseconqueso...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587821", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Opencart .htaccess - allows access to specified folder I've got an OpenCart site, but need to create an addtional /test directory which is accessible. By default, all requests are sent to OpenCart. I'm trying to make it send all except /test. I've tried a few suggestions on this site already, but either nothing hap...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: autostorage email attachment file I was recently asked by my boss to create... something i find nearly impossible without human intervention The thing is, to have our users send a xml with some data via email, but my boss wants it to * *That the attached file be stored on a specific folder on a specific server wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587834", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How do I manage WCF log file sizes programatically? We're having a bit of trouble managing the file size of the WCF logs at my organization. The logs are getting large, really large. Multiple gigabytes of data. I am a bit of a WCF rookie, but I realize that there are options to turn down the level of information bei...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: How to get all the element from HTML who having same class attribute? I developing one asp.net application in that I using htmlagility dll to get all <div> tags which is same class attributes.. How to get all elements who have same class from whole html page, I getting top 1 div who having class='myclass' but in,...
{ "language": "en", "url": "https://stackoverflow.com/questions/7587840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }