title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Invalid hook call which I can't seem to fix
<p>title pretty much says it, I've looked at some examples, but none of the fixes really worked for me. I understand it's the const, moving it within the class and out of the export, no luck. Can't seem to get it working. Anyone got any ideas? Thank you.</p> <p>I get the error below at the line <code>const [ws, setWs]...
3
1,396
How to filter by file path in Google apps script
<p>I am trying to have the following script filter by file path. Ideally this should only show results from the folder marked 'GUEST' in my drive. Right now it shows those and anything else with the shared folder ID of this root (I do not want to use the GUEST folder ID because I will later use this to filter other use...
3
2,858
self.kill() not removing sprite after Collision between Shot out Bullet and PowerUP
<p>I'm trying to shoot out bullets right now and have them collide with a powerup successfully. Right now, I expect to do this because my bullet class has a checkCollision function. I also have called bullet.update in my update class in the GameScreen, so I'm not sure what's happening. </p> <p>Here is my Bullet class:...
3
1,867
How to pass value from ModalPopupExtender to Gridview footer row textbox on buttonclick
<p>I am trying to pass value from listbox in ModalPopupExtender to textbox in gridview footer row textbox in parent page. In the current scenario the application breaks on button click. I have tried using Javascript,juery and C# but all results in same. Does somebody has any suggestion on how to do this? Below is my co...
3
1,367
Parsing unnamed nested arrays with minimal-json?
<p>So I'm working on a fairly simple Java program which grabs market data from cryptocurrency exchanges and displays information to the user. I am using the minimal-json library.</p> <p>Here is my current code:</p> <pre><code>public class Market { static JsonArray arrayBittrex; public static void startTimer(...
3
1,340
FB share loads different image than og property provide
<p>I researched a lot about FB share issues but yet haven't resolved mine. I think I even have found the problem in these posts- <a href="https://stackoverflow.com/a/26714882/5348972">https://stackoverflow.com/a/26714882/5348972</a> <a href="https://stackoverflow.com/a/35653463/5348972">https://stackoverflow.com/a/356...
3
2,475
Delete duplicates in large dataset based on condition
<p>I would like to delete duplicates in a very large dataset (millions of rows) based on a condition. I thought about the following simplifying example to illustrate my prob:</p> <pre><code>test &lt;- read.table( text = " A 1900 1 10 45tz tztime1 01.06.1900 A 1900 2 9 45tz tztime1 01.06.1900 A ...
3
1,246
How to write an array of values to Firestore with SwiftUI
<p>Currently I have a screen that fetches a list of &quot;items&quot; from an &quot;items&quot; Collection. The user is supposed to be able to select multiple items, and add them to a document within the &quot;Movies&quot; collection when a button is pressed. I can't seem to figure out how to write the function to writ...
3
1,740
Why is this template literal argument changing the css grid layout?
<p>I created a simple horizontal tile layout using css grid areas within a larger grid. The content within the tiles are dynamically created from javascript and a json file. Not every tile contains the same amount of information.</p> <p>Three possible links may appear on the bottom of the tile. I used a ternary operato...
3
2,478
set background transparent in the bottomSheetScaffold
<p>I want to set a transparent background for bottomsheetscaffold in the jetpack compose but when I launch the app, the background is the default. how can I set a black transparent background to the jetpack compose bottom sheet? (Like BottomSheetDialogFragment in the xml)?</p> <pre><code>@Composable fun BottomSheet( ...
3
1,312
What is the best practice to get the required data into VueJS component?
<p>I'm building my first VueJS application which is intended to be used by hundreds of people in the future. I tried to make the individual components reusable and indpendent as possible. To achieve this i decided to let every component fetch its required data themselves. This works fine but i'm not sure if its best pr...
3
1,055
Exception when using a udf function with Spark DataFrame
<p>In Spark version: 2.4.0, I am trying to execute the code below on the given DataFrame: unfoldedDF:org.apache.spark.sql.DataFrame<br> movieid:integer<br> words:array -- element:string<br> tokens:string</p> <pre class="lang-scala prettyprint-override"><code>val tokensWithDf = unfoldedDF.groupBy("tokens").agg(countDis...
3
1,072
The inline button in telegram bot does not work
<p>I encountered a problem, *<strong>after pressing one of the buttons another menu appears, but there is no answer from them</strong>, there is no error in the terminal P.S if you just send a message, then everything is okay</p> <pre><code>@bot.message_handler(commands=['groups']) def get_group(message): markup = ...
3
1,677
How to change input command with button in Tkinter?
<p>I'm making a virtual assistant and I'm designing the interface for it. In line number 219-220 I want the input command to be replaced by a button in Tkinter but it fails when I log in, the virtual assistant greets me and doesn't show up on the interface screen and keeps saying &quot;you:&quot; &quot;Jarvis:&quot;. I...
3
7,150
zshrc outputing cryptic errors on iterm2 at loading
<p>I am a Mac user on osx 10.15.7 (Catalina). I recently updated brew and upgraded formulas with it. Since then, my terminal has become erratic and prints out these errors:</p> <pre><code>_zulu_init_setup_completion:9: compinit: function definition file not found /user/path/.zulu/packages/tipz/tipz.zsh:86: add-zsh-hook...
3
1,528
Is there a way to uniquely identity a dynamically added element?
<p>I am trying to <code>dynamically</code> <code>load</code> a bunch of <code>posts</code> from a API and then implement a <code>like button</code> for each of them.</p> <pre><code>function load_allposts(){ fetch(&quot;/posts&quot;) .then(response =&gt; response.json()) .then(posts =&gt; { var enc =...
3
1,046
Django static media not showing picture
<p>after searching for a solution for hours which did not resolve my problem,I am posting this. The image from my media root is not showing up on my html. In chrome's console i get a <code>404 file not found</code>.Even though the image is there. I am using Python 3 ,Django 1.10 in Pycharm.</p> <p>This is the <strong>...
3
1,435
Highcharts live data, json ajax
<p>My head is going to blow.</p> <p>livedata.php loads json when page open. live.php add point to graph.</p> <p>From livedata.php i got output like this:</p> <pre><code>[["Date.UTC(2016, 07-1, 28, 15, 08)",37],["Date.UTC(2016, 07-1, 28, 15, 08)",37],["Date.UTC(2016, 07-1, 28, 15, 08)",37],["Date.UTC(2016, 07-1, 28, ...
3
1,728
Making a scala function tail-recursive when using yield?
<p>I've got a function that's working;</p> <pre><code>def iterate(start: Seq[TestObj], sources: Seq[TestObj]): Seq[TestSeq] = { val currentTotal = start.foldLeft(TestObj(0, 0, 0))(_ + _) (for (s: TestObj &lt;- sources) yield { val newTotal = currentTotal + s if (newTotal &lt; target) { iterate(start ...
3
1,029
does gtk work under windows 10
<p>I have installed MinGW64 (MSYS2) on Windows 10/Surface Pro 2. Then I installed GTK3 and many other packages with pacman, all the 64 bit versions. I have even been able to run gtk3-demo and a window pops up. BUT, I cannot get a simple c program to compile.</p> <p>program:</p> <pre><code>#include &lt;gtk/gtk.h&gt...
3
11,281
Highcharts dynamically creating a primitives and setting position and size
<p>Is it possible to place the rectangles over the lines?</p> <p>One rectangle should have one or more lines in yAxis. Rectangles should be added, moved and resized dynamically depends on data.</p> <p>Here's a <a href="http://jsfiddle.net/yv84/rzrc1vnv/" rel="nofollow">FIDDLE</a>.</p> <p><strong>HTML:</strong></p> ...
3
1,064
How can I change a wpf Databound grid cell based on the cell value?
<p>I'm relatively new to WPF, and am trying to change certain grid cells where the bound values are decimal zeros. The intent is to leave the cell blank where the cell has 0's. For example, if the TranDeposit column is zeros, I would like to change that to blanks. In ASP.NET this is very possible by using the DataBo...
3
1,988
Quick sort Partition Logic using single traversal pointer versus two left and right pointer
<p>I have implemented quick sort as below. In the <strong>partition</strong> logic I have seen everywhere two pointers (by pointers I do not wish to refer to C/C++ pointers, but simple variables to traverse) are being used, one starts to traverse the array from start (looking for an element greater than pivot) and othe...
3
1,365
terraform for_each index issue, invalid index
<blockquote> <p>The error seems to be same as what is mentioned in this post (<a href="https://stackoverflow.com/questions/66766117/terraform-for-each-loop-invalid-index">Terraform for_each loop. Invalid index</a>); though answer doesnt seems to be related to what I want to do; so posting as new question</p> </blockquo...
3
1,421
Why is my reducer not triggered using redux?
<p>Good morning everyone,</p> <p>I just set up redux on my react project. What i am willing to do is to get data when the component Dashboard is rendered. Data are expenses and incomes variables, which are the sum of all the expenses and incomes.</p> <p>The problem i get is that my reducer is never triggered. I get no ...
3
1,544
How to get Access-control list(POSIX ACL) for file in XCode project
<p>I can not get ACL for a file in XCode. It fails all the time. My code:</p> <pre><code>acl_type_t opt = ACL_TYPE_ACCESS; const char *path_p = path.fileSystemRepresentation; acl_t acl = acl_get_file(path_p, opt); if (acl == NULL) { NSAssert(NO, @&quot;acl_get_file %s&quot;, path_p); return; } </code></pre> <p...
3
1,118
(java.lang.VerifyError: Rejecting class) error when adding StanfordCoreNLP library in an Android Studio project
<p>I am developing an Android application (I am a beginner). I want to use Stanford CoreNLP 3.8.0 library in my app to extract the part of speech, the lemma, the parser and so on from the user sentences. </p> <p>I have tried a simple java code in NetBeans by following this youtube tutorial <a href="https://www.youtube...
3
1,266
How do I grab the option text from a value
<p>So I have this snippet of HTML:</p> <pre><code>&lt;div class="col-md-3"&gt; &lt;div class="form-group"&gt; &lt;select id="billcountry" class="form-control" name="bill_country" onchange="alert(this.value); console.log(this);" tabindex="16"&gt; &lt;option value="USA"&gt;United States&lt;/optio...
3
7,920
Cognitive Service Computer vision API returning ' cache control error'
<p>I'm trying to use Microsoft Cognitive Service computer vision API in JavaScript. I have to upload a canvas image to the API and get the result. I used the same program with 'param' and 'URL' change with Face API and it is working just fine. but in Computer Vision API it is giving this error: <strong>"Cache-Control:...
3
1,695
Create new Team Project TFS 2012 after upgrade from TFS 2008
<p>We recently upgraded our Team Foundation Server 2008 to Team Foundation Server 2012 and now when we try to create a new team project it throws the following error:</p> <pre><code>Module: Engine Event Description: TF30162: Task "Populate Reports" from Group "Reporting" failed Exception Type: Microsoft.TeamFoundation...
3
1,584
jQuery window resize doesn't work on iOS
<p>The site I'm working on is freezing on orientation change, which falls under the resize function. After a lot of rewriting, it would work with the resize event moved outside of the plug in. This resulted in other unwanted behavior, so it's not ideal.</p> <p>Any idea why it's getting stuck? Other plugins I know of, ...
3
1,235
jquery increment only works in chrome
<pre><code>$(".incrementer").click(function(){ var values = $("#layernumber").val(); var item = $("input[type=file]:last").clone(true); var txt = $(".layer_selector:last").after('&lt;br&gt;').clone(true); if($("#layernumber").val() &lt; 4){ $("#attach").append(item); $("#attach").append...
3
1,779
Nested Loops In Oracle Not Work Correctly (Exceeds the maximum)
<p>I wrote These Two queries For Sample Table to insert into &quot;z_exp14_resualt&quot; From &quot;z_exp14_main &quot;. The <strong>First Query Works Correctly</strong> (Null) But Second That For rows have due_date on the main table (Not Null), not works correctly! . I Think Problem is The loop.<br/> <strong>It start...
3
1,101
how we get multiple section_ids by day or week or month change in dhtmlxscheduler
<p>i'm displaying driver's schedule. Some drivers are on holidays so we display red box for them. And other drivers those are active so we display white block for them. I want to count active and non active driver by the calendar day changes. Hope you will understand my question.enter code here</p> <p><div class="sni...
3
1,275
Use parents child method in other child class (same parent)
<p>I have some issues with OOP. I just started OOP in php and i have some issues. So i have a question for you, maybe you'll help me.</p> <p>I have multiple classes (in this case 3)</p> <pre><code> &lt;?php //FILE class.NB.php class NB { //databse manipulations, curls pu...
3
1,306
Pytables efficiently read and process thousands of groups
<p>This should be easy enough, but it is taking me forever to compute this, and I can't think of any other ways to process my file. I'd appreciate any ideas.</p> <blockquote> <p><strong>TL;DR:</strong> I am looking for a way to shortcut <code>for key in store.keys()</code> and run the same analysis on all data conta...
3
2,403
Orchard - migrating site from iis 6 to iis 7.5 and the CSS/images/etc won't load
<p>We migrated our websites from windows server 2003 to server 2008 r2 using iis 7.5. Just simply coping the website folders to the new server, setting the app pool to 4.0 integrated and using a Domain account to run the app pool I can get the site to come up.</p> <p>that being said, no images or the CSS seem to be ...
3
2,629
Balanced Binary Tree in Java without setters
<p>I'm working on a school assignment about creating a balanced binary tree. Interfaces for the Node and the Tree were supplied with declared methods. However, the Node interface had only <code>getLeft</code>, <code>getRight</code> and <code>getValue</code> methods, no setters. Since we submit for grading only the impl...
3
1,788
Cover body with background image
<p>I am creating a portfolio for the freecodecamp course. I want my portfolio page to have a slide out navigation menu, that slides out once you click on the menu button. I also want to have an image covering the body completely and when the menu slides into the page the picture would move with the body. I already have...
3
1,036
PDO Insert Error - execute(array());
<p>I'm trying to do a registration system, and I'm getting this error:</p> <blockquote> <p>Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version f...
3
1,717
Sort element in a new array with twig
<p>After looping over bets with twig i receive those elements, i need to make an table tr line for those who have the same combination. How can i make a new array with twig where elements are grouped by the same combination ?</p> <pre><code>ReportBetEntity^ {#1486 ▼ -id: 116596140 -raceId: 4620200121103 -bookma...
3
1,096
From unix time in seconds to datetime in ISO-8601
<p>TL;DR. How to go from unix time in seconds to datetime in ISO-8601 format ? This looks more like a library question than a language question.</p> <p>I would like to be able to interpret the ping timestamp (unix time + microseconds) as a datetime to be able to visualize it or perform date and time operations on it. ...
3
1,673
The app crashes when adding new keys in firestore
<p>I made a test application following the example of Google with github, but with a few changes (less keys used in the firestore and less filters).</p> <p>The problem is this, the app crashing when I added new keys in the <strong>firestore</strong>, but the app works with two keys previously added.</p> <p>Crashes an...
3
2,087
Convert Nested Json to a single Key Value Pair
<p>I have a list of Keys :</p> <ol> <li>Server</li> <li>Date</li> <li>Severity</li> <li>process</li> <li>message</li> </ol> <p>If there is a key &quot;events&quot; in my Dictionary, I need to replace the key with &quot;Message&quot; and the value of &quot;indicator-type&quot; will become the value of the message</p> <...
3
1,750
JS lib: Datatables. Pagination not working right in server side call
<p>This is a total shot in the dark before I go diving into Datatables source code.</p> <p>So, I've implemented a JSON service to back Datatables. The problem is, I can paginate further than there is actual data.</p> <p>The only thing I can find around the subject that might affect pagination is returning it recordsT...
3
2,900
Select all but this element
<p>I have a few accordions setup and I'd like only one to be open throughout the whole page. I thought that the .not() method would achieve what I wanted however it is just immediately closing the current div.</p> <p>Here is what I have if anyone can spot where I've gone wrong:</p> <p>JS</p> <pre><code>$( document )...
3
1,207
Adobe Edge how to use correctly if / else statements in game?
<p>I'm building a game currently but I have a small problem with keeping the score. Basically I have an textfield that gets a random word input, then if someone clicks on the field or symbol containing the field then I want to check the random word input, if it's a correct word I want to update score textfield, if it's...
3
1,104
CryptoJS AES encryption with MD5 and SHA256 in C# not generated proper value
<p>I want to encrypt password using both in CryptoJS and C#. Unfortunately, my C# code fails to generate the proper value. This is my code</p> <pre><code>internal static byte[] ComputeSha256(this byte[] value) { using (SHA256 sha256Hash = SHA256.Create()) return sha256Hash.ComputeHash(value); } internal st...
3
1,167
Is it possible to display the input field below the header in the datatables?
<p>I am using the data tables. Is it possible to display the input field below the header?</p> <p>I tried the below code but I am getting all the input fields in the single <code>tr</code></p> <p>Please check the screenshot <a href="https://i.stack.imgur.com/NI8s2.png" rel="nofollow noreferrer"><img src="https://i.stac...
3
2,119
Writer dont writing in file but only create it
<p>Im working on converter. I load file, start reading date from it and creating directories by year, month and day(+ another one dir) in witch ends are those converted text files. Everything is fine while creating those directories but in text files is nothing or only chunk of it.</p> <pre><code>public static void co...
3
2,038
Java PrintWriter - How do you split into a number of documents depending on how many lines the user wants?
<pre><code>public class FileSplitter { public static void main(String[] args) throws FileNotFoundException { // Enter the number of lines you would like in each document Scanner scan = new Scanner(System.in); System.out.println( "Enter the number of lines you would like in ...
3
1,077
How to make it Responsive popover the customized popover template?
<p>How to make it responsive because when make it smaller the browser the popover was moving and not position in a right place or stick in button in short its not responsive. </p> <p>kindly please help me for my new beginning please...</p> <p><b>HTML</b></p> <pre><code>&lt;button class="btn btn-default btn-light te...
3
1,677
How do you define a custom logger without breaking your guard tests
<p>short question above, more details below (mostly unneccessary but figured they could be useful). I'm kind of new to guard and relatively new to rails but I've set up a nicely working rails project with guard running correctly (with rspec). The main thing is that both guard and the custom logger work perfectly and as...
3
1,338
Allocating random samples to polygons
<p>I am trying to script a random allocation routine. The sampling design has a region divided into numerous polygons or strata. A set, but different number of samples are to be allocated randomly to each strata (a minimum of 2 samples but as many as 7 in some strata). As such, I have a shapefile of the strata and in i...
3
1,228
Clickable accordion menu with two fields
<p>I would love to get some help with my menu. I've added simple accordion menu to my site, but i need to do one trick. Menu has "Products" title text and arrow to show that product has more submenus. I would like to separate those fields: - when i click on "Products" text it will take me to the linked page - when i c...
3
4,016
LINQ with joins and group generates enormous query and is slow
<p>My Entity structure is as follows:</p> <pre class="lang-cs prettyprint-override"><code>public class DisbursementItem { public int DisbursementNumber; public int IDDisbursementItem; public int IDReceiptItem; public decimal Amount; public decimal MeasureUnit; public decimal PricePerMU; publ...
3
1,638
Accelerate a simple postgres query
<p>I have a postgresql 13database with the following data:</p> <ul> <li>1 MaterializedView <strong>mat_view</strong> 79 rows, columns: id (bigint), start_ts (double precision) and end_ts (double precision)</li> <li>1 table <strong>time_tbl</strong>: 320 mio rows, 9 columns, relevant columns: gen_ts (double) and time_id...
3
1,629
c++ class constructor breaking program and cout?
<p>I have a program where just having cout statements works, however, adding in a class and calling its constructor completely breaks the program. I need help figuring out what the issue is.</p> <p>This code produces no output:</p> <pre class="lang-cpp prettyprint-override"><code>#include &lt;iostream&gt; #include &lt;...
3
2,557
Loop to add more input
<p>I have 3 more cars that I have but I need to know how to loop things like the car input so it will allow you to input it again if you do the wrong input same thing with the extras so they have to be either 1 or 0.</p> <pre><code>print(&quot;===================================================&quot;) print(&quot;====...
3
2,152
how to restore backup file in room database easily?
<p>I can't Find a good Solution For this. Even I Don't Know Anything About taking BackUp And Restore BackUp File in Room DataBase. Please Help Me How to Do it.</p> <p>I Don&quot;t Have Any Longer Question But Stack OverFlow Giving me Error That's why I wrote this Line</p> <p>I found Way to take Back up But I Can't foun...
3
1,390
Display NEO 6M data in Bluetooth Terminal with ESP32
<p>I am building a GPS tracker that sends the position data to an android with Bluetooth and displays the info in the Terminal. </p> <p>I am trying to use TinyGPS++ library to parse the data to more readable text. I can print the NEO 6M raw data in the Monitor and in the Bluetooth Terminal, but I only get 0 values whe...
3
1,156
Set Action buttons of notification bar
<p>I know it's kinda repeated question but i totally failed to know what's wrong. Actually , i am trying to create a media player that should be controlled from notification bar (play , pause , resume). The player is playing fine and the notification bar is displayed but when i click on the pause button for example it ...
3
5,126
Is there an efficient way to search variable parameters in mySQL with different results?
<p>I have quite a complex question and due to the specifications I've had no luck finding any help with this. Scratching my head for a few months.</p> <p>I have multiple parameters however in this question I'll focus on only 3 </p> <ul> <li>Category ($cat)</li> <li>Subcategory ($sub)</li> <li>Genre ($gen)</li> </ul> ...
3
1,083
Incorrectly displayed view created programmatically (android)
<p>I create some views programmatically, but on some devices they are displayed wrong. I have Layout in which i programmatically add spinner. This is my xml:</p> <p><code>container</code> - it's layout where i create spinner (programmatically)</p> <p><code>spinnerL</code> - here i add spinner</p> <pre><code>&lt;Lin...
3
1,252
cURL request works fine locally but isn't returning any data on the remote server
<p>I have a Laravel 8.x application that does a php cURL request on a cronjob to pull in some data from the EA.com website for the FIFA 22 videogame - it has recently stopped working for some reason, when I try this using the same codebase on my local machine it all works fine. However when I try this using my live app...
3
1,547
pika.exceptions.AMQPConnectionError in Django with Docker
<p>I'm using docker to run two django services. RabbitMq is installed in the host not in a container. When I run the django development server without the container rabbitmq connection works. But when I use the docker-compose up it gives <strong>pika.exceptions.AMQPConnectionError</strong> error. I restarted the rabbit...
3
1,211
Carrying specific body class onto every page | Wordpress
<p>I have the following code, when the user presses the 'x' I want to make sure it doesnt pop up again, how would I copy the body class 'demoBookedHidden' to any future page the user goes to?</p> <p>Currently the code works for the one page the user visits but the body class doesn't carry across to another page.</p> <p...
3
1,948
How to add different subclass object types from text file to an array list of type parent class?
<p>I was given an assignment to create a Employee parent class with several extended classes (manager, salaried employee etc.) I have completed the assignment but, I wanted to see if I could go a step further and attempt to read and add objects to a text file with different object types so that I can save objects creat...
3
1,107
bootstrap.js auto activate navbar li in header
<p>I added bootstrap in my project for responsive design. All is well but it will make active ABOUT US in header menu but at the time of page is loading, HOME remains active. but as pages loaded completely, ABOUT US become active.</p> <p>I have taken bootstrap from CDN, link is as below <a href="https://maxcdn.bootstr...
3
2,977
Get data in groups of "Week of..." when dates may be missing
<p>I have data in a table with dates, and want to count the rows by "Week of" (e.g., "Week of 2017-05-01"), where the result has the week's date (starting on Mondays) and the count of matching rows&nbsp;&mdash; even if there are no rows for that week. (This will all be in a date range.)</p> <p>I can partition things i...
3
1,712
Toggle and re-toggle several <div>-blocks
<p>I have a website with several blocks, each of them containing six with different statements like this:</p> <p>Block A</p> <ul> <li>A-1</li> <li>A-2</li> <li>A-3</li> <li>A-4</li> <li>A-5</li> <li>A-6</li> </ul> <p>Block B</p> <ul> <li>B-1</li> <li>B-2</li> <li>...</li> </ul> <p>In every block the user decides ...
3
2,447
Implementing custom iterator to work with std::sort
<p>My aim is to learn how to write a custom iterator from scratch. I have written the following iterator:</p> <pre><code>#include &lt;iterator&gt; template&lt;class D&gt; class SpanIterator final : public std::iterator&lt;std::random_access_iterator_tag, D&gt; { private: D* _data; public: explicit SpanIterat...
3
1,416
How to open a webview from imagebutton?
<p>I have three buttons in a fragment that when the user clicks on one it'll open a specific webpage within the application. When I try to run this code on the phone it crashes when I try to access the tab. </p> <p>My .java class is right here:</p> <pre><code>public class SocialMediaFragment extends Fragment { publi...
3
1,505
Make a Loop Array or Bulk to Insert Dictionary with Multiple Values from a parsed Json string into a SQLite database with FMDB iOS. Objective C
<p>I have a Parsed Json string in which I would like to loop the values and insert them into my FMDB Sqlite database. I can only put one record at a time in the database. i want to put all my records in the sqlite database.</p> <p>I know I have to make up some sort of loop for this.</p> <p>I want to take the parsed j...
3
1,384
How can I update/replace char at any position in the custom input field react
<p>I am trying to create a custom currency input field using reactjs .Here I am trying to update the value onKeyDown based on keypress I am able to remove the input value at any position but my input cursor is automatically moving at end of value and when I move the cursor and trying to enter value in between the exist...
3
2,476
SQL Server 2005 – How to split multiple Insert into... Output Select TOP (z)...From if (Approx) Max number of child rows in a Transaction is known
<p>I have these staging tables:</p> <ul> <li>Order (PK=OrderID),</li> <li>SubOrder (PK=SubOrderID, FK=OrderID) and</li> <li>Item (PK=ItemID, FK1=SubOrderID, FK2=OrderID).</li> </ul> <p>I established relationships on the client (C#.NET and copied tables to staging tables in SQL Server using SQLBulCopy). </p> <p>Now I...
3
1,495
Add a collapse/expand onClick nested submenu to an existing menu tree
<p>I'm working with the existing third-party code below for a single-level expandable/collapsible menu. I want to add a nested sub-menu that functions the same as the top-level &quot;opener&quot; span class.</p> <p>However, when I try to just duplicate the &quot;opener&quot; CSS and JS into a new &quot;sub-opener&quot;...
3
2,762
[Ask-Code Igniter]-Load modal doesnt show
<p>I have program that load data from database using CI then loaded into JQXgrid Jqwidget, in the JQXgrid I have customize adding button "proceed" this button will show specific data from database. <a href="http://i.stack.imgur.com/VmZly.png" rel="nofollow">This My App User Interface</a>. My plan is use modal from boo...
3
10,989
Shiny observeEvent shows first event, but not second, third
<p><strong>TL;DR:</strong> observeEvent is only working on the first instance, but not subsequent.</p> <p><strong>Explanation:</strong> In a small shiny app below, I dynamically build a URL based on user input, which points to the corresponding pre-rendered &quot;timer&quot; gif images I have hosted on GH. In this shin...
3
1,542
UnhandledPromiseRejectionWarning: error throwing inside of an async function without a catch block, promise which was not handled with .catch()
<p>I hope you can help me, I have been using node.js for a short time and only a week with puppeteer and I have made a small excrip to automate a task, when running the script it performs the process correctly at a glance.</p> <hr /> <p>However, the console throws me two types of errors:</p> <p>1st - UnhandledPromiseRe...
3
1,347
Why is chosen preventing a JavaScript conditional from working properly?
<p>There are two snippets below. I'm using Bootstrap 3 and Chosen for my <code>select</code> menus.</p> <p>The functionality with the following is that when a specific selection is made (i.e.; Social Services), then a second <code>select</code> menu displays. That menu goes away if Defendant, Minor or Witness are selec...
3
2,609
ClassCastException org.dom4j.DocumentFactory for tests in Wildfly Swarm & Arquillian
<p>I have a problem with running EJB tests with Arquillian in Wildfly Swarm, it is related to Hibernate and this question: <a href="https://stackoverflow.com/questions/35533847/wildfly-10-java-lang-classcastexception-org-dom4j-documentfactory-cannot-be-ca">wildfly 10: java.lang.ClassCastException: org.dom4j.DocumentFac...
3
2,908
Why is my http error response not being called when img ng-src is called?
<p>I have the following problem: I am trying to trap an HTTP 500 response from the server but the intercept is not getting the 500 response. This is generated by an img src call to an unauthorized URL (technically the server should be returning a 4xx, but it returns a 5xx --> its a 3rd party server. </p> <p><strong>Up...
3
1,240
If Statement Not Displaying Results
<p>So the rest of the code works as I need it too. The only part that doesn't work is listed below. What I am trying to accomplish is if the <code>SENTINEL</code> is entered once the program is initiated, <code>numResults</code> and <code>floatResults</code> will receive the following values. Where did I not code prope...
3
1,518
Help with 2-part question on ASP.NET MVC and Custom Security Design
<p>I'm using ASP.NET MVC and I am trying to separate a lot of my logic. Eventually, this application will be pretty big. It's basically a SaaS app that I need to allow for different kinds of clients to access. I have a two part question; the first deals with my general design and the second deals with how to utilize in...
3
1,121
How to transform data before loading into BigQuery in Apache Airflow?
<p>I am new to Apache Airflow. My task is to read data from Google Cloud Storage, transform the data and upload the transformed data into BigQuery table. I'm able to get data from Cloud Storage bucket and directly store that to BigQuery table. I'm not sure how to include the transform function in this pipeline.</p> <p>...
3
1,069
How to Show and Hide with id when the checkbox is checked
<p>I have a problem, I would like to know how to display data thanks to their id when the chebkbox is checked.</p> <p>For example when the first checkbox is checked I just want the address named "0" and hidde the rest of the others adress I already try to do but I'm stuck and I would like to learn how to do .</p> <p>...
3
1,540
android application icon is no longer seen on device
<p>Android icon is no longer seen on device. (seeing default android icon instead)</p> <p>I'm using the following command as always: <code>react-native run-android --variant=release</code>,</p> <p>Today I've been getting errors while trying to run the app figuring out I was needed to add <code>multiDexEnabled</code> ...
3
1,217
JQuery Clear <ul> Two Menus Away
<p>I have three menus: College, Department and Program. When a College is clicked, the list of Departments belonging to that College is shown. When a Department is clicked, the list of Programs belonging to that Department is shown. </p> <p>My problem is that when I click a new College, the Departments re-populate in ...
3
1,075
Javascript interval loop stuck
<p>I have a Javascript interval loop written that just sticks on the running part unless the buttons i made to stop it are clicked. </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt; &lt;title&gt;JScript Loop&lt;/title&gt; &...
3
1,466
Spring Bean never set as ManagedProperty in JSF Bean
<p>Notice: Problem already solved, currently I can't post the answer but just posted to inform for a rare case. See comment at bottom. Thnx</p> <p>I am trying to inject a spring bean into JSF bean as managed property. No exception is thrown when JSF Bean is initialized. But ManagedProperty is null. I put some logs on ...
3
1,204
Persist selected item on ASP.Net custom control
<p>I have built the following custom control that I have built and I set the selected value when a bullet list item is clicked.</p> <p>My problem is that I need to set the css class (SetSelected()) after postback, but it always picks up the previous entry in the viewstate rather than picking up the new value.</p> <p>...
3
1,605
Plot renders just before being hidden using conditionalPanel
<p>I have a graph that I only want to display if it wouldn't take too long to render, otherwise I want to have a button the user can press to render it. My problem is that the graph renders before being hidden in some circumstances.</p> <p>Open this minimally reproduced example up and try the following steps</p> <p>U...
3
1,381
Transaction not getting committed
<p>Working on a Spring 5 and Hibernate Project. Using Spring for bean management, transaction and MVC. The changes are not getting committed to database though i can see the insert statement in the log. There is no error. There is no issue with select statements. I could login into the application. Below are my configu...
3
1,301
Adjust preview image preview size in camera API 2 android
<p>I am creating a custom camera app. The height of my TextureView is set to 300 dp. </p> <p>I want to set the video resolution as 640 x 480 with a preview height of 300dp(TextureView Height).</p> <p>I want the camera preview to fill this area without stretching or cropping. How do I achieve this?</p> <pre class="la...
3
11,802
App wont run on Eclipse emulator
<p>I am trying to check my app i have coded in Eclipse. For some reason on the emulator it is unable to load. It doesn't gives extra info other than "Unfortunately your app has stopped". I couldn't figure out why through the logcat. If I could get any help with this i would greatly appreciate it.</p> <p>Here is the j...
3
5,046
How do you show ng-repeated children of filtered array?
<p>I have a drop-down filtered array, but the array I'd like to use is a little more complex, with nested data, similar to this <a href="http://jsfiddle.net/vojtajina/u75us/" rel="nofollow">http://jsfiddle.net/vojtajina/u75us/</a></p> <p>I'd like to combine both ideas, but can't figure out why my fiddle doesn't displa...
3
2,331
Wrong screen showing after start with ScreenManager
<p>I am trying to code a simple quiz game. There're supposed to be multiple screens, the first screen (LoginWindow) being a simple login form. After the login and confirmation of the right name and password being entered the second screen (GameWindow) is supposed to show up, but it doesn't. Right from the start the sec...
3
2,204
Change data displayed in RadioButton.Item React Native
<p>In my code I am looping through an array of data and displaying that data as Radio button alternatives. What I want to do is to take away the item that the user has chosen from the other lists that are rendered. I have only succeeded to take away the data from the current list that the user has expanded, not from th...
3
1,872
react-native can't open expo project
<p>I am trying to run an expo project <a href="https://snack.expo.io/@kirimi/collapsible-header-with-tabview" rel="nofollow noreferrer">Collapsible Header with TabView</a> it works fine in this link. </p> <p>But when I copy and paste the code to my own expo project, it gives me an error. </p> <p><code>Invariant Viola...
3
1,407