id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_16200 | I'm getting this error for the final printf statement.
#include <stdio.h>
#include <stdlib.h>
struct infoStruct
{
int studentID;
int year;
int month;
int day;
int phone;
int end;
};
int main (void)
{
int students = 0;
struct infoStruct *info = NULL;
while (info.end != -1) {
students = stu... | |
doc_16201 |
The specified as non-null is null parameter: method
kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, inputStream
parameters
this is my code
package pdfviewer.pdfviewer
import android.annotation.SuppressLint
import android.app.Activity
import android.os.AsyncTask
import android.os.Bundle
import com.gi... | |
doc_16202 | I need to get n middle lines of the file.
I am using a command with head and tail like
tail -m file |head -n >output.txt
where m,n are numbers
The general structure of the file is like below with set of records (comma separated columns.) Each line can be of different length(say max 5000 chars).
col1,col2,col3,col4...... | |
doc_16203 | #!/usr/bin/bash
java -jar build/libs/picard.jar MarkDuplicates \
I=sorted.bam \
O=mark_opticalduplicate.bam \
MAX_OPTICAL_DUPLICATE_SET_SIZE=300000 \
TAGGING_POLICY=OpticalOnly \
M=markedoptical_dup_metrics.txt
I am not sure I am getting only optical duplicates when I am using the samtool... | |
doc_16204 | The 'Set Variable' activity has a dropdown but displays 'no results found'?
Many thanks,
A: from the official doc:
Use the Set Variable activity to set the value of an existing variable
of type String, Bool, or Array defined in a Data Factory pipeline.
https://learn.microsoft.com/en-us/azure/data-factory/control-... | |
doc_16205 | I have the following setting in "Features" project app.config
<specFlow>
<!-- For additional details on SpecFlow configuration options see https://github.com/techtalk/SpecFlow/wiki/Configuration -->
<stepAssemblies>
<stepAssembly assembly="Steps" />
</stepAssemblies></specFlow>
But when i try to debug my feature fi... | |
doc_16206 | This would allow the recalculation of the other closest markers in the datasource.
Presently, this works only when I manually drag the movable matker.
I can't seem to be able to get the coordinates of the location found and move the marker there.
Thanks for any help!
Here's my code:
<!DOCTYPE html>
<html>
<head>
<m... | |
doc_16207 | Now, what does the statement new (p_to_struct_inst) mystruct; do for an already allocated instance of a struct that doesn't contain functions?
E.g.
struct mystruct
{
int a;
int b;
};
class myclass
{
int member1;
int member2;
public:
myclass() { //initialize members }
};... | |
doc_16208 | here is my Git-Hub...some one please help me with this
( https://github.com/raj5140/AAASwipe_Update )
I have tried tried many different ways, but it does not work, some1 please help me with this.
A: Ok so i just saw your code. I used robot's EventBus libaray for this purpose.
First i added
compile 'org.greenrobot:ev... | |
doc_16209 | In portrait orientation, and on a phone, I'd like the Search Criteria fragment to be displayed like a popup dialog instead of beside the search results. In the Selecting Between Dialog or Embedding section of the DialogFragment, I see that I can either embed the fragment, or show it as a dialog. This might work for me ... | |
doc_16210 |
What libraries are needed?
Using org.restlet.jee 2.3.10, I have noticed that there are several libraries which could support JSON. Here are some names from the Maven Repository:
*
*org.restlet.ext.jackson
*org.restlet.ext.json
*org.restlet.lib.org.restlet.lib.org.json
*org.restlet.lib.org.json
What is the curren... | |
doc_16211 | I have two separate problems:
*
*Code writes in History Window of every issue
I have a form where I can add new incidents and flip through the incidents. Like the template issue.db.
But my code writes the updates to all incidents in my form. So when I make a comment "abc" to Issue 1 in the History appears "Versio... | |
doc_16212 | <!DOCTYPE html>
<html lang="en">
<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">
<title>Login Form Validation</title>
<link rel="stylesheet" href="login.css">
<script defer src="login.js"><... | |
doc_16213 |
It’s extremely important that you verify the assertion on your server, and not in JavaScript running on the user’s browser, since that would be easy to forge.
Although I have already implemented it, why do I need to do it on the server? I anyway need to send the assertion to Persona's own server here: https://verifie... | |
doc_16214 | I wrote some jQuery script so that the background image will always scale and will never show a blank spot.
function runIt() {
currentHeight = $("#bg").height() //useless for you
currentWidth = $("#bg").width() //useless for you
ccurrentHeight = $("#cover").height() //useless for you
ccurrentWidth = $("#cover").wid... | |
doc_16215 | So, having got it NEARLY working, the only problem was that if you expanded one div, then clicked on the 'header' (just another div) to open another, the original div remained expanded too. They weren't mutually exclusive. I thought this would be easily fixed by adding a line to my jQuery script, called when the 'heade... | |
doc_16216 | Public Sub DYarislar()
Dim asays(), ws As Worksheet, asay As Long, html As HTMLDocument
Dim http As clsHTTP, url As String, headers(), numberOfRequests As Long
headers = Array("Asay", "Tarih", "Sehir", "K.Cinsi", "Gr", "Msf/Pist", "Derece", "S", "Jokey", "Kilo", "G.Ç", "Hnd", "Gny", "Taki")
Set htt... | |
doc_16217 | I've also tried using copyAssetsFileIOS of RNFS
RNFS.copyAssetsFileIOS(path, RNFS.TemporaryDirectoryPath, 0, 0)
.then(res => console.log('RES: ', res))
.catch(err => console.log('ERROR: ', err));
I've also tried converting the PHASSET into ALASSET
path = `assets-library://asset/asset.${ext}?id=${path.s... | |
doc_16218 | declare @v nvarchar(255)
set @v = '[x]825'
select 1
where @v like '[x]825'
A: [] defines a range of characters for a pattern match. It has special meaning in a LIKE statement. Here's the documentation for it.
If you're looking for those characters explicitly, you'll need to escape them, like this:
declare @v ... | |
doc_16219 | Now what is the problem.
I have added domain mydomain.com and I have added blank index.php file.
I added too .htaccess file with "deny from all"
Now when I open the page in the browser, I get Apache 2 Test Page instead 403 Forbidden
But if I open http://mydomain.com/index.php, now I get 403 Forbidden.
I tried to e... | |
doc_16220 | Background: my scenario is to model an ASIC chip in C. The chip has a 3MiB memory, and two components in the chip can access the same memory hardware, but with different address maps. To model that in C, one way could be duplicating the 3MiB memory for the two components, and adding some synchronization mechanism betwe... | |
doc_16221 | When I build my App, some values are loaded into the persistent store and can be accessed. This remains true when I close the App in the interface builder and then reload it.
The loaded data, when logged, looks shortly like:
entity: Appointment; data: { day = monday; hours = 8; project =
project1; task = task1; }
N... | |
doc_16222 | Here's the relevant code:
private GMapOverlay gMapOverlay;
private GMapMarker marker;
gmap.MapProvider = GMap.NET.MapProviders.GoogleMapProvider.Instance;
gmap.MinZoom = 2;
gmap.MaxZoom = 25;
gmap.Zoom = 5;
gmap.ShowCenter = false;
gmap.DragButton = MouseButtons.L... | |
doc_16223 | I have developed a blog with php version 5.5
Hosted server php running version is 5.3
Thanks in advance.
| |
doc_16224 | If not, what alternatives are there?
A: Not that I now of. Try Kii's A/B Testing (just released). They have an SDK for Android (among others). Not integrated with Google Play Developer console though (they have their own dev console) so I'm not sure if this is a valid alternative for you.
http://en.kii.com/optimize/ab... | |
doc_16225 |
A: See Configuring Topics.
@Bean
public NewTopic topic1() {
return new NewTopic("foo", 10, (short) 2);
}
Will create a topic foo with 10 partitions and a replication factor of 2 (if there is a KafkaAdmin bean in the application context).
Spring boot auto-configures a KafkaAdmin @Bean.
| |
doc_16226 | .jumbotron h2{
text-align: center;
color:black;
}
define reference var $jumbotron = $('.jumbotron h2');
while running, I use $jumbotron.html('hellow world'); ...... to display some words and I want to change its color but I do not know how to set new color while running, how to get the color value and assign a... | |
doc_16227 |
Here is my current, wrong implementation:
\newcommand\TBox[3][]{%
\tikz\node[draw,ultra thick,text width=#2,align=left,#1] {#3};}
\TBox{14cm}{%
\TBox{10cm}{xxx \vspace{9cm}} \TBox{3cm} \\
}
A: It would be better to place all your boxes in a single tikzpicture, because right now you are nesting them which is ... | |
doc_16228 | Here is my code and at the bottom I will put things that I've tried.
css
nav ul li > ul {
flex-direction: column;
display: flex;
width: 100%;
opacity: 0;
transition: opacity 1s;
}
.opacity1 {
opacity: 1;
transition: opacity 1s;
}
javascript
navInnerContainer.children[1].children[1].child... | |
doc_16229 | try
{
$conn = new PDO("mysql:host=$host;dbname=judges", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
echo "Connection failed: " . $e->getMessage();
}
and
$query = "SELECT * FROM feedback";
echo '<table border="0" cellspacing="2" cellpa... | |
doc_16230 | makeBeneficiaryButton : function(id, index) {
if(event.target.innerText == "Select") {
event.target.innerText = "Selected";
event.target.style.backgroundColor = "green";
$("#myModal11").find('button#select').prop('disabled', 'disabled');
}
... | |
doc_16231 | What's the relation between both?
A: layout() calls onLayout() after doing some internal bookkeeping, and does a bit more bookkeeping afterwards. layout() is declared final, to encourage us all to focus on implementing onLayout() instead. :)
| |
doc_16232 | "["Arr1","Arr2"]"
I need to remove first and last chars in order to have
["Arr1","Arr2"].
I was trying with slice function like that:
var result = arr.slice(1, -1) but I got ""Arr1","Arr2"".
Any ideas how to handle it?
A: To convert from string to that array use JSON.parse(json_string), this does not have anyth... | |
doc_16233 | A function will take matrix.
Examples
*
*a[1,2,3];
This will give the following output
1 0 0
0 2 0
0 0 3
*Similarly, b[1,2,3,4,5,6] should give:
1 0 0 0 0 0
0 2 0 0 0 0
0 0 3 0 0 0
0 0 0 4 0 0
0 0 0 0 5 0
0 0 0 0 0 6
A: #include <stdio.h>
int main()
{
int A[]={1,2,3,5,6,7},i,j;
for(i=0;i<sizeof(A)/... | |
doc_16234 | My question is, I want to make Form2 always on the top, i.e. user must response Form2 (fill in informaiton in Form2 and close it) until the user could continue to deal with Form1. How to implement this feature?
Here is my current code.
public partial class Form1 : Form
{
public Form1()
{
InitializeCompo... | |
doc_16235 | For example, I have a website by domain, www.example.com, however my sitemap index file and the other sitemap files reside on www.filestack.com.
My sitemap index file will look like:
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84">
<sitemap>
<loc>
https://www.filestack.com/sitemap1.xml
</loc>
</sitema... | |
doc_16236 | cmake_minimum_required(VERSION 3.13)
set(TEST_CPACK_DDEB_VERSION 0.7.6)
set(PROJECT_NAME TestCPackDDEB)
set(TEST_CPACK_DDEB_PROJECT TestCPackDDEBProject)
project(${PROJECT_NAME} VERSION ${TEST_CPACK_DDEB_VERSION} LANGUAGES CXX)
include(GNUInstallDirs)
set(SOURCES main.cpp)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
a... | |
doc_16237 | $("*").each(function(obj){
if ($(this).data("x"))
$(this).css({left:$(this).data("x")()});
//... more code for y, w, h, x2, y2, etc...
}
},25);
It runs perfectly on my computer - my worry is: if left this way without optimizations, could this code cause significant performance drops... | |
doc_16238 | My problem is how to pass the string from the searchBox along with the method to use in the datalayer class.
public class MyViewModel : NotifyUIBase
{
private string _searchBox;
public string SearchBox // the Name property
{
get { return this._searchBox; }
set { this._searchBox = value; R... | |
doc_16239 | However, the initialization procedure involves both fields, so I can't separate it into two different singletons.
What's the best way to handle this?
A: Create a wrapper class that contains the references to both your 'singletons' and make that class the singleton?
Addendum:
If you really want to avoid the second leve... | |
doc_16240 | {
"_id": "_design/_updateHandler",
"updates": {
"in-place": "function(doc, req) {
var field = req.body.field,
var value= req.body.value,
var doc[field] = value;
return [doc, toJSON(doc)];
}"
}
}
And it adds a field in the document, but it doesn't update an existing field ... | |
doc_16241 | The .net Color struct uses the RGB space, but has GetHue(), GetSaturation() and GetBrightness() functions.
The documentation here is confusing. For GetBrightness():
/// <summary>Gets the hue-saturation-brightness (HSB) brightness value for this
/// System.Drawing.Color structure.</summary>
Ok, so makes sense, .Net ap... | |
doc_16242 | sox -r 8000 -c 1 <wavfilename> <mp3filename>
I get the following error message:
sox: Unknown output file format for
'747a.mp3': File type 'mp3' is not
known
My machine is running the CentOS operating system.
A: For CentOS you will need to recompile SOX (the base repo has the sox srpm) with the libmad and lame-... | |
doc_16243 | The most logical solution was to utilise the "save_post" action. Upon being invoked the action handler either creates or updates a database record in a custom table (depending on whether "Create Post" or "Update Post" is clicked).
I have implemented this and it seemed to be working perfectly, but there is a minor issue... | |
doc_16244 | When I run ./gradlew sonarqube and view my analysis in the SonarQube web UI I got a bunch of different "code smells", some of which I agree with, and others which I do not.
I would like to configure SonarQube to report on the code smells I care about (agree with) but to ignore/exclude reporting on the ones I disagree w... | |
doc_16245 | In particular I am looking for a way to query the given templated classes and return the static_casted object. If none of the types queried are correct then a static_assert should fail or a regular assert should fail. I see that there is probably a way to go through the given templated classes and store their typeid(... | |
doc_16246 | And if I try to place it with code like follows:
LinearLayout meulayout = new LinearLayout(this);
meulayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
ImageView meuview = new ImageView(this);
meuview.setImageRes... | |
doc_16247 | Now that I've tested it and it works fine, I want to convert it into a windows service. I created a new project but I have two problems:
1) Logging doesn't seem to happen anymore; the config file is no more read, or logging can't happen for some other reason (permissions?). Anyway I was thinking what is the best way to... | |
doc_16248 | -- | Function from input string to:
--
-- * Nothing, if failure (syntax error);
-- * Just (unconsumed input, answer), if success.
dePsr :: String -> Maybe (String, a)}
I want to create a newtype of Parser to see how it looks like.
I tried
*ParserLib> PsrOf{"hello"}
But it comes up with an err... | |
doc_16249 | button type="button" class="btn blue" onclick="location.href='Index/#rooms'"><i class="m-icon-swapleft m-icon-white"></i> Back to Room List</button>
The Url reads like.....ReferralTarget/Index/#rooms
rooms being one of the tabs on the Index view..
When I use the same code in another view, I get an error 400 - Bad re... | |
doc_16250 | Here is the a view function that creates the gui handles and passes them as an input argument to the onChanged callback function.
function handles = View_TimeDomain(m)
%VIEW a GUI representation of the signal model
% build the GUI
handles = initGUI();
onChangedF(handles, m); % populate with initial... | |
doc_16251 | Code:
FishGame.java
package us.webco.fish;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class FishGame extends Game {
public SpriteBatch batch;
public void create() {
batch = new SpriteBatch();
this.setScreen(new StartScreen(this));
}
public void render() {
supe... | |
doc_16252 | The script opens an existing excel file and reads/writes data into it.
If there is only one excel file open then there are no problems.
However, when the script is running, if i open another excel file and focus on this newly opened file, then the script fails and exits.
i am reading/writing using the handle to the w... | |
doc_16253 | ---Main App (router-outlet>)
--Animal ()
-Dashboard. (url app/dog/dashboard)
--Animal (router-outlet>)
-Dashboard (url app/cat/dashboard)
Now I want to separate the Dashboard component, i.e DogDashboard and CatDashboard and load it via the router-outlet of Animal component through module federation.
What I could do so... | |
doc_16254 |
internal server error(code : 500)
I need to convert post params to below format.
Body :
{"UserId" : "2",
"PortalId" : "1",
"LocaleId" : "1",
"CatalogId" : "3",
"Items" : [{"Name" : "ap1234","Quantity" : "1"}]}
Below is the code I am using
Api Call :
JSONArray array = new JSONArray();
try {
JSON... | |
doc_16255 | I have tried attaching the xml in a header but the header doesn't seem to make it to the other end.
I know how to programmatically create requests to send xml and how to redirect, just not sure how to do both at the same time.
In short, I need the xml to piggy-back on the redirect. This redirect will be done from withi... | |
doc_16256 | in xampp the code work correctly and connect with db, but in Devserver it will show the page _403.html (error page) at the end of the code .
any idea please ?
<?php
require_once ('database_connection.inc');
$statement = $connect->prepare("SELECT user_id FROM all_user WHERE email = ?");
$statement->execute(array( core... | |
doc_16257 | CODE HOME Sports League
SELECT
teamName AS Team,
Sum(P) AS P,
Sum(W) AS W,
Sum(D) AS D,
Sum(L) AS L,
SUM(F) as F,
SUM(A) AS A,
SUM(GD) AS GD,
SUM(Pts) AS Pts
FROM(
SELECT
teamHomeID Team,
1 P,
IF(matchScoreHome > matchScoreAway,1,0) W,
IF(matchScoreHome = matchScoreAway,1,0) D,
IF(matchScoreHome < matc... | |
doc_16258 | In the test project, I saved some information in the Settings.settings file (under TestProject->Properties in the Solution Explorer). One of the things saved there is the connection string to a database that is stored locally.
Unfortunately, the connection string will be slightly different on each person's computer wh... | |
doc_16259 | I have turned on tf.debugging.enable_check_numerics() to check for problems in my code.
My model:
import numpy as np
import tensorflow as tf
import keras
tf.debugging.enable_check_numerics()
class MyModel(keras.Model):
def __init__(self, **kwargs):
super(MyModel, self).__init__(**kwargs)
... | |
doc_16260 | We would be happy with anything, really, other than SSH client certificate authentication.
Here is my cloudformation template:
{
"AWSTemplateFormatVersion":"2010-09-09",
"Description":"Password for instance",
"Parameters":{
"KeyName":{
"Description":"Name of an existing EC2 KeyPair",
"T... | |
doc_16261 | Here is a dummy dataset to represent my data:
BM=data.frame(Treatment=gl(3,4,24,labels=c("T1","T2","T3")),
Loc=gl(2,12,24,labels=letters[1:2]),Ind=gl(4,1,24,labels=c(1,2,3,4)),
Weight=runif(24))
I used the following codes:
mean.BM=tapply(Weight,list(Loc,Treatment),mean)
sd.BM=tapply(Weight,list(Loc,Treatment),sd)
bpl... | |
doc_16262 | app:endIconMode="password_toggle"
A: try with this excellent service
https://romannurik.github.io/AndroidAssetStudio/
| |
doc_16263 | "İş".toLowerCase().length
3
"İŞ".toLowerCase().length
3
"iŞ".toLowerCase().length
2
"iş".toLowerCase().length
2
Moreover
"İ".length
1
"İ".toLowerCase().length
2
"İ".toLocaleLowerCase().length
2
For sceptics, here is screen shot of console where i copied the above codes:
and my charset (which is the first thing I've ... | |
doc_16264 | Under the hood, foo and bar manipulates std::vector. I cannot read it in readVector, while is is being modified in modifyVector, so I need locking.
So far I use
std::shared_timed_mutex m;
void modifyVector() {
std::lock_guard<std::shared_timed_mutex> lk(m);
//do some work - writer, modify std::vector -> only o... | |
doc_16265 |
A: You need the parameter showinfo=0
Example:
<iframe width="560" height="315" src="http://www.youtube.com/embed/pefow5Kp_W4?autoplay=1&showinfo=0" frameborder="0"></iframe>
| |
doc_16266 | miettinj@ramen:~/jena> ./apache-jena-3.13.1/bin/tdb2.tdbcompact --loc=./apache-jena-fuseki- 3.13.1/run/databases/test_TDB2
org.apache.jena.dboe.DBOpEnvException: Failed to get a lock: file='/srv/work/miettinj/jena/apache-jena-fuseki-3.13.1/run/databases/test_TDB2/tdb.lock': held by process 6136
... | |
doc_16267 | Any help will be appreciated. Thanks!
A: I think I follow what you're after.. you're able to get details/metadata about your worker node from the SoftLayer APIs available - https://sldn.softlayer.com/reference/softlayerapi/
For k8s specific info you can utilize the k8s api-server to query metadata about things like th... | |
doc_16268 | here's the parsing function
function pd_xml_parser($rawxml) {
$xml_parser = xml_parser_create();
xml_parse_into_struct($xml_parser, $rawxml, $vals, $index);
xml_parser_free($xml_parser);
$params = array();
$level = array();
$alreadyused = array();
$x=0;
foreach ($vals as $xml_elem) {
if ($xml_elem['type'] == 'open'... | |
doc_16269 | I want the output
Boy Good A Is Ram
Please give me a code for this approach??
A: Not giving the direct solution but if you follow the steps below, you'll achieve what you want.
*
*split with space.
*print the splitted values in reverse order.
But on second thought your mirror image is wrong.
Ram Is A Good Bo... | |
doc_16270 | But I've noted that this upload is very slow. I think because before complete the submit the file has to pass by my server, be processed and be sent to the S3 server.
Is there a method for accelerate this?
thanks
A: You did not post any code so I'm going to make a few assumptions here:
*
*in your project you have ... | |
doc_16271 | <html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>xxxx</title>
<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
Today it suddenly doesn't work, chrome console show:
GET https://cd... | |
doc_16272 | list1 = [True, True, False]
list2 = [False, False, True, False]
then after the operation
list1 = [True, True, False, True, True, False, True]
while list2 shall remain unchanged.
What is the most pythonic way to achieve that?
A: How about this:
list1.extend(not value for value in list2)
If there is a risk that lis... | |
doc_16273 | alboums and photos, videos. now what the right thing: 1-insert the photos and videos in database (if it right tell me how) 2-make an html page for each alboum. thanks in advance.
A: Third option probably is the best. Store them in a cloud storage like AWS S3, Azure Blob Storage or Google Cloud Storage and many other o... | |
doc_16274 | is an initial task that needs to complete before two sub-tasks can run. The tasks that I created are file system operations and don't return a result.
I would like the subtasks to run at the same time, but when I use a group for these tasks they run sequentially and not in parallel.
I have tried:
g = group([secondary... | |
doc_16275 | ......
mapping do
indexes :id, type: 'integer'
indexes :fullname, boost: 10
indexes :name
indexes :surname
indexes :position_name
indexes :info
indexes :club_id, type: 'integer'
indexes :club_name
end
def self.search(params)
tire.search(load: true, page: params[:page], per_... | |
doc_16276 | I have the following dependency in my pom.xml:
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.5</version>
<type>pom</type>
<scope>test</scope>
</dependency>
The project compiles perfectly.
But a... | |
doc_16277 |
A: Short answer: Yes.
Long answer:
private static final int NUM_BACKGROUNDS = 5; // or whatever
private Random mRandom = new Random();
public void onCreate(Bundle state) {
View v = findViewById(/* your background view id */);
int res;
int i = mRandom.nextInt(NUM_BACKGROUNDS);
switch (i) {
case... | |
doc_16278 | By using the below command am only getting the Directories, But am not able to navigate to particular directory.
Get-ChildItem E:\ -Recurse -Directory | where{$_.LastAccessTime.(Get-Date)-10 }
| |
doc_16279 | <VirtualHost petyo.net:443>
ServerAdmin m@petyo.net
DocumentRoot /home/ren/public/
<Directory "/home/ren/pubic/*">
Options +ExecCGI Indexes
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi .py .pl
</Directory>
... | |
doc_16280 | For lLngIndex = 0 To lLngIndex < 256 Step 1
lBytKeyAry(lLngIndex) = Val(pStrKey((lLngIndex Mod lLngKeyLength)))
Next
is lLngIndex < 256 allowed?
when I debug code and go step by step it seems to always skip the for loops
A: The correct code for loop:
For lLngIndex = 0 To 255
lBytKeyAry... | |
doc_16281 | files/run3/testlog
files/run14/testlog
files/run28/testlog
I have the following code:
for f in $(find . -name testlog)
do
echo $(pwd) | egrep -o run[0-9]{*}
done
I want my code to output:
run3
run14
run28
However I am not getting any output.
A: I think the problem are the curly brackets around *, just try egr... | |
doc_16282 | I feel like the relationships should be managed through a join table, simply because a phone number may not be assigned to an account for a period of time.
Is a join table the right option, or is it okay for a foreign key to be blank?
Edit: essentially, I have a table of phone numbers and a table of accounts. Accounts ... | |
doc_16283 | event.target.style.backgroundColor="green";
document.addEventListener("mousemove",move,false);
}
function up(event) {
event.target.style.backgroundColor="red";
document.removeEventListener("mousemove",move,false);
}
function move(event) {
event.target.style.left=Math.max(0,Math.min(window.innerWid... | |
doc_16284 | data : [{x: "Feb '21", y: 302}, {x: "Mar '21", y 123}]
and the options hold :
options: {
scales: {
x:{
max:"Jul '21",
min:"Feb '21",
time: {
unit: 'month',
displayFormats: {
month: MMM 'YY
}
}
}
}
So when it renders the chart, it g... | |
doc_16285 | Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource) envCtx.lookup("jdbc/myPool");
conn = ds.getConnection();
// The following works fine:
cs = conn.prepareCall( "{call my_proc (?,?)}" );
cs.setString(1, var1);
cs.registerOutParameter(2, ... | |
doc_16286 | package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class mainCode extends MovieClip{
//global variables go here
public var circled:Shape = new Shape();
public var circled2:Shape = new Shape();
public var circled3:Shape = new Shape();
public var angled:int = new i... | |
doc_16287 | I want to change the color of that between curly brace and rouded brace so what I do?
A: It is done by creating a SpannableStringBuilder like shown below:
SpannableStringBuilder builder = new SpannableStringBuilder();
String red = "this is red";
SpannableString redSpannable= new SpannableString(red);
redSpannable.set... | |
doc_16288 | How i can do that ? any help please? Thank you in advance friends
My Code :
@override
Widget build(BuildContext context) {
return SafeArea(
minimum: const EdgeInsets.only(
top: 20.0, right: 5.0, left: 5.0, bottom: 10.0),
child: Center(
child: Scaffold(
backg... | |
doc_16289 | I want to control when new rows is added, in my case i'm using a keydown event (CTRL + I ) for this task. But the grid keep adding new rows automatically if i move the focus (cursor pointer) to the area right below to the last row and click.
The GridControl.MainView is a BandedGridView, which contains the datasource. ... | |
doc_16290 | How can I extract explicit KeyValuePairs from a Dictionary inside of a List and put it into a Model?
I need a scale-able solution where the Model could do the same with the subData.
public class Program
{
public static void Main(string[] args)
{
List<Dictionary<string, string>> data = GetData();
... | |
doc_16291 | its not giving any errors but after the program is run, its giving 6/4 divide error.
Can anyone help me with this?
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
struct face
{
int **vertices;
};
void main()
{
int gd = DETECT,gm;
int x, y, z, i, j, k, m, n;
struct face *f_3... | |
doc_16292 | At first it works fine. After including another library in the framework project creates the error when archive or build for device. I think the problem is with some wrong settings for that library. But I just don't know what to try. I have tried setting some sensible Other Linker Flags from https://developer.apple.com... | |
doc_16293 | Column A
--------
Ahmed
Salem, Ahmed
Reda
Khaled
Salah, Ahmed
I have used this formula to split the contents
=TRANSPOSE(FILTERXML("<AllText><Num>"&SUBSTITUTE(A2,",","</Num><Num>")&"</Num></AllText>","//Num"))
But the results I got are in multiple columns. How can I get all the results in just one column?
The expected... | |
doc_16294 | Here is my code
What Am I missing or doing wrong? Reset Password works perfect.
Thanks,
Jeff Gray
A: You're not setting the action attribute in the form. If you submit a form without an action attribute, or an empty value for the action attribute, the form's action becomes the current page (also known in PHP as PHP_S... | |
doc_16295 | "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe"
/t "D:\xampp\htdocs\instrument\app\webroot\Repair Tickets\%1.pdf"
\\hnurenfp01\Accounts_FS-1128MFP
Parameter %1 is the filename that is sent as an argument to the batch file from the PHP script.
Observed behaviour:
*
*PHP page successfully calls batch ... | |
doc_16296 | One
{
Id,
Name,
Color
}
Two
{
Color,
Cost
}
I want to get the union of One and Two by unionizing on Color? If there is not a Two with a Color that corresponds to One, I want to set Cost to 0 in the output? How do I do this in LINQ?
A: Here is a sample using anonymous types on how to perfo... | |
doc_16297 | I am not sure about the thread local storage for a function, not just a global variable
i tried
__thread int head,tail;
__thread int q[MAX_NODES+2];
__thread void enqueue (int x) {
q[tail] = x;
tail++;
color[x] = GRAY;
}
__thread int dequeue () {
int x = q[head];
head++;
color[x] = BLACK;
ret... | |
doc_16298 | If you are choosing to answer this question, please do review the question in the link as my issue is exactly the same except that my environment is as follows:
OS: RHEL 7.7
Go version: 1.13.7
Node version: 12.13.0
Docker version: 18.09.7 (Client and Engine)
NO INTERNET ACCESS
I execute the script ... | |
doc_16299 | var arrowHeadRight:Sprite = new Sprite();
with(arrowHeadRight.graphics){
beginFill(0xDDDDDD, 1);
moveTo(50,0);
lineTo(0,50);
lineTo(50,100);
lineTo(50,0);
endFill();
}
On Mouse Over, I wish to change the color of the fill on this shape?
Can this be done or do I have to re-draw the graphics with... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.