id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_38600
var valuesWithNames = from value in values1 select new { Value = (int)value.ToString("00"), Text = value.ToString() }; How I can I change this to use the new Linq syntax and also change it so that the Text that I return has the following Regex applied to it ? ".Select(n => Regex.Replace(n, "([A-Z])...
doc_38601
class PizzaTable(tables.Table): class Meta: model = PizzaInstance fields = ("pizza", "type", "size", "price") attrs = {"class": "mytable"} trying to display two instances under one row like so: small large cheese $1 $2 instead of cheese small $1 cheese large $2 Can I...
doc_38602
I have a CSV file that has the date on the first row and the headers on the second row, so I need to be able to skip the first row when iterating over it. I tried using slice but that converts the CSV to an array and I really want to read it as CSV so I can take advantage of headers. A: Depending on your data you m...
doc_38603
assert((letter >= 'a' && letter <= 'z') || (letter >= 'A' && letter <= "Z")):"The letter you entered was incorrect"; I am getting a Bad operand type for binary operator '<=' error. Any help or tips would be much appreciated. :) A: You mean 'Z', not "Z". They are not the same: the first is a char literal, the second...
doc_38604
for(int i = 0; i < tickerlength; i++) { for(int j = 0; j < priceLength; j++) { double[] pricevariable = prices[i][j]; } } A: I'm assuming that prices is not a 3-dimentional array and that you're trying to put a double in a double[] You're declaring p...
doc_38605
But the browser is not redirecting to the url in the location header. Tried it on Chrome/Firefox and it does the same. jQuery.ajax(url, options).done((result: any) => { }); .done gets called immediately after 202 response A: Have a look at the HTTP specification, especial...
doc_38606
In order to have all the tasks array full, I'm controlling the end of the forEach with a promise: var parsePromise = new Promise(function (resolve, reject) { mongoDB.MongoClient.connect(dbURL, (error, db) => { originalData.forEach(function (element, index) { var restoredCustomer = Object.assign(elem...
doc_38607
the program can't start because libmx.dill is missing from your computer. Try reinstalling the program to fix this problem. By the way the file libmx.dll already exists in the Matlab path. How can I fix it? A: If you try running the exe from within MATLAB using >> system('my.exe'); does it work? If yes, then...
doc_38608
Headers: Content-Type:application/json X-Developer-Id:asdasdas X-Api-Key:asdasdas Authorization:Bearer sasdasdsa Time-Zone:Morocco Standard Time When I do a GET request in POSTMAN it works fine, however from angular 2 (Ionic 2) I get the following error: Request header field Time-Zone is not allowed by Access-Control-A...
doc_38609
I want restore these mails. I use postfix, dovecot and my system is CentOS 6.7. Is it possible to restore? A: Undelete is hard on most linux filesystems. Unless webmin has not actually deleted the emails (check on the commandline! Mail is usually stored in /var/mail/) you are probably out of luck. Other options for re...
doc_38610
$body = @{"partitionKey"="01";"rowKey"="02";"userId"="00001"} $dataJson = $body | ConvertTo-Json $functionUri = 'https://functionNumber2' Invoke-WebRequest -Uri $functionUri -Method POST -Body $dataJson And my second function looks like this: using namespace System.Net # Input bindings are passed in via param block....
doc_38611
A: Your question asks for a lot so the best I could do is give a general overview of it. You are going to need to create custom cells for your tableview. This tutorial should start you off if using IB. You can also create your cells using code rather than IB. If your doing it on code you should create the view of the ...
doc_38612
I would like to try to realize the effect that you see in the image gif, I thought to base myself on the following module to realize the circle: react-native-conical-gradient-progress I'm having some trouble thinking about how to make it happen. The problem is how to transform the whole circle, even portions of it into...
doc_38613
1066 - Not unique table/alias: 'MOZ' SELECT * FROM GA, MOZ, SF LEFT OUTER JOIN MOZ ON GA.Page = MOZ.URL LEFT OUTER JOIN SF ON GA.Page = SF.Address A: The error is pretty clear, you have referenced the table MOZ twice, choose another alias for the second table: SELECT * FROM GA, MOZ, SF LEFT OUTER JOIN MOZ AS moz2 O...
doc_38614
I have asked this question in Wikitude forums too but no one answer. Here is my plugin code: I'm using Wikitude 6.0 and VisualStudio 2017 public class Plugin02 : Com.Wikitude.Common.Plugins.Plugin { public Plugin02(string p0) : base(p0) { } public override void CameraFrameAvailable(Frame p0) { ...
doc_38615
> social-media-website@0.1.0 dev C:\Users\parth\Desktop\projects\social-media-website- git\social-media-app > next dev internal/modules/cjs/loader.js:1032 throw err; ^ Error: Cannot find module 'C:\Users\parth\Desktop\projects\social-media-website-git\social-media-app\node_modules\next\dist\bin\next' at Func...
doc_38616
Installing dotenv 0.11.1 Installing eventmachine 1.0.3 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/Ruby21-x64/bin/ruby.exe extconf.rb checking for main() in -lssl... no checking for rb_trap_immediate in ruby.h,rubysig.h... no checking for rb_thread_blocking_region()... y...
doc_38617
<p:treeTable id="tree_dt" value="#{OrganizasyonYetkinlikVeriGirisBean.root}" var="organizasyon"> <p:column headerText="Ünite Adı" style="width:350px" filterBy="#{organizasyon.uniteAdi}" filterMatchMode="contains"> **<h:outputText value="#{organizasyon.uniteAdi...
doc_38618
I have an extremely cryptic manual that helps the user decode the binary file, it gives an example: The date “28/04/14 12:25:39” is coded in 32 bits: 0x3938C667 First, I entered this Hex string into a Hex to Dec converter and Hex to Ascii converter in hopes it would decode it to something close to a date. The hex strin...
doc_38619
* *Use Qt Designer to create a .ui file. *Create a python class of the same type as the widget you created in the .ui file. *When initializing the python class, use uic to dynamically load the .ui file onto the class. Is there any way to do something similar in PySide? I've read through the documentation and ex...
doc_38620
I have created a button in other columns somewhere in the mid of the page like H5 No when i delete the invalid data manually by just selecting the row number and delete that should delete the entire row. But my requirement is we should be deleting the entire row for ex: if row 5 has invalid data. We will delete the inv...
doc_38621
I run this other command: aws iam list-user-policies --user-name xxxxx, and I get this result below empty: { "PolicyNames": [] } Which command or what combination of commands I need to display all users plus their respective permissions?, thanks. A: Inspired by this post, I wrote this to capture a user's permissi...
doc_38622
A: On many implementations of the C programming language and especially on POSIX, the environment is accessible from the environ global variable. You may need to declare it manually as it's not declared in any standard header file: extern char **environ; environ points to a NULL terminated array of pointers to variab...
doc_38623
Sub ConnectDB() If cnn.State <> adStateOpen Then Dim strFileName As String strFileName = "O:Children's Fund\APS 2014-15\Refrerral - Allocation Database.xlsx" cnn.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=" & strFileName & ";" & _ "Extended Properties=""Excel 8.0;HDR=Yes"";" End If En...
doc_38624
$street = "100 road Overflow"; $streetTypes = array("ROAD", "ST", "ABBEY", "BLVD", "ALLEY", "CAR"); //find and save the street type in a variable //Response echo "We have found ".$streetType." in the string"; Also, the address is submitted by a user and the format is never the same which complicate things. So far, I...
doc_38625
function toolProbPlot(probDivTitle,probValues,probPlotTitle,probX,legendLabel) { return plot = $.jqplot(probDivTitle,probValues, { title: probPlotTitle, seriesColors:[noColor,yesColor], legend: { show: true, location: legendLocation, placement: legendPlac...
doc_38626
I'm going to go down a column of addresses, which look like: Address1=" 122 S 102 ct," I have my conversion logic as: CT=['ct','ct,','ct.','court'] DR=['drive,','drive.','drive','driv','dr,','dr.','dr'] dictionary={"CT":CT, "DR":DR} How should I search for all dictionary values within Address1 and replace them with t...
doc_38627
FIDDLE <div id="container"> <div class="fileuploader">Upload</div> </div> <button id="btnadd">CLICK</button> $(".fileuploader").uploadFile({ url: "YOUR_FILE_UPLOAD_URL", fileName: "myfile" }); $('#btnadd').on('click', function () { $("#container").append('<div class="fileuploader">Upload</div>'); ...
doc_38628
void scrollAfter(ScrollController scrollController, {int seconds}) { Future.delayed(Duration(seconds: seconds), () { var offset = 550.0; var scrollDuration = Duration(seconds: 2); scrollController.animateTo(offset, duration: scrollDuration, curve: Curves.ease); }); } @override ...
doc_38629
Now we're getting an OutOfMemory exception in our production environment. I'm quite leery of running a profiler in a production environment so my question is...Is there any way to debug this problem in the production environment without using a profiler or is there something that is light-weight enough that I could ru...
doc_38630
At the end of the traversal I make a check if the stack is empty (that is I check if all the opening delimiters were balanced out or not). If it's not empty, I report an error. Although I have cross checked many times the code seems to be reporting every string as invaalid(i.e with unbalanced delimiters). Here's the co...
doc_38631
Is'nt there a way in android to keep track the responses of multiple async calls? Why should the server tell to android that which service is served. A: There is no need for the server to send any code . He could send each http request using IntentService with a key. On each response from your server, he puts the key ...
doc_38632
I don't know what type of object it is. I want to search for all objects of all types in a schema/db/account. Is there a way to do that? If I know it's a user function, I can search show user functions in account If I know it's a procedure I can search show procedures in my_db.my_schema Is there a way to search show al...
doc_38633
And it is working well but when i add a selectmenu at the bottom of my page then this happends: How can i fix this that when the selectmenu is on the bottom that the dropdown comes above instead of under? The JS i use: $('select').not("select.multiple").selectmenu({ style: 'dropdown', transferClasses: true, ...
doc_38634
I believe this behavior can be hacked together using a ScrollViewer and ScrollViewer.ChangeView(), but I am hoping there is a better, friendlier framework method to do this.
doc_38635
Batch |Product | Date | Quantity | ------------+---------+--------------------+-----------+ D001 |P001 | 1Jul2017 | 1000 | D002 |P001 | 10Jul2017 | 2000 | D003 |P001 | 15Jul2017 | 3000 | D004 |P001 | 18Jul2017 ...
doc_38636
It's been days that I tried to accomodate some times in between then came back to this code-base, but still faced up the same issue. I am frustrated that have a Spring Boot 1.5.12 application that worked in IDEA but failed when running executable jar in Unix box, and the stack trace follows this format that I needed t...
doc_38637
Below is the code of my view page, <% provide(:title, "Log in") %> <div class="center jumbotron"> <h1> Kaching </h1> <div class = "row" > <div class="col-md-6 col-md-offset-3"> <%= form_for(:session, url: login_path) do |f| %> <%= f.label :logID, "Log ID" %> <%= f.text_field :logID %> <%= f.label :...
doc_38638
Look at the image: Two people are betting on Red, but only one result is correct: D2 (as a correct Red bet will double). D3 is not doubled and, therefore, it is wrong. Formulas: D2: =IF(B2="Red";C5;IF(B2="Black";C6;C2)) In this formula I would like to reference the underlying formula C5 what is working. (In this scena...
doc_38639
This is the code I am using int nHrTime; int nMinTime; int nYear; int nMonth; int nDay; nHrTime = DeviceTimePickr.getCurrentHour(); nMinTime = DeviceTimePickr.getCurrentMinute(); nYear = DeviceDatePickr.getYear(); nMonth = DeviceDatePickr.getM...
doc_38640
for example i have installed this [Croatian] KeyboardLayout using this code here: LoadKeyboardLayout('0000041a', 0); how to remove it programmatically ? by the way, this KeyboardLayout doesn't appear from the added keyboard languages in windows settings. i mean is there an UnloadKeyboardLayout function ? i don't me...
doc_38641
The problem is, after typing a word in textfield, then touching outside, the action in the button in done, even before the button is pressed @IBOutlet weak var item: UITextField! @IBAction func addButton(sender: AnyObject) { toDoList.append(item.text!) item.text = "" } override func touchesBegan(touches: Set...
doc_38642
I don't want people to be able to change the information that I have put in, so I was wondering if I could force it to send the email without going to the modal view? I am aware of using a url with mailto but believe you can't add an attachment. If anyone knows if this is possible or even better if they know how to do ...
doc_38643
Language for use: Javascript.
doc_38644
Issue i am facing is that Chrome.i18n only works when i change the browser language. How can i detect the gmail lanugage change without changing browser language? For example if browser language is Spanish following line chrome.i18n.getMessage('sample_string') will return Spanish text. But if browser language is Engli...
doc_38645
--- - hosts: databases gather_facts: true vars: entities: - name: dude is_default: false id: 2104 gen: 12-C - name: mate is_default: true id: 1724 gen: 13-A - name: pal is_default: false id: 1809 gen: 13-A ...
doc_38646
struct Foo { void hi() const { std::cout << "hi" << std::endl; } }; BOOST_PYTHON_MODULE(Example) { typedef Foo Bar; class_<Foo>("Foo") .def("hi", &Foo::hi) ; class_<Bar>("Bar") .def("hi", &Bar::hi) ; } The code works as expected except the annoying RuntimeWarning. RuntimeWarning: to-Python conve...
doc_38647
I wrote "hello,first_name", where first_name is the name entered by the user. Then I modified the code as follows: change the prompt to "enter the name of the person you want to write to" and change the output to "Hello, first_name,"following do you like where you are right now in life (y/n)?"; this Is right before I ...
doc_38648
OWLOntologyManager manager=OWLManager.createOWLOntologyManager(); OWLOntology fist_ontology=manager.loadOntologyFromOntologyDocument......... ................ OWLOntology last_ontology=manager.loadOntologyFromOntologyDocument.......... reasoner=PelletReasonerFactory.getInstance().createReasoner(last_ontology); m...
doc_38649
//$Id: FileHelper.java 15522 2008-11-05 20:06:43Z hardy.ferentschik $ //Revised from hibernate search util import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; import java.util.Arrays; import java.util.HashSet; import ja...
doc_38650
Traceback (most recent call last): File "object_detection_tutorial_converted.py", line 254, in <module> show_inference(detection_model, image_path) File "object_detection_tutorial_converted.py", line 235, in show_inference output_dict = run_inference_for_single_image(model, image_np) File "object_detectio...
doc_38651
Yesterday the output looked amazing (thanks to bookdown). Today, I modified just the simplest content of my book and tried to knit it again. All resulting HTML-files were empty, except for the index.html. The same issue arises when I want to run the minimal-book-example. Just to demonstrate, not even this small example...
doc_38652
import { useState, useEffect, useRef } from "react"; export default function TestRef(){ const [inputValue, setInputValue] = useState(""); const count = useRef(null); const myFunc = () => { console.log('Function Triggered'); } useEffect(() => { if(!count.current){ coun...
doc_38653
Edit: Supposing below is the scenario, I have created a custom actor system with name "mysystem" and an two actors created under "/user" A and B where A is supervisor of B. A <- supervisor actor ( akka://mysystem/user/A ) B <- actor ( akka://mysystem/user/A/B ) After the creation, assuming that I have no intetion of t...
doc_38654
I don't know what to choose. I have a standard Silverlight app hosted in an aspx page. From the aspx page, in JavaScript, I call some methods like: FB.init() and FB.getLoginStatus(). From the silverlight app code I call the https://api.facebook.com/method/fql.query endpoint using WebClient() class. Is it Web or Nativ...
doc_38655
However, Depending on the use-case (a variable in the client object), the identifier can be either a String, long, or even a Class. Something like IntegerIdentifier, StringIdentifier, FooIdentifier and some interface defined which can be generic. How can I create this design? A: Not sure what your full context is, but...
doc_38656
Example: unit MyUnit; interface uses Classes; type TMyClass = class(TStringList) end; implementation end. Main unit: ... uses MyUnit, ... var oCont: TRttiContext; oType: TRttiType; begin oCont := TRttiContext.Create; try oType := oCont.FindType('MyUnit.TMyClass'); <== oType = nil...
doc_38657
producer.initTransaction(); try { producer.beginTransaction(); producer.send(new ProducerRecord<>(producerTopic, element)); producer.commitTransaction(); } catch (ProducerFencedException | OutOfOrderSequenceException | AuthorizationException e) { producer.close(); canSendNext = false; }catch (KafkaE...
doc_38658
On sub-domain, I have anotherController.js file. Here's anotherController.js content: function anotherControllerWrapper() { return ['$scope', '$state', function ($scope, $state) { $scope.doWork = function () { //...doing some work... alert('work done'); }; $scope.doWo...
doc_38659
so here my code def load_img(filename): img = read_file(filename) # Load Data img = decode_image(img, channels=3) # convert to RGB img = resize(img, size=[img_height, img_height]) img = np.array(img)[:,:,1] # Resize image img = img/255. # Rescale Images return img inf1 = load_img(r'ML2\COVID-19\inf_set\cov...
doc_38660
When I want to compile : g++ myfile.cxx -o myfile I get this error : fatal error opencv2/core.hpp not such file or directory So I open the .bashrc and I add that : export PATH=${PATH}:/usr/local/include/opencv4 and when I compile I do now that : g++ myfile.cxx -o myfile -I/usr/include/opencv4 And now I get many erro...
doc_38661
ERROR in ./node_modules/@sentry/utils/esm/is.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): Error: File lib.dom.d.ts does not have a sourceFile. at Object.getSourceFile (/Users/shurikag/PRIZ/dev/priz-fe/node_modules/@angular-devkit/build-optim...
doc_38662
df = df[df.isnull().any(axis=1)] But in case of PySpark, when I am running below command it shows Attributeerror: df.filter(df.isNull()) AttributeError: 'DataFrame' object has no attribute 'isNull'. How can get the rows with null values without checking it for each column? A: You can filter the rows with where, redu...
doc_38663
console.log(func(10)); // 20 var func = function(x) { return x * x; } console.log(func(10)); // 100 var func = function(x) { return x + x; } I wanted to know how computer reads it? Please explain as easy as it is possible. EDIT: I'm asking because I found in the book "Eloquent Javascript" something like this...
doc_38664
//Sample Code private static RepositoryLocationItem lastRepoItemSelected; Composite parent=new Composite(SWT.NONE) treeViewer = new TreeViewer(parent); treeViewer.setContentProvider(new MovingBoxContentProvider()); treeViewer.setLabelProvider(new MovingBoxLabelProvider()); treeViewer.setInput(getInitalInput()); treeV...
doc_38665
Here is the snippet of code I am trying to manipulate. <form action="#" method="GET"> <span class="headlines">Customer:</span> <select id="orgSelect" name="orgSelect" dojoType="dijit.form.FilteringSelect" labelType="text" style="width: 150px;visibility:hidden" autoComplete="true" <option value="__select__" selecte...
doc_38666
For whatever reason, I couldn't make the entirety of my program in python, so I had to outsource one specific task to php (a language I do not know very well). As the python program runs, it is supposed to trigger the php program to run, and then do a few things afterwards which is not a problem. It seems to me that, t...
doc_38667
var secret1 = "70767380"; //flip var secret2 = "857870767380"; //unflip var input = ""; var timer; var mode = false; $(document).keyup(function(e) { input += e.which; clearTimeout(timer); timer = setTimeout(function() { input = ""; }, 1000); check_input(); }); function check_input() { if(inp...
doc_38668
When I press the header ($(".fileHeader")) , it should open then next element which is the next element (hidden div) ($(".LST_Documents")) sketch : JSBIN : it does work. Most important : When I press on a $(".fileHeader")- i need to close all other $(".LST_Documents") and then ( that why i used promise) open the r...
doc_38669
The grid has server filtering, which works fine. The issue is-Filter is giving the results based on contains operator only(irrespective of what I have selected) how to get the filter operator from filter operator options. Please help me @(Html.Kendo().Grid(Model).Name("ViewDataGrid") .Columns(columns => { ...
doc_38670
I am getting a crash at VS startup of AnkhSVN in VS 2017. I believe this just started happening today - I don't remember it happening the last time I opened the IDE. Uninstall/reinstall of the extension doesn't help. Error msg when I attempt to open the Pending Changes window: AnkhSVN Exception An internal error oc...
doc_38671
When I don't include the port in my pika.ConnectionParemeters, the connection is outright refused immediately. When I do include the port, the connection hangs and never shows on rabbitmq's side. Not sure if there's something funky going on with docker or with pika, but it is worth mentioning that my code connects to a...
doc_38672
For more simplicity, I have a text component, <Text>Banner Ad Here</Text> I'm expecting to render this Text Component after every 2 items in my FlastList below, <FlatList data={DATA} renderItem={renderItem} keyExtractor={(item) => item.id} /> I would really appreciate it if somebody could help me. Thanks. H...
doc_38673
If I want to modify one of the modules (let's say I need a small modification in the news management module) I could copy the entire class to a local folder and do the modifications there. The bootstrap process picks up the local files if they exist over the core ones. This works fine but it seems like a terrible way o...
doc_38674
Depending on the sequencing set up with respect to sequencing mode and how many indexes were used, it can generate either read1,read2,index1 or read1,read2,index1,index2, etc. What I want to do is, put the read output number information in the config.yaml file as this: readids: ['I1','I2','R1','R2'] and let the rule f...
doc_38675
I want to convert this file into ppk format. For this I am using PUTTYGEN. When i load rds-combined-ca-bundle.pem file then this gives me error couldn't load private key (file does not begin with openssh key header) PEM contains multiple lines of -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- Example- -----...
doc_38676
I read some topics about the graceful shutdown in spring but haven't found any useful information on how to customize this.
doc_38677
How do I offset the view a little bit upwards while dragging? Thanks if (recognizer.state == UIGestureRecognizerStateChanged) { CGPoint translation = [recognizer translationInView:self]; draggingView.center = CGPointMake(draggingView.center.x + translation.x, draggingView....
doc_38678
Is that possible? We have Pivotal Tracker integrated with BugDigger which requires submitting a bug through bug digger interface, but we need a simple email integration. Can anyone recommend any free tools/API that can do that? A: Found out that Pivotal tracker allows email integration but only from the subject line ...
doc_38679
6 5 1 12 10 But am getting out as below: 10 12 1 5 6 I need out as 1 5 6 10 12 Is there any way to sort the numeric lines in Inno Setup. procedure SortList(const FileName: string); var I: Integer; Files: TStringList; begin Files := TStringList.Create; try Files.LoadFromFile(FileName); for I := Fil...
doc_38680
If, for instance, I wanted to store the horizontal line at y=2, I might have written it out in highschool as f(x) = 2, or if I wanted the exponential it could be f(x) = 2**x. Of course, to make use of the data (rather than to just display it as the raw string to a human), at some point this would need to be parsed and ...
doc_38681
This is how I'm running over all queues: Dictionary<string, int> dic = new Dictionary<string, int>(); foreach (CloudQueue queue in QueuesToMonitor) { queue.FetchAttributes(); dic.Add(queue.Name, queue.ApproximateMessageCount.HasValue ? queue.ApproximateMessageCount.Value : -1); } This code is working fine but ...
doc_38682
I tried overriding some styles in MUI but didn't work. Any help is appreciated. Attaching the sandbox : https://codesandbox.io/s/oc1ox?file=/demo.js A: Add these styles to MenuItem <MenuItem sx={{ display: "inline-flex", width: "50%" }}> <Checkbox checked={personName.indexOf(name) > -1} /> <ListItemText primary={...
doc_38683
service cloud.firestore { match /databases/{database}/documents { function isAdmin() { return get(/databases/$(database)/documents/users/$(request.auth.uid)).data.admin == true; } match /myDocs/{myDoc} { allow read: if resource.data.published == true || isAdmin(); } } } I also tested ...
doc_38684
function alter_form_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { if ($form_id == 'user_login_form') { ##ADD BUTTONS ??? $form['#validate'] = ['test_validate']; $form['actions']['submit']['#submit'][] = 'custom_submit_method'; } } A: You can add a bu...
doc_38685
I have this code.. jLabel1.setIcon(new ImageIcon(getClass().getResource("/student/information/system/images/bk4.jpg"))); A: Goodness, why are you trying to read an image file in one line? First, make sure that your resources folder is defined for your project and is on the build path. Here's an example from one of m...
doc_38686
love "C:\testgame" in the cmd. So I use this code, but it seems like the parameter is missinterpreted. Also, the console closes after a sec. But if I use Messagebox.Show I can see the command in the cmd is the same I manually use (and this works) Process cmd = new Process(); cmd.StartInfo.FileName = "cmd.exe";...
doc_38687
I'm quite new to smart pointers and so far I'm a bit confused. Please consider the following simplified code: class Texture { private: struct ComDeleter { operator() (IUnknown* p) { p.Release(); delete p; } } ID3D11Texture* m_dumbTexture; std::unique_...
doc_38688
public function actionTest() { Yii::$app->response->format = Response::FORMAT_JSON; return ['test' => 1]; } Response: <?php{"test":1} I don't understand why <\?php" is appending to the response. I try to use: Yii::$app->response->format = Response::FORMAT_RAW; and return Json::encode(['test' => 1]); but it...
doc_38689
For example I have 20 lists with a similar name pattern, each representing consumption spending over time (i.e. index) of the corresponding household (agent): c_agent_0 = [10.0, 11.0, ...] . . . c_agent_19 = [8.0, 9.0, ...] I need something like value = sum of index whatever's in c_agent_*[whatever] A: Use zip to "co...
doc_38690
shAll.Range("A1:I78").Offset(1).Resize(.Rows.Count - 1, .Columns.Count - 1).SpecialCells(xlCellTypeVisible).copy When I press enter I get this error: "Compile error: Invalid watch expression" Is it a syntax issue? This part of the code it working fine when executed in the immediate window: shAll.Range("A1:I78").Offse...
doc_38691
the project using Android Studio. This project includes the Proguard files from the Eclipse configuration not the Android Studio configuration Proguard files. The files I have are Proguard-Project and a project file which tells me to uncomment some line to allow Proguard on my project. I don't have the proguard-rules....
doc_38692
How can I force focus to change to my custom menu when pressing the menu button? A: here is the objective C - (UIView *)preferredFocusedView { if (someCondition) { // this is if your menu is a tableview NSIndexPath *ip = [NSIndexPath indexPathForRow:2 inSection:0]; UITableViewCell * cell = [s...
doc_38693
For instance, I have a form based on a query and I want to use a Combo Box to edit a field that is blank on the query end based on the values that are in the Combo box, similar to a drop-down box in a query or table. I created a Column for the data values to be entered and the values will go into a given based on the ...
doc_38694
Let me know if there is anyway to Encrypted a dataset. A: Serialize the dataset and use the TripleDES class, which does encryption on byte-arrays. A: Do the clients of your web service understand the WS-Security protocols? If so, then create the service in WCF, implement message security, and it should "just work".
doc_38695
$obj_pdf->writeHTML($html); $obj_pdf->Output('Agree.pdf', 'I'); Severity: Notice Message: Undefined offset: 0 Filename: tcpdf/tcpdf.php Line Number: 17155 A PHP Error was encountered Severity: Notice Message: Undefined offset: 0 Filename: tcpdf/tcpdf.php Line Number: 17522 TCPDF ERROR: Some data has already been outpu...
doc_38696
SELECT T2.SlpName, T0.CardName, T0.DocNum, T0.DocType, T0.DocTotal, CASE T0.CANCELED WHEN 'N' THEN (T0.DocTotal - T0.VatSum - T0.TotalExpns) As "Total du document sans TVA", SUM(T1.LineTotal * (T1.Commission / 100)) As "Total des commissions" ELSE ((T0.DocTotal - T0.VatSum - T0.TotalExpns) * -1) As "Total du document...
doc_38697
right now my problem can be broken down to this: I have one Test View Controller that can display my 'Test' object by showing the description and the title. I also have an array of Test objects. In the top right hand corner, there is a 'skip this test' button, and if the user clicks on it, the viewcontroller will segue...
doc_38698
society site floor room --------------------------- Apple London first office Apple London first Meeting Apple London first Conference Apple London second IT Apple London second HR Apple Rome second CCM Apple Rome second BM i wont to export that table as xml in format: <LocationData> ...
doc_38699
I think this is due to Android using Chrome. Would you please suggest me how to remove this caching? <input id="getStationDesc" name="getStationDesc" type="text" class="log_txtfield" disabled="disabled"/> <script> var obj = actb(document.getElementById('getStationDesc'),stationList); //setTimeout(function(){obj...