id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_23527200 | a = [
['A','B','C','D'],
[None,None,2,None],
[None,1,None,None],
[None,None,8,None],
['W','R',5,'Q'],
['H','S','X','V'],
[None,None,None,7]
]
The expected output would be like this:
b = [
['A','B','C','D'],
['A','B',2,'D'],
['A',1,'C',... | |
doc_23527201 | I am running jquery 2.2.2 at the moment with the jquery validation plugin. https://jqueryvalidation.org/
And Trumbowyg WYSIWYG Editor. https://alex-d.github.io/Trumbowyg/
It's great mostly everything works however, every time a use clicks or does anything really. You get the console error Uncaught TypeError: Cannot re... | |
doc_23527202 | Optional<College> college = Optional.ofNullable(student)
.map(stud -> stud.getCollege())
.get()
.stream()
.filter(college -> Objects.nonNull(college.getCollegeName()))
.findFirst();
Now, while writing an unit test, I got a catch that what if student comes as null?
It would be e... | |
doc_23527203 | et6.setOnKeyListener((v, keyCode, event) -> {
if (keyCode == KeyEvent.KEYCODE_BACK | keyCode == KeyEvent.KEYCODE_DEL) {
et5.setSelected(true);
et5.requestFocus();
}
return false;
});
Now issue is focus jumps to the edittext 4 instead of edite... | |
doc_23527204 |
A:
Is it possible to overload new operator for allocating something like 2d array in C++?
Yes.
but can I get some code example?
Example:
std::unique_ptr<int[][10]> arr {new int[n][10]};
with given "height" and "width"?
Only if the inner dimensions are compile time constant. Only the outer dimension may be dynam... | |
doc_23527205 | <?php
include './include/DbHandler.php';
$db = new DbHandler();
$response = array();
// echo $_POST['mobile'];
if (isset($_POST['mobile']) && $_POST['mobile'] != '') {
$name = $_POST['name'];
$email = $_POST['email'];
$mobile = $_POST['mobile'];
$otp = rand(100000, 999999);
$res = $db->createUser($name, $email,... | |
doc_23527206 | So, I found HOG descriptor followed by SVM to detect people. This method works very good for pedestrian because of their arms and legs.
My questions are that
Is that method also works good for my situation?
Are there any other methods to count people pass a door?
How can I improve my background subtraction method to ... | |
doc_23527207 |
A: You can always add the individual folder to the TFS through Team Explorer if you cannot do it automatically inside visual studio.
A: As you said you checked in the new project but I think that you did not check in the solution file *.sln.
Each project in your solution is defined in the *.sln file.
simply check in ... | |
doc_23527208 | I am running it on a dual core machine.
The time taken to run using open mp is about 0.05 sec while it takes only 0.03 sec when I run it without openMP.
#include<omp.h>
#include<iostream>
#include<time.h>
using namespace std;
int main()
{
clock_t start=clock();
int i,j,t1,t2, n=1;
float a[1000][1000];
float b[1000][10... | |
doc_23527209 | I know I have to use httpwebrequest or something sounding similar.
Here is the source page snippet of the result.php page
<form action="resultstatus.php" method="post" name="myform" id="myform">
<p align="center">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<span class="style6">Please en... | |
doc_23527210 |
Here I am trying to develop the gray curved background and it fills the lower part of the screen as well. I'm very new to UIBezierPath and I've tried this:
class CurvedView: UIView {
//MARK:- Data Types
//MARK:- View Setup
override func draw(_ rect: CGRect) {
let fillColor: UIColor = .blue
let path = U... | |
doc_23527211 | [[size:'l',color:'red'],[size:'xl',color:'blue']]
to
[{size:'l',color:'red'},{size:'xl',color:'blue'}]
in react js
plz help me to fix it. Thank you in advance
A: First of all , your data is an invalid js structure ,
If you use the last invalid data as string then , at first all key and values should be strings , ap... | |
doc_23527212 | $dirResult = opendir($pathReal);
where path real is string contains path to file, i get error
Warning: opendir(\149.223.22.11\cae\04_Knowledge-base,\149.223.22.11\cae\04_Knowledge-base): Access is denied.
I know, that issue is with user rights in path im trying to acces, thats clear. But what concerns me is why in war... | |
doc_23527213 |
A: path_speed = 0 and path_speed = 100 is not good idea. As example, objects can have different speed. I use speed factor, like speed = normal_speed * k where k is 1 for normal speed and 0 for full stop.
Enemy Create event:
spd = irandom_range(5, 10) // different speed, just as example
path_start(path0, spd, 1, true)
... | |
doc_23527214 | <div id='b'> Berry </div>
<div id='c'> Cherry </div>
$(document).ready(function () {
$(#a).hide;
$(#b).hide;
$(#c).hide;
var arr = ["a", "b", "c"];
var i;
for (i = 0; i < 10; i++) {
for (j = 0; j < arr.length; i++) {
setInterval(function(){ arr[j].show(); }, 10 * 1000);
... | |
doc_23527215 | Warning: require_once(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ... | |
doc_23527216 | 3>LINK : fatal error LNK1101: incorrect MSPDB100.DLL version; recheck installation of this product
for every link step.
What could be different in the environment between password and public-key authentication that's causing this? Note that everything else is identical between a working and failing case - only the au... | |
doc_23527217 | var stringReference = "obj.inner.method";
var namespace = stringReference.split(".");
// Now I need to Call window[namespace].call();
I'm a little confused as to how to build out the function call. The end result should look like this?
window[obj][inner][method].call();
Context:
<div data-attribu... | |
doc_23527218 | I have the following element:
<input type="file" name="file" (change)="fileSelected($event)">
When I look at the event that is passed, I can get the File object using:
fileSelected(ev) {
console.log('file: ', ev.target.files[0]);
console.log('file: ', ev.srcElement.files[0]);
}
But I can't seem to get the content... | |
doc_23527219 | Error: error waiting for EKS Node Group (mvp-eks:mvp-node-group) to create: unexpected state 'CREATE_FAILED', wanted target 'ACTIVE'. last error: 1 error occurred:
│ * i-012d9a73b270a9af9, i-0e4530288f0bd2023, i-0ecfed4fe95fa3e3c: NodeCreationFailure: Instances failed to
join the kubernetes cluster
I'm assumin... | |
doc_23527220 | $('#togglebtn').toggle(function() {
$('#panel').show();
}, function() {
$('#panel').hide();
});
I also have another button to close/hide the panel
$('#otherbtn').click(function() {
$('#panel').hide();
});
All I am trying to say is that when I hide the panel with #otherbtn the event is still active on #togglebtn an... | |
doc_23527221 |
A: I think you are asking for the equivalent to the Perl pack/unpack functions. If that is the case, I suggest you look at the PHP pack/unpack functions:
*
*Unpack
*Pack
A: There is no such thing as a binary array in PHP. All functions requiring byte streams operate on strings. What is it exactly that you want to... | |
doc_23527222 | import pdb
import numpy
b=int(raw_input("b?"))
a=int(raw_input("a?"))
c=int(raw_input("c?"))
pdb.set_trace()
sqrt= ( (b*b) - (4* (a*c))) /(2*a)
x= -b(numpy.sqrt(sqrt))
print x
Can anyone please tell me what's the problem?
`
A: This code:
-b(numpy.sqrt(sqrt))
tries to call a function b() and negates the result.... | |
doc_23527223 | I have done this after days of search but it doesn't work.
I created the following controller :
class SoapsController extends AppController {
var $components = array('RequestHandler');
//listes des model utilisé
public $uses =array('Pompe', 'Serie', 'Fluide','Control');
function service() {
$this->layout = fals... | |
doc_23527224 | I manage to view the list by doing the following
private void LoadFromLocalStorage()
{
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
string[] fileNames = store.GetFileNames();
foreach (string s in fileNames)
... | |
doc_23527225 | I've got following tables:
EMPLEADOS (employees):
+--------+----------+------------+----------+------------+---------+----------+--------+
| EMP_NO | APELLIDO | OFICIO | DIRECTOR | FECHA_ALTA | SALARIO | COMISION | DEP_NO |
+--------+----------+------------+----------+------------+---------+----------+--------+
| ... | |
doc_23527226 | I'd like to have a service that processes user notifications in the background: extracts them from the database, sends them, marks as sent. It would process each item in a separate transaction.
I thought I should create a request scope for each batch item in some way.
How is this possible?
| |
doc_23527227 | <pre>
<!DOCTYPE html>
<html>
<head>
<title>Example</title>
</head>
<body>
<form id="form1" ><input type="text" name="foo.bar" value="test1" /></form>
<form id="form2" >
<input type="text" name="foo.bar" />
<input type="text" name="foo.baz.qux" value... | |
doc_23527228 | I try to Validate an htl file, validate an cq_dialog.When I try to validate an htl file I have an problem with implementation ( it doesn't work), but in cq_dialog.xml file I can only validate an text label once, and I can't change a logic that my validation was change depending which size of text user chose.
This is My... | |
doc_23527229 | USE case : my sql statement car return the string value "ERROR..." for a string field name TEST. The query returns 734 results. My table display all the results.
In the header row i just want to diplay a count of which would be in SQL a count like "ERROR%".
I can't manage to do that whit the aggregation tool !
aggregat... | |
doc_23527230 | I am trying to replace certain occurrences of a string pattern with something else. The problem I do not want to replace all occurrences, just all apart from one.
For example.
Imagine I have the string: '(M:2,Seq0:2):10,Seq1:20,(Seq2:40,Seq3:40)'
The pattern I want to find is: '\w+\d+:\d' (which refer to Seq[number])
... | |
doc_23527231 | " OnCommand=event>
Event
GridDataItem item = (GridDataItem)RadGrid1.Items[Convert.ToInt32(e.CommandArgumrnt)];
I am not sure what index the grid returns when the detailtable button is clicked and every time I try to access a column in that row I get an error saying column does not exist. I tried doing so:
GridData... | |
doc_23527232 | In Java, I can implement a shutdown hook and register it via Runtime.getRuntime().addShutdownHook(). How can I achieve the same in C#?
A: You can attach an event handler to the current application domain's ProcessExit event:
using System;
class Program
{
static void Main(string[] args)
{
AppDomain.Curr... | |
doc_23527233 | Example:
*
*Start Date = 5/1/2018, End Date = 12/31/2019, Interval = 2
Series I am looking for (dates in rows): 7/31/18, 9/30/18, 11/30/18, ... 11/30/19
*Start Date = 1/1/2018, End Date = 12/31/19, Interval = 3
Series I am looking for (dates in rows): 3/31/18, 6/30/18, 9/30/18, 12/31/18...12/21/19
... | |
doc_23527234 | The height of a grid panel header is forcibly set at 28px.
*
*No sass settings
*Header configuration on the panel did not work for me
*Modifying the grid columns height seems to work when configuring < 28px. 28px seems to be the minimum.
This is what I have so far (and it works), but I don't like the solution.
E... | |
doc_23527235 | 5:24:47 PM [Apache] Apache Service detected with wrong path
5:24:47 PM [Apache] Change XAMPP Apache and Control Panel settings or
5:24:47 PM [Apache] Uninstall/disable the other service manually first
5:24:47 PM [Apache] Found Path: "c:\apache24\bin\httpd.exe" -k
runservice
5:24:47 PM [Apache] Expe... | |
doc_23527236 | Absolute values are written as a value between 0.0 and 1.0 while percentage value are written as 0 to 100.
How can I distinguish 1 from 1.0?
If I were to use strings, then it's not a problem for sure...
I would like to keep this configuration simple and not have to rely strings.
Is this possible at all?
RECAP:
a = 1
b ... | |
doc_23527237 | I know how i can add on address to the view. But how do i add all the addresses to one map?
Can every help me please?
Many thanks in advance
Marcus
A: Why are you adding a comma?
<?php $this->GoogleMap->addMarker("map_canvas",1, $atla['Atla']['street'].' '.$atla['Atla']['number'].', '.$atla['Atla']['zipcode'].' '.$at... | |
doc_23527238 | 10-01 01 100
10-01 02 200
10-01 03 300
10-02 01 1000
10-02 02 2000
10-02 03 3000
My table has a daily entry for every id, with a different value per entry.
I need the query to show:
ID Date1Value Date2Value
01 100 1000
02 200 2000
03 300 3000
Date 1 will be DATE_SUB(curdate(), In... | |
doc_23527239 | In the notice of the update of android studio, in red letters as above
Plugin incompatible with the new build found: Firebase Services
I get a warning as above,
I don't understand the meaning.
Does this mean that Firebase related packages will not work after updating android studio?
Should I not update android studio?
... | |
doc_23527240 | Given a graph, find any path from Node1 to Node2 and return a list of the paths, if the paths are many they have to be shown one by one, as in the example output.
A path from N1 to N2 exists if there is a e(N1,N2).
A path from N1 to N2 is valid if N3 can be reached from N1, and then there is a path from N2 to N3, rec... | |
doc_23527241 | __device__ __forceinline__ uint32_t add_cc(uint32_t a, uint32_t b)
{
uint32_t r;
asm volatile ("add.cc.u32 %0, %1, %2;" : "=r"(r) : "r"(a), "r"(b));
return r;
}
I'm porting a CUDA project to HIP-Clang that contains inline PTX assembly. The function is used to implement multi-precision addition in the NVIDIA G... | |
doc_23527242 | My JNI works on one, but not on others.
Up until recently, this application and its JNI was working fine. After not needing to make any updates to the application for a year, I reopened it, and now there is a failure.
This JNI code (with a few name changes to obfuscate the project on a public forum):
void * gTheLibrar... | |
doc_23527243 | const time = "06:15:00"
This is 6:15 am
date.format(time, "h:mm A") // 6:15 AM
I want 6:15 a.m.
date.format(time, "h:mm aa")
doesn't work for some reason
Is there a way?
A: You have to add meridiem plugin
date.plugin('meridiem')
const time = date.parse('06:15:00', 'hh:mm:ss')
console.log(date.format(time, 'hh... | |
doc_23527244 | template<class I, class O>
class Pipeline
{
vector<I> _inputs;
virtual O Execute(void)
{ return foobar( _inputs ) }
};
I would like to implement the operator | (pipe) that combines multiple pipelines together:
EDIT: change code with pointers so that it matches my next code example
// Pipeline* p1, p2, and ... | |
doc_23527245 | var x = new Checkboxes
{
name = "test",
isChecked = false
};
CheckboxList.Add(x);
I bind this property to my checkbox:
@Html.CheckBoxFor(m => m.CheckboxList[0].isChecked)
But when I check on my returned action
I see that the name field is null (h... | |
doc_23527246 | My Gemfile:
gem 'jquery-rails'
gem 'popper_js'
gem 'bootstrap'
My application.js:
//= require jquery
//= require jquery_ujs
//= require rails-ujs
//= require activestorage
//= require turbolinks
//= require popper
//= require bootstrap-sprockets
//= require_tree .
My action_item in:
action_item :query, only: :view_fo... | |
doc_23527247 | I tried downloading shape-files from www.census.gov/ but it does not have any documentation on the granularity of shape-files it does contain. So I am not able to correctly pinpoint on the right set of shape-files I can use
import geopandas as gpd
from shapely.geometry import shape
from shapely.geometry import Point, P... | |
doc_23527248 | My problem is that it calculates based only on the last entered resistance.
Is it possible to declare a method inside a function? or should I give up this completely unpractical approach
#include "stdafx.h"
#include<iostream>
#include<conio.h>
using namespace std;
class rez {
float r;
public:
void set(int n);... | |
doc_23527249 | Found: 1/22/2016
Milliseconds: 1453449600000
ISO: Fri Jan 22 2016 00:00:00 GMT-0800 (PST)
Found: Jan 22 2016
Milliseconds: 1453449600000
ISO: Fri Jan 22 2016 00:00:00 GMT-0800 (PST)
Found: 2016/1/22 03:00
Milliseconds: 1453460400000
ISO: Fri Jan 22 2016 03:00:00 GMT-0800 (PST)
How do I use moment to parse all of the... | |
doc_23527250 | from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
model=AutoModelForSeq2SeqLM.from_pretrained('facebook/bart-large-cnn')
tokenizer=AutoTokenizer.from_pretrained('facebook/bart-large-cnn')
sentence_to_summarize = ['This is a text to summarise. I just went for a walk in the park and saw very large crowds ga... | |
doc_23527251 | mvn dependency:get \
-Dartifact=org.teavm.flavour:teavm-flavour-application:0.1.0-dev-8 \
-DremoteRepositories=teavm::::https://dl.bintray.com/konsoletyper/teavm
Second, I run archetype generation:
mvn -DarchetypeCatalog=local \
-DarchetypeGroupId=org.teavm.flavour \
-DarchetypeArtifactId=teavm-flavour-appl... | |
doc_23527252 | When I put "dist" folder content on a server, there is a console error
"type MIME".
Le chargement du module à l’adresse « http://www.sylvainallain.fr/polyfills-es2015.fd917e7c3ed57f282ee5.js » a été bloqué en raison d’un type MIME interdit (« text/html »).
Le chargement du module à l’adresse « http://www.sylvainallain... | |
doc_23527253 |
A: from http://forum.osdev.org/viewtopic.php?t=16990
The ACPI shutdown is technically a really simple thing all that is needed is a outw(PM1a_CNT, SLP_TYPa | SLP_EN ); and the computer is powered off.
The problem lies in the gathering of these values especially since the SLP_TYPa is in the _S5 object which is in the D... | |
doc_23527254 |
A: The above needs to be typed everytime you set colorscheme. If you wish to avoid it, you should use autocmd.
See https://vi.stackexchange.com/questions/18295/how-to-set-a-colorscheme-that-still-shows-spelling-errors
A: Spelling errors are highlighted using the SpellBad highlighting group. To get it highlighted as ... | |
doc_23527255 | function boldText(matches, text)
{
var pattern = new RegExp(matches.join("|"),"g");
text.replace(pattern,"<b>"+__what to write here?__+ "</b>"
}
However, since it's an HTML file, I don't want to bold anything that's between a less-than-sign and a greater-than-sign. Only stuff outside of HTML tags should be bol... | |
doc_23527256 |
*
*do a put request with the ?resource=file parameters (this creates a file on the ADL)
*append data to the file with the ?action=append&position=<N> parameters
*lastly, you need to flush the data with ?action=flush&position=<FILE_SIZE>
My question is:
Is there a way to tell the server how long the data should liv... | |
doc_23527257 | public function addsession(Request $req)
{
$mod = null;
$latestUserId=Meeting::where('groupID', $req->groupID)
->latest('id')
->first()
?->meetingModerator;
//the first meeting or all the users have already had t... | |
doc_23527258 | If I leave an input box the activeElement is the Window.
If I leave an input box by clicking on a button the activeElement is ... both?
Why does the onfocusout event not register the same activeElement as the button?
Is there anyway I can access the click-on-button event from the function call of the inputbox-leave-ev... | |
doc_23527259 | How can I test that scope.users gets set so my test passes?
controller
angular.module('web').controller('CardsCtrl',function($scope, $http, Users){
/**
* Get all users on page load
*/
Users.find(function(users) {
$scope.users = users;
});
Users service
(function(window, angular, undefined) {'use strict... | |
doc_23527260 | I started my project using Iron Router, but since changed my mind and I'm currently migrating to FlowRouter.
Everything was going smoothly until I started migrating the comments section of my app. You see, this section is reused several times on the app, it serves as a comment section for news, posts, photos, videos, e... | |
doc_23527261 | I used this site (<<<--- link to CSS i am using) to help with some CSS but i can't seem to find the right code block that changes the color of the correct text.
When you compress the webpage so it shows the collapse menu and go to the Dropdown list, you will see that the blue background transfers over to the dropdown m... | |
doc_23527262 | I have a wordpress blog set up in a subdirectory.
The blog sits under www.domain.co.uk/wordpress/
In order for my permalinks to work I did an htaccess rewrite rule which is this
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?domain.co.uk$
RewriteRule ^(/)?$ http://domain.co.uk/wordpress [L]
Is there a way to take o... | |
doc_23527263 | I wanted to know what the [1] does in this code.
Full code:
marksheet=[]
scorelist=[]
if __name__ == '__main_':
for _ in range(int(input())):
name = input()
score = float(input())
marksheet+=[[name,score]]
scorelist+=[score]
b=sorted(list(set(scorelist)))[1]... | |
doc_23527264 | $ docker build --build-args region=us-east-1 .
// Dockerfile
FROM aws.ecr.huge.url.${region}/repo:php-apache
WORKDIR /var/www
RUN echo "@@@"
${region} never gets replaced and I get an error saying the image doesn't exist.
If I RUN echo ${region} it works, the problem seems to be with FROM instruction.
Is there any wa... | |
doc_23527265 | printf("1")
printf("0")
would need to output:
01
Is there a way to do this? I cannot use arrays. To be clear I'm printing in base two (binary) representation using a divide by two algorithm:
for(int i = 0; i < 16; i++){ // 16 bit int
tmp = num % 2;
if(tmp == 1){
printf("1");
} else {
printf(... | |
doc_23527266 | <no location info>: can't find file: test.hs
Failed, modules loaded: none.
My file is named test.hs and this is all the code it contains:
double :: Int -> Int
double x = x + xb
Thanks in advance
/Michael
| |
doc_23527267 | @router.get('/')
#decorator
@roles_decorator("admin")
async def get_items(user_id: str = Depends(get_current_user)):
return await get_all_items()
get_current_user method will need to receive roles from decorator (in this case admin) and from authorization service receive user_id if role matches provided role. So my ... | |
doc_23527268 | labels = np.array([1,7,7,1,7])
keras.utils.to_categorical(labels)
I get this response:
array([[0., 1., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.],
[0., 0., 0., 0., 0., 0., 0., 1.],
[0., 1., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0., 1.]], dtype=float32)
How can I get only two col... | |
doc_23527269 | I have two nearly identical pieces of code, one which works and the other not.
$query = $pdo->prepare("SELECT * FROM active_notifications WHERE direction = '>' AND $usdCurrent > trigger_price AND currency = '$'");
$query->execute();
var_dump($query);
$result = $query->fetchall((PDO::FETCH_ASSOC));
var_dump($result);... | |
doc_23527270 | structure(df)
Recovery.Date SPECIES_ID LAT_FLOAT LON_FLOAT ZIP
9/23/2009 1720 42.91667 -71.41667 3051
10/8/2006 1440 42.75 -72.41667 3451
10/17/2011 1330 39.25 -74.91667 8316
2/4/2012 1690 39.25 -75.91667 21050
12/31/2009 1320 38.25 -75.25 21837
I want to take t... | |
doc_23527271 | WebpackError: ReferenceError: window is not defined (from plugin: gatsby-plugi
n-styled-components)
Seems to be that the external package gatsby-plugin-styled-components is using window somewhere.I've tried replacing by a dummy module as described here https://www.gatsbyjs.com/docs/debugging-html-builds/#fixing-thi... | |
doc_23527272 | Desire Line Example :
-------------- Or .............
A: You are needing to set the LTYPE property of the line object you have created, Group Code 6. You will need to check to see what styles are available, and perhaps define your own style.
Here is a resource for you.
| |
doc_23527273 | <Scrollview
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scroller"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:fillViewport="true">
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
... | |
doc_23527274 |
A: This can be done easily on Linux with an alias.
alias composer="composer -vvv"
You can make this permanent by appending this line to your .bash_profile or equivalent in your home directory.
If you are running on Windows, you can create a batch file wrapper in your PATH, something like:
@echo off
composer -vvv %*
... | |
doc_23527275 | I created two files under the App_GlobalResources folder:
*
*Unit.en-US.resx
*Unit.pt-BR.resx
And created an entry with the key value of SearchTitle and text "Bla bla bla".
In the web.config file I added:
<globalization uiCulture="auto:en" culture="auto:en-US" />
But now I don't know how to access the resource f... | |
doc_23527276 | NameError: "name 'cntk' is not defined"
Could you please tell me what's wrong? Did I miss sths to do?
| |
doc_23527277 | @Formula("case when preferred_first_name is not null then preferred_first_name else first_name end || ' ' || case when preferred_last_name is not null then preferred_last_name else last_name end")
public String getFullNameFL() {
return WordUtils.capitalizeFully(fullNameFL);
}
This is used in a JPA Projection,
Comp... | |
doc_23527278 | private const string Arg = "C:\\RDP\\myapp.rdp";
private const string FileName = "mstsc";
private Process _myProcess = new Process();
...
myProcess.StartInfo.FileName = sFileName;
myProcess.StartInfo.Arguments = arg;
myProcess.StartInfo.UseShellExecute = false;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.Star... | |
doc_23527279 | This is my View so far when using my ViewBag list without any js
@model IEnumerable<Site.Models.TicketsOrdered>
<head>
<title>Order</title>
<link rel="stylesheet" href="~/Content/TableSheet.css">
@using GeogSocSite.Models
</head>
<body>
<h1>Choose Your Tickets</h1>
<table align="center" cellspacing="2" border="1" data-... | |
doc_23527280 |
user_id
index_value
some_value
1
0
01
1
1
02
1
2
03
2
0
04
3
0
05
3
1
06
1
3
07
I'm about to delete some records and I need to recalculate the data stored in index_value. For example, delete the line with some_value 03.The expected output should look like this:
user_id
index_value
some_value... | |
doc_23527281 | assetPrefix: '/udlejning-sommerhus/',
async rewrites() {
return [
{
source: `/udlejning-sommerhus/_next/:path*`,
destination: '/_next/:path*'
}
]
}
The above code works fine. But when i make changes like mentioned below
basePath: '/udlejning-sommerhus',
assetPrefix: '/asset-... | |
doc_23527282 | *
*OS: Bigsur 11.3.1
*Sublime text: 3.2.2
*Sublime text extension(package): Anaconda
*Python virtual environment management using Miniconda(Anaconda)
*Use autoenv per each workspace directory
When I open the workspace folder and work on it in Sublime text, I usually go to the directory via Terminal(using cd) and ... | |
doc_23527283 |
A: How do you want to combine commit messages? I don't think there is a reasonable way.
If you want to combine just diffs then use git diff instead of git show:
git diff commit1 commit2
See the docs.
A: Ended up doing it like this:
git checkout -b tmp <commit0_sha>~
git cherry-pick <commit0_sha>
git cherry-pick --st... | |
doc_23527284 | My first problem is that not all of my images is exact the same size, and they're not fitting in my bootstrap column. Often the picture is not wide enough, so it leaves alot of free space in the left and right side. Is it possible to crop/zoom in on the image automatically, so it fill out all the space all the time?
An... | |
doc_23527285 | I haven't make any changes on the site. Can the reason be in the cPanel?
A: You can run the following commands:
find ./ -type f | xargs chmod 644
find ./ -type d | xargs chmod 755
chmod -Rf 777 var
chmod -Rf 777 media
| |
doc_23527286 | One of these is a function whose job is to exit printing an error message (the actual subroutine also does some other jobs, but they're not relevant here; no, I am not reinventing die()):
## subroutines.ph
sub errorDie
{
my ($errMsg) = @_;
## various other cleanup tasks here
die($errMsg);
}
1;
And, in pipe... | |
doc_23527287 | parameters:
env
prodparam
nonprodparam
resources:
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2018-05-01",
"url": "[if(equals(parameters('env'),'prod'), parameters('prodparam'), parameters('nonprodparam'))]"
}
I see the url is always set to parameters('nonprodparam') even if parameters('env') ... | |
doc_23527288 | country.ts, which declares the values I'll read
export interface Country {
id: number;
name: string;
flag: string;
area: number;
population: number;
}
and contries.ts which is an array from where I'm going to read the data:
import {Country} from './country';
export const COUNTRIES: Country[] = [
{
id: ... | |
doc_23527289 | contact = UserContact.find(:all,:select=>"distinct app_id,number",:conditions=>"number ='1234'")
arr=[]
contact.each do|c|
arr << c.app_id
end
name=User.find(:all,:conditions=>"id in(#{arr.join(',')}")
I takes two much time Can i do this using join
Thanks
A: You should do smth like this
User.find(:all, :joins => :u... | |
doc_23527290 | translation_dict = {'AC': '2', 'AG': '3', 'AT': '4',
'CA': '5', 'CG': '6', 'CT': '7',
'GA': '8', 'GC': '9', 'GT': 'a',
'TA': 'b', 'TC': 'c', 'TG': 'd'}
I need some method for translating a huge numpy.char.array of the 2-byte strings to their corresponding 1... | |
doc_23527291 | *
*I have a class/method that generates SomeData every second.
I need to:
*collect this SomeData into Somewhere<SomeData> for 1 minute,
*after 1 minute take collection and prepare some ReportObject
*and emmit report via EmitterProcessor<ReportObject>.
How can I implement that using Flux?
A: You can use somet... | |
doc_23527292 |
A: You could create a generic change event handler which sets a flag on change, and then assign all the controls' Change events to it.
This could probably be done pretty easily by looping through all of your controls onload.
A: You could loop through all controls but this would have to be recursive because a control ... | |
doc_23527293 | the code from ActionScript is from 2011 so im not sure which version of box2d its using .
im using the latest .
any way this is what i have in action script :
var leftAxle:b2Body=world.CreateBody(leftAxleBodyDef);
leftAxle.CreateFixture(leftAxleFixture);
// this is the part i need to port , there is no SetPosi... | |
doc_23527294 | Also, do sockets utilize the file.c alloc_fd to allocate the file descriptor or do they utilize some other function?
A: Yes, sys_close() is the entry point for closing all file descriptors, including sockets.
sys_close() calls filp_close(), which calls fput() on the struct file object. When the last reference to the ... | |
doc_23527295 | I try to achieve this using scale transforms on this views so that while zooming scroll view up I scale this views down using formula 1 / zoomScale and changing their anchor points so that they stay at green border.
The issue is I don't get how to calculate target bounding rect for red views after all these manipulatio... | |
doc_23527296 | <ul><strong>PageTitle</strong>
<li>Category A</li>
<li>Category B</li>
<li>Category C</li>
I have my query running successfully in LinQPad, but I can't make it work in MVC. Here is the code I am using in MVC.
public IEnumerable<wl> List()
{
IEnumerable<wl> wlTest;
using (LibEntities _libEntity = new LibEnti... | |
doc_23527297 | library(tidyverse)
library(lubridate)
date <- data.frame(date=seq(ymd('2018-01-01'),ymd('2018-02-28'), by = '1 day'))
group <- data.frame(group=c("A","B"))
subgroup <- data.frame(subgroup=c("C","D"))
DF <- merge(merge(date,group,by=NULL),subgroup,by=NULL)
DF$group_value <- apply(DF, 1, function(x) sample(8:12,1))
DF$... | |
doc_23527298 |
*
*Having a CI server like Jenkins or Hudson
*Build jobs with Maven 3 and Java projects/artifacts
*Each time a build is performed at the end a SonarQube analysis will be performed
A situation that occur, but I have no control over is, that the SonarQube server is not available. The underlying cause isn't relevan... | |
doc_23527299 | I have been using the following, but these also changes some other CDN URLs such as FontAwesome and others that I don't want. So just need something a bit more specific
(https?://)(.*?)(/.*)
URLS TO CAPTURE
https://lirp-cdn.multiscreensite.com/624dfs85te/dms3rep/multi/opt/logo-400w.jpg
https://lirp-cdn.multiscreensite... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.