text stringlengths 387 34.2k | meta dict |
|---|---|
Q:
url param not getting properly
I have a two server.I am passing 4 variable in url ssid(36),rawstring(1024),sample_id,user_id.
I simplely want to get parameter passed in url.When I hit my first server I am getting param,but same url(Only change server name),I get 3 parameters(not getting raw string).
In my controll... | {
"pile_set_name": "StackExchange"
} |
Q:
Form field names used by personal data auto-fill in browsers (Safari, Opera)
I'm looking for complete list of form field names (<input name="…">) that are recognized by auto-fill functions in major browsers.
Here are some I've found to work in Safari using trial-and-error:
email
Ecom_ReceiptTo_Postal_Name_First
E... | {
"pile_set_name": "StackExchange"
} |
Q:
Why are there different pentest phases/stages/methodologies?
Why are there different pentest phases/stages/methodologies?
Which one should be used?
Why don't we come out with standard one?
E.g.
Wikipedia / Cybrary.it
Reconnaissance
Scanning
Gaining Access
Maintaining Access
Covering Tracks
Tutorialspoint
Reconn... | {
"pile_set_name": "StackExchange"
} |
Q:
Who's on my Marvel coffee mug?
I got a new mug recently and people will not stop asking who is on it.
I can name the first few rows (mostly) but after that I'm really struggling.
I can't find any other images online either, largely because there's so many Marvel mugs.
Here is the album of photos I took of it, and ... | {
"pile_set_name": "StackExchange"
} |
Q:
parsing words from symbols on a list in python
I have to train a language model from a dataset of words. To this, I need to arrange all the text in only one column because is the only way the model works. Until now I could split the document into one column as is required using Python without any problem.
For exa... | {
"pile_set_name": "StackExchange"
} |
Q:
Training model on yolo but -nan and nan
I want to train model on yolo but after one step give nan and -nan
I have 300 images in different size(almost 600*600)
and one class to detect Image. before I gave good result with 100 images (%75 accuracy of detection)
but I want to give best result.
tiny_yolo.cfg
[net]
b... | {
"pile_set_name": "StackExchange"
} |
Q:
count and group the column by sequence
I have a dataset that has to be grouped by number as follows.
ID dept count
1 10 2
2 10 2
3 20 4
4 20 4
5 20 4
6 20 4
7 30 4
8 30 4
9 30 4
10 30 4
so for every 3rd row I need a new level the output should be as follows.
ID dept count ... | {
"pile_set_name": "StackExchange"
} |
Q:
Reading vehicles from a text file line by line and passing those vehicles into a constructor in Java
I'm new to Java, and I have an assignment to read vehicles from a text file line by line then stop at specific vehicles like (vehicle, car, truck, bicycle, american car, and foreign car) take the lines after those ... | {
"pile_set_name": "StackExchange"
} |
Q:
Are electric zaps effective for exercising?
I've seen commercials of "TENS" (Transcutaneous electrical nerve stimulation) devices that you strap on to your stomach or thighs, which zaps you continuously making your muscles contract, supposedly burning calories.
I'm somewhat of a lazy tub myself, so if this worked ... | {
"pile_set_name": "StackExchange"
} |
Q:
GLSL fragment shader struct out
i have a problem with my GLSL shader.
When i want to compile the fragment shader part, i get the following error:
0:24: error(#181) Cannot be used with a structure: out
error(#273) 1 compilation errors. No code generated
So the problem lies around my out variable, i assume.
Here is... | {
"pile_set_name": "StackExchange"
} |
Q:
LoginActivity Crashes during login
Don't no what's the problem,It's just every time i enter username and password
dialog box shows Attempting Login and app just crashes.
Server used:Wamp
Below are the codes used.
Any help would be appreciable.Thanks in advance.
LoginActivity.java:
package com.sam.kiet;
import ... | {
"pile_set_name": "StackExchange"
} |
Q:
Haskell fmap functor
I have a problem with functors over queue based on designated algebraic datastructures.
data DQueue a = Empty | Enqueue a (DQueue a)
deriving (Eq, Show, Read)
instance Functor DQueue
where
fmap f (Enqueue x xs) = Enqueue (f x) $ fmap f xs
instance Foldable DQueue
where
foldr... | {
"pile_set_name": "StackExchange"
} |
Q:
How to remove non alphanumeric characters and space, but keep foreign language in JavaScript
I want to remove signs like:
!@#$%^&*()_+`-=[]\|{};':",./<>?。,‘“”’;【】『』
and many more.
But ensuring all the foreign characters are kept, such as Chinese, French, Greece, etc.
In Ruby, I'm able to do it with regex
/[^\p{... | {
"pile_set_name": "StackExchange"
} |
Q:
how to write views for our own custom module?
I am new to drupal. I have created one form submission module like this
<?php
function form_test_permission()
{
return array(
'submit_form_test' =>array(
'title' =>('submit_form_test'),
'description' =>('submit the form_test form'),
),
);
}
function form_test_menu() {... | {
"pile_set_name": "StackExchange"
} |
Q:
Lingo letters not working sometimes
I have to create a Lingo (*) game as an assignment for my school.
I finally finished it, but sometimes the letter bug and don't get a color or the wrong color.
var words = ["appel", "aldus", "afwas", "aftel", "aarde", "armen", "actie", "apart", "adres", "avond", "aders", "alarm... | {
"pile_set_name": "StackExchange"
} |
Q:
Netlogo - item expected input to be a string but got zero instead
This is a follow-up question related to a previous post LinkI have data related to 16 laptop consumers' review ratings which are either satisfied (16 people) or dissatisfied (6 people). They are defined as turtles and they are distinguishable by ask... | {
"pile_set_name": "StackExchange"
} |
Q:
Threading test question
I recently had a interview question in a test that was similar to the below, I do not have very much experience of development using threads can someone please help advise me how to approach this question?:
public class StringQueue
{
private object _lockObject = new object();
priva... | {
"pile_set_name": "StackExchange"
} |
Q:
Should We Zap The Low-Occurrence Tags?
I just looked on SO, and found that there are about 12,880 tags with only a single use. There are 26,250 used less than 10 times.
That's just too many for the community to fix. I think we need some automatic cleanup here.
I suggest you add a cleanup process to remove all tags... | {
"pile_set_name": "StackExchange"
} |
Q:
Linux tools for measuring disk i/o etc
I need to measure the utilization of following resources on RedHat and CentOS during my performance testing. Please suggest the best tools
Memory usage
CPU usage
Disk I/O
Network I/O
A:
Memory Usage :
free is great, but htop will actually answer your CPU usage question, ... | {
"pile_set_name": "StackExchange"
} |
Q:
Making an email function in Python
I'm working on a project right now that requires the capability to send emails. My problem is that whenever I put the emailing code into a function, it stops working.
Here's the function (excluding the actual email and password information of course):
import smtplib, ssl
port = ... | {
"pile_set_name": "StackExchange"
} |
Q:
How to match specific pattern from a string
I had return a program it will check which file is present or not and it will check no of column
create or replace procedure chkcsvfile
(P_UTLDIR VARCHAR2,
P_FILENAME VARCHAR2,
P_tabnam VARCHAR2
)
is
P_fieldel varchar2(2):= ',';
V1 VARCHAR2(32767) ;
P_errle... | {
"pile_set_name": "StackExchange"
} |
Q:
Configuring Unicorn & Sidekiq correctly on Heroku
I was getting ActiveRecord::StatementInvalid (PG::Error: SSL error: decryption failed or bad record mac errors so I followed this guide about deploying Unicorn to Heroku and it seems to have fixed it. However under caveats it shows how to configure Resque for such ... | {
"pile_set_name": "StackExchange"
} |
Q:
Changing the Increment Value in Data Frame at Certain Row
I have this data frame:
Power
15
15
10
30
15
90
100
22
15
I wanted to create another column called 'Seconds' that increments by 10 every row so I wrote this code:
df.index += 1
df['Seconds'] = 10 * df.index.values
... | {
"pile_set_name": "StackExchange"
} |
Q:
Visual Studio CommandBar "Names"
In Visual Studio 2010, the only option you can create is a commandbar under "Tools" on the "MenuBar". In some cases, I would want to know how to place the command bar on the standard bar, or be found when I right-click a project file.
Example:
Microsoft.VisualStudio.CommandBars.Co... | {
"pile_set_name": "StackExchange"
} |
Q:
Class tufte-book and R listings code box width problem
When I run the following MWE:
\documentclass{tufte-book}
\usepackage{Sweavel}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{soul}
%%%%%%%%%%
% R example
%%%%%%%%%%
\newtheoremstyle{rex}{}{}{}{.45\textwidth}{}{}{1 mm}{}
\theoremstyle{rex}
\newtheore... | {
"pile_set_name": "StackExchange"
} |
Q:
Are villagers the only mobs you can interact with?
Are there any mobs in Minecraft, other than villagers, who exist for a reason other than to be slain by the player?
A:
The list of minecraft Mobs is maintained here.
Currently there are:
Passive
Bat
Chicken
Cow
Mooshroom
Ocelot
Pig
Sheep
Squid
Villager
Neutral... | {
"pile_set_name": "StackExchange"
} |
Q:
find * looks for a file named "*" on Debian but not on RHEL
Where is the difference? Do these distributions handle something differently? Or does the configuration vary? What do I have to compare and adjust? I would prefer find * not to match the wildcard itself.
The results differ because one host matches * too:... | {
"pile_set_name": "StackExchange"
} |
Q:
use workbox without using cdn
Does anybody know how to use workbox without getting it from the CDN? I tried this...
add workbox-cli to my dependencies:
"workbox-cli": "^3.6.3"
which gets me all of the following dependencies
$ ls node_modules | grep workbox
workbox-background-sync
workbox-broadcast-cache-upda... | {
"pile_set_name": "StackExchange"
} |
Q:
Lists of linguistic resources
In the interest of cultivating a professional, academic community, I posted this question on Meta. One comment was to open a community-wiki question inviting others to contribute to a list of academic sources in the field of linguistics.
There are lots of academic resources available ... | {
"pile_set_name": "StackExchange"
} |
Q:
Returning objects by value?
im trying to return a local object from a function
and i have this problem
if i return the locally created object it returns null
DString DString :: operator + (const char* param)
{
// Variable definition
int nSize = ( this->GetLength() + (strlen(param)));
// Create a new char a... | {
"pile_set_name": "StackExchange"
} |
Q:
Showing a value periodicaly in a new column, based on another column value
I would like to have a query that based on the field "Periodicity", would repeat every N rows the value True, grouped by the field "Type".
I think I can explain better with an example:
By having the next table...
id type periodicity
1 1... | {
"pile_set_name": "StackExchange"
} |
Q:
prolog get syntax error when increase stack size
Trying to solve the puzzle task with prolog and got some problems.
1002 Stack Overflow. Re-configure with Setup if necessary.
So, I've tried to increase stack size in setup and run program again.
But it causes the other error: Syntax error on line...
The error line... | {
"pile_set_name": "StackExchange"
} |
Q:
C# Reference parameter passing
i have a piece of code that isn't working, i'd appreciate any help you guys can provide me
the code below is generating an exception ... but i'd think it shouldn't, unless i'm misinterpreting the ref semantics.
EDIT: thanks for all the answer ... i know i'm instatiating a new Queue o... | {
"pile_set_name": "StackExchange"
} |
Q:
Uncaught exception: blocking operation not permitted on event dispatch thread on BlackBerry
I have a HttpConnection thread class. when ı stop httpConnection, I show this messeage.
how should ı stop httpConnection??
Blackberry Output Console:
RuntimeException
blocking operation not permitted on event dispatch thre... | {
"pile_set_name": "StackExchange"
} |
Q:
adding list of matches to dataframe
I have two data frames that look like this:
Payments data frame
id <- c("a","b","c","d","e","f")
total_amt <- c(100, 100, 200, 200, 350, 350)
payments <- data.frame(id, total_amt)
--------------------
| id | total_amt |
--------------------
| a | 100 |
| b | 100... | {
"pile_set_name": "StackExchange"
} |
Q:
Linux reverse sorting giving wrong results
I have a data which is of the following format:
diplomat 9.35003521034e-07
golden 0.0
projection 5.75975635192e-06
Harvey 9.25224016662e-08
Omelianchuk 8.77038876791e-08
stern 6.23335680688e-08
insecurity 0.0
century 0.000814828405418
Karadzic 0.0
Vernon 5.56509... | {
"pile_set_name": "StackExchange"
} |
Q:
How to get Category Id of current product?
I have get the current product category id on product details page. I have used some method like :
$_product = Mage::getModel('catalog/product')->load(prodId);
$ids = $_product->getCategoryId();
$cat = Mage::getModel('catalog/product')->setId($ids);
but its not work as i... | {
"pile_set_name": "StackExchange"
} |
Q:
R: ifelse conditioning -> replace with last value for which condition is true
Lets say I have this input:
input=data.frame(x=c(2,3,4,5,6,7), y=c(5,5,4,4,3,5))
x y
1 2 5
2 3 5
3 4 4
4 5 4
5 6 3
6 7 5
Now I want to replace value of x if y < 5. In this case I want to take the last x va... | {
"pile_set_name": "StackExchange"
} |
Q:
Maximum amount of characters
can anybody help me with this given assignment? "Write
a
function
that
takes
as
input
the
message
(a
string)
and
checks whether
the
number
of
characters
is
less
than
160
or
not.
If
the
length
of
the
message
is
less
than
160,
the
message
should
be
returned.
If
the
length
of
the
message
... | {
"pile_set_name": "StackExchange"
} |
Q:
docker container starts new container after stopping or removing
I followed 'get started' tutorial on the official docker web-site, and everything went well until I tried to remove containers. Each time when I run
docker rm -f [container_id]
or
docker stop -f [container_id]
the initial container with that ID bec... | {
"pile_set_name": "StackExchange"
} |
Q:
how to pass parameters of a function when using timeit.Timer()
This is the outline of a simple program
# some pre-defined constants
A = 1
B = 2
# function that does something critical
def foo(num1, num2):
# do something
# main program.... do something to A and B
for i in range(20):
# do something to A an... | {
"pile_set_name": "StackExchange"
} |
Q:
NSDate processing very CPU intensive
I have a method in my code for processing a string that needs to be transformed in a NSDate.
This method is called hundreds on times a second, and apparently is very inefficient.
How can it be improved as much as possible?
- (NSDate *)getDateFromString:(NSString *)dateString... | {
"pile_set_name": "StackExchange"
} |
Q:
Let $\small\mathbf H=\begin{pmatrix}a&b\\0&a\end{pmatrix}$ Show that $ e^{\mathbf Ht}=e^{at}\small\begin{pmatrix}1&bt\\0&1\end{pmatrix}$
Let $\mathbf H=\begin{pmatrix}a&b\\0&a\end{pmatrix}$ Show that
$e^{\mathbf Ht}=e^{at}\begin{pmatrix}1&bt\\0&1\end{pmatrix}$
I have $$\begin{aligned} &Ht=\begin{pmatrix}at&bt\\... | {
"pile_set_name": "StackExchange"
} |
Q:
Mongo DB Design For Events Calendar
We have an events calendar and here is what I am thinking for our basic mongo schema:
users
username
password
salt
events
name
description
tags[]
category
venue_id
...
venues
name
address
loc
Queries that will be done are:
Listing of distinct tags (this might be hard giv... | {
"pile_set_name": "StackExchange"
} |
Q:
Number of integer partitions $p(n,m)$
In "Integer partitions" by Andrews and Eriksson, the authors provide formulas to compute $p(n,m)$, i.e., the number of partitions of $n$ into parts less than or equal to $m$, for $m=1,2,3,4,5$. As discussed in this question, it seems that no formula for $m>5$ is known.
However... | {
"pile_set_name": "StackExchange"
} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3