text
stringlengths
175
47.7k
meta
dict
Q: OCP: Which two are true about LGWR? A. LGWR always writes to the redo logs each time a COMMIT occurs. B. LGWR always writes to the redo logs each time a ROLLBACK occurs. C. LGWR never writes a single COMMIT to the redo logs. D. LGWR may write to the redo logs when DBWR writes a dirty buffer. E. Multiple COMMIT...
{ "pile_set_name": "StackExchange" }
Q: Carrying remote VLAN via 2 routers to the local gateway I have a serverA (192.168.15.1) from site A and VLAN is 15, however the VLAN 15 gateway is set at site B (192.168.15.254). There are two ISP routers as a metro role to connect each other by subnet 10.0.0.0/30. My question is how can I get past those two rou...
{ "pile_set_name": "StackExchange" }
Q: Why does は refer to a particular rather than general in some cases? The sentence I am asking about is the following [魚]{さかな}が[好]{す}きじゃない[人]{ひと}は、[肉]{にく}が[好]{す}きだ 」 Person who does not like fish like meat Source: Tae Kim's Guide to Learning Japanese My understanding, which is probably flawed in some aspect, is th...
{ "pile_set_name": "StackExchange" }
Q: Comment traduire « learning from others » / « to learn from others » ? J'ai récemment écrit dans une rédaction: J'aime apprendre des autres. Ma prof l'a encerclé, disant « reformuler ». Franchement je n'arrive pas à comprendre pourquoi ça ne marche pas. L'anglais est ma première langue donc peut-être j'essaie de...
{ "pile_set_name": "StackExchange" }
Q: Javascript/jQuery : Slide image based on click I have 3 images. I would like to slide the image based on click. Image should be slide to left side of the div in the phone. $( document ).ready(function() { $('#image1').click( function (){ }); }); .phone_contain_div{ position:relative; } ....
{ "pile_set_name": "StackExchange" }
Q: TypeScript generated JS files encoding I am using VS2015 and latest TypeScript (1.6.3). The generated JavaScript and map files are generated in Windows-1252 encoding. The source TypeScript files are UTF-8 with BOM. I do need the generated files to be UTF-8 with BOM as well in order to pass Windows Store certifica...
{ "pile_set_name": "StackExchange" }
Q: Failed to create an ipc port; access is denied in MySQL Workbench I'm getting an error when I try to open MySQL Workbench: "failed to create an ipc port : access is denied" This is the dialog shown by the error A: What if you give a reboot to your machine, and then try opening up your workbench instance. Accor...
{ "pile_set_name": "StackExchange" }
Q: blank file while copying a file in python I have a function takes a file as input and prints certain statistics and also copies the file into a file name provided by the user. Here is my current code: def copy_file(option): infile_name = input("Please enter the name of the file to copy: ") infile = open(infile_na...
{ "pile_set_name": "StackExchange" }
Q: Start and end date of a current month I need the start date and the end date of the current month in Java. When the JSP page is loaded with the current month it should automatically calculate the start and end date of that month. It should be irrespective of the year and month. That is some month has 31 days or 30...
{ "pile_set_name": "StackExchange" }
Q: Conditional agent in Jenkins I'm trying to set a conditional agent in Jenkins defined through the branch such as: cloud = myconditional() pipeline { agent { kubernetes { cloud cloud } } and, the function myconditional is defined in a library /vars/myconditional.groovy def c...
{ "pile_set_name": "StackExchange" }
Q: Search a file in sub folders When i try to search the zip file in sub-folders of "Input_Files", the command is not running after "\172.24.191.117\data1\NEW-ENDORSEMENTS\Backlog_checked\%J%\CLIENT-SUPPLIED\Backlog". I think the space is problem to get the path. Kindly check and clear. @echo off echo. set /p J=Enter...
{ "pile_set_name": "StackExchange" }
Q: Controller is not detecting Model Here in my Project Controller is not detecting Model.Am using ASP.net MVC3 ,Visual Studio 2010 But my other projects are working as well.How can i rectify this. I have re-installed VS2010 2 times but its working for this project. Here is my Controller Code using System; using Syst...
{ "pile_set_name": "StackExchange" }
Q: Javascript date time comparison returns false but branch stmt still executed I am confused with this Javascript behaviour. Check this code. var NoOfMonthsElapsed = 6; //Should be >= 1 and <= 12 var MsgURL = "about:blank"; var PopupTitle = "ContactInfoUpdate"; var OptionString = "height=165,width=400,menubar=0,tool...
{ "pile_set_name": "StackExchange" }
Q: WPF - Treeview selected item index I have a treeview panel. In the panel, there are several child nodes. Some of them are only a header. The way I create the treeview: treeviewpaneL.Items.Add(art); art.Items.Add(prt); some if statement.... TreeViewItem cldhdr = new TreeViewItem() { Header = "ChildNodes:" }; prt....
{ "pile_set_name": "StackExchange" }
Q: Return value from Oracle function using Mybatis I have looked at a number of StackOverflow questions on this issue but can't find one that makes any sense. This one comes closest but doesn't show how to get the return value from the function. Here's my mapper call: public Long callMyFunction(@Param("recordId") L...
{ "pile_set_name": "StackExchange" }
Q: VBA 2010 Add Query Table: Application-defined or Object-Defined Error If it were functioning properly, the following code would grab the name of a table from a textbox, concatenate it with 'describe ' and then put the results in a query table. As it stands, the code fails with 'Run Time Error 1004: Application-De...
{ "pile_set_name": "StackExchange" }
Q: How do you compare using .NET types in an NHibernate ICriteria query for an ICompositeUserType? I have an answered StackOverflow question about how to combine to legacy CHAR database date and time fields into one .NET DateTime property in my POCO here (thanks much Berryl!). Now i am trying to get a custom ICrite...
{ "pile_set_name": "StackExchange" }
Q: #define negative numbers? Simple question, but I cannot seem to find the answer. Is it okay to use #define to define a negative number, as in: #define kGravity -9.8 XCode is changing the 9.8 to the color of my numbers I have set (purple), but the - is being shown as the same color as the define statement (orange)...
{ "pile_set_name": "StackExchange" }
Q: C libcurl force "Content-Type" I have the follwing C code with libcurl to upload a file to my webserver, almost ok the only problem I need the upload to be "Content-Type: application/vnd.ms-excel" but it gets "Content-Type: application/octet-stream", tried with headers but now luck. In PHP with curl is easy, I jus...
{ "pile_set_name": "StackExchange" }
Q: To find out if a div has a scrollbar If a div is set as overflow:auto, how can I find out (using plain JS) if a scrollbar (Vertical / Horizontal) has been rendered? A: Check if clientHeight is smaller than scrollHeight.
{ "pile_set_name": "StackExchange" }
Q: Initialize 64 by 64 numpy of (0,0) tuples in python? Is it possible to create a numpy of any arbitrary data structure, for example tuples? If yes, how do I initialize it without writing it out? (Obviously, I don't want to write out 64 by 64 array) A: Another way: value = np.empty((), dtype=object) value[()] = (0...
{ "pile_set_name": "StackExchange" }
Q: Configuration и xml Помогите, не могу разобраться. Я начал изучать Spring (IoC Concept), разобрал как можно конфигурировать бины через xml и отдельно через аннотации, но не пойму возможно ли создать бин в java-классе с аннотацией @Configuration и заполнить его поля, например, через сеттеры() в xml конфигурации? A...
{ "pile_set_name": "StackExchange" }
Q: How to add onClick event to an a tag with class Here's what I have on a page <a class="download-link" href="http://www.test.com/pages-">Pages 1</a> Below is the Result I want to achieve with jQuery. <a class="download-link" href="http://www.test.com/pages-1.asp" onclick="_sz.push(['event', 'PDF', 'download', ('r...
{ "pile_set_name": "StackExchange" }
Q: Where to store error/info messages for the user in PHP? I was wondering, what's the best way to store messages for the user in PHP. With messages i mean something like Authentication successful or Please enter a valid e-mail address Currently I'm working on a project where they are stored in the $_SESSION vari...
{ "pile_set_name": "StackExchange" }
Q: PRNG bad seeding and von Neumann unbiasing Large period PRNGs such as Mersenne Twister require good seeding otherwise the initial output in the sequence may not seem to be high-quality, at least for the first few words (and in the way that is useful in production). For example, Marsaglia talked about seeding meth...
{ "pile_set_name": "StackExchange" }
Q: Siunitx Won't Display Reciprocal Powers I have several SI units in my document which I would like to typeset using the siunitx package. According to the documentation the default mode for the \per command is 'reciprocal' meaning \si{m\per s} should produce output akin to ms$^{-1}$ but on my system it is producing ...
{ "pile_set_name": "StackExchange" }
Q: EXCEL VBA: Web Page Button Click I have tried numerous variations of codes on this site to get my VBA to click on a button on a webpage and with the exception of one time have not been able to get any code to work. The one time was either a fluke or in an attempt to add the next step of the code I somehow inadver...
{ "pile_set_name": "StackExchange" }
Q: OpenCV - Using SVM and HOG for person detection I'm aware of the steps needed to accomplish this task: Collect the training sets (positive and negative sets). Extract the hog descriptor for each image to be used for training the SVM (currently '1' class label for positive and '-1' class label for negative). Set t...
{ "pile_set_name": "StackExchange" }
Q: Excel VBA: unable to disable DisplayAlert during drag+drop? I'm trying to capture a specific drag and drop event in VBA, and would like to disable the popup "There's already data here. Do you want to replace it?" during this event. I have the basic event of a drag+drop from cell [D1] to cell [E1] captured, but fo...
{ "pile_set_name": "StackExchange" }
Q: AWS ALB + Django + Gunicorn +- Nginx? I am building an environment in AWS to host a django application. I am trying to figure out if I should be using nginx as part of the build. I am listing a few different environments below for example/comparison purposes. All environments make use of an AWS ALB. ENV 1 ALB -> ...
{ "pile_set_name": "StackExchange" }
Q: Casablanca - REST C++ SDK, used in Embarcadero RAD Studio XE5 I need to do a http get in RAD Studio XE5 C++. The tutorials on the RAD Studio site discuss a RESTCLient that is not included with the version I have. I found the Casablanca project, which is specifically for Visual Studio, and I made a small program in...
{ "pile_set_name": "StackExchange" }
Q: Type parameter 'T' must be a class type I am writing a small helper class for REST operations. One of my main goals is to provide automatic casting from the body response in JSON to a specific object using generics. This is how one of the functions look in the helper class: function RESTServiceCallHelper.ExecuteAs...
{ "pile_set_name": "StackExchange" }
Q: One-off job with hangfire How can I run a one-off job with hangfire? It doesn't look that CRON syntax supports "run at startup and never again" type of thing. I don't want to come up with a fixed CRON date (like 2019-02-28T15:12), because that wouldn't work across several environments. Any ideas how to do it? A: ...
{ "pile_set_name": "StackExchange" }
Q: Bootstrap Sticky navbar is causing vertical scrolling in collapsed mode I am building a navbar that is supposed to stick to the top of the page. I used .navbar-fixed-top class to accomplish that and gave the body element, a padding of 70px. Now in the collapsed mode (mobile resolution), when toggled, it gives a ve...
{ "pile_set_name": "StackExchange" }
Q: R select subset of data I have a dataset with three columns. ## generate sample data set.seed(1) x<-sample(1:3,50,replace = T ) y<-sample(1:3,50,replace = T ) z<-sample(1:3,50,replace = T ) data<-as.data.frame(cbind(x,y,z)) What I am trying to do is: Select those rows where all the three columns have 1 Select t...
{ "pile_set_name": "StackExchange" }
Q: Using Beaker with Falcon, Python I'm using the Python WSGI framework Falcon to make an app backend, and using Beaker to handle session management. In production, we're going to using Gunicorn in AWS. There's something I've been unable to understand: Gunicorn will run several workers, so does that mean the environm...
{ "pile_set_name": "StackExchange" }
Q: Player Movement I started developing games recently, teaching myself using a german book about C++ and Direct3D 9. The author states, player movement should be implemented using a time delta, like this player.position.x += time.delta * movementFactor as opposed to an implementation without incorporating the time ...
{ "pile_set_name": "StackExchange" }
Q: Dictionary (ObservableCollection) binding to ListView in Windows Phone 8.1 I am trying to bind a dictionary to two textblocks in a listview. The listview ItemsSource binding is defined in the code behind and the text blocks content is in the XAML. I am able to display the items but they are displayed with square ...
{ "pile_set_name": "StackExchange" }
Q: jquery date picker get date string in dd/mm/yy I have the string 'Thu Oct 20 2011 00:00:00 GMT-0400 (Eastern Daylight Time)' and would like to get date in format dd/mm/yyyy out of this. How can I do this using jquery date picker library? A: This is a dupe question asked here before: jQuery UI DatePicker - Chang...
{ "pile_set_name": "StackExchange" }
Q: Why does first version document show as minor version? When I allow SharePoint 2013 to create major and minor versions, the first document uploaded shows up as a minor version. It has a decimal number instead of a whole number. Shouldn't it show up as a major version with a whole number? However, when I only allo...
{ "pile_set_name": "StackExchange" }
Q: Seeing all store categories under my Appixia BasicCategoryListActivity instead of only primary categories I added the BasicCategoryListActivity module to my mobile app in order to show my store categories. I'm trying to create a tab for category navigation through my store: show primary categories and only when th...
{ "pile_set_name": "StackExchange" }
Q: SQL query to return a grouped result as a single row If I have a jobs table like: |id|created_at |status | ---------------------------- |1 |01-01-2015 |error | |2 |01-01-2015 |complete | |3 |01-01-2015 |error | |4 |01-02-2015 |complete | |5 |01-02-2015 |complete | |6 |01-03-2015 |error | |...
{ "pile_set_name": "StackExchange" }
Q: Can't find where form is processed? I'm using a wordpress theme that i want to customize and i cannot find where the custom post type Services form $_POST values are processed. The form action returns to the same page but when looking at the page and the wrapper page, i cannot see any functions that process $_POS...
{ "pile_set_name": "StackExchange" }
Q: How can I automate the process of copying files from one folder to another in Centos I have a statistical application which runs every minute and creates charts accordingly. In order to make these charts available to other users, I need to copy the whole folder containing the charts and paste it to a shared folder...
{ "pile_set_name": "StackExchange" }
Q: If $-1$is a root for $ax^2+bx−3$, find $a^2+b^2$ Given: -1 is a root for $ax^2+bx-3$, with $a,b$ being positive primes, $x\in \Bbb R$. Find: the numeric value for $a^2+b^2$. Background: question asked in an entrance exam (Colégio Militar 2005). My attempt: the other root is $3/a$ and by substitution we can easily...
{ "pile_set_name": "StackExchange" }
Q: rel and href match http://jsfiddle.net/aprWP/ <a href="#numtag-1">One</a> <a href="#numtag-2">Two</a> <a href="#numtag-3">Three</a> <div class="numtag-1">One</div> <div class="numtag-2">Two</div> <div class="numtag-3">Three</div> .. on hover the appropriate div should toggle class 'active'. Tried a lot of thin...
{ "pile_set_name": "StackExchange" }
Q: (L'Étranger de Camus) The usage of "se" with "laisser + faire" This question is on "se" in the last sentence of the following quote from L'Étranger by Camus. Nous nous sommes mis en marche. C’est à ce moment que je me suis aperçu que Pérez claudiquait légèrement. La voiture, peu à peu, prenait de la vitesse et le...
{ "pile_set_name": "StackExchange" }
Q: Android ime actionGo doesn't work on certain devices ime actionGo simply won't work on certain devices, like the HTC Evo 4G. It works on Motorola Atrix and Droid X. Here is the code: <EditText android:id="@+id/password" android:layout_width="fill_parent" android:layout_height="...
{ "pile_set_name": "StackExchange" }
Q: Changing font name in vb.net ,I have a rich text box for write text and a combo box for font names. i added fonts to combo box with this code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim ff As FontFamily For Each ff In System.Drawing.FontF...
{ "pile_set_name": "StackExchange" }
Q: How to get a picture drawn in canvas using drawImage ()? I'm trying to write a function that lets a user download an image drawn in a canvas. Here's the code: canvas.html: <html lang="en"> <head> <meta charset="utf-8" /> <script type="text/javascript" src="canvas.js"> </script> </head> <body onload="...
{ "pile_set_name": "StackExchange" }
Q: Using Scala 2.10 `to` to convert a List to a SortedMap I am trying to convert a scala.collection.immutable.List of pairs to a scala.collection.immutable.SortedMap using the new to method from Scala 2.10, but I get a compile-time error: scala> List((1, "Fred"), (2, "Barney")).to[scala.collection.immutable.SortedMap...
{ "pile_set_name": "StackExchange" }
Q: AC power adapter wattage and type cannot be determined - battery won't charge I am currently living in Japan but using a Dell XPS 13 bought in the U.S but with a Swedish charger, I thus have to use a power converter in order to fit my charger into the Japanese plugs. In the beginning I had no problems with this at...
{ "pile_set_name": "StackExchange" }
Q: Adding a Javascript Array To a Numbered List I have a predefined array list that I need to be formatted into a numbered list in HTML. I'm very new to html with javascript and am having a hard time with dom manipulation here is my js code var fruits = ['Apples', 'Oranges', 'Pears', 'Grapes', 'Pineapples', 'Mangos']...
{ "pile_set_name": "StackExchange" }
Q: Search recursively for all files with a .sql extension and pass them to mysql as argument Given: Directory tree that contains files with .sql extension. Requred Find them all recursively and pass found files one by one to mysql client as: mysql < ./dir/subdir/subsubdir/schema.sql My feeble attempt find . -name '*....
{ "pile_set_name": "StackExchange" }
Q: Using loops within CSV export - Ruby I'm trying to DRY up my code and wondering if many people have experience with CSV's and ruby. My code is below. It works just... Its awful. I'm wondering if anyone has any ideas on how I could do the following: 1 - How could I use a loop rather than explicit 1..10 that I've d...
{ "pile_set_name": "StackExchange" }
Q: Why do we feel gravity on a plane? How come a plane flying at constant velocity experiences gravity? If you were in a space capsule flying (not accelerating) you would feel weightless until you hit the ground. Why not a plane? A: This is the difference between flying and in orbit. In orbit, you are indeed fall...
{ "pile_set_name": "StackExchange" }
Q: Different twist on "public" is or are? I just read this sentence: "Note that 'public' have also other usages:" Since in this use of "public," we're talking about the word itself & not the group it's referring to, shouldn't the verb be "has"? (Is "the general public" redundant?) A: You are quite right -- the ve...
{ "pile_set_name": "StackExchange" }
Q: Coldfusion/Oracle - Inserted BLOB Value is Returning an Empty String Using coldfusion 8, blob values selected from a table are appearing as "[empty string]". Is there a mistake in my cfml or is there another issue? I appreciate the help! ColdFusion Server - 8,0,1,195765 Oracle Database 11g - 11.2.0.3.0 - 64bit BLO...
{ "pile_set_name": "StackExchange" }
Q: Stop-loss Order, Market Price, and Volume How does volume affect when a stop-loss order is triggered? Assume a stock is trading at 100$ per share. Person A places a stop-loss order at 90$ for 1000 shares. Can Person B sell a single share for say 1$ and trigger A's stop-loss order which would create a market order...
{ "pile_set_name": "StackExchange" }
Q: How to print array in format [1, 2, 3, 4 ,5] with string.Join in C#? i have an array 1 2 3 4 5 in C#. I just want to print in format with: [] ; Ex. [1, 2, 3, 4, 5] A: You can use string.Format and string.Join combined var output = string.Format("[{0}]", string.Join(",", yourArray)); and then you just need to p...
{ "pile_set_name": "StackExchange" }
Q: Windows Explorer Stuck on Cancelling Does this ever happen to you? When try to copy a file and suddenly you want to cancel it or in my case I was try to write it over a network drive and I lost the connection. But regardless what's the reason this annoying box just doesn't go away. Anyone know why this is happen...
{ "pile_set_name": "StackExchange" }
Q: Django: resetting password without a CSRF token I have a Django website that manages Users. Using the built-in functionality, users can request a password reset from the website and that works great. I have implemented it according to this tutorial so I am using the built-in password reset functionality. I have an...
{ "pile_set_name": "StackExchange" }
Q: How to prepare warmup request file for tensorflow serving? Current version of tensorflow-serving try to load warmup request from assets.extra/tf_serving_warmup_requests file. 2018-08-16 16:05:28.513085: I tensorflow_serving/servables/tensorflow/saved_model_warmup.cc:83] No warmup data file found at /tmp/faster_r...
{ "pile_set_name": "StackExchange" }
Q: How do I access Postgres when I get an error about "/var/run/postgresql/.s.PGSQL.5432"? I am running Ubuntu 16. I have installed Postgresql. Postgresql used to work, but then I rebooted. nmap commands show port 5432 is open. Postgres seems to be working correctly: service postgresql status postgresql.service...
{ "pile_set_name": "StackExchange" }
Q: Ruby on Rails - Referencing Image in Javascript I'm using jquery.infinitescroll.js in my Rails 5.0 app. I have the script in my Vendor directory, and I'm trying to customize the JS to use a different image. I can do it, if I set this property: img: "/img/loading.gif", I tried adding the image in a directory cal...
{ "pile_set_name": "StackExchange" }
Q: Conditional probability given two events Is the following probability correct given that $W$ and $H$ depend on $G$? $$P(G\mid w,h) = \frac{P(w\mid G)\cdot P(h\mid G)\cdot P(G)}{\left(P(w\mid G) P(G)+P(w\mid \overline{G}) P(\overline{G})\right) \cdot \left(P(h\mid G) P(G)+P(h\mid \overline{G}) P(\overline{G})\right...
{ "pile_set_name": "StackExchange" }
Q: Introduce syntax highlighting for fixed font messages in chat For a chat that's supposedly catering for developers, it lacks developer specific features. Reading code fragments in messages is annoying because there is no syntax highlighting. The existing solution is already used on the SO proper: deduce the langua...
{ "pile_set_name": "StackExchange" }
Q: how to get current device on Mac Is there any way to get the device info that user is using? I just want to know the device is MacBookPro or iMac. [[NSHost currentHost] localizedName] is used to get info from web. A: You can use int sysctlbyname(const char *name, void *oldp, size_t *oldlenp, void *newp, size_t...
{ "pile_set_name": "StackExchange" }
Q: Contacts Matching I have the below Models: class UserModel(User): mobile_number = StringField common_name = StringField class Contacts(models.Model): user = ForeignKey(UserModel) mobile_number = StringField name = StringField and I created a new UserModel of non repeated mobile number and most commonly...
{ "pile_set_name": "StackExchange" }
Q: How can I import my excel file to php myadmin without converting it to csv format How can I import my excel file to php myadmin without converting it to csv format, considering the excel file is too large. A: got my answer...and it worked perfectly. answer- http://itsolutionstuff.com/post/php-import-excel-file-...
{ "pile_set_name": "StackExchange" }
Q: Mesh intersection in three.js after modifying vertices/position I have a mesh inited with plane geometry with placeholder parameters (like xyz 0, wh 100). Later I set actual position for the mesh and 4 vertices for the geometry, and it renders fine. However when I try to intersect the mesh with raycaster, I get ...
{ "pile_set_name": "StackExchange" }
Q: Android Intent Clear Top not working I want to hit an intent to my HomeScreenActivity and clear all the activity that are alive in the Stack, below is the intent code: Intent intent = new Intent(activity, HomeScreenActivity.class); if (Build.VERSION.SDK_INT >= 11) { intent.setFlags(Intent.FLAG_ACTIVITY...
{ "pile_set_name": "StackExchange" }
Q: Macro to Copy/Paste Data Here is the code I have. I am trying to find the last populated row in a range. Then copy that data as formulas to the next blank row in the range. Finally copy the last populated row again and paste it to the second to last populated row as values. In a nutshell, move the formulas in the ...
{ "pile_set_name": "StackExchange" }
Q: After each push to Heroku I get 404 errors on images I am having issues with my Rails App on Heroku. code-dojo.herokuapp.com After every push to heroku any images I uploaded with Carrierwave Gem return a 404 error message. Do I need to precompile this folder or point to it ? Does Heroku replace this folder with a ...
{ "pile_set_name": "StackExchange" }
Q: Losing php empty post entries I have a strange situation in one of my servers. Whenever I post a form that contains an empty value for a given post key, when I try to read that key from the $_POST array it is not set as expected. I expect: isset($_POST[$k]) == true But I get: isset($_POST[$k]) == false I have no...
{ "pile_set_name": "StackExchange" }
Q: What does this error in Sass mean? "Illegal nesting: Only properties may be nested beneath properties." This is my code html, body { width: 100%; height: 100%; padding: 0; margin: 0; } body { font-family: 'Open Sans'; } .navigation { padding: 0; margin: 0; background: #333; position: fixed; top: 0; z-index: 999;...
{ "pile_set_name": "StackExchange" }
Q: ICommand vs IValueConverter I am new to WPF. I am currently developing an application in WPF where I had to enable/disable a button based on a value from database. I found solutions on the net to do so using Command as well as Converters. So which one is a better solution and why? A: When working with buttons it...
{ "pile_set_name": "StackExchange" }
Q: Why are browsers not caching these static files? Here's an example JavaScript file request/response: Request URL:http://local/index.js?time=1367958844038 Request Method:GET Status Code:200 OK Request Headers Accept:*/* Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language...
{ "pile_set_name": "StackExchange" }
Q: Android- Create tabs inside fragment without v4 support library I am trying to create a 'tabs' w/o using support library for my application, but I didn't find even a simple working example/tutorial anywhere. Since my entire application is using android.app.fragment, so I cannot change all of the existing fragmen...
{ "pile_set_name": "StackExchange" }
Q: Finding a closed form expression for the following recurrence relation. Given that: $S_0 = 0$ $S_1 = 3$ $S_n = S_{n-1} + 6S_{n-2}$ for $n ≥ 2$ What are the steps I would take to find the closed form expression for the following recurrence relation? A: What you are being asked for is an equation ...
{ "pile_set_name": "StackExchange" }
Q: Bash Functions - Create a variable with parameter's label I'm trying to create a function which will create a variable with the tag $1 (first param) and with the value $3 (third param). Here is my code: function var { if [ "$2" = "=" ]; then $1 = $3 fi } Now, I believe the reason this doesn't work...
{ "pile_set_name": "StackExchange" }
Q: How can you restore health in Sword & Sworcery? Playing through Sword and Sworcery on the iPad - I've reached the point where I'm battling the first trigon. It defeated me - so I was down to 1 star health. How can I regain some health? I've gone through my stash of mushrooms and can't leave the current screen. A:...
{ "pile_set_name": "StackExchange" }
Q: How Class/Static Methods get invoked While reading The Ruby Programming Language I came to know that, class methods are invoked on an object which got the same name as class. I found objective-c also does a similar thing from a blog. Here Classes happens to be instances of meta-classes. As another major Object Or...
{ "pile_set_name": "StackExchange" }
Q: Qt5, set text size in lineEdit Is it possible to change text size (and font too) in Qt5 QLineEdit class? I looked in the official documentation but found no solution. //the font I want to use to display a message QFont littleFont("Courier New", 10); //my message QString strS = "hi all" // setting the message in ...
{ "pile_set_name": "StackExchange" }
Q: Query for distinct instance of model + one other field I have a model called Evaluation. When an evaluation is created, an eval_number is created with it. There are many evaluations with the same eval_number. Here's an example: - !ruby/object:Evaluation attributes: id: 2023 score: 3 created_at: 2013...
{ "pile_set_name": "StackExchange" }
Q: Flutter: multiple firebase projects in one app but showing incorrect data The last few days I spend a lot of time to read through several SO-questions and tutorials. What I'm trying to achieve is, that a user of my flutter app can choose a firebase project and log in with email/password. After the login, obviously...
{ "pile_set_name": "StackExchange" }
Q: Chaining multiple ajax requests with promises I'm looking to chain multiple ajax requests, something along the lines of: get first JSON, if successful move on and get second JSON, if successful make a new object consisting of both JSON data. // get first json $.getJSON('http://www.json1.com').then(function(json1){...
{ "pile_set_name": "StackExchange" }
Q: Email Works fine but got two emails at same time? I try to send email, below code works fine but email sends twice at a time. I tried a lot but I don't know where I made a mistake. RTElapsedTime.cs: public void Elapsed() { T1.Elapsed += new ElapsedEventHandler(T1_Elapsed); T1.In...
{ "pile_set_name": "StackExchange" }
Q: Android AES issue I need to implement AES algorithm with my Android application, and I created this code below and it works prefectly as Java application, but it seems that Android doesnt recognize JAXB. Because as you can see i use import javax.xml.bind.DatatypeConverter, because I use Datatype converter to conve...
{ "pile_set_name": "StackExchange" }
Q: How to display several values filtered from two columns I have homework where I have to select data from two tables (book and author). Books has two authors and i need to display result with book title and authors separated by comma. I tried by myself but I got errors. Schema SQL: CREATE TABLE IF NOT EXISTS `autho...
{ "pile_set_name": "StackExchange" }
Q: Generating function for the partition function Could someone explain what is the reasoning behind the following equality? Or maybe direct me to a proof of the following equality? $$\sum_{n=0}^{\infty}p(n)x^n = \prod_{k=1}^{\infty}(1-x^k)^{-1}$$ where $\sum_{n=0}^{\infty}p(n)x^n$ is the generating function for the ...
{ "pile_set_name": "StackExchange" }
Q: Swap two characters in the cell array of strings I have a cell array of string and I want to swap A and B in a percentage of the cell array , like 20%, 30% of the total number of strings in the cell array For example : A_in={ 'ABCDE' 'ACD' 'ABCDE' 'ABCD' 'CDE' }; Now, we need t...
{ "pile_set_name": "StackExchange" }
Q: System boots to a black screen after upgrade to 11.04 I was a similar situation to this user: Dual Boot 10.10 and 11.04 can't boot into 10.10 after an update Only many more GRUB entres. Natty still worked - and I could still access the natty partition, until I ran sudo apt-get dist-upgrade to install a kernel upd...
{ "pile_set_name": "StackExchange" }
Q: Column is NULL when printed as individual field or column, filled when whole data frame is printed When I create a column of counts using dplyr, it appears to be filled correctly, until I try to use the counts column on its own. Example: I create this dataframe: V1 <- c("TEST", "test", "tEsT", "tesT", "TesTing", ...
{ "pile_set_name": "StackExchange" }
Q: How can I restrict gameobject from moving beyond line in unity I have this red apple that needs to move only inside the green apple line. If it tries to move beyond line it will be stopped at the green line and can' move beyond. How can I do that? This is the code I use to move a red apple. Camera mainCamera; f...
{ "pile_set_name": "StackExchange" }
Q: Using quotes in Twig ternary operators How does one prevent quotes from being escaped when used in a twig ternary operator? My desire is <div id="my_id">my div11</div> (or <div id='my_id'>my div11</div>), however, as seen my results are different. {% set id="my_id" %} <div{{ id?" id='"~id~"'" }}>my div1</div> <di...
{ "pile_set_name": "StackExchange" }
Q: Are 'climb via a SID' instructions actually used in the US? In the USA, a departing aircraft is instructed to climb: to flight level and maintain, or via standard instrument departure (SID) That's according to US Aeronautical Information Publication (AIP). But pilots say they never hear climb via SID. Can anybod...
{ "pile_set_name": "StackExchange" }
Q: Usando function dentro de Select Tenho um select, dentro dele tenho uma função : SELECT VAL1, VAL2, ".funcao('VAL1', 'VAL2')." AS soma FROM Conta WHERE soma < 100 Estrutura da tabela CONTA -------------------- | ID | VAL1 | VAL2 | -------------------- | 1 | 10 | 50 | -------------------- | 2 | 50 | 80 |...
{ "pile_set_name": "StackExchange" }
Q: Spring 4 @Transactional doesn't work I have a Spring 4.3 Application with simple configuration and I expect my methods from service classes to be transactional so I enable transaction management in my configuration and then annotate my service methods with @Transactional. I call service methods from my controlles ...
{ "pile_set_name": "StackExchange" }
Q: PHP what does it mean when using this '$$var'? I am trying to learn php, and I saw this in a foreach loop what does it mean? I understand &$var which its a direct reference to the memory address of the object. But what does $$var means? what is it exactly? This is the example. foreach($this->vars as $key => $...
{ "pile_set_name": "StackExchange" }