title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Run function inside CHtml::listData - yii
<p>I am trying to list values from a treview in a dropdown list, in Yii. So, i already have a function to concatenate the treeview in path like (example primary\secondary\terciary. I call this function passing the ID from the data and the function select the parents, creating list from the database. </p> <pre><code>p...
2
1,091
C++ Copying files to USB Device
<p>I have serveral files of different types. <code>.gz</code> <code>.cfg</code> <code>.tar</code> and I would like to <strong>copy</strong> them to a <strong>USB</strong> Device connected to a Drive. This is my code:</p> <pre><code>//path -&gt; destination path looking like: "\\\\?\\"+ driveLetter + ":\\file" //i -&gt...
2
1,096
Gzip compression and decompression without any encoding
<p>I want to decompress a string in java which was gzip compressed in python.</p> <p>Normally, I use base64 encoding on compressed string in python and then decode that compressed string before performing decompression in java. This works fine while using base64 encoding.</p> <p>But is there a way to decompress a str...
2
1,542
Reading json from file and deserializing always returns null
<p>I am reading Json from a file and when I try to deserialize it using Newtonsoft Json it returns null. I am constructing the JSON class from <a href="http://json2csharp.com/" rel="nofollow noreferrer">http://json2csharp.com/</a> . I am not sure of the reason why it says null is it because of the special symbols like ...
2
1,312
Gridview in user control page (ascx) is null
<p>I have a page from where a user can search for items and so on. I use a .ascx page to display the result in a grdview.</p> <p>The aspx page only has a seacrh box and a button and on button click I want to pass the value from inside the textbox to the ascx page and have the gridview populate with the result. But aft...
2
1,548
How to load values from csv file to a 2d vector<double>?
<p>I have a csv file with an 5 columns and 100 rows. My objective is to load the file into a vectorData</p> <pre><code>#include &lt;iostream&gt; #include &lt;fstream&gt; #include &lt;string&gt; #include &lt;vector&gt; using namespace std; int main() { int count = 0; vector&lt;double&gt; data; string line; cout &...
2
1,321
How to use a .SAS or SPS metadata file to read a CSV as a Pandas dataframe?
<p>I have a big CSV file and it comes with two metadata description files. One has a <code>.sas</code> extension and the other a <code>.sps</code>. Opening them, they describe the CSV data format and categories. The files describe the data format and possible categories of each column. For example, a column with values...
2
1,641
Arcgis Server Write properties of all services to a CSV file
<p>I have 36 Services running on ArcGIS Server and would like export all properties for each service in a csv file. I managed to write a code by the help of ESRI Helpdesk <a href="http://resources.arcgis.com/en/help/main/10.2/index.html#//0154000005wt000000" rel="nofollow">http://resources.arcgis.com/en/help/main/10.2/...
2
10,478
How does one do a model query from other model function?
<p>I have the following classes: Student, LabJournal, JournalResponse, and JournalField. I want to define a "status" function for student to determine how many questions (JournalField) they've answered (JournalResponse). The problem is the function dies without a return on the following line:</p> <pre><code>total_ques...
2
1,090
Wordpress Custom Widget Select Options Not Saving
<p>I'm very new to coding Wordpress plugins/widgets (this is my first time!). I've built a very basic Wordpress plugin which consists of 2 text inputs and a select field. The text inputs work fine however the select box doesn't appear to be saving when I hit the "Save" button.</p> <p>Here is my plugin code:</p> <pre>...
2
1,592
Display ProgressBar while saving an image from Activity
<p>In my app I am letting user save a drawing. While the drawing is saved, I want to display a progress bar on top of the drawing to let the user know it is saving.</p> <p>My XML layout:</p> <pre><code>&lt;FrameLayout android:id="@+id/viewd" android:layout_width="match_parent" android:layout_height="0dp" ...
2
1,058
Validating generated number input with Bootstrap FormValidation
<p>I've been struggling to get this field validation to work. I'm using the JS validation for bootstrap from <a href="http://formvalidation.io/" rel="nofollow">http://formvalidation.io/</a> and I've examined <a href="http://formvalidation.io/settings/" rel="nofollow">http://formvalidation.io/settings/</a> but nothing I...
2
1,030
my table jasper report repeat the data many time
<p>this is my code</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xs...
2
10,533
Adding domain to NGINX config, need to increase server_names_hash_bucket_size, but HTTP directive is failing
<p>I need to move an existing site to another server. I'm having problems. This is the original (working) nginx config:</p> <pre><code># Define a default server, to catch requests directly to the servers IP or other non-valid sources/domains/etc. server { listen 80 default_server; retu...
2
2,477
How to access Azure storage account from VM using Python and managed identity / SAS credentials
<p><strong>OBJECTIVE</strong> I have an Azure VM set up with a system assigned managed identity. I want to be able to:</p> <ol> <li><p>Allow users to access blobs inside storage account using the VM</p></li> <li><p>Ensure the users are not able to access the blobs external to the VM</p></li> <li><p>Use Python - most o...
2
3,397
PyQt - How to turn on/off spellchecking
<p>I'm using the following as a basis for my editor's spellchecker. I want to make an auto-spellcheck button, which when pressed will make the spellchecker work, and when not pressed, the spellchecker should not highlight or suggest anything. You know the one similar to LibreOffice/OpenOffice auto-spelcheck toolbar but...
2
2,060
How do you create a custom CardView object from an XML layout file?
<p>I'm trying to create a custom CardView object called <em>WeekView</em>. <em>WeekView</em> extends CardView. I have a CardView layout in an XML file. How do I make the <em>WeekView</em> "copy" the layout from the XML file?</p> <p>Simply put, I want to be able to do this:</p> <pre><code>WeekView weekCard = new WeekV...
2
1,558
Lame - increase bitrate to 320
<p>First I want to show my method for converting source .wav files to .mp3 by Lame library:</p> <pre><code>- (void)convertFromWav:(NSString *)sourceFilePath ToMp3:(NSString *)resultName { NSString *mp3FileName = [resultName stringByAppendingString:@".mp3"]; NSString *mp3FilePath = [NSTemporaryDirectory() stringByA...
2
1,149
Unable to locate an input box element using Selenium and Python
<p>So I have been trying to locate the username input box on python using selenium. I have tried xpath, id, class name, etc.</p> <p>I am also aware of explicit wait for the elements to load. However, depite all this, no luck. I checked to see if the element is in an iframe that I overlooked, but I couldn't find it.</p>...
2
2,539
react-intl with redux language swicher
<p>I'm trying to make a language switcher with a react-inlt and redux, but when i try to switch, then view is not rendered (&lt; FormattedMessage> dosen't change), but redux work and locale in &lt; IntlProvider> is changed. I haven't got any error in chrome console.</p> <p>index.js</p> <pre><code>import React from 'r...
2
1,264
How can I create a json string in the right format with serializer (Symfony 4)?
<p>I am creating a json string with serializer:</p> <pre><code>$table = $this-&gt;getDoctrine()-&gt;getRepository(Article::class)-&gt;findAll(); $serializer = new Serializer(array(new GetSetMethodNormalizer()), array('json' =&gt; new JsonEncoder())); $json_string = $serializer-&gt;serialize($table, 'json'); </code></...
2
1,403
Python IndexError: index 1 is out of bounds for LDA
<p>I have a dataset that looks like this:</p> <pre><code> Out Revolver Ratio Num ... 0 1 0.766127 0.802982 0 ... 1 0 0.957151 0.121876 1 2 0 0.658180 0.085113 0 3 0 0.233810 0.036050 3 4 1 0.907239 0.024926 5 ... </code></pre> <p><code>Out</code> can only take o...
2
1,235
Network call not happening from a thread in a broadcast receiver
<p>Im a beginnner of android and im trying to build an app that recognizes a missed call and sends the number to be stored in a remote mysql database. The app is able to recognize missed calls but the network calls are not happening. I am not able to run this app in the emulator and so im using a device everytime i mak...
2
3,012
My program does not work without printf
<p>I have an interesting problem that I can't figure out. My program doesn't work without printf</p> <pre><code>printf("",L[i-1][j][k],L[i][j-1][k],L[i][j][k-1],L[i-1][j][k-1],L[i-1][j-1][k],L[i][j-1][k-1],L[i-1][j-1][k-1]); </code></pre> <p>I don't mean printf("%s",S); under main, I mean printf under getLCS function...
2
3,105
Using Bloom effect makes black background blue/indigo in MonoGame (Xna)
<p>My game, made in MonoGame (Xna clone to Mac), needs to use the Bloom effect. I followed the code in the sample over at MSDN (<a href="http://xbox.create.msdn.com/en-US/education/catalog/sample/bloom" rel="nofollow noreferrer">http://xbox.create.msdn.com/en-US/education/catalog/sample/bloom</a>). When I put this effe...
2
6,409
JDBC with springsource tool suite doesn't work
<p>I've just made the switch from netbeans to the springsource tool suite and I'm having one problem:</p> <p>I've downloaded the mysql-connector-java-5.1.20-bin.jar added the file to the libraries but still I get this warning:</p> <pre><code>java.lang.ClassNotFoundException: com.mysql.jdbc at org.apache.catalina....
2
2,019
Activity crashes when dialogFragment is opened and onPause() is called
<p>I made a custom dialog (extends DialogFragment) that appears in several activities.</p> <p>If the activity comes to foreground while the dialog is opened, I get the following error:</p> <pre><code> FATAL EXCEPTION: main Process: package.name, PID: 11137 java.lang.RuntimeException: Parcelable encountered IOExcept...
2
2,097
Pod Security Policy not working as intended
<p>I am creating a Pod Security Policy to stop ALL users from creating a Pod as Root user. My cluster is on GKE. The steps Ive carried out till now are</p> <p>1) Enable PodSecurityPolicy in my cluster</p> <pre><code>gcloud beta container clusters update standard-cluster-11 --enable-pod-security-policy </code></pre> ...
2
1,447
Xamarin.Forms protected OnAppearing method - how to change bool value?
<p>In one of my pages in Xamarin.Forms app I want to detect, when OnAppearing method is called first time.</p> <p>I try to do this by add bool value, which when page is initializing is set to true, but when OnAppearing is called, the value is set to false.</p> <p>How it looks in code:</p> <pre><code>public partial c...
2
2,912
Error while creating test suites: "cannot satisfy -package-id"
<p>I'm attempting to create a test suite for my project, <code>HaskSplit</code> in my .cabal configuration:</p> <pre><code>-- Initial HaskSplit.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ name: HaskSplit version: 0.1.0.0 synopsis:...
2
1,541
Serving static files in Cowboy (Erlang)
<p>I read this guide <a href="https://ninenines.eu/docs/en/cowboy/2.0/guide/static_files/" rel="nofollow noreferrer">https://ninenines.eu/docs/en/cowboy/2.0/guide/static_files/</a> and I implement</p> <p><code>{"/assets/[...]", cowboy_static, {dir, "/var/www/assets"}}</code></p> <p>in my <code>tunnel_app.erl</code> f...
2
1,113
R calculate and add delta of two dataframe cells for each row
<p>I have a data frame that looks like this:</p> <pre><code> df &lt;- data.frame( "Subject" = c("A", "B", "C", "A", "B", "C"), "Stage" = c( "pre", "pre", "pre", "post", "post", "post"), "Value" = c(.5, .2, .7, 1, .8, .3) ) </code></pre> <p>I want to find the delta between <code>pre</code> and <code>pos...
2
2,456
Deleting Core Data from a UITableView within a UIViewController
<p>I have a UITableView within a UIViewController so that I can have a UILabel below the table. In doing so, I have had difficulties in adding an Edit/Done button. I couldn't do the traditional way, so I had to do a work around using the following idea:</p> <p>1)Create the edit button up the top left on viewdidload:</...
2
2,098
Windows Workflow 4 Correlation Query includes website instance name in instance key calculation and fails
<p>I am trying to host a long running workflow service on Azure but I am having problems with correlation.<br> I have got the timeToUnload and the timeToPersist set to 0 and I have ticked the "persist before send" in the worklow - this is not a problem with persistence, it is to do with how instance keys are calculated...
2
1,800
Eclipse plugin project with eclipselink and derby database
<p>I managed to create a java application with eclipselink as shown here </p> <p><a href="http://www.vogella.com/articles/JavaPersistenceAPI/article.html" rel="nofollow">http://www.vogella.com/articles/JavaPersistenceAPI/article.html</a></p> <p>But i can not do this with an plugin project. I added derby.jar, eclipsel...
2
1,471
How to port NDIS 6.2 to NDIS 6.3 using NDIS_SUPPORT_NDIS630?
<p>I have NDIS 6.2 Supporting Miniport Driver . Now I want to port NDIS 6.2 to NDIS 6.3 . </p> <p><a href="https://msdn.microsoft.com/en-us/library/windows/hardware/dn232191(v=vs.85).aspx" rel="nofollow">https://msdn.microsoft.com/en-us/library/windows/hardware/dn232191(v=vs.85).aspx</a></p> <p>Using this link I chan...
2
2,131
Android Camera : when capturing image data intent returns null
<p>I'm using a button which will call the device camera.</p> <pre><code>private void captureImage() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(ImageUtils.MEDIA_TYPE_IMAGE); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // start the image captu...
2
2,315
amazon product advertising api get product with offers
<p>I am using Amazon product advertising API. I want get product which has offer.</p> <p>I tried the amazon-api php class to get the data, but it doesn't work properly.</p> <p>Need Help to get the products which has an offer.</p> <pre><code> &lt;?php require_once 'aws_signed_request.php'; class AmazonProdu...
2
1,232
Writing JSON to SQLite
<p>I'm trying to save a JSON file to a database. I have very little experience but after doing a little searching, I found this code </p> <pre><code>import json import sqlite3 JSON_FILE = "some.json" DB_FILE = "some.db" traffic = json.load(open(JSON_FILE)) conn = sqlite3.connect(DB_FILE) foo = traffic[0]["foo"] bar...
2
2,239
Trying to Load HTML Source Code using JQuery
<p>I am trying to load some HTML source code I have in a text file into jquery. When I click the link to add the text nothing loads into the page. Any suggestions? <br><br> Load Script:</p> <pre><code>&lt;div data-role="collapsible" data-collapsed="true"&gt; &lt;h3&gt;Accordion Concept&lt;/h3&gt; &lt;p&gt;The ...
2
1,048
Segfault on JNI_CreateJavaVM
<p>I am trying for the first time to load a JVM from C++ via JNI but I can't seem to get it to work. I get a segfault when I call JNI_CreateJavaVM.</p> <p>The code is pretty straight forward (copied mostly from an online example):</p> <pre><code>#include&lt;stdio.h&gt; #include&lt;jni.h&gt; using namespace std; int...
2
2,343
Uncaught TTransportException' with message 'THttpClient: Could not read 1936027957 bytes in THttpClient.php:162
<p>This is my thrift definition </p> <pre><code>namespace php mobiledata struct sms { 1: string from, 2: string to, 3: string smstext, 4: string smsdatetime, 5: string smsdirection } struct smsdetails { 1: list&lt;sms&gt; smsdata } service mobiledataservice { void insertsmsdata (1: smsde...
2
4,530
is there any way to stick on the same page even after refreshing in react router?
<p>Hi am new to react and facing a problem in react router . Actually am using useNavigate in react router dom for navigation and everything is working fine but my problem is suppose initially i am on page one then using useNavigate in am reaching to page two then from page two to page 3. Now when am refreshing the pag...
2
3,426
Mapping members with similar names Using Automapper
<p>In a remote db, which I can only read, there are 24 columns in a row for each hour of day. Their names go as P1, P2, ..., P24.</p> <p>I must copy the values to my own db, which I named column names as H1, H2, ..., H24.</p> <p>How can I use auto mapper to map remote columns to locals ?</p> <pre><code>CreateMap&lt;...
2
1,540
DropDownList to filter table MVC 5
<p>I am in need of some help on how I can solve this problem. I've been trying several things, but I'm getting nowhere. Here's my problem: I want to use a <code>dropdownlist</code> with the table I created with EF in MVC 5. The <code>dropdownlist</code> contains the <code>ContactGroups</code> created by the user. This ...
2
2,405
How to upload images to fastify + graphql backend with axios?
<p>When sending images via axios I found I have to use formdata. I add my images here but when sending the formdata my entire backend just freezes, just says "pending".</p> <p>Ive been following <a href="https://stackoverflow.com/questions/59043021/how-do-i-upload-files-to-a-graphql-backend-implemented-using-graphql-u...
2
2,595
OpenCV Python/C++: Feature Matching in Images with different Lighting, etc
<p>I am trying to detect and match features in two sets of images of the same scene from different sources (and different lighting, contrast etc.).<br> For now I've tried various different feature detection/description methods (SURF, SIFT, ORB) as well as a few simple pre-processing steps (downscaling the images, histo...
2
1,325
Matplotlib Lines is plotting extra lines in my plot
<p>I'm trying to visualize a pair of two lists, represented by <code>lines_x</code> and <code>lines_y</code> which are meant to be plugged into the coordinates argument of either the <code>plot</code> function in Axes or in Lines2D.</p> <p>Right now, I'm getting this result, which has extra lines compared to the resul...
2
1,323
Flexbox child is growing outside its parent
<p>I use flexbox all of the time, but for some reason, this has had me scratching my head for a couple of days.</p> <p>What I'm looking for is the cyan-colored area to be XY-scrollable (.scrollable), with the magenta (.tab-content) padding around it.</p> <p>The lowest item that seems to have it together is the blue (...
2
2,928
java.lang.NoClassDefFoundError for external library
<p>I have a simple program that parse csv file into json objects. I added json.simple-1.1 into my maven. The content of my maven is like this:</p> <pre><code> &lt;groupId&gt;IoT&lt;/groupId&gt; &lt;artifactId&gt;ETL2&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;dependencies&gt; ...
2
1,355
C++ authentication against PHP with cURL
<p>Im trying to get my c++ app to authenticate user/pass against a web database. To do so, I have a simple html form for user/pass which triggers the authentication php script.</p> <p>Im having a hard time understanding cURL since im a complete noob on it. Right now, I'm able to send data to the html form, but i dont ...
2
1,778
NetSuite https.post() method response is giving Error "Unexpected character encountered while parsing value: S. Path '', line 0, position 0"
<p>I'm trying to send the below JSON data request to the 3rd party system using the &quot;N/https&quot; modules https.post() method.</p> <p>I'm getting the Response Code as &quot;200&quot; with Error Message <strong>&quot;Unexpected character encountered while parsing value: S. Path '', line 0, position 0&quot;</strong...
2
1,033
Spring MVC: DeferredResult with encoded URLs: Invalid encoded sequence
<p>I'm using <strong>Spring MVC 4.1.6</strong> with <strong>DefferedResult</strong>. It's work fine. But if I did request with using encoded url then I received error.</p> <blockquote> <p><strong>Controller</strong></p> </blockquote> <pre><code>@RequestMapping("/**") @ResponseBody public DeferredResult&lt;ResponseE...
2
4,777
store matrix data in SQLite for fast retrieval in R
<p>I have 48 matrices of dimensions 1,000 rows and 300,000 columns where each column has a respective ID, and each row is a measurement at one time point. Each of the 48 matrices is of the same dimension and their column IDs are all the same. </p> <p>The way I have the matrices stored now is as RData objects and also ...
2
1,436
How to save edited data record in access form as a new record?
<p>I am facing a little issue now. My issue is that currently when i made edit to the current record in my subform and click on "update" it will overwrite my previous record which i do not want. Instead, I would like to add my edited data record from the subform and insert it into the subform as a new record with the ...
2
2,297
How to get all the url photos from Twitter API Java JSON
<p>Anyone know if it's possible to get all the url photos from the twitter api. As an example this tweet has 4 photos <a href="https://twitter.com/wtfbaile/status/652694439584993280/photo/1" rel="nofollow">https://twitter.com/wtfbaile/status/652694439584993280/photo/1</a> I want to get all the 4 url photos in one reque...
2
7,944
read xml with multiple namespaces
<p>I am trying to get </p> <pre><code>&lt;dc:identifier xsi:type="dcterms:URI" &gt;bitstream link&lt;/dc:identifier&gt; </code></pre> <p>and dc:title,publisher etc using C# in my MVC app need help as i am new to xml</p> <pre><code>&lt;metadata&gt; &lt;uketd_dc:uketddc xmlns:uketd_dc="http://naca.central.c...
2
2,239
Firebase cloud function triggers FCM but Request is missing required authentication credential
<p>I am trying to use firebase-admin inside a firebase cloud function to send a message via firebase cloud messaging (FCM).</p> <p>When reading through the <a href="https://firebase.google.com/docs/cloud-messaging/admin/send-messages?authuser=0" rel="nofollow noreferrer">documentation</a> it says</p> <blockquote> <...
2
1,133
updating the status of record, enable or disable in grid using prototype.js
<p>I am using prototype js with PHP and mysql for update the status of record enable to disable vice versa in a grid. For this i use Ajax.Request method of prototype. status is updating but status icon was not change. </p> <p>I am using image for showing enable or disable record. if record is enable in a grid then you...
2
1,921
Using existing database with ASP.NET 5 and EF7 (beta 7)
<p>I'm trying to connect to my existing database using an empty template project for ASP.NET and EF 7, beta 7. This is what my project.json looks like:</p> <pre><code>{ "webroot": "wwwroot", "userSecretsId": "aspnet5-Titanes2015-409e9e37-b7bb-4185-b7aa-6dc336087524", "version": "1.0.0-*", "dependencies": { ...
2
1,478
Scroll in gridView make view shake
<p>I have a layout (which extends a framelayout) with a gridview and an imageview. I scroll through the layout with an onTouchListener,. In my Galaxy Nexus it works fine, but in AVD and other devices (Galaxy SII for example) the view shakes and I can't find out why.</p> <p>XML</p> <pre><code>&lt;paricio.toni.caththe...
2
1,303
loading lottie-web animation issue vuejs
<p>so I am trying to mimic this code pen <a href="https://codepen.io/airnan/pen/ZLVJmq" rel="nofollow noreferrer">https://codepen.io/airnan/pen/ZLVJmq</a> but when I try to load the same animation in with lottie-web npm package everything works great until the last animation. Then it all gets messed up. I'm trying to f...
2
12,283
Ionic Show Google Map Result from Json file
<p>I am doing an assignment. There is one scenario that user search for companies' name, etc. Then user click the result --> shows company details which include map. I would like to know how to pass json file's location data(a long list,I just paste hereinbelow a short one) to the view. Also, how to make a mark on the ...
2
1,644
Sigining UWP-Apps with custom code sign certificate
<p>What exactly is the requirement to create a company internal App with Xamarin.Forms UWP? I can compile the *.appxbundle-Package but nobody can install it because of an certificate error. If I try to use our normal code signing certificate from StartSSL to sign the package, I got the following error:</p> <blockquote...
2
1,593
V-snackbar does not display when I update the Vuex state
<p>I can't seem to figure out why my <code>&lt;v-snackbar&gt;</code> component does not show when I update the Vuex state.</p> <p>My setup is very simple: I have a snackbar in Snackbar.js, which is listening for changes in the state.</p> <p>This Snackbar.js is imported as a child component in App.vue so that its global...
2
1,537
The server encountered an internal error () that prevented it from fulfilling the multiple file upload request
<p>Can anyone please help in resolving error? Trying to upload multiple files in server folder and filename is in database but server throwing following error -</p> <blockquote> <p>HTTP Status 500</p> </blockquote> <p>type Exception report</p> <p>message</p> <blockquote> <p>description The server encountered an...
2
1,614
Angular/Boostrap - Navbar doesn't display properly
<p>Recently I added Bootstrap 4, jQuery and Popper to my project, but the problem is when I render my webpage it shows the navbar like this (which it goes in a component called header): <a href="https://i.stack.imgur.com/CW0JF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CW0JF.png" alt="enter imag...
2
1,029
Change text color of a table row based on cell content, Using Css Only
<p>I was given two files, HTML and CSS, and i have to change some table rows "text color" based on cell content in the HTML file. But the problem is that i have to change ONLY the Css file (Without touching the HTML file) to achieve that. Can anywone please help me, i would be very grateful.</p> <p>The documents below...
2
2,160
Data.Foldable for unordered containers
<p>I'm working on a Haskell-meets-SQL language for database manipulations, and on a common type class library to go with it, cribbing from Hackage wherever it makes sense.</p> <p>Because a significant objective of a database query optimizer is to eliminate unnecessary sorting, it's important to preserve a static repre...
2
1,062
Convert .py to .exe including matplotlib code
<p>I am trying to convert this code:</p> <pre><code>import pandas as pd import matplotlib.pyplot as plt import readTrc path = 'C:/filepath/data.trc' datX, datY, m = readTrc.readTrc(path) srx, sry = pd.Series(datX * 1000), pd.Series(datY * 1000) df = pd.concat([srx, sry], axis = 1) df.set_index(0, inplace = True) df...
2
1,741
Android get captured image meta data
<p>I am trying to capture the latitude of an image that has been captured through the camera and stored into the ImageBox variable. Using the ExifInterface class, I am trying to get the latitude of the image and display that information into the LatitudeBox variable but my syntax is incorrect so please let me know what...
2
1,758
Laravel - Getting wrong guard model when I try to use multi authentication
<p>I'm having some problems with Laravel 5.7 multi-auth implementation.</p> <p>I have created a new table for backend login: "AdminUsers".</p> <p>So, I modified auth.php file:</p> <pre><code>return [ 'defaults' =&gt; [ 'guard' =&gt; 'web', 'passwords' =&gt; 'users', ], 'guards' =&gt; [ ...
2
1,421
ASP Contact form error Server object error 'ASP 0177 : 800401f3'
<p>One of my websites contact/reservations form has suddenly stopped working and I now receive the following error.</p> <pre> Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /contact2.asp, line 51 </pre> <p>I've done a bit of research and it seems to relate to classic ASP commands but my know...
2
1,567
rotation and radians in XNA, Enemy Ai corrections
<p>ive been having trouble with my mob AI </p> <p>it works to a point, except it does the opposite of what i want, meaning it turns 180Degrees in the wrong direction </p> <pre><code> Target = playerST.Posistion; Vector2 trivial; trivial.X = Posistion.X - Target.X; trivial.Y = Posistion....
2
1,137
CSS overflow-y:scroll; missing something
<p>i have one problem with CSS <code>overflow-y:scroll;</code> </p> <p>I have created this <strong><a href="http://codepen.io/shadowman86/pen/pJeGeY" rel="nofollow">DEMO</a></strong> from codepen.io </p> <p>In this demo you can see there is a left sidebar. And inside have 11 <code>.layer</code> div . but if you scrol...
2
1,122
Why does Helgrind show "lock order violated" error message?
<p>Please see the following code</p> <pre><code> #include &lt;stdio.h&gt; #include &lt;pthread.h&gt; #include &lt;assert.h&gt; #include &lt;stdlib.h&gt; pthread_mutex_t g = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t m1 = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t m2 = PTHREAD_MUTEX_INITIALI...
2
2,283
JavaFX Olympic Rings overlap in the correct order
<p>this is my first time posting here. I'm currently doing an assignment where I need to create the olympic rings in JavaFX and make them intersect in the correct places. </p> <p>This is what it's supposed to look like:</p> <p><a href="https://i.stack.imgur.com/n5qZr.png" rel="nofollow noreferrer"><img src="https://i...
2
1,431
R shiny - save chosen values in selectInput
<p>I have 10 'Edit' actionButtons. On each 'Edit' action buttons appears three selectInputs. After I click on 'Save' button below selectInputs, I want to remember selected values. If i go to row 2 -> click 'Edit' -> select values -> click 'Save' and go back to row 1, it does not remember previously selected values in r...
2
1,293
Tycho: Dependency resolver uses versions of Eclipse platform plugins which cannot be fetched from the Eclipse p2 repository through a P2 Nexus proxy
<p><strong>Situation</strong></p> <ul> <li>I have an Eclipse RCP application that gets built with maven using Tycho.</li> <li>The application gets built from the command line using a simple <code>mvn install</code>.</li> <li>During the build, the p2 dependencies are retrieved from a Nexus proxy repository, mirroring E...
2
1,328
Apache HttpClient with POST file-uploading won't do a basic auth on mysterious reasons
<p>I am trying to upload a file by the <code>POST</code> method with the Apache HttpClient library.</p> <p>I used the example code for the preemptive basic authentification <a href="https://www.javaworld.com/article/2092353/core-java/httpclient-basic-authentication.html" rel="nofollow noreferrer">here</a>:</p> <pre c...
2
1,512
In Magento2 (2.2.5) uicomponent form in frontend, SAVE button not appearing with form
<p>I added uiform in frontend. Form is loading but save button is not appearing. Code details:</p> <h1>1. employee_form.xml code:</h1> <pre><code>&lt;argument name="data" xsi:type="array"&gt; &lt;item name="js_config" xsi:type="array"&gt; &lt;item name="provider" xsi:type="string"&gt;employee_form.employe...
2
1,618
How to Receive Multipart Form Data on WCF Service. I have uploaded it using the phone gap file transfer plugin upload function
<p>How can I receive multipart form data in a WCF Service? I have uploaded it using the phone gap file transfer plugin upload function.</p> <p>Below are the two functions that I'm trying to call:</p> <pre><code> ///&lt;summary&gt; ///Method for file upload ///&lt;/summary&gt; [OperationContract] [W...
2
1,707
login page redirecting again to login page in codeigniter
<p>My login page is redirecting me again to my login page and don't know why. I think there have been some issues with my redirect syntax and I'm not able to resolve it so I need your expert help. </p> <p>My code is below.</p> <p><strong>Controller file :</strong> Verifylogin_controller.php</p> <pre><code>&lt;?php ...
2
1,540
Jenkins hangs when I try to run a container.inside() method
<p>I've set up a pipeline, it's sole purpose is to build an image and then execute a simple command inside it. </p> <p>I'm able to build the container, however, I'm not able to execute any commands inside of it. When I execute a 'sh' step, it just hangs indefinitely.</p> <p>If I run a <code>container.run()</code> met...
2
1,208
inject a custom service in karma jasmine
<blockquote> <p>I was trying out jasmine with karma. I have a custom service ApiService which i need to inject in my spec file. But when am trying to inject the ApiService i get Error: [$injector:unpr] Unknown provider: ApiService &lt;- ApiService</p> <p>this is my controller</p> </blockquote> <pre><code>...
2
2,436
JSch: var set in one command not visible by the next (same Session)
<p>I am able to successfully connect to a remote Unix host from Java using JSch and run some basic commands and view files etc.</p> <p>The problems start with setting the environment... When i export a var in one command, it is not visible in the next as though they run in separate shells. What I would like to do is...
2
1,634
Why InsertAll in SQLITE crashes?
<p>I am using InsertAll to save an ObservableCollection TickRecords into SQLITE database:</p> <pre><code>private static readonly ObservableCollection&lt;TickRecord&gt; TickRecords = new ObservableCollection&lt;TickRecord&gt;(); </code></pre> <p>TickRecord is define like this:`</p> <pre><code>public class TickRecord ...
2
1,162
I have a VBA code entered on Sheet 1. I want the code to work on Sheet 2. Do i just copy the code from Sheet 1 to Sheet 2?
<p>I found this VBA code on here that works great. I want the code to work on the other worksheets in the workbook. The code works great in Sheet 1 but I would like the code to work on Sheet 2, Sheet 3, etc. as well. I tried copying the code from the Sheet 1 Module and pasted it into Sheet 2, Sheet 3, etc. to see if th...
2
1,121
How do I use "ST-link GDB server"
<p>I installed the ST-Link GDB server from the ST webpage (link)</p> <p>ST created <em>&quot;ST-Link Server&quot;</em> (<a href="https://www.st.com/en/development-tools/st-link-server.html" rel="nofollow noreferrer">link</a>) which bridges the architecture gap and enables us to comfortably monitor and debug the <em>&qu...
2
1,052
Testing Activities in Xamarin.Android
<p>I'm wanting to unit test some interactions on activity lifecycle (I'm working on a data binding library, that can't have unit tests without it).</p> <p>Android has some good <a href="http://developer.android.com/tools/testing/activity_testing.html" rel="nofollow">documentation</a> on the subject. However, I've not ...
2
1,752
Starting Android SDK Manager in Eclipse throw a Exception
<p>When i try to start the Android SDK Manager in Eclipse (and also Console) i get this Exception</p> <pre><code>[2013-01-19 22:43:47 - SDK Manager] [SDK Manager] Exception in thread "main" java.lang.NoClassDefFoundError: com/android/archquery/Main [2013-01-19 22:43:47 - SDK Manager] [SDK Manager] Caused by: java.lang...
2
1,112
Windows Store ListView ItemStackPanel horizontal scrollbar not visible
<p>Im having Listview which shows 185 columns and 15 rows. For showing 185 columns with 15 rows, windows store app takes some time or UI gets freezes. below is the code Im using for showing data</p> <pre><code>&lt;ListView x:Name="outerlstView" Height="650" Margin="2,24,10,10" Grid.Row=...
2
1,662
SchemaException in java
<p>I have found a useful tool to convert .csv files into shape files with <a href="http://docs.geotools.org/latest/userguide/tutorial/feature/csv2shp.html#create-a-shapefile-from-a-featurecollection" rel="noreferrer">geotools</a>: </p> <p>But I have a problem running it, I get following maven error: </p> <blockquote>...
2
1,971
Compiling in Debug configuration works fine, but Release gives link errors
<p>I'm using GLFW (<code>glfw3.lib</code>, not <code>glfw3dll.lib</code>) and GLAD (<code>glad.c</code>) with Visual Studio 2017. Compiling in Debug configuration works fine, while Release builds throw out strange linker errors. These are &quot;unresolved external symbols&quot;:</p> <pre><code>1&gt;glad.obj : error LNK...
2
4,060
ViewPager using FragmentPagerAdapter lagging while swiping
<p>I have a ViewPager that uses a FragmentPagerAdapter. I'm using images of size 2048 * 1536 to display in the ViewPager. </p> <p>When I swipe the ViewPager, it is lagging little bit. Am I doing anything wrong here that causes the lag ?</p> <pre><code>public class MainActivity extends FragmentActivity { static f...
2
1,063
drag but empty clipdata
<p>I can't find where's the problem, that I think I put things into the item and clipdata right, however my onDrag always receive a null pointer exception and can't even get the number of item.</p> <p>this is my OnDragListener Class</p> <pre><code> public class ScaleImageSize implements View.OnDragListener{ ...
2
2,145
Redirect|Forward from old URL to new URL
<p>I had a route and a method that manipulated URLs in this way:</p> <pre><code>http://domain.com/combivent?email=WGA1cUtKZi4 </code></pre> <p>Now that URL has changed into this one:</p> <pre><code>http://domain.com/?email=WGA1cUtKZi4 </code></pre> <p>But old emails still keep the old one. I need to redirect each U...
2
1,122
How to Add Affix to Bootstrap Fixed Bottom Navbar
<p>First of all, please be inform that I already know, we can add <code>affix</code> utility to all kind of regular <code>navbar</code> in Bootstrap, In my case ,however, I need to add the affix to a specifically <code>navbar-fixed-bottom</code> Navbar. </p> <p><div class="snippet" data-lang="js" data-hide="false" dat...
2
1,120
tkinter notepad program trying to make a right click copy paste option really new to this can't get this to work
<p>I have a basic notepad program that you can save stuff with but I want when you right click after highlighting something I want to be able to copy / paste.</p> <p>I haven't tried much not sure how to do this.</p> <p>Python code(notepad)</p> <pre><code>import tkinter import os from tkinter import * from tkin...
2
3,360
Python regex replacing string that should not match
<p><strong>Update</strong>: This issue was caused by a bug in the <code>regex</code> module which was resolved by the developer in <strong><a href="https://bitbucket.org/mrabarnett/mrab-regex/commits/be893e9f7e60946eb8cdec66e5e105f369d9437b" rel="nofollow noreferrer">commit be893e9</a></strong> </p> <p>If you encounte...
2
1,587