id stringlengths 5 11 | text stringlengths 0 146k | title stringclasses 1
value |
|---|---|---|
doc_16100 | Right now I wrote the following code that all items go to the same page:
list.setOnItemClickListener(new OnItemClickListener() {public void onItemClick(AdapterView arg0, View arg1, int position,long arg3) {
startActivity(new Intent(Participant.this,Contact.class)); }
});
A: Of course all items navigate to same pa... | |
doc_16101 | The links related to this problem are as follows:
Text Scraping (from EDGAR 10K Amazon) code not working
word count from web text document result in 0
Here is the 2nd Python program from the same article above and still...not working due to the Python version difference, I suppose.
My problem is that I met the initial ... | |
doc_16102 | I wanna select one row of each duplicated SIDs in a field below.
(an attribute table of a shape file)
The priority is R > S = I > 0
Therefore, among SID 87, FID1 will be selected.
(SID 88, STATUS will be S+I)
(SID 89, FID 6 will be chosen)
Please kindly advise VBA cord to run the selection and thanks.
FID SID ST... | |
doc_16103 | id | date
1 Mar 12 2012
2 Apr 17 2013
3 Oct 22 2014
4 Jul 12 2015
Desire result:
id | date
1 Oct 22 2014
2 Jul 12 2015
I have tried doing the line below, but it is returning zero results.
SELECT * FROM `table` WHERE NOW() < `date`
OR
SELECT * FROM `table` WHERE `date`... | |
doc_16104 | So basically just to tell you my situation:
I have a page, at the end of the page i load jquery and some other scripts, so that all the html is loaded first and only then the scripts will start loading.
BUT in some places on my pages I'm obliged to write some inline scripts which need to use jquery stuff like $ ... if ... | |
doc_16105 | Say 2 month down the line, i found a encryption that is 10 times better and the current hash function has been proven without a doubt, totally vulnerable. How would I go about migrating user password from one type of hash to another (the better one).
A: You can slowly migrate from a method to another using the follow... | |
doc_16106 | I can create a pointed variable StereoBM *sbm; but whenever I call a function, I'm presented with a segmentation fault with a Release build. The Debug build will not run as it aborts due to malloc(): memory corruption.
Disparity_Map::Disparity_Map(int rows, int cols, int type) : inputLeft(), inputRight(), greyLeft(), g... | |
doc_16107 | This is the code I am currently using:
sel = Selector(text=driver.page_source)
job_title = sel.xpath('//*[starts-with(@class, "t-16 t-black t-bold")]/text()').extract_first()
Here is the HTML from one of the urls that I was unable to extract job_title--Which is 'Founder' in this case. It is the second line of the scr... | |
doc_16108 | The link I got : https://code.visualstudio.com/api/references/theme-color
A: User key shortcut (Ctrl + ,) then on Top-Right Corner there is File icon click on that to open settings.json file. There you can edit the color codes using it's property.
File looks like this->
Property to be used:-
"workbench.colorCustomiz... | |
doc_16109 | According to MVVM approach I made behavior, bound IsActive property of LAyoutAnchorable - and it doesn't work. More precisely, it works only in one direction: I received notification in ViewModel (when panel opened by user click), but I'm not able to open panel from code. Here is the code. Thanks.
View:
<xcad:LayoutR... | |
doc_16110 | $db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'dvrs',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => TRUE,
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf... | |
doc_16111 | example:
a = {
aFunction: function(){...}
notAFunction: "foo"
}
a.notAFunction()
Gives:
undefined is not a function
This is more helpful:
property "notAFunction" of object "a" is not a function
What are the exact obstacles?
A: This is going to be changing very soon, it might already be in Canary too.
Improv... | |
doc_16112 | private int records = 0;
private Query q;
public void BatchProcessor(String className)
throws Exception {
int pageSize = 1000;
boolean done = false;
List<Test> resultList = null;
while (!done) {
q.setFirstResult(records);
q.setMaxResults(records+pageSize);
System.out.p... | |
doc_16113 | Here's the code for my procedure
CREATE OR REPLACE
PROCEDURE RENTING
(P_NNAME IN VARCHAR2,
P_ADD IN VARCHAR2,
P_PHONE IN NUMBER,
P_ORDER IN VARCHAR2,
P_EMP_ID IN NUMBER,
P_VALID OUT NUMBER,
P_OR_NO OUT NUMBER
)
IS
V_AVAI TITLE.AVAILABLE%TYPE;
P_OR VARCHAR2(5000);
P_OR_2 VARCHAR2(5000);
ORD_NO NUMBER(6);
TID NUMBER(38)... | |
doc_16114 |
*
*Answer: when working with openCv always use relative path.
**
When I try and read a txt file that is in the same directory as my png file I'm successful
Hey, I'm trying to read an image using OpenCv in my Java app, I'm using java 17(just updated today from java 8) and openCv 453.
In the picture you could see the ... | |
doc_16115 | HTML:
<label id="number_label">
<b>Contact Number</b>
</label>
<input type="text" placeholder="Contact Number" class="form-control" id="contact" name="contact">
Javascript:
var contact = document.getElementById("contact").value;
if (!contact || (contact.val().length >=12 || contact.val().length <=10) ) {
docum... | |
doc_16116 | Currently, I'm struggling with this crash:
java.lang.IllegalArgumentException: View=androidx.compose.material.internal.PopupLayout{c8ce24f V.E...... ......ID 0,0-960,192 #1020002 android:id/content} not attached to window manager
at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:544)
a... | |
doc_16117 | eg:
ptr1 = malloc(100)
ptr1 = malloc(200)
In this case will the first allocated memory will be deallocated by garbage collector??
If yes then when..???
A: No, it will result in a memory leak.
There is no garbage collector in C.
You have to do the memory management yourself.
ptr1 = malloc(100);
free(ptr1);
ptr... | |
doc_16118 | However, there's a new breed of SWF files - often from conversion programs that turn PowerPoint presentations into SWF files - that now do everything outside of the main timeline. So a 30 second SWF file might have only 5 frames, according to the ActiveX control. It still plays for 30 seconds, but the CurrentFrame hits... | |
doc_16119 | Please help me
F3::route ( 'GET /captcha',captcha);
function captcha(){
F3::captcha(100,100,8);
}
A: It should be:
F3::route ( 'GET /captcha','captcha');
A: Fix so easy!
http://techzinger.blogspot.com/2011/02/fat-free-framework-for.html?showComment=1298024374012#c4330544534362949394
A: Let F3 know where your f... | |
doc_16120 | data Shape = Rectangle Int Float Float |
Circle Int Float |
Ellipse Int Float Float
deriving (Show, Eq)
What I want is a function renderShape :: Shape -> String that takes a Shape and gives me a string that represents the argument in a certain way (I'm generating lines in an inp... | |
doc_16121 | First part of my layout definition:
<TableLayout
android:id="@+id/main_activity_details_calendar_main_grid"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
now one cell xml definition:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/an... | |
doc_16122 | Now we want to use that button to open our custom search form to filter the records in jqGrid.
Our business requirement that the search button must be a part of jqGrid pager.
How I can do it? I tried to search google and wiki help for jqGrid, but didn't found any way how to add that custom search button to the jqGrid p... | |
doc_16123 | I have tried debugging the language file, at it shows ?? around the strings and publish them as it. COM_COMPONENTNAME_VIEW_TEST , and does not change them.
A: Is this a mix-up between plugin and component? Maybe you just confused the terms whilst asking the question.
My first suggestion would be that for a plugin the ... | |
doc_16124 | Now I need to build a kind of report and building it on front-end is not efficient. I decided to make all calculations with raw data on the server and get response. This should be done via AJAX request. According to Flux architecture I need to put them to store and them component should take it from there. However, cre... | |
doc_16125 | In my plugin file I have initiated all menu pages and settings, I have 2 settings in the plugin admin page and one of them is Brand Color so users can change the branding color of the form the shortcode is spitting out.
The data is saved in the wp-options table in wordpress and all working ok, the problem is when i try... | |
doc_16126 |
A: You use a .desktop file for icons under linux. Where to put the icon depends on what distribution and what desktop environment you are using. Since I'm currently running Gnome on Fedora 9, I will answer it in those terms.
An example foo.desktop file would be:
[Desktop Entry]
Encoding=UTF-8
GenericName=Generic Pie... | |
doc_16127 | For example:
$data = array( array( 1, "Article One", 132, 12402773, 3 ),
array( 2, "Article Two", 251, 12519283, 5 ),
array( 3, "Article Three", 107, 12411321, 3 ),
array( 4, "Article Four", 501, 12228135, 4 ) );
By default, if I print the 2nd element of each array:
*
*A... | |
doc_16128 | For example:
[1,0,2,3,5,6,4,8,7] -> [2,3,4,5,8,0,7,1,6]
This algorithm would return True if the second set is reachable from the first one, and False otherwise.
I thought a bit about it and I can certainly say that if the initial set is solvable (it is possible to put all the squares in order) and so is the second one,... | |
doc_16129 |
$(parentelement).find(".spec-table__thead.spec-table__thead--original th p").each((function(index, element) {
console.log($(element))
console.log($(element)[0].clientWidth)
i.push($(element)[0].clientWidth)
}));
I have the code above and the console returns:
But upon checking the inside of the $(element)
I ca... | |
doc_16130 | Example:
http://www.weather.gov/xml/current_obs/KEDW.xml
The only problem is that NOAA doesn't provide a good way to find the closest weather station given a zip code or coordinates and I did not see any hosted web services out there that will provide this mapping.
Does anyone know of any web services to get the ne... | |
doc_16131 | x<-zoo(Value$SalesCount, order.by=Value$SaleDateTime)
Attempt 1
vv<-subset(x, index(x)>=as.Date("2013-01-01 00:00:00.000"))
Warning message:
In eval(expr, envir, enclos) :
Incompatible methods ("Ops.factor", "Ops.Date") for ">="
A: Subsetting with [ using the index is one solution. Following the example:
vv <- x[... | |
doc_16132 | 1.) I read that the larger your block size for your FFT, the better accuracy it will have, although I know that there is also a downside to this. Is this really true? Because Ive been experimenting and whenever I use a block size of 16384 as opposed to 8192 or 4096, I get worse results. Can someone clarify me about thi... | |
doc_16133 | public void transformXml(InputStream inputFileStream, Path outputDir) {
try {
Resource resource = resourceLoader
.getResource("classpath:demo.xslt");
LOGGER.info("Creating output XMLs and Assessment Report in {}", outputDir);
final File outputFile = new File(outputDir.toString());
... | |
doc_16134 | I have already implement characteristic that helps displays some data on watch's display. But I don't know how to handle incoming calls and SMS. As I understand programmers use ANCS, but I don't find how it implements.
A: First, your device needs to connect with your mobile.
Followed, your device discover service (UUI... | |
doc_16135 | n = write(sockfd, buf, sizeof(buf));
In the transmitter program and
n = read(sockfd, (void *)buf[idx]+numread,sizeof(buf[0])-numread);
In the receiver program. I am trying to find the c# equivalent of these functions above, but the only one i have found only takes byte data.
The server on the microcontroller runs sof... | |
doc_16136 | Any advice would be awesome. Thanks!
| |
doc_16137 | Example input:
id
Column_1
Column_2
1
Oct
10000$
1
Dec
9000$
2
Oct
3400$
3
Dec
20000$
2
Nov
9000$
1
Nov
15000$
Example Output:
id
Column_1
Column_2
1
Oct
10000$
1
Nov
15000$
1
Dec
9000$
id
Column_1
Column_2
2
Oct
3400$
2
Nov
9000$
id
Column_1
Column_2
3
Dec
2000... | |
doc_16138 | I have an already working project with its model and objects, the main purpose of the application is to encapsulate things as attributes (NString,NSObject, Custom Object..ecc) into one main class, give the ability to create many instance of this class then save it to storage, later retrieve and display a table list wit... | |
doc_16139 | I found that there is Elastic Search Connector available in Google Data Studio to make it work. Link: https://developers.google.com/datastudio/connector/data-sources. But I can't find any proper documentation or steps for it. If any one uses Elastic Search index with Google Data Studio, Please suggest me steps to make ... | |
doc_16140 | exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* spamassassin* squirrelmail*
I use the following command to remove php*:
sed -i "s/"php*"//g" /etc/yum.conf
This however removes only php and leaves the * behind. How do I remove the * as well?
A: The *... | |
doc_16141 | angular.module('myApp.userService', ['ngResource'])
.factory('UserService', function ($resource)
{
var user = $resource('/api/user', {},
{
connect: { method: 'POST', params: {}, isArray:false }
});
return user;
}
Then when using the connect action, I would like to dynam... | |
doc_16142 | Therefore: Is it possible to run an HTML test suite from PHPUnit?
A: Short answer
Running individual HTML test files is not a problem, running HTML suites files however does not seem to work. As long as you put all the HTML test files from a suit in a directory by themselves you can just run runSelenese($folderName)
L... | |
doc_16143 | xcopy "data" "C:\data" /S
xcopy "rapid" "C:\rapid" /S
subst x: /D
subst x: C:\
My Java code is as below:
try {
//C:\Desktop\Speed\view_R36_WD_Release\RAPID\switchToLive.Bat
String cmds[] = {"C:\\Users\\608521747\\Desktop\\Speed\\view_R36_WD_Release\\RAPID\\switchToDev.bat"};
Runtime... | |
doc_16144 | thanks
A: parse() them all to Date instances using SimpleDateFormat, create another instance of SimpleDateFormat and set the timezone you want and use format() to format all parsed instances to required timezone
| |
doc_16145 | I need to add a payment method to extend the Expiration date of the Ad.
Here is my Ad creation view .
class AdvertiseCreateView(APIView):
permission_classes = [IsAuthenticated]
def post(self, request):
serializer = AdvertiseSerializer(data=request.data)
user = request.user
if serializer.is_valid():
... | |
doc_16146 | class MyClass
{
public:
MyClass();
private:
Animals animals;
};
However I can also do this:
class MyClass
{
public:
MyClass();
private:
Animals* animals;
};
and then initialize the class in the constructor with:
animals = new Animals();
What is the difference between the two different approaches, whi... | |
doc_16147 | PHP Error: Call to undefined method PHPExcel_Worksheet::cells()
I can populate cells with data, but don't seem to be able to change any formatting.
Code looks like this:
Excel::load(storage_path('templates/consolidatedInvoice.xlsx'), function($excel) use($name, $invoice, $customer, $imported){
$excel->setAct... | |
doc_16148 | I've already updated the BLE connection parameters as suggested here:
https://developer.apple.com/library/archive/qa/qa1931/_index.html.
This has increased the stability but did not resolve the problems completely. I've tried playing around with the values but so far no luck.
The current set of parameters we are using ... | |
doc_16149 | Now I want to rotate this entire drawing to certain angel.
You can see what i want to achieve.
So my question is about how can i rotate entire drawing.
@Override
public void display(GLAutoDrawable arg0) {
final GL2 gl = arg0.getGL().getGL2();
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);
... | |
doc_16150 |
A: If you are directly modifying the XML file, you have to escape certain characters - & should be escaped using the XML entity &. If you use the editors, this should be done automatically for you.
If you use CDATA sections instead, you don't have to escape the characters.
A: If you insert the values when open ... | |
doc_16151 | First off, the Path where the .txt file are going to be saved should be costumniceabel to user. with other worrds the user should be abel to chose where to save the .txt file. When that is done i want to have it so that it write's everything down in that text doc. im pritty tierd now so i understand if you ppl cant re... | |
doc_16152 | With jquery and HTML it would be $("#id").click(); but in react native I don't know how to manipulate the onPress with javascript so that it is pressed alone.
A: import {TouchableOpacity } from 'react-native';
...
const function=()=>{
console.log('pressed!');
};
...
<TouchableOpacity onPress={()=>... | |
doc_16153 | The bug I'm trying to fix resides in a little snippet of code I wrote in C# that it's mission is to disect a string (I'll give examples below) and create instances of a class and invoke a method with arguments (if any were supplied in the string), then to return the output respectively.
This is my code:
responseData = ... | |
doc_16154 | I've been using the following two approaches to time my programs:
1)
import time
start = time.time()
[program]
print(time.time() - start)
2) On the bash command line, typing time python3 ./program.py
However, these two methods often give wildy different results. In the program I am working on now, the first returns ... | |
doc_16155 |
Then I try this
#!/usr/bin/python
import os,sys
import Image
import matplotlib.pyplot as plt
jpgfile = Image.open("t002.jpg")
fig = plt.imshow(jpgfile)
ax = fig.add_subplot(111)
ax.set_xlabel('normlized resistivities')
ay.set_ylabel('normlized velocities')
fig.savefig("fig.jpg")
But then I have
AttributeError: 'A... | |
doc_16156 | I found two possible implementations:
*
*In C and Java (and others, but not C#, so I would need to translate):
http://home.online.no/~pjacklam/notes/invnorm/
*
*In C#, there is StatisticFormula.InverseNormalDistribution (in System.Windows.Forms.DataVisualization.Charting). Given Microsoft's track record with a... | |
doc_16157 | Here's what "Explain plan" says without the "m.*" in the select:
Here it is again after adding m.* in the select:
Can anybody explain why it should behave this way?
Update: We only had this problem on one system and not another. The DBA verified that the one with the problem is running optimizer_features_enable set ... | |
doc_16158 | Popup.vue
<script>
import '../../assets/style.css'
export default {
data(){
return{
ceos: [{name_ceo:"Mr. A",
position_ceo:"CEO-GOSTREAM",
content:"Lorem."},
{name_ceo:"Mr. B",
position_ceo:"CTO-GOSTREAM",
content:"Lorem2."},
{name_ceo:"Mr. C... | |
doc_16159 | The image below is the section of code where this error appears. I have never seen this before and my friends nor me can find anything on it. Any advice is appreciated!
START, INPUT
SKIPCOND 800
HALT
OUTPUT
STORE A
SUB Z
SKIPCOND 800
SKIPCOND 000
JUMP START
... | |
doc_16160 | As I always need to run all six functions - and because I wrote them as and when I needed them - I decided it would be more efficient to combine them into a single, larger function (~400 lines, possibly going down to ~350 soon after some cleansing) rather than having to run six separate functions independently one afte... | |
doc_16161 | The recommended way is to set s3_headers with a proc.
has_attached_file :document,
:s3_headers => proc { |attachment|
Rails.logger.debug(attachment.to_json)
{ "Content-Disposition" => "attachment; filename=\"#{attachment.document_file_name}\"" }
}
This seems to run before the file has been pro... | |
doc_16162 | Using Parse ParsePush with a ParsePushBroadcastReceiver.
@Override
protected void onPushOpen(Context context, Intent intent) {
if (App.isRunning) {
// do nothing
} else {
// open app
}
}
A: I think the only way is launchMode="singleInstance" in your manifest, since launching from a notific... | |
doc_16163 | let array1 = ["a", "b", "c", "d"];
let array2 = [1, 2];
The outcome I would expect is ["a", 1 ,"b", 2, "c", "d"]
What's the best way to do that?
A: Create an array of tuples. Each tuple contains 1 element from each array, flatten by spreading the array of tuples, and adding the leftover items from the arrays:
const... | |
doc_16164 | At first I thought there was something wrong with my code, but then I tried the subtasks example and there again I get the duplicated titles.
https://github.com/cenk1cenk2/listr2/blob/master/examples/subtasks.example.ts
I’m using:
node v16.18.0
ts 4.8.4
listr2 5.0.5
| |
doc_16165 | public function actionView()
{
$this->view->title = 'List Hotels';
$items = ArrayHelper::map(Hotel::find()->all(), 'id', 'name');
return $this->render('index', [
'items' => $items,
]);
}
In my view file, I used the fetched data as below;
<?php
/* @var $this yii\web\View ... | |
doc_16166 | 1) Is there a portable way to speed it up? I don't need any checks done by FieldInfo.GetValue() implementation, I just need to get that value quickly.
Now about a non-portable way. I use Mono. My profiler shows that FieldInfo.GetValue() spends most of time in MonoField.CheckGeneric(). And call to MonoField.GetValueInte... | |
doc_16167 | <script>
$.post("/api/server", post_data, function(result) {
var parameter = result['parameter'];
// Do page redirect, but how do I pass my paramter to url_for()???
window.location = "{{ url_for('doit', param=???) }}";
});
</script>
The flask route:
@app.route("/doit/<param>")
def doit... | |
doc_16168 | <div class="slick_demo_1">
<div>
<div class="ibox-content">
<h2>Slide 1</h2>
</div>
</div>
<div>
<div class="ibox-content">
<h2>Sli... | |
doc_16169 | "The debugger cannot continue running the process. The project file '' has been renamed or no longer is in the solution."
Is there a(not brute force) way to understand what is wrong with the files and fix it.
What does this error message actually mean?
The solution is made of 10 projects, 2 of which can be used as star... | |
doc_16170 |
ORA-00904: "IP"."CREATION_DATE": invalid identifier 00904.
00000 - "%s: invalid identifier" *Cause: *Action:
I am not sure on how to accomplish this as I am new to Oracle. Any suggestions would be valuable. Sample screenshot for reference.
QUERY:
UPDATE
(SELECT PSH.EMP_ID,PSH.START_DATE,EM.CREATION_DATE F... | |
doc_16171 | I was hoping someone could send me in the right direction. I am open for any method to accomplish the goal.
A: Just deselect the two landscape modes in the target's Deployment Info (under the General tab):
A: Go to the project settings and find Deployment Info section. This is where you set the orientations that you... | |
doc_16172 |
curl -v -X PUT --data-binary "@configfile.json" -u username:password -D /tmp/grabbit_headers http:// server:port/grabbit/job
(The space between http:// and server... is inserted as per stack overflow guidelines but is not part of my code)
I have followed
http://alvinalexander.com/java/java-exec-processbuilder-proces... | |
doc_16173 | The main PHP:
$subject = $_POST["thesubject"];
$bound_text=md5(uniqid(time()));
$headers.="MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed; boundary=\"PHP-mixed-$bound_text\"\r\n";
$message="--PHP-mixed-$bound_text\r\n"
."Content-Type: text/html; charset=\"utf-8\"\r\n"
... | |
doc_16174 | div.wpdemos_wrapper
{
position: relative;
min-height:100%;
padding:0 0 20px;
background-image: url("./images/body/bg_honeycomb_top.png");
background-repeat: no-repeat;
background-position: top center;
background-size: contain;
width: 100%;
z-index: 0... | |
doc_16175 | I will describe my requirement with an example:
there is a relation between table A and table B -> one to many relation
If we consider that table A is for Students info and table B to save the courses for that student each year . it is only allowed to take 3 subjects each year so the structure will be as the following... | |
doc_16176 | For example, I see that "GetBlobProperties" transaction appears more than 400 millions per day. So I need to know who is consuming...
I searched in storage account metrics, but I cannot find where are they coming from.
Also searched in google but nobody has the same problem.
Any ideas?
A: You can find this informat... | |
doc_16177 | I thought tree shaking would eliminate the unused server code. Why doesn't it?
My current workaround is to add a new entry to tsconfig.json --> path: "@reporting/jobs-client": ["libs/jobs/src/client/index.ts"]. Which imports only the client stuff from the module. But this feels pretty hacky :(
Any suggestions how to cr... | |
doc_16178 |
A: There are two questions that you asked here. Addressing them consecutively:
*
*Do you need to an OAuth server for account linking? --> Yes. You either create your own authorization server which uses OAuth2.0 or you can rent it from providers. There are various OAuth server providers like auth0, okta etc.
*If you... | |
doc_16179 | Any ideas how to fix this? I've restarted the r session, but that didn't do anything.
| |
doc_16180 | labelID count
1 185302
2 137777
3 247434
4 136571
5 39724
6 46959
7 88471
8 109182
9 65326
I'd like to replace the labelID column with the label names, so that I have something like this:
labelID count
labe... | |
doc_16181 |
A: I agree with Justin, it would probably be a lot easier to just pick one language and stick with it. IFrames can cause problems. But short answer - yes, you can have an iframe in your master page that points to a PHP page.
A: Yup, you can use an iframe:
<iframe src="path/to/my/file.php"></iframe>
You'd have to ma... | |
doc_16182 | ql_remove_locks(){
local pid="$$";
declare -i count=0;
ql_pid="$pid" ql_node_ls_all | while read line; do
count=$((count+1));
echo "count: $count";
echo "deleting lock: $line";
rm -rf "$line";
done;
echo "quicklock: $count lock(s) removed."
}
I am getting this output:
count: 1
deleting lock: ... | |
doc_16183 | When I generate a Symfony 3 project the toolbar is generated but with Symfony 4.2.5 the debugging toolbar does not show even with a fersh install.
I tried this solutions:
composer require symfony/apache-pack
chmod -R 777 var/cache
and
[sudo] a2enmod rewrite
[sudo] service apache2 restart
And changed my .htaccess :
Di... | |
doc_16184 | $previousStep=$myStep-1;
?>
<A HREF="http://localhost/hello.php?step='$previousStep'"><IMG BORDER="0" IMG STYLE = "position:absolute; LEFT:400px; WIDTH:70px; HEIGHT:70px" SRC="IMG_8854.jpg"></A>
<?php
How would I add this variable in?
A: use <? echo $previousStep; ?> for output PHP data.
<a href="http://localhost... | |
doc_16185 | struct student{
char firstname[30];
char surname[30];
int streetNo;
char streetName[30];
char suburb[30];
char state[4];
int postCode;
char DOB[10];
int studentNo;
char gender;
char courseNo[4];
char active;
int WAM;... | |
doc_16186 | Everything is working as it should be, with the exception of the logo forcing the title to move to a new "line". If I change the #logo div to be position:absolute I can fix the positioning problem, but then my logo hover ceases to function.
Edit: Here's a live demo: http://vaer.ca/warm-forest-8234/
Here is my HTML:
<di... | |
doc_16187 |
A: I don't know how efficient or smart this is, but spriteBatch.Draw takes a color to shade textures. You could try setting up a list of textures and apply darker colors to the textures that are meant to be dimmed.
Something like:
for(int i = 0; i < texturesToDraw.Count; i++)
{
if(i == selected)
{
sp... | |
doc_16188 | How can I handle this issue?
Here based on tab focus to buttons on enter/space bar it takes the event of that particular button.
I have used a directive to handle for keypress on 'ESC' in the keyboard. Here I want to work on these things but no idea how to make it work.
1. Here by default if there is only one button, ... | |
doc_16189 | function downloadMP3( $url, $file ){
$curl = curl_init();
curl_setopt( $curl, CURLOPT_URL, $url );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $curl, CURLOPT_REFERER, 'http://translate.google.com/' );
curl_setopt( $curl, CURLOPT_USERAGENT, 'stagefright/1.2 (Linux;Android 5.... | |
doc_16190 |
In the IAM Policy of Athena, there is no concept of "data source", but a permission named "getDataCatalog":
So my question here is that does this data catalog equal to the data source I added in the Athena? Shall I use the data source name as the name of data catalog in the ARN? Are they equivalence?
| |
doc_16191 | //Lets take an sample object from Database
User
{
Age = 10;
Size = 180;
}
//para-request
... {"User":{"Age":15} ...
it should change object to
//Lets take an sample object from Database
User
{
Age = 10;
Size = 180;
}
but
//para-request
... {"User":{"Age":15, "Size":null} ...
It should change object to
User
... | |
doc_16192 | boot.asm
;; memory offset where our kernel is located
KERNEL_OFFSET equ 0x1000
;; save the boot drive number
mov [BOOT_DRIVE], dl
;; update base and stack pointers
mov bp, 0x9000
mov sp, bp
init:
mov si, msg ; loads the address of "msg" into SI register
mov ah, 0x0e ; sets AH to 0xe (function teletype)
print... | |
doc_16193 | >a<-c(4,5,6,7,8)
I have one data.frame
>df<-data.frame(start=c(1,4),end=c(3,5))
I want to create a third column in this df based on the start-end
>df
start end
1 1 3 mean(a[1:3])
2 4 5 mean(a[4:5])
of course mean(a[df$start:df$end]) does not work.
I have solved this in a long manner by creating a ne... | |
doc_16194 | This is essentially my JSON structure:
{
"products":
[{
"product-name":
{
"product-sets":
[{
"set-3":
{
"test1":"test2",
"test3":"test4"
},
"set-4":
{
... | |
doc_16195 | This is the behaviour in Python 2:
Python 2.7.15 (default, Nov 27 2018, 21:24:58)
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.11.45.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> street = u'Berlin Straße'.encode('utf-8')
>>> street
'Berlin Stra\xc3\x9fe'
>>> street.deco... | |
doc_16196 | The button disappearing works fine, but the position of the rectangle is the position of the button. No matter if I change the values of:
RECT rect = { 50, 120, 450, 15 };
LRESULT CALLBACK MainWndProc(HWND hWnd, UINT uiMessage, WPARAM wParam, LPARAM lParam)
{
static HWND hWndButton;
static HWND hWndEditBox;
... | |
doc_16197 | Basically I have a MainViewController class and inside the class is a navigation bar. I wanted to access the height of the navigation bar and transfer the value to to another file/class which is -> class SettingsLauncher: NSObject.
Only way I can access the navigation Bar Height is inside viewDidLoad of the MainViewCon... | |
doc_16198 | My domain model (Entity Framework) looks like this:
public class User
{
public int UserID { get; set; }
public string Name { get; set; }
public IList<UserCompany> UserCompanies { get; set; }
}
public class Company
{
public int CompanyID { get; set; }
public string Name { get; set; }
}
publ... | |
doc_16199 |
*
*index.php
*profile.php
*group.php
My Current URL is -
*
*abc.com/directory/index.php
*abc.com/directory/profile.php?name=piash
*abc.com/directory/group.php?name=CSE
I want to convert it to-
*
*abc.com/home
*abc.com/piash or abc.com/abrar (piash and abrar is GET parameter to profile.php file)
*abc.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.