id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_25700 | The problem with manually 're-observing' elements is that the callback is never called if the element is already within intersection bounds.
Some pseudo-code for example:
IS.callback = function(entries, observer){
for (var entry in entries)
{
if (activity && entries.hasOwnProperty(entry))
{
... | |
doc_25701 | Now the problem is getprofile.php showed nothing and displayed 0 results, however i tried to put static data in getprofile.php it is working properly and can show profile data from mysql, can anyone enlighten me what is missing?
from search page user can click this link:
<td><a href="getprofile.php?'.$field2name.'" tar... | |
doc_25702 | I've created an app that has two buttons that show you the present date and time, when opened in the Android Emulator and clicked there is no text shown below the buttons as it should be. I'm using TextView below the buttons to display the output. Here's the code from my main.xml and activity respectively.
main.xml
<?x... | |
doc_25703 | Traceback (most recent call last):
File "python", line 130, in <module>
File "python", line 111, in encounterModule
File "python", line 100, in CombatModule
TypeError: 'int' object is not callable
#Combat/exp system test of concept
import time
print("Welcome to the Combat Concept Testing Module!")
print("W... | |
doc_25704 |
client.on('message', function(message) {
if (message.content === 'msg-1')
client.channels.cache.get('Channel_id').send('msg-2')
}
});
How to make the code send a specific message on a specific message in node.js I tried the code above but it don't work this is my first code in node.js so there could be silly mista... | |
doc_25705 | I have a vehicle model, and when I create a new vehicle object, the name of vehicles just says Vehicle object (1) How can I change my model, or serializer (or something else) so that will show some unique value of the object.
Here is my model:
class Vehicle(models.Model):
make = models.CharField(max_length=100, bl... | |
doc_25706 | use v5.18;
use YAML::XS;
use threads;
use threads::shared;
use Data::Dumper;
my $href1 = shared_clone({
anotherRef => shared_clone({})
});
$href1->{anotherRef}{test} = &share({});
print Dumper $href1;
my $path = "./test.yaml";
open TAG_YAML, '>', $path;
print TAG_YAML Dump($href1);
close TAG_YAML;
1;
and ... | |
doc_25707 |
And want to clear value when user press 'Delete' button
My code:
var handleDateKeyDown = () => {
$('input[kendo-date-picker]').each((i, el) => {
$(el).keydown((ev) => {
ev.preventDefault();
if (ev.key === "Delete") {
$(el).data("kendoDatePicke... | |
doc_25708 |
int main() {
double p = 10.3;
void *j = &p;
*((int*) j) = 2;
printf("%i: %p\n", *((int *)j), &p);
printf("%i: %p\n", (int)p, &p);
return 0;
}
So apparently, I think this is what happens, and I am sure I am not right:
Assume that a double is 8 bytes and an int is 4 bytes.
When I cast j to int* and assi... | |
doc_25709 | File inside my main project:
struct MyConstants {
static let = MaxChars = 100
}
In Share Extension:
import UIKit
import Social
class ShareViewController: SLComposeServiceViewController {
let maxCharactersAllowed = MyConstants.MaxChars // Basically what I want to do
}
A: It should be as easy as adding the fi... | |
doc_25710 | enum class Type {A, B, C};
struct Object {Type type;};
Object* objs[N];
int count = 0;
#define addobj(ptr) objs[count++] = (Object*)ptr
struct A {
Type type;
int prop1;
A(int v) : type(Type::A), prop1(v) {addobj(this);}
};
struct B {
Type type;
int prop1;
B(int v) : type(Type::B), prop1(v) {a... | |
doc_25711 | But i am unable to send_keys to the file input. the code below however opens up the browse file window (this only happens in IE, not firefox)
Is there a way using only IE, where I can send_keys to the html input or on a worst case scenario where I can send_keys to the Pop up browse window and then click on open?
html... | |
doc_25712 | const funcOne = (param1, param2) => console.param1(param2);
funcOne(log, `hello there`);
obviously the above doesnt work, just bring an example, same as below:
const mongoFunc = param, filter => Collection.param(filter, (err, foundArticle) => {
// code block
});
this will work:
const funcOne = (param1, param2) => co... | |
doc_25713 | if (!jTextField9.getText().equals("")){
String reportID = jTextField9.getText();
try{
// Report pull code //"cmd /c omp -u admin -w admin --xml=\"<start_task task_id='" + taskId + "'/>\"";
final String dosCommand = "cmd /c omp -u admin -w admin --xml=\"<get_reports report_id='" + rep... | |
doc_25714 | I would need some help with extracting values from different edges into a tibble.
For example, in from the screenshot, Open to Pending User Info is 46.44 hours, Work in Progress to Closed is 1.28 hours.
Output would be:
From | To | Value
Open | Pending User Info | 46.44
Work in Pr... | |
doc_25715 | bootstrap version : 3.0.3
ol version: 2.13.1
This does not help http://openlayers.org/dev/examples/bootstrap.html
<!DOCTYPE html>
<html lang="en" class="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta nam... | |
doc_25716 | A->B
B->A
If a friendship is stored only one way, then that would mean that a friendship hasn't been confirmed yet, or removed or whatsoever.
The only thing I am wondering now is how to query this?
If I'm querying all a user's friends. How do I get only the confirmed friendships? Do I sort out the unconfirmed friendshi... | |
doc_25717 | I tried to delete the gen folder, cleaned the project, rebuilt it, but it did no good.
The project runs without facebook, but I have to implement the facebook function to get the project done. Anyone could help?
A: it is probably that there are now two R.java, one in your project and the other one in facebook. Try to ... | |
doc_25718 | ArrayList<String> arrayCurrency = new ArrayList<String>();
ArrayList<Integer> arrayRate = new ArrayList<Integer>();
ArrayList<String> arraySymbol = new ArrayList<String>();
public void loadFile() {
File file = new File("C://Users//me//Documents//TestingAssignment//Assignment 2 Part 2//src/currency2.tx... | |
doc_25719 | This information isn't useful without some code.
In the Category class:
@OneToMany(mappedBy = "category", cascade = CascadeType.ALL)
private List<Post> posts;
In the Post class:
@ManyToOne
@JoinColumn(name = "category_id")
private Category category;
In the Category controller:
@RequestMapping(value = "/{id}/delete"... | |
doc_25720 | var app = module.exports = express();
Does that mean that app is set to a express, and is simultaneously exported? How does Javascript know how to do this? What is the order of evaluation?
A: Per the MDN, the assignment operator = is right-associative, meaning that the operation is executed right-to-left. So this is... | |
doc_25721 | I am making a user registration form, I want to achieve the following visual effect:
When a TextFormField is normal on the form, it looks like this:
But I want the following, when the textformfield is in "focus". When the user is typing it looks like this:
This is my average textFormField
TextFormField(
... | |
doc_25722 | I have an HTML5 video playing on loop. It automatically starts playing when the visitor lands on the website. It is normally served one time to the user, but what is to prevent anyone from completely disabling cache and the video being served to them again every time it ends and tries to loop?
The reason I ask is beca... | |
doc_25723 | I have a very long code inside onCrate() in a activity. At the beginning of the long code, I need to judge if the net is bad, if yes, return and skip the remaining code.
I understand I cannot judge the net in UI thread, so I need to use AsyncTask, or Handler&Runnable.
But all tutorial I learned is get the net bad or o... | |
doc_25724 | This is data that I will never query on, as it doesn't need to be queried. It only makes sense if it's like that on the client side. I'm thinking of storing the entire thing as string and then parsing it back to multi array.
Would that be a good approach and would the parsing be very expensive considering I can have a ... | |
doc_25725 | My app.component.html is
`<div *ngFor="let product of data.products" style="text-align:center">
<div>
{{ product.id }}
{{ product.product_name }}
</div>`
and my app.component.ts is
export class AppComponent {
title = 'Isham-ColdBanana';
public data:any = []
constructor(private h... | |
doc_25726 | const CustomImageSlider = () => {
return (
<CustomImageSliderContainer>
<SwiperWrapper className="swiper-container">
<Swiper
modules={[Navigation]}
navigation
effect="slide"
speed={300}
slidesPerView={9}
spaceBetween={8}
loop
... | |
doc_25727 | from collections import deque
stack = deque()
#dir(stack)
#use a stack to see if an input string has a balanced set of parentheses
#function that tells which parentheses should match. will be used later
def is_match(paren1, paren2):
#dictionary for more efficiency rather than a bunch of conditionals
#match_dict = {
... | |
doc_25728 | @page
@model RegisterConfirmationModel
@using LazZiya.ExpressLocalization
@inject ISharedCultureLocalizer _loc
@{
ViewData["Title"] = _loc[Model.PageTabTitle];
}
@section header_image{
<div class="bg-img-non-home" id="RegisterPageBanner">
}
@section header_content{
<div class="container-title">
<di... | |
doc_25729 | I have a path's coordinates and I'd like to determine wether a random point is inside or outside the path.
Here's an example of a path's coordinates:
"M673 460 c2 0 4 -1 5 -2 1 -1 2 -2 2 -4 0 -2 0 -3 0 -3 0 0 -3 1 -5 1 -3 1 -5 2 -5 3 0 1 0 3 0 4 1 0 2 1 3 1z:"
I'm aware of the CoreGraphics's containsPoint: method, but... | |
doc_25730 | What i am trying to archieve is that, i want Raycaster to stay always in center, like when i move my camera and look other direction i want Raycaster to stay in center and update please help me.
I am using FirstPersonControls, This is the code i have with raycasting
'''
var raycaster = new THREE.Raycaster();
var arrow ... | |
doc_25731 | FooLayout.prototype.init = function() {
this.addStyleClass('fooCssClass');
};
This will work assuming writeClasses is executed during rendering:
oRenderManager.writeClasses();
--
There is another RenderManager function writeStyles which can add in-line styles to the html string buffer:
oRenderManager.addStyle("co... | |
doc_25732 | Example:
**ALTER Table [dbo].[Settings] ALTER column [Explore] bit set Default ((0))**
The above query I put to alter the column with default value false, but I run the query it show the error "incorrect syntax near the keyword 'set'" or "Incorrect syntax near the keyword 'Default'."
A: To add default constraint to... | |
doc_25733 |
[INFO] Statistics HQL: null, time: 1724ms, rows: blah
Can someone help me in any way with WHY a null query is taking around 1800ms? Also, how can a null query be generated?
| |
doc_25734 | If I create a simple python script and create a pool like so:
import multiprocessing
pool = multiprocessing.Pool()
print "made a pool"
while True:
pass
when I run the script I see "made a pool" printed 8 times, which would be the default number of processes created by Pool() as I have 8 cores on my machine.
When... | |
doc_25735 | dic={"gene":{"isoform1":positions1,"isoform2":positions2}, "gene2":{"isoform1:positions1, "isoform2":positions2...etc}
I was able to get the isoforms and positions into one dictionary as so:
Dictionary = dict(zip(Isoform, ExonPos))
However, I don't know how to add the gene name as the key to the dictionary of Isoform... | |
doc_25736 | {
"customizedData":[
{
"key":"SubscriptionId",
"value":"xxxxxxxxxxxxxxxx"
},
{
"key":"OfferId",
"value":"xxxxxxxxxxxxxx"
},
{
"key":"SubscriptionName",
"value":"DYNAMICS 365 BUSINESS CENTRAL TEAM MEMBER"
},
{
"ke... | |
doc_25737 | I'm on a linux server (Ubuntu 14.04 LTS) and I have a java application that calls another one to do some operation, the first one runs with no problem, but the second one use GUI and when I call it I get the infamous error " No X11 DISPLAY variable was set, but this program performed an operation which requires it. ". ... | |
doc_25738 | Consider this example code:
import Control.Monad.Reader
data Env = Env
{ eInt :: Int
, eStr :: String
}
calculateR :: Reader Env Int
calculateR = do
e <- ask
return $ eInt e
calculate :: Env -> Int
calculate = eInt
main :: IO ()
main = do
let env = Env { eInt = 1, eStr = "hell... | |
doc_25739 | Users
*
*Id
*Username
Tags
*
*Id
*UserId
*Title
Bookmarks
*
*Id
*UserId
*Title
*Link
TagsBookmarks (junction table)
*
*TagId
*BookmarkId
I have a reference to an UserId in Tags and Bookmarks table. Is this normalized? The reason I do this is because I sometimes need to load a list of tags tha... | |
doc_25740 | Here is a link to the answer
https://stackoverflow.com/a/42385128
Errors that am getting.
mUMA (cannot resolve symbol)
Fi (cannot resolve symbol)
mCM(cannot resolve symbol)
FCR (cannot resolve symbol)
getAbsolutePath() (cannot resolve method)
photoFile (fromFile (java.io.File) in Uri cannot be applied to (Fi))
... | |
doc_25741 | $query110 = "SELECT * FROM tbl_pacientes_agendamento
WHERE id_consultorio='".$_GET['consultorio']."' AND id_medico='".$_GET['medico']."'";
$result110 = mysql_query($query110);
while($fetch110 = mysql_fetch_assoc($result110)){
$conta_array = $conta_array + 1;
$array_horario[] = $fetch110['horario'];... | |
doc_25742 |
*
*I would like to avoid using 'As alias_name' and use original column name
*My tables have no common ID columns
*Both my select statements returns 1 row each (1 row from Table A and 1 row from Table B)
*I just want to take my result from first select statement and join the result with second select statement to ... | |
doc_25743 | So the string value is: 89,333,22.2345
So i want to keep all decimal places and convert it to: 8933322.2345.
I tried the following query:
select to_number(replace(nvl(89,333,22.2345),0),',','') from dual;
This rounds it to 893322. But i want result with all decimals:
If i try running this query:
select to_number((repl... | |
doc_25744 | I tried to test the speeds of the three methods in a basic capacity with this:
#include "stdafx.h"
#include "stdlib.h"
#include "stdio.h"
#include "time.h"
int _tmain(int argc, _TCHAR* argv[])
{
const unsigned long long ARR_SIZ = 0x4fffffff;
clock_t val_init_dur, calloc_dur, manual_dur;
clock_t cur = clock();
... | |
doc_25745 |
A: There are 2 ways to connect to a database from python:
*
*An ORM like SQLAlchemy
*A database driver/adapter like psycopg2
These are two completely different things:
*
*SQLAlchemy generates SQL statements, and
*psycopg2 directly sends SQL statements to the database.
Note: SQLAlchemy depends on psycopg2 or ... | |
doc_25746 |
This is highly annoying and is making the development very slow. Is this expected, am I missing something, are there any configurations that should be updated.
Continuing further investigation, I created a simple node app from shopify cli, no personal code added, just plain barebone app created by shopify cli, on serv... | |
doc_25747 | public class BirthDateAttribute : ValidationAttribute
{
public string ErrorCode { get; set; }
....
}
public class ValidateModelAttribute : ActionFilterAttribute
{
public override void OnActionExecuting(HttpActionContext actionContext)
{
if (!actionContext.ModelState.IsValid)
... | |
doc_25748 | BotChat.App({
directLine: { secret: "{directline_secret}" },
user: { id: 'You', referrer: window.location.href},
bot: { id: '{bot_id}' },
resize: 'detect'
}, document.getElementById("bot"));
and I was able to get the referrer with this line of code activity.From.Properties["referre... | |
doc_25749 |
A: You can ignore all database properties during a dacpac publish... you can't specify which properties to ignore but they can all be ignored using /p:ScriptDatabaseOptions=False with sqlpackage.exe, for example
| |
doc_25750 | df['start_with_punct']=df['name'].str.startswith(string.punctuation)
I get False when the names actually start with punctuation.
Example of data is
Name
_faerrar_
!gfaherr_!£
nafjetes_
Expected output
Name start_with_punct
_faerrar_ True
!gfaherr_!£ True
nafjetes_ False
... | |
doc_25751 | var jsondata="{'job_media','job_quote','job_invoice', 'job_client','created_by', 'job_status', 'job_source', 'job_job_template_name', 'job_job_template_data'}";
Jobs.findOne({
attributes: [jsondata],
where: { job_id: id}
});
But it's not working, we can change JSON data in any style but should be JSON.
A: T... | |
doc_25752 | i tried with struct gave me type error
i also tried it parsing it.. but i dont know what to do next..
please help..
here's arduino code
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
float f;
void loop() {
// put your main code here, to run repeatedly:
if(Serial.available()) {
... | |
doc_25753 | namespace App\Enum;
enum HomeStatus: string
{
case RENT = 'rent';
case MOVE_IN = 'move_in';
case SOLD = 'sold';
case COMING_SOON = 'coming_soon';
}
The code above is executing and working but the editor has the following error:
Unexpected 'Name'. Expected ';'.intelephense(1001)
I am using Intelephense... | |
doc_25754 | A perfect example of what I want to achieve is what Whatsapp and Telegram do when they manage to run their mobile or desktop apps after a click on a website button.
*
*Whatsapp (A click on Continue to Chat will open the WhatsApp app);
*Telegram (A click on VIEW IN TELEGRAM will open the Telegram app);
A: Use Win... | |
doc_25755 | Rules for game of life in short:
*
*one cell has eight neighbor cells
*a cell gets alive as soon as a cell has three living neighbor cells
*a cell just survives if it has exactly two or three living neighbor cells
But how to initialize a grid with a determined size? Is there a rule how to exactly initialize som... | |
doc_25756 | ═════ Exception caught by services library ══════════════════════════════════
The following assertion was thrown during a platform message callback:
"Attempted to send a key down event when no keys are in keysPressed. This state can occur if the key event being sent doesn't properly set its modifier flags. This was... | |
doc_25757 | I've seen similar problems, but I have no idea how to fix this on Windows.
I have APP_ENV=local and APP_DEBUG=true.
A: In your .env file, make sure you set APP_DEBUG=true
APP_ENV=local
APP_DEBUG=true
Then run
php artisan config:cache
php artisan config:clear
Sometimes, after running these two commands, Laravel stil... | |
doc_25758 | I anticipate that I'll be able to accomplish my goal by joining series of threshholded images in binary form into numpy/scipy arrays ([image1,image2,...imageN]) and feeding the object into some sort of a display function. Does anyone know of a function that fits this description?
I apologize if my question is poorly ar... | |
doc_25759 | Versions:
*
*npm - 8.10.0
*node - 16.13.0
*react - ^18.1.0
*react-dom - ^18.1.0
*react-router-dom - ^5.2.0
*react-scripts - 5.0.1
Errors:
Uncaught TypeError: Cannot read properties of undefined (reading 'pathname')
at Router (components.tsx:197:1)
at renderWithHooks (react-dom.development.js:16175:1)
... | |
doc_25760 | <FilesMatch "\.pdf$">
Order Allow,Deny
Deny from all
</FilesMatch>
However I want a subfolder on the server that contains PHP scripts to be able to link to these PDF files. Note; I don't want php to be able to read the files internally within the server, but for http requests directly linking these restricted files... | |
doc_25761 | This is the code I use to measure the time of the writing to file.
public class Test extends AndroidTestCase {
private DecimalFormat decimalFormat = new DecimalFormat("#.##");
private final Boolean isInternal = true;
public void testWrite() {
Thread thread = new Thread() {
public void run() {
... | |
doc_25762 | http://localhost/pa/news.php?post=2/test-title-test
news.php? = news template
2 in (post =2 ) = post id in mysql
and test-title-test is article title
i want to get only post id to use it on mysql order and load content order by id
http://localhost/pa/news.php?post=2/test-title-test
when i trying to use $id = $_GET['p... | |
doc_25763 | $(".click").click(function() {
var randomColors = ["ful","reg","emp"];
$(".hexagon").each(function(index) {
var len = randomColors.length;
var randomNum = Math.floor(Math.random()*len);
$(this).addClass(randomColors[randomNum]);
});
});
so .click adds ful reg or emp to my .hexagon d... | |
doc_25764 | ||
doc_25765 | [textField tap];
[textField typeText:@"123"];
XCUIElement *textField2 = [[element childrenMatchingType:XCUIElementTypeTextField] elementBoundByIndex:1];
[textField2 tap];
XCTAssertTrue(textField2.exists, @"TextField2 is not exist");
[textField2 tap];
[textField2 typeText:@"123"];
XCTAssertEqual(textField2.value, ... | |
doc_25766 | Now, I'll upgrade to Angular 6 with full response with HttpClient.
i'll try to {observe: 'response'} params in HttpInterceptor
my code like below
import { Injectable } from '@angular/core';
import {
HttpRequest,
HttpHandler,
HttpEvent,
HttpInterceptor
} from '@angular/common/http';
import { AuthService } from '... | |
doc_25767 | I am trying to restore a table I dumped to its current location. The table was dumped using:
pg_dump -t table db > table.sql -U username
Trying to restore, I'm using:
pg_restore -c --dbname=db --table=table table.sql
I am using -c since the table currently exists and has data, however it returns:
pg_restore: [arc... | |
doc_25768 | It appears no matter what size my cards are, they will only put 3/row but I am trying to get like 4/5 per row. I am just using the basic component with no extra css. How can I force it to put more cards there?
<CardColumns style={{padding:20}}>
{featuredData1.map(function(featuredListing, i){
... | |
doc_25769 | string pattern = @"(?i)(<!-- START -->)(.*?)(?i)(<!-- END -->)";
string input = @"Hello
<!-- START -->
is there anyone out there?
<!-- END -->";
Match match = Regex.Match(input, pattern, RegexOptions.Multiline);
if (match.Success) //-- FALSE!
{
string found = match.Groups[1].Value;
Console.WriteLin... | |
doc_25770 | Structure of the text file:
Title (number of books) Country
Date time (author) Page number CODES letter,letter...
Notes
An example of the content, showing the first 3 items:
Pride and Prejudice (5) United Kingdom
1981 10:23 h (Jane Austen) Page 241 CODES OB,IT,CA
Deposited by the G.M.W.
Brave New World (2) United Kin... | |
doc_25771 | The background elements has z-index 333.
On all elements on the site i can make the backround be behind or in front of the elements by using z-indexes below or over this.
But i have problems with my header.
I have a header with fixed position and z-index 232 to have the backgrounds be seen over it.
However, in the head... | |
doc_25772 |
A: Sure. Both available.packages() and installed.packages() have it:
R> AP <- available.packages()
R> dim(AP)
[1] 6793 17
R> AP[1:5, c("Depends", "Imports", "LinkingTo")] ... | |
doc_25773 | if i send push notification from firebase console i will receive notification but using Payload it will not receive notification.
exports.likeFunction = functions.firestore.document("Likes/{UserLikeId}/userLikes/{meId}").onCreate(async (snapshot, context) => {
if (!snapshot.exists) {
console.log('No Device'... | |
doc_25774 | -----------------------------
-- ID | DATE --
-- 01 | 1577836799998 --
-- 02 | 1577836799999 --
-- 03 | 1577836800000 --
-- 04 | 1577836800001 --
-----------------------------
I wish to select all data IDs relative to a timestamp. Is it more efficient to convert the timestamp (1) befo... | |
doc_25775 | here is the code :
import os
import json
import sys
import boto3
from boto3 import client
from botocore.utils import fix_s3_host
def listbucketandobjects () :
with open("credentials.json", 'r') as f:
data = json.loads(f.read())
bucket_target = data["aws"]["targetBucket"]
s3ressource = clie... | |
doc_25776 | sed 's/draw($prev_number;n_)/draw($number;n_)/g' file.txt > tmp
This will be in a for loop. Why is it not working?
A: This may help:
sed "s/draw($prev_number;n_)/draw($number;n_)/g"
A: Variables within single quotes are not expanded, but within double quotes they are. Use double quotes in this case.
sed "s/draw($p... | |
doc_25777 | You can see in this Animation Gif of my app that animEnter works fine but animExit does not.
Is this due to popUpTo and popUpToInclusive?
<fragment
android:id="@+id/usersFragment"
android:name="com.shoaib.firebasechatapp.fragment.UsersFragment"
android:label="fragment_users"
tools:layout... | |
doc_25778 | I hope some will help me in clearing this issue,Thanks.
A: You can use [[self navigationController] popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];
You should change the objectAtIndex accordingly, in my example it goes to the 2nd view.
| |
doc_25779 | some of the next month day's value is encountered in current month calendar. I have tried with css background color and z-index properties but didn't succeed.
When I inspect it in the developer tools I see two tr with:
<tr>
<td class="day disabled">27</td>
<td class="day disabled">28</td>
<td class="day">29</t... | |
doc_25780 | events: [{
"id": "123",
"key": "1",
"type": "academic",
"time": "2015 - 2016",
"title": " MSc in Software Engineering",
"place": "University of Oxford",
"location": "Oxford, United Kingdom",
"description": "Lorem impsum",
"gallery": []
},
{
"id": "234"... | |
doc_25781 | for example if i have the following datatype,
id count A count B variable A variable sum
AAA 6 34 AA AA 10
123 15 19 RA RA 25
AAA 61 04 AA AA 85
123 1 91 RS ... | |
doc_25782 | There are about 10 million rows in old_emails.tsv and about 1.5 million rows in new_emails.tsv. I want to create a new .tsv file of email addresses that are in the old_emails.tsv but not in the new_emails.tsv. The reason for this is because in a later step I need to remove that set of emails from my MySQL database.
Th... | |
doc_25783 |
I want to check if a given directory contains an ".mdf" database and if it does, check whether it is attached on the selected server instance. If the database is attached I display an image against that node, and a different image if it is not attached. Note: The images are .png format, size 32x32...
I populate an Ima... | |
doc_25784 | arrInt ..... is an array of integers and
listArr()...is a dynamic list of integer arrays
arrInt = {1, 2}
listArr.add(arrInt)
arrInt = {3, 4}
listArr.add(arrInt)
result:
listArr(0) = {1, 2}
listArr(1) = {3, 4}
although i was certain the result was going to be:
listArr(0) = {3, 4}
listArr(1) = {3, 4}
this would sugg... | |
doc_25785 | List<MyUserControl> form = new List<MyUserControl>();
for (int x = 0; x < dt.Rows.Count; x++)
{
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 200));
if (x == 0)
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.AutoSize));
form.Add(new MyUserControl());
}
for (int x = 0;... | |
doc_25786 | Ideally the correct width for landscape would be helpful.
A: *
*The dimensions of ISO A4 size are:
*
*Portrait: 210mm x 297mm (width x height) -- in PostScript points: 595x842
*Landscape: 297mm x 210mm (height x width) -- in PostScript points: 842x595
*The dimensions for Letter size are:
*
*Portrait: 216mm x... | |
doc_25787 | My database has a field where it stores values of type A B C and more.. How can I know how many times is the letter A B and C repeated?
I would like to have a result similar to this:
Letter Total sum
A 4
B 12
C 192
D 50
A: Presumably, this is a group by query:
select letter, count(*)
from t... | |
doc_25788 | I've tried using negative margins on the navbar and/or container that holds the background image but everything so far has come with negative side-effects.
I'm sure there is a simple way to do this, even with the particular navbar I've chosen to use from Bootstrap, but I'm not having much luck.
UPDATE:
changing the nav... | |
doc_25789 | Sample data:
nl <- 768
s <- brick(nrows = 510, ncols = 1068,
xmn = -180, xmx = 180, ymn = -90, ymx = 90,
crs = "+proj=longlat +datum=WGS84",
nl = nl,values=TRUE)
dates <- seq(as.Date("1950-01-01"), as.Date("2013-12-31"), by = "month")
s... | |
doc_25790 | The web.config file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="RemoveTrailingSlash" stopProcessing="true">
<match url="^(.*?)/+$" />
<co... | |
doc_25791 | What can I do to restore function to emacs and save my file?
Here is my init.el
;; init.el --- Emacs configuration
;; INSTALL PACKAGES
;; --------------------------------------
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("marmalade" ... | |
doc_25792 | <FOO_CODE>ACPRE</FOO_CODE>
<FOO_SCORE>100</FOO_SCORE>
However, it's possible that the FOO_CODE will be different for each different XML file, so I would like to use an 'or' statement in the XSL transformation. My XSL looks like this:
<xsl:for-each select="FOO_CODE">
<xsl:choose>
... | |
doc_25793 | Now the first problem is the number recognition...
Considering that "*" does not work, and that it is not possible to add all numbers as concept....It is a problem.
I can write a concept composition to make recognize numbers in letters (not in numbers), e.g. "one hundred twenty one" instead of 121. Now I don't know how... | |
doc_25794 |
A: As in other Unixes, it's a feature of the filesystem. Either the filesystem supports it for ALL files or it doesn't. Unlike Win32, you don't have to do anything special to make it happen. Also unlike Win32, there is no performance penalty for using a sparse file.
On MacOS, the default filesystem is HFS+ which do... | |
doc_25795 | my code like this:
Dim sqlcombo As String
sqlcombo = "Select F_Cat_name from T_Category"
da = New SqlDataAdapter(sqlcombo, conn)
ds = New DataSet
da.Fill(ds)
dt = ds.Tables(0)
Dim dgvcc As New DataGridViewComboBoxCell
With dgvcc
.DataSource = ds
.ValueMember = "F_Cat_name"
.DisplayMember = "F_Cat_name"
End... | |
doc_25796 | library(tidyverse)
d = tibble(a = c("Tom", "Mary", "Ben", "Jane", "Lucas", "Mark"),
b = c(NA, 3, 6, NA, 5, NA),
c = c(2, NA, 6, 7, 1, 9))
d
Output should have an extra column with values as follows: 1, 1, 2, 1, 2, 1
Tidyverse solutions are especially appreciated!
A: A possible solution:
libra... | |
doc_25797 | I have 2 Xml files for the same activity. One that contains a ListView and the second as my custom layout for an ArrayAdapter that populates a ListView which is also included on my first layout:
<include android:id="@+id/lv" layout="@layout/lv_row" />
ListView Custom Layout (lv_row.xml):
<RelativeLayout xmlns:android=... | |
doc_25798 | function setPush_Notification($device_Ids, $message) {
$url = "https://android.googleapis.com/gcm/send";
$GOOGLE_API_KEY = "MY_API_KEY";
$fields = array('registration_ids' => $device_Ids,
'data' => $message,
);
$headers = array(
'Authorization: key=' . $GOOGLE_API_KEY,
'Content-Type: application/json'
);
$... | |
doc_25799 | /First/Second/Third/Fourth/Fifth
and I would like to remove the First from it, thus obtaining
Second/Third/Fourth/Fifth
The only idea I could come up with is to use recursively os.path.split but this does not seem optimal. Is there a better solution?
A: A bit like another answer, taking advantage of os.path :
os.pat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.