pid int64 2.28k 41.1M | label int64 0 1 | text stringlengths 1 28.3k |
|---|---|---|
32,433,046 | 0 | <p>The default dxSlideOut item template does not support the 'icon' field. So, you can use the <a href="http://js.devexpress.com/Documentation/ApiReference/UI_Widgets/dxSlideOut/Default_Item_Template/?version=15_1#menuTemplate" rel="nofollow">menuTemplate</a> option to define icon for a menu item.</p> <pre><code><d... |
28,285,128 | 0 | Excel 2010 Macro to transpose non adjacent cells <p>I'm currently transposing data from column to a row in a different spreadsheet one at a time. I began using the "record macro" function but I'm having trouble. I need the macro to copy data column by column and transpose it into a corresponding row, 15 rows apart. The... |
39,860,827 | 0 | <p>I think you should add @Configuration and @EnableWebSecurity annotations to SecurityConfig</p> <pre><code>@Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { } </code></pre> |
26,598,833 | 0 | Using a UIScrollView to change the alpha of an image <p>My aim is to effectively use a UIScrollView as a UISlider.</p> <p>I've managed to code a UISlider to change the alpha of an image however I want to code a scrollview to change the alpha of an image when it is scrolled. </p> <p>I think I'm on the right lines by usi... |
32,163,675 | 0 | <p>Is "05 - Listen to the Man_[plixid.com]" an asset within your project? If not I believe that's why this won't work. I'm pretty sure <a href="http://docs.unity3d.com/ScriptReference/Resources.Load.html" rel="nofollow">Resources.Load</a> is just for loading your existing assets into RAM, so that they're ready when yo... |
30,819,556 | 0 | <p>I believe that the problem is in the <strong>order</strong> of your rules:</p> <pre><code>.antMatchers("/admin/**").hasRole("ADMIN") .antMatchers("/admin/login").permitAll() </code></pre> <p>The order of the rules matters and the more specific rules should go first. Now everything that starts with <code>/admin</cod... |
31,250,986 | 0 | Why there is a duplicated consumer after a connection recovery in RabbitMQ? <p>I am using:</p> <ul> <li>RabbitMQ 3.5.1</li> <li>Java RabbitMQ client</li> <li>Cluster with two RabbitMQ instances</li> </ul> <p>I have a queue that is:</p> <ul> <li>Durable=false</li> <li>Exclusive=false</li> <li>Auto-delete=true</li> <li>Q... |
40,278,534 | 0 | <p>i think that you have to add following configuration:</p> <pre><code>sonar.forceAuthentication=true ldap.bindDn=[YOURLDAPSERVICEUSER] ldap.bindPassword=[YOURLDAPSERVICEUSERPWD] ldap.user.baseDn=ou=[YOUROU],dc=[DOMAINNAME] ldap.user.request=(&(objectClass=user)(sAMAccountName={login})) </code></pre> <p>you shoul... |
29,165,578 | 0 | <p>Here's an example, to give you an idea:</p> <pre><code>function recursiveKeyTargeting($array, $target_key, $element_to_add) { foreach($array AS $arr) { if(is_array($arr['key'])) { recursiveKeyTargeting($array['key'], $target_key, $element_to_add); } else if($arr['key'] == $target_key) { $arr[] = $element_to_add; br... |
16,737,371 | 0 | <p>maybe you can use jquery if loaded to add/remove classes and attributes</p> |
14,002,181 | 0 | <p>As I mentioned in my comment, <code>$.getJSON</code> is an asynchronous function. The data won't be available immediately after you call it, but after you are done processing the response returned by the server in the <code>success</code> callback.</p> <p>In other words:</p> <pre><code>$('#ss').mlData({ url:'ajax.p... |
15,315,857 | 0 | <p>BI = new BondImage(this); has not been added to layout view that y its not showing up </p> <p>try</p> <pre><code>setContentView(BI); </code></pre> |
31,467,286 | 0 | NSUserDefaults for high score is not working on iOS 8 Simulator? <p>I've tried to synchronize the saved data but my game still does not store the highest score. I can't find whats wrong with the replacing of the highScore with score if it is higher. Sorry I'm a beginner who just started learning iOS programming.</p> <p... |
23,949,360 | 0 | <p>If you are referring to the mangled key of <code>files</code> array then it's raw infohash - check out the spec:</p> <ul> <li><a href="https://wiki.theory.org/BitTorrentSpecification#Tracker_.27scrape.27_Convention" rel="nofollow">https://wiki.theory.org/BitTorrentSpecification#Tracker_.27scrape.27_Convention</a></... |
39,513,341 | 0 | Changing a word document title with Textbox values <p>Im currently making a VBA userform with multiple textboxes. My goal is to make a macro enabled word template that pops up a userform on startup, containing multiple textboxes where the user can input values. </p> <p>I was looking for a way to change the default save... |
37,841,439 | 0 | Running SonarQube against an ASP.Net Core solution/project <p>SonarQube has an MSBuild runner but .NET Core uses dotnet.exe to compile and msbuild just wraps that. I have tried using the MSBuild runner with no success against my ASP.NET Core solution. Using SonarQube Scanner works kind of.</p> <p>Any suggestions on how... |
16,681,086 | 0 | <p>Yes, you need the group by clause, and you need to use the <a href="http://dev.mysql.com/doc/refman/5.6/en/group-by-functions.html#function_group-concat" rel="nofollow">GROUP_CONCAT</a> function. You should group your results by People.fk_rooms and Thing.fk_rooms.</p> <p>Maybe you could use two different queries: T... |
13,424,379 | 0 | How do I get browsers to trust self-signed certificates for testing? Website address is slightly different than fully qualified domain name <p>I have a website that is being configured with SSL, and I am using a self-signed certificate for testing purposes, for now. The machine is running Windows 2008 R2 with IIs 7.5 a... |
32,888,869 | 0 | <p>Firebase stores a sequence of values in this format:</p> <pre><code>"-K-Y_Rhyxy9kfzIWw7Jq": "Value 1" "-K-Y_RqDV_zbNLPJYnOA": "Value 2" "-K-Y_SBoKvx6gAabUPDK": "Value 3" </code></pre> <p>If that is how you have them, you are getting the wrong type. The above structure is represented as a <code>Map</code>, not as a ... |
38,936,410 | 0 | planets and star sizes as page scrolls <p>I am a teacher and I am trying to make a page for my students showing the comparative size of the planets and the stars, like in one of those videos that are popular in Youtube.</p> <p>But I have not been able to solve the problem, the closest I got was using "if window.pageXOf... |
12,562,777 | 0 | <p>There is a backport of the <code>functools</code> module from <em>Python 3.2.3</em> for use with <em>Python 2.7</em> and <em>PyPy</em>: <a href="http://pypi.python.org/pypi/functools32">functools32</a>.</p> <p>It includes the <code>lru_cache</code> decorator.</p> |
32,526,621 | 0 | <p>We can use <code>cut</code> to produce bins and <code>sub</code> to rename them</p> <pre><code>mtcars$dispR <- as.character(cut(mtcars$disp,breaks = seq(0,500,100),right=FALSE)) mtcars$dispR <- sub("\\[(\\d{1,3}).*","\\1+",mtcars$dispR) </code></pre> <p>Then, to add the proportion, we can use <code>questionr:... |
4,942,312 | 0 | <p>JS Beautifier will both reformat and unpack:</p> <p><a href="http://jsbeautifier.org/">http://jsbeautifier.org/</a></p> |
5,332,132 | 0 | <p>Perhaps your UIImageView is not configured to receive user interaction</p> <blockquote> <p>UIImageView has in default userInteractionEnabled set to NO. I would try to change it to YES.</p> </blockquote> <p><a href="http://stackoverflow.com/questions/3005903/uigesturerecognizer-in-a-view-inside-a-uiscrollview">UIges... |
32,731,449 | 0 | <p>Use range.setValues, is the best choice. Works for any range in any sheet, as far as the origin and destination range are similar.</p> <p>Here's a sample code:</p> <pre><code>function openCSV() { //Buscamos el archivo var files = DriveApp.getFilesByName("ts.csv"); //Cada nombre de archivo es unico, por eso next() l... |
11,624,929 | 0 | <p>Something to do with the exit status returned by Ant in the version I was using (6) as reported by another user <a href="http://jenkins.361315.n4.nabble.com/Ant-build-successful-but-hudson-claims-a-failure-td362339.html" rel="nofollow">here</a>. I "solved" it by upgrading to version 8.</p> |
24,450,377 | 0 | <p>I managed to sort this so including the answer for anyone else who runs into this error message.</p> <p>The error: <code>unexpected TOK_IDENT</code> basically means that a field referenced in the query doesn't exist in the index.</p> <p>The best way to verify what's in your index is to run the Sphinx CLI using:</p>... |
7,159,852 | 1 | Speed up often used Django random query <p>I've got a query set up that puts 28 random records from a database into a JSON response. This page is hit often, every few seconds, but is currently too slow for my liking.</p> <p>In the JSON response I have:</p> <ul> <li>ID's</li> <li>Usernames</li> <li>a Base64 thumbnail</l... |
23,190,912 | 0 | <blockquote> <pre><code>std::vector<int> a{1,2,4}; </code></pre> </blockquote> <p>This is initializer-list initialization, not aggregate, because <code>vector</code> is not an aggregate — its data is stored on the heap. You need to have <code>#include <initializer_list></code> for it to work, although that... |
26,137,786 | 0 | <p>If all the elements to be added were already in the Collection (prior to the call to addAll), and the Collection doesn't allow duplicates, it will return false, since all the individual <code>add</code> method calls would return false. This is true for Collections such as <code>Set</code>.</p> <p>For other Collecti... |
24,082,185 | 0 | <p>Change the <code>img</code>s <code>display</code> to <code>block</code> </p> <pre><code>a { display:inline-block; } a img { display:block; } </code></pre> <p>See this <a href="http://jsfiddle.net/TLBEx/2/">jsfiddle</a></p> <p>So what does it do? The image inside the link has a default <code>display</code> of <code>... |
39,055,242 | 0 | <p>Try below solution to achieve what you want. </p> <pre><code>viewPager.setClipToPadding(false); // set padding manually, the more you set the padding the more you see of prev & next page viewPager.setPadding(40, 0, 40, 0); // sets a margin b/w individual pages to ensure that there is a gap b/w them viewPager.se... |
38,912,267 | 0 | Access to PasswordVault fails for user account delegation <p>We are porting a Windows Phone 8.1 app to UWP. In the original app we used PasswordVault (<code>Windows.Security.Credentials</code>) to store user credentials and everything just worked fine. After the porting every operation related to PasswordVault throws e... |
2,522,353 | 0 | <pre><code>SELECT * from Table1 WHERE (CDATE(ColumnDate) BETWEEN #03/26/2010# AND #03/19/2010#) SELECT * from Table1 WHERE (CINT(ColumnAge) between 25 and 40) </code></pre> <p>Dates are represented in Access between <code>#</code> symbols in <strong><code>#MM/DD/YYYY#</code></strong>. You should really be storing the ... |
19,182,502 | 0 | <p>Not saying this is the most efficient way to do it but it works:</p> <pre><code>List<DrawingData> _DrawingList = new List<DrawingData>(); _DrawingList.Add(new DrawingData() { DrawingName = "411000D", DrawingQty = 1 }); _DrawingList.Add(new DrawingData() { DrawingName = "411000D", DrawingQty = 1 }); _Dra... |
40,699,244 | 0 | <p>You would indeed use whatever server side configuration options are available to you.</p> <p>Depending on how your hosting is set up you could either modify the include path for PHP (<a href="http://php.net/manual/en/ini.core.php#ini.include-path" rel="nofollow noreferrer">http://php.net/manual/en/ini.core.php#ini.... |
28,950,781 | 0 | <p>What about:</p> <pre><code>import re lines = ''' & $(-1,1)$ & $(0,\infty)$ ''' matches = re.findall(r'\((.*),(.*)\)', lines) for (a,b) in matches: print "x: %s y: %s" % (a,b) </code></pre> <p>Outputs</p> <pre><code>x: -1 y: 1 x: 0 y: \infty </code></pre> <p>If you catch some weirdness, consider replacing <c... |
23,450,776 | 1 | Python open default terminal, execute commands, keep open, AND then allow user-input <p>I'm wanting to open a terminal from a Python script (not one marked as executable, but actually doing python3 myscript.py to run it), have the terminal run commands, and then keep the terminal open and let the user type commands int... |
2,481,876 | 0 | <p>The accepted answer here did not work for me. Instead I had to cast the base channel into an IContextChannel, and set the OperationTimeout on that. </p> <p>To do that, I had to create a new file with a partial class, that matched the name of the ServiceReference. In my case the I had a PrintReportsService. Code is ... |
4,600,750 | 0 | Idiomatic usage of filter, map, build-list and local functions in Racket/Scheme? <p>I'm working through <a href="http://htdp.org/2003-09-26/Book/curriculum-Z-H-27.html#node_sec_21.2" rel="nofollow">Exercise 21.2.3</a> of HtDP on my own and was wondering if this is idiomatic usage of the various functions. This is what ... |
17,599,894 | 0 | Share current URL of UIWebview to Facebook and Twitter <p>so I want to share the current URL of my webview to facebook and twitter using the social framework in Xcode, can anyone tell me how to do this here is my code</p> <pre><code>- (IBAction)social:(id)sender { UIActionSheet *share = [[UIActionSheet alloc] initWithT... |
9,762,927 | 0 | extracting values to be populated in a dropdown from SQLite database <p>I am developing a web application using ASP.NET MVC and using FluentNHibernate for ORM. I am faced with a situation.</p> <p>I have 8 tables say A,B,C,D,E,F,G,H and each table has say 10 attributes, out of which an average of 5 are lists that have t... |
1,629,103 | 0 | Disabling screen minimization animation effect in iPhone: <p>Is it possible to disable the home screen minimize animation effect when user presses the home button on iPhone?. Or can we set our own custom image for minimize animation?</p> <p>Regards ypk</p> |
35,384,569 | 0 | Remove glow from HTML5 canvas drawings? <p>If I draw a green circle on a black background, then draw the same circle in black, a green shadow/glow is left behind. The circle is not actually erased.</p> <p>How do I make it purely black again and remove the glow?</p> <p>I've tried <code>context.shadowColor = "transparent... |
10,183,483 | 0 | InflateException: Binary XML file line #60: Error inflating class com.google.android.maps.MapView <p>I keep on receiving this error and i don't know where this error occurs this the xml file</p> <pre><code>?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/androi... |
12,221,252 | 0 | How pinterest type url's work <p>When we click on pinterest pin the url changes to pinterest.com/pin/[pinid] But how come it happens without full loading of the page and only the url is changed. <img src="https://i.stack.imgur.com/JVmnI.jpg" alt="enter image description here"> <img src="https://i.stack.imgur.com/LfYJk.... |
39,541,750 | 0 | Unable to move on to next page http://indianvisa-bangladesh.nic.in/visa/Get_Appointment via httpClient 4.4 <p>Hiii Update 2: thanks 4 the help. I got the cookies now but i am stuck on the same page. I added cookie as header with request but i got the same page as response. Don't know i m doing wrong. Please guide me.</... |
15,623,236 | 0 | <p>Google has actually since added <a href="https://developers.google.com/appengine/docs/python/mail/bounce" rel="nofollow">a method for receiving bounced messages</a> via an HTTP Request. It requires adding to your app.yaml:</p> <pre><code>inbound_services: - mail_bounce </code></pre> <p>Which will cause a request to... |
23,656,280 | 0 | <p>To insert ID value on a table just do that</p> <pre><code>SET IDENTITY_INSERT [ database. [ owner. ] ] { table } { ON | OFF } </code></pre> <p>Example your table name is People it should be</p> <pre><code>INSERT INTO People(ID,NAME) VALUES(3,'Felicio') </code></pre> <p>PS: to insert indentity value you also need to... |
31,533,113 | 0 | FullCalendar, JSON array empty but working on PHP file <p>I am configuring FullCalendar with a MySQL DB, using PHP to process and return a JSON.</p> <ul> <li><strong>db-connect.php</strong> - fetches results from my Db and encodes to JSON.</li> <li><strong>get-events.php</strong> - reads JSON, converts to FullCalendar<... |
4,081,286 | 0 | <p>The <code>DefaultControllerFactory</code> will indeed instantiate and destroy the controller instance for each request. (You can <a href="http://aspnet.codeplex.com/SourceControl/changeset/view/23011#266459" rel="nofollow">browse the source yourself</a>, or see Dino Esposito's article <a href="http://dotnetslackers... |
17,610,542 | 0 | <p>In order to be able to use DMA, the buffers should be in page-locked memory. AMD and NVIDIA state in their programming guide that to have a buffer in page-locked memory it should be created with the CL_MEM_ALLOC_HOST_PTR flag. Here is what NVIDIA says in the section 3.3.1 of its <a href="http://hpc.oit.uci.edu/nvid... |
5,116,714 | 0 | Egit ssh changes push & pull <p>In my office Eclipse is being used popularly and I have newly installed <code>GIT</code> and <code>Egit</code> plugin for Eclipse.<br> I'm not CVCS or DVCS user and I'm asked to install and configure Egit.<br> I could able to clone a remote projects <strong>Graphically</strong> with Egit... |
22,412,698 | 0 | Optimizing hand-evaluation algorithm for Poker-Monte-Carlo-Simulation <p>I've written an equilator for Hold'em Poker as a hobbyproject. It works correctly, but there is still one thing I am not happy with: In the whole process of simulating hands, the process of evaluating the hands takes about 35% of the time. That se... |
27,426,305 | 0 | Edmodo android image cropper, fix aspect ratio <p>I've some problem using edmodo/cropper library on android lollipop. My app should take some pictures, and after each picture is taken, user should crop a square image. this is my layout:</p> <pre><code><RelativeLayout xmlns:android="http://schemas.android.com/apk/res... |
17,238,438 | 0 | Simple SQL to Eloquent Query (Laravel) <p>I have two tables: users (Users) and groups (Groups).</p> <pre><code> Users ----------------- id | username | group 1 | Bob | 2 Groups ----------------- id | name 1 | firstgroup 2 | secondgroup </code></pre> <p>I would like to display: users.ID, users.username, group.name (1, B... |
26,658,476 | 0 | <p>The <code>ssl_protocol</code> parameter is part of the <code>Apache::Vhost</code> defined type. Not part of the <code>apache</code> class.</p> <p>You can set the defaults with the following:</p> <pre><code> Apache::Vhost { ssl_protocol => 'all -SSLv2 -SSLv3' } </code></pre> <p>Hope this helps.</p> |
16,825,643 | 0 | <p>did you try:</p> <pre><code>animation-direction:alternate; -webkit-animation-direction:alternate; /* Safari and Chrome */ </code></pre> <p>very nice effects BTW :)</p> |
10,652,262 | 0 | <p>Straight from Phonegap website -</p> <blockquote> <p>PhoneGap is an HTML5 app platform that allows you to author native applications with web technologies and get access to APIs and app stores.</p> </blockquote> <p>What this means is it is not browser dependent. The code compiles to native application. You don't ne... |
17,192,485 | 0 | <p>There have been numerous posts on here about trying to do OCR on camera generated images. The problem is not that the resolution is too low, but that its too high. I cannot find a link right now, but there was a question a year or so ago where in the end, if the image size was reduced by a factor of four or so, the... |
10,783,338 | 0 | <p>You could add a Textbox for each message which would allow you to have more control over the positioning. But a non-clickable Listbox would be good too. in the end it's your artistic choice</p> |
2,790,016 | 0 | <p>The code language of classic ASP is VBScript, so you have to make do with the error handling capabilities of that language, by using the "On Error ..." construct. You need to decide on whether to make a general error handler or insert some specific error handling logic for the SQL calls.</p> <p>These are your optio... |
33,006,821 | 0 | How to use caching mechanism in android for httprequest <p>I am working on an android application in which i want to use caching mechanism for httpurlrequest. I want to cache the response and want to use again for next request.</p> <p>So, in android how to cache the response and how to use it next time when we do the s... |
18,195,600 | 0 | <p>Seems you forgot to add the html code</p> <p>From the code you have provided, I can only assume you should write this:</p> <pre><code>if ( Image_Number > 0 ) { $("html_item_that_contains_image").fadeOut(); document.my_imagearray.src = Image[Image_Number]; $("html_item_that_contains_image").fadeIn(); } </code></p... |
20,589,885 | 0 | How to launch the normal function in jquery <p>I have some links to launch ajax.</p> <pre><code><a href="javascript:void(0)" onclick="artClick(1)">1</a><br> <a href="javascript:void(0)" onclick="artClick(2)">2</a><br> <a href="javascript:void(0)" onclick="artClick(3)">3</a&g... |
34,396,151 | 1 | Place in a file from drop down list <p>How would you find out the position in a text file of an option selected from a drop down box? I have got a text file of different values stored on new lines. I then load this into an array which forms the values of a drop down box. I would like to know the line position of the va... |
4,615,607 | 0 | <p>Famous <a href="http://www.bitstorm.org/gameoflife/" rel="nofollow">Game of Life</a> seems to be a good idea. Cells are persistence units, JSF, web beans + ejb to display the working area, scheduled beans - to put it in motion. Game's logic can be implemented in EJB or JMS (or even both). You could extend original ... |
4,552,355 | 0 | How can we get unique elements from any ORDER BY DECREASING OR INCREASING <p>Code given below is taken from the stackoverflow.com !!! Can anyone tell me how to get the array elements order by decreaseing or increasing !! plz help me !!! Thanks in advance</p> <pre><code>$contents = file_get_contents($htmlurl); // Get ri... |
741,437 | 0 | <p>Add @Key(types=String.class) @Value(types=String.class)</p> <p>since "Properties" is a bit of a hack in that it can also contain non-String, and doesn't allow generic specification so you need to restrict it. The next version of AppEngine will have a version of DataNucleus that doesn't require this additional info.... |
14,933,797 | 0 | ASP.NET Web Forms (4.5) Strongly Typed Model Binding - DropDownList in InsertItemTemplate of ListView <p><strong>Note: This is ASP.NET Web Forms Model Binding in .NET 4.5 and NOT MVC.</strong></p> <p>I am using the new Strongly Typed Model Binding features of ASP.NET Web Forms (4.5) to produce a list of items that can ... |
16,084,574 | 0 | <p>This is not a very good question for StackOverflow; it's better for one of the math sites. But I'll answer it here anyways.</p> <p>You certainly can do better than brute force, as you are doing here. You should be able to compute the answer in a few microseconds.</p> <p>There exists a solution if and only if the <e... |
18,055,468 | 0 | update value simultaneously to table using MVC ajax async <p>I want to update values to sql table from queue simultaneously using Ajax async. It's not working for me. </p> <p>My code </p> <pre><code> function ProcessQueue() { $.ajax({ url: '@Url.Action("process", "MyAccount")', type: 'GET', dataType: 'html', async: tru... |
6,791,287 | 0 | <p><code>header</code> statements will not work if there is any output before they are called. In this case, your <code>echo</code>s are killing it. Also, make sure there is no other output before this is called (white space, HTML, etc.).</p> |
804,551 | 0 | <p>Boolean is a value type, so it will always have a value. [Required] therefore has no real effect. What happens if you use a Nullable<bool> instead? This should allow MVC to assign a null value if the first option is selected, and the Required attribute can then assert that the user did in fact select a value.... |
6,207,907 | 0 | What are possible causes for differing behaviors in jsFiddle and in local context <p>Upon invsetigating 'mu is too short's answer to <a href="http://stackoverflow.com/questions/6206985/what-can-make-jquerys-unbind-function-not-work-as-expected" title="this question">this question</a>, I noticed that I get different beh... |
31,629,117 | 0 | <pre><code>def combinations(ary1, ary2) ary1.map {|i| ary2.map {|i2| "#{i}#{i2}" }}.flatten end </code></pre> |
32,793,474 | 0 | PHP Why does this work? <p>Specifically speaking, why does the below code work (outputs "test").</p> <pre><code><? $variable = 'test'; ?> <?=$variable?> </code></pre> <p>Is this hacky, or functionality?</p> |
36,696,169 | 0 | sitecore installation wizard could not install some content <p>I would like to ask you if someone has similar problem. I am using Sitecore.NET 7.2 (rev. 151021) with Solr. I need to add some items from prod to my local sitecore instance. When I create package and tried to install specific content I get exception null r... |
7,426,257 | 0 | <p>Task Manager is one way to do it. I prefer <a href="http://technet.microsoft.com/en-us/sysinternals/bb896653" rel="nofollow">Process Explorer</a> because it gives a lot more info than Task Manager.</p> |
902,480 | 0 | Error parsing .dae,Error#1009 in flash player,Augmented Reality flash <p>Whenever I am trying to use an animate.dae file(I am creating small project using flartoolkit+papervision3d+ascollada) .The flash player is reporting me the errors pasted below.If I am pressing continue then I can see my .dae file but without anim... |
40,773,611 | 0 | <p>The output of <code>resize</code> has a dtype of float, hence it is in the 0-1 range. You can convert your image back to uint8 range with:</p> <pre><code>from skimage import img_as_ubyte image = img_as_ubyte(image) </code></pre> <p>Please see the <a href="http://scikit-image.org/docs/dev/user_guide/data_types.html"... |
465,467 | 0 | <p>I don't believe it's possible to achieve what you'd like here. From the comments in your code it looks like you are attempting to capture the name of the property which did the assignment in MethodThatTakesExpression. This requires an expression tree lambda expression which captures the contexnt of the property acc... |
3,735,617 | 0 | <p>The <a href="http://wiki.apache.org/solr/UpdateXmlMessages#A.22commit.22_and_.22optimize.22" rel="nofollow noreferrer">documentation</a> for the Optimize command specifies that, by default, the command will block until all changes are written to disk and that the new searcher is available. So if you keep those defa... |
25,442,455 | 0 | Sencha Touch Ext.js Codes in Html Page <p>How to use ext codes in html pages ? </p> <p>Defined this :</p> <pre><code> var Ext = Ext || {}; var msg=new Ext.Msg(); Ext.Msg.alert("Something","Something"); </code></pre> <p>but Ext.Msg.alert doesnt work , throwing " undefined is not a function " error in console.</p> |
15,084,601 | 0 | <p>easiest way:</p> <pre><code>(@id in xmlIn) </code></pre> <p>this will return true if id attrtibute exists and false otherwise.</p> |
2,480,477 | 0 | <blockquote> <p><em>Is there a way to override java.io.File to perform the file path translation with custom code? In this case, I would translate the remote paths to a mount point</em></p> </blockquote> <p>Yes, you can perform your own implementation of <code>java.io.File</code> and place it in a separate jar and the... |
35,853,284 | 0 | How to extract just the date portion from a time in Rails? <p>I have the following piece of code currently in my view.</p> <p><strong>display.html.erb</strong></p> <pre><code><% @total_sales_volume.each do |record| %> <%= record.transaction_date %> <% end %> </code></pre> <p>What gets displayed curren... |
18,670,565 | 1 | Why __init__ in python fail <p>I'm using python2.7 to define a function like this</p> <pre><code>def foo(*args, **kwargs): print 'args = ', args print 'kwargs = ', kwargs print '---------------------------------------' </code></pre> <p>and by calling foo(3), the output is as the following:</p> <pre><code>args = (3,) kw... |
36,102,749 | 0 | <p>Have you scanned for peripheral with the services, code below:</p> <pre><code>NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], CBCentralManagerScanOptionAllowDuplicatesKey, nil]; [self.bluetoothManager scanForPeripheralsWithServices:nil options:options]; </code></pre... |
2,265,360 | 0 | Where does the iPhone Simulator store the installed applications? <p>I want to have a look at the app directory from the iPhone Simulator, so that I can see what kind of files it is creating when I use my app and what stuff is in these files (i.e. when it creates the sqlite file for Core Data and stuff like that).</p> |
8,365,346 | 0 | Why does this Parallel.ForEach code freeze the program up? <p>More newbie questions: </p> <p>This code grabs a number of proxies from the list in the main window (I couldn't figure out how to make variables be available between different functions) and does a check on each one (simple httpwebrequest) and then adds them... |
3,883,227 | 0 | <p>There are several problems you need to address — both in your code and both in your current knowledge :-) Start with this:</p> <ol> <li><p>Read a few articles about ASP.NET's page life-cycle, so you become more familiar with what to do in each life-cycle event handler (<code>OnInit</code>, <code>OnLoad</code>, …). ... |
2,102,395 | 0 | <p>This is a specification. </p> <p><a href="http://www.hanselman.com/blog/ASPNETMVCBetaReleasedCoolnessEnsues.aspx" rel="nofollow noreferrer" title="Scott Hanselman's Computer Zen - ASP.NET MVC Beta released - Coolness Ensues">Scott Hanselman's Computer Zen - ASP.NET MVC Beta released - Coolness Ensues</a></p> <p... |
6,953,923 | 0 | <p>You don't have to convert it to integer. You can check it from the string.</p> <p>Take the first character and the last character compare those .</p> <p>Iterate the first pointer +1 and the last pointer -1 then compare.</p> <p>Continue this process upto you are in middle of the string.</p> |
18,865,083 | 0 | <p>You can run my demo code and see what the error means.</p> <p>When you loop over an array and expect to call a method you need to validate that it exists, first.</p> <pre><code>var arr = [0, {test: function(){}}]; // the error - Uncaught TypeError: Object 0 has no method 'test' //arr.forEach(function(e) { // e.test... |
40,817,934 | 0 | why dose my app in android shows wrong size of External memory? <p>i want to get size of External memory in my app. my code doesn't work properly because i have 16 Gb External Memory size but my app shows me 5 GB :</p> <pre><code>import android.os.Environment; import android.os.StatFs; import android.support.v7.app.App... |
23,061,804 | 0 | Optimizing MySQL self-join query <p>I have following query:</p> <pre><code>SELECT DISTINCT(a1.actor) FROM actions a1 JOIN actions a2 ON a1.ip = a2.ip WHERE a2.actor = 143 AND a2.ip != '0.0.0.0' AND a2.ip != '' AND a2.actor != a1.actor AND a1.actor != 0 </code></pre> <p>This is the explain of the query:</p> <pre><code>+... |
1,283,377 | 0 | <p>In this specific case, it is going to work because the string in <code>buffer</code> will be the first thing that is going to enter in <code>buffer</code> (again, useless), so you should use <code>strcat()</code> instead to get the [almost] same effect.</p> <p>But, if you are trying to combine <code>strcat()</code>... |
4,071,677 | 0 | <p>There are wrappers to inotify that make it easy to use from high-level languages. For example, in ruby you can do the following with <a href="http://github.com/nex3/rb-inotify" rel="nofollow">rb-inotify</a>:</p> <pre><code>notifier = INotify::Notifier.new # tell it what to watch notifier.watch("path/to/foo.txt", :m... |
41,028,642 | 0 | Cannot use LinkedIn API with activeadmin because of how activeadmin includes javascript <p>I have succesfully gotten the Linkedin API to work using the following code:</p> <pre><code><script type="text/javascript" src="//platform.linkedin.com/in.js"> api_key: my_key </script> $('#sign_in').click(function(){... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.