id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_17400 |
I'd like to group the data as shown in the brackets (all the 1s, 2s, and 3s together) without combining the data, and have it be color coded ideally, rather than the random colors it currently is. Is there a way to do this? I come upon this problem a lot and end up manually fixing the graphs, so I'm hoping to save som... | |
doc_17401 | I have declared private decimal balance = 0; in order to set the initial balance to 0 for everyone, it is then later on that they enter the amount they wish to store. What I am trying to do is stop people from creating their account with < 0 OR > 10,000
This is the IF statement I have so far
public virtual bool Balance... | |
doc_17402 | <a href="/CaseMgrTesting/Pat/Summary/31673">31673</a>
<a href="/CaseMgrTesting/Pat/Summary/31672">31672</a>
<a href="/CaseMgrTesting/Pat/Summary/3166">3166</a>
<a href="/CaseMgrTesting/Pat/Summary/316">316</a>
I create regular expression like below, unfortunately it only return 31673 31672. I also want remove hard cod... | |
doc_17403 | Note: It is possible to have 0s immediately before your subsequence and 1s immediately after, but it cannot happen simultaneously, otherwise your subsequence is not the longest.
Find an algorithm of excellent complexity.
This is where I am so far.
int subsequence(int v[], int dim){
int i, k_0=0, k_1=0, count_0=0, count... | |
doc_17404 | #include<stdio.h>
int main() {
char s1[6] = {'h', 'e', 'l', 'l', 'o'};
char s2[10] = {'w','o','r','l','d'};
printf("%s\n", s1);
return 0;
}
| |
doc_17405 | SELECT DATE(x.created_at), AVG(TIMEDIFF(y.created_at, x.created_at)/60/60)
FROM
(SELECT *
FROM events a
WHERE a.created_at > '12-10-10 12:12:12'
AND a.type = 'Started') x INNER JOIN
(SELECT *
FROM events a
WHERE a.created_at > '... | |
doc_17406 | Public Class OldClass
Inherits NewClass
....
End Class
NewClass Inherits from BaseClass
Now I have a list(Of BaseClass)
I am deserializing a few of these objects from XML. The XML could contain both OldCLasses and NewCLasses.
After deserialization the objects are in the list.
OldClass is exactly the same as Ne... | |
doc_17407 | Here is my code:
function.h:
#include<iostream>
#include"stack.h"
using std::string;
bool bracketCheck(const string& s) {
Stack<char> stack;
if (!s.empty()) {
for (int i = 0; i < s.length(); i++) {
if (s[i] == '(' || s[i] == '{' || s[i] == '[') {
s... | |
doc_17408 | Android apps when running within ChromeOS requires a bunch of optimizations and these optimizations apply only to the app when running in chrome environment.
*
*Is it possible to use the same app APK file for both Android and chrome or should have separate APK files?
*Is it possible to differentiate the environme... | |
doc_17409 | Here is my model definition:
class LocationManager(models.Manager):
def get_by_natural_key(self, zip_code):
return self.get(zip_code=zip_code)
class Location(models.Model):
city = models.CharField('City', blank=True, null=True, max_length=50)
state = models.CharField('State', blank=True, null=True,... | |
doc_17410 | I'm runnig jboss/drools-workbench-showcase and jboss/kie-server-showcase. Everything ok, kie-server registering itself and I see it in "Execution servers" and can deploy and run projects. But when I'm trying to view process instances it says "Invalid credentials to load data from remote server. Contact your system adm... | |
doc_17411 |
import SwiftUI
@available(iOS 16.0, *)
struct SecondView: View {
@State var nome = ""
@State var cognome = ""
var body: some View {
GeometryReader { geo in
ZStack {
Color(red: 57 / 255, green: 63 / 255, blue: 147 / 255)
Text("Ora tocca ai tuoi dati... | |
doc_17412 | <select id ="myselect">
<option value="AA">AA</option>
<option value="AB">AB</option>
<option value="AC">AC</option>
<option value="AD">AD</option>
</select>
so on document load I want to Make item "AC" in the select box as the default selected option on loading the document
$('#myselect').children('option').text('... | |
doc_17413 | public class MainActivity extends Activity {
public ListView mainListView ;
public ArrayAdapter<String> listAdapter ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// Find the ListView resource.
mainLi... | |
doc_17414 | class packet;
virtual function int compute_crc();
compute_crc = 12345;
endfunction
virtual task print;
$display("This is a packet");
endtask
endclass: packet
class bad_packet extends packet;
function int compute_crc();
compute_crc = 54321;
endfunction
task print;
$display("This is a... | |
doc_17415 | public enum Foo {
[Display(Name = "Undefined")]
Undef = 0,
[Display(Name = "Fully colored")]
Full = 1
}
The model class has a property using this enum:
public Foo FooProp { get; set; }
The view uses the model class and displays the property via
@Html.DisplayFor(m => m.FooProp)
Now, finally, my question:
How... | |
doc_17416 | --removed the data and query
Thank you!
A: Reverse the order of operations - first update lookup tables, then do your import merge. You can remove your temp table, the inserts, and updates for those lookup tables. You just need a merge statement to bring in the new and/or updated rows.
| |
doc_17417 | <asp:Panel ID="Panel1" GroupingText="Material" CssClass="material"
runat="server" >
<asp:RadioButtonList ID="RadioButtonList1" runat="server" >
<asp:ListItem Selected="True">Plastics</asp:ListItem>
<asp:ListItem Enabled="false">Glass</asp:ListItem>
... | |
doc_17418 | I am currently using pseudo-elements :before and :after to achieve this, but I am struggling with the margins. I need to use CSS for that, not JS.
The desired behavior is to only have a single line between any two elements, but because of the margins, the borders are duplicated between paragraph "Some content" and head... | |
doc_17419 | This is how I imagine it (it is not a correct TypoScript code though):
lib.field_some_field.value.wrap < plugin.some_plugin.some_method
Is it possible?
Thanks!
A: untested:
# If you are using an USER Object
includeLibs.some_plugin = EXT:some_plugin/pi1/class.tx_some_plugin_pi1.php
lib.field_some_field_with_stdWrap.a... | |
doc_17420 | Simply clone this repo https://github.com/allogic/domain_driven_design and go into the folder "services/registration" from there do docker-compose up.
This is my docker-compose.yml
version: '3'
services:
database:
container_name: 'database'
image: 'mysql:8.0.15'
restart: 'always'
environment:
M... | |
doc_17421 | React is new to me and I'm using this project partially as a learning tool. I believe this has to do with binding state to the specific instance of the component, but I'm not sure how or where to do this.
Here is the component:
const SummaryItem = props => {
const summary = props.object;
return(
<div className... | |
doc_17422 | $metaData = MetaData::fetch('http://www.example.com');
foreach ($metaData as $key=>$value){
if (!is_array($value)){
echo "$key=>$value";
}
}
The each loop returns the following
Content-Type=>text/html; charset=utf-8description=>
og:image=>
og:type=>website
og:site_name=>Site Name
og:url=>www.example.... | |
doc_17423 |
<table id="tblSample">
<!--Heading-->
<tbody>
<th>Super Partner</th><th>Products</th><th></th>
<th>Plan</th><th>Actual</th><th>Difference</th><... | |
doc_17424 | EDIT (clarifying the question):
We don't just want a bigger cell which takes all the text, but we want the text to flow from one cell to the next, like text on a multicolumn page, i.e. the text should flow from top to bottom of the first cell and continue at the top of the next cell in the row if necessary.
A: Yes, th... | |
doc_17425 | def checkResponse(resp):
#Make the incoming string trimmed & lowercase
respRaw = resp.strip()
respStr = respRaw.lower()
#Make sure only a or b were chosen
if respStr != "a" | respStr != "b":
return False
else:
return True
However, when I input a or b, I receive this: TypeError: ... | |
doc_17426 | I have a vector path in pdf format, like Safari or the Mac App Store apps usually use as image icons.
Now, I'd like to specify the fill-color and a custom shadow in code, rather than making images and exporting them. I didn't figure out how to do this.
The shadow works, however the fill color does not.
Can anyone tell ... | |
doc_17427 | Here is what I have so far:
fromDigits :: [Integer] -> Integer
fromDigits [] = 0;
fromDigits (x:xs) = x : fromDigits (xs)
What am I doing wrong?
A: You can use the worker wrapper approach to do this:
fromDigits :: [Integer] -> Integer
fromDigits xs = aux xs 0
where aux [] acc = acc
aux (x:xs) acc = aux... | |
doc_17428 | Default alignment for _TEXT is 16, so ml64 doesn't allow to set more than 16 in align command.
And ml64 doesn't allow to change alignment for _TEXT.
It's possible to create another section/segment, but can we get 64 byte alignment in main _TEXT section?
Is there any solution?
P.S.
Solution suggested in answer with _TEX... | |
doc_17429 | Thanks
A: According to the model-view-controller pattern which is commonly considered the best approach for GUI coding, you'd have a model, a view and a controller. In this case, the underlying model would be some value corresponding to the state of the combo box and what the popup menu shows. The views are the combo ... | |
doc_17430 | ERROR: type should be string, got "\nhttps://www.mono-project.com/docs/getting-started/install/linux/#accessing-older-releases\n\npurged remove all mono packages and changed the apt list file to :\n\nhttps://download.mono-project.com/repo/debian\nstable-stretch/snapshots/5.20.1 main\n\nbut when i try to install its always wants to install 6.8.0.105 because its the default version in debian official repository for debian bookworm:\n\nhttps://packages.debian.org/bookworm/mono-complete\n\nis there a way to override that and force installation from mono repository? will it risk the stability on my system because i guess the official package depends on other packages and i don't want to mess-up the system. worst case i will not install it and find another solution.\nI tried some apt pinning configuration but nothing worked.\n" | |
doc_17431 | I'm trying to share multiple files through my expo app. I can currently share one file with expo-sharing.
Has anyone had any success with the react-native-share package on expo? I found this link where it seems some people have figured it out, but I'm not planning on ejecting from expo:
https://expo.canny.io/feature-re... | |
doc_17432 | Examples:
Useless information|| basic information|| advanced information|| super information|| no information
Should match: basic information and advanced information and super information
Useless information|| basic information|| advanced information|| no information
Should match: basic information and advanced in... | |
doc_17433 | I added an output instruction "print("_resource_apply_dense method was called")" to know how many times it was called. The number of examples is 19907. The batch size is 32. I tested with 4 epochs only. I obtained this result.
I thougt that the _resource_apply_dense method would be called every iteration, but the resul... | |
doc_17434 | App Class:
public class Application extends javafx.application.Application {
@Override
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(Application.class.getResource("main-view.fxml"));
Scene scene = new Scene(fxmlLoader.load(), 800, 800);
stage... | |
doc_17435 | My code
import sys
import socket
TCP_IP = '192.168.42.1'
TCP_PORT = 8888
BUFFER_SIZE = 1024
param = []
i=0
#s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#s.bind((TCP_IP,TCP_PORT))
#s.listen(1)
#print 'Listening for client...'
#conn, addr = s.accept()
#print 'Connection address:', addr
while 1:
s = sock... | |
doc_17436 | Code in main.xml:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.app.name.GameView
android:id="@+id/game"
android:layout_width="fill_parent"
... | |
doc_17437 | I need this to be sample synchronous. ie if video 1 is 10.25 seconds long then when I have been playing for 11.5 seconds video 2 should be 1.25 seconds in.
I have been experimenting with keeping 3 AVPlayer objects where I preRoll each player using the same master clock. I am then trying to intercept the AVPlayerItemD... | |
doc_17438 | It is not possible to use my account information from their website without to login ( on the website) and look for my email and typ in sourcetree? Its little bit annoying to this on new projects.
EDIT: What I mean is in other words: I want to have load my account information automated from bitbucket, github so I do n... | |
doc_17439 | The main obstacle I found, is the fact that Windows and OSX does use some API differently, but I can find out on which OS I am running, and handle these cases.
Although one issue came up, as being problematic; which is the fact that to use my app, I need to install on every machine I want it to run, all the dependency ... | |
doc_17440 | We have sector column of type enum value is ['Midfielder', 'Forward', 'Defender', 'Goalkeeper'].
We want out put like max score of each sector and player name of each sector group by date.
if data is not preset on any date then we want to null or 0.
date │ mid_score │ midfielder │ def_score │ defender
2017-12-26 ... | |
doc_17441 | def findPackage(name: String, suffix: Option[String] = None): Path = {
logger.debug("Looking for package {} with suffix {}", name, suffix)
val path: Path = using(Files.newDirectoryStream(appDir)) {dirs =>
for (val path <- dirs) {
val matcher = packagePattern.matcher(path.getFileName.toString... | |
doc_17442 | ||
doc_17443 | MyClass.cpp
#include <algorithm>
#include <chrono>
#include <iostream>
#include <vector>
#include <string>
// Making this a lot shorter than in my actual program
std::vector<std::vector<int>> arrarr =
{
{ 1, 70, 54, 71, 83, 51, 54, 69, 16, 92, 33, 48, 61, 43, 52, 1, 89, 19, 67, 48},
{24, 47, 32, 60, 99, 3, ... | |
doc_17444 | The approximate structure is so:
class SocketWrapper
def initialize
@messages = []
@socket = TCPSocket.open('192.168.0.25', 2000)
Thread.new do
loop do
@messages.push @socket.read
end
end
end
def send_message(msg)
@socket.write msg
end
def read_messages
@messa... | |
doc_17445 | mysql> show create table letter_index\G
*************************** 1. row ***************************
Table: letter_index
Create Table: CREATE TABLE `letter_index` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` int(11) NOT NULL DEFAULT '0',
`target` int(11) NOT NULL DEFAULT '0',
`type` tinyint(4) unsig... | |
doc_17446 | So i decidad to make a function random that ramdonly assign Fruits ONLY to the empty spaces, but the problem is that as more empty spaces you get the fruits start going crazy and appear all over my array. I would like to have always the same chances of getting fruits despite of the empty spaces i have.
Here are the met... | |
doc_17447 | My issue is: when selecting the Sum of column 'orderQTY' from the 'Order' table, I get an incorrect total if i join the orderItem table.
The first query below gives me the correct total.
However, as soon as I add the join to orderItem, the sum result is incorrectly duplicating the 'orderqty' column for each orderitem ... | |
doc_17448 | Here is what I have written so far:
'Macro for pseudo-archiving
Sub PseudoArchive()
On Error Resume Next
Dim objNamespace As Outlook.NameSpace
Dim sourceFolder As Outlook.MAPIFolder
Dim Messages As Selection
Dim Msg As MailItem
Set objNamespace = GetNamespace("MAPI")
Set sourceFolder = objNamespace.Folders("sharedema... | |
doc_17449 | i tried doing it like that :
(DateTime.ParseExact(TransactionItem.Headers("DateRecieved"), "ddd, dd MMM yyyy HH:mm:ss Z", new CultureInfo("en-US"))).ToString("dd/MM/yyyy HH:mm:ss")
but the error comes from this part
DateTime.ParseExact(TransactionItem.Headers("DateRecieved"), "ddd, dd MMM yyyy HH:mm:ss Z", new CultureI... | |
doc_17450 | Each user has a main dashboard where all the conversations they're a part of appear together, stacked over one another (paginated by 20 objects). I call this the unseen activity page. Every unseen conversation on this page has a text box a user can directly type a reply into. Such replies are submitted via a POST reque... | |
doc_17451 | When I press F5 in Visual Studio 2012 it builds my web app and launches in IE with whatever file is currently selected file in the solution explorer. So if I've got a html file selected I'll get that html page displayed, or if I've got an aspx file selected then it will try to open that particular page.
My expected be... | |
doc_17452 | I would like to run some loop which takes care of downloading files (simple code using libtorrent) in a PyQt code.
Although, when the torrent downloading works, the UI doesn't show up and when I change the order of called functions, the UI shows but downloading doesn't work.
I read about QThreads but it's a bit hard f... | |
doc_17453 | import cookielib
import urllib
import urllib2
cj = cookielib.CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
data = urllib.urlencode({'session[username_or_email]':'twitter handle' , 'session[password]':'password'})
opener.open('https://twitter.com' , data)
stuff = opener.open('https://twitter... | |
doc_17454 | I would like to write an elastic search query using Nest to get the full indexed items (ContentIndexables in my case as my custom type) which have been indexed. The query is subject to a term query of [some string] + * (i.e. String.StartsWith() where [some string] may or may not contain spaces.
This is different to Com... | |
doc_17455 | <%= link_to('Dashboard', dashboard_index) do %>
<i class="icon-play"></i>
<% end %>
Thats the corresponding rake routes entry.
dashboard_index GET /dashboard/index(.:format) dashboard#index
What could be wrong? Any suggestion or idea?
thanks in advance
best regards
denym
A: It should be
<%= link_to(dashboa... | |
doc_17456 | It does not work anymore, but removing the dependency makes it work again. Note that it compile without errors.
Here is my build.gradle if it can help.
https://gist.github.com/Fungie2134/cb81cd1bd7d767d4d1f5d6317e71665d
A: you might be lacking the repository configuration for Maven Central:
repositories {
jcenter(... | |
doc_17457 | agency_params
params.require(:agency).permit(:name, :cnpj, :country, :state, :city, :phone, :email, :platform_id)
end
In some cases (depending on the user role) I don't want to allow any platform_id but just a specific one.
So my idea was:
def agency_params
params.require(:agency).permit(:name, :cnpj, :cou... | |
doc_17458 | So how can I force git to update my local repo by override those local changes when take a pull request?
A: You have two options:
*
*If you want to drop your changes completely that you've worked on since your last commit, do a
git reset HEAD --hard
Be aware that you can't undo that command
*You can also stash do... | |
doc_17459 | While debugging, I see that non-empty lines are retrieved from the blocking collection, and the stream writer is wrapped in a using block.
For debugging I threw in a flush that should not be required and write the lines to the console. There are 100 non-empty lines of text read from the blocking collection.
// Stuff i... | |
doc_17460 | package main
import (
"fmt"
"math/big"
)
func main() {
bfloat, _ := (&big.Float{}).SetString("1.8")
// what to do here to round bfloat to nearest int?
bint, _ := bfloat.Int(nil) // not this, this truncates
fmt.Println(bint.String())
}
A: You may add 0.5 to it before calling Float.Int(), an... | |
doc_17461 | sudo /Users/edamame/Library/python_virenv/bin/pip install matplotlib
Then I got the following error:
:
:
clang: warning: -framework Tcl: 'linker' input unused
clang: warning: -framework Tk: 'linker' input unused
In file included from src/_tkagg.cpp:28:
/usr/local/include/tk.h:71:13: fatal error: 'X11/Xlib.h' fi... | |
doc_17462 | One screen of the application contains a view, which i need to rotate according to device orientation. How can I do this?
A: Once try as follows
-> Specify orientation based on Activity.
-> Set orientation portrait for the activities you want.
-> Don't mention any orientation for the activity that you want to rotate ... | |
doc_17463 | `anonymous namespace'::<lambda0>::operator()(void)const
`anonymous namespace'::<lambda1>::operator()(double,double)const
...
This does not really help to identify the lambda at first glance in a stacktrace or profiler summary.
Is there any way to give the lambda a name for debugging purposes (it should be th... | |
doc_17464 | Also, there's another HtmlProvider right next to it that works fine, so the issue is specific to this particular html document.
A: Grab Source at https://github.com/fsharp/FSharp.Data.
Compile yourself.
Link to this DLL/project.
Debug.
(in b4 tomas-petricek ;-)
| |
doc_17465 | I have a jquery serialized data that looks like this:
tarid=value&tarname=value&sel=3
And I want to convert it to ArrayBuffer.
After that, I also need to turn it back to its original form again.
So how can I do that?
A: is this enough?
function stringToArrayBuffer(str){
if(/[\u0080-\uffff]/.test(str)){
th... | |
doc_17466 | But, when checking status of Targets, it shows "Down" for AlertManager service, every another endpoint are up, please see the attached file
Then, I check Service Discovery, the discovered labels shows:
"address="192.168.180.254:9093"
__meta_kubernetes_endpoint_address_target_kind="Pod"
__meta_kubernetes_endpoint_... | |
doc_17467 | trait SpecialSerialize {
def toJson(sb: StringBuilder, c:SJConfig): Unit = {println("wrong")}
}
case class Person(name:String, age:Int) extends SpecialSerialize
The plugin would generate:
case class Person(name:String, age:Int) extends SpecialSerialize {
override def toJson(sb: StringBuilder, c:SJConfig): Unit = ... | |
doc_17468 |
Figure 8.22 The system function, without signal handling
#include <sys/wait.h>
#include <errno.h>
#include <unistd.h>
int
system(const char *cmdstring) /* version without signal handling */
{
pid_t pid;
int status;
if (cmdstring == NULL)
return(1); /* always a command proce... | |
doc_17469 | using (var stream = new StreamWriter(request.GetRequestStream(), Encoding))
stream.Write(body.ToString());
I need to make it asynchronous. As far as I understand it, this means I need to change the call to request.GetRequestStream() to the asychronous.BeginGetRequestStream(). I have seen this example but cannot fi... | |
doc_17470 | I wanna load an image from web, so i use NSURLConnection to do it.
Everything is ok when i do testing my code on ios4.3.
But when i'm launch my app on ios5.0, i found the connection:didreceiveData haven't been called whatever what i did.
otherelse functions is called normally, just like connectionDidFinishLoading in io... | |
doc_17471 | and append it on a list
A: If you want to change your number into a list of those numbers, I would first cast it to a string, then casting it to a list will naturally break on each character:
[int(x) for x in str(n)]
A: Here's a way to do it without turning it into a string first (based on some rudimentary benchmark... | |
doc_17472 | http://gameboxtools.com/uploads/imagehost/20120928064614983.png
A: It's a good thing to have a high hit rate on the query cache. It means that subsequent calls to the same query are being answered directly from the cache and thus are faster. See here.
| |
doc_17473 | How can I pull the unique shifts metric? Here's an example of the type of data I'm dealing with:
Organization | Date | Volunteer
A | 10-01-2018 | Jane
A | 10-01-2018 | Ben
A | 10-02-2018 | Jane
B | 10-01-2018 | Emily
B | 10-02-2018 | Jack
You can see that O... | |
doc_17474 | I have tried 'for' loops, but that is not working and being a beginner I can't work out where I am going wrong. See below:
type(Win_mapping) = class 'collections.defaultdict'
keys list :
Win_mapping.keys()
Out:
dict_keys([(3, 8), (2, 5), (2, 8), (1, 8), (2, 7), (3, 7), (3, 6), (2, 6), (1, 7), (1, 6), (1, 4), (0, 7... | |
doc_17475 | gcc -gstabs -o finalOutput main.c
But I got an error:
clang: error: unsupported option '-gstabs'
Program worked fine with -ggdb
gcc -ggdb -o finalOutput main.c
As per the documentation of GCC
-gstabs
Produce debugging information in stabs format (if that is supported),
without GDB extensions. This is the format use... | |
doc_17476 | var tags = body.match(/#([a-z0-9]+)/gi);
However, if the sentence is:
The brown #fox jumped over ‘ fence.
The regex above will treat "8216;" as a tag, which is what I do not want. I only want "fox" as a tag.
Note: I just want a basic regex solution.
A: Try this one:
/(^#|\s#)([a-z0-9]+)/gi
LIVE DEMO: http:/... | |
doc_17477 | https://codesandbox.io/s/responsivedrawer-demo-material-ui-forked-inc7xz?file=/demo.js
I'd like if pressing the X would only print B, rather than printing A and B. I know nesting buttons is not the correct way to do it, but I'd like to overlay the button with the exact look and ripple behavior I'm currently seeing with... | |
doc_17478 | I then added a couple of classes to the ActivityModule
@Module(
injects = {
HomeActivity.class,
HomeFragment.class
},
addsTo = AndroidModule.class,
library = true
)
public class ActivityModule {
private static final String TAG = "Activity_Module";
private final DemoBaseA... | |
doc_17479 | I got this error when I try to import data.
Referencing column 'originator_id' and referenced column 'name' in foreign key constraint 'fk_rails_79d8c4ccda' are incompatible.
DROP TABLE IF EXISTS `loan_fee_shares`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb... | |
doc_17480 | To do this, I would like to, loop through all rows. For a given row (which I'll refer to as the original row), if prev_count == '3--2' I then want to
*
*step down dataframe rows to where prev_count != '3--2'
*confirm that row has the same batter-pitcher identifier as the original row
*once in a row that satisfies ... | |
doc_17481 | When I test the server running locally with only a single connection, sometimes it takes up to 0.5 seconds from when I map the grequest to when urllib3 logs that it is starting the connection. It is not consistent, mostly it makes the request within 0.05s, but occasionally it is much longer.
I am logging the time it t... | |
doc_17482 | My class name is "event"
Objects I would like to pull into detailView:"category" (successful)
But also: "createdAt" "comment" and "duration(int)"
My PFTableViewController:
import UIKit; import Parse
class UserRecordsTableViewController: PFQueryTableViewController {
// Initialise the PFQueryTable tableview
ov... | |
doc_17483 | I am currently working on a wordpress multisite project. I have set up a working environment in localhost. In the main menu there is a links to home, so is in subdirectory sites. Now my problem is everything works find in testing server environments as the main site URL is myhost/xx/wordpress_site and sub directory sit... | |
doc_17484 | You can define a first line, left and right indent. I want to insert a negative number for the first line indent as that's actually what I wanted to achieve. It's showing me an error message saying the I have to enter a number between 0 and 11.75.
A: It's very confusing, but I've finally figured it out.
You actually c... | |
doc_17485 | Is it possible to change that blue color of the switch which belongs to a SwitchPreference and the radio buttons, line and title of the dialog which belongs to the ListPreference by assigning own colors to style-attributes ?
My base theme is Theme.Holo by the way.
A: Any particular reason you do not want to use AppCo... | |
doc_17486 | I can do:
gradle cleanTest test
followed by
gradle jacocoTestReport
and get code coverage
This means two steps. Is there any way, I can just pass a switch to gradle test and get it
A: https://docs.gradle.org/current/userguide/jacoco_plugin.html
If the Java plugin is also applied to your project, a new task named
ja... | |
doc_17487 | Firstly, I have been debating whether authentication should be handled server side or client side but have come to a decision that the PHP could handle this much more easily. For instance, when a user sends a bid via ajax to a php file on the server this will then check if the user is logged in and then then sanitise t... | |
doc_17488 | protected void Button1_Click(object sender, EventArgs e)
{
string strScript = "if(confirm('Do you confirm?')){alert('OK'); }else{alert('cancel')}";
Page.ClientScript.RegisterClientScriptBlock(typeof(Page), "Confirmation", strScript, true);
}
protected void Button2_Click(object sender, EventArgs e)
{
string... | |
doc_17489 |
A: It's not possible to restore a deleted resource group.
You can submit a support request to Microsoft, but unfortunately they won't be able to help you.
Resource Group deletion is irreversible.
| |
doc_17490 |
A: Add the excel file to the project. Go to solution explorer and right click on the excel file and select properties. Change the Copy to Output Directory to Copy Always. Now the file will be in the same directory as your exe. You can use Reflection.Assembly.GetExecutingAssembly to get the directory.
To add the file t... | |
doc_17491 |
A: I managed to solve the problem by uncheck the option for Reuse the types in referenced assemblies in Data Type Options
| |
doc_17492 | string searchForText = txtCrudSearch.Text;
dgvLoadTable.ClearSelection();
dgvLoadTable.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
try
{
foreach (DataGridViewRow row in dgvLoadTable.Rows)
{
if (row.Cells[cboCrudSearchColumn.Sel... | |
doc_17493 | Here is the html:
<s:iterator value="result">
<tr>
<td><s:property value="timestamp"/></td>
<td><s:property value="targetId"/></td>
<td><s:property value="sourceIp"/></td>
<td><s:property value="transactionType"/></td>
<td><s:property value="status"/></td>
</tr>
</s:iterator>
"result" is defined in the java controller... | |
doc_17494 |
*
*Setup a regional rest API Gateway
*Configured GET method /test/v1/health (test is stage name)
*Deployed API
*
*I can access it using the URL https://.execute-api..amazonaws.com/test
*I can make calls to https://api-id.execute-api.region.amazonaws.com/test/v1/health and it is all good
*Setup a regional cus... | |
doc_17495 | IgniteConfiguration cfg = new IgniteConfiguration();
cfg.setClientMode(true);
TcpDiscoverySpi spi = new TcpDiscoverySpi();
TcpDiscoveryMulticastIpFinder ipFinder = new TcpDiscoveryMulticastIpFinder();
ipFinder.setMulticastGroup("127.0.0.1");
// Set initial IP addresses.
// Note that you can optionally specify a port or... | |
doc_17496 | I have two working trees I switch between frequently so I added a .git file in the secondary work tree pointing to the repository directory. However since the repository's config file points to the primary working tree, I still have to specify it explicitly, otherwise it uses the primary working tree.
I tried setting t... | |
doc_17497 | The publisher works fine, I can see my messages on the web manager of rabbitMq.
When I try to run a consumer using the command
php app/console rabbitmq:consumer my.api
I get the following error:
Call to undefined method My\ApiBundle\Service\ConsumerService::setRoutingKey() in /***/vendor/oldsound/rabbitmq-bundle/OldSo... | |
doc_17498 | import java.io.IOException;
import jpcap.JpcapCaptor;
import jpcap.NetworkInterface;
import jpcap.NetworkInterfaceAddress;
import jpcap.packet.Packet;
public class JavaApplication1 {
public static void main(String[] args){
printNetworkInterfaces();
captureFromNetworkInterface();... | |
doc_17499 | I am using a custom django-filter in django-tables2 to search all fields with a single input. Ive just noticed that when I search I lose my pagination menu.
this is the link to the filter code https://spapas.github.io/2016/09/12/django-split-query/
here's my filter
class SiteFilterEx(django_filters.FilterSet):
ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.