title
stringlengths
10
150
body
stringlengths
17
64.2k
label
int64
0
3
How to get value from previous field to new field
<p>Is there any way to call value from previous field to the new field by using trigger? i have tried with following method and this method is working perfectly with first row but when i moved to second row it automatically copy data from "remaining" to "monthly" field:</p> <pre><code>BEGIN IF (:REMAINING IS NULL) THE...
3
CSS animation-delay timing
<p>I took this example code from JSFiddle and played with it, but there is code confusing me</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>.backgroundimg { -webkit-bac...
3
Event listeners overwriting one another?
<pre><code>function newMenu(items,results){ document.getElementById("menu").innerHTML = ""; for (var i = 0; i &lt; items.length; i++) { document.getElementById("menu").innerHTML += "&lt;li&gt;" + items[i] + "&lt;/li&gt;"; document.getElementById("menu").childNodes[i].addEventListener("click",fun...
3
Print transaction status on TextArea
<p>I am developing a project which does the following :</p> <p>1.truncate a temporary table T1. </p> <p>2.insert some thousand rows into temporary table T1.</p> <p>3.Execute a procedure which has some commit statements in it.</p> <p>4.insert rows from table T1 to other identical table(with respect to structure) T2<...
3
OpenCover and GoogleTest - Complains missing PDBs
<p>The build I am currently working on uses Visual Studio 2008 (Professional) in a 32bit environment to compile. We have been using Google Test Framework to create unit test. We are trying to use OpenCover to report code coverage, and it returns </p> <pre><code>"no results - no assemblies that matched the supplied fil...
3
Works in localhost but not when uploaded on server
<p>I have a problem... When I use</p> <pre><code>header('location: index.php?error=3'); </code></pre> <p>It works in localhost but not in my website uploaded. I mean, in localhost everything goes fine, but online it doesn't change page, it load only half of the page and that's it, with no image, et cetera.</p> <p>E...
3
Single quote argument is converted to double quoted argument when passed to oracle function and called from shell script
<p>I am trying to execute one oracle function from shell script. This function just takes two string arguments and returns full their concatenated string. Here is the oracle function</p> <pre><code>create or replace package temp as function getName(v_fname in varchar2, v_lname varchar2) return varchar2; end temp; ...
3
Uncaught TypeError: Cannot read property 'value' of null using joomla
<p>this error comes up when using the following : field <strong>otherinfo</strong> has id=idOtherInfo and is declared in a <strong>.xml</strong> file under Models, Forms in <strong>joomla</strong>. The field has a default value in the declaration to prevent the null (shows the default value in the browser) and using th...
3
Angular ng-repeat like parameters binding
<p>Is it possible to bind angular ng-repeat parameters to do something like this:</p> <pre><code>ng-repeat="[BIND_THIS]" </code></pre> <p>Furthermore, I'd like to be able to bind in this kind of scenario:</p> <pre><code>&lt;input type="text" ng-model="customSelected" placeholder="Custom template" typeahead="state as...
3
module array output
<p>I'm writing a module to add functionality to the FlagShihTzu gem.</p> <p>Basically it goes through the flags and outputs the keys for the ones assigned to the object. It's working, but I also want to be able to use a block in the view to do things with the output.</p> <p>The problem is that it's outputting both th...
3
Is it safe to reuse a conduit?
<p>Is it safe to perform multiple actions using the same conduit value? Something like</p> <pre><code>do let sink = sinkSocket sock something $$ sink somethingElse $$ sink </code></pre> <p>I recall that in the early versions of conduit there were some dirty hacks that made this unsafe. What's the current statu...
3
Variable sized packet
<p>I am trying to define a packet whose length is determined during an ns-3 simulation (think of it as a packet sent on the downlink containing schedule information whose length depends on the number of nodes in the network which can join/leave the network during simulation). Does anyone have any idea how I could appro...
3
apply parent's hover to jquery ui autocomplete child
<p>I'm in a similar situation a my other problem <a href="https://stackoverflow.com/questions/16195454/prevent-datepicker-from-triggering-parent-mouseleave/16196098?noredirect=1#16196098">prevent datepicker from triggering parent mouseleave</a>, but that solution doesn't seem to apply to jQuery UI autocomplete.</p> <p...
3
Resizing lots of images via PHP, keeping aspect and not using all my RAM?
<p>I have a problem that I thought was easily solved, but is turning out a little more difficult than anticipated.</p> <p>I am working on a site which someone can upload images for a product, and it resizes them twice (500x500 and 150x150) on the fly. I am trying to keep the aspect ratio, for example if I had 600x500 ...
3
available CRAN vignettes
<p>There's the <code>available.packages()</code> function to list all packages available on CRAN. Is there a similar function to find all available vignettes? If not how would I get a list of all vignettes and the packages they're associated with?</p> <p>As a corner case to keep in mind the <code>data.table</code> p...
3
Read XML with c#
<p>I have a xml file that looks like this </p> <pre><code> &lt;?xml version="1.0" standalone="yes"?&gt; &lt;Ribbon&gt; &lt;Tab Text="Tab1"&gt; &lt;Grupi Text="Grupi1"&gt; &lt;Buttoni Moduli="Appdec.Simea.Modulet.DepartamentetM.dll" /&gt; &lt;/Grupi&gt; &lt;Grupi Text="Grupi2...
3
Arranging elements with a variable size on a fixed canvas
<p>Input: I have created and filled an array/table in velocity. This array currently contains 3 things:</p> <p>(note that this example is pure fiction)</p> <ol> <li>Top level community name (e.g. Stack Overflow USA, Stack Overflow BEL)</li> <li>Subcommunity (e.g. stackOverflow.com/r/USA/CSS and stackOverflow.com/r/BE...
3
Dynamic dropdown list
<ol> <li>subjects</li> <li>course</li> <li>chapters</li> </ol> <p>I want to add 2 dynamic dropdown lists, one is for subjects, and one is for course. When I select subject, courses which is added to that subject should be loaded in the course dropdown list, and then add chapters to that courses.</p> <p>How do I do th...
3
Issues with creating a new isolated scope in factory
<p>I'd like to know what the consequences / issues of creating a new isolated scope in a factory are, by doing <code>$rootScope.$new()</code></p> <p>I'm trying to allow the user of my library to do something like <code>$cordovaPush.$on('notReceived')</code>, rather than using <code>$rootScope.$on('...')</code> (even t...
3
How to find out the source of iphone CoreLocation Data?
<p>Core Location uses the available GPS, cell, and Wi-Fi networks to determine the user Location.How do I find out the current Source?.Is it possible?.Thanks Note. suppose if the source is cellular i use some calculations to improve accuracy.</p>
3
React router v6 component not loading
<p>The issue is the ProdDetails component is not called when it is nested (products/:id). Even though the URL changes on the address bar, No changes in UI</p> <p>Here is App.tsx</p> <pre><code>function App() { return ( &lt;div className=&quot;App&quot;&gt; &lt;Routes&gt; &lt;Route path='/' element={&lt;Home /&gt;...
3
How to pass 'quotaUser' parameter for queries to MySQL server in GCP from cloud function?
<p>I'm working on a project right now that shows a list of items. To retrieve this data, the page calls a callable cloud function which queries the data from a MySQL server. This MySQL server, like our cloud functions, is part of our project on the Google Cloud Platform.</p> <p>The page that shows the items is used qui...
3
How to get scroll Position in reactjs when click on button
<p>As you can see it I am not able to scroll down the page when I click on the button, This all code running in one file in App.js <br> Even I tried with useRef() and UseState() also but not working <br> I need help in JavaScript logic only <br> <strong>Javascript:</strong></p> <pre><code>const myFunction = () =&gt; { ...
3
Use of markdown in loops in Jupyter notebooks
<p>I have a Python program (more exactly a suite of programs) which I want to add more markdown comments in order to be train/document using them. In some of them the comments would naturally be placed go inside long loops.</p> <p>My understanding is that if you split the loop by inserting a markdown cell the notebook ...
3
FCM messages is not always delivered
<p>I push Firebase messages from PHP and they usually get the target Android app.</p> <p>Nonetheless, and occasionally, a push message is not correctly delivered if the target Android mobile was inactive for some period of time. Then, if I open the app, the message is delivered immediately.</p> <p>I read about the Doze...
3
How to add interleaving rows as result of sort / groups?
<p>I have the following sample input data:</p> <pre><code>import pandas as pd df = pd.DataFrame({'col1': ['x', 'y', 'z'], 'col2': [1, 2, 3], 'col3': ['a', 'a', 'b']}) </code></pre> <p>I would like to sort and group by <code>col3</code> while interleaving the summaries on top of the corresponding group in <code>col1</co...
3
How to pass array or arraylist by intent which has unserializable data?
<p>What I want to do is passing DataModel array between Activity by Intent.</p> <p>DataModel class has Bitmap object and FirebaseVisionLabel object. I found many sites to implement this. </p> <p>Many people said that DataModel class should implements Serializable or Parceable interface to pass <code>DataModel[]</code...
3
Using CUDA atomicInc to get unique indices
<p>I have CUDA kernel where basically each thread holds a value, and it needs to add that value to one or more lists in shared memory. So for each of those lists, it needs to get an index value (unique for that list) to put the value.</p> <p>The real code is different, but there are lists like:</p> <pre><code>typedef s...
3
Data Validation should be pulling based off of previous Options. Returning Undefined
<p>The Bid Sheet is ultimately supposed to enable the user to enter the various Options and it will give them a list if Items with those Options. I suspect my attempt to use the same scripting as the single validation Option is insufficient to handle the multiple Options, but I am too inexperienced to know a better pat...
3
Display rows like a columns
<p>How to display rows like a column? I need turn this table for each meta_key value.</p> <p>I have following table:</p> <pre><code>CREATE TABLE wp_postmeta ( meta_id int NOT NULL, post_id int NOT NULL DEFAULT '0', meta_key varchar(255) DEFAULT NULL, meta_value varchar(255) ) INSERT INTO wp_postmeta ([meta_...
3
i use the 'angular-froala-wysiwyg',but menu bar reduced
<p>I build a new project for angular and introduced 'angular-froala-wysiwyg', the menu is all right ,bug I introduced '<code>angular-froala-wysiwyg</code>' in my angular project, the menu is few. this is new project's menu: <img src="https://i.stack.imgur.com/HkcEE.png" alt="enter image description here"></p> <p>and t...
3
Rename default context menu title on right click in webview for cocoa [Objective C]
<p>I need to open a link in new tab in webview. But on right clik, the context menu is showing <code>Open Link In New Window</code> with other menus but no <code>Open Link In New Tab</code>. And on clicking <code>Open Link In New Window</code>, it'll open in new tab (I enabled tabbing mode on). But I am <strong>unable ...
3
Flask + Flask-RESTful: Match specific variables to routes
<p>How can I achieve the following?</p> <pre><code># only if model_type in ['a', 'b', 'c'] api.add_resource(FooAPI, '/&lt;string:model_type'&gt; # only if model_type in ['x', 'y', 'z'] api.add_resource(BarAPI, '/&lt;string:model_type'&gt; </code></pre> <p>Rather than having the following code:</p> <pre><code>api.ad...
3
How to plot points specified by ID column only with linespoints and multiple plots using gnuplot?
<p>Say I have two files, each has 3 columns<br> file1: </p> <pre><code>ID X Y 10 0.1 some data as X 20 0.2 30 0.3 ... ... 120 0.5 </code></pre> <p>file2: </p> <pre><code>ID X Y 15 0.1 some data as X 30 0.2 45 0.3 60 0.4 ... ... 120 0.6 </code></pre> <p>I am doing </p> ...
3
create local ubuntu package repository
<p>I am attempting to create an offline package repo for ubuntu 16.04LTS. I have a repo served out over a small web service, and my sources.list updated to use my local copy. my sources.list contains the following</p> <pre><code>deb http://192.168.0.169:8080/ubuntu/ xenial main universe multiverse restricted deb http...
3
Reactivity not working inside the loop for unknown reason in vuejs
<p>I'm struggling to get working the reactivity in vue.js inside the loop. Loop is rendering without any issue, But, when trying to fire an event it updates the content but not visible or render data in the page.</p> <p>I've used the latest version of vue.js with bootstrap and jquery. I've tried adding <code>key</code...
3
Client server authentication with self signed certificate - Curl is working but Apache HttpClient throws exception
<p>I'm trying to implement client and server authentication with Apache HTTPClient, and to test it with a self signed certificate. I've tried to follow several tutorials and answers to similar questions here but with no success. I've tried to detail as much as possible all the steps that I've been doing, hopefully some...
3
How to import data from another package
<p>I have one package (say <code>testpackage1</code>) which contains a method called <code>readData()</code>.</p> <p>This method reads a <code>test.data.rda</code> file that is placed in the data folder of <code>testpackage1</code> and after some operations, returns a data frame.</p> <p>This is the only R file in <co...
3
Best way to sync VBOs between threads
<p>So I have a minecraft-like chunk system, meaning it's one block of render data. When the player moves around and enters another chunk, out-of-range chunks are being unloaded while new ones are being loaded, which makes it quite demanding since render data has to be calculated in another thread first before it can be...
3
Inheritance: use inherited methods from parent pointer
<p>I'm working with some production code, some of which I cannot safely modify (without breaking things). My issue is that it I would like to use a specific method, one of the parameters of which is a pointer to a class. However the class as the parameter does not do what I want it to. </p> <p>So I wrote a sub-class o...
3
Different types JSON file using ObjectMapper
<p>I am using AlamofireObjectMapper to communicate with a backend server. The result of one of the requests is an array of items, which contain two values:</p> <ul> <li>A "typeIdentifier" indicating which type of data the second value ("arbitraryData") is of</li> <li>A "arbitraryData": <ul> <li>If "typeIdentifier" C...
3
How to keep text horizontally during rotating transform of containing view
<p>Making custom UI control, something like rotation wheel, looks like this: <a href="https://i.stack.imgur.com/XXici.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XXici.png" alt="enter image description here"></a></p> <p>As you can see labels positioned "on radiuses", but i need place all labels ...
3
How to compare trimmed variable in SQL statement?
<p>I have a SQL statement which includes three database tables. I am comparing some IDs and DESCRIPTIONs and now I need to compare results FIRSTNAME, MIDDLENAME and SURNAME. </p> <pre><code>SELECT UGOVARATELJ_OSIGURANJA AS ULJEZ FROM INS_RAZNO.TEST_DOWNJONES WHERE UGOVARATELJ_OSIGURANJA IN (SELECT FIRSTNAME||' '||M...
3
Prevent link from looking like button
<p>I need my links to look like links and not buttons. I've tried using removeClass to remove</p> <pre><code>class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-state-hover" </code></pre> <p>and removeAttr to remove </p> <pre><code>role="button" </code></pre> <p>but both don't work. H...
3
swift 3.1 reading CSV or PLIST file from web
<p>I'd like to use readStringFromURL method to obtain a file from a plist and then use it on insertDataInArrayFromPlist in order to display it or put it on CoreData, substituting <code>let path = Bundle.main.path(forResource: plistFileName, ofType: plistFileExtension)</code>. </p> <p>the ISSUE the try statement gi...
3
Linq results are displayed in different ordering
<p>I am currently fiddeling around with the AdventureWorks sample database and LinqPad, for scratching out some ideas.</p> <p>This is the query in question:</p> <pre><code>SalesOrderHeaders.GroupBy (soh =&gt; new {soh.CustomerID, soh.BillToAddressID}) .Where(soh =&gt; soh.Skip(1).Any()) ...
3
PHP calculation result not showing correct currency format
<p>In the following code I am trying to get the results:</p> <pre><code>$time_base_cost_day; </code></pre> <p>and</p> <pre><code>$time_base_cost_month; </code></pre> <p>to show with correct currency comma separators like <code>$1,456.00</code> or <code>$100,456.00</code></p> <p>I have tried a couple of examples bu...
3
What is the syntax for target multiple tags in css
<p>How should one go about targeting multiple html tags at once in css? Is it essentially just: </p> <pre><code>h1 h2 h3 h4 h5 h6 { font-weight:lighter; } </code></pre>
3
Guidance needed - how to track nginx-docker-rails performance issue
<p>My Rails application is deployed on Amazon elastic beanstalk using Docker. Web requests flow into an nginx web server that forwards them to the thin rails server residing in docker. Somewhere along the way there's a bottleneck. Once every 50 requests (or so) I see nginx reports serving time which is x40 higher than ...
3
Offsetting time_t in C++
<p>I am dealing with timestamps generated by a system where the epoch is not the standard UNIX epoch of seconds since midnight of Jan 1, 1970 (it starts somewhere in 1965 instead). <a href="https://stackoverflow.com/questions/20521750/ticks-between-unix-epoch-and-gps-epoch">This</a> question is kind of related. So, I h...
3
Emulator crashes after running code
<p>This is the XML file for the main fragment that i am currently dealing with. the problem i am having is that when i clean the project it does not give me any errors but when i run the program the emulator crashes.</p> <pre><code> &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
3
How to set current page dynamically in flexbook?
<p>I am using a Flexbook which contains 2 BorderContainer. The code is shown below</p> <pre><code>&lt;controls:FlexBook id="book" x="20" y="20" width="100%" height="100%" horizontalCenter="0" animateCurrentPageIndex="true" showCornerTease="true" animatePagesOnTurn="true" ...
3
Custom action on failed user login
<p>Is it possible to run custom action (e.g. run some script) on failed login attempt in windows? I'm thinking about .NET application that would send messages if someone would try to access my laptop but I really don't know where to start...</p>
3
print lines if $2<25 from text files with sed or awk
<p>I would like to <code>print $1 and $2 if $2&lt;25</code>from text files. I also need to get the total number of students with marks less than 25 from all files. How can I do this with awk or sed?</p> <pre><code>students marks jerry 12 peter 35 john 5 jerry 15 john 10 </code></pre> <p>Desired...
3
Why does this boost::spirit::qi rule not match the input?
<p>I tried to continue to work on my previous example and expand the rules. My problem is, that rules that use ID_IDENTIFIER do not work - although I know that the lexer is working (using unit tests).</p> <p>Here's the example:</p> <pre><code>#include &lt;boost/spirit/include/qi.hpp&gt; #include &lt;boost/spirit/incl...
3
Text coming through onto overlapping div?
<p>I have a table where each cell has some text in it. I want a div to pop up and to cover the table but when the div pops up, it covers the table's borders, but not the text. It looks as if the text in just on the div. I have played around with the background-color and opacity, but nothing seems to work. Can anyone he...
3
RuntimeError: Can't determine home directory
<p>I'm trying to run a PYthon Script on a server using xampp. When trying to import matplotlib I get the following error:</p> <pre><code>[Fri Mar 13 10:46:36.219708 2020] [cgi:error] [pid 15320:tid 2012] [client ::1:54631] AH01215: File "C:/Users/gfranosc/Downloads/xampp-portable-win32-7.2.1-0-VC15/xampp/htdocs/Pyth...
3
Android ViewFlipper auto animation / looping breaks at last child view
<p>I have made a ViewFlipper to simulate a slideshow component looping the slides continuously. I configured it be:</p> <pre><code>mViewFlipper.setAnimateFirstView(true); mViewFlipper.setAutoStart(true); </code></pre> <p><strong>Everything works fine until the last slide (or child view). At this moment the first slid...
3
Catching uncaught exceptions
<p>In my workplace we are mantaining a lot of ecommerce websites, some coded better than others. On some of those, sometimes uncaught exceptions are thrown, and showed by the alertbox from the flash player debug (If you have it installed).</p> <p>To rise the average user experience I'd like to report all those excepti...
3
Cocos2d Changing Scenes: BAD_ACCESS Exception
<p>I have sincerely tried to understand the error from any remotely related question I have seen here. However, the issue that I am having is that when I try to transition from my level1 scene to levelselector scene, the game crashes with the bad access exception. The menus and transitions worked flawlessly while I was...
3
How do you download a file from Azure Data Lake when you know the type of the file but not the name?
<p>I can run the following to download the file &quot;some/path/known_name.json&quot;</p> <pre><code>def download_file(): try: file_system_client = FileSystemClient.from_connection_string(...) full_file_location = &quot;some/path/known_name.json&quot; target_file_client = file_system_client...
3
Create a record for each record from another table and set the id to the field
<p>I need to write a migration. There is a profile_details table and an account table. I need to create an record in profile_details for each record in the account table and set the profile_details_id field from the account table to any id from the profile_details table. It doesn't matter which id the account record wi...
3
Reactjs docker nginx app keeps throwing EMFILE: too many open files, open '/app/build/
<p>I'm running into this issue anytime there's a lot of traffic on the site. Below is a snapshot of the error logs. I've been trying to pin point what's causing the error with no success. I can't replicate the error locally.</p> <p>I'm serving the production built using</p> <pre><code>npx serve -s build -l 80 </code></...
3
Need to implement custom action on ACTION_PROCESS_TEXT
<p>I am trying to implement a custom action when we select a text written in EditText in android. I tried to check multiple sources for this but I am not sure why its not working for me I followed the tutorials or medium blogs but was not able to do so.</p> <p>Links followed by me:<br /> <a href="https://medium.com/and...
3
Path = "C:\Temp\abcd.pdf" why its not printing full path? "C:\Temp\abcd.pdf"
<p>I am trying to print</p> <pre><code>Path = &quot;C:\Temp\abcd.pdf&quot; print(Path) </code></pre> <p>output:<code>C:\Tempbcd.pdf</code></p> <p>Why its not printing full path? <code>&quot;C:\Temp\abcd.pdf&quot;</code></p> <p>Does it read \new line?</p>
3
Papaparse local file not showing any data
<p>I'm trying to parse a local relative csv file using papaparse however it doesn't return any data at all. The two files are located in the same folder locally. Not sure what im doing wrong here.</p> <p>Here is my code so far....</p> <p><strong>index.html</strong></p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang=&qu...
3
Is there any VS code extension for FreeBSD?
<p>I want to open a folder on a remote machine which runs <code>FreeBSD</code>. Is there any extension in VS code? Is there any alternate way to easily edit files on a remote machine?</p>
3
Python: Modifying pprint behavior for a class or object?
<p><strong>Note:</strong> This question is about the mechanics of pprint and not asking about namedtuples. Namedtuples are used as a tangible example, but the question is not &quot;how do I make namedtuple more beautiful for pprinting?&quot;</p> <hr /> <p>What method does <code>pprint</code> call to display an object'...
3
Finding max path in a maze skipping 2 cells
<p><a href="https://i.stack.imgur.com/O5bMY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O5bMY.png" alt="enter image description here" /></a></p> <p>Finding max path from (0,0) to (5,7) skips cells 1,5 and 2,5. Can anyone explain why? I get 3 different paths, but not the max path which the questio...
3
How to run DatabaseUtil.precomputedKNNQuery method of LOF class on two different threads
<p>I want to reduce runtime of DatabaseUtil.precomputedKNNQuery method by running this method on two different threads and KNNQuery is an interface.</p> <pre><code> KNNQuery&lt;O&gt; knnq = DatabaseUtil.precomputedKNNQuery(database, relation, getDistanceFunction(), k); </code></pre> <p>I divided this method of LOF...
3
Bundle synchronization in B2C project
<p>I am working on a B2C project.</p> <p>We are using customized bundle implementation in our project.</p> <p>However we were struggling with making bundle synchronization work.</p> <p>With some effort, we managed to find the ImpEx to synchronize the Bundle:</p> <pre><code> UPDATE CatalogVersionSyncJob;code[unique=...
3
Laravel eloquent order by subquery
<p>I have a problem with ordering by columns in subquery (lastname, firstname).</p> <p>I already tried this code as suggested by other posts:</p> <pre><code>-&gt;with(['customer' =&gt; function ($query) { $query-&gt;orderBy("lastname", "asc") -&gt;orderBy("firstname", "asc"); }]) <...
3
Determine whether in two rows one is a header or not
<p>I am trying to do a task that is quite simple to do by a human: detect whether the first of two rows is a header row. Here's an example of sample inputs:</p> <p>Example1: yes</p> <pre><code>name,age bob,12 </code></pre> <p>Example2: yes</p> <pre><code>first,last bob,jones </code></pre> <p>Example3: no</p> <pre...
3
How to get Title Text color of Toolbar?
<p>In my current project, I'm trying to translate color of Toolbar and it's Title Text from current color to a new color. But I can't find a function in the Toolbar something like <code>toolbar.getTitleTextColor()</code> but there is a function to set color. </p> <p>Here's my layout </p> <pre><code>&lt;com.google.and...
3
JPA Hibernate Configuration Errors
<p>I want to enable JPA for an EJB module, in an IntelliJ J2E project. I don't have an existing database schema to import; I want to generate the schema and tables from my EJB POJO class. I then want to generate ORM mappings.</p> <p>I've enabled JavaEE Persistence framework support in IntelliJ, with Hibernate as the p...
3
chrome extension - force default_pop content
<p>current using content_scripts to produce an alert upon url match, example:</p> <pre><code>"content_scripts": [ { "matches": ["https://www.google.co.uk/*"], "js": ["alert.js"] } ] </code></pre> <p>alert.js:</p> <pre><code>alert( 'Hello, world!' ); </code></pre> <p>but rather than producing...
3
SLURM squeue format argument fails from subprocess.Popen
<p>I'm trying to call the <a href="https://slurm.schedmd.com/squeue.html" rel="nofollow noreferrer">SLURM squeue</a> from a python script. The command,</p> <p><code>/usr/bin/squeue --Format=username,jobid,name,timeleft</code></p> <p>Works fine from the command line, but fails from <a href="https://docs.python.org/3/...
3
jQuery Scroll Event Not Working With Section
<p>I'm trying to make a simple scrollspy with jQuery Scroll event but it fails. Here is my JavaScript part:</p> <pre><code>&lt;script&gt; $(document).ready(function(){ $("#credit_card").scroll(function(){ console.log('OK'); }); }); &lt;/script&gt; </code></pre> <p>And HTML part:</p> <pre><code>&lt;secti...
3
Most efficient way to detect current element in scroll navigation
<p>Im not sure how to find what I need (name it) so I count on you to explain it for me.</p> <p>I need to create javascript content navigation based on "post" or "comment" system. First of all I want to emphasize that content is not plain text but It contain HTML, images and other objects that can resize during usage....
3
React Component div id will not hide what used in map loop
<p>I have this code in an index.html file which loads with the application:</p> <pre><code>$(window).on('load', () =&gt; { $('#one').hide(); $('#oneb').hide(); }); </code></pre> <p>And this affects the component:</p> <pre><code>import React from 'react'; const Test = (props) =&gt; &lt;div id="MyDiv"&gt; ...
3
Text shows in header instead of new section BS4
<p>I have a problem with my one-page website. My new text section shows in my header video. instead in my new section. I want it after video header. What am I doing wrong?</p> <p>My HTML</p> <pre><code>&lt;header&gt; &lt;div class="container"&gt; &lt;div class="bg-wrap"&gt; &lt;video poster="poster.png" auto...
3
Merge columns from Multiple Sheets into Summary Sheet without blanks
<p>I have many sheets of which some are <strong>A, B, C and D.</strong> Each of them have different data sets, however columns <strong>E,F,G</strong> have the same type of data.</p> <p>I would like to merge the data from the columns E,F,G of the sheets A, B, C and D Paste in <strong>Columns A,B,C</strong> of <strong>S...
3
ssrs footer dynamic textbox
<p>In the <code>footer</code> of my report, It contains <code>textbox 1</code> and <code>textbox2</code>. </p> <p>I want to textbox 1 be <em>hidden both on the page 1 and 2</em>. But, I only know how to hide it on the page 1. I am using expression <code>=IIf(cstr(Globals!PageNumber)="1", True, False)</code>in the vis...
3
Fixed iOS status bar overlap in PhoneGap but status bar not Showing
<p>I developed IOS application using <code>PhoneGap</code>.Status bar overlap in Our page content,Now i Played </p> <p>I am not using storyboard, so I can use this code in your <code>AppDelegate.m</code> in did <code>finishlaunching</code>:</p> <pre><code>if ([[[UIDevice currentDevice] systemVersion] floatValue] &g...
3
SQL: Relation between different rows of two tables
<p>I'm creating er-diagram for "Airport" database. And I got stick with tables "Flight" and "Airport" . In table "Flight" I have 2 columns: "Departure_place" and "Arrival_ place". Both of it should be connected to values in table "Airport". So, How can I make that in the proper way on er-diagram and on sql?</p> <p><a ...
3
ode45 error, index out of bounds because numel(x)=1
<pre><code> function xx = test(x, t) xx(1) = x(2); xx(2) = x(3) * cos(x(4) + x(1)); xx(3) = 0; xx(4) = 0; end </code></pre> <p>That is my script, confused as to why I am getting this error. </p>
3
How to read the `<td>` values of a webpage `html` table?
<p>I have a webpage, and when I view the source I get the following:</p> <pre><code>&lt;td&gt; &lt;a href="www.example.com"&gt;Ryhanu Datta&lt;/a&gt; &lt;/td&gt; &lt;td&gt; daffodil&lt;/td&gt; &lt;td&gt; b2/24 &lt;/td&gt; </code></pre> <p>How can I read the <code>&lt;td&gt;</code> values of a table on a webpage u...
3
Firebase data ordering
<p>I feel as if I'm missing something big when I use firebase in my android app. I have been using</p> <pre><code>push(); </code></pre> <p>to put my data in firebase with a unique id. I have been accessing this data in an activity using the ChildEventListener:</p> <pre><code>ref.addChildEventListener(new ChildEventL...
3
C++: ADT Base class with hard-coded Derived classes vs all-encompassing class built from file-input
<p>Which is a better design: An ADT Base class with hard-coded, concrete derived classes and instances or all-encompassing class whose instances are built from file input?</p> <p><strong>EXAMPLE:</strong></p> <pre><code>class ADTSpell { ADTSpell(std::string name, int min_damage, int max_damage); virtual ~ADTS...
3
In meteorjs, where should I declare a function, so calls to it work from anywhere?
<p>And if this function needs other libraries declared before it? (such as bootstrap, less, paperjs)</p> <p>In other words, how can I control the import order?</p>
3
SQL Statement Using Embedded Selects
<p>Okay, this works:</p> <pre><code>SELECT DISTINCT(USER), COUNT(DISTINCT (USER)) AS numrows FROM `sometable` GROUP BY USER ORDER BY USER asc LIMIT 0, 20 </code></pre> <p>What I need to do now is to limit results to numrows > X. Tried a number of solutions using embedded selects, but no luck.</p>
3
Sticky navbar makes content jump on way back up
<p>I Have a simple site set up with a header, navbar and content. When the page reaches the navbar, the position becomes fixed so the navbar sits at the top of the page - at this point, the navbar height also gets a bit smaller (as I like this effect) - I have done this by adding separate classes, fixed and thinner to ...
3
How to get number of resources in directory in spring?
<pre><code>@Value("file:" + "${d:/my/dir/}") private Resource dir; </code></pre> <p>How can I get the number of files in that resource dir? Unfortunately the <code>Resource</code> interfaces does not offer any getFiles() method...</p>
3
ListProperty vs StringListProperty on Google App Engine
<p>I want to store lists of integers (user ids), should I make them strings and use a StringListProperty, or just use a ListProperty, I'm wondering what is more optimized, the specific StringListProperty of the heterogeneous ListProperty (when used with only Integers).</p> <p>I will need to add users to the list until...
3