title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Send and include JSP dynamically in another JSP
<p>I currently have a Jsp called menu-container that loads a base menu that should appear on each of my pages, but each page will add options to that menu, those options go in a specific place, so I would like to know how I can send the Content to the menu-container (which is a Jsp) from another, here is the menu-conta...
2
2,163
Parse callback not called on object save
<p>I am running cloud code on Parse. I am running a query and for each query, I am doing a subquery. I will modify the results of my subquery. But having modified my subquery objects, I want to modify my query results objects to reflect that I have processed them.</p> <p>Using promises, I can make my initial query, it...
2
1,681
AWK comparing two columns in two files output matching row - missing rows from matches
<p>I have two txt files (tab delimited) I'm trying to compare with awk. I want to compare column 1 of file1 to column 5 of file2 and any time a string from file1 column 1 matches file2 column 5 I want to print (eventually to a new txt file) the entire row of file2. Theres about 14000 lines in file 1 with just one colum...
2
1,253
Exception :Server IPC version 9 cannot communicate with client version 4: using Hcatalog with Hive-0.14.0
<p>I have following tools : <strong>Hadoop-2.6.0, Hive-0.14.0, hbase-0.94.8, sqoop-1.4.5, pig-0.14.0</strong> installed in a psuedo distributed environment on <strong>Ubuntu 14.0.4.</strong></p> <p>My goal is to use Hcatalog as an interface to work with Hive, Pig, MapReduce applications.</p> <...
2
1,902
Why hibernate does not save changes to db?
<p>It's my configure file hibernate.cfg.xml</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"&gt; &lt;hibernate-configuration&gt; &lt;session...
2
2,848
How to unit test method with TryUpdateModelAsync invovled in ASP.NET CORE Razor Page Web App?
<p>TryUpdateModelAsync is an internal protected method of abstract class PageModel, which makes it, to my view, unmockable. Is there any approach to unit test any of the action that involves this method? </p> <p>I saw this solution on the internet: <a href="https://stackoverflow.com/questions/39259025/asp-net-core-mv...
2
4,375
JDBC: ExceptionInInitializerError when connecting to database
<p>I'm trying to connect to a database using the code below but I'm getting a java.lang.ExceptionInInitializerError on the console output. Anyone where the problem's coming from? Feel free to compile the code below to verify</p> <pre><code>import java.sql.ResultSet; import java.sql.Statement; import java.sql.Connectio...
2
1,104
Compression and encryption SOAP - ASP.NET web service
<p>I need advice. I zip and crypt SOAP message on web service and client side. </p> <p>Client is winforms app.</p> <p>If I only crypt SOAP message, it works good. </p> <p>If I only zip SOAP message it also works good.</p> <p>I use SOAP extension on crypt and zip SOAP.</p> <p>I use AES - Advanced Encryption Standa...
2
4,265
Student attendance time in time out
<p>i made a student attendance system using barcode scanner and its already working the time in time out works well but my problem is this after the student scan his/her barcode for time out the next time he/she scan his/her barcode the remarks should be time in but my code only sticks with a time out remarks.</p> <p>...
2
1,175
GSON Object (RESTful api)
<p>I have a client (java) that send some json data to my server (c++). After this my server respond with some informations depending the operation made my java client. For now its works.</p> <pre><code>Example body request: { "userEmail": "email@email.com", "userPassword": "12345678" } </code></pre> <p>And the ...
2
2,514
How to align list items with vuetify (1.5)
<p>Our app uses vuetify for styling which for the most part is very good, I have come across something which I should not be spending this much time figuring out. Basically the issue is when using a scoped <code>item</code> . slot to customize items shown from a <code>v-select</code> it works great if all the items are...
2
1,124
kubeadm upgrade to 1.91 kube-dns failure
<p>I attempted to upgrade to 1.7 to 1.9 using kubeadm, kube-dns was crashloopig. I removed the deployment and applied the a new deployment using the latest yaml for kube-dns (replacing the clusterip with 10.96.0.10, domain with cluster.local).</p> <p>The kubedns container fails after not being able to get a valid r...
2
8,863
RecyclerView item selection is throwing error
<p>I tried to implement the item selection feature in <em>RecyclerView</em> with the help of <em>SelectionTracker</em> but getting <em>IllegalArgumentException</em> and the stacktrace is not intuitive as it only shows the metadata.</p> <p><em>this is how I am building the tracker</em> </p> <pre><code>wordAdapter.tra...
2
2,924
How to sign in for a Rspec request with new_user_session post?
<p>I am writing a very simple test: is my page displayed when my users is logged in? I use a Factory to create the test user, and request to check the case:</p> <pre><code>FactoryBot.define do sequence(:login) {|n| "user#{n}"} sequence(:email) {|n| "user#{n}@gmail.com"} factory :user do playground_id {...
2
1,248
foreach not working in codeigniter
<p>I am currently new to database query and other for codeigniter can not seem to quite get model working for what I am after.</p> <p>I have tried loading db in direct to controller and that works OK. But if I call my model does not want to work nothing shows up.</p> <p>Here is what I would like to achieve. </p> <p...
2
1,106
creating image thumb is not working
<p>Hello guys i have a file uploading page for my site that uploads one or more than one images. the </p> <p>problem is the creating thumb for my images whenever i am uploading the files so it should creating </p> <p>the thumbs for amount of images which is uploaded its showing confirmation massag but not creating </...
2
2,066
c: strategies for debugging obscure memory leaks?
<p>I'm working on a project in c, and I'm trying to understand how to debug an obscure bug that crashes my program. Its kinda large, attempts to isolate the problem by making smaller versions of the code are not working. So I'm trying to come up with a way to debug and pinpoint a memory leak.</p> <p>I came up with the...
2
1,833
HBase Remote Connection on Region Failure
<p>For the last two days I have tried just about everything to get a remote machine to connect with HBase. Below is the error I am receiving as well as all my configs. I am connecting to my VM via my laptop. VM is ubuntu, laptop is win7</p> <p>Any help will be greatly appreciated.</p> <p>/etc/hosts</p> <pre><code>...
2
2,693
How to get Images and CSS shown in login/error files for Tomcat authentication
<p>I have Tomcat authentication for my web app and my problem is that the login.jsp and error.html files used as login and error forms don't seem to support styling or images. I've tried getting the path of the files and they're showing that they're in the correct path, so I don't get it why they dont' support images o...
2
2,615
Gitlab pull push not working
<p><code>OVERVIEW</code></p> <p>I am using Gitlab server locally in ubuntu 13.10 and I got following output in these command</p> <pre><code>sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production System information System: Ubuntu 13.10 Current User: git Using RVM: no Ruby Version: 2.0.0p247 Gem...
2
1,942
Firebase Cloud Function (async) not returning result
<p>I am rather new to Firebase/Firestore/Cloud functions and been trying a little project where a client app calls a Firebase Cloud Function to generate some random keys (random numbers), adds them to Firestore, and when successfully written, returns these keys to the client app. Kinda like a random number generator.</...
2
1,247
Dynamic JSON key/value pairs generation in ESQL
<p>How to transform JSON response retrieved from external system to meaningful data (key/value pairs) in ESQL?</p> <p><strong>Retrieved JSON:</strong></p> <pre><code>{ "data": [ { "name": "application.info.header", "value": "headerValue" }, { "name": "en...
2
1,218
Common beforeSend in Ajax call and abort if conditions not satisfied
<p>I am trying to write a common functionality to all Ajax call as below. The abort is not working when I write it separately like below,it works if I add the beforesend in the same ajax as below, which is commented</p> <pre><code> $(document).ready(function () { $.ajax({ ...
2
1,169
How to initiate image slider after element is displayed
<p>I am currently having a problem where my flexslider image gallery is initializing upon pageload and breaking the functionality. This is because the flexslider is contained in a collapsed jQuery mobile tab that is set to <code>display: none</code>.</p> <p>The actual div that holds the collapsible content is generated...
2
1,585
The cause of blocking GC Allocation problem when starting an Android application
<p>I have recently encountered an unusual problem with Garbage Collecter allocation when beginning my application from Android Studio. My code compiles without errors and the program doesn't throw any exceptions on Runtime. Nevertheless, when I start my program, it doesn't respond.</p> <p><strong>My Logcat shows:</str...
2
1,187
Preconditions.checkNotNull Android Null pointer Exception
<p>I am trying to access my phone's internal storage to attach a file from internal storage. But anyhow I am getting an exception "java.lang.NullPointerException: uri at com.android.internal.util.Preconditions.checkNotNull". I have checked getCount method is not null. But still, i am facing this issue. what do I do?</...
2
6,708
How to store content of text file in Database using PHP
<p>//output Start </p> <p>Output File:-05012015.txt </p> <pre><code> This is of my output of file which is the mapper file used for the verification But all below no are store in the database .That No Description are as follow 34012015000180001000631931058620000607262Y22122014 N ...
2
1,732
Python: Attribute Error(NoneType object has no attribute split)
<p>I am trying to make some approximations discard.</p> <p>The function given below is throwing attribute error. What might be the issue? Kindly help me if possible.</p> <pre><code>def calculate_tps(filename,identity): ##command='tshark -r %s -R -T pdml diameter' first_time = None last_time=None tshark='tshar...
2
1,464
Exception: Cannot access a disposed object. Object name: Textbox
<p>I got this exception when I debuging in Visual Studio and don't have any idea to fix it. Please help. I used tooltip on the form, that's my guess of the cause. </p> <p>I just leave it there and let it run. The exception just happens.</p> <pre><code>Exceptions Details: System.ObjectDisposedException occurred ...
2
1,875
Error: self signed certificate when doing a migration to production
<p>I'm using Heroku and Postgres and trying to do a migration for a production database. Every time I try running my script, I keep getting this:</p> <pre><code>Package pg version 8.x.x not tested Please raise issue to support pg &gt; 7.x.x [5:24:41 PM] table schemaversion does not exist - creating it. [5:24:41 PM] ve...
2
13,213
How to get angular js $http.delete request working in image app
<p>Hi I have an image album app thats getting data from jsonplaceholder.com</p> <p>I coded up a $http.delete() method but it doesn't seem to be deleting photos by the index provided</p> <p>heres the html: </p> <pre><code> &lt;div ng-app="myApp" ng-controller="AlbumCtrl"&gt; &lt;div class="bar"&gt;...
2
1,065
How to get First Visible child item of android Horizontal scrollview on scrollChange event
<p>I need to find the first visible child item of android Horizontal scrollview on scrollChange event. I have followed this link <a href="https://stackoverflow.com/questions/24550862/how-to-get-first-visible-child-item-of-android-scrollview-on-scrollchange-event/24585563">How to get First Visible child item of android ...
2
1,971
Custom Cell Button tag always return zero
<p>I am in trouble with an issue for a couple of days now . The issue is i have a table with multiple custom table cell and each cell has multiple buttons . But i am always getting the tags value as zero. Below is my code</p> <pre><code>- (UITableViewCell *)tableView:(UITableView *)table cellForRowAtIndexPath:(NSIndex...
2
1,085
How to deploy GCP App Engine worker?
<p>I am trying to make personal apps on GCP- following the deploying a complex Python app to flexible Google Cloud environment tutorial [ <a href="https://cloud.google.com/python/getting-started/using-pub-sub" rel="nofollow noreferrer">https://cloud.google.com/python/getting-started/using-pub-sub</a> ]. In the 6-pub/su...
2
13,020
Pass Integer[] to AsyncTask - Android
<p>I am having trouble passing an ArrayList to a class that extends AsyncTask. The AsyncTask class, DownLoaderTask, is created in the DownloaderTaskFragment class. The code for the DownloaderTaskFragment and DownLoaderTask are below.</p> <p>The MainActivity of this application passes the ArrayList to the fragment by s...
2
1,328
Accessing WSO2-APIM using Nginx
<p>I am accessing my wso2 apim,store and publisher using Nginx. and want to access using the following:</p> <ol> <li><p>wso2 api manager to be accessed using nginx url as: <a href="https://nginx-ip/wso2am/carbon" rel="nofollow noreferrer">https://nginx-ip/wso2am/carbon</a></p></li> <li><p>wso2 store to be accessed u...
2
1,647
Spring Boot 2.1.1 Issue Accessing Tables in PostgreSQL that are within Oauth2
<p>I am trying to add postgresql support for OAuth2 with Spring Boot after following some examples to clean up my code.</p> <p>The problem is that I have to add a schema manually to my own schema scripts for the database to create despite specifying certain properties in the latest Spring Boot. Only after doing so do...
2
3,220
Keras taking too long, don't know if I am using GPU or CPU
<p>I am getting this information when I run my program:</p> <pre><code>Using TensorFlow backend. WARNING: Logging before flag parsing goes to stderr. W0723 16:10:32.496439 139881743095616 deprecation_wrapper.py:119] From /home/merry/anaconda3/envs/merry_env/lib/python3.7/site-packages/keras/backend/tensorflow_...
2
2,095
answered reload session in codeigniter after updating profile pic
<p>i have this code its running but i want refresh my session when i update a profile pic the current pic will be change by the new pic i dont know what to do this part <code>$this-&gt;session-&gt;???</code> help would be appreciate</p> <pre><code>public function upload() { $config['upload_path'] = './asse...
2
1,683
Grabbing values from Ajax AutoCompleteExtender with "Tab" or "Enter"
<p>I have a setup where a user can enter a zip code into an ASP.NET <code>TextBox</code> control, and I have an <code>AutoCompleteExtender</code> from the Ajax Control Toolkit attached to that textbox. It gets its data from a static page method on the ASPX page.</p> <p>When the user starts typing a Swiss zip code, e.g...
2
1,090
Center the Button Text Content in a universal app
<p>I am trying to center the text Content of a Button in Center,in my universal app,but this is what I get:</p> <p><a href="https://i.stack.imgur.com/KKGhB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KKGhB.png" alt="enter image description here"></a></p> <p>and this is my code:</p> <pre><code>...
2
3,654
Android - Cannot resolve method 'onActivityResult(int, int, android.content.Intent)
<p>I need to set/add a photo/movie as an attachment to ToDo App. Unfortunately the word: onActivityResult in line super.onActivityResult(requestCode, resultCode, data); is highlighted in red and i'm getting an error:</p> <p>"Cannot resolve method 'onActivityResult(int, int, android.content.Intent)' "</p> <p>AddActivi...
2
2,791
How to speed up cosine similarity between a numpy array and a very very large matrix?
<p>I have a problem where a need to calculate <code>cosine similarities</code> between a numpy array of shape (1, 300) and a matrix of shape (5000000, 300). I have tried multiple different flavors of codes and now I am wondering if there is a way to reduce the run time substantially :</p> <p>Version 1 : I divide my bi...
2
1,497
PyQt: How to set a mask over a QWidget to ignore mouse events but get the children events
<p>I want to <strong>overlap</strong> widgets and make them all functional, but I can't get this done through simple layout management. I found an example applying a mask over the widget, but is in <strong>C++</strong> and I am having a hard time trying to port it to <strong>python</strong>.</p> <p>The example is in t...
2
1,086
jQuery Slick carousel filtering not working when used with slider syncing for Shopify product images
<p>For the product images, I want to have small thumbnails and a featured image, which changes based on the thumbnail selected which I did with the Slider Syncing function.</p> <p>I also want the page to only product images of the color variant selected (e.g. show only blue product when the blue color variant is selec...
2
1,221
How to use keyListener in Java applet
<p>I have absolutely no idea on how to use <code>KeyListener</code> in an applet (okay, I've got an okay idea). I know it has something to do with setting focus on the applet, but I have no clue as to how to do that. My program runs fine as an application, but it just won't take in keyboard input as an applet. If someo...
2
1,395
horizontal menu and submenu with common border which must work in ie7 too
<p>I have some question around one horizontal menu, first of all let me show example what I want to reach <a href="https://www.mycleverphone.com/sergiu/Q/" rel="nofollow noreferrer">example</a>.</p> <ol> <li><p>Submenu must be aligned left with its parent but when I change at <code>#nav li{position:relative;}</code> it...
2
1,250
Plotting annotated heatmaps/clustermaps with multiple legends in Seaborn
<p>Following <a href="https://stackoverflow.com/a/53217838/4154548">an example on SO</a> to plot annotated heatmaps, I am running into an issue with legends. The poster used a workaround where the legends are created from invisible bar plots. This works for only two axes, so if I include anymore, they begin to run in...
2
1,257
Caps Lock script cleanup
<p>I was wondering if someone could help me clean up this code if possible; including merging the two functions into one. I'm new to javascript so I could really use some help.</p> <p>I was able to get this script working quite well, I just want to know if it can be refined and/or if there are any problems with it that...
2
1,080
How to stop user from sending request for the same time slot?
<p>I have this page in php where the user can click on the time slot and book a room. Now the issue I have found is Suppose an user1 books room from 4 to 6. Then another user2 comes &amp; request the room from 3.30 to 5. It takes the request which should not be allowed. The request is sent to admin and saved in the dat...
2
13,177
Go GORM nil relation being saved with zero struct values
<p>for some reason my GORM is trying to save a nil relation to the database as a zero struct and is then running into foreign key errors, because the foreign key ID is 0 (does not exist).</p> <p>I have the following model definitions:</p> <pre><code>type Member struct { gorm.Model EmployerID *uint `json:"...
2
1,242
customizing event buttons editor window in syncfusion scheduler with angular 8
<p>I'm working on angular 8 application which integrates syncfusion scheduler. I would like to customize the editor window that shows after double click in cell scheduler, but I'm getting errors. I tried the documentation examples but none of them worked for me please help</p> <p>I tried the examples provided in the d...
2
4,484
templateUrl in Angular2 Component not loading URL
<p>this is my Component</p> <pre><code>import { Component, OnInit } from '@angular/core'; @Component({ selector: 'homeView', templateUrl: '/home/home' }) export class HomeViewComponent implements OnInit { ngOnInit(): void {} } </code></pre> <p>I am using AngularJS 2 with TypeScript 1.8.5 and trying to cr...
2
2,509
Tensorflow/Keras: volatile validation loss
<p>I've been training a U-Net for single class small lesion segmentation, and have been getting consistently volatile validation loss. I have about 20k images split 70/30 between training and validation sets-so I don't think the issue is too little data. I've tried shuffling and resplitting the sets a few times with no...
2
3,343
Navigation submenu push a div below down (Responsive)
<p>I have created a menu with a submenu dropdown. However, the submenu works very well on a bigger screen for staying there and not pushing down but for responsive is I want is submenu pushing the div down. The following code below:</p> <p><div class="snippet" data-lang="js" data-hide="true"> <div class="snippet-code ...
2
2,483
Facebook Session.StatusCallback never get called in fragment
<p>I'm developing an app that's have a FB authorization, I have a main activity(fragment activity) which provides to user to login by his name/password or by FB, when he click's the "login through FB" button he'll be moved to FB-auth fragment and now it works <strong>pretty good</strong> BUT somehow the <em>Session.Sta...
2
1,985
Java - File Reading after exporting to executable jar file in eclipse
<p>In eclipse when I export to my code to an executable jar file, the jar can't find any files. The code I'm using is<br> <code>FileReader fr = new FileReader("src/pkg/Password.txt"); BufferedReader br = new BufferedReader(fr);</code> That is generating a <code>FileNotFoundException</code><br> Note: this code works fin...
2
2,891
WPF ICommand CanExecute(): RaiseCanExecuteChanged() or automatic handling via DispatchTimer?
<p>I'm trying to determine the best way to cause ICommands' CanExecute() to be reflected in the UI.</p> <p>I understand that the <strong>Dispatcher</strong> is the WPF (engine?) that handles UI drawing, and that by default, the Dispatcher evaluates ICommands' CanExecute() method upon instantiation as well as active us...
2
1,595
VBScript Error "Permission Denied" But Works Anyway
<p>I have a VBScript setup as a logon script in my GPO. I'm having an issue where every time it runs at logon, I get Permission Denied on the line:</p> <pre><code>set lf = fso.opentextfile(lfp, 2, true) </code></pre> <p>Points of interest:</p> <ul> <li>Despite the error, the script completes successfully.</li> <li>...
2
1,227
Multithreaded method to call API in Springboot
<p>I need to implement multi-threading in Springboot while calling API with POST method. I am pulling records from oracle database based on a SELECT query, then using RowMapper go through each record one by one. In next step, I am just calling a method to send these records to API to send these records in the form of p...
2
2,337
Ext JS 4 Calendar - Cannot call method 'getTime' of undefined
<p>I'm getting Cannot call method 'getTime' of undefined error when I try to create a new event by clicking on Ext JS 4 calendar.</p> <p>Here's my event store defition:</p> <pre><code>Ext.calendar.data.EventMappings = { // These are the same fields as defined in the standard EventRecord object but the // name...
2
8,246
Handling Bank Reconciliation with php and mysql
<p>I am handling bank reconciliation with mysql and php, I have two banks from which interest and charges are recorded Below displays the tables</p> <pre><code>Banks table | BankID | BankName | | 01 | AB Bank | | 02 | CD Bank | </code></pre> <p>They user is free to add more banks to...
2
2,208
Problems installing a mips cross compiler
<p>I´m doing my master thesis and I´m having problems configuring the cross compiler. I´ve read lots of articles, faq, tutorial, etc.., but I still think I´m missing something, maybe very stupid and basilar, but without that I can´t have a clear vision of everything and I can´t make it all work…so please feel free to e...
2
4,173
Keras: connecting two layers from different models to create new model
<p><strong>What I am trying to do:</strong><br> I want to connect any Layers from different models to create a new keras model.</p> <p><strong>What I found so far:</strong><br> <a href="https://github.com/keras-team/keras/issues/4205" rel="nofollow noreferrer">https://github.com/keras-team/keras/issues/4205</a>: using...
2
2,387
I have a WCF service with a javascript endpoint that only works in IE
<p>I have a remote server with a webhttpbinding that i'd like to access using javascript.</p> <p>Below is a simple javascript function that executes the test function which is just a random number generator which returns that number. </p> <pre><code>Function DoTest() { var xmlHttp = new XMLHttpRequest(); var...
2
1,041
Convert each record in RDD to a Array[Map] using scala and Spark
<p>My RDD is \n separated records that look like</p> <pre><code>Single RDD k1=v1,k2=v2,k3=v3 k1=v1,k2=v2,k3=v3 k1=v1,k2=v2,k3=v3 </code></pre> <p>and want to convert it into a Array[Map[k,v]], <br/> <br/> where each element in Array will be a different map[k,v] corresponding to a record. <br/> <br/> Array will co...
2
1,108
Storing Viewstate in Database disables my asp:ImageButtons events
<p>I followed the guide <a href="http://www.componentworkshop.com/blog/2009/06/27/advanced-net-storing-viewstate-in-a-database" rel="nofollow">here to save my ViewState into the database</a>. I did some changes to it to fit my projects code design, but the essential parts are there. But when I implant this solution all...
2
1,350
boost static link boost.locale error
<pre><code>#include &lt;boost/locale/encoding.hpp&gt; int main() { const std::string strutf8("你好,世界"); std::wstring wtrutf16 = boost::locale::conv::to_utf&lt;wchar_t&gt;(strutf8, "UTF-8"); return 0; } </code></pre> <p>this is my code, i want to use boost.locale lib in my project on centos 7 64 bit system,...
2
1,298
Dynamically generated "submit" buttons in PHP
<p>First time posting here (so please be gentle, as I am a relative PHP newbie).</p> <p>I am building an intranet for our company and one of the things I need to do is to create a form that lists all outstanding sales orders (pulled from our accounting database) and provides a "submit" button beside each one to create...
2
2,556
Flask Mongoengine validation error with wtfform
<p>I've been working on WTF form with flask and mongoengine. When I try to register on html side as a new user this debug message appears.</p> <p><strong><em>ValidationError: ValidationError (User:None) (Field is required: ['password'] cannot parse date "asd": ['created_at'])</em></strong> <a href="https://i.stack.img...
2
1,797
react native run android has an error. Cannot change dependencies of configuration ':packagename:androidApis' after it has been resolved error
<p>I have a React Native project with many libraries like React Native Fetch Blob, React Native Camera, etc. </p> <p>For run the project I clone my repository and install node modules so run react-native run command encounter below error:</p> <p><a href="https://i.stack.imgur.com/FhPZz.png" rel="nofollow noreferrer">...
2
4,314
I need to do a mobile redirect in lighttpd
<p>I have this rewrite code in my htaccess file, but I need to translate it to lighttpd.</p> <p>The following is the htaccess code:</p> <pre><code>RewriteEngine On # Check if this is the noredirect query string RewriteCond %{QUERY_STRING} (^|&amp;)noredirect=true(&amp;|$) # Set a cookie, and skip the next rule Rewri...
2
1,502
Button's text is only half visible
<p>I am having troulbe fixing the following issue. I have a button with text OK. The button is nested inside a <code>LinearLayout</code>. This layout is nested inside two <code>RelativeLayout</code>. The second/inner <code>RelativeLayout</code> has `android:layout_margin="15dp". This is causing the text inside the butt...
2
2,152
HBase table ??? doesn't exist while the table is declared as an external table
<p>I'm trying to create a HBase table using Hive (which I am intending to fill it from another Hive table using insert), through the following:</p> <pre><code>CREATE EXTERNAL TABLE HBWeather (key struct&lt;USAF:INT, WBAN:INT, `Date`:STRING&gt;, TEMP INT) ROW FORMAT DELIMITED COLLECTION ITEMS TERMINATED BY '~' STORED...
2
1,278
spring/logback - log http request body for errors only
<p>I am using <code>MDC</code> inside an interceptor to add http request related fields to my logging. Now, i want to log the request body along any log of level <code>error</code> or <code>fatal</code> and/or for exceptions as well. I am totally new to <code>MDC</code>, <code>spring</code> or <code>java</code> in gene...
2
1,227
Symfony3 Invalid credentials, UsernameNotFoundException(code: 0): Username \"\" does not exist
<p>Login tutorial: <a href="http://symfony.com/doc/current/security/form_login_setup.html" rel="nofollow noreferrer">http://symfony.com/doc/current/security/form_login_setup.html</a></p> <p>I'm getting an error when trying to log in: Invalid credentials.</p> <p>Here's dev.log:</p> <pre><code>[2017-01-16 22:57:51] re...
2
2,874
Iterating over list of namedtuples, selecting restaurants
<p>I have a function that that returns restaurants with prices at or below a specified value. Here is my current code:</p> <pre><code>Restaurant = namedtuple('Restaurant', 'name cuisine phone menu') Dish = namedtuple('Dish', 'name price calories') r1 = Restaurant('Thai Dishes', 'Thai', '334-4433', [Dish('Mee Krob', 1...
2
1,253
dynamically create textbox and save data MVC
<p>I am new to MVC. I want to dynamically create textboxes upon user click. </p> <pre><code>&lt;script&gt; function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount = table.rows[0].cells.length; f...
2
2,206
SequelizeEagerLoadingError : associated not working in sequelize
<p>I have two tables , Parent table is checkout_product and it's child table is product_attributes Now I am creating association between two tables so it's getting error: Here is my code</p> <pre><code>const Sequelize = require('sequelize'); const { checkout_product_view } = require('../controller/checkoutProductContro...
2
1,034
MySQL efficient select / order on a range query with multiple / single column indices
<p>I'm trying to do the most efficient select on a table with 3 million records.</p> <p><strong>First some detailed info</strong></p> <p><strong>Table:</strong></p> <pre><code>CREATE TABLE IF NOT EXISTS `activities_index` ( `id` int(9) NOT NULL auto_increment, `activity_id` int(6) NOT NULL, `activity_status_id...
2
1,257
jquery sortable > nested uls
<p>I'm trying to nest several lists inside the main list. Goal is to organize the menu and submenus.</p> <p>The html:</p> <pre><code>&lt;ul id="pages_0" class="sortable-list"&gt; &lt;li id="page_14"&gt;home &lt;ul id="pages_14" class="sortable-list"&gt; &lt;li id="page_21"&gt;nieuwsarchief&lt;/li&gt; ...
2
1,070
How to toggle 2 charts using buttons
<p>I have a page that needs to compare 2 different data between pie and bar chart, there are 2 buttons to switch between them but it only works on 1 of the chart</p> <pre><code>&lt;script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; // L...
2
1,329
Can't use checkbox correctly to update state
<p>I am using a checkbox that should update a todo item's completed status via the component's state. When I click the todo box it doesn't change state, but if I click it two times, it does update the state. Since I have to click it two times, that means when the box is checked this.state.done === false and when it is ...
2
2,526
how to convert ssh-rsa public key to PEM PKCS#1 public key format using java 7
<p>My Public in ssh-rsa is:</p> <p>ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClAxT5S/WuX04OXBt9R59WcL45OmaU3M5U063lfyja7ovqaVR7/2kHtLF/LoCQCXSZMny8RTCGDjoXD7G/tGsyHFDHCI//Y1VDLE06AlDzrlu69DQY91+6gkhGjH3SF6us5hXlihrbSFLfAlSdkEs8gwSrspVQyuaOf+39dnMddhEDYYg+z0ce82ta/n8xPBWCp60nDEDayNjOsRgzDJKSujNfngjQTL1x6qKJj8BW/P5lLJE1nbMm...
2
1,302
React Datepicker CSS messed Up
<p>I am using this module by HackerOne: <a href="https://reactdatepicker.com" rel="nofollow noreferrer">https://reactdatepicker.com</a></p> <p>After installing and importing the module to my Project i decided to pick the Select time component from the site.</p> <p>My Code</p> <pre><code>import React, { Component } f...
2
1,257
Safari Printing differently than Chrome + Firefox (html/css)
<p>I am attempting to have barcode sheet printing for avery 5160/8160 via browser. I found and modified code from <a href="https://boulderinformationservices.wordpress.com/2011/08/25/print-avery-labels-using-css-and-html/" rel="nofollow noreferrer">https://boulderinformationservices.wordpress.com/2011/08/25/print-aver...
2
2,246
Making XAML Grid width full screen
<p>I m creating Windows Phone 8.1 app with Visual Studio Where I m putting XAML grid but could not make full width. If I give width to each column then grid will be not full width in all resolution of Phone My codes are as below</p> <pre><code>&lt;ListView Name="lvData" Margin="5,0" HorizontalAlignment="Stretch" Grid....
2
2,079
ASP.NET MVC BeginForm not able to post with parameter
<p>I have a form with a searchbox on it. When someone types something into the search box and hits the search button I am trying ot do a post to capture the search filter and then fire off a view. </p> <p>Here is the controller code</p> <pre><code>public class SpotsController : Controller { [HttpPost] [Allow...
2
4,332
Undefined variable $page in canned pagination script
<p>i've got this pagiantion from "Stranger Studios Web Design" i have problem with page = $_GET['page']; the error is page undefined variable page , and i don't know where the 'page' come from? please any help?</p> <pre><code>&lt;?php //php code for making pagination in the gallery page /* Place code to ...
2
3,349
How to integrate log4j 2 into my Spring project?
<p>So I just downloaded Spring Tool Suite, created a new Maven project, and am confused as to how to get Log4j integrated into my project.</p> <p>Here is my project structure and the class I'm trying to create a logger in. Please note that none of these imports listed under LoggerFactory work - every time I select on...
2
1,911
ListView from AsyncTask and JSONParser
<p>I'm going to fetch news from json on my server.</p> <p>Also I have a menu button that refresh my listview.</p> <p>I don't know where I'm wrong !!!</p> <p><strong>JSON file</strong> <code>(http://10.0.2.2:8020/test/index.php)</code></p> <pre><code>{ "news": [ {"id":"1","title":"Number one","description":"This...
2
2,584
how disable DrawerArrowToggle from toolbar or move right
<p>first question: i want to create a right to left toolbar like this image:</p> <p><img src="https://i.stack.imgur.com/hFy6Q.jpg" alt="right to left toolbar"></p> <p>how can customize the toolbar DrawerArrowToggle to move right?</p> <p>And second question: i create a custom toolbar and make a button for open draw...
2
1,099
How to read a XML file with spark that contains multiple namespaces?
<p>I'm using the spark-xml library in Azure-Databricks. But I can't get the options right to read this kind of file that contains multiple namespaces.</p> <p>So I'm looking for some help to get this coded in the options, or any other approach.</p> <p>Here is a stripped sample.</p> <pre><code>&lt;msg:TrainTrackingMes...
2
1,384
SyntaxError when pip install pip ( def read(rel_path: str))
<p>when using pip I get the following warning:</p> <pre><code>$ pip install pip Requirement already satisfied (use --upgrade to upgrade): pip in /usr/lib/python2.7/site-packages You are using pip version 8.1.2, however version 22.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command....
2
1,207
Coffee script compiler keeps on throwing error 'TypeError: Cannot read property '2' of undefined'
<p>I'm relatively new to coffee script. Currently, when compiling a piece of coffee script (<code>coffee -c app.coffee</code>), I receive the following error (See below) even though '2' is nowhere in my code. Why is this happening and how do I fix this?</p> <p>Here is the error:</p> <pre><code>`TypeError: Cannot read...
2
4,801
React Native Hooks and Authentication flow
<p>I am currently setting up my authentification flow for my React Native app and I ve got the following issues. </p> <p>My navigation screen looks like that</p> <pre><code> export default CreateStack = () =&gt; { const [isLoading, setIsLoading] = React.useState(true); const [userToken, setUserToken] = React.useS...
2
3,207
Manage User - Firebase and Angular
<p>I am trying to get a user by email, and it seems to be pretty simple. I am following this <a href="https://firebase.google.com/docs/auth/admin/manage-users" rel="nofollow noreferrer">documentation</a></p> <p>It seems that my code does not recognize <code>admin</code>, what it is normal cause I haven't defined anywh...
2
1,024
redis.exceptions.ConnectionError after approximately one day celery running
<p>This is my full trace:</p> <pre><code> Traceback (most recent call last): File "/home/server/backend/venv/lib/python3.4/site-packages/celery/app/trace.py", line 283, in trace_task uuid, retval, SUCCESS, request=task_request, File "/home/server/backend/venv/lib/python3.4/site-packages/celery/backends/base...
2
1,887
How to create a mask effect in tkinter?
<p>I was trying to create a game and wanted a masking effect in it, such that the area over which the character is will be visible, but am unable to do so, I thought of redrawing polygons but that seems quite naive. If you have a workaround for this please share it with me or if there is any function in tkinter canvas ...
2
2,403
Bind Visibility of Textblock with Boolean not working
<p>I am writing a <strong>Windows Phone 8.1 (WINRT) App</strong>. I used a <strong>ListView</strong> to populate items:</p> <p><strong>XAML:</strong></p> <pre><code>xmlns:ConvertersFile="using:DrFit.Converters" &lt;Page.Resources&gt; &lt;ConvertersFile:BoolToVisConverter x:Key="BooleanToVisibilityConverter"/&...
2
1,456