text
stringlengths
70
452k
dataset
stringclasses
2 values
convert printer port bytes inpout32 I'm running out of ideas. I'm using C by the way via inpout32.dll. I have these "bytes"(e.g. 0000,00CC) being read from the printer data ports D0-7 or D1-8. I need to filter out human readable characters when a print job is being done. This is still very primitive, but I've got a lis...
common-pile/stackexchange_filtered
Azure Http Trigger function Hangup socket after the first webhook response I am using following code inside azure http trigger function. var form = new FormData(); var fetch = require("node-fetch"); var https = require('https'); var httpAgents_ = new https.Agent({keepAlive: true}); httpAgents_.maxSockets = 200; module...
common-pile/stackexchange_filtered
Set list item tag to [*]x instead of [li]x[/li] in SCEditor for vBulletin compatibility TL;DR SCEditor uses [li]test[/li] for list items. To make it compatible for VB, I want to change this to [*]test. But my approach doesn't full work. I can make the editor to insert [*] for list items. However they always contain an ...
common-pile/stackexchange_filtered
Incoming call listener sleeps after couple of hours For the last couple of weeks I am facing an issue with telephony manager API in Android - listener for incoming call based on listener starting Recording and on end call stopping recording (The process working smooth) ISSUE The issue I am facing is that in some mobil...
common-pile/stackexchange_filtered
Create a Wordpressloop with two posts of the next page I need to create a wordpress-site which shows 5 posts on the front and in a different loop: 2 posts of the next page. These show up if you visit the second page. Do you have any ideas? I wanna show "More articles" by displaying "older" posts in a different loop. Th...
common-pile/stackexchange_filtered
Print all the contents of a HashMap<Object, Collection<Object>> type I have a Hypergraph construction like below in HGraph class Map<HEdge, ArrayList<HVertex>> hGraph = new HashMap<HEdge, ArrayList<HVertex>>(); and would like to print all the (key, value) pairs using the below function. But all I am getting this: Hype...
common-pile/stackexchange_filtered
How do I call a windows dll function from cygwin python? I have a Windows python3.7 function which successfully calls the kernel32.dll GetSystemPowerStatus function using ctypes to interrogate the power status to see if my laptop is on AC or battery power. This is a pure python solution. I want to port this function to...
common-pile/stackexchange_filtered
Locked post's error message for comment is not correct In the list of locked posts, when I'm trying to upvote a comment, receiving the following error message as a popup. This comment is not eligible for voting or flagging But I am able to flag the comment. That is not matched with the error message. Can the error me...
common-pile/stackexchange_filtered
Graph edit framework I was looking at MeVisLab and I wondered if anyone knows a good framework for making a user interface similar to the one they use. I like the designing flow with boxes and arrows thing. What I would really like is to able to integrate with C++ using Qt, and perhaps export the graph to xml of somet...
common-pile/stackexchange_filtered
Div tag doesn't close in php Easy one! I'm trying to code a cheap forum. Coming from a C background, I started to noticed something strange about PHP. While having a function return a string (HTML) inside of a DIV into place, the browser would not print the </DIV> - even when it's echo'ed by itself. Does PHP decide whe...
common-pile/stackexchange_filtered
How to animate individual views on Activity transition? How can I trigger animations on individual views when switching activities? I.e. if the user clicks a button to go to the next page, I'd like some of my views to fly off screen, and have the background crossfade into the next screen, instead of having the whole sc...
common-pile/stackexchange_filtered
Automate local deployment of docker containers with gitlab runner and gitlab-ci without privileged user We have a prototype-oriented develop environment, in which many small services are being developed and deployed to our on-premise hardware. We're using GitLab to manage our code and GitLab CI / CD for continuous inte...
common-pile/stackexchange_filtered
Drupal 7, form submit: Display result of a query? Using the form api, I'm to display the result of some processing after a post is sent by a form. So I implement the module_name_submit(...) method: function cmis_views_block_view($delta = '') { $cmisview = cmis_views_load($delta); $block['content'] = cmis_views...
common-pile/stackexchange_filtered
Passenger: mod_rewrite rules for non-default page cache directory for Rails application Does anybody have some working Apache mod_rewrite rules that enable Phusion Passenger (mod_rails) to use a non-default location for the page cache within a Rails application? I'd like the cached files to go in /public/cache rather t...
common-pile/stackexchange_filtered
How many elements are in the list which results after factor passing $201^7$ four times? Given a list, a factor pass is defined to be a process in which each element in the list is replaced by a list of the original element’s positive divisors. For example, after factor passing the number $4$, one gets $1, 2, 4$. Afte...
common-pile/stackexchange_filtered
Cache works for html view but not for xml output I'm currently debugging (and trying to understand why) the caching for the html view is created, but not for the xml view. I read the Joomla! documentation article https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_Cache and a similiar question in this porta...
common-pile/stackexchange_filtered
About ImageTextButton And TextView I want to change TextView to ImageTextButton. This is the sample code I have used for the program. TextView test1, test2; public void changeTurn() { if (turn == 0) { turn = 1; test1.setClickable(false); test2.setClickable(true); } else { turn =...
common-pile/stackexchange_filtered
Multiple JOIN on the same table I'm working on a messaging system on Laravel and I have the following tables : USER user_id | email | password | name | ... --------------------------------------- CHAT chat_id | user1_id | user2_id ----------------------------- MESSAGE message_id | content | date | user_id | chat_id |...
common-pile/stackexchange_filtered
How to define a generic anonymous function type in TypeScript? Is it possible to have Generic Anonymous function type? I was reading this article and found this piece of code. import { Eq } from 'fp-ts/Eq' export const not = <A>(E: Eq<A>): Eq<A> => ({ equals: (first, second) => !E.equals(first, second) }) Is not fu...
common-pile/stackexchange_filtered
WARNING: unrecognized options: --disable-netaccessor-libcurl I am trying to install Xerces-C to my Shibboleth 2 SP following this guide: https://wiki.shibboleth.net/confluence/display/SHIB2/NativeSPLinuxSourceBuild But when i run: ./configure --prefix=/opt/shibboleth-sp --disable-netaccessor-libcurl i get this warning:...
common-pile/stackexchange_filtered
Netflow records with Destination Ports 1025,257 and Protocol as ipv6-icmp I have some Netflow records from a bunch of routers. The records contain IPv6 flows and there are entries with protocol as ipv6-icmp and their destination port values as 0, 1025 and 257. I know from this link that the value of 0 for ipv6-icmp in ...
common-pile/stackexchange_filtered
Seconds converter Console.Write("Type in the number of seconds: "); int total_seconds = Convert.ToInt32(Console.ReadLine()); int hours = total_seconds / 3600; total_seconds = total_seconds % (hours * 3600); int minutes = total_seconds / 60; total_seconds = total_seconds ...
common-pile/stackexchange_filtered
Import CSV File Currently, we have a DTS package on SQL Server 2000 that imports a file called suicoweb.csv. The DTS csv file properties pages look like this. Here is a sample line from the CSV file 500071;343497;260712;|Some Text; : employer : some more text|;29 The columns are seperated by semi-colons(;) and the ...
common-pile/stackexchange_filtered
Angular Data table not being filled with response object from API I'm trying to fill my data Table using an API call to get my data. However it doesn't seem to wanna fill my table even though in a console.log it show the response like so: Here is the code that I use to try and fill my table: this.beheerService.getAcce...
common-pile/stackexchange_filtered
Postgre regexp does not work in perl code using dbi i have this simple data in postgres table (data type is character varying): 48 2 L 4XL 25.0 25 7.0 i have this sql query with regexp match (i want match only numeric like values like 7.0 or 48): SELECT * FROM table WHERE ss.sizecode ~ E'^\\s*[\\d\\.]+\\s*$' this wo...
common-pile/stackexchange_filtered
Can Visual Studio 2010 help be viewed inside Visual Studio? I just installed VS2010 and the first big disappointment was the lack of any obvious way to view help within Studio itself. I very much like the new feature of updating help from the internet (I prefer to use local help because it's faster), but the separate b...
common-pile/stackexchange_filtered
WCF request response lifecycle I am new to WCF and trying to understand a few things. Is every request/response handled in separate mutex threads/process host? Can same thread/process handle multiple requests? Is there any request queuing involved? If I have global/static variables is their scope limited to the give...
common-pile/stackexchange_filtered
How to detect Database Changes with SqlDependency and c# I want to fire a Method each Time a database detected a change. I tried this in a Console Application: (ServiceBroker in Database is active) using System; using System.Data; using System.Data.SqlClient; namespace SqlDependencyExample { class Program { ...
common-pile/stackexchange_filtered
ASP.NET 5 / MVC 6 AppSettings [TL;DR]: How do I access AppSettings data without using dependency injection in MVC 6? I'm trying to reach some app setting data from a _Layout.cshtml in my MVC 6 app. I understand (and have implemented) the "Options" patterns as described at http://docs.asp.net/en/latest/fundamentals/conf...
common-pile/stackexchange_filtered
Button in View Should Reset Array in ModelController But Doesn't I am attempting have one of my views present the user with the option to reset an array that they have edited to it's original form. I am currently attempting to do this using NSNotificationCenter. The current process: User flips through a series of card...
common-pile/stackexchange_filtered
javascript appendChild not working Here is the code I have, I am trying to append the elements in the array to a drop down select box. The code works fine until the appendChild method. I can't figure out why that one line is not working. Here is the code </head> <body> <h1> Eat Page</h1> <p id="test">Hi</p> ...
common-pile/stackexchange_filtered
Which environment variable specifies current path? I'm communicating with a Debian computer via SSH2 PHP extension. Their (not very well) documented function ssh2_exec states that it's fourth argument is an associative array of name/value pairs to set in the target environment. I want to operate upon different path ...
common-pile/stackexchange_filtered
How to get back focus on my Swing Java GUI running on a Solaris machine? Hi guys i am working on a java swings GUI on the Solaris platform, I want my application to have the focus at all times and change only when I click a button I am having to do it for a reqirement which might actually seem very stupid... Please le...
common-pile/stackexchange_filtered
What's the recommended way of doing a master/detail page using ASP.NET MVC? Does anyone have any suggestions/ best practices for doing master/ detail pages using the ASP.NET MVC Framework? Background I've got a page of Client information, under each one I need to display 0 or more related records about that client. ...
common-pile/stackexchange_filtered
How can I get an array of random keys from an object, as opposed to a full list? Rather than getting, for example, the first 5 keys from an object with 10 keys: var keys = Object.keys(brain.layers[this.layer]).slice(0, 5); I'd like to get 5 of the keys at random. I know of bulky, long, roundabout ways of doing it, suc...
common-pile/stackexchange_filtered
my movies are not converting properly when i try converting a film it goes through the full process it even says operation complete afther burning but disks still turn out to be blank i have used convert x and imtoo avi convert to dvd how can i solve this How are you determining that the disks are still blank? when ...
common-pile/stackexchange_filtered
Markov chain doesn't sum up to 1 Let $\{X_n\}$ be a Markov chain on $S=\{1,2,3,4,5,6\}$ with the matrix suppose we define a new sequence $\{Y_n\}$ by $$Y_n=\cases{1\quad X_n=1\vee X_n=2\\2\quad X_n=3\vee X_n=4\\3\quad X_n=5\vee X_n=6}$$does for $a=1$ this is a Markov chain? I thought summing up and computing for exa...
common-pile/stackexchange_filtered
Why Graph API Explorer doesn't return the wall 'feed' based on a user's id When I test the Graph API Explorer from facebook site and write the following parameters: https://graph.facebook.com/'userid'/feed?access_token='my access token' it returns { "data": [ ] } I tried it with several group ids and all retur...
common-pile/stackexchange_filtered
Implicitly convert Geometry to WKT string in PostGIS Suppose I have a table defined as follows: CREATE TABLE gtest (name varchar, geom geometry); To insert, I am able to simply do this: INSERT INTO gtest VALUES ( 'Polygon', 'SRID=4326;POLYGON((0 0,1 0,1 1,0 1,0 0))' ); I don't have to wrap the WKT string in t...
common-pile/stackexchange_filtered
ObservableCollection addings items In my WPF application I have an Observable Collection of Functions private ObservableCollection<Function> functions = new ObservableCollection<Function>(); I wrote a command for a button to add new functions to the collection: In this case I am adding a polynomial function. public IC...
common-pile/stackexchange_filtered
If $\kappa$ is ineffable, then there is no $\kappa$-Kurepa tree So this is an exercise($4.25$) from Ralf Schindler's book, and I have some trouble with it. This is the statement: (Jensen-Kunen) Show that if $\kappa$ is ineffable, then there is no $\kappa$-Kurepa tree. So naturally after thinking about this for some t...
common-pile/stackexchange_filtered
Convert qtvr file to mov I have received QTVR files (Panorama files) from my client and I was supposed to convert it to mov, and later convert it to mp4. Does anybody know any softwares to convert them? I have used Pano2Movie, but it seems my trial version is already outdated, so I can't use it again. If you convert i...
common-pile/stackexchange_filtered
I'm facing this problem in dart, is there a solution? main.dart:7:25: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't. var age=1021-num.parse(birth_years); ^ It is because String? is nullable and String is n...
common-pile/stackexchange_filtered
MySql hierarchical query I have Organizations table: Id Name ParentId ------------------ 1 Org1 5 2 Org2 5 3 Org3 4 4 Depart2 6 5 Depart1 6 6 Company null What I would like to achieve is query which returns table with belonging of each organization to higher order orga...
common-pile/stackexchange_filtered
R Studio Encoding Does anyone know how I can change the encoding in R so UFT8 is TRUE? > l10n_info() $MBCS [1] FALSE $`UTF-8` [1] FALSE $`Latin-1` [1] TRUE $codepage [1] 1252 $system.codepage [1] 1252 If you are using Windows, you can't. Windows doesn't support UTF-8 locales. Almost all other operating systems ...
common-pile/stackexchange_filtered
extending a class with an extra parameter I got a simple question. I have a class, which I use for purpose of splitting a string in 2 years: public class Period { int firstYear; int secondYear; Period () { } Period(String periode) { String [] periodeSplit = periode.split("-"); t...
common-pile/stackexchange_filtered
SQL SELECT Compression I'm writing a query with the following structure: IF (SELECT 8) = (SELECT 9) INSERT INTO Quality_Report VALUES ('USBL', 'IM SL Current Time Period',(SELECT 8),(SELECT 9),'Match',GETDATE()) ELSE INSERT INTO Quality_Report VALUES ('USBL', 'IM SL Current Time Period',(SELECT 8),(SELECT 9),'Not Matc...
common-pile/stackexchange_filtered
Storing object array with JDBCTemplate from POST method - Spring Boot How to do you insert an object array into a database by using JDBCTemplate? I have an object array of variable length coming in from my POST method in my controller. I have looked at these, http://www.java2s.com/Tutorial/Java/0417__Spring/PassParam...
common-pile/stackexchange_filtered
Assessing whether the probability of being assigned treatment is equal (or reasonably close) between two individuals/groups I'm currently studying the textbook Design of Observational Studies, second edition, by Rosenbaum. Chapter 3 Two Simple Models for Observational Studies says the following: 3.1 The Population Bef...
common-pile/stackexchange_filtered
Compile C# 7.2 project from command line I am creating test automation for my code generation library. I have a test project in C# 7.2. The project compiles with Visual Studio without any issues. My test is updating the code of this project. Then I want the test to compile the project, load the assembly, and verify it...
common-pile/stackexchange_filtered
What's the minimum necessary bandwidth for a fast website? What's the minimum amount of bandwidth for a website? Let's say I have a hosting service with 125GB traffic, how many websites I can store before they start to slow down? Also, what does "1000 Mbit uplink" mean? What is going to influence? There is no minimum ...
common-pile/stackexchange_filtered
suggest the architecture for reporting application with custom templates Let me put down my requirements, we are designing a solution to satisfy the very dynamic reporting needs. The data for those are generated in sqlite databases for now(they caled it the cubes) so there are lots of cubes on the server machines. The ...
common-pile/stackexchange_filtered
Concerning the Countability of the Set of Reals with Decimal Representations Consisting of All $1s$ The Problem: Exhibit a one-to-one correspondence between the set of of positive integers and the set, $S$, of real numbers with decimal representations consisting of all $1$s. Where I Am: I realize that $S$ is countable ...
common-pile/stackexchange_filtered
Where can I find hardware details for the Philips VG-5000? I'm interested in exactly what connectors the VG-5000 and what the pinouts are for them. Ideally, I'd like a full set of schematics for the machine. Well, the wikipedia article links to the service manual (see Reference 23), and though it is in French, it cont...
common-pile/stackexchange_filtered
Browsers force HTTPS for my NGINX server serving a .app domain I am creating the NGINX configuration for my website, and, I want to surf to it with Firefox or Chrome, and they always redirect to HTTPS. I previously had HTTPS enabled for the domain (automatic redirect configured by certbot) but I discarded that configur...
common-pile/stackexchange_filtered
Vertically Align Text and Image in a Dynamic Height unordered list I currently have a list of items. Some items are a single line of text and others are 2 lines with a break in between. I am having difficulty vertically aligning the image to the right of the text. I can align easily when there is only a single line of ...
common-pile/stackexchange_filtered
Neo4j - Create relationship within label on property I'm importing a dataset of the following structure into Neo4j: | teacher | student | period | |:---------------:|---------|:------:| | Mr. Smith | Michael | 1 | | Mrs. Oliver | Michael | 2 | | Mrs. Roth | Michael | 3 | | Mrs. Ol...
common-pile/stackexchange_filtered
jQuery unable to pick dd/mm/yy hh:mm:ss from a input bos I m timepicker plugin to pick values from a text field. jquery is able to pick the dd/mm/yy but it is not able to pick hh:mm:ss. Further after firing from another event it is able to pick it seems the pick event is fired before the value is updated in field. How...
common-pile/stackexchange_filtered
Understanding Registers in OpenCL I am a little confused regarding the usage of registers internally by OpenCL kernels. I am using -cl-nv-verbose to capture the register usage for my kernel. At the moment, my kernel is recording ptxas info: Used 4 registers for some code in the kernel. For the following segment: double...
common-pile/stackexchange_filtered
Merging CSVs with some common columns (though columns are in different places)? I'm looking to merge CSVs that have common columns, but the columns aren't always necessarily in the same place. The CSVs do have a header row. I just want to try to get the data appended to the bottom. For example, each CSV will have th...
common-pile/stackexchange_filtered
Marking y value using dotted line in matplotlib.pyplot I am trying to plot a graph using matplotlib.pyplot. import matplotlib.pyplot as plt import numpy as np x = [i for i in range (1,201)] y = np.loadtxt('final_fscore.txt', dtype=np.float128) plt.plot(x, y, lw=2) plt.show() It looks something like this: I want to m...
common-pile/stackexchange_filtered
Adding a permanent PREROUTING rule in iptables using firewall-cmd I'm trying to add a new rule in the PREROUTING chain in iptables (NAT) using firewall-cmd on RHEL 7: $ firewall-cmd --permanent --direct --add-rule ipv4 nat PREROUTING 0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8161 Then I check the iptables via $...
common-pile/stackexchange_filtered
Method streamDownload does not exist I'm trying to download a file with laravel, but I got this error! exception: "BadMethodCallException" file "C:\Users\dev\gaaho\vendor\laravel\framework\src\Illuminate\Support\Traits\Macroable.php" line 96 message : "Method streamDownload does not exist." this is what i have in my...
common-pile/stackexchange_filtered
Waiting for a chunk to load, before loading more I'm building an app, where I need to load data in chunks, I mean first load 5 items and then proceed with another 5, but I can't figure out how to do that. At the moment I chunk up my list of items, so I get a list of lists with 5 items in each. Right now the for-loop ju...
common-pile/stackexchange_filtered
floating point hex octal binary I am working on a calculator that allows you to perform calculations past the decimal point in octal, hexadecimal, binary, and of course decimal. I am having trouble though finding a way to convert floating point decimal numbers to floating point hexadecimal, octal, binary and vice versa...
common-pile/stackexchange_filtered
Android - NO SUCH TABLE Why is my Notes table not creating, can anyone see any error in my query string. I have figured out that I wasnt inputting data into my notes table cause it doesnt exist. private static final String CREATE_NOTES = "CREATE TABLE " + NOTE_TABLE + "(" + NOTES_ID + " INTEGER PRIM...
common-pile/stackexchange_filtered
Install vue-cli Globally or Locally When I install @vue/cli globally, I am forced to use sudo in order to initiate a new project, otherwise I receive a permission denied error on the node_modules folder, which contains vue-cli. However, if I use sudo in order to initiate the project, I will require these permissions fo...
common-pile/stackexchange_filtered
building a table with dynamic columns from a key value array in snowflake I have the following table - ID , DATA 1 [{"key":"Apple", "value":2}, {"key":"Orange", "value":3}] 2 [{"key":"Apple", "value":5}, {"key":"Orange", "value":4}, {"key":"Cookie", "value":4}] I'd like to build the following table : Id, Apple, Or...
common-pile/stackexchange_filtered
create .ics file on the fly using javascript or jquery? Can someone tell me if there is any jquery plugin to dynamically create .ics file with values coming from the page div values like there would be <div class="start-time">9:30am</div> <div class="end-time">10:30am</div> <div class="Location">California</div> or j...
common-pile/stackexchange_filtered
lotus notes section from bash text file I would like to be able to send a mail from unix/bash using mailx and cat( example: cat testMailWithSection.txt | mailx -s "testMail" -r "sender@machine" "destination@company" & however, it would be a long mail, and I'd like to put parts of it in a section. Is this possible wit...
common-pile/stackexchange_filtered
How to set permissions for publishing new Wiki version on VSTS We've published our Wiki pages in VSTS using 'code as Wiki' (see explanation here). In general we only want to use the master branch for displaying these Wiki pages, but sometimes we want to add a new version using the Publish new version menu option (see s...
common-pile/stackexchange_filtered
prevent keyboard from moving specific layout up I have TextInputEditText which have another layout below it. When the TextInputEditText is focused I hide the layout below it and show the keyboard. When the user is done with the writing I hide the keyboard and immediately set the invisible layout back to visible. The pr...
common-pile/stackexchange_filtered
Show that every prime number in the form $a+b$ with $a,b$ divisors of $n$ is distinct and not divides $n$ Recently, I have found this problem: Let $n$ a natural number. Suppose that its positive divisors can be partitioned in tuples of the form $(a,b)$ such that the sum $a+b$ is a prime number. Show that every such pr...
common-pile/stackexchange_filtered
Difference between Java SE/EE/ME? Which one should I install when I want to start learning Java? I'm going to start with some basics, so I will write simple programs that create files, directories, edit XML files and so on, nothing too complex for now. I guess Java SE (Standard Edition) is the one I should install on m...
common-pile/stackexchange_filtered
How to get complete content for a single post that was splitted into pages I have a WordPress post which was divided into multiple pages using pager break <!--nextpage--> tag and it's pagination functionality is working as expected for single post page. www.example.com/url-post-content/1 www.example.com/url-post-conten...
common-pile/stackexchange_filtered
How to efficiently determine whether a given ladder is valid? At my local squash club, there is a ladder which works as follows. At the beginning of the season we construct a table with the name of each member of the club on a separate line. We then write the number of games won and the number of games played next to ...
common-pile/stackexchange_filtered
Lost all data after chkdsk on NTFS partition. How do I get it back? I have a multiboot system with a shared NTFS partition (300gigs) across OS's (Windows7, Debian, Arch). Recently I booted into Windows and it prompted me to run CHKDSK and after that I can't see any of my data. Not only me but even testdisk fails to see...
common-pile/stackexchange_filtered
Object's properties undefined Playing around with the sample network of car auction. I am not sure why the "Offer" transaction works as it shows all the properties, but the "AmendOffer" transaction shows properties start with $ as undefined? Is there a way to translate transaction from "AmendOffer" to "Offer", I tried ...
common-pile/stackexchange_filtered
MultiThreading issues while programing for android I am developing on Android but the question might be just as valid on any other Java platform. I have developed a multi-threaded app. Lets say I have a first class that needs to do a time-intensive task, thus this work is done in another Thread. When it's done that sam...
common-pile/stackexchange_filtered
How to make TableView Header Static/ unScrollable I am working on Table View. I have implemented Header at the top of TableView. Its scrolling when i scroll TableView. Any Solution to make the Header Static. As you are saying it is static so add just one view above table view and design it as per your design. see thi...
common-pile/stackexchange_filtered
Stylle of text for scientific words in website I'm helping design a website for a environmental conversationalists group. The website is intended to be accessible to a large audience, but does contain some scientific information (such as Latin names of plants). As I've been told, the style for scientific writing is to...
common-pile/stackexchange_filtered
Webpack setup with Django I working on a Vue app in Django via django-webpack-loader, running locally I'm able to get it to work by using the following in my base.html file: {% load render_bundle from webpack_loader %} ... ... {% render_bundle 'app' %} However, in production this doesn't work - I believe because the w...
common-pile/stackexchange_filtered
how to compare two images in java?in terms of height and width i had been working on my project which encompasses the technique for comparing images. I want to compare two images in java in terms of height and width, i can't compare it if any one can help it please do.. http://stackoverflow.com/questions/672916/how-t...
common-pile/stackexchange_filtered
Why won't my redbot fire as a system service? I have a raspberry pi 4 with python and pyenv installed. Usually my routine to launch RedBot is to do the following... tmux pyenv shell redbot redbot gunther and it launches.... I'm trying to setup a service to do this for me on reboot. [Unit] Description=%I redbot After=...
common-pile/stackexchange_filtered
How to pass WindowState from desktop shortcut into WPF app? How can I control the initial WindowState (Normal, Minimized, Maximized) of a WPF main window from a desktop shortcut? The "Run:" combobox of the shortcut's properties dialog let's me choose between "Normal window", "Minimized" and "Maximized". But this optio...
common-pile/stackexchange_filtered
SQL query to filter out users who already have recieved an email Suppose: You tried to send a mass mailing, but something went wrong, and only some users got the mail. You sent a mass mailing recently, but now new users have signed up, and they need to receive the mail as well. How do you filter those who have alread...
common-pile/stackexchange_filtered
How to remove the last edge of a subgraph using networkx I was hoping that you can helped me with this. I created a graph using an adjacency matrix with the next code. graph = nx.from_numpy_array(adjacency_matrix, create using = nx.DiGraph) mypos = nx.spring_layout(graph) nx.draw_networkx(graph, pos = mypos) and the...
common-pile/stackexchange_filtered
JNA - CreateToolhelp32Snapshot not returning all DLLs I'm trying to get the base address of a module from a process to which I have a handle to. I've tried this using the CreateToolhelp32Snapshot and EnumProcessModules methods. The problem is it both methods return only these 5 DLLs: underrail.exe ndll.dll wow64.dll w...
common-pile/stackexchange_filtered
Why is the modified spherical Bessel function an asymptotic solution of this ODE? I am trying to solve the radial equation with $R = u/r$ $$ \frac{d^2}{dr^2}u - \frac{l(l+1)}{r^2}u + (E-V)u = 0; \qquad V(r) = -\frac{2Z}{\alpha}\frac{e^{-r}}{1 - e^{-r}}, $$ using the shooting method. I have $R(0) = R(\infty) = 0$, but I...
common-pile/stackexchange_filtered
Program works when I print the value out, but not when I don't I have the following program that is checking for substrings. #include <stdio.h> #define TRUE 1 #define FALSE 0 int checkSubstring(char string[], char sub[]) { int k, j = 0; int count = 0; for(int i = 0; i<=8; i++) { if(sub[k] == str...
common-pile/stackexchange_filtered
Verifying the last Two Moore-Penrose Equations If A is an m x n matrix with rank(A) = n, then $A^{+} = (A^{T}A)^{-1}A^{T}$. I already proved the first two of the Moore-Penrose equations. The second two are to verify: 3) $(AA^{+})^{*} = AA^{+}$ 4) $(A^{+}A)^{*} = A^{+}A$ I've attempted substituting for $A^{+}$ on o...
common-pile/stackexchange_filtered
VIEWS in MySQL Workbench always return (0) row(s) drop database if exists RentaHouse; create database RentaHouse; use RentaHouse; create table Staff( staffNo char(5) not null primary key, fName varchar(15), lName varchar(15), position varchar(15), dob date, salary decimal (7,2) unsigned ); create table PropertyForRe...
common-pile/stackexchange_filtered
How much money is fiat money? How much or what amount/percentage of all the money in the world actually fiat money? I am not looking for an accurate estimate obviously, but a ball park estimate... even if that was possible. Also by all the money, I mean all the money in currency issued by recognized countries in the wo...
common-pile/stackexchange_filtered
How to view an unlisted Photosynth, without a Windows Live account? I created this unlisted (but now stated in public) photosynth People are required to log into a Windows Live account to see it. Is there a public link to it that I can share? From the Photosynth website http://photosynth.net/ if you choose [My Photo...
common-pile/stackexchange_filtered
PHP MVC: How to use private Model object stored inside View from outside class I am new in learning MVC, I want to use private Model object stored inside View from outside class, like below example: class Model{ private $data } class View{ private $model public function __construct($model) { $this->model = $m...
common-pile/stackexchange_filtered
I was creating a image with PhotoImage and this error happened ***Error message : Traceback (most recent call last): File "C:/Users/gurse/Desktop/Khanda/Khanda.py", line 3, in <module> label = Label(x, image=PhotoImage(file=r"C:\Users\gurse\Desktop\Khanda")) File "C:\Users\gurse\AppData\Local\Programs\Python\Py...
common-pile/stackexchange_filtered
XSLT 2.0 intellisense in Visual Studio 2010 - Adding a schema? I want to be able to get intellisense in XSLT but for version 2.0 in visual studio I know by default XSLT 2.0 isn't support - only 1.0 - but using Saxon API you can use XSLT 2.0. I would love to get intellisense, i think this is possible by adding a XSLT 2....
common-pile/stackexchange_filtered
AWS SNS publishing to a subscribed Lambda function logs null fields Tried to post this to the AWS Forums, but it seems my account is "not yet ready", whatever that means. I've setup an AWS Lambda function (written in Java) that accepts a POJO in order to allow for automatic deserialization of JSON. The test JSON I am ...
common-pile/stackexchange_filtered
how to get html struts styleClass with javascript/jquery I need to get the value of the styleClass element in javascript. Page is in jsp with struts/html tag elements. jsp code is <input type="hidden" class="filename" name="filename" value="<%= filename %>" /> <html:file property="testfile" sty...
common-pile/stackexchange_filtered
Can I request a certificate for *.user1.example.com from Let's Encrypt if I only own example.com domain If I only own example.com domain, *.user1 is a CNAME of example.com, but I don't have user1.example.com domain, so there can't satisfy DAN-01 challenge on user1.example.com, the challenge only can be satisfied on exa...
common-pile/stackexchange_filtered