text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
Drawing graphics in Java
I am trying to draw a circle in side a square and having multiple square circles in java. I am almost done but my output isn't coming out as I wanted to. The picture is what I am trying to do but it's not working out.
Here is my code:
a.awt.*;
public class SquaredCircles {
public static f... | common-pile/stackexchange_filtered |
React Native : Avoid infinite loop with useCallback
I am trying to dispatch an action to fecth an API when the home screen appears but I have an infinite loop.
My project :
React Native app
Redux
redux-axios-middleware
React Navigation (I am using a Drawer)
What I tried:
const dispatch = useDispatch();
useEffect(()... | common-pile/stackexchange_filtered |
Cannot resolve bundle style
I'm trying to integrate Webpack into my Django Project.
This is my webpack.config.js file:
const path = require("path");
const webpack = require('webpack');
const BundleTracker = require('webpack-bundle-tracker');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const VENDO... | common-pile/stackexchange_filtered |
Capture username with IP and time in PHP
I've written scripts to capture the IP address of a user with the time as well as to capture the username with the time but I've tried combining these and I'm having some errors with the $text
It's almost there, just not sure why this is wrong.
<?php
$user = $_POST["PHP_AUTH_USE... | common-pile/stackexchange_filtered |
C++ flag management
I have a design question about flag management.
CONTEXT
The system includes some shell script and then a C++ binary. Currently, the entry point of the system is the shell script, and then all flags are passed into the main function of the C++ binary and accessed via gflag mechanism.
This isn't sup... | common-pile/stackexchange_filtered |
Prestashop prevent impossible combination selection
I'm setting up a shop ATM and I have product which can have multiple combinations.
However, some combinations are not possible.
If I choose a combination that is not possible, a message appears saying that the product does not exist in this combination.
I would like t... | common-pile/stackexchange_filtered |
If an element of a group $G$ has infinite order, prove that powers of that element are distinct
Let $G$ be a group and $x \in G$ such that $x$ has infinite order.
Prove carefully that the elements $x^n $ where $n \in \mathbb{Z}$ are
all ${\bf distinct}$
Proof. (attempt)
We are given $|x| = \infty$. Now, say $x^n = x^... | common-pile/stackexchange_filtered |
css padding-left not working in chrome and firefox
I have below css within a div
<div>
<span>
<ul></ul>
</span>
</div>
#SPAN {
PADDING-RIGHT: 0px; PADDING-LEFT : 14px; FONT-SIZE: 11px; FONT-FAMILY:Tahoma; PADDING-BOTTOM: 0px; WIDTH: 100%; PADDING-TOP: 15px; HEIGHT: 100%
}
#UL {
PADDING-RIGHT: 0px; PADDING-LEFT:... | common-pile/stackexchange_filtered |
Sifr Horizontal Menu with LI
I am designing a very simple horizontal menu with sIFR and CSS list. The thing about it is that it assigns a certain width to it that makes texts of different widths´ spacing look weird on screen.
I´ve seen a default width and height of a certain amount, but what I need is to make it so th... | common-pile/stackexchange_filtered |
Visual artifacts on a multithreaded ray-tracing
I have been trying to port a RayTracer from a single thread version to a multithrea one. On most cases, it work as expected, but on two test cases, problems arise. In one, where there is a big triangle that covers most of the screen, in some executions, its color, blue, ... | common-pile/stackexchange_filtered |
Create const.js on Meteor
I would like create const.js in /imports/startup/client/const.js. My content :
export const $body = document.body || document.documentElement;
export const $header = document.getElementById('js-header');
...
So, when i import my const in my /imports/ui/components/header.js :
import { $header ... | common-pile/stackexchange_filtered |
Factors in a different base $\ 2b^2\!+\!9b\!+\!7\,\mid\, 7b^2\!+\!9b\!+\!2$
Two numbers $297_B$ and $792_B$, belong to base $B$ number system. If the first number is a factor of the second number, then what is the value of $B$?
Solution:
But base cannot be negative. Could someone please explain where I am going wro... | common-pile/stackexchange_filtered |
How to close opened excel file from excel application using python?
I want to close excel file using python when excel workbook is open but i am not able to close.
I did tried file.close() but it's throwing error so please can you guys guide what should i do.
You cannot close a file which is opened in another applicat... | common-pile/stackexchange_filtered |
MySQL procedure returns NULL when similar sql query gives an result
When I use the query:
SELECT game_id FROM games_players WHERE player_id = 1 LIMIT 1
I got an result:
game_id
-------
1
But when I run it as an stored procedure (on the same table, of course):
CREATE FUNCTION `start_game` (player_id_1 INT(11) U... | common-pile/stackexchange_filtered |
Combine and duplicate meshes before exporting them?
I'm writing an add-on that exports objects to FBX file format.
One of its features will be the ability to merge another object for export. So the user selects object A, clicks the "choose merge object" button, then clicks object B. During export, the objects are comb... | common-pile/stackexchange_filtered |
Return Subscript in JSON
I am trying to return a JSON object via AJAX using jQuery, that may contain elements that need HTML Tags. It is not great practice to include HTML tags within a JSON response and even so, it will be encoded at the other end so may cause more problems.
Consider this result:
{
"Country_Code":... | common-pile/stackexchange_filtered |
Does GMP support armv7s?
I tried to use GMP for iPad application.
Unfortunately, it failed to running with XCode 4.5.1 by incorrect architecture of library - armv7s.
Undefined symbols for architecture armv7s:
"___gmpz_add", referenced from:
_main in gmp.o
"___gmpz_get_str", referenced from:
_main in gmp... | common-pile/stackexchange_filtered |
Disable Weld-SE startup debug logging level when running unit tests
I have some tests in my project and when I run them through IntelliJ, I get many lines of logging statements from WELD. I can't figure out how to disable them or set them at WARNING or higher level.
This is the current output every time I run a Test cl... | common-pile/stackexchange_filtered |
How to force AddThis dropdown to the left?
I'm using AddThis (http://www.addthis.com/) on one of my sites, and it's working just fine. But I've noticed that the dropdown box will always open to the right side, if there's room enough to the right in the browser window. If there's not enough space to the right, the dropd... | common-pile/stackexchange_filtered |
Hi, I'm trying to instal Nuget packagebut the following appear
This is the result, I tried many packages but all say the same.
I'm using Visual Studio 2019
Severity Code Description Project File Line Suppression State
Error Could not install package 'SQLitePCLRaw.core 2.0.4'. You are trying to install... | common-pile/stackexchange_filtered |
Node Sass generate nested CSS
We are using Node-Sass to compile SCSS files to css. Below is the directory structure that I am using.
Using Node-Sass I want to generate a Dist directory where all the compiled CSS files will go to their respective directory.
I have tried the below NPM script
node-sass --include-path p... | common-pile/stackexchange_filtered |
Using Regex to capture the first character of a string while ignoring "the " and "a "
I have an array of objects that are music artists in Javascript. I'm trying to construct a regex to select the artists that begin with a selected letter. However, I need to exclude "the " and "a " in each artist name string while st... | common-pile/stackexchange_filtered |
Not able to set Bitmap to wallpaper using wallpaperManager
I have a string which consists an URL of the image, in the same activity I am viewing the image through URL. But to set the same image as my wallpaper, I am converting the string to Uri and then to Bitmap to use setBitmap.But I am still getting error telling No... | common-pile/stackexchange_filtered |
Seeking a formal definition of a complex hyperbolic space
I'm trying to find a formal definition of a complex hyperbolic space
that is $CH^n$.
Can anyone help me please? I tried looking online already but no formal direct definition.
Does this answer your question? Definition of complex hyperbolic geometry
no it does... | common-pile/stackexchange_filtered |
How to do a PHP Batch request with Google Analytics
I have to do 40 requests to Google Analytics at the same time. But I have problems to understand the following batching explanation of GA to PHP (Link). I understand the purpose, but how do I translate this to PHP? I have no problem to do a usual cURL request, but how... | common-pile/stackexchange_filtered |
.htaccess - Wordpress under Magento site with multi language sub directories
tl; dr
I have a Magento install on www.example.com
I have a Wordpress install on www.example.com/wordpress
And I need the following urls to also serve that same wordpress content;
www.example.com/eu/wordpress
www.example.com/gb/wordpress
P.S.... | common-pile/stackexchange_filtered |
Chaining a list of member functions where one member function's call depends on if boolean is true or false
We have a class that is defined with chained member functions, and it is intended to be called like this
Tensor().setA(args)
.setB(args)
.setC(args)
.setD(args)
.build();
But sometimes (if fl... | common-pile/stackexchange_filtered |
How many concurrent connections does ADAM allow?
Is there a limit on number of concurrent connections to ADAM. Is is configurable?
-- How many concurrent connections from a same user could be established?
-- How many concurrent connections from different users could be established?
Any help/pointers will be appreciate... | common-pile/stackexchange_filtered |
Deploying Asp.Net 2.0 AJAX Extsions in BIN folder
My web server does not have the framework installed and they are telling me to use the DLLs in bin folder.. is there any difference (performance, security etc) between deploying it by server installation and through bin..
No, there isn't any difference.
There is no di... | common-pile/stackexchange_filtered |
How to connect to Amazon Athena using Simba ODBC
I am attempting to connect to Athena from RStudio using DBI::dbConnect, and I am having issues with opening the driver.
con <- DBI::dbConnect(
odbc::odbc(),
Driver = "[Simba Athena ODBC Driver]",
S3OutputLocation = "[s3://bucket-folder/]",
AwsRegion... | common-pile/stackexchange_filtered |
How do I compare the old data type value with the new ones
So I am using this API which shows the current price and other things when it comes to ethereum coins. And I'm trying to create a small console application that checks if the value has changed from the last time we scanned it.
What I have so far is this.. And I... | common-pile/stackexchange_filtered |
How to create a macro for a templated function in c++
I want to create a macro for a template function
something on the lines of
#define CHECK_MIN(T)(value, target) checkmin(T value, T target) \
checkmin<T>(T val, T target, __FUNCTION__, __LINE__)
template<typename T> checkmin(T val, T target, const char* functionN... | common-pile/stackexchange_filtered |
composer.json: change the vendor-dir dynamically through a script
In a project using Composer, shared by many developers and environments, I need to have the vendor-dir config parameter of composer.json to be set dynamically. That is, a script that runs when composer install/update is launched, must be able to change t... | common-pile/stackexchange_filtered |
How to iterate through Hash Map & put into an array/list structure?
Thank you for reading my post. Currently I am doing a school project and am unfortunately stuck. I have a hashmap of types that I would like to be able to iterate through and put into an array/list structure. Instead of using Map.Entry I have a helper... | common-pile/stackexchange_filtered |
What security implications does symlinking the Data/ directory in Tor Browser have?
Is the recommended way to update the TBB still by replacing the old version (and handling bookmarks and Data/Tor separately)? I hate losing preferences such as fonts, NoScript configuration etc. To handle this, I've moved the Data direc... | common-pile/stackexchange_filtered |
how to compare and call function in javascript
I'm studying javascript and I'm making a form where it will ask for a start address and a destination address. What I want to do - but cant figure out - is how i can get javascript to compare the two values if my input box and if it exist on the function it will show a mes... | common-pile/stackexchange_filtered |
How to override disabled hyperlinks styling?
Is it possible to override the styling that is applied to a hyperlink if it has the disabled="disabled" attribute?
It's currently greyed out. Not bothered about making it an active link, just want to change the font, color, etc.
UPDATE : Must work in IE6, IE7 & FF
UPDATE :
... | common-pile/stackexchange_filtered |
Correct nonsense sentence on "Established User" privilege page
The Established User privilege page contains the following "sentence":
An expanded usercard is only available if you have have at least 28 characters in their "About Me" section of their profile.
Can this be corrected so that it makes sense please?
Edit
I... | common-pile/stackexchange_filtered |
Troglodytes, kobolds, and dragons, living together
I am currently working on an an AD&D adventure and am wondering if the following situation makes any sense:
There's a green dragon that lives in a dungeon (surprise!) that is worshiped by troglodytes and kobolds.
The troglodytes are superior to the kobolds, and they k... | common-pile/stackexchange_filtered |
Jackson: json schema references other schemas, can this be disabled?
When I use Jackson Json-Schema-Module, my schemas are generated using references that are pointed to each other.
Consider this schema:
This is a property object inside POJO1
"myObject" : {
"type" : "object",
"id": "urn:jsonschema:package... | common-pile/stackexchange_filtered |
allias for properties with signalR
I'm looking for a class-propery attribute that'll make the property name different when serialized to client.
exactly like [DataMember(Name="newName")] works with Json on a regular webApi - it doesnt seem to be working with signalR.
Have you tried using JsonProperty attribute (or Jso... | common-pile/stackexchange_filtered |
Postgresql calculate SUM value in time for all items in a table with gaps
I would like to calculate SUM value in time for all items in a table "measures", which contains measures from stations (each one defined with an identifier)
_ id_station (varchar)
_ measure_time (timestamp)
_ measure_value (float)
My goal is to ... | common-pile/stackexchange_filtered |
Which message is used on authenticated ip packets using HMAC-MD5?
This is not a programming question per se, but it is related to a c program that I am trying to make in order to respond the ip sla control messages sent by a cisco router. I know that it uses MD5 using and a key chain in order to authenticate the packe... | common-pile/stackexchange_filtered |
Add HTMLelement to RootPanel in GWT
I have a <div> in my HTML page. What I need to do is, add <ul> element inside it from my Entry point class. I have tried from onModuleLoad function using below code,
UListElement ul=Document.get().createULElement();
ImageElement img=Document.get().createImageElement();
img.se... | common-pile/stackexchange_filtered |
Hiding java code
I would like to give an executable jar file to my client and I have a code in it to expire after a certain time. But if the client uses some decompiler and reads the class file, he can modify and make the code to work Is there any way I can stop this from happening.
Can I use deleteOnExit() or some oth... | common-pile/stackexchange_filtered |
error C2106: '=' : left operand must be l-value in Fibonacci sequence by dynamic programming in C++
I am trying to write a program for generating Fibonacci sequence by dynamic programming approach as follows.
#include<iostream>
#include<ctime>
int fib(int index)
{
int memo[] = {0};
memo[0] = 0;
memo[1] = 1... | common-pile/stackexchange_filtered |
Dragging from one layout to another throws "android.widget.FrameLayout cannot be cast to android.widget.ImageView"
class MyDragListener implements View.OnDragListener {
private float dX;
private float dY;
ImageView tmpView;
@Override
public boolean onDrag(View view, DragEvent event) {
// Han... | common-pile/stackexchange_filtered |
Fastest way to input all the numbers on one line in Python3?
My problem is "time limit exceeded" error for a problem on SPOJ. As I thought this error is because of large input, I need your help to find the best way to handle large inputs.
Let me explain the input and my code.
Input
The first line of the input contains... | common-pile/stackexchange_filtered |
Pausing current thread via user input, in console window application
This is the solution I came up with to pause/resume an active thread inside a console...
It requires a second thread for input, which the main loop reacts too. But my ignorance of C# makes me wonder if there is a simpler solution? Perhaps one that ca... | common-pile/stackexchange_filtered |
name for excel graph problem with the vba generator
So I'm trying to use a name as range values to generate a graph chart. I used the code generator from excel and I got that :
Sub Macro_name_graph2()
'
' Macro_name_graph2 Macro
'
'
ActiveChart.SeriesCollection.NewSeries
ActiveChart.FullSeriesCollection(1).nam... | common-pile/stackexchange_filtered |
Why is JavaFX WebEngine getLoadWorker looping?
I'm not very sure how to word this question but I'll try. My application runs commands against a website with a click of a button. The issue is during each loop the getLoadWorker increases by 1. In the load worker i set listeners. Here is how it works.
MenuItem executeT... | common-pile/stackexchange_filtered |
Flutter in app subscription returns "Pending transaction"
I'm using this Package in_app_purchase in my flutter project.
I had managed to run few successful tests. But recently I bumped into this exception
Unhandled Exception: PlatformException(storekit_duplicate_product_object, There is a pending transaction for the sa... | common-pile/stackexchange_filtered |
Tabs painted over "congrats" screen for new badge
I've experienced a layout bug, see image:
The tabs are painted over the "congrats" dialog for a new badge.
When I click the button, the page gets repainted with sizes slightly changing, and it becomes:
which looks ok. Screenshots were taken without changing window di... | common-pile/stackexchange_filtered |
Printing & PDF export' plugin for « Gourmet Recipe Manager » 0.17.4
I cannot print any recipe from my installed « Gourmet Recipe Manager ».
I keep getting the following error messages.
Is this a Ubuntu problem or a specific problem with the Gourmet software ?
My file python.py reads:
sublabel=_("To print, activate a p... | common-pile/stackexchange_filtered |
Meaning of writing 'V' to watchdog device file
What does it mean when we do echo V > /dev/watchdog? One article said it can prevent stopping watchdog accidentally. I am not clear about this purpose.
According to the Kernel documentation this is called the 'Magic Close' feature
https://www.kernel.org/doc/Documentation... | common-pile/stackexchange_filtered |
linq vs ado.net performance
I am going to work with Linq data access model. Which Model performance is better? and why to use and why not to use Linq.
Thanks
Linq to SQL and Entity Framework etc. all use ADO.NET internally, thus they are slower since they do more work than ADO.NET alone.
The idea is not to get the bes... | common-pile/stackexchange_filtered |
MySQL Stored Procedure Variables - When to Use Which
I am new to MySQL. When do we use declared variable? When to use undeclared variable (@varTest).
I am wondering about the best practice. Thank you.
I don't think there's much difference, but you can't declare the type of @ variables.
Check: 9.4 User-Defined Variabl... | common-pile/stackexchange_filtered |
Get routes of Rails app without running rake routes
My understand of rake routes is that it bootstraps the Rails application and then pulls the routes from it. If I want to simply look at the text (no loading of a rails application) and be able to output something similar to what rake routes outputs, how would I do it?... | common-pile/stackexchange_filtered |
301 redirect to correct url
I have a lot of incorrect bad links and want to 301 redirect them to the correct one, the correct url are as follows:
Blockquote http://www.domain.com/string-video_string.html
the back links are pointing to:
Blockquote http://www.domain.com/string_string.html
any possible way to 301 redi... | common-pile/stackexchange_filtered |
Is it possible to use an already UV unwrapped in Geometry Nodes without losing the UV map?
I will use an example to explain more clearly my question: so, I have this object (called "Circle"), already unwrapped and with a texture applied:
Now, if in the Geometry Nodes editor I add the object, the UV unwrap is not lost:... | common-pile/stackexchange_filtered |
How to create guest order programmatically for Guest User
I have followed Create order programmatically in Magento 2
But it is saving the customer.
And When I skip customer set data and customer save then It's getting an error report like
"Please enter customer email".
Any thoughts ??
It clearly said that we need to ... | common-pile/stackexchange_filtered |
Taking screenshot of Part of Screen
I have a UIImageView in my view controller whose screeshot I need to take. There is a UILabel on it as well. UIImageView doesn't cover the whole page just part of it. How can I take screenshot of just section of the screen?
I bet this question has been asked before but I looked into ... | common-pile/stackexchange_filtered |
How to convert Angular locale date to proper date format for API to consume?
I am using two-way binding in my template driven form:
ts:
searchLeaveApplication: any = {};
html:
<mat-form-field class="searchInputs">
<input
matInput
[matDatepicker]="searchStartDate"
[(ngModel)]="this.searchLeaveApplication.... | common-pile/stackexchange_filtered |
How to make scrollview scroll from first page after it reaches last image?
I have created a auto scroll banner using scrollview in my application. There are 3 images added to scrollview, so I want when scroll reaches the last image it should start from first image and continue scrolling and this process should be repea... | common-pile/stackexchange_filtered |
Using python 2.7 regex to replace parts of a string
I have the following line:
b = re.sub('^xMain (\S+)/y1,/y0 (\S+ )(.*)$', 'xMain \2\1\3', a)
where a is:
xMain Buchan/y1,/y0 Angus Sub1
Why does b come out as 'xMain \x02\x01\x03'?
My intention is to de-invert a name. In Regexbuddy this works OK but not in Python 2.7... | common-pile/stackexchange_filtered |
Contact form 7 required one of 2 different fields
I have a image upload field and a URL field in CF7 and how can i make it that a user needs to use one of the 2 fields. So select a image or put a link in the URL field?
I already search a little and i saw some options to do it on normal txt fields but that was not worki... | common-pile/stackexchange_filtered |
Running QGIS3 on Mac, multiple plugin problems, ModuleNotFoundError: No module named 'osgeo'
Couldn't load plugin 'Qgis2threejs' due to an error when calling its classFactory() method.
ModuleNotFoundError: No module named 'osgeo'
Traceback (most recent call last):
File "/Applications/QGIS3.app/Contents/MacOS/../Reso... | common-pile/stackexchange_filtered |
Unable to cast object of type 'System.Web.UI.WebControls.Button' to type 'System.Web.UI.WebControls.DropDownList'
Error:
Unable to cast object of type 'System.Web.UI.WebControls.Button' to type 'System.Web.UI.WebControls.DropDownList'
Why?
<EditFormSettings EditFormType="Template">
<FormTemplate>
<asp:Label I... | common-pile/stackexchange_filtered |
How to look dynamically for a keyword in all columns of a table
I want to be able to look dynamically for a specific keyword in all columns of a table. The purpose of the script would be to only have to change the keyword and the table name, without needing to know what are all the columns of the table.
That means that... | common-pile/stackexchange_filtered |
Using promises to save, retrieve, and the close the connection?
I'm new to the Mongoose library. As a learning exercise, I'm trying to create a new record, retrieve it from the database, log it, and then close the database connection. My code is as follows:
const mongoose = require('mongoose');
mongoose.connect('mongod... | common-pile/stackexchange_filtered |
Angularjs, ng-click, how put array of checkbox in MongoDB
Form with name and checkbox.
I can put the name in MongoDB but how do I put the value of checkbox in the MongoDB?
Index.html
<tr>
<td><input class="form-control" ng-model="film.name"></td>
<td><label ng-repeat="role in roles">
<input type="checkbox" che... | common-pile/stackexchange_filtered |
Two friends examine radio telescope photos spread across Jennifer's bedroom floor.
Person 1: These dishes look so tiny compared to optical telescopes, but they claim better resolution than Hubble. That makes zero sense.
Person 2: Actually, it does when you think about wavelengths. Radio waves are thousands of times l... | sci-datasets/scilogues |
For-Loop XMLHttpRequest logs values out of order
I need this code to find all URL's from several webpages and list them in a certain order in console. I need the list to begin with URL's from fakeURL.com/0 and end with fakeURL.com/20, and stay in order all the way. The problem is that sometimes it will list URL's from ... | common-pile/stackexchange_filtered |
How to include mpi.h in CLion on Windows machine
It says cannot find mpi.h and after I run the code following error is shown:
fatal error: mpi.h: No such file or directory.
I am using TDM-GCC (MinGW enviroment).
So far I downloaded and installed MS-MPI.
Now I am trying to figure out how to include mpi.h successfully in... | common-pile/stackexchange_filtered |
Inflating custom layout for pop up menu items
Is it possible to create custom layout for each pop up menu item in Android? I have inflated custom layout for list views but I am having some trouble with pop up menu items.
I have this piece of code (some lines that are not specific enough to this asked question have been... | common-pile/stackexchange_filtered |
How do I capture the entire screen in Selenium when page has left and right scrolls
I have a Selenium-Java based Automation testing framework and I need to capture the entire screen when linking screenshots to reports. The page is long and wide and has both horizontal and vertical scroll bars. Is there any utility or w... | common-pile/stackexchange_filtered |
Vue: Module parse failed when using "export * as" in TypeScript
I have an index.ts file to export all of my helpers functions. To import them in a more convenient way I want to use the export as functionality of TypeScript 3.8.
So this is my code:
// index.ts
export * from './logging';
export * as TypeHelper from './ty... | common-pile/stackexchange_filtered |
Why doesn't window.scrollTo() work on page load?
I have some tabbed content on a page, with hash segments in the URL that take you to the correct tab content. Nothing unusual. However, as the tabs are a short way down the page, when someone visits with a hash target in the URL, they get dropped to down the page to the ... | common-pile/stackexchange_filtered |
Update all records to remove first 3 letters of string SQL MS Access 2013?
There is a set of data that I pulled from a server and in one of the fields, every value has the first 3 letters "DFT" with 2 or 3 letters following that. I want to use an SQL statement along the lines of:
UPDATE table_name
SET column1=[string a... | common-pile/stackexchange_filtered |
WSO2 API manager Outh token validations
I have installed the WS02 API manager and secured my backend REST service with oauth2.
Here is my setup
IP1: WSO2 API manger using the default inbuild key manager. I have published my API here.
IP2: Resource server is running here.
I have simple client application which talks to... | common-pile/stackexchange_filtered |
Allusion to Plato in Fahrenheit 451?
I have been told there is an allusion to Plato in Fahrenheit 451. The name "Plato" is mentioned once, but I don't think it counts as an allusion.
He dialled the call on a secondary phone. The phone on the far end of the line called Faber's name a dozen times before the professor an... | common-pile/stackexchange_filtered |
angular ng-repeat not working in Firefox
This code works perfectly fine in IE but Firefox v28. I have two ng-repeat nested.
<div data-ng-repeat="rowAds in adsModel.Ads" class="row adrow">
<div data-ng-repeat="ad in rowAds" class="col-md-3">
<div >
<strong>{{ad.Title}}</strong>
... | common-pile/stackexchange_filtered |
Program design - how to improve it and how to avoid coupling (Python)?
In the Python program structure below there are two modules with functions.
Problem description:
Functions are used inside other functions all over the place. Strong coupling (dependency).
For example func1() in module 2 that reads from file is cal... | common-pile/stackexchange_filtered |
logical and physical address in operating system,
Why is the logical address needed?The CPU can directly produce the physical address for the different processes.
My second question is How is this logical address produced by CPU?
The answers can cover a book. Take an OS book and read memory management and virtual memo... | common-pile/stackexchange_filtered |
Komal `re` and Sharp `Re` sound Identical [Bansuri]
I'm using the fingering chart below for Bansuri
I know it takes time to master half-notes. A lot of times sound doesn't come, which is fine. But at least I can distinguish the Komal notes of dha, ni, ga, Ma from the Sharp notes of Dha, Ni, Ga, Ma
But what about re?
W... | common-pile/stackexchange_filtered |
How to store variable as nothing
I have a class with unsigned chars inside.
There is the first instance of the class:
{
unsigned char a = 5;
unsigned char b = 243;
unsigned char c = 0;
}
But there is an option some of these unsigned chars won't be filled.
Instance would look like this one:
{
unsigned c... | common-pile/stackexchange_filtered |
Celery setup and teardown tasks
I am trying to use celery to parallelise the evaluation of a function with different parameters.
Here is a pseudo-code of why I am trying to achieve, which assumes that there is a function called evaluate decorated with @app.task
# 0. Setup cluster, celery or whatever parallelisation ba... | common-pile/stackexchange_filtered |
Wrong language codes generated by Windows.Globalization.ApplicationLanguages.ManifestLanguages
I am localizing my UWP app in several languages using the Multilingual App Toolkit
here are some screen shots of how the MultilingualResourcesFolder and the Strings folder looks like in the project
Multilingual Resources
St... | common-pile/stackexchange_filtered |
Workaround for bug in Oblivion "Scheduled for Execution" quest?
After completing the "Scheduled for Execution" quest in Oblivion, the game always tells me that a guard died and I have lost the bonus for that contract. The problem is, all the guards are alive, even after that message is displayed. Does anyone know what ... | common-pile/stackexchange_filtered |
Replacing relations from one node to another by one single relation
I have been pushing several times the same relationship between 2 nodes in Neo4j.
It was a mistake as it makes the visualization less clear.
Now, I would like to replace those several relations between 2 nodes by one single relation. It would be great... | common-pile/stackexchange_filtered |
Separate OnClick Content in another class
I want to separate my OnClick contents in another class.
Is it good to separate the onclick content in another class?
If yes, is my way of coding is the proper way or can someone show me a better way?
public class MainActivity extends AppCompatActivity {
private ButtonsAc... | common-pile/stackexchange_filtered |
Can a druid use Wild Shape to take the form of a specific, individual beast?
The rules for the 5E druid's Wild Shape ability simply say:
you can use your action to magically assume the shape of a beast that you have seen before
This previous question asks if you can go beyond the exact form of a beast you've seen (li... | common-pile/stackexchange_filtered |
public directory for .htaccess
I have a dispatcher function in index.php so URLs like:
/blog/show go to
/index.php/blog/show
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
How can I... | common-pile/stackexchange_filtered |
django generate access token for api call
In my django system I want to generate access_key of specific length lets say 20. I want it to be unique.
I can pass username email which is unique related to user.
What I am doing now is something llike ...
hashlib.sha1(some_random_value + username_or_email.encode('utf8') + l... | common-pile/stackexchange_filtered |
Metrics by filter
With SonarQube 5.4, I try to group metrics informations by filter and display them in an aggregated dashboard. Let me explain:
I have a very big project, not well structured (everything is under a single source folder). Refactoring it is NOT an option. I need to display metrics (files, classes, number... | common-pile/stackexchange_filtered |
Historical Accounting Lines in Sabre PNR
Is there any API that Sabre has or plans to expose that returns historical accounting lines from a PNR?
Parsing the HAC display in text is painful. Relying on the AC lines within a PNR is inaccurate since they may be removed at any time.
Are you using the host command to pull t... | common-pile/stackexchange_filtered |
where clause error of Unknown column
Below is the code type into databases.
CREATE TABLE customerlist
(
C_Id INT auto_increment,
LoginID VARCHAR(10),
Password VARCHAR(20) ,
Name VARCHAR(20),
Phone VARCHAR(15),
IDCARDNO VARCHAR(15),
Email VARCHAR(30),
BankACNO VARCHAR(... | common-pile/stackexchange_filtered |
nginx rewrite url removing subfolder with hashbang?
The url is something like this
site.com/#/fr/welcome/
I want to rewrite (and remove) in the url the /fr/ part without affecting anything else
the /fr/ and /welcome/ aren't actual folders in the first place. The developers at my place at currently using Angular.
I'm at... | common-pile/stackexchange_filtered |
Switch off power when 0v is sensed / Short to ground
I have already posted this question but I made a mess of the diagram so deleted it and am posting again, apologies to anyone to answered the original question.
I'm fairly new to electronics and am stuck at how to get a circuit working. I have 2 peripherals connected ... | common-pile/stackexchange_filtered |
Accordion - Change background color/image when toggling:
Issue with changing the background color/image when clicking on the arrow icon.
Looking to achieve two goals.
When user clicks on arrow icon "to extend", the background needs to change to a color or an image. When user clicks on same arrow icon to "collapse" it ... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.