Posts

Showing posts from July, 2010

ios - Including Swift files in Objective-C -

I am trying to include a fast section in the objective project. The bright square gets from UIView and looks like: class BVDTestView: UIView {...} Note that I do not include the @objc because the faster class gets from UIView . Object-In the implementation file, I import the umbrella swift headers: #import "TestApp-Swift.h" I think it When I create the file, but I do not see any reference to BVDTestView (I think I want to). When I try to create an example of fast footage, I get an error: BVDTestView * view = [BVDTestView new]; Use of undisclosed identifier 'view' Any thoughts? I'm on Xcode 6 Beta 4. I recently went on to beta 4, in Swift, and By default, all organizations have internal access. You must explicitly mark header public class BVDTestView ... .

java - Android - Passing Intent from SherlockFragment to normal Activity class -

I am trying to pass two strings in a normal class, but when I try to get the data last int a = i; Blog [i] .setOnClickListener (see new OnClickListener) {public void onClick (see v) {intent i = new (getActivity), ReadBlog.class) {i.putExtra ("title", jsons [a] GetString ("title"); i.putExtra ("text", jsons [a] .getstring ("text");} hold (JSONException e) {// TODO auto generated blocking block e.printStackTrace (); } Initialization (i); log. E ("button", "blog clicked");}}); and general class: increases the readbound activity of the public class {@ Override Protected Zero (Creates the Bundle InstantStatus) {This. Request WindowFirst (window.FEATURE_NO_TITLE); Super.onCreate (savedInstanceState); //setRequestedOrientation (ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); SetContentView (R.layout.readblog); String title = "title"; // intent.getStringExtra ("title"); String text = "text"; Text ...

r - How do I anchor one side of axis limits? -

Image
I have the data frame of positive x and y value which i used in the form of a scatter plane in ggplot2 . The values ​​have collapsed away from the point (0,0) but I want to include x = 0 and y = 0 lines in the plot to show the whole magnitude. How can I do this? set.seed (34 9) D & lt; - data.frame (x = runif (10, 1, 2), y = runif (10, 1, 2))) Ggplot (d, aes (x, y)) + geom_point () but whatever I want It is almost equal, to specify both ends of the boundary: ggplot (D, AES (x = x, y = y)) + geom_point () + scale_x_continuous (border = C (0,2)) + scale_y_continuous (range = C (0,2)) one option only for X and Y minutes Anchor But most unspecified ggplot (d, aes (x, y)) + geom_point () + scale_x_continuous (range = C (0, NA)) + scale_y_continuous (range = c ( 0, NA))

Creating a border of 1PX solid #89cFF0 is not working. It changes the shape of the menu. Why? -

I'm trying to create a limit of 1px solid # 89cFF0 for my menu. You can see from other "Divis" that I have done this, and he has done something like "hero" or "top video" What am I doing wrong? thanks a lot. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "style.css" /> & Lt; Link rel = "stylesheet" type = "text / css" href = "videos.css" /> & Lt; Title & gt; Puppy Power & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "page" & gt; & Lt; Header & gt; & Lt; / Header & gt; & Lt; Div id = "dog logo" & gt; & Lt; / Div & gt; & Lt; Ul id = "navigation" & gt; & Lt; Li & gt; & Lt; A href = "indes.html" & gt; Home & lt; / A & g...

How to obtain a BigInt random number within a range in julia? -

I need to get a random number between julia 1 and one bigInt , but I find it in the documentation 'how it can be done. The code I thought to be the code below would work: julia & gt; RAND (BigTint (1): Bigint (2 ^ 1000)) Error: Random integer split error in JL on JL: 158 random.jl in rand: 178 random.jl in Rand: 187 Edit : Greg will be wrapped around 2 ^ 1000 , in fact, the 2 ^ 1000 result occurs in zero, So the above code is wrong. But does not use BigInt (2) ^ 1000 : julia> RAND (BigTint (1): BigInant (2) ^ 1000) Error: Convert to GMPJL in the AxAct error (Range at 108 Colon. JL: 38 Julia & gt; RAND (BigTint (1): BigInant (2) ^ BigInant (1000) error: Converted to gmp.jl in incircle (): at 108.Colon at range.jl: 38 What is the fastest way to do this? (Your number should be distributed evenly.) Thank you! It is available after all if you use ccall I'm sure that at some point it Easy will happen, but now there is a way to do this, I have n...

python - Reading Single Line CSV using numpy.genfromtxt -

I am using the following script to use a file from numerical numpy using standard input. Works in a manner that has more than 1 line but fails to work for this file: 1,2,2,2,2,1,1,1, 1 I am running it like this $ cat input-file.txt | ./test.py The output is as follows: (9,) [1. 2. 2. 2. 2. 2. 1. 1. 1] should have a shape (9). Does anyone know the way to fix it? Force it in a 2-dimensional array: Data = Np.genfromtxt (sys.stdin, delimiter = ",") if len (data.shape) == 1: data = np.array ([data])

Spiral Matrix Procedure in Maple -

I want to write a process to take square matrix and want to output it to a spiral matrix. For example; M: = matrix (3, [[1,2,3], [4,5,6], [7,8,9]]); will start S: = matrix (3, [[1,2,3], [8 9 4], [7, 6 , 5]]); is starting in the upper left corner and by the time you do not reach the middle, every line is clockwise. My first thought was that I should be able to call each element (M_i, j) from a matrix and tell where to go. I can write a different process for each class matrix where each of the elements of the given matrix should be moved. Since I could not work for it n. What do I have for 3x3 metrics here spiral: = proc (a1, a2, a3, b1, b2, b3, c1, c2 , C3) Local M, S; M: = matrix (3, [[A1, A2, A3], [B1, B2, B3], [C1, C2, C3]]); S: = Matrix (3, [[A1, A2, A3], [C2, C3, B1], [C1, B3, B2]]); Print (m); Print (s); End spiral (1,2,3,4,5,6,7,8,9); It is very difficult for me to get information about the matrix in the maple. Any sign will be given if you use maple. ...

Error while deploying App Engine project -

I am deploying my application through the appcfg.py --oauth2 --noauth_local_webserver update. Everything was working fine last week, but with the last 3 days and 20+ endeavors, I got this error: 09:11 pm App: my-app; Version: 0-1-0 09:11 AM Host: Epgeniex 09:11 PM Updating the app: My-App, Version: 0-1-0 09:11 PM Getting the current resource limits at 09:11 PM on local disk File scanning 09:11 PM Cloning 381 application files. 09:11 PM Getting Started Compile 09:11 PM Compilation: 315 files were dropped. 09:14 PM Error 500: --- Start server output --- & lt; Html & gt; & Lt; Head & gt; & Lt; Meta http-equiv = "content-type" content = "text / html; charset = utf-8" & gt; & Lt; Title & gt; 500 server error & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body text = # 000000 bgcolor = # ffffff & gt; & Lt; H1 & gt; Error: Server error & lt; / H1> & Lt; H2 & gt; The server encountered an ...

sql server - Using attribute more than once in FOR XML Path T-SQL query with same element name -

I am trying to create an XML output for the XML path in SQL 2008. It's working fine: & lt; Classification & gt; & Lt; Category level = "1" & gt; Clothing & lt; / Category & gt; & Lt; Sub-class level = "2" & gt; Jeans & lt; / Sub-class & gt; & Lt; / Classification & gt; But I should be output: & lt; Classification & gt; & Lt; Category level = "1" & gt; Clothing & lt; / Category & gt; & Lt; Category level = "2" & gt; Jeans & lt; / Category & gt; & Lt; / Classification & gt; Of course you can code as: 1 as' classification / category / @ level ', 2 as' Classification / Category / Level @, T. 'Categorization / Category' as Man Cat, T. Shebet as a 'classification / category', but it returns an error message: attribute-centered column 'column is repeated. The same properties can not be created more than ...

replication - Anyone know why a mongodb replica set would have a primary and secondary swap in rather quick succession? -

We have 3 mono servers set as replicas, one of which can not be primary, (backup ). Suppose that Mongo 1 is primary and Mongo [2..3] The second category is randomly unreachable by mongo1 mongo2 and mongo3, resulting in mongo2 being selected as primary. Mongo1 looks at it and becomes primary, then meet Mango 2 and 3 again after a few seconds and it is re-elected. Is there any reason why he should choose Mongo 1 again so soon? Both 1 and 2 have the same priority. The issue is that it disconnects the Mongo Router from each of our webservers, which again shows that it is primary and connected to it. In addition, should mongodb routers should be on the application server or on separate server? In the Mongodb manual it suggests putting each application on the server, but what are the benefits of doing this in this way? What are the benefits and problems with having a router server between the application and the Mongo server? I should mention that it is in AWS (EC2), if it does m...

ios - NSAttributedString from HTML -

I am trying to convert the HTML formatted text to a NSAttributedString Can be formatted properly UITextView I get DTCcore text that can do this, but when I run the code I get an error. The code I am using: NSDT * data = [_story content data usage encoding: NSUFF 8 string encoding]; NSAttributedString * styledContent = [[NSAttributedString alloc] initWithHTMLData: data documented ribute: zero]; _bodyTextView.attributedText = Style Content; _storyContent is an NSString. Error: [__ NSCTT type textBox]: Unknown selector sent example 0xb83b310 How can I take content I can format and format it, so is it readable? Sample Text: & lt; P & gt; 28 May, 2014 During his brief life, in 1978-2007, David Arapine Kuch completed many things, he was a scholar, he was a bachelor's degree in economics at Westminster College and Master of Public Administration at the University of Utah. At his untimely death, Kuch, who was considered the first Indian to participate...

android - How do I enable developer options and ADB on a Fire Phone? -

I have a new fire phone, the box is "fire with dynamic perspective" and "fire phone 32 GB", it Arrived today 7/24/2014. How do I turn on the options of developers like how to view it in a normal Android device or in ADB on Mac or Windows box? Instructions for old fire tablets do not work. No information about this particular device is also online. Code Apprentice, the link provided by you does not show SDK for firefone, this fire provides SDK for OS 3.0, but not 3.5. Need real link below Amazon had to work hard to find them all since getting duplicate place for its documentation, and all of them have not yet been updated correctly. Installing the Fire Phone SDK Add-on (from Android Studio) To install the Fire Phone SDK Add-on, Android Studio IDE Take the following steps in: In Android Studio, click SDK Manager under the Tools menu, under Android . - or - On the command line, run the following commands, where Android / SDK & gt; Th...

Undefined index error while using $_FILES in PHP and JQuery -

I create a file upload using php and jquery I've been, I've created a submit button without having to But everything is working fine but there is only one error that shows me the undefined message. This is my html & lt; Div id = 'show' & gt; & Lt; / Div & gt; & Lt; Form action = 'demo.php' method = 'POST' encrypt = 'multipart / form-data' & gt; & Lt; Input type = 'file' id = 'file' name = 'file' & gt; & Lt; / Form & gt; This is my jquery : $ (document) .ready (function () {$ ('# file' '' '(' Name '); $ .ajax ({url:' demo.php ', type:' post ', data: {' file ': name}, before: function () {$ (' # show '). Html (' Loading ... ');} Success: Function (Data) {$ (' # Show '). Html);}}); Description is False}}; }); This is my php code: if (isset ($ _ files ['file'])) {$ File = $ ...

Powershell: Formating Select -Index array -

I am trying to create a good way to format the output of the parsed line, the rows I actually search for I have been able to parse some data # data from my file 2014-07-24 19:30:23 IP.ADD. Press #GET: 8888 / xxx / update / status / checkingfour updates - 80-1962.168.xx - 400 0 15 15 So what I am doing, a large file for lines like this I'm actually searching for keywords of checkingfire updates, and then dividing "xxx" and "192.168.xx" by following the selection string string. Selection-string - Path $ File Location - Palette "Checking FourUp Updates" - All matches | % {$ _ -split "/"} | % {$ _-Split "-"} | Choose - Index2.7 I will get an output with this: xxx1920.168.xx Item xxx is using and IP address of 1982.xx I tried writing one-and-output and selected -Index's Failed to try to use the bar. Powerhail does not like this in a row ... any help would be greatly appreciated. Using your sample data, i...

JSON classes in Qt vs other JSON parsers in C++ -

I am developing a server / client application in C ++ and using QT to use my IDE, As well as in some of its libraries. Performance-wise I was told that one of the best ways to transfer data between a server and client was through JSON. However, I want to know the performance difference between default classes (for example JSON ++) such as Q (QJsonArray, QJsonObject .. etc) and other C ++ parsers to parse JSON in QT. If the QT classes are not performing enough, then you can see Rapidjan: Comparison of Performance: Good thing Rapidjson (different from its speed) is easy installation and use. From your website: rapidjson is a header-only library, that means, there is only one thing that you can copy Rapidson / Include / Rapidson and its sub-directory to the project or Other paths can include. and also from their wiki page: #include "fastjson / document.h" #include & lt; Cstdio & gt; Int main () {const char json [] = "{\" Hello \ ": \...

ruby - Spree (rails) won't let me create a migration. Says there is a conflict within i18n. -

I asked the railroad to create a migration with the following command: $ rails g migration Add_sale_price_to_spree_variants sale_price: decimal it fails and returns the following output: / Laybri / Robbie / site / 2 / 2.0.0 / rubygems / specification.rb: 20 9 8: `raise_if_conflicts' in: spree_core-unable to activate 2.3.1, because i18n-0.6.11 contradiction with I18n (= 0.6.9) (Gem :: Sngrshrait) / Laybri / Robbie / Site -2.0.0 / RubyGames from /specification.rb8686:in/library/Ruby/Site/2.0.0/rubygems.rb:196: From ` Invitation deactivated to prevent / Library / Ruby / site -2.0.0 / rubygems.rb in '/ try_activate: 1 9 3: the `try_activate' / Library / Ruby / site -2.0.0 / rubygems / core_ext / kernel_require.rb : 132: in defense / library / Ruby / site -2.0.0 / rubygems / core_ext /kernel_require.rb:144:IN /Users/byronshilly/Desktop/store/spree_simple_sales/lib/spree_simple_sales/engine.rb in need ' : 3: in `& lt; Category: Engines & gt; From 'Req...

windows - Python syntax error with subprocess.poll -

I went to the issue today, and managed to repeat it with this small script, on which Python 2.7.6 There is a win7x64 machine, but this problem has come too much by using portable dragon on platforms of various windows in the script Upproos import pipes, import from time to sleep Popen from class test (object): Def run_cmd (self, CMD, wait = True): P = Papen (CMD, staden = pipe, c Tdaut = pipe, Stederr = pipe) if the wait: p.com Muket () returns PA: Return P Diif some (self): P = Self Krun_cmd ( 'Notepad' Wait = False) Import PDB; Pdb.set_trace () while not p.poll (): printed 'process still operates' sleep (10) print p. Writecode, p. Studout, P.Studder DEF APEL (Self): P = self.run_cmd ('Notepad') Print P RatterCode, p. Studout, pstderr t = test () t. SAMATLS (T) some. () What happens, some have started a process in the foreground and the Python script is waiting to exit it and print the return code, standout and stadder, but the second In the call, som...

ios - UIPicker single component to display multiple arrays -

The first comment, I hope I am doing this right. Let me have a UIPicker. I am trying to display 2 column data in a single picker component. The reason I have chosen to do this within 1 component is that I want to scroll arrays together, which I can not get many components to do. There is a problem, I can not get in this way, or to work as a title, the Forrare and the Viewfire will return only one value (according to C's rules). I tried to make them output arrays and decates, but this has caused data type errors. I can work fine using it 1 component, 1 array with View ForRow, but it allows only the entire area to justify, not parts of the string The code below works great and returns the correct answer with return label 2; ? And right if label1 change to go back, I get how to display both - (UIView *) pickerView: (UIPickerView *) pickerView viewForRow: (NSInteger) line forComponent : (NSInteger) component reusingView: (UIView *) See {UILabel * label1; {Label 1 = [[UILab...

How to parse VP8 bitstream with libav -

I have just started learning about VP8, so give me some lethargy if this is a dumb question. H.264 example In the past I have worked mostly .264 Whenever I need to parse H.264bit currents, then I will have to take advantage of libav to help and use something like this av_register_all (); _ioContext = avio_alloc_context (Encoded Data, H264_READER_BUF_SIZE, 0, 0, Read, Function, Faucet, Zero); If (_ioContext == NULL) throwing std :: exception ("unable to create AV IO reference"); AVInputFormat * h264Format = av_find_input_format ("h264"); If (h264 format == faucet) {std :: exception ("Unable to find H264 format"); } _context = avformat_alloc_context (); _context- & gt; Pb = _ioContext; Ret = avformat_open_input (& amp; _context, "", h264 format, NULL); If (ret! = 0) {std :: exception ("failed to open the input file:" + std :: string (_avErrToString (ret)); } VP8 The above method is great for parsing H.264 bit curre...

c++ - pthread_create(), how do I get the returned value from the passed function -

How do I get zero return to the function passing the pthread_create? static zero * pthread_sendRequest (zero * name) {RequestChannel chan (* (string *) name, RequestChannel :: CLIENT_SIDE); String Return Value = chan.send_request ("hi"); Return (zero *) and return value; } Pthread_create (thread, null, pthread_sendRequest, new string (& amp; "employee #" [i])); How do I get the return value of pthread_sendRequest, when it is sent to pthread_ create, then I can bring it back to the string pointer and Can I get the actual string? is zero ** pthread_join (thread, zero **) Hold it for me? As the other answer indicates, the value received from the thread function receives the value received by that buffer to do. However, in your example, your thread function is returning a pointer to a non-fixed local variable, which is invalid (even if the function is executed in a thread) because once the function is out The local object is no longer present w...

c - How come #define directive does not work when using an array -

मेरा कोड है: #include & lt; stdio.h & gt; # शामिल करें & lt; ctype.h & gt; #define अधिकतमसंपादन 5000 # कमीशन कमीशन .1 मुख्य () {कर्मचारी कर्मचारी [100] [65], प्रतिक्रिया [10]; डबल बिक्री [100], कमीशन [100]; Int i; के लिए (i = 0 ;;) {printf ("क्या आप अन्य कर्मचारी जोड़ना चाहते हैं?"); Fgets (प्रतिक्रिया, 10, stdin); प्रतिक्रिया [(strlen (प्रतिक्रिया) -1)] = '\ 0'; अगर (एसआरसीएमपी (प्रतिक्रिया [आई], "नहीं") == 0 || एसआरसीएमपी (प्रतिक्रिया [आई], "एन") == 0) तोड़; Printf ("कौन पहले कर्मचारी है?"); Fgets (कर्मचारी [i], 65, stdin); कर्मचारी [मैं] [(strlen (कर्मचारी [i]) - 1)] = '\ 0'; Printf ("आपने कितना बेच दिया? \ N"); Scanf ("% lf", और बिक्री [i]); fflush (stdin); आयोग [i] = (बिक्री [i] * कमीशन_एडिट) & gt; maxcommission? 5000: बिक्री * कमीशन_रेट; // यह पंक्ति मुझे एक त्रुटि देता है}} मैं सिर्फ # परिभाषित पूर्व-प्रोसेसर निर्देश के बारे में सीख रहा था और मैं इसे एक प्रोग्राम में परीक्षण...

hgsubversion - Move work to another branch Mercurial -

I am currently using Mercurial for sub-edition control in my project. Now I am supposed to work on a new branch 2.7, but I am confused to work with branch 2.6, I have developed a new facility, which is a facility at 2.7, but I am making it at 2.6. And now I want to transfer this feature to 2.7 branch, but I do not know how I can transfer it properly. Is there any way? I recommend using the hg graft , which is a Unlike change from branch to second and unlike hg rebase (if you are doing this for the first time and are making a mistake or if you need convenience then be present in both the branches). To copy the changes to a branch, do dest-branch , do the following. The first update in that branch that you want to copy in the changes: hg update dest-branch Then, Use corruption to copy the original branch, such as: hg corruption -r start..end where start The first amendment that you want is corruption from the source branch and termination is the last revis...

converting a string to bits in ruby, adding 1 bit and converting back to ascii -

I am writing Ruby UID generator and I need to generate unique IDs in fine order. Unique IDs are strings that differ from 3 to 9 characters. What I want to achieve is this: Get the ultimate-generated identifier, convert it to bits and 1 bit it (basically does a +1) and Converts the result back to ASCII. In this way, I can prevent a unique ID from being generated twice. How can I do this in Ruby? I keep track of #pack and #pipe methods, but I can not understand in a way. You can use something like this: A = "foobar" Unpack ("B *") [0] .to_i (2) +1 = & gt; 77444424032627 ["0" + a.to_s (2)] pack ("b *") = & gt; "Phobos"

How to make a sitemap.xml with Cakephp2 shell? -

I'm new to KPPP 2 and I have to get some help. I want to create a sitemap XML for the website I created with CakePHP2, but I have no clue how to create a function that will generate XML and save in the webroots file with cakephp2. I have read the official document, but I still can not find the solution Something like this will only do one Share though. Public function display () {$ sitemapData = array (); // Generate a list of models in app $ list = model = $ this- & gt; _generateListOfModels (); // External model model uses foreign currency ($ list model as model $) {app :: ($ model, 'model'); // We need to load class $ newModel = new $ model; If (empty ($ newModel-> actionsAs) & amp; Array_key_exists ('Sitemap.Sitemap', $ newModel- & gt; actsAs)) {$ response = $ newModel- & gt; GenerateSitemapData (); $ SitemapData [$ newModel- & gt; Name] = $ response; } Else {} unset ($ newModel); } // sitemap of static pages $ sitemapData [...

Jquery FadeIn Messes Up Float Div -

I have a bar at the top of my page when a previous user last 700 px jquery Using this code, the scroll will put the hidden logo in the bar at the bar: $ (window) .scroll (function () {var PosFromTop = $ (window) .scrollTop () ; If (posFromTop> 700) {$ ('# logo'). Feedin (200, function) () {});} and {$ ('# logo'). FadeOut (200, function () {});}}); This works great, but I have a link in that time, when #logo appears #logo appears How can I prevent the link from being blocked? Link code: & lt; Div class = "container-liquid" style = 'height: 50px; Background color: RGBA (242, 244, 247, 0.5); Width: 100%; Status: fixed; Top: 0; Left: 0; Z-index: 30; '& Gt; & Lt; A href = '#' id = 'logo' style = 'font-size: 40px;' & Gt; Logo & lt; / A & gt; & Lt; A href = '# t' style = 'position: absolute; Right: 12px; '& Gt; Start & lt; / A & gt; Logo code: #logo...

javascript - Undefined Variable that has already been printed on console log -

OnClick I want a dialog button to pop up, this dialog has a unique ID and there is an iframe inside it. This is my code: $ (".inertDetailsDiv") .click (function () {var idName = $ (this) .attr ("id"); idNameBase = idName.replace ('DetailsButton', ''); iframeSRC = idNameBase + "php."; $ (" Although my console log (chrome) output ui-id-6 Uncaught ReferenceError: idNameDialogDiv is not defined I do not understand, the console outputs the log variable and then does not recognize the javascript variable. Try to declare idNameDialogDiv to exclude that code .each () function, $ (".inertDetailsDiv") .click (function () {var idName = $ (this) .attr ("id"); on IdNameBase = Id name.replace ('DetailsButton', ''); var idNameDialogDiv = null; // Announce here. Var iframeSRC = idNameBase + ".php"; $ ("& lt; div class = 'idNameDialogDivClass' & gt; ; & Lt...

Which Platform is best for creating website, PHP or Wordpress? -

Which forum is best for creating quiz and content writing websites Only college students will participate using their college ID Internal quiz program for college students who will be held online once in 6 months. A minimum of 700 - 1000 students will participate in real time. Apart from this, students will often compete for non-academic material for annual literary awards, which will determine students based on rating and comments. So my question is whether Wordpress is better or full php website? The site will later be expanded like social communities, platform etc. Thank you, sakthi PHP is a server-side scripting language, while WordPress There is a CMS system. You can not compare them, because WordPress has been written in almost all PHP ... There are several trees like CMS-AS, Drupal, Joomla, etc. I think you should choose from them. To find out what matches your requests, just go to your website and read opinions about them. This is a non-programmic, a wiction-ba...

java - Spring-Security: Difference Between /** and /* url pattern in Spring-Security -

I am slightly confused with the url-pattern in spring security because, in servlet core http security, one or more directories The / and / * url pattern are used to specify / is used for a directory and / * Many directories are used but in spring-protection, / ** has also been started, the main purpose of security What is the difference between the / ** url-pattern & Amp; / ** is that the second corresponds to the entire directory tree, including the subdirectories, where / * only matches the level at which it is specified.

flex - Adobe AIR issue -

I have an Adobe Air app with a chart component displaying some online data chart components about 10 of them Have to display a bunch of parameters. There is a timer in the application to display the current system time. The timer from the chart component (using a bindingable object) has been applied as shown below. A separate bindingable object is used to prevent delay in the timer. Private Function (Event: Timer Event) on OnTimerEvent: Updated time in zero {// screen; oCurrDate = new date (); Curitime = Odataformer.format (ocraduate) .stisting (); OCurrDate = null; // To update the chart about the update, Odd-Bindable Object // call every 250 ms oUpdate.bupdate =! OUpdate.bUpdate; } The Iam Chart's update event is shown below by using a callter function. UpdateParameter () will update the dataprovider of each parameter and it will draw. Function on public unchanged avenue (evt: PropertyChangeEvent): The first parameter on void {// aPlotIndex 0 is set to aPlotIndex.p...

symfony - How can I get custom routes inside sonata admin class -

I configure the knp menu inside the Sonata admin product class and I want to add links to other admin class (category) My code is: Configure secure function side menu (MenuItemInterface $ menu, $ action, adminInterface $ childAdmin = null) {$ menu-> AddChild ($--> 'Product.sidemenu.link_designer', array (), 'm2m'), array ('uri' => gtc; admin- & gt; generated URL ('sonata.classification .admin.category.list '))); } Unfortunately the route 'Sonata' ClassificationAdmin Category.show 'does not exist. Root also does not work with app / console router debug. I have no facility to bout inside the vendors within the definition of service. Any thoughts? I found a simple solution I was wrong because the default menu item, defined in the Sonata demo, looks like this: $ menu-> addChild ($ this-> trans ('product.sidemenu.view_variations'), array ('Yuri' => $ admin- & gt; Generation URL ( 'So...

javascript - get the start and end date of the droppable element in arshaw calendar -

I am using an example of arshaw full calendar droppable (), in a calendar to populate two fields once The element is dropping with the start date and the end date. & lt; Input type = "text" id = "startdate" /> & Lt; Input type = "text" id = "end date" /> Unfortunately, the doppel part of the website () does not get it Import your JS and CSS files, you can see in the source page $ ('# my-draggable'). Draggable ({revert: true, / / ​​snap back to the original position instantly: $}}; $ ('# calendar'). FullCalendar ({droppable: true, minDate: yourDate, maxDate: yourMaxDate, drop: function (moment) , AllDay) {warning ("dropped on" + moment.format) + "AllDay =" with + AllDay);}}); & Lt; Div id = 'external-event' & gt; & Lt; H4 & gt; Dragable events & lt; / H4 & gt; & Lt; Div class = 'external-event' & gt; My event 1 & lt; / Div & ...

visual studio 2012 - How to update metadata of NuGet Package using command line? -

I am using newgate.x version 2.8.2 to create a nugget package. After creating the package, open the NuGet package with Explorer and I saw that the package has some default code like icon URL text box http: // icon_url_here_or_delete_this_line / Follow such fools to see such data Open Command Line Box (cmc.exe). Go to the folder where NuGet.exe is present. Run command "nuget spec abc.dll" (abc.dll should be present in the folder) Once abc.dll.spec file "nuget pack abc.dll.spec "Run" Li> Metadata was done with creating a package with some warnings about that default code. Now open that package, you see with Nugget Package Explorer Metadata may be accompanied by a few default codes as I mention above. I also provided the nuget.org. The question is, how is the command line to set this customization information to my metadata? Note: - Please use the New Zealand Package Explorer to do this Do not give advice because I know I want to...

c - GCC no longer implements -

I want to change the fragment of this code from varargs.h to stdarg.h, but I do not know how: / P> #ifndef lint int ll_log (va_alist) va_dcl {int event, result; LLOP * LLP; Va_list AP; Va_start (AP); Lp = va_arg (AP, LogL *); Event = VA_arg (AP, int); Results = _ll_log (LP, Event, AP); Va_end (AP); Return result; } When I try to create it, the compiler says: error "GCC is no longer applicable ;. " Error "Modify your code to use & lt; stdarg.h & gt ;." Programs that I need to compile and run have some similar pieces and I have to know how to change them. If you can write some examples, then I will have the content. & lt; Varargs.h & gt; is a pre-standard C header; Instead of & lt; Stdarg.h & gt; Use difference: The function must contain at least one named argument. The function must be prototype (using the alipesis terminator). The va_start macro works differently: there are two arguments, the first one is ...

Android Google Cloud Messaging concept -

I have recently started working with Android's Google Cloud Messaging (GCM) and I understand basic concepts Difficulty is coming in. How GCM works At this time, I think that basically, we have 3 architecture in the entire architecture: First Level - My Server Level 2 - Google Message Server Third Level - Client Android App So every time I understand what a new user installs my Android application, the app will be registered with Google's server and will get a "Registration ID", and then it will be considered To connect to your server A. To find your registration ID, "to register itself in the server." My question is, should my server keep every registration ID in my database in order for me to publish a message to all users with my Android app? Or there is a way to "Send messages to all users" in GCM without the need for each registration ID. You must store the registration ID in your database.

c# - How to disable focus on textbox on load in a view in WinRT? -

WinRT has a text box that has Focus (Pointer Focus) on Load in a View in WinRT. I want to disable it and want to load the focus in focus. When I'm in the constructure of the scene, the text box is unforced , but when I load the event, the text box is found, I do not know why, automatically Pointer . No instructions have been given to focus on this control. I do not understand why he got the focus. I try to change the tabindex, not the success, the control has got the focus again. When I try to focus on focus manually, I have an exception: " Value does not come within the expected range." "I do not understand why this is the exception. Thanks for the reply. Solution 1: You can set the textbox tabstop property to false. Solution 2: Tabx and value of the taxbox value (Set the tab control to other commands in the command, which You want to get focus on startup).

osx - How to add platform android (cordova) on Mac -

Image
मैंने निर्देशों का पालन किया है I और मेरी .bash_profile: PATH = / usr / local / bin: $ PATH निर्यात PATH = $ PATH निर्यात करें: ~ / विकास / एटीटी-बंडल-मैक-एक्स 86_64-20140321 / एसडीके / प्लेटफ़ॉर्म-उपकरण निर्यात करें PATH = $ {PATH}: ~ / विकास / एटीटी -बंडल-मैक-एक्स 86_64-20140321 / एसडीके / प्लेटफॉर्म-टूल्स: ~ / डेवलपमेंट / एटीटी-बंडल-मैक-एक्स 86_64-20140321 / एसडीके / टूल्स [[-ज़ "$ HOME / .rvm / scripts / rvm"]] & amp; ; & amp; स्रोत "$ HOME / .rvm / scripts / rvm" # एक समारोह के रूप में * शेल सत्र में आरवीएम लोड करें * eval "$ (rbenv init -)" लेकिन अभी भी त्रुटि जब मैं निष्पादित कॉर्डोबा प्लेटफॉर्म एंड्रॉइड या ईओनिक प्लेटफ़ॉर्म एंड्रॉइड जोड़ें: त्रुटि: कमांड "android" विफल हुआ सुनिश्चित करें कि आपके पास नवीनतम एंड्रॉइड एसडीके स्थापित है, और "एंड्रॉइड" कमांड (टूल / फ़ोल्डर के अंदर) को आपके रास्ते में जोड़ा गया है। कोई भी समाधान? धन्यवाद कमांड लाइन में android को चलाने का प्रयास करें यदि कमांड नहीं मि...

lotus domino - What is this Ampersand tailed to variable name -

In some tutorials, I get access to the variable with Android at the end of their names such as box type & amp; : % include "lsconst.lss" dim box type Reply as long as, integer box type & amp; = MB_YESNO + MB_ICONQUESTION Answer% = Messagebox ("Do you want to continue?", Type the box and, _ "continue?") I am learning Lotus script while developing , So I miss some basics! I would like to know what this ampersand means in this context. This is a so-called "type suffix" and tells you that the box type is of type long and the answer is integer Generally, you use it explicitly instead of declaring the variable. Integer (integer) = = Li> = = Single =! Double = # Currency = @ String = $

jquery 3 checkbox. Want to determine which of the checkboxes is clicked -

The jquery 3 checkbox is to determine which click is done in the checkbox. Example given here & lt; Input type = "checkbox" name = "sign []" id = "mark1" square = "symbol" value = "1" & gt; & Lt; Input type = "checkbox" name = "symbol []" id = "mark2" square = "symbol" value = "2" & gt; & Lt; Input type = "checkbox" name = "sign []" id = "mark2" square = "symbol" value = "3" & gt; Click (function (index) {warning (index); if ($ (this) .is (": check")) {warning ($ (this) .val () + 'if checked')}} $ (This). (Function () (warning ($ (this) .val () + 'click' ');});}) // $ ('. Icon '). Click (function (index) { I need alert (index); [object object] on the alert number of the button clicked You can easily click to use: $ (This). Index (); // or $ (this). Index...

oop - Bloch Effective Java - favor static classes over nonstatic - how many instances? -

I want to know how many static member classes can be created by the enclosed class. I only accept one, but I do not understand the following conclusions from Bloch. Following the Effective Java of Joshua Bloch - Item 22 *: Follow Static Member Sections on Non-permanent. A common use of the private station member classes is to represent the component of the object presented by their attached class. For example, consider the map example, which combines the keys with values, there is an internal entry object to apply multiple maps to each key-value pair in the map. While each entry is associated with a map, the methods of an entry (getKey, getValue and setValue) are not required to access the map. Therefore, it is useless to use a non-member member class to represent the entries: A personal stable member class is the best. If you accidentally leave the static modifier in the entry declaration, then the map will still work, but each entry will have an overlapping reference to the ...

libgdx - Masking areas in OpenGl -

Image
I have a libdgx game that I'm working on. I have found a progress bar and need to fill it in from inside. If this was a square progress bar then it would be easy - but my graphics people want to round the round. Example below to fill the progress bar with me There is a 1px wide texture that I spread to the required width. Is there a way I can use a mask in OpenLink so that when I make the texture to fill the progress bar, it only fills within the blue line. Thank you. You can use Libgdx to render a texture with fixed size corners and a "stretch" Android can use navepath textures.

How Do I Show Image Loading Progress in progress-bar c# -

I want to know how to load image load progress bar to show win form in progress bar. my code is get private zero form 2_load (object sender, eventarges e) // load form and profile and avatar {background worker 1. Changed progress + = new progress changing event handler (background 1_ProgressChanged;); Background Type 1 Runwinner full + = new RunWorker compatible event handler (background 1 full-year work); BackgroundWorker1.RunWorkerAsync (); } Private Zero Background Worker 1_Worker (Object Sender, Runwalker Comprehensive Avant Eg E) {label2.Text = "Avatar Load"; } 1_ProgressChanged by Private Zero background (Object Sender, System.ComponentModel.ProgressChangedEventArgs e) // Show progress {if (InvokeRequired) {BeginInvoke (new action (=) = 1_ProgressChanged (sender, e)); } And {if (progress barcus 1. value! = Progression percentage) {progressBarX1.Value = E. Progress percentage; ProgressBarX1.Refresh (); }}} 1_DoWork (Object Sender, DoWorkEventArgs e) // Loading A...

php - get the next thursday relative to a particular date -

If the date of passage is not guru, then I would like to relate to a particular date next Thursday. It has gone with how far the code has gone. & lt ;? Php $ string = '2014.07.16'; $ Date = DateTime :: Creation Form Format ("Y.M.D.", $ string); $ Result = $ date-> Format ("D"); If ($ result! = 'Gurus') {$ result2 = strtotime ('next Thursday'); Echo Date ('Y.M.D', $ Result 2); }? & Gt; In the above code, variable $ string is the date passed which is 'Mercury', I would like to get '2014.07.16' which is relative to next Thursday 2014.07. 17 '. This means that if the $ string is '2014.07.21' which is a mon, then the return date will be '2014.07.24' which is available '2014.07.31' at this time compared to '2014.07.21' next Thursday. How do I get the string next to a string (pass date) next Thursday Thank you. try it $ string = '2014.07.16' ; $ Date...

html - Rollover within a table keeps going vertical -

I am trying to create a table that displays 3 pictures horizontally, which varies on different rollhowers . Thank you & lt; Table style = "width: 678px; height: 380px; cellpadding: 0; cell spacing: 1" & gt; & Lt; Tbody & gt; & Lt; Tr align = "center" & gt; & Lt; Td style = "width: 220px; height: 380px;" & Gt; & Lt; Style type = "text / css" & gt; # First-div.rolloverA {display: block; Width: 225px; Height: 380 px; Background image: URL (IMG1A); } #first-div.rollover a: hover {background-image: url (IMG1b); } & Lt; / Style & gt; & Lt; Div class = "rollover" & gt; & Lt; / A & gt; & Lt; / Td> & Lt; Td style = "width: 220px; height: 380px;" & Gt; & Lt; Style type = "text / css" & gt; # II-div.rollover A {display: block; Width: 225px; Height: 380 px; Background image: URL (IMG2A); } # Sec- div.rollover a: hover {background-imag...

excel vba - VBA SQL recordsets in forloops -

Currently using Excel for VBA and code for using some tutorials and practices And My job is to compare a range and within each cell there is string / text within each cell and it is specified in a variable. Then use this variable in a SQL statement for a query in a small database and return the results. I have chosen the option to do this with a loop that receives the text of the current cells, specifies it in the variable and then executes the query and it is in another cell Pops, the problem is that the code will be okay out of the loop and I can change the name of the variable and everything is hunky dori when I get an error inside the loop "run-time error '3705': An operation of operation No matter when the object is open " sub-NO6_Postcode () 'CONNECT variable variable CD ADODB.Connection as ADODB.Recordset Dim CMD as ADODB.Command set cn = new Set ADODB.Connection RS = New ADODB.Recordset set CMD = new ADODB.Command 'range dim myRange as the...

vb.net - Classic ASP Type Mismatch using .NET DLL -

I have a problem trying to access the data drawn from VB.NET DLL as an array. The DLL is properly registered and is working on the web server which serves asap classic pages. I have tested DLL using a vb6 program and I hope that data will be retrieved. Here is the code that I used for it Dim CommItems commItems = c.GetCommTypes I = Ubound for commItems (commItems) Me.Label2.Capttion = "Item:" & amp; ; Cometized (I). "-" & amp; ComTap name doiventes sleep (1000) Next The error message I am getting is, when it is trying to do the same thing then the asp clicic Here is my ASP code The slow core set core = Server. ("Advantage.Dealer.Email.CoreClassLibrary.CoreClass") Dim CommItems commItems = Core.GetCommTypes I = Ubound (commItems) for LBound (commItems) Response Write commItems (i) .comTypeID next I'm not sure what I'm doing, but if I run this code slow core Set core = server Createbase ("Advantage.Dealer.Email...

c# - “An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll” -

मैं माइक्रोसॉफ्ट एक्सेस 2013 (डेटाबेस नाम: kyt, टेबल नाम: vg_info_table) का उपयोग करता हूं। जब मैं यह कोड चलाता हूं, तो यह काम करता है, लेकिन जब मैं कोंबबोक्स से चयनित मान को चुनता हूं और भेजें बटन पर क्लिक करता हूं (एक मान मेरे डेटाबेस में दर्ज किया जाना चाहिए; vg_1 फ़ील्ड) मुझे एक त्रुटि मिलती है ( komut.ExecuteNonQuery (); ): .data.dll अतिरिक्त जानकारी: प्रकार के एक अप्रतिबंधित अपवाद प्रकार 'System.InvalidOperationException' में हुआ है। ExecuteNonQuery: कनेक्शन गुण प्रारंभ नहीं किया गया है। मेरा पूरा कोड यहां है; नामस्थान afeusdotnet {सार्वजनिक आंशिक वर्ग verigirisekranisorular1: UserControl {OleDbConnection bag = new OleDbConnection ("प्रदाता = Microsoft.ACE.OLEDB.12.0; डेटा स्रोत = kyt.accdb; निरंतर सुरक्षा जानकारी = गलत;"); डाटाटाबल टैब्लो = नया डेटाटाइल (); OleDbDataAdapter adptr = नया OleDbDataAdapter (); ओलेडीबी कॉमांड कॉम्यूट = नया ओलेडीबी कॉमांड (); डेटासेटसेट = नया डेटासेट (); Verigirisekranisorular2 soru2 = नया verigirisekranisorul...

Does PayPal Rest API have the classic useraction equivalent -

Is there a way to leave the 2 step verification process using the PayPal Rest API? Successfully implemented the standard process with the help of the PayPal Rest API, which takes the user to the PayPal site where they enter their credentials and then submits the order summary with the option of "issuing" "You are almost done." Xxxx will confirm your payment at the store. " Is there any way that we can skip this step - so the user should not be returned to my site, where they will have to review the order again and choose" Make a payment. " On the PayPal display the "Make a payment now" button, which will execute the payment? I have searched, and the classic API URL parameter, the user commitments, seems to handle it. I could get the equivalent I had the same problem and I got an answer with PayPal support. TL; DR: Add and userization = committed in the bus approval / journal. They told me that the rest API redirect URL i...