id
stringlengths
5
11
text
stringlengths
0
146k
title
stringclasses
1 value
doc_23533900
For example I have the following action method that deelte a collection and then loop through a collection and delete the records:- [HttpPost] public ActionResult AssignPermisionLevel2(ICollection<SecurityroleTypePermision> list, int id) { repository.DeleteSecurityroleTypePermisions(id); foreach (var c in list)...
doc_23533901
I inherited a sloppy database with a table that has duplicate rows. However, they are not exact duplicates due to one column(a text column). Here is an example: TestID TestDescription Cost 115893hc127aaq Etiology • Understand the causes of acute pancreatit...
doc_23533902
The code as is works, but not as it should as App.updatePerfectScrollbar(psSidebar); is executing before the animations happening before it have completed. I do know how long each animation is and nothing is more than 200ms, but I know timeout is not the answer as you cannot be sure it finished. Is there a way to do a...
doc_23533903
Now, I'd like to attach this document as a PDF in an email (nodemailer). I don't want to send an email with a download link to the PDF. Can someone tell me what's the process to do so (download PDF automatically, save it somewhere)? Is it possible?
doc_23533904
I want to fill gradient color in the area under line chart. Although I have tried available color functions in Protovis but they did not work. Is there any simple solution for this problem? Below is my code to add area into line chart addArea: -> self = this @vis.add(pv.Area) .data(self.data[0].values) .bot...
doc_23533905
Java 8 will still be supported for the first number of 3.x releases but is expected to be dropped later in 2020 How can I know precisely from with version the Java 8 support has been dropped? If I'm using Java 8, shall I work with 2.x Apache Camel versions or shall I work with 3.0 for example? A: According to the FA...
doc_23533906
You get this functionality for free when you use web services because of the stateless model, but I am building a client/server architecture where the clients are connected for the lifetime of their sessions over TCP. How can I implement changes without disconnecting users and restarting my server? Obviously the conne...
doc_23533907
interface IGetFullnameRequest extends IAuthenticatedRequest { readonly body: Readonly<{ fullname: string; }>; } this is my controller - const getFullname = async (req: IGetFullnameRequest, res: IGetFullnameResponse) => { const userByFullname: Omit<IUserDocument, 'fullname' > | null = await Use...
doc_23533908
missingStuff <- function (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o , p, q, r, s, t, u, v, w, x, y, z) { ... } I could test each like so for instance missingStuff <- function (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o , p, q, r, s, t, u, v, w, x, y, z) { if(miss...
doc_23533909
And I need to keep track of all changes in the current RDS even after migrating. That's why we have chosen the MDS service. Ex: I have an existing database in account A and a new database in account B. I need continuous migration of data from account A to account B. Right now I am trying to achieve it was with the AWS ...
doc_23533910
I have used {%- for post in collections.featured -%} {% include 'postslist.njk' %} {%- endfor -%} but its not working. I have added featured tag in posts Postslist.njk - https://sourceb.in/CbfSslVH7O A: So first off, can you confirm that featured isn't empty? If you replace the include with just: a post<br/> does it...
doc_23533911
Here is my code: $result_while = mysql_query("SELECT id` FROM afunda_eleva"); $array = array(); while ($row = mysql_fetch_array($result_while)) { $array[] = $result_while['id']; } for($i=0; $i < 4; $i++) { echo "$array[$i]"; //Possibly error happening here!! } A: Gustavo mysql_query is deprecated in th...
doc_23533912
Here's my code: class Person: def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __str__(self): return "[Person = {} {} {}]".format(self.x, self.y, self.z) def main(): n = int(input()) li = [[Person(int(x), int(y), int(z)) for x, y, z in inp...
doc_23533913
Whether I use the .not() filter or the :not() selector, the element I'm trying to filter out is STILL part of the selection when I filter by class name. However, if I try to filter it out based on its id, it works fine. Here are the selectors: console.log( $( 'body > *' ).not( '.fullscreen, script' ) ); // div.f...
doc_23533914
The box shadow for each button is simply: box-shadow: 0 0 0 0.2rem rgba(134,142,150,.5) Is there a way that we could prevent this? It looks broken, specially when more than two buttons are adjacent. A: If you want the box shadows to overlap into one consistent color, you can do the following: box-shadow: 0 0 0 0.2re...
doc_23533915
I have a chart, and my goal is to place the carousel left, right always verical aline center (50% from the top), and position both arrows about 5% away, but close enough to the graph. I have a hard time getting this to work. I've tried HTML <div class="col-xs-12 col-sm-12 col-md-12 col-lg-6"> <div class="panel p...
doc_23533916
protected void Page_Load(object sender, EventArgs e) { ScriptManager.GetCurrent(this).RegisterPostBackControl(ChangeBannerButton); } Everything works fine (the banner is being uploaded properly) when FileUpload is on the first page (no postback, just enter the URL). When it's on the second page (I access it by cli...
doc_23533917
However, as there are numerous subpages, I would like to rearrange them in subfolders. However, when loading a subpage, my header.html will not load the image unless i change the path to '../images/image.png'. Doing so will cause the same problem when loading the index.html after this path change. A simplified site str...
doc_23533918
import pymysql as db ModuleNotFoundError: No module named pymysql Within Terminal... python --version Python 3.8.5 sudo apt-get install python3-pymysql python3-pymysql is already the newest version (0.9.3-2ubuntu3). pip3 install PyMySQL Requirement already satisfied: PyMySQL in /usr/lib/python3/dist-packages (0.9.3)...
doc_23533919
{ "_embedded": { "analytics": { "originCode": "PRD" }, "product": { "id": "wi412784", "description": "AH Wa­ter­fles met in­fu­ser blauw (500 ml)", "unitSize": "per stuk", "brandName": "AH", "categoryName": "Koken, tafel...
doc_23533920
Error I got in IIS The folder I'm talking about is here: This is where I have the static files folder And this is how I'm telling the application that I have a static files folder in the server-side: app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider( ...
doc_23533921
In which case, when would I absolutely need to use a queue over a topic? For consistency, could I use a topics everywhere including as a replacement for queues? A: A topic is not a replacement for a queue. The combination of a topic and a subscription is. A topic is allowing to “replicate” the same message to multiple...
doc_23533922
Do you know a simple way (as SQL request) to check if a request send to Postgres is in SSL Tunnel? I use JDBC. My application support SSL. I need it in order to realise a test. I didn't find something interesting but I could miss some information! Thank you very much!
doc_23533923
I tried: for idx in itertools.product(range(1,m-1+1),repeat=p) It already takes some time for m=10 and p=m-1=9. Must be possible to do much better. A: You should look at the itertools.product function and adapt it to your needs. Because of the condition k_1+k_2+...+k_{p-1}+k_p <= m, instead of calculating all possib...
doc_23533924
const { shortId, p_shortId } = req.params; const { comment } = req.body; const email = req.tokenInfo.email; try { const authData = await User.findOne({email}); const postData = await Post.findOne({shortId}); const parentData = await Upment.findOne({p_shortId}); const ne...
doc_23533925
The goal of the AlarmManager/BroadcastReceiver combination is to perform a periodic call to a REST API which is determined by the user location. Service code The onHandleIntent method of the service is called by a WakefulBroadcastReceiver with startWakefulService @Override protected void onHandleIntent(Intent intent) ...
doc_23533926
I'm using Pages, along with ACF (Advanced Custom Fields) to develop the theme (in case that's relevant). I have a couple page templates, one for the homepage, and one for inner pages. I've told Wordpress to use the Page "News" (/news) as the index for the blog/posts pages. So we're using something.com, and we'd like to...
doc_23533927
I follow the steps in the following blogs: One size doesn't fit all: One-Way SSL with JAX-WS using JDeveloper 11gR1 and WLS 10.3.1 Gerard Davison's Blog: Security Policy Worked Example All steps works fine for me. But the connection is not establish. I have key store and self-signed certificate for both client and serv...
doc_23533928
Something like this? $(document).ready(function(){ $('body').animate({backgroundColor:'#ffcc00'}, 500, function(){ $('body').animate({backgroundColor:'#eeeeee'}, 500, function(){ $('body').animate({backgroundColor:'#3b5998'}, 500); }); }); }); Any idea? A: $(document)...
doc_23533929
class B extends A object B extends B Where A is an abstract class in another file: abstract class A { def main(args: Array[String]): Unit = println("hey") } The above code is packaged into an uber-jar using the sbt assembly plugin, where the entry point is object B main method inherited from class B. The above ...
doc_23533930
This code worked perfectly in the 3.0 version of this app. I'm hoping someone can spot out what I'm missing. The first several files I've shown in the code below are configuration files. Again, this stuff worked fine in previous deploys. I'm baffled. The "controller mixin" is a module that is mixed into any controller ...
doc_23533931
app.post("/cb", (req, res) => { const { loginuser, userid, ischecked } = req.body; if (ischecked) { console.log("flag is true"); db.transaction(trx => { trx .insert({ id: loginuser, connections: userid }) .into("networkusers") .returning("id", "co...
doc_23533932
This is my online code : https://codesandbox.io/s/rwnloz44kq you will see a Calendar and button in the end of the page . When you press the Button, the Modal working normally and this is what i want to do ( but when I click on the event in the calendar, not when I click the button ) so then i will be able to popup the...
doc_23533933
The code I have below does work if the field is selected but if it's not then it doesn't display the rest of the content. Any ideas on how to not show this block if the field is selected but show the content if the field is not selected? function remove_blocks() { if ( is_single() && (get_field('article_style' ) == '...
doc_23533934
public class SimpleNashornTester { public static void main(String[] args) throws ScriptException, NoSuchMethodException { ScriptEngine jsEngine = new ScriptEngineManager().getEngineByName("nashorn"); Compilable jsCompilable = (Compilable) jsEngine; Invocable jsInvocable = (Invocable) jsEngi...
doc_23533935
and i am thinking about an app that will prevent another app from opening if the password is in-correcrt(another app crated by my on the cellphone- not another activity). I thought about using a file but i think it wont work because you need to be specific on where the file is and i want my program to be dynamic.
doc_23533936
* * * * On each image ProgressBar has different style from another ProgressBar's. I want to know, how i can specify progress bar style/thin in my application. I look at android.R.attr.progressBarStyleSmall but it just change a size of progress bar, not a thickness of a spinning circle. Note : Don't post answers w...
doc_23533937
I do not have the possibility to use Enterprise Manager, any applications, utilities or the like. I can only feed it with pure SQL. What I am after is SQL code, like CREATE TABLE and so on. So that I just can paste this into a query and voila - tables, procedures, functions are created in DatabaseB. I will not copy the...
doc_23533938
I have an EditText for decimal, hexadecimal, binary and octal. There a "convert from" button next to each of them. So if you click the button to convert from octal, it'll output the corresponding conversion to the others' EditText fields. This is the improved version of the code I tried to use for the from decimal func...
doc_23533939
https://i.stack.imgur.com/le5Gl.png I shold see something like this: https://i.stack.imgur.com/HnoIx.png I uninstall and install the IDE and nothing... A: From your first image, click on the little eye icon on the top left hand of the image. Select show layout decorations Hope it helps! Click me
doc_23533940
A: MAF uses a web layer for the UI effectively similar to PhoneGap/Cordova so its not like writing your code in xcode. The app would be an HTML5 app wrapped in an xcode project with the JVM embedded within. As far as I know the embedded JVM uses an interpreter since JIT's are disallowed on iOS. Disclaimer: I work for ...
doc_23533941
I'm trying to validate a class where only parent fields are annotated with constraints. I can see that MOXy is skipping validation for this class, probably it is not looking into the parent class. Can you advise on how to overcome this? A: I found a quick workaround. It is about creating dummy constraints which will a...
doc_23533942
// Card/styles.scss @mixin spacing($property, $max, $space) { @for $i from 1 to $max + 1 { &#{$i}x { #{$property}: $i * $space; } } } .Card { ... &--margin-bottom- { @include spacing(margin-bottom, 7, 4px); } } I tried creating a utils file so I can import it using @use, // utils.scss @mix...
doc_23533943
public static let Heading1: Font = system(size: 34, weight: .black, design: .default) .smallCaps() .italic() } I can make the font all caps OR italic - but not both. Anybody know how to get around this? Without typing the String out in caps to begin with. I even tried importing BlackItalic...
doc_23533944
/*******************************************************************************/ /* Section 4: Contact Area */ #section4{ width:1903px; } #contact_area{ background-color:red; /* max-width:750px; */ padding-top:80px; padding-bottom:60px; width:1903px; } .contact_container{ background-color:or...
doc_23533945
* *Ubuntu 10.04.4 LTS *ruby 1.9.1 *ImageMagick 6.8.6-5 *RMagick 2.13.2 When I try to do require 'RMagick' in irb I have an error: LoadError: /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/lib/RMagick2.so: undefined symbol: XStringListToTextProperty - /usr/local/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/lib/RM...
doc_23533946
<div class="bg-image cover-bg" id="mobile-app" data-image-src="assets/img/slider-4.jpg" data-overlay="4"></div> What I need is to change the value of data-image-src from "assets/img/slider-4.jpg" to "assets/img/vs-app.jpg" on click of a button which is made by <a> tag. A: You can get and set your data attribute lik...
doc_23533947
Is it best practice to require the image once at the top of the component as a variable and just use the variable 6-8 times instead of the calling require for each one of them? A: Yes, requiring it once at the top is far superior. But hey, you can go even further. If this is an icon you need to use across the app, it...
doc_23533948
This is how it looks like now Here are the errors I’m obviously doing something wrong. But I can’t figure it out. Here is my repo: https://github.com/Colawithrain/Collin_Blog And here is the Github pages link: https://colawithrain.github.io/Collin_Blog/ Thank you in advance for any pointers. Colin A: It's a little con...
doc_23533949
res.set('Set-Cookie', cookie.serialize('access_token', token, { httpOnly: true, maxAge: 60 * 60 * 24 * 7 // 1 week })); Later, the user tries to make a socket.io connection and the server tries to retrieve the cookie data: io.on('connection', function(socket) { console.log("SOCKET CONNECTED"); console....
doc_23533950
1 1 0 3 2 1 -1 1 3 -1 -1 2 -1 2 3 -1 I wrote the follwinng program, #include <stdio.h> #include <lapacke/lapacke.h> int main (int argc, const char * argv[]) { float a[4][4]={ {1,1,0,3}, {2,1,-1,1}, {3,-1,-1,2}, {-1,2,3,-1} }; lapack_int m=4,n=4,lda=4,info; int i,j; lapack_int*ipiv=(lapack_int*)malloc(4*4*size...
doc_23533951
Thank you A: Without a cluster (i.e. just one single mongrel instance), you can only handle one request at a time. So if ten people try to access your site at the same time, they each have to wait. And if one user does something that triggers a long process, no one else will have access to your site until it's done. S...
doc_23533952
'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre.. Try replacing the use of the deprecated member with the replacement. child: AnimatedSize( vsync: this, curve: Curves.easeIn, duration: Duration(seconds: 1), child: Text("test"), ), ...
doc_23533953
So, how i can display receipt email using nodejs mailer Example in letter : Dear (syntax_to_display_email) to Dear someone@example.com A: This has nothing to do with nodemailer. You need to prepare the string or html first. And, send it with nodemailer. There are two solutions: 1. Use template library (handlebars, ...
doc_23533954
How can i get the real area size of this path? The pathes (shapes) looks like this here: link to the image A: I found a solution. I generate a Region from the path and use a RegionIterator to get Rects inside the Region. With this Rects i can calculate the whole area of the path. private void calculateArea(Region re...
doc_23533955
this is the code def trasformazione (original): inProj = Proj(init='epsg:4326') outProj = Proj(init='epsg:3395') transformat=[] for g in range (0,row_count-1): x2,y2 = transform(inProj,outProj,original[g][0],original[g][1]) transformat.append([x2,y2]) return (transformat) transformat=trasformazione (original...
doc_23533956
// Index.cshmtl @{ ViewBag.Title = "EventManagement List"; } <hr/> <hr/> <hr/> <h2>EventManagement List</h2> <table id="EventManagementTable" class="display"> @*Semantic UI*@ @*<table id="EventManagementTable" class="ui celled table">*@ @*Bootstrap*@ ...
doc_23533957
I've moved everything to a test page at www.cucharavillage.com/test.html just so I could play with different code options and try to figure it out. It does not work in Firefox or IE. Any suggestions?
doc_23533958
array[++i]; array[i++]; A: The ++i increments i before evaluating it. The i++ inrements i after evaluating it. If i=1 then array[++i] sets i=2 and then fetches array[2]. If i=1 then array[i++] fetches array[1] then sets i=2. The post- and pre- operations happen after or before the expression they are involved in is e...
doc_23533959
BN2.get(5).getParentNode().removeChild(BN2.get(5)); Note: BN2 is the ArrayList that contains the nodes. File xmlFile = new File("Ex2.xml"); DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder; dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(xmlFile)...
doc_23533960
$filename = APP . 'docs' . DS . 'reports' . DS . $Workbooks[0]['Report']['company'] . '.' . $Workbooks[0]['Report']['report_name'] . '.' . $Workbooks[0]['Report']['extension']; $blacklist = array('Company Organogram'); $MasterFile = $this->PhpExcel->createMasterFile($filename,$company . '.' . $title,$colour); foreach($...
doc_23533961
A problem occurred evaluating project ':app'. > Could not find method compile() for arguments [project ':react-native-orientation'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. I followed then, the manual instructions for linking react-native-orientation to the Android...
doc_23533962
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 473, in spawn_worker worker.init_process() File "/usr/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 100, in init_process self.wsgi = self.app.wsgi() File "/usr/lib/python2.7/dist-packages/gun...
doc_23533963
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. below is my query i just want to add PrePmt_Amount from table sales header with Amount column from sales line and store the result in column testing in Table sales h...
doc_23533964
i.e: I tried: <div class="Date">19.05.2017</div> $date: //div[has-class("Date")] @datetime(-2): $date published_date: $@ but this has no effect on the date. What am I doing wrong? The telegram manuel is too brief. A: I don't know how to deal with it, so I use this dirty work for my template $date: //div[has-class("...
doc_23533965
When I built my model, I first considered all the features to go into my regression model. Once I have my model, I then ran Lasso regression on my model, with the hope that this will tackle any colinearity between the features. However, the Lasso regression kept both F1 and F2 in my model. Two questions: i) If F1 and F...
doc_23533966
How can I use the onTokenRefresh() method to notice the change of token continuously (even when the app is not opened) and send the new token to my backend server? Thank you. A: The code should look like this: Future<void> main() async { WidgetsFlutterBinding.ensureInitialized(); await Firebase.initializeApp(); ...
doc_23533967
I got 2 specific columns which are called cs_start_time(Type:Datetime) and cs_time_length(Type:int (seconds)) in my table. Now I want to delete these rows automatically when cs_start_time + cs_time_length < NOW() (Current Datetime) and Insert them into another table (of course it should be before deleting these rows). ...
doc_23533968
The code I want to vectorize looks like this : #pragma omp parallel shared(in, out, lambda,dim,C) private(k) { #pragma omp for schedule(guided,dim/nthreads) nowait for(k = 0;k < dim; k++){ in[k] = C*out[k]*lambda[k]; } } where out,lambda and in a...
doc_23533969
I initially passed the object as props, but I don't want private information on the object to be easily exposed using browser extensions such as Vue DevTools. Now, I've been searching for a way to define global variables inside the Blade Template and access them in Vue: Pass data from blade to vue component https://for...
doc_23533970
Command I am using to copy FileUtils.cp(src_file, dest_file). I can manually copy and paste file in the windows explorer.
doc_23533971
The application is a NPAPI plugin which uses .Net components via UnmanagedExports. I designed it as a low integrity application and therefore it has to reside in the users 'LocalLow' directory. In my application I used a dynamic assembly loading mechanism to load several assemblies at runtime. I used the following meth...
doc_23533972
Criteria criteria = session.createCriteria(Test.class); ProjectionList projList = Projections.projectionList(); projList.add(Projections.property("Month")); projList.add(Projections.property("Year")); criteria.setProjection(Projections.distinct(projList)); Here I am trying to fetch distinct values using Month and year...
doc_23533973
a_long_named_array = [1, 5] [2, 6] [3, 7] I could create a subset of my array such that the 1st column is greater than 5 by writing a_long_named_subarray = a_long_named_array[a_long_named_array[:,1] > 5] How do I plot this subdata without making the aforementioned subarray? P...
doc_23533974
I have default scaffolding one controller of Question in the controller and in which I have QuitionDetails method which is responsible for the QuitionDetailsView and in this view I am making ajax request to my API controller VotesController when the user clicks on the up-vote or down-vote. But I am getting this error ...
doc_23533975
new LineBasicMaterial({ color: '#ff1b00', linewidth: 1 } But in scene the color has a different shade, when i use color picker - color is #db5100. Why? And how to fix it? Set up webGlRender: this.renderer = new WebGLRenderer({ antialias: true, alpha: true, preserveDrawingBuffer: true, powerPreference: 'high-performance...
doc_23533976
"DepartmantCodes": [ { "DepartmentCode": "12", "DivisionCode": [ "11", "22" ] }, { "DepartmentCode": "22", ...
doc_23533977
Possible Duplicate: Git - Whitelisting files in a complex directory structure I'd like to have a git repository track only files named e.g. SOURCES while everything else shall be ignored (take e.g. a tree of pdf files where each SOURCES file lists their origins). The simplest shot would have been * !SOURCES in .giti...
doc_23533978
Last login: Tue Jan 21 16:59:52 on ttys002 Traceback (most recent call last): File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/local/Cellar/python@2/2.7.15_2/Frameworks/...
doc_23533979
//fun declaration TBool EncryptL(const TDesC8 &aInput, TDes8 &aOutput); //function calling TBuf8<10> text; TBuf8<10> cipher; text.Copy(_L("Hello")); iEncryptor.EncryptL(text,cipher); it shows error expression syntax error //fun definition TBool CRSAAlgo::EncryptL(const TDesC8 &aInput,TDes8 &aOutput) { if(iEncryp...
doc_23533980
But for some reason, I cannot check to see if that file exists, so every time the page loads it re-creates the file. Every example I look for talks about checking to see if the blob storage container exists, I just want to find this file. A: If your blob container is public and you know the name of the blob, you can ...
doc_23533981
function showDiagram(row){ var authCode = $("#authCode").text(); var header = "basic" + authCode; console.log("In show diagram"); var id = row.children().eq(6).text(); openURL = restURL + "/service/runtime/process-instances/" + id + "/diagram"; console.log(openURL); var xhr if(window.XML...
doc_23533982
My header: function Header () { const [isOpen, setIsOpen] = useState(false) return( <> <header className="header"> <div className="wrap"> <span className="btn-icon"> <IconPlus onClick={() => setIsOpen(true)} className="icon icon-plus js-mo...
doc_23533983
#include <stdio.h> long long int decimal(long long int); int power_2 (int); long int power_10 (int); int main(void){ long long int n; while(1){ printf("Write down a binary number. \n"); scanf("%lld", &n); long long int a = decimal(n); printf("The binary number %lld converted into decima...
doc_23533984
I would prefer it line up the arguments, like this: Is there a setting somewhere to do this automatically, so I don't have to manually indent the code? (I also want to do this for function calls.) A: Probably check out some linters if they can do it for you. Search in Extensions for plugins such as eslint or tslint...
doc_23533985
The following directory should be added to compiler include paths: XXX/boost_1_52_0 The following directory should be added to linker library paths: XXX/boost_1_52_0/stage/lib How do I add a compiler include path and a linker library path in Xcode? Many thanks. A: I should mention the following is for Xcode 4.5.2. Yo...
doc_23533986
public class Player extends MovieClip { private var playerHalfWidth:int = this.width/2; I get this error: 1119:Access of possibly undefined property width through a reference with static type class A: You are trying to reference this even before Player object is created. Moving it into the constructor, w...
doc_23533987
A: You need to look into the scripting object of UIWebView, and then do some work on the javascript side to send the data out of the web view, into your view controller. Then you can do whatever you want with it. Save as a document etc. Please take a look at this: windowScriptObject Unfortunately I think this is still...
doc_23533988
public class SerialNumberGenerator { private static volatile int serialNumber = 0; public static int nextSerialNumber() { return serialNumber++; } } class CircularSet { private int[] array; private int len; private int index = 0; public CircularSet(int size) { array = new int[size...
doc_23533989
function buildChart(targetDiv){ //grab the destination var bc = dojo.byId(targetDiv); //define the data for the series var testData = [2,4,2,2,2,3,2,10,11,12,8,4]; var string = "2,4,2,2,2,3,2,10,11,12,8,4"; var convertedString = string.split(","); console.log("V...
doc_23533990
I have tried to use the following in both rabbitmq.config and advanced.config (anonymized so I could post it here). I have tried using rabbitmq_auth_backend_ldap and rabbit_auth_backend_ldap. [ {rabbit, [{auth_backends, [rabbit_auth_backend_ldap]}]}, {rabbitmq_auth_backend_ldap, {servers, ["server1", "s...
doc_23533991
public class RateCodes { public int Id { get; set; } //Unique Composite Key Field 1 public int Sequence { get; set; } //Unique Composite Key Field 2 public int DivisionId { get; set; } public Decimal RateCode { get; set; } } In our client we want to allow a user reorder the sequence of their rate cod...
doc_23533992
Given a list of elements like this: <div> <div>1</div> <div>2</div> <div>3</div> <div>4</div> <div>5</div> <div>6</div> </div> I would like to achieve the result in the picture above. I tried to use flexboxes using "flex:50%" for every child element but all I was able to achieve is this. Is there a ...
doc_23533993
some of these projects are new initiative and some are incremental improvements over existing software that we built. our senior management is looking for a sleek way to visualize all the projects going on including: * *Size of effort in time and resources *ROI expected from the work *Indicate incremental improvem...
doc_23533994
When can the status be set to FAILED? Is it possible for it to transition to FAILED from one of the other statuses? A: A transaction status of FAILED will occur if a transaction is authorized using delay_capture and when the Capture endpoint is called it will return an error of DELAYED_TRANSACTION_FAILED.
doc_23533995
How do I prevent the drop in framerates? My display will need to occasional display the graph full screen, which causes the framerates to drop to an unacceptable value. I heard the EVR (Enhanced Video Render) is much better than the VMR9. Will the EVR maintain the framerates when increasing the size of the display? A:...
doc_23533996
I have an app that pulls data from Google Analytics using garb. After doing some number crunching with the data, the app will populate a Report model and display the report to the user. Right now, I'm separating the Google Analytics logic using concerns. In my concerns folder, I have a GoogleAnalytics module that is r...
doc_23533997
I got alarmed by it and quickly went to try it: >>> def foo(): return "hello_world!" ... >>> def bar(): foo() ... I realize every function in python returns (either None or something else) To my surprise when I tried the same logic in my previously learned languages, they seem to show similar behavior: C: #inclu...
doc_23533998
timeStamp - sensor(tag) - value(field). To query the values of more than one tag, the documentation provides the following: SELECT value FROM measurement WHERE sensor=sensor_1 OR sensor=sensor_2 OR ... Which results a single column of values. But how to divide the result values by the different sensors(tags) in multipl...
doc_23533999
The arc has a position, radius, minimum and maximum angles, and the width of the arc itself. The rectangle has a position, width and height, and rotation. How would one determine whether the arc and rectangle are intersecting? Provided is a visual aid that may increase clarity. The green rectangles are those that would...