text stringlengths 70 452k | dataset stringclasses 2
values |
|---|---|
How do I check the SHA1 hash of a file?
How do I check the SHA1 hash of a file?
adding this note to whom it may concern: SHA-1 is now compromised, proven by a Google-CWI joint research. TL;DR Don't use it anywhere carrying any value.
TL;DR what else to use ???
sha256sum is a built-in at least in Ubuntu 20.04.
Just ... | common-pile/stackexchange_filtered |
Memory leaks in ipod - 100% leak while using instruments and iPod
-(NSString*)readTextColumnWithIndex:(int)index {
char* val = (char *)sqlite3_column_text(statement,index);
if (val==NULL) {
return nil;
}
return [NSString stringWithUTF8String:val];
}
I have 100% leak at return [NSString stringW... | common-pile/stackexchange_filtered |
Getting values of an array XSLT
please help,
I have this values:
<xsl:variable name="PB" select="'/join/id/stop/regelingtype_007'"/>
<xsl:variable name="I" select="'/join/id/stop/regelingtype_008'"/>
<xsl:variable name="VR" select="'/join/id/stop/regelingtype_009'"/>
<xsl:variable name="P" select="'/join/id/stop/regel... | common-pile/stackexchange_filtered |
How to calculate a correlation in excel based on multiple conditions?
How to calculate a correlation in excel based on multiple conditions?
Zone
Car
Max Speed
Complete
1
Renault
120
0
2
Audi
15
1
3
Renault
10
0
4
Audi
75
1
I want to see a correlation between max speed and complete ( 0 means incomplete... | common-pile/stackexchange_filtered |
Best way in Pytorch to upsample a Tensor and transform it to rgb?
For a nice output in Tensorboard I want to show a batch of input images, corresponding target masks and output masks in a grid.
Input images have different size then the masks. Furthermore the images are obviously RGB.
From a batch of e.g. 32 or 64 I onl... | common-pile/stackexchange_filtered |
Hybris - overriding existing unique attributes of an Item Type to make them non-unique
In my hybris application, I wanted to override my CustomerReview item type so that its attributes product and user are not unique anymore.
The uniqueness of these attributes are declared in the relationships between CustomerReview an... | common-pile/stackexchange_filtered |
Can a warlock teach a spell to a wizard?
My wizard is in a pinch and needs to learn a spell the party warlock knows.
Can he teach me? Assume the spell belongs to both classes lists.
If it makes any difference, you can assume he has pact of the tome.
Is it a ritual spell? And does the warlock have Book of Shadows?
I t... | common-pile/stackexchange_filtered |
How do I load Angular 4 into an AngularJS app using SystemJS?
I want to convert an AngularJS app to Angular 4. I'm reading the official Angular documentation for upgrading from AngularJS at https://angular.io/guide/upgrade. It states this:
To begin converting your AngularJS application to a hybrid, you need
to load ... | common-pile/stackexchange_filtered |
Click a custom control and show some variables related to it in another control
in my Win Forms app I create an array of dynamic custom controls inside a loop. These, lets call them 'boxes', are like my basic pieces of information. I also create string arrays in other parts of the code that contain the information of t... | common-pile/stackexchange_filtered |
dpkg: error: parsing file '/var/lib/dpkg/status' near line 0: field name 'ELF' must be followed by colon; what can I do to solve this?
i tried running dpkg manually,then this error accrued 'dpkg: error: parsing file '/var/lib/dpkg/status' near line 0:
field name 'ELF' must be followed by colon'; this is my problem.
Th... | common-pile/stackexchange_filtered |
How to create a new table with the results of SHOW TABLES in Databricks SQL?
I want to do aggregations on the result of
SHOW TABLES FROM databasename
Or create a new table with the result like
CREATE TABLE database.new_table AS (
SHOW TABLES FROM database
);
But I'm getting multiple different errors if I try to... | common-pile/stackexchange_filtered |
Debugging pytest unitest in vscode results in AttributError sys has no attribute __breakpointhook__ on exit
I use visual studio code 1.27.2 on Ubuntu 18.04 and Anaconda version 4.5.10 to manage my virtual environments.
I have Anaconda and python extensions installed in vscode.
I made a simple test using a virtual envi... | common-pile/stackexchange_filtered |
Compiling ShellCode Program in C error
I am currently reading through a book about shellcoding and I am running into some issues during one of the examples. I am trying to compile the code below but I keep getting an error about stray "\". Is there a certain way I have to input the characters because of the "\"?
// she... | common-pile/stackexchange_filtered |
Not receiving LINK from Chainlink kovan faucet
I attempted to get funds from kovan.chain.link to my metamask address and the money did not come through.
I got some errors as seen here: https://kovan.etherscan.io/tx/0x7c2a3ec1515f883039938f82602243c73fdd47aa52c161c4366926fa7b42ee78
"Warning! Error encountered during con... | common-pile/stackexchange_filtered |
swap various size words in multiple lines with vim
I've got some code that does manual encoding/decoding, which I need to extend. The encoding looks like:
map["some_key"] = some_struct.member;
map["some_other_key"] = some_other_struct.member;
to decode I need to swap the parts of the text around '=' (ex. have some_str... | common-pile/stackexchange_filtered |
How to add specific attribute (like "multiple") to Thymeleaf templates?
I have this:
<input id="fileupload" type="file" name="files[]" data-url="rest/controller/upload" multiple>
and I need to make it work in a Thymeleaf template. I have the data-url part figured out but I keep getting an error on the word "multiple"... | common-pile/stackexchange_filtered |
What's better for DSL: TCL or Lisp?
What's better for DSL: TCL or Lisp?
What can you say about Java(C#)-TCL binding versus Lisp(Scheme)?
What DSL tool is applicable for .Net development? (excepting Microsoft DSL tools)
Please clarify this question - what "DSL" are you talking about? http://www.acronymfinder.com/Infor... | common-pile/stackexchange_filtered |
How to implement geocoding responses using nodejs/javascript?
I'm a newbie in google map api. I'm trying to implement the google maps geocoding api.
Geocoding API on Google Developers
exports.FindByKeyWord = function (req, res, next) {
var API_KEY = "SOMEDATA";
var BASE_URL = "https://maps.googleapis.com/maps/... | common-pile/stackexchange_filtered |
Is there anyway to set the letter-spacing automatic based on the div width?
I have a fluid width website where I planned to place some text inside <div>. The idea is
<div>FIRST LINE TEXT HERE</div>
<div>THE SECOND LINE TEXT HERE. BUT QUITE LENGTHY</div>
<div>THIRD LINE IS HERE. NOT THAT MUCH LENGTH<div>
I need to disp... | common-pile/stackexchange_filtered |
Commandline checkout using SVN
I am trying to automate my checkout process using SVN version 1.6.6.
When I call
call "C:\Program Files\TortoiseSVN\bin\SubWCRev.exe" checkout URL
I get this message.
SubWCRev 1.6.6, Build 17493 - 32 Bit
And when I call the following just a window pops up.
call "C:\Program Files\Tor... | common-pile/stackexchange_filtered |
Is a custom join(not through primary key) possible through Spark?
I can join Pair RDD's just fine through their primary keys, but is it possible to join based on certain attributes of the value object?
For example, lets say I have a List, or Pair List of two objects.
TV_station_information
String station_name
S... | common-pile/stackexchange_filtered |
Can nuclear shielding affect relaxation time?
Can nuclear shielding affect the transverse relaxation time, i.e extend the relaxation time the more the nuclei is shielded?
I'd say yes, but not by any detectable amount. In some relaxation mechanisms (e.g. dipolar relaxation, a major relaxation pathway for $\ce{^1H}$), t... | common-pile/stackexchange_filtered |
Release android app for handset only
How do I set an android app to be for handset only? I don't want my app to be available for tablets as the UI wouldn't really work for that large of a screen.
reasonable question, what google and current answers suggest does not fit for all handsets.
You must put all compatabilit... | common-pile/stackexchange_filtered |
Silverlight 3 validation DataForm with templates
I have a SL3 application in which I'm using DataForm for my data entry. I want my form to look in the way I like it, so, I use <dataControls:DataForm.EditTemplate> and inside the template I have my good looking form design.
the main issue is, inside the template I have t... | common-pile/stackexchange_filtered |
Loop through nested object to calculate the value using ES6
{
"activityDetails": [
{
"activityDate": "02-05-2020 00:00:00",
"pointDetails": [
{
"points": 5000,
"pointType": "SSM"
},
{
"points": 9652,
"pointType": "JSM"
},
... | common-pile/stackexchange_filtered |
Majority of apps deleted themselves (including Google Play services) on a Samsung device
My Samsung Galaxy Note 3 has developed an interesting fault.
It happened one evening, after the phone shut down due to low power. Its symptoms:
It has deleted (or appears to have deleted) most of the applications - including syste... | common-pile/stackexchange_filtered |
Drawing a simple Column using css
I've been trying to develop a simple page in order to try HTML/CSS and I'm trying to draw a colored column on the left side of the page using CSS. This is how I'm attempting to make it work:
#leftcolumn {
margin-top: 0px;
margin-bottom: 0px;
top: 0px;
left: 0px;
width: ... | common-pile/stackexchange_filtered |
Cannot access function parameters from async function
In the moment of registering, when I try to print the username which is a parameter of the function, it just won't print anything on the screen and I cannot understand why.
Future registerWithEmailAndPassword(String username, String email, String password) async {
... | common-pile/stackexchange_filtered |
video masking in html
How we mask the video in html with available SVG?
I tried with following code but it will not dispalying in chrome?
<video id="video_target" src="oceans-clip.ogg" type="video/ogg" autoplay></video>
<svg>
<mask id="video_mask" maskUnits="userSpaceOnUse">
<text x="300" y="190">VIDEO</text... | common-pile/stackexchange_filtered |
Convert Eviews date format to python date
I have my vector dates in this format 2022M8,2022M09, etc... (eviews format). How do i read this type of string dates in python?
I wish convert this dates in this 20220801 format.
Thanks in advance!!
I have tried this:
date_time_str = '1973M10'
date_time_obj = datetime.strptim... | common-pile/stackexchange_filtered |
GML and GeoJSON vector layer can not display in Firefox and Chrome
I have following codes. It works perfectly in IE (GML and GeoJSON vector layer was loaded), but not in Firefox and Chrome without any errors noticed. Please help me to fix this problem.
Here is the code with GML vector layer (I just used built-in layer ... | common-pile/stackexchange_filtered |
Directly setting http only cookie in browser from django (frontend is svelte)
I am trying to send a http-only cookie from django response to svelte. The cookie reaches svelte using fetch, but it doesn't come into the browser. Is there a way to set cookie from django directly in the browser? Without using svelte? If no,... | common-pile/stackexchange_filtered |
A Kalman Filter for RSSI Distance approximations
I'm currently working on a project that makes use of RSSI signals to determine a users distance from between three beacons. Whilst I have the rough triangulation formulas working, I'm trying to make something a lot more accurate.
Through all my research, I have discover... | common-pile/stackexchange_filtered |
MLE Normal Variance Changing Means
I have $n$ draws from a 2d normal distribution with a different mean vector every draw. The variance stays constant at $\tau I_2$. How can I get the MLE estimator for $\tau$? Since the mean is changing, it seems 0 or a very small $\epsilon$ is the best, but this doesn’t make much sens... | common-pile/stackexchange_filtered |
Pull only one directory or pattern with bzr
I want to pull only one specific directory/file, or several directories/files which match a given pattern, from a bazaar repository.
Is this possible? How?
It is clear that I can pull the whole project and then keep only what I want, but this is not a suitable solution in thi... | common-pile/stackexchange_filtered |
What is a manhattan database?
A friend of mine was interviewing for a data warehouse and Business Object role But he was asked about the Manhattan database?
I have Googled "Manhattan database" and even searched for it on Bing and Yahoo but have found no relevant information.
Any help would be greatly appreciated!
Pe... | common-pile/stackexchange_filtered |
about beforeCreate in Vuejs
I don't understand purpose of beforeCreate in Vuejs. If it only perform actions before your component has even been added to the DOM then i only add some line code before use vue instance as follow:
<script>
var data ={
c:'',
};
var app= new Vue({
el:... | common-pile/stackexchange_filtered |
Cannot distinguish (removed) from (removed)
I was on mobile chat today and I accidentally sent a message so I deleted it. Then as a joke the message was followed by a message with the literal text (removed). I suddenly realized I could not tell the difference between a deleted message and a faked one:
Can this be fixe... | common-pile/stackexchange_filtered |
Setting UIImageView.image binded by UIImageView.bnd_image to Observable<UIImage> object is not observed
I am using Swift Bond for data binding. I am trying to bind a UIImageView's image variable in my ViewController to an Observable variable in my ViewModel to observe when the image is set. Having done the following ap... | common-pile/stackexchange_filtered |
Mapping object which containing a list in request - Spring MVC
Is it possible to wrap an object which contain some String and a List of another object as property from requst in spring mvc?
My classes are :
public class MyObj {
private String ma;
private String mb;
private List<SecObj> mc;
}
and:
public class SecObj ... | common-pile/stackexchange_filtered |
How to install NI USRP 2921 on GNURadio Companion (Ubuntu)?
I am trying to use my USRP 2921 on GNURadio with my computer which uses Ubuntu. I have read that I had to use the block UHD but GRC does not recognise the USRP. When I type "uhd_find_devices" in the terminal, I have the message "No UHD Devices found" despite ... | common-pile/stackexchange_filtered |
Scroll-linked positioning doesn't work if I scroll too fast. Is there a better method?
I'm trying to make a header that has a margin on the top, left, and right until being scrolled, at which point it should smoothly grow until there is no longer any margin.
I've taken care of the margin-top with 'position: sticky' and... | common-pile/stackexchange_filtered |
Do parallel rays reflecting at a mirror not intersect at one point?
Let's take a concave mirror with $CP$ as its principal axis. Let's assume that a parallel ray $p$ to $CP$ reflects at $A$ to pass through the focal point $F$. Then, $\angle CAF=\angle ACF$, which suggests that $CF=AF$. Let's take another parallel ray ... | common-pile/stackexchange_filtered |
java 8 parallelStream() with sorted()
JDK 8 EA is out now, and I am just trying to get used to the lambda and the new Stream API. I've tried to sort a list with parallel stream, but the result is always wrong:
import java.util.ArrayList;
import java.util.List;
public class Test
{
public static void main(String[] a... | common-pile/stackexchange_filtered |
NodeJS : Unexpected String Error using the Describe function in Mocha
I am currently learning Solidity through a Udemy course and I am currently covering a section that explains Testing with Mocha. I am using the describe function with syntax that is covered in the example and trying to run the test using 'npm run test... | common-pile/stackexchange_filtered |
how to get mobile online status of the facebook user using smack?
I am developing Facebook chat application using smack.
Here I want to get online user status of both mobile user's & website user's,
and how can I differentiate both of them.
If a user send message ,how can I differentiate he is mobile user
(or) websit... | common-pile/stackexchange_filtered |
use operation in sml (where is current directory smlnj windows)
I have never used SML on a Windows machine (have before on a unix machine w/ emacs).
for the life of me I cannot find the current directory when in the sml environment. If I attempt to: use "filename.sml" it raising an exception.. I cannot find out where... | common-pile/stackexchange_filtered |
Does Array.Resize Delete the old array?
I want to know if Array.Resize deletes the old allocated Array, and if yes when?
I assumed that it deletes it as soon as the values are copied.
But my teacher says that it only does so at the end of the program, meaning that the memory could be full with the old allocated values.... | common-pile/stackexchange_filtered |
How to pass Go instances between Go and C functions?
I want to pass a Go instance as an argument to each call from C, like the code below.
I want to merely operate pointers to http.Client instances as opaque pointers in my C code.
I have a few questions.
How to convert &http.Client to C type?
How to prevent memory all... | common-pile/stackexchange_filtered |
Does HttpClient's PostMethod.addParameter() add encoded form parameters or URL query parameters?
In HttpClient 3.0.x, does the "PostMethod.addParameter()" method add a form parameter, or does it add a URL query parameter? I think it's the former, but I need to be sure. There are limits on the length of a URL that are... | common-pile/stackexchange_filtered |
How can I track place where file has been uploaded to the server?
Tell me please, can I determine when loading files from a directory it was loaded?
InMemoryUploadedFile contains only the file name. I.e. simply Foto.jpg.
I would like to see there for example: c:\windows\blablabla\Foto.jpg.
Or is it impossible?
... | common-pile/stackexchange_filtered |
How can I determine the Vulkan synchronization scopes for pipeline barriers?
The Vulkan spec introduces synchronization scopes in section 6 in a bit of an abstract way. It refers to a "set of operations" being contained in a synchronization scope. How can I determine which operations are in a synchronization scope, esp... | common-pile/stackexchange_filtered |
PHP download file: show progress in browser
User on my site can download files. Sometimes these files are pretty large and I would like users to see download progress bar at their browsers.
I use the following code to give user a file:
header('Content-Type: text/xml');
header('Content-Disposition: attachment; filename=... | common-pile/stackexchange_filtered |
react native vector icons showing X instead of icon
I cant seem to figure this out. I can get something to show, but its a box with an X in it, so im assuming its not picking up the vector icons. Any advice?
I have the show icon true, I have the tint color, I have the vector icons (i have tried both ionicons and font a... | common-pile/stackexchange_filtered |
Transmission don't remember session
Firstly sorry for my bad English, so I using transmission, but when I close the app and open again, I see nothing, completely nothing, I don't know why, but transmission doesn't remember session and every time when I'm open it, all my active torrent has been removed.
What version is... | common-pile/stackexchange_filtered |
Combine three text files
How does one combine three text files together into one? I was also trying to make it alphabetical by state in the new text file. I figured how to combine two but three I am getting lost.
Public Class newsenatefrm
Dim current() As String = IO.File.ReadAllLines("Senate113.txt")
Dim retir... | common-pile/stackexchange_filtered |
What's the Mozilla Tamarin status?
Wikipedia claims Tamarin under Mozilla is active, but it's not listed under mozilla labs projects at all and it seems all docs from MDN are in 'obsolete' section. Is the project still supported?
Seems Tamarin is no longer active. I talked to some guys handling MDN pages and they move... | common-pile/stackexchange_filtered |
How do I stop user being able to see website code
the dilemma I have is my website index.php calls to a template php file on a button press like this:
case 'main':
$page = getTemplate('main.php', array('user'=>$user));
echo $page;
break;
This main.php template file is in a folder in "/var/www/t... | common-pile/stackexchange_filtered |
Using jQuery to change icon on hover
I am trying to use jQuery to make my icons change on mouseover. With Semantic UI, some/most icons can be different if you add "outline" as a class. For example: <i class="icon user"></i> and <i class="icon user outline"></i>.
My idea is to simply toggle the class outline with jQuery... | common-pile/stackexchange_filtered |
Statistical tests on zero-inflated samples
I have a lot of zeros in my samples; I found the following algorithm to deal with zero-inflated data before testing them:
find the proportion of zeros in each subset.
assume that in the subset with the smallest number of zeros all zeros are true.
from each subset, remove the ... | common-pile/stackexchange_filtered |
C# (WinForms) open and edit excel file inside windows forms Application
I need to open view and Edit an Excel File within a Windows form.
I tried implementing the code for opening the Excel file in Gridview and then edit it, but that becomes too much lengthy process, hence I need to find a convenient way of View and E... | common-pile/stackexchange_filtered |
While executing this sync function getting error as Object Required dictObj
Sub sb_Web_Sync(webObject,objDesc)
Set webObject = dictObj.Item(webObject)
mercurytimers.Timer ("sb_Web_Sync").Start
Do
Services.ThinkTime 1
Loop Until webObject.Object.readyState = "complete" and webObject.Object.docume... | common-pile/stackexchange_filtered |
How to set dynamic argument in Helm chats
I am using helm chart for my kubernetes deployment as it is easy to set arguments in Helm as compared to kubernetes.
I had one Argument set in my kubernetes deployment file
args : ['--country=USA']
How to set these parameter in values.yaml file and then in deployment file of h... | common-pile/stackexchange_filtered |
Evaluating an expression assuming a value for a variable only in the local context
Imagine we wish to evaluate some expression like NIntegrate[x^2*q,{x,0,100}] assuming some value for q like q = x.
How can we do this such that:
MakeLocalAssignmentOrAssumption[q = x, NIntegrate[x^2*q,{x,0,100}]]
Print[q]
Returns:
2.5*1... | common-pile/stackexchange_filtered |
Weights are not getting updated while training logistic regression by using iris dataset
Python code:
I have used the Python code as below. Here, machine is trained by using Logistic Regression algorithm and wine dataset. Here, problem is that weights are not getting updated. I don't understand where is the problem.
fr... | common-pile/stackexchange_filtered |
Series of %commondir%\* could not be loaded from Microsoft Visual Studio Community 2015
Already tried the fix here, no avail.
I get a series of messages like this upon launching Community 2015
The file %CommonDir%\{$file} could not be loaded. An attempt to repair this condition failed because the file could not be fou... | common-pile/stackexchange_filtered |
postfix dies misteriously... What logfiles and and debug flags should I look at to get a clue?
I'm stumped on this one... the process just dies, and leaves nothing particularly revealing in /var/log/mail.log
If it crashes, there might be nothing in /var/log/mail.log but there might be things in /var/log/mail.err, did ... | common-pile/stackexchange_filtered |
Compile Error: Unexpected token '<EOF>'. at line 29 column 1 - when trying to comment out code
I'm an administrator not very familiar with code; I have been trying to deactivate a legacy apex trigger that predates me joining my company but it is causing some system issues. An option brought to my attention is to comme... | common-pile/stackexchange_filtered |
Using xmlns as a normal XML attribute?
I have the following XML that I'm parsing in C++ using pugi xml:
<root>
<table xmlns="http://www.w3.org/TR/html4/">
<tr>
<td>Apples</td>
<td>Bananas</td>
</tr>
</table>
<table xmlns="http://www.w3schools.com/furniture">
<name>African Coffee Table</name>
<width>80</width>
<le... | common-pile/stackexchange_filtered |
how can I stop a function from calling itself? (React)
I have an automation function which is kind of like pagination which keeps pushing data into a DB when it's pressed and it works how I want it, the only problem I have, its that it just can't be stopped, I tried putting if statements wherever it seemed logical but ... | common-pile/stackexchange_filtered |
Htaccess redirection duplication and HTML linking problem
I'm digging all resources but cannot find the solution.
My website has multiple languages. It is basically adding ?lang=cn etc. and I'm turning it to a fake folder via htaccess with following code.
RewriteRule ^cn/(.*) $1\?lang=cn [L,N]
So,
example.com/index?lan... | common-pile/stackexchange_filtered |
The result of parsing petshop.ru is not displayed
I'm trying to parse the page https://www.petshop.ru/catalog/cats/veterinary_feed/dlya_koshek_pri_zapore_fibre_response_fr31_5789/, but it doesn't work.
import requests
from bs4 import BeautifulSoup as BS
r = requests.get ("https://www.petshop.ru/catalog/cats/veteri... | common-pile/stackexchange_filtered |
How has the Yearling badge been awarded so soon?
It looks like a few folks have already been awarded the Yearling badge, for 12 months active membership.
Yet according the Area 51 page, this site was only proposed 9 months ago.
How is that possible?
I believe those users were imported from the Stack Exchange 1.0 homeb... | common-pile/stackexchange_filtered |
Radio button value in Angular reactive form is null
So I am struggling with adding radio buttons to my reactive form in my angular app. I am using the material radio buttons and there are two choices: one is client and one is trainer.
They look ok but unfortunately when I try to submit the form I notice that the value ... | common-pile/stackexchange_filtered |
what wire do I need to hookup dual monitor to my computer
I have a 22inch monitor hooked up to my computer. I have another 14 inch monitor that I would like to hook up so that I have dual monitors. I am not sure which wire do I need from newegg in order to do this.
I've taken some pics:
Pic 1: my computer (white port... | common-pile/stackexchange_filtered |
how to subtract 5 days from all of my dates column
I'm having a column of different dates and there is data in it & I want to update my table such that It'll update the column to 5 days earlier .
DATEADD (Transact-SQL)
https://stackoverflow.com/help/mcve,
Try to use dateadd function in sql server
update table
set ... | common-pile/stackexchange_filtered |
How to get a list of highest values from another list in flutter
I have a list of players consist of 5 objects..
"data": [
{
"id": 74,
"name": "name 1",
"type": "defender",
"value": 10
},
{
"id": 7422,
"name": "name 2",
"type": "defender",
"value": 20
},
... | common-pile/stackexchange_filtered |
Google Apis explorer is not working in local development server
Google Apis explorer is not working in local development server and it is showing no error just a redirect.
INFO 2016-02-01 06:19:42,645 module.py:787] default: "GET
/_ah/api/explorer HTTP/1.1" 302 - INFO 2016-02-01 06:19:45,206
module.py:787]... | common-pile/stackexchange_filtered |
strpos not working as expected, what am i doing wrong?
I was attempting to follow the example on php.net for strpos() but it does not seem to be working as expected for me. It keeps printing the else case "not here".
$href = "[!--\$testUrl('testlink','754')--]";
dpm($href);
$search_wcm = 'testUrl';
$pos_wcm = strpos($... | common-pile/stackexchange_filtered |
How to determine the annual harmonics of temperature and salinity data?
This is a question on methodology. But I have 4d temperature and salinity gridded data (time, depth, lat and lon). The time is in monthly time steps.
How would I get the annual harmonics of temperature and salinity using a periodicity of 12 months:... | common-pile/stackexchange_filtered |
R6034: An application has made an attempt to load the C runtime library incorrectly
I am getting this R6034 error when running program that I just updated (and cleaned) from VS2003 -> VS2008. To be more exact:
"R6034: An application has made an
attempt to load the C runtime library
incorrectly."
It seems to happe... | common-pile/stackexchange_filtered |
Backgrid catching a select-all events
(Let me preface with I am new to Backbone and Backgrid.) I am using Backgrid and select-all extension and I was having issues "catching" the event that the select all fires in my containing/parent view. I want to show a details view when a row is selected in the master grid. So,... | common-pile/stackexchange_filtered |
Do you use Big-O complexity evaluation in the 'real world'?
Recently in an interview I was asked several questions related to the Big-O of various algorithms that came up in the course of the technical questions. I don't think I did very well on this... In the ten years since I took programming courses where we were a... | common-pile/stackexchange_filtered |
When referencing associations in the Java object model, what is the relevance behind assigning the reference a value of null?
I am reading a book on Hibernate which is trying to illustrate a one-to-one association. They are using the example of a car and an engine. Let us assume that a car can only have one engine, and... | common-pile/stackexchange_filtered |
Best way to pair turtles in netlogo
I need to link every turtle to exactly 1 if possible (effectively have every turtle play a 2 player game round, so each link is a game with 2 players - but players can only play 1 game per tick or round).
What I've come up with is
ask turtles [
;; If I haven't gotten a link yet
... | common-pile/stackexchange_filtered |
Linux/Ubuntu: Wheel events not triggering when context menu is open
This is the code I am running:
window.removeEventListener('wheel', onwheel, false);
window.removeEventListener('mousedown', ondown, false);
function onwheel(e) {
console.info('wheeled, e:', e);
}
function ondown(e) {
console.info('d... | common-pile/stackexchange_filtered |
Error: save() takes 1 positional argument but 2 were given
I'm trying to add a date to the slug on save after I click Publish in the Wagtail admin panel i get en error save() takes 1 positional argument but 2 were given
I'm quite new to python and Django/Wagtail so any help at this point would be grate.
def save(self, ... | common-pile/stackexchange_filtered |
MongoMapper Problems using Ruby Language
I installed mongo mapper gem and have the version 0.8.2. I opened the environment.rb file and editing it to use MongoMapper as shown below:
# Be sure to restart your server when you modify this file
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS... | common-pile/stackexchange_filtered |
Help me identify a game from Ubuntu app directory
I used to have Ubuntu as my main machine, and I remember playing a game from the app directory. I'm pretty sure it was one of the top games, but I can't find it online.
Here's what I remember about it:
You ride in a spaceship
you can fly to different planets and scan t... | common-pile/stackexchange_filtered |
Linq OrderBy to group objects with the same sets
I have a set of objects that themselves contain a set.
private class Pilot
{
public string Name;
public HashSet<string> Skills;
}
Here's some test data:
public void TestSetComparison()
{
var pilots = new[]
{
new Pilot { Name = "Smith", Skills = ... | common-pile/stackexchange_filtered |
Can an adverb precede modal verb?
Can an adverb precede modal verb? I've seen this kind of sentence:
I just can't believe what happened
Yes, it's a grammatically correct construction.
The problem is that semantically it rarely makes sense (verbs like can, should, etc. don't really have any qualities that could be mod... | common-pile/stackexchange_filtered |
Geo Nodes scattering is different in solid and rendered view
I am scattering moss assets on all the faces that face in z direction. I didnt get it to work until I changed from rendered view to solid view and there it is exactly how I want it to be. Not sure if it is because of the scultping I did with multires modifier... | common-pile/stackexchange_filtered |
iOS adding subviews to a scroll view
I'm using a double for loop to add UIButtons to a UIScrollView in a grid format. These UIButtons take time to load as they have subviews that are UIImageViews which get their UIImages by downloading data off the internet.
Right now, the subviews don't show until AFTER the method com... | common-pile/stackexchange_filtered |
In visual studio c# move picture boxes to new location multiple times
(really new to coding so any answers please show coding for)
I have a program where the user presses images of letters to form there answer. I want these pictures of the letters to change position after each one is pressed. I have coded it so it does... | common-pile/stackexchange_filtered |
Why isn't the object owner also the segment owner in Oracle?
Whenever I create an object in my schema, the owner of the segment is not the object owner. Please see below:
1* select count(*) from dba_objects where owner='ERIC'
SQL> /
COUNT(*)
----------
4
And from dba_segments:
1* select count(*) from db... | common-pile/stackexchange_filtered |
Is it detrimental for an Oracle11g database to be shutdown every day. Databases housed on a AWS EC2 instances
Managing an Oracle database 11g/Windows OS on a AWS EC2 instance. We shutdown the server at 1800 and start it up at 0600. I am trying to find out what are the effects on the database by starting it and stopping... | common-pile/stackexchange_filtered |
Show that the equation $xax=b$ is solvable for $x$ in $G$ iff $ab$ is the square of some element in G
Show that the equation $xax=b$ is solvable for $x$ in a group $G$ iff $ab$ is the square of some element in G.
I need some pointers. Cannot think of a start!
Write $a$ in terms of $x$ and $b$. Then compute $ab$.
Aft... | common-pile/stackexchange_filtered |
Codeigniter MS Access Limit to TOP
I have this function from: https://github.com/IgnitedDatatables/Ignited-Datatables/
private function get_paging()
{
$iStart = $this->ci->input->post('iDisplayStart');
$iLength = $this->ci->input->post('iDisplayLength');
if($iLength != '' && $iLength != '-1')
$this... | common-pile/stackexchange_filtered |
In which assembly I find namespace 'NHibernate.Proxy.Poco.Castle'?
In which assembly I find namespace 'NHibernate.Proxy.Poco.Castle'? I can find in NHibernate.dll the Proxy.Poco, but not Proxy.Poco.Castle... (using Nhibernate <IP_ADDRESS>00).
I believe that's quite old; in recent versions the namespace is NHibernate.B... | common-pile/stackexchange_filtered |
How can I prevent the cursor from blinking in Elvis in Xterm?
The cursor of vi (elvis) keep blinking under on a Raspberry Pi with the Rasbian distribution. It occurs with Xterm, not the xfce-terminal. On the computer or via ssh session.
With the same setup (.elvisrc, etc) there's no such blinking with Elvis under Xterm... | common-pile/stackexchange_filtered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.