Posts

Showing posts from March, 2014

GWT 2.x $entry function -

No developer information about this function can be found. I just know that wrapping jsni javascript calls for Java methods with this $ entry function has been suggested. I came to know that it catches the exception, so Java code can handle them. Is it all? If you want to know what actually happens, then see com .google. Gwt.core.client.impl.Impl.entry (JavaScriptObject jsFunction) . This function (at least in GWT 2.2.0) mainly calls entry0 (object jsFunction) First of all, this is nothing Which is set by Scheduler.scheduleEntry () / li> Then it ensures to execute jsFunction in an attempt block, to the exception To forward to GWT.getUncaughtExceptionHandler () , if there is such a handler. Finally, this has been defined by any scheduler schedule ()

user interface - MATLAB exiting loop in function when using GUI -

I have a function that runs when clicking a button and to plotting functions, to any other function After the program written by a series of loops, which is an animation, it can not be stopped until it can be pressed by pressing Ctrl + C, which will cause the entire .exe to fail and open it again is needed. I want to create a reset button, so loop from running, but how to pass a new variable from between the existing functions, which is two levels above the stack? Thanks Edit @ 22:13 27 / 3/2011 (UK) What I'm trying to do: function push_calculate_Callback (H object, event data, handle) (list of parameters that read in GUI) list (function, list of parameters required to pass the phaymon) This is the first part of the code that is directly linked to the GUI, Feyman looks like this: Function Fan (list of parameters) (List of calculations .. Fitting (List of Parameters for Plotting) In which there is a floating where the animation comes out, inside the flipping:...

asp.net - jQuery: find child and bind to event -

I try to bind the event provided as change as I am doing the term from ASP.NET to a ASP: label . Obviously the container prefixes these controls with something like ctl00_ , but I do not want my script to depend on those identifiers which are not necessarily known. span is updated via the AjaxControlToolkit PasswordStrength control, which is used for an aspen label ID , Which is valid for displaying its message message on input control. Looking at it a bit, it looks like what I should do, because control has its own div container - I got the resource, and it shows that I must I can see the child with a selector, so the answer was completely promising so that I came up with the following which only slightly changes: & lt; Div id = "passwordhelpcontainer" class = "passwordfailureNotification" & gt; & Lt; ASP: label runat = "server" id = "passwordhap label" /> & Lt; / Div & gt; $ (Document) .ready (fun...

wpf - Problem at the beginning of a ColorAnimation for a GradientStop in a VisualState -

I have a very strange problem with ColorAnimation What I want to do is very simple (I think): I have As a backdrop, there is a rectangle with a GradientBrush. There are different viewstats in this rectangle that change the color of the gradient. I want to insert an animation for transition between states. My problem is that when I change the state, the animation does not start with the current color, but with the default color Here's a code snippet that can help you regenerate it: & lt; Window x: orbit = "testcoll animation. Window 1" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/comfx / 2006 / Xaml "title =" window1 "height =" 350 "width =" 525 "& gt; & Lt; Grid & gt; & Lt; Grid.RowDefinitions & gt; & Lt; Roadfinition /> & Lt; Roadfinion height = "30" /> & Lt; /Grid.RowDefinitions> & Lt; Grid....

php - Uploadify: sending data with scriptData -

I want to send session value with uploadify script I am trying the following in JavaScript: 'scriptData': {'name': '& lt ;? Php echo $ _SESSION [name] ;? & Gt; '} and in php script I am receiving value like this: $ name = $ _GET [' name ']; The script data, instead of getting the value stored in the session, & lt ;? Php echo $ _SESSION [name] ;? & Gt; , for example Peter. Can anyone tell me how can I decide this? Thank you I think that's what you want. 'scriptdata': {'name': & lt ;? Php echo "'". $ _ Session [name] "';? & Gt;}

model view controller - Including an array of files in PHP -

What am I trying to do, in which the main PHP file contains all the php files in the given directory, I load them in an array like the globe () : // Get all the files $ files = glob (' *. Php '); But when I try to include ($ files) in I'm having an error saying that it does not like the array, Should I Use a Novel Statement? Or is there a better way to do this? $ Filename as foreach (globe ("* .php") {/ / Do stuff}

memory - iOS AssetLibrary Storing Pointer -

There is a question about using AssetLibrary with iOS, instead of an actual picture, store an app in an app in its app possible? Let's say I want to make a playlist, but I do not want to store the actual image. The reason I am asking for is that when I use the image picker, then I have an image in the directory of documents documents, but once I get 25 or more , Then it starts slowing down the device (iPad 1). I scale the images down if they are too big, I had run away through the leak tool several times, and there are no leaks. I am just in a deficit where to move forward, so I want to check the options. As I have not seen anywhere where I can free up the memory This is the place where I am now, I am curious if property library can be an option because I have not stored physical images Will go Any thoughts on this will be highly appreciated. By storing 25 images in the directory of documents The device should not be slow, as long as you do not try to load all 25 ver...

c# - How to add a delay for a 2 or 3 seconds -

मैं सी # में एक प्रोग्राम में विलंब कैसे जोड़ सकता हूँ? आप थ्रेड.Sleep () function, उदा पूर्णांक मिलीसेकंड = 2000; Thread.Sleep (मिलीसेकेंड); जो वर्तमान धागा को 2 सेकंड के निष्पादन को रोक देता है। वैसे भी, जो आपकी आवश्यकताओं को फिट नहीं कर सके ... क्या आप पूरा करने की कोशिश कर रहे हैं?

php - Comparing arrays, point me in the right direction please -

So what is trying to do, compare the orders in your database from the bank database and if they confirm the match status Mails The transaction comes in an XML format $ transaction-> User-number // This is the social security number of the person who transmits the transaction transactions - & gt; Amount // This is the transfer amount I need to compare the user-number in the user-number associated with the order in my database. I would like to create two arrays with those numbers Use array_intersect to find those data that are present in both databases and transactions xml. Now, I have to see the number of people who have done the transaction on their user-number, whether they have transferred the correct amount. I will be able to finish it, but somehow I feel that using it is a simple solution in the form of an index in the form of a number and two arrays in the form of a user-number and value and Compare them. Someone can help me here before writing some comp...

django - Sorl thumbnail not showing thumb in AdminImageMixin -

I'm having trouble with Django 1.3 using the Digengo-grappily and shurl-thumbnails. I have a project that uses this code from official shawl-thumbnail docs: django.contrib import from #myapp / admin.py Import MyModel from admin myapp.models sorl .thumbnail.admin AdminImageMixin Category MyModelAdmin Import (AdminImageMixin, admin.ModelAdmin): Pass This project works well with debug server and a nice short Thumbnail is visible. However, in any other project, I am serving my project through WSGI and I have 3 different domains: www.example Com media.example.com (this is serving user uploaded files) Static.example.com (which is serving stable files) However, this project In AdminImageMixin works fine except for a thumbnail, a model is available for change: This is the correct world This database contains the correct text in the field (upload / + photo_name.jpg) (i verify it with phpmyadmin) it s Here are some sample codes: # Models.py class category (mod...

Export DataGridView to XML - C# -

I have a datagrid view with a value from a database table. I also have functions that filter the data in gridview. I want to know if it is possible to save a filter file in an XML file in Gridview. How do I do this? Thank you. / P> Have you tried?

ios4 - Localization issue in iphone -

I need to create an application in which the user can toggle between two languages ​​when triggering a click event on a button is. The problem here is that I have seen an example, if we want to load our local Nib file, then we need to change the language from the settings option and we can use the correct nib You can get the file. Selected. I want to do this within my application, which means that I do not want to go to the settings menu and change the language and then reload the application. I just wish the above effects (i.e., to be able to toggle the app between two languages ​​through a button click event) in my application Is it possible, and what does Apple allow it? No one here can tell whether the apple will allow it, but if your app is well Is designed and a good reason for this departure is the usual way of working, or maybe you got a good shot. There is nothing to prevent you from loading a niche file localized for a different area. I'm probably tryin...

objective c - How can I get rid of an "unused variable" warning in Xcode? -

I understand that unused variables are due to warnings. I do not want to suppress them normally because they are incredibly useful in most cases. However, consider the following (genetic) code. NSError * Error = zero; BOOL saved = [moc save: & amp; Error]; NSAssert1 (saved, @ "Dude !! 1!% @ !!!", error); Xcode reports that saved is an unused variable, when it is not at all. I suspect this because NSAssert1 is a macro NS_BLOCK_ASSERTIONS macro is defined not , hence the claim of objective C is definitely enabled. Although it does not hurt anything, I make it unnecessary and annoying, and I want to suppress it, but I am not sure how to do it. Assigning the variable to yourself will get rid of the compiler warning, but I would like to do this in the "right way" if such a thing exists. I am unsure that it is still supported in the new LLVM compiler, but in GCC an "unused" The attribute that you can use to suppress the warning: BOOL sa...

perl - Put an array into a hash of hashes, transforming it into a Hash itself -

मेरे% hash = @array; एक सरणी को हैश में रूपांतरित करता है, लेकिन $ हैश {कुछ} के साथ ऐसा कैसे कर सकता है? $ हैश {कुछ} = {@array}; {} इसके आस-पास एक हैश्रेफ बनाता है।

Negative integer Regex doesn't match -

मैंने इसे Googled किया है, और निम्न परिणाम पाया: कुछ (बहुत बुनियादी) रेगेक्स ज्ञान के साथ, मैंने सोचा कि यह काम करेगा: r \। (^ -? \ D +) \। (^ -? \ D +) \। एमसीआर ऐसी स्ट्रिंग पार्स करने के लिए: r.0.0.mcr r -1.5.एमसीआर r.20.-1.एमसीआर आर -1-1.एमसीआर लेकिन मैं डॉन ' टी इन पर एक मैच प्राप्त करें चूंकि मैं सीख रहा हूं (या सीखने की कोशिश कर रहा हूं) रेगेक्स, क्या आप कृपया बता सकते हैं कि मेरा पैटर्न क्यों मेल नहीं खाता है (बस मेरे लिए नया काम लिखने के बजाय)? किसी अवधि का मिलान करें एक उपसर्ग नकारात्मक चिह्न से मेल खाता है या नहीं, और इसे संग्रहित करने के लिए किसी अवधि का मिलान करें एक उपसर्ग नकारात्मक चिह्न से मेल खाता है या नहीं, और समूह को संचित करें एक मैच का मिलान करें मेल एमसीआर लेकिन मैं गलत हूँ, जाहिरा तौर पर:)। आप बहुत करीबी हैं ^ एक स्ट्रिंग की शुरुआत से मेल खाता है, इसलिए इसे केवल एक पैटर्न की शुरुआत में स्थित होना चाहिए (यदि आप इसे बिल्कुल भी उपयोग करना चाहते हैं - यह इस बात पर निर्भर करता है कि आप भी स्वीकार करेंगे जैसे कि ...

iphone - Better performance using images with "opaque" property? Why? -

I found something on that site: I found something new by looking at the "Display picture". myImage.opaque = Yes; // Clearly opaque for execution Can anyone explain this to me, please? And what type of (or use) images does this work for? When not Thank you for your time ... The iPhone GPU is a tile-based renderer if one Overlaying layer is completely opaque on the whole tile, so GPU can install any graphics command related to the layer below the tile and ignore the processing, apart from addition of the pixels in that tile. If your image does not cover a complete tile, GPU still has to process multiple layers potentially depending on the size of a tile implementation, but small graphics images cover a tile There is very little chance of Large images covering many tiles will show the biggest benefit of being opaque.

c++ - include string, string doesn't name a type -

I have included the string and after calling a string variable in the header file in the strat. I get string string and string name for the destination city, 'String does not get a type name', even after doing the string call // sortedListClass.h (some lines of comments ) # Include and Lieutenant; String & gt; Struct flightRec {int flightnumber; String origination; // Problem # 1 String DestinationCity; // problem # float cost 2; FlightRec * ptr; }; Typing flight rake * nodditter; #ifndef SORTEDLISTCLASS_H # defined SORTEDLISTCLASS_H #include & lt; Iostream & gt; # Include & lt; Cassert & gt; sortedListClass.h: 10: 5: error: a string ???? Is not a type of name sortedListClass.h: 11: 5: error: a string ??? Am I asking what I am doing? > This is called std :: string unless you use the on command (which you should not do on top of any).

javascript - Undefined Type Error "defaultView" with basic jQuery -

I'm just trying to create original resizing script using raw jQuery v1.5.1 (script below). For some reasons, it throws the following error and does not continue with running the script. This Chrome, Mac OSX error is being tested with unchecked type error: the property can not be read undefined of 'defaultView' code: $ (document) .ready (function () {/ * set initial width of the site * / stretch_portal_content (); $ (Window). Reset (stretch_portal_content);}); Function stretch_portal_content () {warning ($ ('# site'). Width ()); $ ('#left-container') width ($ ('# site'). Width () - 150); If ($ (window) .height ()> $ ('body'). InnerHeight ()) {$ ('# site') height ($ (window). WinnerHeight ()); }} Example HTML & lt ;! DOCTYPE html5 & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Link media = "screen" rel = "stylesheet...

create dll file in c# -

मैं कैसे सी # में एक dll फ़ाइल बना सकते हैं? फ़ाइल मेनू - & gt; नई परियोजना - & gt; अपनी प्रोग्रामिंग भाषा चुनें (विज़ुअल सी # / वीबी इत्यादि) - & gt; विंडोज - & gt; कक्षा लाइब्रेरी। परियोजना के बाद बनाया गया है, बिल्ड मेनू का उपयोग करें - & gt; प्रोजेक्ट को संकलित करने के लिए बिल्ड सोल्यूशन (या बिल्ड [परियोजना का नाम])। आपको फ़ोल्डर में डीएलएल मिल सकता है: प्रोजेक्ट फ़ोल्डर \ बिन \ डिबग (या रिलीज़)

torque - Does a PBS batch system move multiple serial jobs across nodes? -

If I need to run "many serial programs" in parallel (because the problem is simple but takes time - let me read Required in many different data sets for the same program), the solution is simple if I only use one node whatever I do, serial jobs with an ampersand after every order The submission continues, e.g. In Job Script: ./program1 & amp; ./program2 & amp; .program3 & amp; ./program4 which will run each serial program naturally on a different processor. It works well on a login server or standalone workstation, and of course only asks for one node. But if I set 110 different instances of data to run the 110 different instances of the same program? If I present a number of nodes (say 14) with a script that submits an order of 110./program#, will the batch system run every job on different processors in different nodes, or will they Will all try to run, 8 core nodes? I have tried to use a simple MPI code to read various data, but the result of ma...

css float - HTML, Floating, Small Problem, Seems Simple -

If you look at me, ignore the text titled float, which is on the left side of the deployment element. That the initial element does not overlap the title text and it closes once to the end of the division, which is the title text My question is, is it possible? I do not want to overlap this element which is on the left side of the initial element. Thanks in advance for advice, suggestions, etc. remove status: your # ad_1 Relative to div , and it is placed in the HTML above the title division. Below is an updated JSFiddle, it is working for the advertising box to adjust the "top" value in your CSS, if it needs to be done separately in Bella.

iphone - Referencing superview's methods -

I am creating an application in Xcode, and running in some problems. I am using the gamekit framework to allow Bluetooth communication between two iOS devices. The application is set up so that one of the devices is "master" and the other is "slave", its screen content changes based on the data obtained from the "owner" device, the user can choose whether to be a master or slave , And when this option is made, the other device automatically becomes the opposite role. It is all done in a visual controller class. When a role is selected, a subview is added to the baseview controller. What is my problem, is that when the subview is added, I would like to be able to send data using methods in the baseview controller. With the current setup, the action creator: sender crashes. I have tried to do this so far, BASAUSEOU controller: --Build Master: (ID) sender { Data loss: @ "slave"]; // Peer device to be slave, because this tool is Master...

boost - C++ STL Comparison class: how to parameterize comp-class behaviour? -

I want to use a std :: priority_queue container with a custom data-type and several comparison parameters (I I define a factor for each of them; each of them is working on the same type). The comparative criteria should be used to be configurable by using a function parameter (to avoid if_then_ initialization of the queue). Based on , that, as far as I understand it, using a comparative doctor, which is introduced to itself, with one of the function functions defined, Tried to use a configurable comparable brain, which is initialized with another comparative functionor (which is stored locally and when used as it is used) ). I have not got to work yet. I do not even know what I want to do in general. I do not know what type of thing I was messing about (I type typefide boost :: function XXX) or additional C ++ 0x features (what "closure" support?) Will be required. So basically I want to do something like the following to work (it will not compile with a non-long but...

css - Possible to change the SASS/Compass output folder for different files? -

I am thinking that output files are possible in different directories for the compass? I have quite a large project and while most go into the css file / css folder, others need to go to the / admin / css folder, I'm doing them symbinking for now, but if I have an array of files (config. Rb?), It would be great if there could be some other output. in config.rb css_dir = "/" in your desired directory Edit it! I do not think it can handle multiple output folders.

php - How to create and call MySQL stores procedures? -

तालिका [ file_request ] संरचना: user_id [ INT] file_id [CHAR (10)] all_files यह एसक्यूएल कोड है जो MySQL clien में ठीक काम करता है: मैं का उपयोग कर रहा हूँ DROP PROCEDURE IF EXISTS check_user_files; DELIMITER \\ प्रसंस्करण चेक_यूसर_फ़ाइलें (IN p_user_id INT, IN p_file_id CHAR (10), IN p_all_files VARCHAR (500)) यदि पहले से (फाइल 1 अनुरोध से चुनें file_request WHERE user_id = p_user_id और movie_id = p_file_id) तो अद्यतन file_request SET `requring_date` = अभी (), `all_files` = p_all_files जहां` user_id` = p_user_id और `movie_id` = p_file_id; फाइल में प्रवेश करें (`user_id`,` requring_date`, `मूवी_आईडी`,` सभी_फाइल`) मूल्यों को दर्ज करें (p_user_id, NOW (), p_file_id, p_all_files); अगर अंत; END \\ DELIMITER; कॉल चेक_यूसर_फ़ाइलें ('23 ',' टी 40431284 ',' 07 08 10 11 13 14 '); DELIMITER; कॉल चेक_यूसर_फ़ाइलें ('23 ',' एफ 87951 ',' 01 02 03 '); और मैं PHP से एसक्यूएल क्वेरी को बनाने और निष्पादित करने की कोशिश कर रहा हूं [काम नहीं...

linux - Pthread Mutex lock unlock by different threads -

An easy question .. I read before saying - " Being a mutex " But I have written a program where THREAD1 locks the mute xvara and goes to sleep i THREAD2 directly Mute can unlock Xvar and can do some work. ==> I know everyone says that why am I doing this ?? But my question is - is this the correct behavior of mutex ?? == & gt; Adding sample code void * functionC () {pthread_mutex_lock (and mutex1); Counter ++; Sleep (10); Printf ("Thread 01: Counter Value:% d \ n", Counter); Pthread_mutex_unlock (and mutex1); } Zero * functionD () {pthread_mutex_unlock (and mutex1); Pthread_mutex_lock (and mutex1); Counter = 10; Printf ("counter value:% d \ n", counter); } Int main () {int rc1, rc2; Pthread_t thread 1, thread 2; If (pthread_mutex_init (and mutex1, NULL)) printf ("Error while using pthread_mutex_init \ n"); If ((RC1 = pithread_create (and thread 1, faucet, and function C, tap)) {printf ("thread creation failed:% d ...

Client/Server Model C# -

I wrote a sample client and server, the server keeps listening to the client when the client connects, sends the request and then disconnects. When a client connects to the server and before sending the request, the server is forced to shut down or in any way. My question is how can I handle it? Can I disconnect it from the server until it is notified to the connected client? Can I write such a law? How to do? Edit: By server and client I mean server and client applications I have written myself Please clarify your position server Does your server application or physical server only mean? If the server means o / o, then you can not do anything other than completely troubleshooting software and hardware. Update: OK, if this is your problem, then you can try to apply Try..Catch statement in your code and with the exception being raised Learn more for The issue is, instead of solving the exception, you should stop the exception at the first place. Since you are in con...

ruby on rails - Heroku App is Reading database.yml File -

Whatever I can gather, Hrokok has to generate a database.iml file automatically, and ignore local To do. However, I am seeing an error where this is not true, and local databases. My changes in the field are affecting everyone's app. This is problematic because I do not know how to set up the file's setup production part so that Heroku could search the correct database. For example, the following Product: Adapter: sqlite3 Database: DB / Production. Sqlite3 pool: 5 timeout: 5000 After DB: Migration $: ~ / apps / dancingcupid / dancingcupid $ heroku rake --trace db: migrate spits out Rack aborted! Unable to open database file /app/.bundle/gems/ruby/1.8/gems/activerecord-3.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:27:in 'start' ... ... Based on what type of database I've sent for production, I can get various errors. In addition to removing the app and creating a new one, is there a way to fix this problem? Haruku definit...

.net - Setting image source in RDLC report dynamically -

I am using client-side reporting capabilities that are bundled in Visual Studio 2010. I've got an RDLC file defined, currently with embedded images for branding purposes at the top of the report. Image is the logo for the user's company. There is nothing to do with the report data ... this is just a title. I want to be able to break the dependence on embedding the images, because I'm scaled up. Instead, I want to be able to set the image dynamically. Unfortunately there is no such parameter type that it supports. I have seen the source switch from embedded to external, and maybe to emit an image file of the logo on the program launch (the resources are embedded in a separate assembly form), then the source As a normally nominated file for it. I'm not sure how much I like this option because it looks like a hack. I also get an error when I clearly set the path diagram, effectively saying that the object is not set for an example. For example, I would call it D: \...

android - How to connect to a dev phone and gain the root permission through "adb shell" -

I am using a Dev Phone (Nexus One). I was connected to it through "ADB Open", but I did not get permission for root. When I run "su" in the shell, I'm not $ su su: permission denied actually I do not have "/ sbin" at all Can reach. When I use the "root" option in "ADB", I also get errors: ./ adb root -s xxx shell adbd in production Can not run as root I have not found any errors, I have not used any downloaded SDK or I have compiled an SDK from source I'm not sure What does "whats the output" actually mean that I am compiling Android And it enclose on the phone? I thought that a Dev Phone phone already unlocks the root permission. Thank you for your help. You should unlock your phone - root it. Nexus One comes with this option, but you have to enable it. You can read articles or Google for more.

javascript - Appending to the Dojo DIV -

संभव डुप्लिकेट: हाय, मैंने दिखाया के रूप में मानों का सरणी: var myarray2 = []; myarray2.push ("10-FEB- 1 1"); myarray2.push ( "11-FEB-11"); myarray2.push ( "12-FEB-11"); myarray2.push ( "13-FEB-11"); myarray2.push ( "14-FEB-11"); myarray2.push ( "15-FEB-11"); मैं इसे डीआईवी में जोड़ने की कोशिश कर रहा हूं, लेकिन डेटा अलर्ट तक आ रहा है, लेकिन इनरियल एचटीएमएल प्रॉपर्टी का इस्तेमाल नहीं किया जा रहा है, कृपया var ol = Document.getElementById ('एचआरएक्सएक्सिसस्लिडर')। GetElementsByTagName ('ओएल'); Var i; Var htmlFrag = ''; (I = 0; i & lt; 11; i ++) के लिए {htmlFrag + = '& lt; li & gt;' + Myarray2 [i] + '& lt; / li & gt;'; } अलर्ट (html फ़्रेग); Ol.innerHTML = htmlFrag.value; अपने कोड को थोड़ा संशोधित करें, इस प्रकार से, मुझे नमूना कोड दिया गया है। फ़ंक्शन प्रारंभ () {var myarray2 = []; myarray2.push ( "10-Feb-11"); myarray2.push ( ...

amazon s3 - How can I get only one level of objects in a S3 bucket? -

I want to list only objects in a bucket that are not buckets themselves, this lack of parsing the results of the catalog packet Is there any way to do this? Objects are these buckets that are not buckets themselves Bucket can not contain other buckets Do you mean folders? There is no concept of folders in S3 You can have 100 buckets in S3 account and each bucket can have an unlimited number of objects / files. If you give your files the name of / in the file name, then each segment will be treated as a virtual folder, AWS GUI tool (eg AWS console, Bucket Explorer etc.). E.g. A file named folder1 / folder2 / myfile.jpg will be stored in S3 as a 'flat' file with that name, but it will appear in GUI tool That is a file named myfile.jpg below 2 subfolders in folder1 / folder2 . P> mybucket folder1 file1 Txt file2.txt folder2 file3.txt file4.txt folder3 file5.txt file6.txt prefix = "using folder 1 / will return all 6 f...

logging - Downloading detailed logs from google app engine -

I want to download raw access logs from the Google app engine app written in Python. I have tried the following commands: epispapp request _logs --num_days = 2 ~ / document / workspace / logonizer / applog_29march.log gives me 47943 records. but the only CLRL format in the header is the header epciphpi --severity = 0 --num_days = 2 request_logs ~ / document / workspace / lognolizer / applog_27March.log appcfg.py --severity = 1 --num_days = 2 - request_logs request ~ / documentation / workspace / logonlijer / applog_27March.log appcfg.py --severity = 2 - -num_days = 2 - Request_logs Request ~ / Documents / Workspaces / LogLogIizer / applog_27March.log appcfg.py --severity = 3 --num_days = 2 - Request_logs Request ~ / Documents / Workspaces / Lognilizer / applog_27March.log appcfg.py --seve Rity = 4 --num_days = 2 - request_logs request ~ / documentation / workspace / loganizer / applog_27merarch.log I get altogether only 2000 records with detailed errors. In m...

objective c - NSTabView Item adding an Icon in TabViewItem -

I subclassed NSTabView and added 5 TabViewItem, now I wanted to add an icon with the title in NSTabViewItem, anyone Suggestion that I can start, how do I get any documents except me, - (zero) Draw label: (BOOL) should refer to the tricket label: ( NSRact) tabRect This means that if I override this method, then I would like the icon and the string C should have its own, To set the title, I am using the following method, [PTabViewItem setLabel: pLabelTitle]; Kind regards - Rohan Ignore the following Code works for me, - (zero) Draw Label: (BOOL) should be referenced in the Trinetate label (NSRact) tabract {// We have an image to draw NSImage * PImage = [pDelegate imageForCell]; [[NSGraphicsContext PresentContacts] SaveraphicState]; NSFIN TransCafe * EXForm = [NSaphine Transforms Transform]; [Format translateXBE: 0.0WB: TabRactIs. height]; [Xform scale xby: 1.0 yBy: -1.0]; [Extant consulate]; CGFloat x_Offset = 0; If (PIMAG) {[Pimage DrawRectects: NSMKRact (TabRa...

html - jquery simple slideshow -

I'm trying to create a simple jquery slideshow ... but I'm unable. i am using the following code but I do not get another image for the first time, first $ (document) .ready (function () {$ (" $ ("# Slide1"). Attr ("src", "resource / image / slide_1.jpg"); $ ("# slide1"). Feedout (1000); $ ("# slide1"). Delay (1000). Attr ("src", "resource / image / slide_2 .jpg"); $ ("# slide1"). Feedin (1000). Dislay (1000);}); What am I doing wrong? Slides ID = "Slide 1" with The following code still does not work (500) .attr ("src", "resources / images / slide_2 .jpg "). Delay (1000) .Fedaut ( 1000) .Dele (1000) .attr ("src", "Resource / Image / Slide_1.jpg"). Feedine (1000); You src attr to slide_2.jpg 500, right? If so, then what you are doing is wrong You work with .delay jQuery fxQueue , which is a queue of the function that...

asp.net - JQuery to asmx fails on Windows 2008 R2 SP1 -

Since the establishment of SP1, we are facing a problem calling the asmx pages with the JMC client code. The IIS is pointing to the JQ post call on its default 404 page. We have rollbacked our environment to emphasize this problem due to SP1 and the tests confirm this. ASP.Net 4.0 - JQuery - IIS 7.5 - Windows 2008 R2 SP1 P> - Bart Code sample calling (front-end): // Code to load the word ... $ .ajax ({type: " Post ", URL:" / Handler / Product RTG. AMMX / RAP Product ", Data:" {'IILID': '' + Unique IID + '', Product Id: '' + + Product ID + '', ' Points: "+ points.stosting () +", 'showcasing': "+ showOwnScore.toString () +"} ", Content type:" Application / Jason; Charset = UTF-8 ", Datatype:" Jason ", success: work (reaction) {warning ('success');}, failure: function (warning) Code back-end: [ScriptService] Public class ProductRa...

screen.width and screen.availwidth difference in javascript -

screen.width और स्क्रीन.वैलविड्थ में क्या अंतर है जावास्क्रिप्ट में? मेरे सिस्टम पर दोनों समान हैं! कुछ चीजें ब्लॉक आपके व्यूपोर्ट में से कुछ, ऐसे इतिहास / बुकमार्क साइड पैनल इसमें टास्कबार शामिल है, जब तक कि यह Autohide पर नहीं है तब window.screen.width! = Window.screen.availWidth । :) यदि आप व्यूपोर्ट में चीजें खींच रहे हैं, तो आपको यह तय करने के लिए कि क्या व्यूपोर्ट आदि बंद हैं आदि availwidth / availheight का उपयोग करना चाहिए। विंडो आकार पर पुन: गणना करना सुनिश्चित करें अन्यथा आपको पता नहीं चलेगा कि साइडपरेल कब बंद हो गया है। ध्यान दें कि इस संपत्ति द्वारा दी गई सभी चौड़ाई खिड़की के लिए उपलब्ध नहीं हो सकती है जब अन्य विगेट्स को स्थान पर रखा जाता है जिसे खिड़की ऑब्जेक्ट द्वारा उपयोग नहीं किया जा सकता है, तो खिड़की.screen.width और window.screen.availWidth में एक अंतर है। ।

javascript 'curry', need some explanations on this code -

I read the book "Javascript-The Good Parts", in chapter 4.14 Curry, the book gives the following example: function.math ('curry', function () {var slice = array.prototype.Salis, args = slice.apple (arguments), // first-arguments = this; return function () {Return.apply (null, args.concat (slice.apply (argument)); // 2-arguments}} var add1 = add.curry (1); document.writeln (add1 (6)); // I have two questions on this code: ' A is used by using . In the method used in the previous two lines of code, this is because ' 1 ' goes to the 1-argument and ' 6 '2-goes in the beginning? / P> A line of code is Apply (Null, arguments. (Slice application (argument)) , why this applies to (zero, ...) here ?, what is the meaning of applying logic for a null object? There are two places using arguments. In the method used in the previous two lines of code, it is because '1' goes to start 1-and '6' goes into 2-arrays...

vba - Read entire ini section and put into array -

OK, so I have these functions that I'm turning to using for my VBA code. This is probably the case because it also happens with VBS. The function (s) 'Ini's announcements files to work with private promotional event GetPrivateProfileSection Lib "kernel32" Alias ​​_ "GetPrivateProfileSectionA" (ByVal as lpAppName string, as ByVal LpReturnedString string, as _Val nsize as long, ByVal lpFileName as string) long personal announcement function as GetPrivateProfileString Lib "kernel32" Alias ​​_ "GetPrivateProfileStringA" (ByVal lpApplicationName string In, byVal lpKeyName as any, _ ByVal string as lpDefault, ByVal lpReturnedString As Stri C, as ByVal n Size Long, _ ByVal lpFileName string) as an Ini long as the '//' control procedures INI String public function ReadIni (filename string, as the current string, string as key as) reads * 255 as the string as string dim retval, as long as V = GetPrivateProfileString (named Sec...

vb.net - Replacing and then stringing multiple DLLs -

I am using VB.net so keep this in mind. I am trying to create a program which is highly edible, instead of existing DLS, only users can change many things. Like a modding capability of the type New DLL should not reproduce every function, though it should only include people who change it and then hook the old Dell to that thing Do not do that which he does not have. Is there any way to do this dynamically? For any other thing, refer to another DLL (like a proxy) through yourself? Sorry if this is confusing if it still confuses people, then I will take a picture later =) I am sorry, but it has to be done this way needed. I have already set everything in Manor and told the customers (they have already been developed). Looks like you want to write a plugin architecture in your application, why the wheel is again invented, / P>

php - where/how to put a class to control what a user can do (privileges)? -

I am using a class that performs the right query based on $ _POST ['action'] .. Example: class data {//>, pseudocode __constructor () {if ($ _POST ['action'] == 'insert') mysql_query ("INSERT .."); And if ($ _POST ['action'] == 'edit') mysql_query ("UPDATE .."); }} Now I definitely want to prevent a user from doing something that he can not do. For example, editing someone else's post, or something else complicated like That he can edit his post only when he is not published once the post is published he can not edit anymore (or maybe some time based) you can How can I add checks to my class data What? I once heard about Zend_ACL that can the work be done for this matter? Edit: I would like to avoid using databases for storing privileges Edit2: I would like to do this: Every user level "1" means that you are an administrator , Level = 2 means that you are an editor, level 3 = means that you a...

I am running a java based game on netbeans . How do I figure out the data flow in it? -

When I play a game in Netbeans IDE, how can I inspect the data flow so that I can play in the code to play Can I make changes with the data? You can debug your application line by line, by pressing the F7 key. More info

java - Create a Handler Inside Thread in Android -

मैंने धागे से टोस्ट को दिखाने का प्रयास किया। टोस्ट। मेक टेक्स्ट (गतिविधि। GetApplicationContext (), "यह तेज़ संदेश है", टोस्ट। LNGTH_LONG)। दिखाएं (); लेकिन अपवाद फेंकता java.lang.RuntimeException: Looper.prepare () नहीं बुलाया थ्रेड के अंदर एक हैंडलर नहीं बना सकता। मैं इस समस्या को कैसे हल करूं? मैंने Looper.myLooper () डाल दिया है। तैयार (); से पहले टोस्ट। मेकटेक्स्ट (....)। शो (); जब मैंने यह किया है, यह अपवाद नहीं फेंकता है, लेकिन कोई टोस्ट संदेश नहीं दिखाता है। तो मैं इस समस्या को कैसे सुलझाऊँ? अग्रिम धन्यवाद। आप async टास्क के onPostExecute पर अपना टोस्ट संदेश बना सकते हैं .. यह कोशिश करें .. संरक्षित void onPostExecute (शून्य परिणाम) {Toast.makeText (ActivityName.This, "आपका पाठ", टोस्ट। LNGTH_SHORT)। दिखाएं (); अगर (this.dialog.is दिखा रहा है ()) {this.dialog.dismiss (); }}

HTML5 in Nokia N8 -

Does Nokia N8 support the original browser HTML5? I am trying to display the chart using HTML5, but I am not working in the original Nokia N8 browser. No doubt the formal imagery is available here: and here:

Is it better to register for Location updates in Service or in Activity for Android? -

In one of the applications I am developing, I am registering for location updates in service. Is there a better way to do this? The application logic is that the service will remain active till application. I have to face the problem at any time, say that the service was running once and the location update was working properly. But after approximately 4-5 hours, location updates automatically stop, so it makes me believe that after the time the system has passed, the system has been automatically shut down by the system. Please correct me if I am wrong here. In this case, I have to register with the service instead of the service listener. Can anyone tell me whether I am understanding it correctly or not? but approximately 4-5 hours of location updates automatically stop, so It believes me that after some time the system is automatically shut down by the system. This is needed by onStartCommand () / code, it should keep your service around until it clearly is close...

How do I create a MSI-installer based on a set of files (Visual Studio 2008) -

I have a huge Visual Studio 2008 solution that has many NAT-projects. When I build a resile, I get a bunch of files (DDL, images, etc.) and folders in the output folder. What I want to do now is to take those files and prepare an MSI-installer package. Then, when I run MSI, I want to copy the files and folders to that folder that the user specifies in the installer wizard. What should I do to accomplish this? Can I run some scripts on post-build generating MSI? Take a look at this, very popular open source installer:

c# - WPF data binding cancel operation -

I have some controls that are bound to individual domain objects. I have some basic updates for the database through those items Operations must be implemented. I am using MVVM command binding to update database. The problem is the cancel button, which basically reloads the original value. I temporarily reloaded objects from the database, but it has to be changed soon. Due to not allowing easy cloning of objects, the object was not copied and manually object synchronized. UpdateSource seems to be the best solution manually for Binding and Calling UpdateSourceTrigger, but could not find any way to implement it because I have a visual model (or command) There is no direct access to see the control from Any thoughts? I remember when UpdateSourceTrigger is struggling with Explicit. Later I had the same problem (I needed access to visual controls). This was when I came to know that the model is nothing to maintain the status of WPF View, but there is also a way to present the...

java - Is there any Javadoc spell checker? -

I wonder if a javasok spell checker exists somewhere in open source? It would be great to have a plug in as a Maven plugin, but a standalone binary distribution will also work. There is actually at least one library that does this: Use of plain Java: javadoc ^ -doclet spellcheck.SpellCheckDoclet ^ -classpath "c: \ Javasoft \ j2sdk1.5.0_06 \ lib \ tools.jar," ^ -sourcepath "c: \ work \ dev" ^ -docletpath ".; C: \ tools \ jazzy-0.5.2 \ jazzy-core.jar" ^ -subpackages "jpdf" ^ ^ -echo on ^ -checkHtmlFiles ^ - Dictionary "/ Tools / Jazzzy -0.5.2 / dict / english.0" ^ -dictionary "/ Tools / Jazzzy -0.5.2 / scowl_dict / american-words.10" ^ -dictionary "/ Tools / jazzy-0.5.2 /scowl_dict/american-words.20 "^ -dictionary" / tools / jazzy-0.5.2 / scowl_dict / american-words.35 "^ -dictionary" ./files/dictionary_java.txt "^ -dictionary" ./files/ Dictionary_jpdf.txt "^ -Eig Ner Containing...

Best way to clone JavaScript class -

I have declared a class in a traditional way, that is, function myClass ( } {} MyClass.prototype = {}; Now I want to copy that class (for example, class creates a copy), but change some prototype methods. In other words, I want to copy some enhanced class ... do I need to use heritage for this or am I enough to loop and specify the context for my new class for the original prototype and the new one? I will use general inheritance to try it: var MyClass = Function () {}; MyClass.prototype = {foo: function () {warning ('foo')}, bar: function () {alert ('bar')}}; Var MySubClass = function () {}; MySubClass.prototype = New MyClass (); MySubClass.prototype.bar = Function () {Warning ('Other')}; Var My = new MyClass (); Var mysub = New MySubClass (); My.foo (); // foo my.bar (); // times mysub.foo (); // foo mysub.bar (); // Other Bar

php - why is the count($array) function not counting? -

मैंने जाँच कर लिया है कि चर एक सरणी है मैं $ array [n] जाकर वांछित तत्वों को वापस कर सकता हूं, लेकिन निम्नलिखित कोड में अगर मैं गिनती ($ सरणी) जाता हूँ तो लौटाए गए तत्वों की मात्रा नहीं मिलती आकार ($ सरणी) या तो काम नहीं करेगा। // सरणी को स्ट्रिंग $ संदेश कनवर्ट करना: $ messagesArr = विस्फोट ("& lt; hr / & gt ; ", $ संदेश); यदि (is_array ($ messagesArr)) {प्रिंट ("& lt; p शैली = 'रंग: लाल' & gt; सरणी ठीक है & lt; p & gt;");} अन्य {प्रिंट ("& lt; p style = 'color: red' & gt; सरणी ठीक नहीं है & lt; p & gt; ");} $ secondElement = $ messagesArr [1]; प्रिंट ("& lt; p शैली = 'रंग: लाल' & gt; दूसरा तत्व है: $ tweedeElem & lt; p & gt;"); // यह एक वास्तव में सरणी $ राशि का वांछित दूसरा तत्व देता है; = गणना ($ संदेशएर); प्रिंट ("& lt; p शैली = 'रंग: लाल' & gt; संदेश की मात्रा है: $ राशिएं & lt; p & gt;"); $ amountMess ...

php - iPhone push notification on windows azure -

The following code is a work example which works fine under Linux server, but when I try the exact code in Azar If I do, I get a normal 500 internal server error. All relative files have been uploaded correctly and I have configured php (php.ini) in Azure to use SSL. Nobody knows why this valid code fails in Azure? & lt ;? Php Function Push On ($ DeviceToken, $ Message, $ Badge) {try $ $ body = array (); $ Body ['aps'] = array ('warning' = & gt; $ message); $ Body ['aps'] ['badge'] = $ badge; $ Body ['Aps'] ['sound'] = 'RMCF'; $ Ctx = stream_context_create (); Stream_context_set_option ($ ctx, 'ssl', 'local_cert', 'ck.pem'); $ Fp = stream_socket_client ('ssl: //gateway.sandbox.push.apple.com: 2195', $ err, $ errstr, 60, STREAM_CLIENT_CONNECT, $ ctx); // $ fp = stream_socket_client ('ssl: //gateway.push.apple.com: 2195', $ err, $ errstr, 60, STREAM_CLIENT_CONNECT, $ ctx); I...

objective c - I want to make a file browser app for iPhone, but I don't know where to start -

I want to create a simple file browser app for iPhone (like IFile in Cydia) it's not just a visible document folder It can see all directories in the iPhone / iPod touch file system, like Finder on Mac / Explorer on Windows. Who can help me? P. s. I'm published on the Cydia Store, not from the App Store. You will need an iPhone SDK up and running and you want to go to the document.

image - App getting heavy while saving data to iphone directory,,, -

I am saving data to iFile directory which I have created in PNG format, but my app is getting heavier Should i do It seems that the options are quite clear: either delete the data from the document directory which you don? Is not required, or use a file format with more compression than PNG (eg, lossy JPEG). You have to compromise somewhere, so what's better for you App: By keeping more compression on images, or lossless images, but by automatically deleting files older than a certain date (or manually removing the user Offer of choice) etc.

c# - Problem with doxygen references listing -

I'm experimenting with using the doxygen on the C # application, however I'm having problems with the option REFERENCES_RELATION For example, I have the following method: class control manager {... Public Zero SendRequest (IRIVEST Rick) {Log.WriteLine ("Received Request {0}", req. Name); RequestChain.Handle (request); } Private messaging service & lt; Irremeist & gt; RequestChain = ...; } which creates the following reference line in the HTML document: "Reference IRKist Name, Control Manager, Request, and Log. Do I really want to show it: "IRKist.Name, MessageChann.Handley () and LogVetline () Reference." It seems that because Doxyzone does not see it as a method reference, which means that message selection. Handel docs also does not show any reference to it (using the REFERENCED_BY_RELATION option). Is there any way to do this, or have I missed some key reasons because class field is treated differently from the class paramet...

jquery - manually fire onclick of a textbox passed into parameter -

I have a function that uses a slider when the value of a text box will change. It passes an event variable in which the text box is updated as a value: function Update Textbox (e) {$ (e.data.textbox) .val ($ (This) .slider 'option value')); // This line works great $ (e.data.textbox) .change (); // This line works fine in Chrome, but not IE} I'm passing (simplified) to bind the function: slinder.bind ('slide', {textbox: '#idOftextbox'}, updatetextbox); IE automatically changes the event with only the first line, but then throws an error on the second line "Object does not support this object or method". Although Chrome automatically does not remove the event of change by setting the price, the second line is required. How to get any idea about this without finding a user's agent. Warning (e.data.textbox.change); // I define the function in all browsers, but that is not like the pair of brackets I I have also tried eval (e.da...

artificial intelligence - Does a pulsed (spiking) neural network outperform a recurrent neural net? -

Both pulsed and recurrent neural networks can model timing information models. But I'm not sure which model is better than the computational cost, does it pay to use more complex brain neural networks or will it require very little calculation with recurrent nerve outgoing work? Does the pulsed net gather faster? Thanks I do not believe you are seeing the problem properly way. The most important asset of a neural network (or any predictive model) is the accuracy, if I am much more accurate (and predictive), then I will spend 10 times more time in the model. There are several standard techniques for assessing the estimated power of your model, such as * * leave one out cross validation # * leave-many-out cross verification * * Fisher Randomization (http: // en .wikipedia.org / wiki / Ronald_Fisher) There are also several guides to create principles for projective models, such as * * Okram Razor * * Overfitting Avoid (http: //web.engr .oregonstate.edu / ~ tgd / classes...

c++ - what's the best way to delete an entry map -

I have discussed with my colleague that how to delete an entry in the map, the map index and index indicator are integers For one object I said, release the first object, and then delete the entry. My colleague said that first remove the entry and then leave the object. So what's the best way? Any tricks for this question? Unless you have a multi-threaded environment, the rule of thumb is that, After getting the return, any hanging indicator should not be left, that is, no signal to be removed from the object. Only one problem is that if you delete the first entry, you will need to make sure that there is a temporary copy of the indicator, since it is not recovered from the map after the entry is removed Will be able to do

Caching Twitter API Calls in Rails -

My Profile 'Signs with Twitter' applies OAuth Dance, and shows to all the users followed by the current user . # / view / user / shows.ir & Lt; H1 & gt; The users you followed & lt; / H1> & Lt;% = Render: Partial = & gt; 'Indexed user' ,: archive = & gt; @ Current_user.following%> The following is a virtual feature of the user model. # /users/models/user.rb def The result is the first, because I am new to Rail (and MVC) I ask: Is this an appropriate abstraction? Should the user 'be adhered to' themselves be modeled? And now the real question: It is unnecessary to kill Twitter for this information on every page load. If we want to cache the results of this kind of API call (and provide a method to easily flush that cache) for such a time, how can we go about it? Is this just a question of the return value of the column call of the API call, with the 'completion' column, and when calling the API, the colu...

android - EfficientAdapter and text format -

I am using the EfficientAdapter that listsActivity Expands for some reason, when I use the code: public view getView (see the status of int, seeviewview, ViewGroup parent) {ViewHolder holder; If (convertView == empty) {convertView = mInflater.inflate (R.layout.list_item_icon_text, null); Holder = new viewholder (); Holder.txt = (TextView) ConvertViewFindVBID (RTEText); Holder.txt .set padding ((int (varscrynoid-300), 30, 0, 30); If (position == 1) {holder.text.setPadding (20, 0, 20, 0); Holder.text.setBackgroundColor (Color.DKGRAY); } And {holder.txt .set padding (20, 20, 20, 20); Holder.text.setBackgroundColor (Color.TRANSPARENT); }} ConvertView.setTag (Holder); } And {holder = (seeholder) ConvertView.gettag (); } Holder.txt .set text (string.value (wars.adademin [position])); Return Convertview; } I get a list, but instead of just 1 item with color. DKARAR, I remember it on other items. I scroll up and down and change from one item in the background to any idea? Recyc...

c++ - std::vector member functions -

मैंने इस प्रश्न को एक किताब में देखा है: std :: सदस्य का सदस्य कार्य वेक्टर आवंटित मेमोरी को नियंत्रित कर रहे हैं? क्या कोई इसका जवाब दे सकता है? धन्यवाद कंटेनर कक्षाओं के मेमोरी आवंटन को प्रत्येक के लिए अंतर्निहित आवंटक परिभाषित किया जाता है। लगभग सभी सदस्य कार्य नियंत्रण आवंटित स्मृति ।

sql server 2008 deleting duplicates -

मेरे पास ऐसा डुप्लिकेट है col1, col2 1, alex 1, alex 2, Liza 2, liza 3, peter 3, peter वहां केवल दो ही हैं मैं डुप्लिकेट कैसे हटाऊं? साथ में क्यू एएस (SELECT *, ROW_NUMBER) (यहां पर कॉल 1, कॉल 2 ऑर्डर द्वारा कॉल 1, कोला 2) एआरएन एफ आर मायबॉलेट के रूप में) क्यू जहां आरएनटी = 2 से हटाएं:

actionscript 3 - Flixel - How to load and play an embedded swf file -

I am searching the web and I have found that all the codes are for running external SFF files, which have timeline . The file I am attempting to load does not have a timeline. I am using the Fixel framework for this project and the file I want to play is also made in Fluxel (not just the source file in the SDF file). has gone. I have the most code on the Faxal forum, I got it from a cutaneous template. Here's what I've done so far: package {import org.flixel.FlxState; Import org.flixel.flxg; Import Flash.Display.MovieClip; Import Flash. Media. Sound mixer; Import flash.events.Event; Public class sponsorStest FluxState {// embedded CutSin SWF related to the root of the Faxless Project [Embed (source = 'assets / dertipilaglago SIFF', mime type = 'episode / octet-stream')] Personalized Sphales: Class; // This is a Movie Clip container for your CutScen Private Wave movie: Movieclip; // It is the length of the cassine in the frame Personal var Length: Number...