problem
stringlengths 26
131k
| labels
class label 2
classes |
|---|---|
Weighted Average Java Drop Smallest : I'm having a problem with my code below. I'm supposed to be prompting the user for numbers, that part works but once the user inputs the numbers nothing happens after that. What am I doing wrong here for the code to just stop after the user inputs numbers? The code must calculate a weighted average of the numbers (dropping the lowest number entered)
public static void main(String[] args) {
ArrayList<Double> inputs = getNumbers();
int numberOfItemsToDrop = getLowestNumber();
double weight = calculateWeight();
double weightedAvg = calculateAverage(inputs, numberOfItemsToDrop, weight);
getAverage(inputs, numberOfItemsToDrop, weight, weightedAvg);
System.out.printf("%.2f%n", weightedAvg);
}
public static ArrayList<Double> getNumbers() {
ArrayList<Double> inputs = new ArrayList <Double> ();
Scanner in = new Scanner(System.in);
System.out.println("Please enter five to ten numbers all on one line separated with spaces.");
double vals = in.nextDouble();
while (in.hasNextDouble()) {
inputs.add(in.nextDouble());
}
return inputs;
}
public static int getLowestNumber() {
int numberOfItemsToDrop = 0;
System.out.println("How many of the lowest values should be dropped?");
Scanner in = new Scanner(System.in);
numberOfItemsToDrop = in.nextInt();
return numberOfItemsToDrop;
}
public static double calculateWeight(){
double weight = 0;
return weight;
}
public static double calculateAverage(ArrayList<Double> inputs, int numberOfItemsToDrop, double weight) {
double weightedAvg = 0.0;
ArrayList<Double> numbersForSorting = new ArrayList<>(inputs);
Collections.sort(numbersForSorting);
double sum = 0.0;
for (int i = numberOfItemsToDrop; i < inputs.size(); i++) {
sum += inputs.get(i);
}
if ((inputs.size ()- numberOfItemsToDrop)> 0){
weightedAvg = weight*(sum/(inputs.size()- numberOfItemsToDrop));
}
return weightedAvg;
}
public static void getAverage(ArrayList<Double> inputs, int numberOfItemsToDrop, double weight, double weightedAvg){
System.out.println("The average of the numbers" + inputs + "except the lowest " + numberOfItemsToDrop + "is"+ weightedAvg);
}
}
| 0debug
|
Android Studio 3.3 folder icons : <p>On the new Android Studio 3.3 some icons have change and I'm looking to understand what each one of the mean.</p>
<p><a href="https://stackoverflow.com/questions/25991228/android-studio-icons-meaning">This</a> and <a href="https://stackoverflow.com/questions/38815719/what-do-graphical-icons-and-symbols-in-android-studio-mean?rq=1">this</a> answers are outdated.</p>
<p>For example in this picture I have two modules inside my project, but one have a green dot and the other this bar chart. What it means?</p>
<p><a href="https://i.stack.imgur.com/GTCqF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GTCqF.png" alt="enter image description here"></a></p>
| 0debug
|
Trouble fitting simple data with MLPRegressor : <p>I am trying out Python and scikit-learn. I cannot get MLPRegressor to come even close to the data. Where is this going wrong?</p>
<pre><code>from sklearn.neural_network import MLPRegressor
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0.0, 1, 0.01).reshape(-1, 1)
y = np.sin(2 * np.pi * x).ravel()
reg = MLPRegressor(hidden_layer_sizes=(10,), activation='relu', solver='adam', alpha=0.001,batch_size='auto',
learning_rate='constant', learning_rate_init=0.01, power_t=0.5, max_iter=1000, shuffle=True,
random_state=None, tol=0.0001, verbose=False, warm_start=False, momentum=0.9,
nesterovs_momentum=True, early_stopping=False, validation_fraction=0.1, beta_1=0.9, beta_2=0.999,
epsilon=1e-08)
reg = reg.fit(x, y)
test_x = np.arange(0.0, 1, 0.05).reshape(-1, 1)
test_y = reg.predict(test_x)
fig = plt.figure()
ax1 = fig.add_subplot(111)
ax1.scatter(x, y, s=10, c='b', marker="s", label='real')
ax1.scatter(test_x,test_y, s=10, c='r', marker="o", label='NN Prediction')
plt.show()
</code></pre>
<p>The result is not very good:
<img src="https://i.stack.imgur.com/hzutQ.png" alt="failed fit">
Thank you.</p>
| 0debug
|
Java beginner - using the 'int counter' more than once within a button action : <p>I am a Java beginner and would like to know if I can use 'int counter' more than once as part of a button action. If I try to use this a second time I receive the error 'variable counter is already defined in method jButton1ActionPerformed(ActionEvent)'. Is there a way of re-setting the counter so I can use it again for a different action?</p>
| 0debug
|
how to copy linked list in Python : class _ListNode:
def __init__(self, value, next_):
"""
-------------------------------------------------------
Initializes a list node.
Use: node = _ListNode(value, _next)
-------------------------------------------------------
Preconditions:
_value - data value for node (?)
_next - another list node (_ListNode)
Postconditions:
Initializes a list node that contains a copy of value
and a link to the next node in the list.
-------------------------------------------------------
"""
self._value = copy.deepcopy(value)
self._next = next_
return
class List:
def __init__(self):
"""
-------------------------------------------------------
Initializes an empty list.
Use: l = List()
-------------------------------------------------------
Postconditions:
Initializes an empty list.
-------------------------------------------------------
"""
self._front = None
self._count = 0
return
def copy(self):
"""
-------------------------------------------------------
Duplicates the current list to a new list in the same order.
Use: new_list = l.copy()
-------------------------------------------------------
Postconditions:
returns:
new_list - a copy of self (List)
-------------------------------------------------------
"""
The requirement is to write the copy function.
But when I finish this function as my opinion the new list only contains one item or None item.
Does anyone could tell me how to finish this function?
Really appreciate for your help.
| 0debug
|
wordpress contact form 7 issues - How to track leads that come from which contact form if we have so many contact forms : <p>My website has so many wordpress contact forms to collect the leads...I want to create a form class or form id in order to differentiate from which contact form i am getting the leads or which contact form is my customer using to submit the details...Please help me in this matter</p>
| 0debug
|
Flask python Send and Receive Images in Bytes : i try to send and receive image using python and flask
Below is my current solution that does not work
flask
app = Flask(__name__)
@app.route('/add_face', methods=['GET', 'POST'])
def add_face():
if request.method == 'POST':
# read encoded image
imageString = base64.b64decode(request.form['img'])
# convert binary data to numpy array
nparr = np.fromstring(imageString, np.uint8)
# let opencv decode image to correct format
img = cv2.imdecode(nparr, cv2.IMREAD_ANYCOLOR);
cv2.imshow("frame", img)
cv2.waitKey(0)
return "list of names & faces"
if __name__ == '__main__':
app.run(debug=True, port=5000)
client
URL = "http://localhost:5000/add_face"
#first, encode our image with base64
with open("block.png", "rb") as imageFile:
img = base64.b64encode(imageFile.read())
response = requests.post(URL, data={"name":"obama", "img":str(img)})
print(response.content)
this the error is very bigger which that contain html script that i can not understand it
return binascii.a2b_base64(s)\nbinascii.Error: Incorrect padding\n\n-->\n'
| 0debug
|
static void pty_chr_update_read_handler(CharDriverState *chr)
{
PtyCharDriver *s = chr->opaque;
GPollFD pfd;
pfd.fd = g_io_channel_unix_get_fd(s->fd);
pfd.events = G_IO_OUT;
pfd.revents = 0;
g_poll(&pfd, 1, 0);
if (pfd.revents & G_IO_HUP) {
pty_chr_state(chr, 0);
} else {
pty_chr_state(chr, 1);
}
}
| 1threat
|
Material UI transition out and in on single button click : <p>In the Material UI <a href="https://material-ui.com/utils/transitions/" rel="noreferrer">Transitions doc</a>, there are examples where a button triggers a transition. I have a case where a button triggers a state change and I want the former data to transition out and then the new data to transition in. The only way I have found to do this is with <code>setTimeout</code>. Is there a better way?</p>
<p><a href="https://codesandbox.io/s/op4x52yvz" rel="noreferrer">In CodeSandbox</a></p>
<pre><code>import React from "react";
import Slide from "@material-ui/core/Slide";
import Button from "@material-ui/core/Button";
import Typography from "@material-ui/core/Typography";
const words = ["one", "two", "three"];
const transitionDuration = 500;
class TransitionCycle extends React.Component {
state = {
activeIndex: 0,
elementIn: true
};
onClick = () => {
this.setState({
elementIn: false
});
setTimeout(() => {
this.setState({
elementIn: true,
activeIndex: (this.state.activeIndex + 1) % words.length
});
}, transitionDuration);
};
render() {
const { activeIndex, elementIn } = this.state;
return (
<div>
<Button onClick={this.onClick}>Cycle</Button>
<Slide
in={this.state.elementIn}
timeout={transitionDuration}
direction="right"
>
<Typography variant="h1">{words[this.state.activeIndex]}</Typography>
</Slide>
</div>
);
}
}
export default TransitionCycle;
</code></pre>
<p>Is this the best way to do back to back transitions in Material UI? It feels odd to use <code>setTimeout</code>.</p>
| 0debug
|
How do I transfer variables between two storyboards in Xcode? : <p>I am currently programming an app with two storyboards. One storyboard is an onboarding storyboard where I obtain crucial info from the user in order to run the app. Another is the main app. How can I create variable that is able to be manipulated and accessible to both storyboards? I am using Swift. </p>
| 0debug
|
static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
{
AVIContext *avi = s->priv_data;
AVStream *st;
int i, index;
int64_t pos, pos_min;
AVIStream *ast;
if (!avi->index_loaded) {
avi_load_index(s);
avi->index_loaded = 1;
}
assert(stream_index>= 0);
st = s->streams[stream_index];
ast= st->priv_data;
index= av_index_search_timestamp(st, timestamp * FFMAX(ast->sample_size, 1), flags);
if(index<0)
return -1;
pos = st->index_entries[index].pos;
timestamp = st->index_entries[index].timestamp / FFMAX(ast->sample_size, 1);
if (CONFIG_DV_DEMUXER && avi->dv_demux) {
assert(stream_index == 0);
dv_offset_reset(avi->dv_demux, timestamp);
avio_seek(s->pb, pos, SEEK_SET);
avi->stream_index= -1;
return 0;
}
pos_min= pos;
for(i = 0; i < s->nb_streams; i++) {
AVStream *st2 = s->streams[i];
AVIStream *ast2 = st2->priv_data;
ast2->packet_size=
ast2->remaining= 0;
if (ast2->sub_ctx) {
seek_subtitle(st, st2, timestamp);
continue;
}
if (st2->nb_index_entries <= 0)
continue;
assert((int64_t)st2->time_base.num*ast2->rate == (int64_t)st2->time_base.den*ast2->scale);
index = av_index_search_timestamp(
st2,
av_rescale_q(timestamp, st->time_base, st2->time_base) * FFMAX(ast2->sample_size, 1),
flags | AVSEEK_FLAG_BACKWARD | (st2->codec->codec_type != AVMEDIA_TYPE_VIDEO ? AVSEEK_FLAG_ANY : 0));
if(index<0)
index=0;
ast2->seek_pos= st2->index_entries[index].pos;
pos_min= FFMIN(pos_min,ast2->seek_pos);
}
for(i = 0; i < s->nb_streams; i++) {
AVStream *st2 = s->streams[i];
AVIStream *ast2 = st2->priv_data;
if (ast2->sub_ctx || st2->nb_index_entries <= 0)
continue;
index = av_index_search_timestamp(
st2,
av_rescale_q(timestamp, st->time_base, st2->time_base) * FFMAX(ast2->sample_size, 1),
flags | AVSEEK_FLAG_BACKWARD | (st2->codec->codec_type != AVMEDIA_TYPE_VIDEO ? AVSEEK_FLAG_ANY : 0));
if(index<0)
index=0;
while(!avi->non_interleaved && index>0 && st2->index_entries[index-1].pos >= pos_min)
index--;
ast2->frame_offset = st2->index_entries[index].timestamp;
}
avio_seek(s->pb, pos_min, SEEK_SET);
avi->stream_index= -1;
avi->dts_max= INT_MIN;
return 0;
}
| 1threat
|
static int guess_ni_flag(AVFormatContext *s)
{
int i;
int64_t last_start = 0;
int64_t first_end = INT64_MAX;
int64_t oldpos = avio_tell(s->pb);
int *idx;
int64_t min_pos, pos;
for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s->streams[i];
int n = st->nb_index_entries;
unsigned int size;
if (n <= 0)
continue;
if (n >= 2) {
int64_t pos = st->index_entries[0].pos;
avio_seek(s->pb, pos + 4, SEEK_SET);
size = avio_rl32(s->pb);
if (pos + size > st->index_entries[1].pos)
last_start = INT64_MAX;
}
if (st->index_entries[0].pos > last_start)
last_start = st->index_entries[0].pos;
if (st->index_entries[n - 1].pos < first_end)
first_end = st->index_entries[n - 1].pos;
}
avio_seek(s->pb, oldpos, SEEK_SET);
if (last_start > first_end)
return 1;
idx= av_calloc(s->nb_streams, sizeof(*idx));
if (!idx)
return 0;
for (min_pos=pos=0; min_pos!=INT64_MAX; pos= min_pos+1LU) {
int64_t max_dts = INT64_MIN/2, min_dts= INT64_MAX/2;
min_pos = INT64_MAX;
for (i=0; i<s->nb_streams; i++) {
AVStream *st = s->streams[i];
AVIStream *ast = st->priv_data;
int n= st->nb_index_entries;
while (idx[i]<n && st->index_entries[idx[i]].pos < pos)
idx[i]++;
if (idx[i] < n) {
min_dts = FFMIN(min_dts, av_rescale_q(st->index_entries[idx[i]].timestamp/FFMAX(ast->sample_size, 1), st->time_base, AV_TIME_BASE_Q));
min_pos = FFMIN(min_pos, st->index_entries[idx[i]].pos);
}
if (idx[i])
max_dts = FFMAX(max_dts, av_rescale_q(st->index_entries[idx[i]-1].timestamp/FFMAX(ast->sample_size, 1), st->time_base, AV_TIME_BASE_Q));
}
if (max_dts - min_dts > 2*AV_TIME_BASE) {
av_free(idx);
return 1;
}
}
av_free(idx);
return 0;
}
| 1threat
|
Check if an item is in a nested list : <p>in a simple list following check is trivial:</p>
<pre><code>x = [1, 2, 3]
2 in x -> True
</code></pre>
<p>but if it is a list of list, such as:</p>
<pre><code>x = [[1, 2, 3], [2, 3, 4]]
2 in x -> False
</code></pre>
<p>how can this be addressed in order to return <code>True</code>?</p>
| 0debug
|
static void omap_prcm_apll_update(struct omap_prcm_s *s)
{
int mode[2];
mode[0] = (s->clken[9] >> 6) & 3;
s->apll_lock[0] = (mode[0] == 3);
mode[1] = (s->clken[9] >> 2) & 3;
s->apll_lock[1] = (mode[1] == 3);
if (mode[0] == 1 || mode[0] == 2 || mode[1] == 1 || mode[1] == 2)
fprintf(stderr, "%s: bad EN_54M_PLL or bad EN_96M_PLL\n",
__FUNCTION__);
}
| 1threat
|
How to display data from a database in a table in android studio? : I'm new to android studio and can't seem to find what I'm asking for.
I want to have a database that stores the data of a few people, e.g.
Steve Hardy, 16 Somewhere Land, Colorado, U.S.A.
I would like this to have headings (Name, Address, City, Country).
I'm just struggling with how to format a table like this and how I would link a database to this.
Thanks.
| 0debug
|
iOS UIWebView Deprecating. What does this mean for Cordova apps? : <p>Apple is deprecating UIWebView for iOS 12. (<a href="https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html" rel="noreferrer">https://cordova.apache.org/news/2018/08/01/future-cordova-ios-webview.html</a>)</p>
<p>I have a Cordova app and I have a few questions about this change:</p>
<ol>
<li>How can I tell if my app is using UIWebView?</li>
<li>How soon is it expected that Apple will remove UIWebView altogether?</li>
<li>Currently for Cordova apps it is recommended to install the WKWebView engine plugin. Based on the readme all I have to do is install this plugin and it makes Cordova use WKWebView. Is it really that easy? Once this is added I just build and can test knowing the app is using WKWebView only? <a href="https://github.com/apache/cordova-plugin-wkwebview-engine" rel="noreferrer">https://github.com/apache/cordova-plugin-wkwebview-engine</a></li>
</ol>
| 0debug
|
What is the difference between react-navigation's StackNavigator and SwitchNavigator? : <p>As of this writing, the <a href="https://reactnavigation.org/docs/switch-navigator.html" rel="noreferrer">Docs</a> don't provide a description of <code>SwitchNavigator</code>'s purpose.</p>
<p>I've tried using both <code>StackNavigator</code> and <code>SwitchNavigator</code> interchangeably and I personally cannot spot a difference. <em>Although I'm certain there is.</em></p>
<p>Can anyone explain what the added benefit of <code>SwitchNavigator</code> is over <code>StackNavigator</code> ? Or a scenario where one might use it over the other?</p>
| 0debug
|
C++ if statement with || : <p>I have to print an error if the gender entered is not M/m/F/f/X/x but my if statement always returns true</p>
<pre><code>cout << "Please enter the candidate's information "
"(enter 'X' to exit).";
cout << endl << "gender: ";
cin.get(gender);
cin.ignore(1000,'\n');
if (gender != 'M' || gender != 'm' || gender != 'F' ||
gender != 'f' || gender != 'X' || gender != 'x')
{
cout << "error";
}
</code></pre>
| 0debug
|
static void check_suspend_mode(GuestSuspendMode mode, Error **errp)
{
SYSTEM_POWER_CAPABILITIES sys_pwr_caps;
Error *local_err = NULL;
ZeroMemory(&sys_pwr_caps, sizeof(sys_pwr_caps));
if (!GetPwrCapabilities(&sys_pwr_caps)) {
error_setg(&local_err, QERR_QGA_COMMAND_FAILED,
"failed to determine guest suspend capabilities");
goto out;
}
switch (mode) {
case GUEST_SUSPEND_MODE_DISK:
if (!sys_pwr_caps.SystemS4) {
error_setg(&local_err, QERR_QGA_COMMAND_FAILED,
"suspend-to-disk not supported by OS");
}
break;
case GUEST_SUSPEND_MODE_RAM:
if (!sys_pwr_caps.SystemS3) {
error_setg(&local_err, QERR_QGA_COMMAND_FAILED,
"suspend-to-ram not supported by OS");
}
break;
default:
error_setg(&local_err, QERR_INVALID_PARAMETER_VALUE, "mode",
"GuestSuspendMode");
}
out:
if (local_err) {
error_propagate(errp, local_err);
}
}
| 1threat
|
Cannot open include file: 'ctype.h': No such file or directory : <p>I installed c++ package on VS 2015 , if I tried to build the project ,the following problem appears :</p>
<p>C1083 Cannot open include file: 'ctype.h': No such file or directory Win32Project5 c:\program files (x86)\windows kits\8.1\include\um\winnt.h 31 </p>
<p>Any possible solution ....</p>
| 0debug
|
Cannot import name 'MappingProxyType' error after importing functools : <p>After I import functools I receive such message from interpreter: </p>
<blockquote>
<p>Traceback (most recent call last):
File "C:/Users/Admin/Documents/Python/decorator.py", line 1, in
import functools
File "C:\Python3\lib\functools.py", line 22, in
from types import MappingProxyType
ImportError: cannot import name 'MappingProxyType'</p>
</blockquote>
<pre><code>import functools
def trace(func):
def inner(*args, **kwargs):
print(func.__name__, args, kwargs)
return func(*args, **kwargs)
functools.update_wrapper(inner, func)
return inner
@trace
def foo(x):
return x
foo(42)
</code></pre>
<p>Using PyCharm as IDE and CPython as interpreter</p>
| 0debug
|
awk to match pattern in html and use regex : <p>Using <code>awk</code> to parse an <code>html</code> and it does execute but prints the entire line not just the percentage as in the desired. My thinking is that the pattern <code>reads passed filters:</code> is matched, then the <code>regex</code> is used to use the <code></td><td class='col2'>78.760142 M</code> and print the field after. There are aditional lines above and below, but the are different then the pattern. Thank you :).</p>
<p>file</p>
<pre><code>...
...
<tr><td class='col1'>reads passed filters:</td><td class='col2'>78.760142 M (95.514721%)</td></tr>
...
...
</code></pre>
<p>awk</p>
<pre><code>awk -F'reads passed filters:[^a-z][0-9][::space::][a-z][::space::]*' '/reads passed filters:/ {sub("[^a-z][0-9][::space::][a-z][::space::].*", "", $1); print $1}' file
</code></pre>
<p>current</p>
<pre><code><tr><td class='col1'>reads passed filters:</td><td class='col2'>78.760142 M (95.514721%)</td></tr>
</code></pre>
<p>desired</p>
<pre><code>95.514721%
</code></pre>
| 0debug
|
So i've come up with his code and i'm not sure how to continue with the delete function? : <p>I have to delete a drink from the database using the id the user enters.. so how should i continue? I'm not sure what to write inside the if condition?</p>
<pre><code>class Drink{
private:
float cost;
char product_id[10];
char dname[30];
int numDrink;
public:
void addDrink(char drinkname[],float price,char id[]);
void delDrink(char drinkname[],char id[]);
//void updateItem();
//void searchItem();
};
Drink drinkBase[100];
void Drink::addDrink(char drinkname[],float price,char id[])
{
strcpy(drinkBase[numDrink].dname,drinkname);
strcpy(drinkBase[numDrink].product_id,id);
drinkBase[numDrink].cost = price;
cout<<"\nItem inserted successfully!"<<endl;
numDrink++;
}
void Drink::delDrink(char drinkname[],char id[])
{
int i;
for(int i=0;i<numDrink;i++){
if((strcmp(drinkname,drinkBase[i].dname)==0)&&
(drinkBase[i].product_id=id))
{
cout<<"\nItem deleted successfully";
return;
}
}
}
</code></pre>
| 0debug
|
leftJion Between 3 Tables : I have 3 tables as follow :
Table 1 contain the following
Id Name Section Salary
1 Mark It 1000
2 Dad Hr 2000
Table 2 contain the following
Id Item Salary
1 Holday 50
1 Food 30
1 Rent 100
2 Food 200
2 Rent 200
Table 3 contain the following
Id Decriptions Cost
1 Bonce 150
1 Rate 300
2 Car 100
2 Bonce 15
2 Rate 30
I need the have the date like the attached picture[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/PVtYX.jpg
| 0debug
|
Using Delphi IDhttp Post Method on Secure Site with Cookies : I am trying to use the IDhttp Post method to submit a form on a website that I just can't crack. I have tried several iterations and changes to my code and have hit a road block that I need to get help with. I am relatively new to IDhttp and its usage and so I beg forgiveness for anything that is just plain stupid about my code.
Here is my current code in Delphi:
procedure TMSBS_App_GUI.SubmitClick(Sender: TObject);
Var
Response : String;
ResponseSet : TStringStream;
Params : TStringList;
IdHttp : TIDHttp;
IdSSL : TIdSSLIOHandlerSocketOpenSSL;
CookieMonster : TidCookieManager;
begin
Params := TStringList.Create;
Params.Add('username=' + 'username');
Params.Add('submit.value=' + 'submit');
idhttp := TIdhttp.Create;
idhttp.AllowCookies := True;
CookieMonster := TiDCookieManager.Create;
idHttp.CookieManager := CookieMonster;
idSSLOpenSSLHeaders.Load;
IdSSL := TIdSSLIOHandlerSocketOpenSSL.Create(nil);
idHttp.ReadTimeout := 30000;
idHttp.IOHandler := idSSL;
idHttp.Get('https://' + website);
idhttp.Request.ContentType := 'application/x-www-form-urlencoded';
idhttp.Request.Referer := 'http://' + website;
idSSL.SSLOptions.Method := sslvTLSv1;
idSSL.SSLOptions.Mode := sslmUnassigned;
ResponseSet := TStringStream.Create(nil);
Try
Memo1.Text := idHttp.Post('https://' + website,Params);
Finally
Params.Free;
ResponseSet.Free;
End;
end;
This is the Form from the webpage:
<!-- SiteMinder Encoding=ISO-8859-1; -->
<!-- FCC File : (generic) caloglfn.fcc version 1.4-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<link rel="stylesheet" type="text/css" href="styles.css" />
<!-- Cross-frame scripting prevention: This code will prevent this page from being encapsulated within HTML frames. Remove, or comment out, this code if the functionality that is contained in this SiteMinder page is to be included within HTML frames. -->
<SCRIPT type="text/javascript" src="https://ff.kis.v2.scr.kaspersky-labs.com/D0501246-9A02-314D-B50C-0C6D353C6332/main.js" charset="UTF-8"></script><link rel="stylesheet" crossorigin="anonymous" href="https://ff.kis.v2.scr.kaspersky-labs.com/2336C353D6C0-C05B-D413-20A9-6421050D/abn/main.css"/><script>
if (top !=self)
top.location=self.location;
</SCRIPT>
<title>Member/Pensioner Services Online Login</title>
<script>
function submit_form()
{
document.mos_form.username.value = document.mos_form.pUserID.value + document.mos_form.pDOB.value
document.mos_form.submit()
}
</script>
</head>
<body>
<div id="wrapper">
<div id="help">
<a style="border-bottom:none;" href="mso_pso_access_help.html" target="_blank"><img STYLE="border:none;" src="Help_button.png" alt="Help" align="right"> </a>
</div>
<div id="header">
<img class="crest" src="crest.png" alt="Crest - Superannuation Corporation" align="left">
<img class="logo" src="mso_pso.png" alt="Pensioner Services Online (PSO) and Member Services Online (MSO)" align="right">
</div>
<div id="toplinks">
</div>
<div id="form">
<form name="mos_form" method="POST" enctype="application/x-www-form-urlencoded" autocomplete="off">
<input type="hidden" name="autherrmsg" value="Login failed. Please try again."/>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td align="left">
<H1>
<span style="color: #3E842E;">Member Access</span>
</H1>
</td>
</tr>
<tr>
<td>
<p><font color="red"> </font></p>
<p>
To gain access to the complete range of online services, please enter your Membership Number, Date of Birth and Password below.
</p>
<p> If you need any help, click on Help in the top right-hand corner of this screen.</p>
<p> </p>
</td>
</tr>
</table>
<label for="hidden_username"></label>
<input type="hidden" name="username">
<label for="hidden_url"></label>
<input type="hidden" name="url" value="<ERROR_INFORMATION>" READONLY>
<label for="hidden_proxy"></label>
<input type="hidden" name="proxypath" value="<PROXY_PATH>">
<table width="900" border="0">
<tr height="38" valign="top">
<td width="200px" align="right" > <label for="mem_num" id="mem_num_label">Membership Number </label> </td>
<td width="200px" > <input id="pUserID" type="text" name="pUserID" value="" size="27" maxlength="13" id="mem_num"> </td>
<td width="500px">
<img STYLE="border:none;" src="mso_pso_question.png" onmouseover="this.style.cursor = 'help';"
title="Please enter your Membership Number.
This is either your Employment Number or Pension Reference Number as found on our correspondence to you.
If this is not available please Contact us.">
</td>
</tr>
<tr height="38" valign="top">
<td width="200px" align="right" > <label for="dob" id="dob_label">Date of Birth </label> </td>
<td width="200px" > <input type="text" name="pDOB" value="" size="27" maxlength="8" id="dob" placeholder="DDMMYYYY"> </td>
<td width="500px">
<img STYLE="border:none;" src="mso_pso_question.png" onmouseover="this.style.cursor = 'help';"
title="Please enter your date of birth in this format: DDMMYYYY (e.g. 01021955).">
</td>
</tr>
<tr height="38" valign="top">
<td width="200px" align="right" > <label for="acc_num" id="acc_num_label">Password</label> </td>
<td width="200px"> <input type="PASSWORD" name="password" value="" size="27" maxlength="30" id="acc_num"> </td>
<td width="500px">
<img STYLE="border:none;" src="mso_pso_question.png" onmouseover="this.style.cursor = 'help';"
title='Please enter your Password.
If you have forgotten your Password, use the "I've forgotten my password" link to reset your access credentials.
If you need to contact us, our details are available via the contact us button at the top right-hand corner of this screen.'>
</td>
</tr>
</tr>
<tr height="38" valign="top">
<td width="200px" width=200></td>
<td width="200px" align="right"> <a href="https://www.*****.au/no-scheme-provided/register-or-reset"> I've forgotten my password </a> </td>
<td width="500px">
</tr>
<tr height="38" valign="top">
<td colspan=2 align="right"><a href="https://www.*****.au/register-or-reset/no-scheme-provided"> Register</a>   <input type=button onclick=javascript:submit_form() value=Login> </td>
</tr>
<tr>
</table>
<script language="JavaScript">
<!-- the script here sets the focus on UserID field
document.mos_form.pUserID.focus();
document.mos_form.pUserID.select();
function enter(e)
{
if (navigator.appName == "Netscape")
whichASCII = e.which;
else
whichASCII = event.keyCode
if (whichASCII == 13 )
{
submit_form();
}
}
document.onkeypress = enter;
if (navigator.appName == "Netscape")
document.mos_form.pAccessCode.onkeypress = enter;
// End of script -->
</script>
<!-- SiteMinder Variables START -->
<input type=hidden name=target value="http://website">
<input type=hidden name=smauthreason value="0">
<input type=hidden name=smagentname value="boFynyFE9jczy7ra1lzqLmXPeVc9xLptAWQSI9ksks1Hx/oGQmJxQA7Fy25/Xt9X">
<!-- SiteMinder Variables END -->
</FORM>
</div>
<div id="footer">
<table width=100% border=0 cellspacing="0" cellpadding="0">
<tr>
<td height="30px" align="left" valign="middle" bgcolor="#3E842E">
<a href="http://www.*****.au/privacy" title="Privacy policy" target="_blank" class="wlink">Privacy</a> |
<a href="http://www.*****.au/disclaimer" title="Disclaimer" target="_blank" class="wlink">Disclaimer</a>
</td>
</tr>
<tr>
<td height="30px" colspan="2" valign="top" bgcolor="#949599" class="footer"><p class="footer"><span class="bold">Superannuation Company</span> ABN: ## ### ### ### AFSL: ###### RSEL: L#######<br /></td>
</tr>
</table>
</div>
</div>
<!--<script>
function getParameterByName(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[[]]/g, "\$&");
var regex = new RegExp("[#&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/+/g, " "));
}
document.getElementById('pUserID').value = getParameterByName('id');
</script> -->
</body>
</html>
And here is the Ethereal packet for the Post Method:
Hypertext Transfer Protocol
POST /live/red_lojson/100eng.json?sh=0&ph=1383&ivh=928&dt=2720&pdt=214&ict=&pct=1&perf=widget%7C214%7C16%2Clojson%7C1027%7C656%2Csh%7C1031%7C0%2Csh%7C1035%7C16&rndr=render_toolbox%7C1375&cmenu=null&ppd=4&ppl=4&fbe=&xmv=0&xms=0&xmlc=0&jsfw=
Request Method: POST
Request URI [truncated]: /live/red_lojson/100eng.json?sh=0&ph=1383&ivh=928&dt=2720&pdt=214&ict=&pct=1&perf=widget%7C214%7C16%2Clojson%7C1027%7C656%2Csh%7C1031%7C0%2Csh%7C1035%7C16&rndr=render_toolbox%7C1375&cmenu=null&ppd=4&ppl=4&fbe=&xmv=
Request Version: HTTP/1.1
Host: m.addthis.com\r\n
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0\r\n
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n
Accept-Language: en-US,en;q=0.5\r\n
Accept-Encoding: gzip, deflate\r\n
Referer: http://website/\r\n
Content-Length: 0\r\n
Content-Type: text/plain;charset=UTF-8\r\n
Cookie: na_tc=Y; uid=597293e6c72cb3be; na_id=2017072123300513069970337317; uvc=27%7C47%2C4%7C48%2C0%7C49%2C10%7C50%2C3%7C51; loc=MDAwMDBPQ0FVTlMxNDYxMzMxMjAwMDAwMDAwVg==; mus=0; ssc=pinterest%3B1%2Cgoogle%3B1\r\n
Connection: keep-alive\r\n
\r\n
| 0debug
|
R, where is data set DHHS : <p>The DHHS Collaboration Network (DHHS) contains network data from a study of the
relationships among 54 tobacco control experts working in 11 different agencies
in the Department of Health and Human Services in 2005.</p>
<p>I googled it but has no clue. Where can I find this data set and use it in R? Thank you.</p>
<p>When I put it in R:</p>
<pre><code>data(DHHS)
</code></pre>
<p>it shows:</p>
<pre><code>data set ‘DHHS’ not found
</code></pre>
| 0debug
|
My fonts are thoroughly messed up, especially the vertical parts of 'l's 'i's and 't's : [Messed up fonts][1]
[1]: https://i.stack.imgur.com/y7GdD.png
All WordPress sites are screwed over and google searches look weird as well.
For WordPress sites, it loads fine, but then turns into the crap in the picture moments later.
| 0debug
|
Apple is killing white labeled iOS apps! What should we do? : <p>Many companies rely on white labeled apps to provide their services in a more personal way to their customers.</p>
<p>With a few adjustments we can set a logo and a splash screen and even pre-configure our app to our customer needs which has a great impact in their end user experience. Without this my users would need to use the app skipping a lot of configuration steps that in a generic app wouldn't be possible to skip.</p>
<p>According to apple: "Apps created from a commercialized template or app generation service will be rejected"</p>
<p>Now what can we do to to work around this? </p>
<p>Today I saw 4 apps being rejected and others are waiting for revision and I can anticipate that they will have the same ending.</p>
<p>Here's the revision result:
<strong>"4. 3 Design: Spam"</strong></p>
<blockquote>
<p>Guideline 4.3 - Design</p>
<p>We noticed that your app provides the same feature set as many of the
other apps you've submitted to the App Store; it simply varies in
content or language, which is considered a form of spam.</p>
<p>The next submission of this app may require a longer review time.</p>
<p>Next Steps</p>
<p>When creating multiple apps where content is the only varying element,
you should offer a single app to deliver differing content to
customers. <strong>Alternatively, you may consider creating a web app, which</strong>
<strong>looks and behaves similar to a native app when the customer adds it to</strong>
<strong>their Home screen.</strong> Refer to the Configuring Web Applications section
of the Safari Web Content Guide for more information.</p>
<ul>
<li>Review the Design section of the App Store Review Guidelines.</li>
<li>Ensure your app is compliant with all sections of the App Store Review Guidelines and the Terms & Conditions of the Apple Developer
Program. </li>
<li>Once your app is fully compliant, resubmit your app for review.</li>
</ul>
<p>Submitting apps designed to mislead or harm customers or evade the
review process may result in the termination of your Apple Developer
Program account. Review the Terms & Conditions of the Apple Developer
Program to learn more about our policies regarding termination.</p>
<p>If you believe your app is compliant with the App Store Review
Guidelines, you may submit an appeal. Alternatively, you may provide
additional details about your app by replying directly to this
message.</p>
<p>For app design information, check out the following videos: "Best
Practices for Great iOS UI Design" and "Designing Intuitive User
Experiences," available on the Apple Developer website.</p>
<p>You may also want to review the iOS Human Interface Guidelines for
more information on how to create a great user experience in your app.</p>
</blockquote>
<p>Of course we can develop web apps, but apple can't forget that many features are only available in native or hybrid apps. </p>
<p>What should we do?</p>
<p><strong>References:</strong></p>
<ul>
<li><a href="https://blog.summitsync.com/did-apple-just-crush-white-label-apps-4aee14d00b78" rel="noreferrer">https://blog.summitsync.com/did-apple-just-crush-white-label-apps-4aee14d00b78</a> </li>
<li><a href="https://developer.apple.com/app-store/review/guidelines/" rel="noreferrer">https://developer.apple.com/app-store/review/guidelines/</a> </li>
</ul>
| 0debug
|
const char *print_wrid(int wrid)
{
if (wrid >= RDMA_WRID_RECV_CONTROL) {
return wrid_desc[RDMA_WRID_RECV_CONTROL];
}
return wrid_desc[wrid];
}
| 1threat
|
Why is the for-loop choosing the wrong IF statement path? : <p>So I am doing an online coding challenge and have come across this issue that has me stumped:</p>
<p>This is my code:</p>
<pre><code> static void Main(String[] args)
{
int noOfRows = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < noOfRows; i++)
{
string odds = "";
string evens = "";
//get the input word from console
string word = Console.ReadLine();
for (int j = 0; j < word.Length; j++)
{
//if the string's current char is even-indexed...
if (word[j] % 2 == 0)
{
evens += word[j];
}
//if the string's current char is odd-indexed...
else if (word[j] % 2 != 0)
{
odds += word[j];
}
}
//print a line with the evens + odds
Console.WriteLine(evens + " " + odds);
}
}
</code></pre>
<p>Essentially, the question wants me to get the string from the console line and print the even-indexed characters (starting from index=0) on the left, followed by a space, and then the odd-indexed characters.</p>
<p>So when I try the word 'Hacker', I should see the line printed as "Hce akr". When I debugged it, I saw the code successfully put the letter 'H' on the left (because it is index=0, thus even), and put the letter 'a' on the right (odd index). But then when it got to the letter 'c', instead of going through the first IF path (even index), it skips it and goes to the odd index path, and places it on the right hand side?</p>
<p>The funny thing is when I try the word 'Rank' it works fine and prints the correct statement: "Ra nk", yet other words do not.</p>
<p>Its just bizarre that I'm getting different results.</p>
<p>What am I missing?</p>
| 0debug
|
int sws_setColorspaceDetails(SwsContext *c, const int inv_table[4], int srcRange, const int table[4], int dstRange, int brightness, int contrast, int saturation)
{
int64_t crv = inv_table[0];
int64_t cbu = inv_table[1];
int64_t cgu = -inv_table[2];
int64_t cgv = -inv_table[3];
int64_t cy = 1<<16;
int64_t oy = 0;
memcpy(c->srcColorspaceTable, inv_table, sizeof(int)*4);
memcpy(c->dstColorspaceTable, table, sizeof(int)*4);
c->brightness= brightness;
c->contrast = contrast;
c->saturation= saturation;
c->srcRange = srcRange;
c->dstRange = dstRange;
if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;
c->uOffset= 0x0400040004000400LL;
c->vOffset= 0x0400040004000400LL;
if (!srcRange) {
cy= (cy*255) / 219;
oy= 16<<16;
} else {
crv= (crv*224) / 255;
cbu= (cbu*224) / 255;
cgu= (cgu*224) / 255;
cgv= (cgv*224) / 255;
}
cy = (cy *contrast )>>16;
crv= (crv*contrast * saturation)>>32;
cbu= (cbu*contrast * saturation)>>32;
cgu= (cgu*contrast * saturation)>>32;
cgv= (cgv*contrast * saturation)>>32;
oy -= 256*brightness;
c->yCoeff= roundToInt16(cy *8192) * 0x0001000100010001ULL;
c->vrCoeff= roundToInt16(crv*8192) * 0x0001000100010001ULL;
c->ubCoeff= roundToInt16(cbu*8192) * 0x0001000100010001ULL;
c->vgCoeff= roundToInt16(cgv*8192) * 0x0001000100010001ULL;
c->ugCoeff= roundToInt16(cgu*8192) * 0x0001000100010001ULL;
c->yOffset= roundToInt16(oy * 8) * 0x0001000100010001ULL;
c->yuv2rgb_y_coeff = (int16_t)roundToInt16(cy <<13);
c->yuv2rgb_y_offset = (int16_t)roundToInt16(oy << 9);
c->yuv2rgb_v2r_coeff= (int16_t)roundToInt16(crv<<13);
c->yuv2rgb_v2g_coeff= (int16_t)roundToInt16(cgv<<13);
c->yuv2rgb_u2g_coeff= (int16_t)roundToInt16(cgu<<13);
c->yuv2rgb_u2b_coeff= (int16_t)roundToInt16(cbu<<13);
ff_yuv2rgb_c_init_tables(c, inv_table, srcRange, brightness, contrast, saturation);
#if ARCH_PPC && HAVE_ALTIVEC
if (c->flags & SWS_CPU_CAPS_ALTIVEC)
ff_yuv2rgb_init_tables_altivec(c, inv_table, brightness, contrast, saturation);
#endif
return 0;
}
| 1threat
|
Convert YYYYMMDD to Unix time in Go : <p>I have a form input where I figure it would be easiest for the user to simply insert date as YYYYMMDD, so I was wondering how I should go about converting that user input to Unix time?</p>
<pre><code>import "time"
func SomeFormPOST(w http.ResponseWriter, r *http.Request) {
err := r.ParseForm()
// err handling
date := r.FormValue("date")
unixDate := date.DOWHAT.Unix()
}
</code></pre>
<p>I think maybe I need to use <code>t, _ = time.Parse(...)</code> but not haven't been able to figure it out..</p>
| 0debug
|
SpringBoot unknown property in application.properties : <p>I've generated a Spring Boot web application using Spring Initializr, using embedded Tomcat + Thymeleaf template engine.</p>
<p>I put this property in my application.properties</p>
<pre><code>default.to.address=nunito.calzada@gmail.com
</code></pre>
<p>I am using Spring Tool Suite Version: 3.8.4.RELEASE as a development environment, but I got this warning in the Editor <code>'default.to.address' is an unknown property.</code></p>
<p>Should I put this property in another property file ?</p>
| 0debug
|
Lambda function within VPC doesn't have access to public Internet : <p>I am trying to make an outbound API request to a third-party service from within a Lambda function, but the function always times out without any error.</p>
<p>This previously happened when trying to perform a <code>s3.putObject</code> operation within a different function (still within the same VPC / subnets), and I managed to get around that by adding an Endpoint with a service name <code>com.amazonaws.us-east-1.s3</code> and connecting it to the route table that is associated with the VPC that this Lambda function resides in.</p>
<p>Within the Lambda dashboard inside Network box -> Security Groups section, I see this warning:</p>
<blockquote>
<p>When you enable VPC, your Lambda function will lose default internet
access. If you require external internet access for your function,
ensure that your security group allows outbound connections and that
your VPC has a NAT gateway.</p>
</blockquote>
<p>I believe that this security group allows outbound connections, based off of the Outbound rules table right underneath:</p>
<p><a href="https://i.stack.imgur.com/tqLOC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tqLOC.png" alt="enter image description here"></a></p>
<p>For that second requirement, I can confirm this VPC has a NAT gateway, because on the VPC Dashboard, within NAT Gateways tab, the one that appears there has a VCP associated with it, and that VPC is the same one hosting the Lambda function.</p>
<p>I followed a guide to create a <a href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/flow-logs.html#flow-logs-basics" rel="noreferrer">Flow Log</a> to monitor traffic in and out of the VPC, hoping to see that those outbound requests are indeed rejected. However, after doing so and inspecting the CloudWatch logs, all of the records end in either <code>ACCEPT OK</code> or <code>NODATA</code>.</p>
<p><a href="https://aws.amazon.com/premiumsupport/knowledge-center/internet-access-lambda-function/" rel="noreferrer">How can I grant internet access to my VPC Lambda function?</a> is the guide I originally tried to follow, but I got stuck on step 4 under <code>To create a public or private subnet</code>:</p>
<blockquote>
<ol start="4">
<li><p>From the Change to: drop-down menu, choose an appropriate route table:
For a private subnet, the default route should point to a NAT gateway
or NAT instance:</p>
<p>Destination: 0.0.0.0/0
Target: nat-… (or eni-…)
For a public subnet,
the default route should point to an internet gateway:</p>
<p>Destination: 0.0.0.0/0
Target: igw-…</p></li>
</ol>
</blockquote>
<p>For all four of the subnets within this VPC, clicking the drop-down to the right of <code>Change to:</code> only showed one option, the one already selected, <code>rtb-xxxxxxxx</code>. After clicking on the link to that route table, and clicking the Routes tab next to Summary, I see this:</p>
<p><a href="https://i.stack.imgur.com/KbkMd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/KbkMd.png" alt="enter image description here"></a></p>
<p>What might I be doing wrong that is blocking the Lambda function's access to the Internet?</p>
| 0debug
|
Transpose in Pandas PYTHON : I imported the data from csv file with pandas. I want to split the column which includes 50 (0 to 49) values into 5 rows each having ten values. Can anyone tell me how i can do this transpose in form of pandas frame?
| 0debug
|
av_cold void ff_h264_free_context(H264Context *h)
{
int i;
free_tables(h);
for(i = 0; i < MAX_SPS_COUNT; i++)
av_freep(h->sps_buffers + i);
for(i = 0; i < MAX_PPS_COUNT; i++)
av_freep(h->pps_buffers + i);
}
| 1threat
|
How to extract a single datapoint from multiple CSV files to a new file : I have hundreds of CSV files on my disk, and one file added daily and I want to extract one data point (value) from each of them and put them in a new file. Then I want to daily add values to that same file. CSV files looks like this:
business_day,commodity,total,delivery,total_lots
.
.
20160831,CTC,,201710,10
20160831,CTC,,201711,10
20160831,CTC,,201712,10
20160831,CTC,Total,,385
20160831,HTC,,201701,30
20160831,HTC,,201702,30
.
.
I want to fetch the row that contains 'Total' from each file. The new file should look like:
business_day,commodity,total,total_lots
20160831,CTC,Total,385
20160901,CTC,Total,555
.
.
The raw files on my disk are named '20160831_foo.CSV', '20160901_foo.CSV etc..
After Googling this I have yet not seen any examples on how to extract only one value from a CSV file. Any hints/help much appreciated. Happy to use pandas if that makes life easier.
| 0debug
|
Inserting a chat message into a database : <p>So I use the following line of code to insert a chat message into my MySQL database: </p>
<pre><code>$this->db->query("INSERT INTO group_messages (group_message_text,group_message_group_id,group_message_user_id) VALUES ('$message','$group_id','$user_id');");
</code></pre>
<p>This works great until the users tries to use characters like ' or emoji's. How do I handle that properly? </p>
| 0debug
|
What is nuget props file and what is its used for? : <p>I have looking around and reading a lot but couldnt find a definitive answer that would explain as to what "nuget.props" file is and what is it used for ?</p>
<p>Any explanation and maybe with some example would be helpful ?</p>
| 0debug
|
Can anyone help me to explain how to complete this function ? And how to understand "SomeInts Int Ints"? : [I cant understand what is 'SomeInts Int Ints' so can someone help me out ? Thannnnnnnnnnnnks][1]
[1]: https://i.stack.imgur.com/fD79d.png
| 0debug
|
When I try to apply a certain git stash in VS2019, I get an error saying there are uncommitted changes (there aren't) and only one file is applied : <blockquote>
<p>Git operation failed because there are uncommitted changes. Commit or undo your changes before retrying. See the Output window for details.</p>
</blockquote>
<p>However there are no uncommitted changes. One file that was added is restored from the stash, but that's it - the rest of them are stuck in limbo.</p>
<p>How can I get the rest of my files from the stash? (Short of opening them one by one and copypastaing them into my project...)</p>
| 0debug
|
Moving values in a column to a specific row. : I have datasett in my bachelor thesis.
This is just a short verson the dataset (still to much to post it here, sorry),
but the case is, I have to make a list for each year with "return12" for year 9 compared to the "SROE"-value for year 8, Return12 year 10 with SROE for year 9, etc.
The company ID is in the second column and have to match the SROE and Return12, so the companys dont get mixed up.
I have tried with some different functions, but its does not solve my case.
Hope someone can give me a little hint!
Thank you!
` id year SROE Return12 OSEBXr12
1814 166 15 21.06345172 -0.160281717 -0.059150
582 53 15 13.32248824 0.101805502 -0.059150
868 79 15 9.45765120 0.916125271 -0.059150
395 36 15 8.91144364 -0.046316276 -0.059150
318 29 15 6.87606276 -0.177370031 -0.059150
1286 118 15 6.75801735 1.069037413 -0.059150
329 30 15 6.44705341 0.398571429 -0.059150
1319 121 15 6.40374891 0.617598303 -0.059150
956 88 15 6.38674853 1.382978723 -0.059150
373 34 15 6.24516436 -0.057201646 -0.059150
1154 106 15 5.94762885 0.289787481 -0.059150
626 57 15 5.13702836 0.110565500 -0.059150
1539 141 15 5.06195259 -0.235493373 -0.059150
1704 156 15 4.96444477 0.381119862 -0.059150
967 89 15 4.49788681 -0.168720150 -0.059150
1451 133 15 4.16517045 0.291875733 -0.059150
1803 165 15 3.84209438 0.258043950 -0.059150
197 18 15 3.79648512 -0.111447964 -0.059150
1528 140 15 3.55027135 0.426369168 -0.059150
1737 159 15 3.43669721 0.413409961 -0.059150
241 22 15 3.12265152 -0.677819083 -0.059150
54 5 15 2.99865083 0.594527262 -0.059150
1660 152 15 2.98208332 -0.116092772 -0.059150
1693 155 15 2.72894105 0.315186197 -0.059150
1055 97 15 2.59080259 -0.288888889 -0.059150
1011 93 15 2.52560311 -0.245794393 -0.059150
989 91 15 2.37809304 0.006064505 -0.059150
450 41 15 2.34690356 0.012987013 -0.059150
1770 162 15 2.32962182 -0.223670187 -0.059150
802 73 15 2.28667081 0.120406075 -0.059150
1462 134 15 2.24283341 -0.028824886 -0.059150
549 50 15 2.15182069 -0.468315301 -0.059150
285 26 15 2.08732229 -0.271859964 -0.059150
10 1 15 1.97156443 0.482100054 -0.059150
340 31 15 1.93518075 0.899027442 -0.059150
1176 108 15 1.92194207 -0.139118199 -0.059150
1066 98 15 1.84783091 0.389512481 -0.059150
1748 160 15 1.83224060 -0.043163852 -0.059150
1781 163 15 1.80810900 -0.130968785 -0.059150
1407 129 15 1.76854453 0.548725101 -0.059150
208 19 15 1.71286374 0.280728627 -0.059150
824 75 15 1.60228776 0.279648956 -0.059150
1132 104 15 1.55899607 0.768918919 -0.059150
703 64 15 1.53559636 -0.772245890 -0.059150
43 4 15 1.53499544 0.692307692 -0.059150
1352 124 15 1.51347913 -0.537500000 -0.059150
1198 110 15 1.49695624 0.277698086 -0.059150
120 11 15 1.44169619 1.032124757 -0.059150
1550 142 15 1.43922411 -0.075267137 -0.059150
406 37 15 1.43645465 -0.661764706 -0.059150
263 24 15 1.40896986 -0.440000000 -0.059150
1297 119 15 1.39968959 0.005263158 -0.059150
1363 125 15 1.37839665 -0.206253758 -0.059150
857 78 15 1.36001779 0.223417484 -0.059150
109 10 15 1.32579947 -0.289615397 -0.059150
186 17 15 1.31100145 0.184308881 -0.059150
912 84 15 1.30878950 -0.259685157 -0.059150
472 43 15 1.30834391 -0.153648794 -0.059150
659 60 15 1.30399083 0.112676367 -0.059150
1671 153 15 1.29325084 -0.270092033 -0.059150
1825 167 15 1.23598258 0.128611436 -0.059150
1594 146 15 1.22400548 0.497863248 -0.059150
758 69 15 1.21047789 0.287523953 -0.059150
1440 132 15 1.20156226 0.011987913 -0.059150
835 76 15 1.18580289 0.840000000 -0.059150
846 77 15 1.17520829 -0.459869848 -0.059150
1682 154 15 1.16911115 -0.532894737 -0.059150
615 56 15 1.16624567 0.047679182 -0.059150
1506 138 15 1.16262451 -0.587982833 -0.059150
813 74 15 1.15630435 -0.142465321 -0.059150
560 51 15 1.14421086 -0.342842083 -0.059150
681 62 15 1.14286094 0.086538462 -0.059150
1616 148 15 1.13999073 0.680258790 -0.059150
1077 99 15 1.11327454 -0.136842105 -0.059150
142 13 15 1.10908331 -0.143200645 -0.059150
274 25 15 1.09553083 -0.313725490 -0.059150
1330 122 15 1.04979784 0.033805889 -0.059150
362 33 15 1.04725763 -0.132558140 -0.059150
1209 111 15 1.02722876 -0.548148148 -0.059150
692 63 15 1.02647920 0.725768322 -0.059150
175 16 15 0.99187168 -0.396054628 -0.059150
1429 131 15 0.98206425 0.233683616 -0.059150
1605 147 15 0.97786358 -0.213469388 -0.059150
890 82 15 0.97771373 -0.653846154 -0.059150
1231 113 15 0.97322215 -0.511597374 -0.059150
780 71 15 0.95005051 1.476789384 -0.059150
1165 107 15 0.94223541 -0.295668550 -0.059150
1033 95 15 0.93440462 -0.353345780 -0.059150
1572 144 15 0.93264693 -0.029200673 -0.059150
1374 126 15 0.92729234 -0.635913313 -0.059150
1495 137 15 0.91475915 0.399845573 -0.059150
648 59 15 0.86536731 -0.742239807 -0.059150
1044 96 15 0.86369475 -0.691011236 -0.059150
1792 164 15 0.86246004 -0.429643121 -0.059150
714 65 15 0.85465118 -0.725639927 -0.059150
1484 136 15 0.84167952 -0.067357513 -0.059150
604 55 15 0.82344486 0.050573980 -0.059150
593 54 15 0.81699442 -0.054545455 -0.059150
527 48 15 0.81574188 -0.541223969 -0.059150
1308 120 15 0.78682497 0.090975610 -0.059150
164 15 15 0.75097824 0.113962960 -0.059150
1121 103 15 0.73844731 2.831560758 -0.059150
1649 151 15 0.72396064 -0.835227273 -0.059150
571 52 15 0.71393614 -0.670806343 -0.059150
153 14 15 0.71010885 0.199908967 -0.059150
637 58 15 0.70854122 -0.896969697 -0.059150
945 87 15 0.70774797 1.402923537 -0.059150
1473 135 15 0.70710688 -0.828676471 -0.059150
1110 102 15 0.69097013 -0.168269231 -0.059150
1396 128 15 0.68369318 0.250000000 -0.059150
1253 115 15 0.67988410 -0.365682093 -0.059150
1759 161 15 0.67049105 -0.367088608 -0.059150
65 6 15 0.66389168 -0.540526316 -0.059150
219 20 15 0.64685798 -0.721890547 -0.059150
252 23 15 0.62984681 -0.463291139 -0.059150
1726 158 15 0.61402854 -0.436956522 -0.059150
1418 130 15 -0.79965248 -0.478260870 -0.059150
1549 142 14 23.11684369 -0.178885860 0.112869
317 29 14 20.23086241 0.644505325 0.112869
1318 121 14 8.58091313 1.007734881 0.112869
988 91 14 7.90873362 -0.269991974 0.112869
867 79 14 6.44919884 0.275177305 0.112869
328 30 14 6.40544835 -0.059629331 0.112869
1175 108 14 6.32482120 0.540399113 0.112869
1351 124 14 5.50407132 0.000000000 0.112869
1538 141 14 5.46883066 -0.179431025 0.112869
581 53 14 5.14092813 0.250627538 0.112869
1527 140 14 4.68597924 -0.071334648 0.112869
790 72 14 4.27448237 0.044596913 0.112869
240 22 14 3.72618752 -0.489240506 0.112869
1307 120 14 3.65873267 -0.125047671 0.112869
1505 138 14 3.62463735 -0.107279693 0.112869
9 1 14 3.60998039 0.042533569 0.112869
1285 118 14 3.59967078 -0.431940200 0.112869
196 18 14 3.56824369 0.612544044 0.112869
1692 155 14 3.37111155 0.194139194 0.112869
339 31 14 3.07045337 0.698513384 0.112869
1747 160 14 3.00051614 0.290793547 0.112869
1670 153 14 2.99930554 0.157513854 0.112869
801 73 14 2.98911215 0.056882806 0.112869
1593 146 14 2.97564257 -0.372822300 0.112869
1659 152 14 2.87893104 0.340008624 0.112869
1373 126 14 2.65668093 -0.350949463 0.112869
1197 110 14 2.61785580 0.233531310 0.112869
1703 156 14 2.60464237 0.181673156 0.112869
1769 162 14 2.57249329 -0.213467753 0.112869
53 5 14 2.43112019 0.332925097 0.112869
1131 104 14 2.42196540 0.075172554 0.112869
1736 159 14 2.39665786 0.767601043 0.112869
636 58 14 2.31838774 -0.550000000 0.112869
284 26 14 2.17325240 -0.390076974 0.112869
262 24 14 2.15494774 -0.393939394 0.112869
1516 139 14 2.12650027 -0.437762869 0.112869
1010 93 14 2.00163574 0.789297659 0.112869
372 34 14 1.95460996 0.435506242 0.112869
548 50 14 1.95355193 -0.680153093 0.112869
1076 99 14 1.91838973 0.490926925 0.112869
1450 133 14 1.82737021 0.193544383 0.112869
460 42 14 1.78104084 -0.418705036 0.112869
1153 106 14 1.77902235 0.399846259 0.112869
1813 166 14 1.77211578 0.612540666 0.112869
185 17 14 1.76411747 0.363361388 0.112869
680 62 14 1.72407748 -0.460580913 0.112869
691 63 14 1.71478535 -0.364864865 0.112869
1494 137 14 1.69161571 0.106408757 0.112869
614 56 14 1.65779152 0.084792900 0.112869
1780 163 14 1.62571349 -0.230977814 0.112869
702 64 14 1.62480728 -0.512077295 0.112869
1208 111 14 1.59762131 -0.560260586 0.112869
592 54 14 1.59175502 -0.316087737 0.112869
735 67 14 1.44799035 -0.155844156 0.112869
273 25 14 1.43157370 0.280334728 0.112869
1406 129 14 1.42599186 0.694259743 0.112869
559 51 14 1.41919468 -0.374564480 0.112869
42 4 14 1.40889942 0.090621089 0.112869
97 9 14 1.40809834 -0.439447147 0.112869
207 19 14 1.40806506 0.306086405 0.112869
394 36 14 1.39957200 0.086343404 0.112869
405 37 14 1.39021190 -0.165848871 0.112869
526 48 14 1.35374016 -0.713503901 0.112869
163 15 14 1.34048347 -0.411522634 0.112869
1571 144 14 1.32108835 -0.082097870 0.112869
1725 158 14 1.31531715 -0.252032520 0.112869
625 57 14 1.31394786 0.171449830 0.112869
658 60 14 1.31200671 -0.240147697 0.112869
1054 97 14 1.31136914 -0.566265060 0.112869
1461 134 14 1.26710097 -0.410000000 0.112869
1065 98 14 1.26289838 0.747161593 0.112869
1758 161 14 1.26275618 0.519879889 0.112869
1164 107 14 1.23857503 0.234883721 0.112869
449 41 14 1.23381575 0.247141768 0.112869
823 75 14 1.23084920 0.505203218 0.112869
1043 96 14 1.19762524 0.311233886 0.112869
779 71 14 1.19489416 -0.061111111 0.112869
75 7 14 1.18112630 -0.057826087 0.112869
856 78 14 1.11758807 0.568019472 0.112869
416 38 14 1.10565310 -0.661290323 0.112869
944 87 14 1.08837331 1.441337890 0.112869
1296 119 14 1.03762698 0.478599222 0.112869
812 74 14 0.98145205 -0.151996606 0.112869
1604 147 14 0.97324462 -0.218089603 0.112869
570 52 14 0.91405742 -0.240557389 0.112869
966 89 14 0.90857225 0.015850587 0.112869
834 76 14 0.90626954 0.351351351 0.112869
603 55 14 0.90553614 0.120000000 0.112869
1681 154 14 0.90081211 0.032258065 0.112869
218 20 14 0.87615674 -0.359872611 0.112869
1483 136 14 0.87269220 -0.077086255 0.112869
1362 125 14 0.85469080 -0.389500734 0.112869
119 11 14 0.83707515 0.777252896 0.112869
911 84 14 0.82895276 -0.295532646 0.112869
1648 151 14 0.82599899 -0.200000000 0.112869
1252 115 14 0.82477468 -0.329849570 0.112869
1472 135 14 0.82033134 2.177570093 0.112869
1230 113 14 0.81397746 -0.556864986 0.112869
889 82 14 0.81389255 -0.428571429 0.112869
1439 132 14 0.77224072 0.378296306 0.112869
427 39 14 0.74909867 -0.315168827 0.112869
757 69 14 0.72448797 0.024644523 0.112869
152 14 14 0.70740409 -0.442857143 0.112869
1395 128 14 0.68401333 -0.118942731 0.112869
1186 109 14 0.66692557 0.205473743 0.112869
669 61 14 0.66651108 -0.411764706 0.112869
316 29 13 27.67796398 0.475557461 0.150159
1493 137 13 13.56200755 0.045216461 0.150159
1746 160 13 10.99968277 0.051940109 0.150159
1768 162 13 7.53413090 0.213153491 0.150159
239 22 13 6.95310312 0.046357616 0.150159
327 30 13 6.34254755 0.296625222 0.150159
1372 126 13 5.45573520 0.332028548 0.150159
1537 141 13 4.60641610 0.489180155 0.150159
789 72 13 4.34881818 2.761290323 0.150159
558 51 13 4.08086211 -0.043070363 0.150159
1306 120 13 4.07077399 0.099983769 0.150159
547 50 13 4.03234457 -0.061875401 0.150159
1702 156 13 3.95355025 0.181487296 0.150159
1548 142 13 3.89783966 -0.137992832 0.150159
8 1 13 3.80333107 0.220912940 0.150159
1174 108 13 3.77325183 0.147305733 0.150159
800 73 13 3.70624126 0.011274207 0.150159
1669 153 13 3.61855059 -0.172420877 0.150159
987 91 13 3.39669062 0.741665461 0.150159
690 63 13 3.39536421 4.414634146 0.150159
1735 159 13 3.19989358 0.082035101 0.150159
1185 109 13 2.84971719 1.499371647 0.150159
580 53 13 2.75702524 0.503066618 0.150159
1042 96 13 2.70983419 0.378172589 0.150159
1658 152 13 2.70327736 0.131344886 0.150159
195 18 13 2.69289531 0.042694820 0.150159
283 26 13 2.66181946 -0.081758086 0.150159
866 79 13 2.51063140 0.072275199 0.150159
1779 163 13 2.44508433 0.179777004 0.150159
613 56 13 2.43963461 0.013710104 0.150159
52 5 13 2.35899802 0.332536076 0.150159
1075 99 13 2.16278220 0.224624625 0.150159
1570 144 13 2.06554782 0.074010846 0.150159
525 48 13 2.03023407 -0.038518650 0.150159
1504 138 13 1.98459096 0.167515938 0.150159
1812 166 13 1.91311640 -0.066946965 0.150159
151 14 13 1.90382668 0.093750000 0.150159
338 31 13 1.84584193 0.091777983 0.150159
591 54 13 1.80853387 0.203619909 0.150159
272 25 13 1.78598713 1.728310502 0.150159
184 17 13 1.76112921 0.009867010 0.150159
1009 93 13 1.74752529 0.980132450 0.150159
1691 155 13 1.67190657 -0.197058824 0.150159
118 11 13 1.65524659 0.278160919 0.150159
437 40 13 1.61806035 0.014064277 0.150159
811 74 13 1.58880643 -0.153717037 0.150159
63 6 13 1.58381410 -0.165931982 0.150159
448 41 13 1.58348698 -0.090444673 0.150159
1592 146 13 1.57872558 0.332024277 0.150159
1724 158 13 1.55216473 -0.247964202 0.150159
1284 118 13 1.52735674 11.877689760 0.150159
1251 115 13 1.48634481 -0.318053446 0.150159
1130 104 13 1.46625297 2.543506189 0.150159
404 37 13 1.46229134 1.193756728 0.150159
1361 125 13 1.42651972 1.569811321 0.150159
1086 100 13 1.38033411 -0.930241731 0.150159
668 61 13 1.37085612 0.422074816 0.150159
569 52 13 1.34391491 0.158614113 0.150159
1438 132 13 1.34255306 0.693896980 0.150159
1317 121 13 1.34071609 0.732839506 0.150159
96 9 13 1.33847231 -0.259324009 0.150159
1614 148 13 1.31243851 0.120572362 0.150159
1603 147 13 1.30535127 0.085560151 0.150159
1229 113 13 1.25070855 -0.050632911 0.150159
1053 97 13 1.23077193 -0.135416667 0.150159
855 78 13 1.23018452 0.366298881 0.150159
217 20 13 1.22733648 -0.071005917 0.150159
1328 122 13 1.21687585 -0.146341463 0.150159
459 42 13 1.21666304 -0.379464286 0.150159
1163 107 13 1.21262434 0.137566138 0.150159
965 89 13 1.18173008 0.858823529 0.150159
206 19 13 1.16441222 0.208124942 0.150159
943 87 13 1.14644451 -0.767595508 0.150159
679 62 13 1.14255503 0.532591415 0.150159
1757 161 13 1.13108091 -0.477468616 0.150159
1647 151 13 1.12639353 1.244897959 0.150159
701 64 13 1.11588786 -0.577551020 0.150159
778 71 13 1.10966802 -0.090909091 0.150159
371 34 13 1.06990074 0.665256076 0.150159
1295 119 13 1.02445843 -0.284122563 0.150159
734 67 13 1.00937090 -0.478555305 0.150159
1449 133 13 0.99690576 -0.016393442 0.150159
261 24 13 0.99320149 -0.423580786 0.150159
1196 110 13 0.95969164 0.062824513 0.150159
1482 136 13 0.95074932 0.033018868 0.150159
822 75 13 0.92045109 0.259812898 0.150159
1526 140 13 0.91234577 0.362339810 0.150159
1207 111 13 0.90909480 0.100358423 0.150159
1405 129 13 0.90775970 0.475961538 0.150159
657 60 13 0.90306208 3.213508197 0.150159
602 55 13 0.86449560 0.999999999 0.150159
183 17 12 12.19940204 0.008113526 0.172201
1492 137 12 9.88702902 0.092625661 0.172201
194 18 12 8.51621898 0.228817367 0.172201
546 50 12 6.80902674 0.305842246 0.172201
1536 141 12 5.96245535 0.167890067 0.172201
326 30 12 5.95646725 -0.018736383 0.172201
1811 166 12 5.81124269 0.268209538 0.172201
1371 126 12 5.51770644 0.189542484 0.172201
392 36 12 4.50167386 0.269362552 0.172201
447 41 12 4.21790966 -0.091686379 0.172201
216 20 12 4.15954590 -0.417241379 0.172201
557 51 12 4.15186011 0.208791209 0.172201
799 73 12 3.65748981 0.149911331 0.172201
1547 142 12 3.38614688 0.861518705 0.172201
1569 144 12 3.14547059 0.034114646 0.172201
1503 138 12 3.08482928 0.108910891 0.172201
1173 108 12 2.98874897 0.144519795 0.172201
524 48 12 2.96726211 -0.106050749 0.172201
1668 153 12 2.82006942 0.445982767 0.172201
568 52 12 2.78044947 0.252641825 0.172201
1646 151 12 2.73729474 0.447373101 0.172201
1305 120 12 2.66133730 0.095990358 0.172201
51 5 12 2.62860138 0.453081557 0.172201
62 6 12 2.58973221 0.733007177 0.172201
1734 159 12 2.54991113 0.148192719 0.172201
986 91 12 2.50720858 -0.142857143 0.172201
1591 146 12 2.48325687 -0.034137931 0.172201
1745 160 12 2.47639237 -0.089179887 0.172201
612 56 12 2.46973545 0.172545127 0.172201
1657 152 12 2.45588097 0.324941037 0.172201
238 22 12 2.45041065 -0.460714286 0.172201
1008 93 12 2.38060628 -0.174863388 0.172201
304 28 12 2.38003456 0.366390417 0.172201
689 63 12 2.35868026 -0.250000000 0.172201
282 26 12 2.21960529 0.154440154 0.172201
579 53 12 2.20123380 0.352456021 0.172201
865 79 12 2.13139273 0.154602047 0.172201
40 4 12 2.08207931 -0.016197073 0.172201
964 89 12 2.07859137 0.053780182 0.172201
1767 162 12 1.97715726 0.626024053 0.172201
1294 119 12 1.85382604 -0.028205128 0.172201
1283 118 12 1.83548975 1.479564033 0.172201
656 60 12 1.79853322 0.837349397 0.172201
271 25 12 1.76021383 -0.354611726 0.172201
590 54 12 1.69943635 -0.059671471 0.172201
1701 156 12 1.68628544 0.106797253 0.172201
1690 155 12 1.65291529 -0.096632588 0.172201
7 1 12 1.65211344 0.140809487 0.172201
1074 99 12 1.64881940 1.134615385 0.172201
1327 122 12 1.57204072 -0.132275132 0.172201
1261 116 12 1.56805209 -0.303030303 0.172201
1041 96 12 1.54257211 -0.428985507 0.172201
667 61 12 1.51717722 -0.136690647 0.172201
810 74 12 1.50738969 0.341888698 0.172201
95 9 12 1.50651922 -0.041340782 0.172201
1778 163 12 1.48473960 0.302116311 0.172201
161 15 12 1.43426560 0.150862069 0.172201
700 64 12 1.43398480 -0.579232099 0.172201
1360 125 12 1.40030030 -0.735612579 0.172201
1184 109 12 1.32326647 0.180575205 0.172201
1316 121 12 1.30587844 0.250000000 0.172201
920 85 12 1.28268472 0.102362205 0.172201
1228 113 12 1.26764800 -0.159574468 0.172201
1712 157 12 1.23739802 0.329823748 0.172201
403 37 12 1.23470156 0.140577041 0.172201
205 19 12 1.22583617 0.270007622 0.172201
1756 161 12 1.22561713 -0.900392157 0.172201
150 14 12 1.12110726 0.015873016 0.172201
117 11 12 1.08773604 0.087500000 0.172201
1679 154 12 1.01730540 0.273743017 0.172201
1085 100 12 0.99614726 -0.166723569 0.172201
733 67 12 0.97046135 -0.439240506 0.172201
755 69 12 0.95406148 -0.279629630 0.172201
821 75 12 0.92934814 0.729949635 0.172201
854 78 12 0.92924014 0.717964824 0.172201
942 87 12 0.92652589 -0.818032787 0.172201
1129 104 12 0.91253834 0.007936508 0.172201
1602 147 12 0.90914950 0.281739130 0.172201
1404 129 12 0.90468701 0.625000000 0.172201
1030 95 12 0.89828972 -0.130977229 0.172201
73 7 12 0.88164808 0.494091309 0.172201
1107 102 12 0.87885010 0.020431646 0.172201
1437 132 12 0.87071649 0.336884800 0.172201
1052 97 12 0.86737375 -0.587002557 0.172201
777 71 12 0.83710890 0.119688299 0.172201
348 32 12 0.82375721 -0.643449133 0.172201
458 42 12 0.81877908 -0.321212121 0.172201
337 31 12 0.81128328 -0.149206441 0.172201
1063 98 12 0.79934806 1.473684210 0.172201
678 62 12 0.79695044 -0.140710383 0.172201
249 23 12 0.79493117 0.318363273 0.172201
1723 158 12 0.78859160 0.429162228 0.172201
370 34 12 0.78024017 0.066666667 0.172201
436 40 12 0.77619489 0.129891304 0.172201
601 55 12 0.77193287 1.220248668 0.172201
139 13 12 -3.32258505 1.585585585 0.172201
578 53 11 45.76543378 0.228037564 -0.076420
182 17 11 11.61880543 0.092649764 -0.076420
1491 137 11 11.10701743 -0.099834528 -0.076420
1667 153 11 10.52229111 0.116544776 -0.076420
1106 102 11 9.11660210 -0.163753237 -0.076420
985 91 11 6.73195560 -0.561824388 -0.076420
193 18 11 6.11699997 0.039019964 -0.076420
1535 141 11 6.06085500 -0.413730672 -0.076420
303 28 11 5.95462907 -0.139209467 -0.076420
50 5 11 5.63631194 0.148517965 -0.076420
325 30 11 4.70780092 0.348885348 -0.076420
963 89 11 3.42521562 -0.080424577 -0.076420
798 73 11 3.39272134 -0.051378752 -0.076420
1744 160 11 3.03847970 -0.091287843 -0.076420
61 6 11 2.96322084 -0.215844382 -0.076420
1733 159 11 2.87609409 -0.130428605 -0.076420
160 15 11 2.86881209 -0.292682927 -0.076420
94 9 11 2.54069565 2.162544170 -0.076420
545 50 11 2.50990774 -0.033396566 -0.076420
1689 155 11 2.34290938 0.311896826 -0.076420
1656 152 11 2.29133789 0.118316301 -0.076420
611 56 11 2.19636482 -0.335638698 -0.076420
589 54 11 2.19581833 -0.253275109 -0.076420
1590 146 11 2.16014050 -0.348423877 -0.076420
281 26 11 2.09792109 -0.213768116 -0.076420
1502 138 11 2.08817684 0.068783069 -0.076420
864 79 11 2.05294729 -0.062938980 -0.076420
248 23 11 2.05179688 -0.296842105 -0.076420
6 1 11 1.98610066 -0.365344741 -0.076420
1172 108 11 1.86819779 -0.097636799 -0.076420
116 11 11 1.82851695 -0.284436228 -0.076420
1810 166 11 1.75851688 -0.260376164 -0.076420
1568 144 11 1.74672801 0.097011298 -0.076420
204 19 11 1.68777151 -0.416080308 -0.076420
1645 151 11 1.68005446 -0.540000000 -0.076420
391 36 11 1.61064785 -0.184871744 -0.076420
446 41 11 1.52375216 -0.135309245 -0.076420
1700 156 11 1.52348562 0.155791335 -0.076420
1128 104 11 1.50795925 -0.045454545 -0.076420
1546 142 11 1.50634306 1.017021276 -0.076420
1051 97 11 1.46633126 -0.464692483 -0.076420
1304 120 11 1.46249821 0.043560606 -0.076420
1326 122 11 1.43587335 0.125000000 -0.076420
270 25 11 1.42570485 -0.281250000 -0.076420
1007 93 11 1.40832289 -0.170318258 -0.076420
820 75 11 1.35452065 -0.432659647 -0.076420
369 34 11 1.31666123 -0.375000000 -0.076420
1601 147 11 1.31193259 0.244933411 -0.076420
1403 129 11 1.29946491 -0.471343246 -0.076420
556 51 11 1.28903970 -0.213177517 -0.076420
853 78 11 1.27235228 -0.444786553 -0.076420
1755 161 11 1.26301155 0.853197674 -0.076420
237 22 11 1.25496888 -0.496402878 -0.076420
941 87 11 1.23050445 -0.227848101 -0.076420
1766 162 11 1.19046710 -0.155750557 -0.076420
567 52 11 1.18480736 0.004008746 -0.076420
1777 163 11 1.13617940 -0.100416011 -0.076420
655 60 11 1.11783748 -0.520271663 -0.076420
1227 113 11 1.11366867 -0.262745098 -0.076420`
| 0debug
|
else and elif statements result in if statement : <p>hello I am new to python coding and am wondering why whatever is inputted it results in the if statement.</p>
<pre><code>def opnbx():
opn = input("in frount of you is a box do you open it? ")
if opn == "yes" or "Y" or "y" or "Yes":
print("you open the box")
elif opn == "no" or "No" or "N" or "n":
print("you ignore the box and move on")
else:
print("please repeat...")
opnbx()
opnbx()
</code></pre>
| 0debug
|
void nbd_client_session_detach_aio_context(NbdClientSession *client)
{
aio_set_fd_handler(bdrv_get_aio_context(client->bs), client->sock,
NULL, NULL, NULL);
}
| 1threat
|
static int mp_pacl_setxattr(FsContext *ctx, const char *path, const char *name,
void *value, size_t size, int flags)
{
char buffer[PATH_MAX];
return lsetxattr(rpath(ctx, path, buffer), MAP_ACL_ACCESS, value,
size, flags);
}
| 1threat
|
What will be the output of String.substring(String.length) : public class Str {
public static void main(String[] args) {
String str = "abced";
String s = str.substring(str.length());
System.out.println(s);
}
}
index of character 'e' is 4 but i am trying to get whole String from length 5 ,if i execute the above code, why it is not throwing the indexOutOfBounds exception.
| 0debug
|
Getting wrong result in sqlserver : I have two tables first one <pre>Fee_Payable_to_Students</pre> and another one <pre>Fee_Assign_Waiver_to_Students</pre>
it contains value as
<pre>Fee_Payable_to_Students</pre>
<pre>
f_co |S_Adm_No | apr | may | june | jul | aug | sep | oct | nov | dec | jan | feb | mar
1 |s_1 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5
2 |s_1 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5
</pre>
<pre>Fee_Assign_Waiver_to_Students</pre>
<pre>
f_co|S_Adm_No | apr | may | june | jul | aug | sep | oct | nov | dec | jan | feb | mar
1 |s_1 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 5
</pre>
I want to view my result as
<pre>
S_Adm_No | Installment | Amount |Payable_Date
s_1 |Quarter-1 (April, May & June) | 5 |Apr 15, 2018
s_1 |Quarter-2 (July, August & September) | 5 |Jul 15, 2018
s_1 |Quarter-3 (October, November & December) | 5 |Oct 15, 2018
s_1 |Quarter-4 (January, February & March) | 5 |Jan 15, 2019
</pre>
my sql query is here................
<pre>BEGIN
SELECT unPvt.S_Adm_No, Installment,
sum(Amount) AS Amount, CASE
WHEN Installment = 'Quarter-1 (April, May & June)' THEN 'Apr 15, 2018'
WHEN Installment = 'Quarter-2 (July, August & September)' THEN 'Jul 15, 2018'
WHEN Installment = 'Quarter-3 (October, November & December)' THEN 'Oct 15, 2018'
WHEN Installment = 'Quarter-4 (January, February & March)' THEN 'Jan 15, 2019' END AS Payable_Date
FROM ( SELECT pc.S_Adm_No,
(Apr + May + Jun)-COALESCE(CON.Qa1,0) AS [Quarter-1 (April, May & June)],
(Jul + Aug + Sep)-COALESCE(CON.Qa2,0) AS [Quarter-2 (July, August & September)],
(Oct + Nov + Dec)-COALESCE(CON.Qa3,0) AS [Quarter-3 (October, November & December)],
(Jan + Feb + Mar)-COALESCE(CON.Qa4,0) AS [Quarter-4 (January, February & March)]
FROM Fee_Payable_to_Students pc
LEFT JOIN
(
SELECT S_Adm_no,
sum(E_Apr+E_May+E_Jun) Qa1,
sum(E_Jul+E_Aug+E_Sep) Qa2,
sum(E_Oct+E_Nov+E_Dec) Qa3,
sum(E_Jan+E_Feb+E_Mar) Qa4
FROM Fee_Assign_Waiver_to_Students w
group by S_Adm_No
) AS CON ON pc.S_Adm_no = CON.S_Adm_no
where pc.S_Adm_No=s_1) AS Pvt UNPIVOT
(Amount FOR Installment IN
([Quarter-1 (April, May & June)],
[Quarter-2 (July, August & September)],
[Quarter-3 (October, November & December)],
[Quarter-4 (January, February & March)])) AS unPvt
GROUP BY unPvt.S_Adm_No,unPvt.Installment</pre>
| 0debug
|
A Batch Script To Resize Images : <p>I'm looking for some help in writing a batch script to resize a bunch of .jpg images. </p>
<p>I don't have much experience with batch scripts. But this task will be preformed on a windows machine & so I thought a batch script might be a good way to go.</p>
<p>I'm always interested in hearing alternative ideas & approaches, or being made aware of elements I haven't thought of. </p>
<p>Below I have listed the basic steps/needs of the script:</p>
<pre><code>1) The images are located in a folder & are all(or should be) 500 x
500.
2) I need copy & past the images to a new folder, where they will be
resized to 250 x 250.
3) I then need to repeat step 2 but this time resize to 125 x 125.
</code></pre>
| 0debug
|
SQL Error(1166):Incorrect collumn name 'id' : Am new to yii and heidiSQL while am creating new table iget this error,so help me to slove this error
CREATE TABLE `users` (
`id ` INT(45) NULL,
`username ` VARCHAR(50) NULL,
`pwd_hash` VARCHAR(50) NULL,
`fname` VARCHAR(50) NULL,
`lname` VARCHAR(50) NULL,
`email` VARCHAR(50) NULL,
`country` VARCHAR(50) NULL,
`address` VARCHAR(50) NULL,
`gender` VARCHAR(50) NULL,
INDEX `PRIMARY KEY` (`id `),
INDEX `UIQUE KEY` (`username `)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB
;
It shows the SQL error so i can't able to create new table with in one database
Thanks Sandhiya!
| 0debug
|
How to create custom Toobar in android ..? : Hello everyone i need custom toolbar for my app can anyone help me to create like this Image.
[![enter image description here][1]][1]
**back Button in Left Title in Center and a Save Manu in Right.**
[1]: http://i.stack.imgur.com/XjfUH.png
| 0debug
|
Sublime text 3 how to hide Definition on mouse over function? : <p>I've tried to find a solution in other posts but no solution found.</p>
<p>I'm using Sublime text 3 and since I installed last update 3126, when I put my mouse over a function, in PHP ou Javascript, I get a list of all files using this function and it's useless for me and takes all place on my screen.</p>
<p>How can I hide this ?</p>
<p><a href="https://i.stack.imgur.com/MkWbK.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MkWbK.png" alt="Sublime Text 3 Definition mouse over function"></a></p>
<p>I'm using those Packages :</p>
<ul>
<li>alignment</li>
<li>compare side by side</li>
<li>Emmet</li>
<li>minifier</li>
<li>Sidebar</li>
<li>livereload</li>
<li>SFTP</li>
<li>Sublimelinter</li>
<li>colorpicker</li>
</ul>
<p>I love this tool but I need a bit more help to configure my own options.</p>
<p>Thanks for help !</p>
| 0debug
|
static av_cold int vpx_init(AVCodecContext *avctx,
const struct vpx_codec_iface *iface)
{
VP8Context *ctx = avctx->priv_data;
struct vpx_codec_enc_cfg enccfg = { 0 };
int res;
av_log(avctx, AV_LOG_INFO, "%s\n", vpx_codec_version_str());
av_log(avctx, AV_LOG_VERBOSE, "%s\n", vpx_codec_build_config());
if ((res = vpx_codec_enc_config_default(iface, &enccfg, 0)) != VPX_CODEC_OK) {
av_log(avctx, AV_LOG_ERROR, "Failed to get config: %s\n",
vpx_codec_err_to_string(res));
return AVERROR(EINVAL);
}
dump_enc_cfg(avctx, &enccfg);
enccfg.g_w = avctx->width;
enccfg.g_h = avctx->height;
enccfg.g_timebase.num = avctx->time_base.num;
enccfg.g_timebase.den = avctx->time_base.den;
enccfg.g_threads = avctx->thread_count;
if (ctx->lag_in_frames >= 0)
enccfg.g_lag_in_frames = ctx->lag_in_frames;
if (avctx->flags & CODEC_FLAG_PASS1)
enccfg.g_pass = VPX_RC_FIRST_PASS;
else if (avctx->flags & CODEC_FLAG_PASS2)
enccfg.g_pass = VPX_RC_LAST_PASS;
else
enccfg.g_pass = VPX_RC_ONE_PASS;
if (!avctx->bit_rate)
avctx->bit_rate = enccfg.rc_target_bitrate * 1000;
else
enccfg.rc_target_bitrate = av_rescale_rnd(avctx->bit_rate, 1, 1000,
AV_ROUND_NEAR_INF);
if (ctx->crf)
enccfg.rc_end_usage = VPX_CQ;
else if (avctx->rc_min_rate == avctx->rc_max_rate &&
avctx->rc_min_rate == avctx->bit_rate)
enccfg.rc_end_usage = VPX_CBR;
if (avctx->qmin > 0)
enccfg.rc_min_quantizer = avctx->qmin;
if (avctx->qmax > 0)
enccfg.rc_max_quantizer = avctx->qmax;
enccfg.rc_dropframe_thresh = avctx->frame_skip_threshold;
enccfg.rc_2pass_vbr_bias_pct = round(avctx->qcompress * 100);
enccfg.rc_2pass_vbr_minsection_pct =
avctx->rc_min_rate * 100LL / avctx->bit_rate;
if (avctx->rc_max_rate)
enccfg.rc_2pass_vbr_maxsection_pct =
avctx->rc_max_rate * 100LL / avctx->bit_rate;
if (avctx->rc_buffer_size)
enccfg.rc_buf_sz =
avctx->rc_buffer_size * 1000LL / avctx->bit_rate;
if (avctx->rc_initial_buffer_occupancy)
enccfg.rc_buf_initial_sz =
avctx->rc_initial_buffer_occupancy * 1000LL / avctx->bit_rate;
enccfg.rc_buf_optimal_sz = enccfg.rc_buf_sz * 5 / 6;
if (avctx->keyint_min >= 0 && avctx->keyint_min == avctx->gop_size)
enccfg.kf_min_dist = avctx->keyint_min;
if (avctx->gop_size >= 0)
enccfg.kf_max_dist = avctx->gop_size;
if (enccfg.g_pass == VPX_RC_FIRST_PASS)
enccfg.g_lag_in_frames = 0;
else if (enccfg.g_pass == VPX_RC_LAST_PASS) {
int decode_size, ret;
if (!avctx->stats_in) {
av_log(avctx, AV_LOG_ERROR, "No stats file for second pass\n");
return AVERROR_INVALIDDATA;
}
ctx->twopass_stats.sz = strlen(avctx->stats_in) * 3 / 4;
ret = av_reallocp(&ctx->twopass_stats.buf, ctx->twopass_stats.sz);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR,
"Stat buffer alloc (%zu bytes) failed\n",
ctx->twopass_stats.sz);
return ret;
}
decode_size = av_base64_decode(ctx->twopass_stats.buf, avctx->stats_in,
ctx->twopass_stats.sz);
if (decode_size < 0) {
av_log(avctx, AV_LOG_ERROR, "Stat buffer decode failed\n");
return AVERROR_INVALIDDATA;
}
ctx->twopass_stats.sz = decode_size;
enccfg.rc_twopass_stats_in = ctx->twopass_stats;
}
if (avctx->profile != FF_PROFILE_UNKNOWN)
enccfg.g_profile = avctx->profile;
else if (avctx->pix_fmt == AV_PIX_FMT_YUV420P)
avctx->profile = enccfg.g_profile = FF_PROFILE_VP9_0;
else
avctx->profile = enccfg.g_profile = FF_PROFILE_VP9_1;
enccfg.g_error_resilient = ctx->error_resilient;
dump_enc_cfg(avctx, &enccfg);
res = vpx_codec_enc_init(&ctx->encoder, iface, &enccfg, 0);
if (res != VPX_CODEC_OK) {
log_encoder_error(avctx, "Failed to initialize encoder");
return AVERROR(EINVAL);
}
av_log(avctx, AV_LOG_DEBUG, "vpx_codec_control\n");
if (ctx->cpu_used != INT_MIN)
codecctl_int(avctx, VP8E_SET_CPUUSED, ctx->cpu_used);
if (ctx->auto_alt_ref >= 0)
codecctl_int(avctx, VP8E_SET_ENABLEAUTOALTREF, ctx->auto_alt_ref);
if (ctx->arnr_max_frames >= 0)
codecctl_int(avctx, VP8E_SET_ARNR_MAXFRAMES, ctx->arnr_max_frames);
if (ctx->arnr_strength >= 0)
codecctl_int(avctx, VP8E_SET_ARNR_STRENGTH, ctx->arnr_strength);
if (ctx->arnr_type >= 0)
codecctl_int(avctx, VP8E_SET_ARNR_TYPE, ctx->arnr_type);
if (CONFIG_LIBVPX_VP8_ENCODER && iface == &vpx_codec_vp8_cx_algo) {
codecctl_int(avctx, VP8E_SET_NOISE_SENSITIVITY, avctx->noise_reduction);
codecctl_int(avctx, VP8E_SET_TOKEN_PARTITIONS, av_log2(avctx->slices));
}
#if FF_API_MPV_OPT
FF_DISABLE_DEPRECATION_WARNINGS
if (avctx->mb_threshold) {
av_log(avctx, AV_LOG_WARNING, "The mb_threshold option is deprecated, "
"use the static-thresh private option instead.\n");
ctx->static_thresh = avctx->mb_threshold;
}
FF_ENABLE_DEPRECATION_WARNINGS
#endif
codecctl_int(avctx, VP8E_SET_STATIC_THRESHOLD, ctx->static_thresh);
codecctl_int(avctx, VP8E_SET_CQ_LEVEL, ctx->crf);
vpx_img_wrap(&ctx->rawimg, ff_vpx_pixfmt_to_imgfmt(avctx->pix_fmt),
avctx->width, avctx->height, 1, (unsigned char *)1);
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame) {
av_log(avctx, AV_LOG_ERROR, "Error allocating coded frame\n");
vp8_free(avctx);
return AVERROR(ENOMEM);
}
return 0;
}
| 1threat
|
Can someone help me to understand in Python print(4 & 3)-->0 and print(5 & 4)--> 4? : <p>Can someone help me to understand in Python
print(4 & 3)-->0
and
print(5 & 4)--> 4?</p>
| 0debug
|
How to center Masonry Items? : <p>I have set up masonry to display items as such:</p>
<pre><code>$('#list').masonry({
itemSelector: '.propitem',
columnWidth: 230
});
</code></pre>
<p>This works, but all items (<code>.propitem</code>) float to the left. For example if my container <code>#list</code> is 600px wide there will be two columns to the left but a gap to the right of them where the remaining 140px is. I would like to center the 2 columns with a 70px 'margin' on either side.</p>
<p>I have tried using css to centre these, but had no luck, eg:</p>
<pre><code>#list {
text-align: center;
}
</code></pre>
<p>Would anyone know the correct way of achieving this?</p>
| 0debug
|
Get only numeric value keyword from edittext in android : <p>I want to open a only numeric keyword for input in edittext in android. </p>
| 0debug
|
Environment Variables TypeScript : <p>let's say I have a block of code that I'd like to only be present (or run) in a staging environment. I've set an environment variable in that enivronment (say, ENV = 'staging'), is there a way for TypeScript to access that variable during compilation?</p>
<p>example: </p>
<p><code>if (Enivronment['ENV'] == 'staging') console.log('testing');</code></p>
<p>which would compile to (the redundant, but efffective) <code>if ('staging' == 'staging') ...</code> on the above environment? </p>
| 0debug
|
uint64_t HELPER(lpq)(CPUS390XState *env, uint64_t addr)
{
uintptr_t ra = GETPC();
uint64_t hi, lo;
if (parallel_cpus) {
#ifndef CONFIG_ATOMIC128
cpu_loop_exit_atomic(ENV_GET_CPU(env), ra);
#else
int mem_idx = cpu_mmu_index(env, false);
TCGMemOpIdx oi = make_memop_idx(MO_TEQ | MO_ALIGN_16, mem_idx);
Int128 v = helper_atomic_ldo_be_mmu(env, addr, oi, ra);
hi = int128_gethi(v);
lo = int128_getlo(v);
#endif
} else {
check_alignment(env, addr, 16, ra);
hi = cpu_ldq_data_ra(env, addr + 0, ra);
lo = cpu_ldq_data_ra(env, addr + 8, ra);
}
env->retxl = lo;
return hi;
}
| 1threat
|
Task.Run vs ThreadPool.QueueUserWorkItem : <p>Not a subject expert I'm trying to understand more of the async world available in .NET. Task.Run and ThreadPool.QueueUserWorkItem both allow dispatching work on a pool thread but what are the differences or, if you prefer, pros and cons of the two?
Following is my list of pros. Not sure if it is complete or even correct.</p>
<p>ThreadPool.QueueUserWorkItem pros:</p>
<ul>
<li>Possibility of passing an argument</li>
</ul>
<p>Task.Run pros:</p>
<ul>
<li>Possibility of providing a CancellationToken</li>
<li>Possibility of waiting Task completion</li>
<li>Possibility of returning a value to calling code</li>
</ul>
| 0debug
|
What is the way to setup Database configuration inside java bean class in spring? : <p>I want to setup my DB related configuration inside java configuration bean class. Can someone help me with simple sample of code with related annotations.</p>
| 0debug
|
static void virtio_scsi_change(SCSIBus *bus, SCSIDevice *dev, SCSISense sense)
{
VirtIOSCSI *s = container_of(bus, VirtIOSCSI, bus);
if (((s->vdev.guest_features >> VIRTIO_SCSI_F_CHANGE) & 1) &&
(s->vdev.status & VIRTIO_CONFIG_S_DRIVER_OK) &&
dev->type != TYPE_ROM) {
virtio_scsi_push_event(s, dev, VIRTIO_SCSI_T_PARAM_CHANGE,
sense.asc | (sense.ascq << 8));
}
}
| 1threat
|
Javascript Form Validation issue how to reveal condition input field : <p>I'm using Bootstrap and Vanilla Javascript. It is a very simple form, really. </p>
<p>My problem, as I have not done any Javascript in a few years, is how to get around the first thing I need help about.</p>
<p>Now to the problem:</p>
<pre><code>IF the user select "Near_death" in the drop down. a new form must be shown. This has been hidden as long as no one chooses "Near_Death". Such as.
<div class="form-group">
<select id="types" name="types" class="form-control">
<option value="Near_death">Near_death</option>
<option value="1" type="number">1</option>
<option value="2" type="number">2</option>
<option value="3" type="number">3</option>
</select>
</div>
</code></pre>
<p>I expect the lower form to revel itself if the user check the "Near_death" form option. It's just a case of conditional hide/show but I cannot for the life if me remember how I used to do it.</p>
<p>Please, Only Vanilla JavaScript. Thank you all for any help. Much appreciated! :=)</p>
| 0debug
|
did select row at indexpath swift 3 not called : did select row at indexpath swift 3 not called. i tried all the solution posted over stack overflow. Please help
func tableView(_tableView: UITableView, didSelectRowAt indexPath:
IndexPath) {
| 0debug
|
def find_First_Missing(array,start,end):
if (start > end):
return end + 1
if (start != array[start]):
return start;
mid = int((start + end) / 2)
if (array[mid] == mid):
return find_First_Missing(array,mid+1,end)
return find_First_Missing(array,start,mid)
| 0debug
|
static void memory_region_iorange_destructor(IORange *iorange)
{
g_free(container_of(iorange, MemoryRegionIORange, iorange));
}
| 1threat
|
How to merge two array and sum the value : <p>Here is my array</p>
<pre><code>array(5) {
[0]=>
array(3) {
["product"]=>
string(14) "apple"
["quantity"]=>
int(1)
["color"]=>
string(5) "red"
}
[1]=>
array(3) {
["quantity"]=>
int(1)
["color"]=>
string(6) "red"
["product"]=>
string(17) "berry"
}
[2]=>
array(3) {
["quantity"]=>
int(5)
["color"]=>
string(6) "green"
["product"]=>
string(14) "apple"
}
[3]=>
array(3) {
["quantity"]=>
int(5)
["color"]=>
string(6) "red"
["product"]=>
string(14) "apple"
}
[4]=>
array(3) {
["quantity"]=>
int(4)
["color"]=>
string(5) "red"
["product"]=>
string(14) "apple"
}
}
</code></pre>
<p>I want to sum the quantity if they are sample product and same quantity.
Red Apple x 1 and Red apple x 4 and Red Apple x 5 will be merged to Red Apple x 10 , But Green Apple will keep.</p>
<p>How can I do this ?</p>
| 0debug
|
static int print_ptr(DeviceState *dev, Property *prop, char *dest, size_t len)
{
void **ptr = qdev_get_prop_ptr(dev, prop);
return snprintf(dest, len, "<%p>", *ptr);
}
| 1threat
|
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx,
RowContext *row,
int n,
int index_bits,
int level_bias,
int level_shift)
{
int i, j, index1, index2, len, flags;
int level, component, sign;
const int *scale;
const uint8_t *weight_matrix;
const uint8_t *ac_level = ctx->cid_table->ac_level;
const uint8_t *ac_flags = ctx->cid_table->ac_flags;
int16_t *block = row->blocks[n];
const int eob_index = ctx->cid_table->eob_index;
int ret = 0;
OPEN_READER(bs, &row->gb);
ctx->bdsp.clear_block(block);
if (!ctx->is_444) {
if (n & 2) {
component = 1 + (n & 1);
scale = row->chroma_scale;
weight_matrix = ctx->cid_table->chroma_weight;
} else {
component = 0;
scale = row->luma_scale;
weight_matrix = ctx->cid_table->luma_weight;
}
} else {
component = (n >> 1) % 3;
if (component) {
scale = row->chroma_scale;
weight_matrix = ctx->cid_table->chroma_weight;
} else {
scale = row->luma_scale;
weight_matrix = ctx->cid_table->luma_weight;
}
}
UPDATE_CACHE(bs, &row->gb);
GET_VLC(len, bs, &row->gb, ctx->dc_vlc.table, DNXHD_DC_VLC_BITS, 1);
if (len) {
level = GET_CACHE(bs, &row->gb);
LAST_SKIP_BITS(bs, &row->gb, len);
sign = ~level >> 31;
level = (NEG_USR32(sign ^ level, len) ^ sign) - sign;
row->last_dc[component] += level;
}
block[0] = row->last_dc[component];
i = 0;
UPDATE_CACHE(bs, &row->gb);
GET_VLC(index1, bs, &row->gb, ctx->ac_vlc.table,
DNXHD_VLC_BITS, 2);
while (index1 != eob_index) {
level = ac_level[index1];
flags = ac_flags[index1];
sign = SHOW_SBITS(bs, &row->gb, 1);
SKIP_BITS(bs, &row->gb, 1);
if (flags & 1) {
level += SHOW_UBITS(bs, &row->gb, index_bits) << 7;
SKIP_BITS(bs, &row->gb, index_bits);
}
if (flags & 2) {
UPDATE_CACHE(bs, &row->gb);
GET_VLC(index2, bs, &row->gb, ctx->run_vlc.table,
DNXHD_VLC_BITS, 2);
i += ctx->cid_table->run[index2];
}
if (++i > 63) {
av_log(ctx->avctx, AV_LOG_ERROR, "ac tex damaged %d, %d\n", n, i);
ret = -1;
break;
}
j = ctx->scantable.permutated[i];
level *= scale[i];
level += scale[i] >> 1;
if (level_bias < 32 || weight_matrix[i] != level_bias)
level += level_bias;
level >>= level_shift;
block[j] = (level ^ sign) - sign;
UPDATE_CACHE(bs, &row->gb);
GET_VLC(index1, bs, &row->gb, ctx->ac_vlc.table,
DNXHD_VLC_BITS, 2);
}
CLOSE_READER(bs, &row->gb);
return ret;
}
| 1threat
|
v-autocomplete and setting user input as its value : <p>I use <a href="https://vuetifyjs.com/en/getting-started/quick-start" rel="noreferrer">vuetify</a> in my project and need typeahead component. Sadly v-autocomplete implemented as combobox with filter, so it doesn't allow setting user input as v-model (or at least I can't find I way how to do so).</p>
<p>Could someone please explain me how to implement such functionality (maybe by another vuetify component)? I load items from server, but they are serve just as suggestions. Users need to have an ability to type and set any value they want to.</p>
<p>Here is a base example <a href="https://codepen.io/miklever/pen/oMZxzZ" rel="noreferrer">https://codepen.io/miklever/pen/oMZxzZ</a>. The problem is that if I type any word that doesn't start with 'John' v-autocomplete clears it on blur. I've tried to set v-model manually and to add user input to array, but any of this methods has issues and doesn't work as expected.</p>
<pre><code><div id="app">
<v-app>
<v-content>
<v-container>
<p>Name: {{ select || 'unknown'}}</>
<v-autocomplete
:items="items"
:search-input.sync="search"
v-model="select"
cache-items
flat
hide-no-data
label="Name"
></v-autocomplete>
</v-container>
</v-content>
</v-app>
</div>
new Vue({
el: "#app",
data: () => ({
items: [],
search: null,
select: null,
commonNames: ["John", "John2", "John3"]
}),
watch: {
search(val) {
val && val !== this.select && this.querySelections(val);
}
},
methods: {
querySelections(v) {
setTimeout(() => {
this.items = this.commonNames.filter(e => {
return (e || "").toLowerCase().indexOf((v || "").toLowerCase()) > -1;
});
}, 500);
}
}
});
</code></pre>
| 0debug
|
How to get supervisord to restart hung workers? : <p>I have a number of Python workers managed by supervisord that should continuously print to stdout (after each completed task) if they are working properly. However, they tend to hang, and we've had difficulty finding the bug. Ideally supervisord would notice that they haven't printed in X minutes and restart them; the tasks are idempotent, so non-graceful restarts are fine. Is there any supervisord feature or addon that can do this? Or another supervisor-like program that has this out of the box?</p>
<p>We are already using <a href="http://superlance.readthedocs.io/en/latest/memmon.html" rel="noreferrer">http://superlance.readthedocs.io/en/latest/memmon.html</a> to kill if memory usage skyrockets, which mitigates some of the hangs, but a hang that doesn't cause a memory leak can still cause the workers to reach a standstill.</p>
| 0debug
|
static BlockAIOCB *blkverify_aio_flush(BlockDriverState *bs,
BlockCompletionFunc *cb,
void *opaque)
{
BDRVBlkverifyState *s = bs->opaque;
return bdrv_aio_flush(s->test_file->bs, cb, opaque);
}
| 1threat
|
Logic doesn't work in this method overloading example. : I'm sudying java from the Pluralsigh.com. Code below is written by me to follow the video lessons. The topic is method overloading. The code seem to not increment the passenger count as soon as I implement the hasCarryOnSpace method. I call this method inside the add1Passanger(int bags, int carryOns) method after the if statement. I also call it inside the add1Passenger(Passanger p, int carryOns) method. Please tell me what's wrong with my logic...
public class Flight {
//fields
public int passengers;
private int seats = 150;
private int checkedBags;
private int maxCarryOns = checkedBags*2, totalCarryOns;
private int freeCheckedBags;
//getter/setters
public int getSeats(){return 150;}
public int getCheckedBags() {return this.checkedBags;}
//constructors
public Flight (){}
public Flight(int freeCheckedBags){
this.freeCheckedBags=freeCheckedBags;}
public Flight(int freeCheckedBags, int checkedBags){
this(freeCheckedBags);
this.checkedBags=checkedBags;}
//methods
public void addPassengers(Passenger... list){
if(hasSeats(list.length)){
passengers += list.length;
for(Passenger passanger: list){
checkedBags += passanger.getCheckedBags();
}
}
else tooMany();
}
public void add1Passenger(){
if(hasSeats())
passengers +=1;
else tooMany();
return;
}
public void add1Passanger(int bags){
if(hasSeats()){
add1Passenger();
this.checkedBags+=bags;
}
}
public void add1Passenger(Passenger p){
add1Passanger(p.getCheckedBags());
}
public void add1Passenger(int bags, int carryOns){
if(hasSeats() && hasCarryOnSpace(carryOns)){
add1Passanger(bags);
totalCarryOns+=carryOns;
}
}
public void add1Passenger(Passenger p, int carryOns){
add1Passenger(p.getCheckedBags(), carryOns);
}
public boolean hasCarryOnSpace(int carryOns){
return totalCarryOns+carryOns < maxCarryOns;
}
public boolean hasSeats(){
return passengers < getSeats();
}
private boolean hasSeats(int count) {
return passengers+count <= seats;
}
private void tooMany(){
System.out.println("no more seats available");
}
//main method
public static void main(String[] args ){
Flight usAir = new Flight();
//i have a separate Passenger class created w/ freeBags as first
//parameter and checkedBags as the second in its constructors
Passenger bob = new Passenger();
Passenger jean = new Passenger(0, 1);
Passenger nick = new Passenger(0, 2);
Passenger dan = new Passenger(2,2);
usAir.addPassengers(bob, jean);
usAir.add1Passenger(dan);
usAir.add1Passenger();
usAir.add1Passanger(2);
//calls below don't increment the passenger count
usAir.add1Passenger(nick, 2);
usAir.add1Passenger(1, 1);
System.out.println("usAir has " + usAir.passengers
+ " passengers " + "with " + usAir.getCheckedBags()+
" checked bags,"+" "+usAir.freeCheckedBags
+" free bags, and "+usAir.totalCarryOns+" carryOns on board");
}
}
| 0debug
|
CharDriverState *chr_baum_init(void)
{
BaumDriverState *baum;
CharDriverState *chr;
brlapi_handle_t *handle;
#ifdef CONFIG_SDL
SDL_SysWMinfo info;
#endif
int tty;
baum = g_malloc0(sizeof(BaumDriverState));
baum->chr = chr = g_malloc0(sizeof(CharDriverState));
chr->opaque = baum;
chr->chr_write = baum_write;
chr->chr_accept_input = baum_accept_input;
chr->chr_close = baum_close;
handle = g_malloc0(brlapi_getHandleSize());
baum->brlapi = handle;
baum->brlapi_fd = brlapi__openConnection(handle, NULL, NULL);
if (baum->brlapi_fd == -1) {
brlapi_perror("baum_init: brlapi_openConnection");
goto fail_handle;
}
baum->cellCount_timer = qemu_new_timer_ns(vm_clock, baum_cellCount_timer_cb, baum);
if (brlapi__getDisplaySize(handle, &baum->x, &baum->y) == -1) {
brlapi_perror("baum_init: brlapi_getDisplaySize");
goto fail;
}
#ifdef CONFIG_SDL
memset(&info, 0, sizeof(info));
SDL_VERSION(&info.version);
if (SDL_GetWMInfo(&info))
tty = info.info.x11.wmwindow;
else
#endif
tty = BRLAPI_TTY_DEFAULT;
if (brlapi__enterTtyMode(handle, tty, NULL) == -1) {
brlapi_perror("baum_init: brlapi_enterTtyMode");
goto fail;
}
qemu_set_fd_handler(baum->brlapi_fd, baum_chr_read, NULL, baum);
qemu_chr_be_generic_open(chr);
return chr;
fail:
qemu_free_timer(baum->cellCount_timer);
brlapi__closeConnection(handle);
fail_handle:
g_free(handle);
g_free(chr);
g_free(baum);
return NULL;
}
| 1threat
|
static inline void gen_op_evsrws(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2)
{
TCGv_i32 t0;
int l1, l2;
l1 = gen_new_label();
l2 = gen_new_label();
t0 = tcg_temp_local_new_i32();
tcg_gen_andi_i32(t0, arg2, 0x3F);
tcg_gen_brcondi_i32(TCG_COND_GE, t0, 32, l1);
tcg_gen_sar_i32(ret, arg1, t0);
tcg_gen_br(l2);
gen_set_label(l1);
tcg_gen_movi_i32(ret, 0);
gen_set_label(l2);
tcg_temp_free_i32(t0);
}
| 1threat
|
Has anybody achieved Virtual Keyboard in angular applications? : <p>Please let me know if there any plugins or references to integrate virtual keyboard in angular applications.</p>
| 0debug
|
static CURLState *curl_init_state(BlockDriverState *bs, BDRVCURLState *s)
{
CURLState *state = NULL;
int i, j;
do {
for (i=0; i<CURL_NUM_STATES; i++) {
for (j=0; j<CURL_NUM_ACB; j++)
if (s->states[i].acb[j])
continue;
if (s->states[i].in_use)
continue;
state = &s->states[i];
state->in_use = 1;
break;
}
if (!state) {
aio_poll(bdrv_get_aio_context(bs), true);
}
} while(!state);
if (!state->curl) {
state->curl = curl_easy_init();
if (!state->curl) {
return NULL;
}
curl_easy_setopt(state->curl, CURLOPT_URL, s->url);
curl_easy_setopt(state->curl, CURLOPT_SSL_VERIFYPEER,
(long) s->sslverify);
if (s->cookie) {
curl_easy_setopt(state->curl, CURLOPT_COOKIE, s->cookie);
}
curl_easy_setopt(state->curl, CURLOPT_TIMEOUT, s->timeout);
curl_easy_setopt(state->curl, CURLOPT_WRITEFUNCTION,
(void *)curl_read_cb);
curl_easy_setopt(state->curl, CURLOPT_WRITEDATA, (void *)state);
curl_easy_setopt(state->curl, CURLOPT_PRIVATE, (void *)state);
curl_easy_setopt(state->curl, CURLOPT_AUTOREFERER, 1);
curl_easy_setopt(state->curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(state->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(state->curl, CURLOPT_ERRORBUFFER, state->errmsg);
curl_easy_setopt(state->curl, CURLOPT_FAILONERROR, 1);
#if LIBCURL_VERSION_NUM >= 0x071304
curl_easy_setopt(state->curl, CURLOPT_PROTOCOLS, PROTOCOLS);
curl_easy_setopt(state->curl, CURLOPT_REDIR_PROTOCOLS, PROTOCOLS);
#endif
#ifdef DEBUG_VERBOSE
curl_easy_setopt(state->curl, CURLOPT_VERBOSE, 1);
#endif
}
state->s = s;
return state;
}
| 1threat
|
Logback: SizeAndTimeBasedRollingPolicy not honoring totalSizeCap : <p>I'm trying to manage my logging in a way in which my oldest archived logfiles are deleted once they've either reached the total cumulative size limit or reached their maximum history limit. When using the <code>SizeAndTimeBasedRollingPolicy</code>in Logback 1.1.7, the rolling file appender will keep creating new archives in spite of exceeding the <code>totalSizeCap</code> set. </p>
<p>Here's my logback.xml file for reference:</p>
<pre><code><?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="file"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${USERPROFILE}/testlogs/test.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>
${USERPROFILE}/testlogs/%d{yyyy-MM-dd_HH}/test%i.log.zip
</fileNamePattern>
<maxHistory>7</maxHistory>
<maxFileSize>50KB</maxFileSize>
<totalSizeCap>200KB</totalSizeCap>
</rollingPolicy>
<encoder>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %5p - %m%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="file" />
</root>
</configuration>
</code></pre>
<p>Is this a bug in logback or am I not configuring the rolling file appender correctly?</p>
| 0debug
|
how parse csv data from url in php : I have problem for parse csv data from url,
the url is : http://www.tsetmc.com/tsev2/data/Export-txt.aspx?t=i&a=1&b=0&i=71672399601682259
and I want to get data and work on that
this is my code:
$url="http://www.tsetmc.com/tsev2/data/Export-txt.aspx?t=i&a=1&b=0&i=71672399601682259"
var_dump(file_get_contents($url));
and get result
�ɟ�\��S�n�0}��?�&;�s��IUa+-U�n��#s�@Y���ć�ˮ����E��G�ө(��Z]o��c�v�T7_���VJ���]nji�Ky�Α|���~\���ͷ��)x��J ��y��`��rl܂� a��d�e�:�dZ�����@��@㿰�Ҙc"���LT0�.�e`�|�ȱ�n��������)@�1�G�c�yF� �8nyУ�q̇aL��w^�D<���uh�V 偆�̡T�-d�Y-�wfBK)�֝��� F3�����έ@L6�(Y�LGa��P�5�A� ��1Xo�s (Ɍ����d<:�Q��y(�%bo������K��
also when I first download the file from url by name "Etemad.Parsian.ETF.csv" and then use this code :
$file_path="Etemad.Parsian.ETF.csv"
var_dump(file_get_contents($file_path));
get result
<TICKER>,<DTYYYYMMDD>,<FIRST>,<HIGH>,<LOW>,<CLOSE>,<VALUE>,<VOL>,<OPENINT>,<PER>,<OPEN>,<LAST>
Servat.Parsian.ETF,20190317,26000.00,26298.00,26000.00,26224.00,422989000,16130,13,D,26002.00,26298.00
Servat.Parsian.ETF,20190316,26035.00,26035.00,25975.00,26002.00,57205000,2200,2,D,25839.00,25975.00
Servat.Parsian.ETF,20190313,25850.00,25850.00,25820.00,25839.00,49093700,1900,4,D,25765.00,25850.00
Servat.Parsian.ETF,20190312,25765.00,25765.00,25765.00,25765.00,38647500,1500,1,D,25616.00,25765.00
Servat.Parsian.ETF,20190311,25617.00,25617.00,25611.00,25616.00,64039500,2500,2,D,25369.00,25611.00
Servat.Parsian.ETF,20190310,25400.00,25400.00,25369.00,25369.00,509669940,20090,6,D,25573.00,25369.00
Servat.Parsian.ETF,20190309,25570.00,25578.00,25570.00,25573.00,37847720,1480,4,D,25439.00,25571.00
Servat.Parsian.ETF,20190306,25213.00,25645.00,25213.00,25439.00,329948250,12970,5,D,25316.00,25630.00
Servat.Parsian.ETF,20190305,25235.00,25504.00,25235.00,25316.00,1267056000,50050,9,D,25324.00,25397.00
Servat.Parsian.ETF,20190304,25324.00,25324.00,25324.00,25324.00,27856400,1100,3,D,25400.00,25324.00
how can you help me to see this second results in first way.
also when I send request to url server send csv file to me by this header:
Cache-Control →public, max-age=900
Content-Type →text/plain; charset=utf-8
Content-Encoding →gzip
Expires →Mon, 18 Mar 2019 08:48:05 GMT
Last-Modified →Mon, 18 Mar 2019 08:33:05 GMT
Vary →*
Server →Microsoft-IIS/10.0
content-disposition →attachment;filename=Servat.Parsian.ETF.csv
X-Powered-By →ASP.NET
Date →Mon, 18 Mar 2019 08:33:05 GMT
Content-Length →7519
I get this by postman .
| 0debug
|
yuv2yuvX_altivec_real(SwsContext *c,
const int16_t *lumFilter, const int16_t **lumSrc,
int lumFilterSize, const int16_t *chrFilter,
const int16_t **chrUSrc, const int16_t **chrVSrc,
int chrFilterSize, const int16_t **alpSrc,
uint8_t *dest, uint8_t *uDest,
uint8_t *vDest, uint8_t *aDest,
int dstW, int chrDstW)
{
const vector signed int vini = {(1 << 18), (1 << 18), (1 << 18), (1 << 18)};
register int i, j;
{
DECLARE_ALIGNED(16, int, val)[dstW];
for (i = 0; i < (dstW -7); i+=4) {
vec_st(vini, i << 2, val);
}
for (; i < dstW; i++) {
val[i] = (1 << 18);
}
for (j = 0; j < lumFilterSize; j++) {
vector signed short l1, vLumFilter = vec_ld(j << 1, lumFilter);
vector unsigned char perm, perm0 = vec_lvsl(j << 1, lumFilter);
vLumFilter = vec_perm(vLumFilter, vLumFilter, perm0);
vLumFilter = vec_splat(vLumFilter, 0);
perm = vec_lvsl(0, lumSrc[j]);
l1 = vec_ld(0, lumSrc[j]);
for (i = 0; i < (dstW - 7); i+=8) {
int offset = i << 2;
vector signed short l2 = vec_ld((i << 1) + 16, lumSrc[j]);
vector signed int v1 = vec_ld(offset, val);
vector signed int v2 = vec_ld(offset + 16, val);
vector signed short ls = vec_perm(l1, l2, perm);
vector signed int i1 = vec_mule(vLumFilter, ls);
vector signed int i2 = vec_mulo(vLumFilter, ls);
vector signed int vf1 = vec_mergeh(i1, i2);
vector signed int vf2 = vec_mergel(i1, i2);
vector signed int vo1 = vec_add(v1, vf1);
vector signed int vo2 = vec_add(v2, vf2);
vec_st(vo1, offset, val);
vec_st(vo2, offset + 16, val);
l1 = l2;
}
for ( ; i < dstW; i++) {
val[i] += lumSrc[j][i] * lumFilter[j];
}
}
altivec_packIntArrayToCharArray(val, dest, dstW);
}
if (uDest != 0) {
DECLARE_ALIGNED(16, int, u)[chrDstW];
DECLARE_ALIGNED(16, int, v)[chrDstW];
for (i = 0; i < (chrDstW -7); i+=4) {
vec_st(vini, i << 2, u);
vec_st(vini, i << 2, v);
}
for (; i < chrDstW; i++) {
u[i] = (1 << 18);
v[i] = (1 << 18);
}
for (j = 0; j < chrFilterSize; j++) {
vector signed short l1, l1_V, vChrFilter = vec_ld(j << 1, chrFilter);
vector unsigned char perm, perm0 = vec_lvsl(j << 1, chrFilter);
vChrFilter = vec_perm(vChrFilter, vChrFilter, perm0);
vChrFilter = vec_splat(vChrFilter, 0);
perm = vec_lvsl(0, chrUSrc[j]);
l1 = vec_ld(0, chrUSrc[j]);
l1_V = vec_ld(0, chrVSrc[j]);
for (i = 0; i < (chrDstW - 7); i+=8) {
int offset = i << 2;
vector signed short l2 = vec_ld((i << 1) + 16, chrUSrc[j]);
vector signed short l2_V = vec_ld((i << 1) + 16, chrVSrc[j]);
vector signed int v1 = vec_ld(offset, u);
vector signed int v2 = vec_ld(offset + 16, u);
vector signed int v1_V = vec_ld(offset, v);
vector signed int v2_V = vec_ld(offset + 16, v);
vector signed short ls = vec_perm(l1, l2, perm);
vector signed short ls_V = vec_perm(l1_V, l2_V, perm);
vector signed int i1 = vec_mule(vChrFilter, ls);
vector signed int i2 = vec_mulo(vChrFilter, ls);
vector signed int i1_V = vec_mule(vChrFilter, ls_V);
vector signed int i2_V = vec_mulo(vChrFilter, ls_V);
vector signed int vf1 = vec_mergeh(i1, i2);
vector signed int vf2 = vec_mergel(i1, i2);
vector signed int vf1_V = vec_mergeh(i1_V, i2_V);
vector signed int vf2_V = vec_mergel(i1_V, i2_V);
vector signed int vo1 = vec_add(v1, vf1);
vector signed int vo2 = vec_add(v2, vf2);
vector signed int vo1_V = vec_add(v1_V, vf1_V);
vector signed int vo2_V = vec_add(v2_V, vf2_V);
vec_st(vo1, offset, u);
vec_st(vo2, offset + 16, u);
vec_st(vo1_V, offset, v);
vec_st(vo2_V, offset + 16, v);
l1 = l2;
l1_V = l2_V;
}
for ( ; i < chrDstW; i++) {
u[i] += chrUSrc[j][i] * chrFilter[j];
v[i] += chrVSrc[j][i] * chrFilter[j];
}
}
altivec_packIntArrayToCharArray(u, uDest, chrDstW);
altivec_packIntArrayToCharArray(v, vDest, chrDstW);
}
}
| 1threat
|
declared variable of type double gets automatically initialized to inf : <p>I am running my code with gcc. I have a function in which I declare a variable X1 which is initialized to 'inf'.
</p>
<pre class="lang-cpp prettyprint-override"><code>function(double nu, void *params) {
struct func_params *part= (struct func_params *)params;
double result;
*commands*
if (condition){
double wb,X1;
printf("inside if X1 %e \n",X1);
}
return result;
</code></pre>
<p>this code is returning "inside if X1 inf". I never had that issue and I didn't change anything to the code...Any idea what it could be?</p>
| 0debug
|
how to send an SMS without users interaction in flutter? : <p>I am actually trying to send SMS from my flutter app without user's interaction.
I know I can launch the SMS app using url_launcher but I actually want to send an SMS without user's interaction or launching SMS from my flutter app.</p>
<p>Please can someone tell me if this is possible. </p>
<p>Many Thanks,
Mahi</p>
| 0debug
|
JSON from URL return null : I call a php file from POSTMAN with this url [http://localhost/st/user_login.php?surat=DRIVER&sandi=123]
in user_login.php, i type this to process JSON:
`$json = file_get_contents('php://input');`
`$obj = json_decode($json,true);`
`$email = $obj['surat'];`
`$password = $obj['sandi'];`
The problem is, $email always return null value.
Can somebody tell me where is the problem?
[1]: http://localhost/st/user_login.php?surat=DRIVER&sandi=123
| 0debug
|
static void t_gen_mulu(TCGv d, TCGv d2, TCGv a, TCGv b)
{
TCGv t0, t1;
t0 = tcg_temp_new(TCG_TYPE_I64);
t1 = tcg_temp_new(TCG_TYPE_I64);
tcg_gen_extu_i32_i64(t0, a);
tcg_gen_extu_i32_i64(t1, b);
tcg_gen_mul_i64(t0, t0, t1);
tcg_gen_trunc_i64_i32(d, t0);
tcg_gen_shri_i64(t0, t0, 32);
tcg_gen_trunc_i64_i32(d2, t0);
tcg_temp_free(t0);
tcg_temp_free(t1);
}
| 1threat
|
How to import a project from GitLab to intellij? : I know how to clone a project from `Github` to `intellij`, but i need to clone a project from `Gitlab`.
The problem is, intellij does not have a Gitlab option?
As far as i can see, it only supports `Git`, `Mercurial` and `Subversion`.
[![enter image description here][1]][1]
You can find the version of intelij in the below image:
[![enter image description here][2]][2]
How can i import a `GitLab` project into the `Intelij`?
[1]: https://i.stack.imgur.com/tSkKU.png
[2]: https://i.stack.imgur.com/1l8U4.png
| 0debug
|
Using React/Node for responsive email : <p>I am new to Node js and React js. I have been given the following task.</p>
<p>I need to create an email sending system using Node js and React js.
The body of the email should be rich HTML and CSS and should be appear same on different mail servers like Google, Yahoo, Outlook.</p>
<p>So, till now I have been able to generate an express app, that is able to send emails. To get rich HTML and CSS body of the email, I am using an email template from zurb.com/ink. I am able to send a responsive email using Hogan.js .</p>
<p>But I am not sure of where and how to use React js?</p>
| 0debug
|
How to for loop an image name based on user : <p>I'm trying to for loop the name of the photo in my database based on the username</p>
<pre><code><?php
$sql = "SELECT Name FROM images
WHERE user=$user";
$result = mysqli_query($con, $sql);
$name = $row['Name'];
// loop through the array of files and print them all in a list
for($index=0; $index < $indexCount; $index++) {
$extension = substr($dirArray[$index], -3);
if ($extension == 'jpg'){ // list only jpgs
echo '<div class="container22"><img class="testing2 img-thumbnail" src="users/userimg/'.$name.'' . $dirArray[$index] . '" alt="Image" /></div>';
}
}
?>
</code></pre>
| 0debug
|
static inline void RENAME(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, long width, uint32_t *unused)
{
int i;
assert(src1==src2);
for (i=0; i<width; i++) {
int r= src1[6*i + 0] + src1[6*i + 3];
int g= src1[6*i + 1] + src1[6*i + 4];
int b= src1[6*i + 2] + src1[6*i + 5];
dstU[i]= (RU*r + GU*g + BU*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1);
dstV[i]= (RV*r + GV*g + BV*b + (257<<RGB2YUV_SHIFT))>>(RGB2YUV_SHIFT+1);
}
}
| 1threat
|
int float32_eq( float32 a, float32 b STATUS_PARAM )
{
if ( ( ( extractFloat32Exp( a ) == 0xFF ) && extractFloat32Frac( a ) )
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
) {
if ( float32_is_signaling_nan( a ) || float32_is_signaling_nan( b ) ) {
float_raise( float_flag_invalid STATUS_VAR);
}
return 0;
}
return ( a == b ) || ( (bits32) ( ( a | b )<<1 ) == 0 );
}
| 1threat
|
C# how to parse a string to double : <p>I want to parse my string to double. My problem is that the result of newTime is 800, but the result should be 8,00. </p>
<pre><code>string time = "08:00";
double newTime = double.Parse(time.Replace(':', '.'));
</code></pre>
| 0debug
|
static void dmg_refresh_limits(BlockDriverState *bs, Error **errp)
{
bs->request_alignment = BDRV_SECTOR_SIZE;
}
| 1threat
|
In Visual Studio Code How do I merge between two local branches? : <p>In Visual Studio Code it seems that I am only allowed to push, pull and sync. There is documented support for merge conflicts but I can't figure out how to actually merge between two branches. The Git command line within VSC (press F1) only facillitates a subset of commands:</p>
<p><a href="https://i.stack.imgur.com/Hy8qz.png"><img src="https://i.stack.imgur.com/Hy8qz.png" alt="eGit options available in VSCode"></a></p>
<p>Attempting to pull from a an alternate branch or push to an alternate branch yields:</p>
<p><a href="https://i.stack.imgur.com/KA3mY.png"><img src="https://i.stack.imgur.com/KA3mY.png" alt="git Command throttling"></a></p>
<p>Here's the documentation on VSCode's Git
<a href="https://i.stack.imgur.com/Hy8qz.png">Visual Studio Code Git Documentation</a></p>
<p>What am I overlooking?</p>
| 0debug
|
Is Java a dynamic programming language? : <p>The definition of Dynamic Programming language says "These languages are those which perform multiple general behaviours at run-time in contrary to static programming languages which do the same at compile time. It can be by addition of new code, by extending objects and definitions".</p>
<p>To the best of my knowledge many programming languages have encapsulation in form of packages like Java or header files like C++. So, the code that as a programmer I will write will certainly expand at compile time and would be eventually converted to assembly code and finally to machine code. So does every high level language becomes dynamic?</p>
| 0debug
|
Open a form inside a dropdown : <p>I want to use html form tag inside a dropdownlist, to create something like google's People Also Ask, but inside of it form for changing information and password and so on.</p>
| 0debug
|
In Kotlin, how to check contains one or another value? : <p>In Kotlin we can do:</p>
<pre><code>val arr = intArrayOf(1,2,3)
if (2 in arr)
println("in list")
</code></pre>
<p>But if I want to check if 2 <em>or</em> 3 are in <code>arr</code>, what is the most idiomatic way to do it other than:</p>
<pre><code>if (2 in arr || 3 in arr)
println("in list")
</code></pre>
| 0debug
|
vscode( vscode-ruby + rubocop ) how to auto correct on save? : <h2>Environments</h2>
<ul>
<li>vscode Version 1.19.1 (1.19.1)</li>
<li>rubocop (0.52.1)</li>
<li>Darwin mbp 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct 4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64</li>
<li>ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-darwin16]</li>
</ul>
<p>followed <a href="https://github.com/rubyide/vscode-ruby#linters" rel="noreferrer">https://github.com/rubyide/vscode-ruby#linters</a> and installed all gems and edited the settings.json like this.</p>
<pre class="lang-js prettyprint-override"><code>{
"ruby.rubocop.executePath": "/Users/ac/.rbenv/shims/",
"ruby.rubocop.onSave": true,
"ruby.lint": {
"ruby": {
"unicode": true //Runs ruby -wc -Ku
},
"reek": true,
"rubocop": {
"lint": true,
"rails": true
},
"fasterer": true,
"debride": {
"rails": true //Add some rails call conversions.
},
"ruby-lint": true
},
"ruby.locate": {
"include": "**/*.rb",
"exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}"
}
}
</code></pre>
<p>On vscode, code highlighting is working fine.<br>
*just to note, you see the extensions installed, and warnings in the problem tab.</p>
<p><a href="https://i.stack.imgur.com/X3c4r.png" rel="noreferrer"><img src="https://i.stack.imgur.com/X3c4r.png" alt="rubocop is working ok"></a></p>
<h2>Question</h2>
<p>I was under the inpression that <code>vscode-ruby</code> and <code>rubocop</code> would auto-correct indentations and cop rules on <strong>file save</strong>, but apparently it doesn't.<br>
If I want it to format my code like <code>prettier</code>, how should I set this up?</p>
| 0debug
|
how to properly do a T-SQL case statement in my code as shown below. TIA : declare @result as decimal(18, 2)
select @result = sum(basepay)
case @result when
null then 0.00
end
from dbo.tblPayments where ClientID = 1 and month(paymentfor) = 1
print @result
| 0debug
|
Please explain how come the output is 9 ? : The output is 9.and i cant get my head around the whole Bit wise XOR concept.
public class XOR {
public static void main(String[] args){
int a= 12;
int b= 5;
int c=a^b;
System.out.print(c);
}
}
| 0debug
|
OVERLOADING IN INHERITANCE : So I came across this concept of overloading resolution while studying Dynamic programming but I am having trouble understanding this. The statement goes like this-
"If the compiler cannot find any method with matching parameter type or if multiple methods all match after applying conversions(casts) the compiler reports an error"
I tried verifying the statement with help of an example and it goes like following-
public class OverloadingResolution{
public static void main(String[] args){
ClassB b= new ClassB();
b.check(3);
ClassB c=new ClassC();
c.check(3)
}
}
class ClassA{
public void check(float a){
System.out.println("Inside ClassA----> value of a is"+a);
}
}
class ClassB extends ClassA{
public void check(float a){
System.out.println("Inside ClassB----> value of a is"+a);
}
}
class ClassC extends ClassB{
public void check(short a){
System.out.println("Inside ClassC----> value of a is"+a);
}
}
outcome was
Inside ClassB value--->value of a is 3.0
Inside ClassB value--->value of a is 3.0
My doubt is I expected a compile time error as
ClassB b= new ClassB();
b has multiple methods with matching paramters
| 0debug
|
Is there a yolo dnn detector version similar to "Not Suitable for Work (NSFW)"? : So I look onto old yahoo's [NSFW][1] and can't help but wonder if there is a Yolo DNN version trained on similar (not released) dataset that would detect human nudity and locate it on pictures?
Is there at least a public database of it or one must gather his own?
[1]: https://yahooeng.tumblr.com/post/151148689421/open-sourcing-a-deep-learning-solution-for
| 0debug
|
Open crome in pyhton but just get data:, in url adress wanna it to be google.com : this is the code i use
import time
from selenium import webdriver
driver = webdriver.Chrome('C:/Program Files (x86)/Google/Chrome/Application/chromedriver') # Optional argument, if not specified will search path.
driver.navigate().to("http://www.google.com")
the url i get in google is data;
i have selenium installed and cromium
dont know if it something i missed
i tryed with get driver alot and dont work
plz help as fast as posible
and dont this like if it something u think i dont care about been aweak in 7 hours and tried this phyton script and phyton just dont work for me
| 0debug
|
Java outputs references : <p>I have a bit of a difficult time wrapping my head around this so I hope you guys can help me out here. Why does a[0] get replaced with 400 in this example here </p>
<pre><code>int [] a = {1, 2, 3 } ;
int [] b = a ;
b[0] = 400 ;
System.out.println(a[0]);
</code></pre>
<p>while in the example here c remains 2? I just don't understand this. </p>
<pre><code>int c = 2 ;
int d = c ;
d = 1 ;
System.out.println(c);
</code></pre>
<p>A short explanation as to why this is happening would be very welcome. </p>
| 0debug
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.