Posts

Showing posts from June, 2014

c# - DEVCON.EXE (driver tool) and OpenVPN -

We wrote an application that manages Open VPN from the tray as an add-on for a large software package . Open VPN contains a file called tapinstall.exe which installs the Open VPN adapter (or a driver for that matter). While doing some research, this file is similar to a command-line tool called Dimocon which includes Microsoft Windows DDK. Open VPN people have renamed it for their use. So we use custom action to install the driver during our setup (MSI) installer, which works just fine for most of the part. Every now and then, devcon fails and hangs - Never after that point, you can run the deckon again and install it twice twice ... which is basically open VPN Will break. Has anyone seen this problem with disco, know what it is doing, or fix it? As an alternative solution, does anyone have to install a driver from C #? (We have a .inf and .sys file) Update: We have found that these problems are very rare. This is most often when we have applied an update, where we unin...

php - My Zend Framework 'quoting' mess -

I have found a very simple issue for which I have a satisfactory framework manual in Zend ... or How can I put my php variable on my SQL query, there are many ways that I've lost the overview and I do not understand anything about quoting in general. Prepared Statement $ sql = "Choose from where from the table ID =? And restriction =?"; $ Stmt = $ this- & gt; _db-> Query ($ sql, array ($ myId, $ myValue)); $ Result = $ stmt-> Fatch ALL (); I understand that with this solution I do not have to quote anything because DB handles it for me. Zend_Db_Table and _Row Objects Inquiry on the API $ user = new user (); a) $ users- & gt; FetchRow ('userID ='. $ UserID); B) $ user- & gt; FetchRow ('userID ='. $ User- & gt; getAdapter () - & gt; bid ($ userID, 'INTEGER')); C) $ users- & gt; FetchRow ('userID =?', $ UserID); D) $ users- & gt; FetchRow ('userID =', $ Users- & gt; getAdapter ...

How do you normalize an email address in PHP? -

Is PHP a function that can normalize an email address? Example, if case isn 'is not important, then FOO@example.com -> foo@example.com . I do not want the rule for an email address to be "similar", so I do not want to apply it myself. Wikipedia has one Despite what other people have said Email may be case sensitive Local-part case is sensitive, so "jsmith@example.com" and "JSmith@example.com" different people Can be distributed to. This practice has been discouraged by RFC 5321. However, the only official mail server for the domain can make this decision The only exception is for a local part value of "postmaster", which is insensitive to the case, and to be forwarded to the administrator of the server needed. The local part is referring to the part of the address @ on the left side of the sign @ Therefore, as far as your specific concern (case generalization) To the right), however you look best fit (split by...

ruby on rails - Dynamic find conditions in active record -

I have an index action in the train which can handle some parameters eg: Parameters [: first_name] can be # zero or first_name parameter [: age] can be # zero or age parameter [: country] # can be zero or country when users find I would like it and all the conditions which are not zero, it searches for 8 situations. How can I keep my code dry and flexible and do not end up with a group of if statement to create situations for search. If no conditions are specified, then I will return User.all Want to How about something like this: Terms = params.only (: first_name ,: age, country) terms = conditions.delete_if {| Key, value | Value.blank?} If conditions.empty? User.All other User.all (: conditions => conditions) end

scope - Writing functions in R, keeping scoping in mind -

I often write functions that require viewing other objects in my environment. For example: & gt; A & lt; - 3 & gt; B & L; -3 & gt; X & lt; - 1: 5 & gt; Fn1 & lt; - Function (x, a, b) A + B + x> Fn2 & lt; - Function (x) a + b + x & gt; FN1 (X, A, B) [1] 7 8 9 10 11 & gt; As expected, both functions are similar because fn2 sees it a and b when it is executed. But whenever I start taking advantage of this, within 30 minutes I ask the function to make calls without any required variables (eg A or B). If I do not take advantage of it, then I think that I am passing unnecessarily around objects. Is it better to be clear about the requirement of the function? Or should it be taken care of through inline comments or other documents of the function? Is there a better way? If I know that I need a function parameterized by some values ​​and times- The bar is said to be, I avoid globs using the closure: make.fn2 It cleverly refr...

delphi - How can I load a package and keep the debugger working? -

I am using TJvPluginManager in JVLL to create and load BPL-based plugins for my program. The problem is, one of the plugins is not loading properly, and I can not debug it. Whenever I try to trace in the loading sequence, it goes to the LoadLibrary API call, and then the debugger forgets what it is for it with fully source lines The program loses its ability to associate the code, provides meaningful data in the call stack, or displays local variables. It will still stop at breakpoint, but it breaks into the CPU window, in which the inline source code has been stripped. This is in Delphi 2007 and 2009, and it's driving me crazy. How does one load a plug-in without breaking a debugger? Does anyone know why is breaking it in the first place? Note: I am not looking for alternative methods of debugging. I know everything about tracing and logging and everything else. What I want to understand is what is going wrong and how to fix it. Surely I am not the only person who ever...

c# - How to escape "\" characters in Java -

जैसा कि हम सभी जानते हैं, हम स्ट्रिंग aa = @ "E: Dev_workspace1 \ AccessCore \ WebRoot \ DataFile " में सी # में '\' को दोगुना न करें। लेकिन जावा में कैसे करना है? दुर्भाग्य से, जावा में कोई पूर्ण-स्ट्रिंग एस्केप ऑपरेटर नहीं है आपको कोड को इस रूप में लिखना होगा: स्ट्रिंग एए = "ई: \\ dev_workspace1 \\" एक्सेसकोर \\ वेबरूट \\ डेटाफाइल ";

Jcarousel lite not showing up on page load in safari and chrome -

I have access to this plug-in on my home page which is running on WAMP. It works very well in every browser except Safari and Google Chrome. Browsers do not appear in those browsers when I first load the page, nor when I reload when I click through the page navigation link on the home page. I navigate from then it shows. Any ideas that might be due to this? Thank you, Jeremy This problem also found that by giving a picture I Width = "nn px" and height = "nn px" was displaying my problem;)

silverlight 3 datagrid x:name issue -

I recently raised my SL2 solution to SL3. I have user controls in which only one datagrid is: & lt; UserControl x: class = "Case.CaseDataGrid_View" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/ Xaml "xmlns: data =" clr-namespace: system windows. Controls; assembly = system.windows.doc. Data "& gt; & Lt; Data: Datagrid language = "N-GB" Autogenerate column = "True" Rohite = "20" ITEMSource = "{Binding case}" selected ITEM = "{Binning selected key, mode = two}" & gt; & Lt; / Data: Data grid & gt; & Lt; / UserControl & gt; This is referred to as a parent page: & lt; UserControl xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/Presentation" xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml" xmlns: D = "http: //schemas.microsoft.com/expression/...

actionscript 3 - Mouse pointer angle with MovieClip in AS3 -

How do I calculate the Y-axis of a point with the mouse (say, Y position of the movie clip) Can the indicator location in the workspace 3? Many thnx! I think you mean the angle between point and mouse pointer if it is correct It probably will be something like this var distanceX: number = mouseX - point.x; Var distance Y: number = mouse - point A.a; Var Angles in Aradian: number = mathematics.Tan 2 (distance, distance x); Var and LEDGrage: number = angle indria * (180 / Math.pi);

flash - group rollover effects with actionscript3 -

I have found the following problem with the actionscript3 project. I have a group of button setups through a class sitting in a holder's spread. When I roller one of these buttons, I loop through all the buttons in the holder and run between 4-4 in the middle of the alpha to run the twilllight. Click on the button. When I rollout I reset all the buttons again in alpha 1 via a twinlight tin. It works fine most of the time. I have these problems as follows: When I roll from one button to the other directly then there is a lot of flicker Sometimes when I roll on another button, I have a case, instead of returning all the buttons in alpha1, they return them to an initial state alpha is required. I have tried Tweengroup but it does not seem to help either. Let me know if you need more details, the code is integrated into many other things, this is the reason why I have not posted it but if I need to, keep anything together Can i Thank you. Josh IMO, you ...

asp.net - How can I add a registered trademark symbol (R) to an asp:RadioButton control declaritively? -

I want to show you a registered trademark symbol (ie "R" in a circle) in a label on a Web page. But I want to add it in code-backed file not in design view markup. Is equals in & amp; Copy? In Edit: Any idea How do I use it is when you define a radio button when it does not work, when applied to the text property of the ASP: Rediobutn control? & reg ;: & reg;

iphone - Custom UITableViewCell with round rect -

I have created a custom table viewer. My table belongs to the grouped style. My custom tableview is the background color of the background. Round Rect, but some white color of my cell is still there to see the back security. How to create a custom cell with round rack so that the ican set adds background color and multiline text. I tried to make a background scene of the round prints. It works. But I have to create another scene to add multiline text. There is a way to make cell with background color, multilingual text and round rake. As indicated in the comments, there may be several reasons, and there may be many solutions , But if you get the background color of your cell [UIColor clearColor], and you do not set the opaque property, it is likely that you will get the form you are trying to achieve.

macros - What's a Solution or Formula to export a text field with padded spaces in Access 2003, to a txt file -

Using the Access Access 2003 database, with 2 tables, and a single query, macros for viewing files, and exporting To do macro files (delimited, not fixed), and a form. The main table is created as follows: "employee's name"; Data type: text, field size: 22 "employee ID"; Data type: text, field size: 22 "RT #"; Data type: text, field size: 9 "A / c number"; Data type: text, field size: 15 "zodiac"; Data Type: Number, Field Size: Decimal, Format: Standard, Precision: 9, Scale: 2, Decimal Places: 2 "Effective Days"; Data type: text, field size: 2 "status"; Data type: text, field size: 255 The secondary table "active table" is created as follows: "employee's name"; Data type: text, field size: 22 "employee ID"; Data type: text, field size: 22 "RT #"; Data type: text, field size: 9 "A / c number"; Data Type: Text, Field Size: 15 "Amount $"; Data t...

sql - Can I make this MySQL staement with complex COUNTs more efficient? -

I have a table of all major league baseball games that is structured like this: ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** Tickets sold for different games: ** ticket ** id (int) game_id (int) price (float) time_sold (datetime) D like running a MySQL query that every ticket is The match matches the home and away team records for the time being the time the ticket was sold I am using it: SELECT ticket.id, game .home_team_id AS home, game.away_team_id as Away, (SELECT COUNT (game.id) from game WHERE game.date & lt; DATE_SUB (ticket.time_sold, INTERVAL 1 day) and (game.home_score> game.away_score and game. Home_team = home or game.away_score> game.home_score and game.away_team = away) home_team_wins game.id = ticket.game_id on the JOIN game by ticket I know that the query is extremely slow, I have a price tag in all the columns and ticket tables in the game table. Also has indexed all, but still slow pain....

Terminate a process tree (C for Windows) -

Previously asked, but I have not received a definitive answer, in code. Open a process, Process A (with PID 1234) This process opens a hair process, Processab (PID 5678). After finishing I finish Process A, but I still have an anchor of processab. How can I eliminate the entire process tree? What do I mean, how can I ensure that if I end the process that is opened then I am ending all the related processes? Thanks The code is appreciated. Check grouping processes within "Work" If it does not work for you, call to calculate all the processes on the system Check the member of th32ParentProcessID PROCESSENTRY32 structure on each process, if it matches your parent ID, then process ends (usage) after the expiry of all children, terminate the main process Sample code: DWORD myprocid = 1234; // your main process ID PROCESSENTRY32; Memset (and PE, 0, size (PROCESSENTRY32)); PE.wcz = size (PROCESSENTRY32); Handle HSNP = :: CreateToolhelp32 snapshot (TH...

subclipse - SVN - Update complete local copy to HEAD Version -

In the current revision of the team repository, someone in my team, "mistake" to remove several files, Is it possible to update to revision? When I click on the commit, subclipse does not recognize the missing files for uploading them. Thanks in advance, RAIT Oh, for the love of Pete! Its answers are far too good - confusing. From your question, it seems that you were trying to do something like this: svn update -r8 # OK, now see the deleted file Svn commit -m "I want the r8 to be the latest" except that there is no modification to commit that it will not work. You can update the old amendments, but you can not change it there. You can not change the past You can only make a new amendment, can undo the damage. OK, let's assume that your repository is on svn: // repo. Here, a simple example where the folder trunk contains two files, "a", and "b" we call this amendment 8 (r8). trunk # svn: // repo / trunk ab The JR ha...

vb.net - vb 2008 Run Grayed Out-on -

My run button is grayed out, it involves starting a new project of any type. I completely displaced VS 2008 and installed it again. The run is still gray. VB is now useless. Check whether this is the starting point for your project - under your project property Go to, see if "startup form" is set correctly or not.

javascript - WordPress menu position -

I am running a website using WordPress and using some javascript which changes the page. I want my menu position to be stable at 150px down and 800px right and when I do not move to any size change my browser window currently when I try Status: Stable; This happens when I click on one of the Javascript links which extends a section, can anyone help you? In your CSS, try status: fixed : Absolute; to use.

How to delete duplicate rows with SQL? -

I have a table with some lines. Every line has a date field. Right now, it can be a duplicate of a date, I have to delete all duplicates and store the row with only the highest id . How can SQL queries be used? Now: Date ID '07 / 07 '1 '07 / 07' 2 '07 / 07 '3 '07 What do I need: date id '07 / 07 '3 '07 / 05' 5 / code> Delete from the table (select MAX MAX from the table) by date);

svn - Git or Subversion for a TFS user -

I am from 2005 Beta 2 on TFS, installed it, administered it, and used it on daily work Have done I would like a source control solution for my home projects written with Visual Studio 2008 Professional, and I can not afford TFS. After merging, the big thing for me is the integration into Visual Studio, I have just become addicted to running source control from within an IDE to change. I have done some homework and it has come down for guit and subversion. Git Gitextensions Popular on SO (active community for support) Dosage Ankh's SSVN Popular on SO (active community for support) It looks like there are great documents in the O'Reilly book At some point I will probably try both to expand my knowledge on this subject, but by then I would seek to find that thing I am doing only what works Is one or GIT or SVN going to feel more natural for me as a TFS user? Is there any gift that I am going to go with anyway? Is one of the IDE plugins more r...

JQuery load() in IE8 POST&GET not working? -

This is my position. I am trying to re-establish a div in a page with load (). I tried with GET for the first time. Works fine with Firefox but not IE8 After reading a little bit, I came to know that I have to post my Param, so I went there and posted one. The result is the same as it was. It used to work in IE8 Line im used to post here. $ (\ '# test_1 \'). Load (\ '../ajax_http.php \', {variable2: xload}) Firebug, (firefox debug add-on), posting post as a post and If the paragraph value is seen then its running as a posting but still is not working in IE8. This is using the actual line IM: echo & lt; Div id = "test_1" class = "test_1" onClick = "$ (\ '# test_1 \') load (\ '../ajax_http.php \', {variable2: xload});" & gt; '; Any ideas? So if IE8 GET my data I'll get it myself! I came with function req_product (user, verb, product) {var data = getXMLHttpRequest (); Data. Onre...

Using HTML elements inside an XML loaded by Flash -

I am trying to use HTML elements in the style text in an XML file that is loaded and displayed by Flash is. When I do this, the text will not be displayed at all. Here is a glimpse of my XML: When I try the code below, it displays but ignores the B tag: Here's the functional dynamic text field that sets: Container. Teletle.htmlText = xmlData.Title [0]; What I can tell, it should be entirely possible. Tutorials and references do not give any hits to the online problem. Looks simple but driving me crazy Any help would be welcomed. Try wrapping HTML in the CDATA tag, like: & Lt ;! [CDATA [- Your HTML content here -]] & gt;

javascript - Get the width of a DOM element? -

Is there a way to reach the width of a DOM element? Specifically, I am receiving the width of a table cell (TD) that can be in width, depending on the length of the text in that cell length of different length. Ideally, I will use the jQuery library to look for solutions, but will also work as others. In addition, I would like to emphasize that the solution should work in IE6 (unfortunately: -p) besides IE6 (i.e. 8) and Firefox. thank you in advanced! $ (selector) .width () should work fine, but For IE6 and below ensure that the page has been provided in standard mode and not Quirks-mode (hence it follows the W3C box model). Standard / Strict mode here:

scripting - Find all instances of 'old' in a webpage and replace each with 'new', using a javascript bookmarklet -

Whatever I have to do, all instances of 'old' are included in a web page with 'new' Change in bookmarklet or GreeceCookie script How can I do this? I think jQuery or other framework is fine because they have hacks to include both the notebooks as well as the grayscenic scripts. A function that is clozer-proof does not mean that it does not just make any tags or attributes Will touch function htmlreplace (a, b, element) {if (! Element) element = document.body; Var node = element.childNodes; (Var n = 0; n & lt; nodes.length; n ++) {if (nodes [n] .nodeType == Node.TEXT_NODE) ​​{var r = New RegExp (a, 'gi'); Nodes [n] .textcontent = nodes [n] .textcontent.replace (r, b); } Else {htmlreplace (A, B, node [n]); }}} Htmlreplace ('a', 'r'); bookmarked version: javascript: function htmlreplace (a, b, element) {if (! Element) element = document.body; Var nodes = Element.childNodes; (Var n = 0; n & lt; nodes.length; n ++) {if (nodes...

c# - How can I change the mouse cursor image? -

I need to change the cursor image. Whenever the mouse is more than my form, then I Image loading is required. I am using version 1.1 of .NET Framework. Here's what I have tried: cursor = new cursor (GetType (), Application.StartupPath + "\\ windowfi.cur"); But it throws an exception: Value can not be zero. Parameter Name: datastream The cursor is a constructor in the class, Kar file takes you to the path. use that. Like this: this.Cursor = new cursor ("& lt; your_cur_file_path");

iPhone - access XAMPP server (localhost) on my mac in the same network -

I want to create an iPhone app that calls for a web service To test, I first have my Mac I want to make an API call on XAMPP and if it works fine then I want to close it on the real server. If my iPhone and Mac are the same network, can I use a web service using my mac's IP address? Thank you. At any time a person replies with "Why not", can ignore the post It just takes place and does not connect like this ... His post imitates his life. Still, I'm using my laptop localhost (WAMP stack) from my iPod touch, which should have some configurations to work on my laptop's IP address. My Touch Location Bar. I found what I want: Good luck!

Marshalling a class intance's pointer between C++ and C# -

I have an ActiveX control (written in C ++) and the reference is that the RCW assembly from the C # project (Alicamp Is created by .exe). In the C ++ code that enforces Excel control, I have to apply an interface that is exposed as X control property. Looking at the generated RCW assemblies, see I interface and I can try to declare a variable of its type. Now, if I have an example of a C ++ class that implements the interface in memory, is it possible to manage its data? C # objects represent the interface using that pointer ? Please note that this is not the interface pointer. This is the indicator for my class example. You may want to give C ++ / CLI a try. Writing code which varies between C ++ and C #, it is a snap.

flex - How to hide view stacks in AIR application? -

There is another one for one and one sub-menu for my main menu. I only want to show information about the visibility page of a view stacks. Hide another If I click on the submenu view stack, the mainmenview stack will be hidden. How can I do that? I do not know whether it would be right or not. I tried (as if = false) submenu view stack mx: AddChild status = "last forty" & gt; ; & Lt; Mx: viewstock x = "3" y = "94" id = "submenu" height = "499" width = "905" visiable = "wrong" & gt; & Lt; Ns1: Pick15view label = "pick 15" x = "10" y = "10" height = "511" width = "904" show effect = "wipedown" hidden effect = "wipe-up" & gt; & Lt; / Ns1 also: Pick15view & gt; & Lt; Ns1: Lottoview label = "Lotto" x = "0" y = "10" show effect = "wipedown" effect = "wipe-up" h...

internet explorer 8 - jQuery wrap failing on IE8, fine on Firefox -

I have a jQuery statement that works fine on IE7 and works on FF, but failed on IE8 . Line is: Scratchfraeme (). ("ForwardMatch"). Rap ("& lt; nonmarkupmatch & gt; & lt; / nonmarkupmatch & gt;"); I have added the following before: alert (scratchframmem). ("FortWatchMatch") Warning (. ScratchIFrame () (HTML); Get more results: 1 & lt; FullwidthMatch & gt; Test & lt; / FluidMatch & gt; Error occurring: Message: Unexpected call line for method or property access: 12 variables: 2305 Code: 0 URI: http: / /ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js Do anyone know It may be related to trying to change the fact element that you are using or the actual HTML elements you are using; & lt; Div id = "fullwordmatch" & gt; Trial & lt; / Div & gt; and searching using it; ScratchFrame (). ("Div # fullwordmatch"); What error still occurs?

php - To select the encrypted password from mysql -

I have to select only the password from the table, with the specific username entered via the login form. I store passwords in encrypted form in mysql table. So I need to compare the given passwords and stored passwords and print "login successfully". The other password is wrong. This is my code. Now I am getting the output as "1 resource id # 4". Any one plus help ... mysql_select_db ($ dbName); $ User_name = $ _ post ['name']; $ Pswd = $ _ Post ['pswd']; $ Res = mysql_query ("Select from xxx * where name = '$ user_name'"); $ Line = mysql_num_rows ($ res); Echo per line; $ Encaps = mysql_query ("Select password xxx where name = '$ user_name'"); $ Result1 = mysql_fetch_array ($ Encash); $ Result1 return; If ($ line & gt; 0) {// resonance 'hi'; If (MD5 ($ pswd) == $ Result 1) {echo 'hi'; Echo "You have successfully signed in !!!"; // resonance $ name = $ line ['name']; //...

c++ - What would be the correct design approach? -

I have followed the current scenario I have a validity class in which valid (command *) Function which it validates passed command. validator {public: validate (command * cmd) {/ / General validation logic}} I have three sections, WindowsExecute, SolarisExecute and AIXExecute To validate the command before executing Member Function Execution () in SolarisExecute and AIXExecute, create the object directly from the validator and use the valid (comman *) function. class SolarisExecute {public: execute (Command * cmd) {Validator v; Valid Valid = v.validate (CMD); // Based on 'valid' some processing}} class AIXExecute {public: execute (Command * cmd) {validator v; Valid Valid = v.validate (CMD); // Some processing on the basis of 'valid'}} WindowsExecute is completely different and there is no command in it. Instead it needs to verify some string data. To do this, there is a separate class named as the Windows Videotator, inherited from the vendetta. Windows...

Visual Studio 2008 freezes when I edit XAML code -

If I edit the XAML code, my VS2008 SP1 gets frozen several times in a day, it just gets stuck And I had to kill the process. It is clear that whatever problem is happening when editing a problem or code with IntelliSense or Magic-Check, if I paste paste some code. Even if it's just a word many times the VS2008 adds some additional commands to the code and completely messes things up. It did not happen only with CAD, it was stuck with only XAML. One more thing: It seems that the problem occurs when I edit the control template. I added some control templates from MSDN pages to my project. When I edit them - even simple things like changing brushes - Visual Studio Freeze (occasionally). So it seems that this is not just a normal XAML problem with control templates in general. You can try this update: Edit: You can try closing the Properties window while editing XAML, before I got help with ASP.NET. Some other links:

ruby - Model-specific SQL logging in rails -

In my rail application, I have a background process runner, model name worker, who checks for new tasks that run every 10 seconds. . This test generates two SQL queries every time - to search for a new job, to remove an old accomplished Problems with it - The main log file is spam for all those queries. Can I generate SQL queries in a separate log file by the worker model, or less Can I give them silence? Overwriting worker. The logger is not working - it only redirects messages that are explicitly logger Debug ("some") is called. The simplest and most idiomatic solution logger sealance do dot com end View

How can I customize tab completion in Perl's Term::Shell? -

I am using the package to implement the CLI tool This package provides an API: comp_CMD . This function applies whenever the user presses the tab. My requirement is here: Shell> Stack TAB Less than `Shell> Stack Over TAB flow sample junk but the default comp_CMD provides only a set of tab options such as open> Stack TAB Less than `Shell> Stack Over TAB More than ### The problem is here Instead of over , I Want to get flow sample junk . comp _ * with style handler as well as against the final incomplete word Can match someone's perfection. Fortunately, however, you can get the desired results by overriding the catch_comp function like below; It gives a match against the whole command line: My% completion_tree = (stack => gt = {gt; gt; [], over = & gt; [qw Sample junk)]}); Sub catch_comp {my $ o = shift; My ($ CMD, $ word, $ line, $ start) = @_; My $ full = substr $ line, 0, $ start; $ Full = ~ s / ^ ...

cakephp - ajax update multiple div -

In my application, I need to update many divs. We can give div names in the array. But I do not know how to render two CTP files in the controller. Render it for a CTP $ -> ('Newcut', 'AJAX'); I have to know how to update for two? two. ). Then, in your opinion, presenting both elements. Like this: myAjaxView.ctp & lt ;? Php $ this- & gt; Render ('myFirstElement'); ? & Gt; & Lt ;? Php $ this- & gt; Render ('mySecondElement'); ? & Gt; And you have two CTP files under the View / Elements (myFirstElement.ctp and mySecondElement.ctp) that contain HTML which you want to provide. Good luck

windows - Override Drag and drop for Shell Extension -

I'm working on Shell Extension code in C ++. I am creating a virtual drive in which network Somewhere represents a repository. Now what I want to do to enable drag-drop functionality in this drive, I want to enable the user to drag that file to that virtual drive and then I should be able to catch that event, Can do the operation. I have not been able to find any such incident or interface yet. I tried to use the IDragAndDrop interface, but its RGS file was not properly registered. Is there any way? The documentation that you want to ask is included in the documentation of MSDN: (Specifically, IShellFolder :: GetUIObjectOf () can return an IDataObject or IDropTarget interface)

asp.net - What is the difference between ViewState,Application and Session of a Page? -

Would someone tell me the difference in Vivestate, Application and Page sessions? Quick liners - If you want more detail, just ask ViewStat is a variable that holds the current state of the page, which is hidden in the page. (Often used) ApplicationState is a variable that you can store values ​​from the app in life (without bicycle and your knowledge from time to time) Less frequently) is the session variable that you Ik can that he will continue as long as the browser as long as they do not close the browser. (Except for any timeout) (often used)

c# - Does anybody know what means ShellHook message HSHELL_RUDEAPPACTIVATED? -

I am writing an application that installs shell hook to get shell event (I am using C # If this is the case). I am using this example: The hook is working fine, but I did not find the message on which I am interested: HSHLL_WindowEctivated (all other window-related events work well ). Instead, I am getting a message with 32772 code, which should be HSHLL_RUADAPactive (some tablets help) but I do not understand why I have not received HSHLL-WindowActivated and What does the HSHLLURAAPAPactivated message mean? There is no mention of MSDN. Can anyone explain this to me? HSHLLURUPAPAPECTIATED 32772, which is just HSHELL_WINDOWACTIVATED Whatever I can gather on various web sites, it appears that Windows sends this message when a full-screen app is active. To tell for hard work. Have you tried to keep that message similar to 'HSHLL_WindowEctivated'?

asp.net - What is the best way to determine URL for local/staging/production? -

The url for local testing is like this: For staging, the app is in the virtual directory: For production, this is the root cause However, sometimes we need to redirect to a particular directory. We do not always know where we are. So, how do I do a redirect to say /subdir1/mypage.aspx? More info I ignored one important item. This URL is sent back to the browser so that some JavaScript code can redirect. (Weird, I know). Therefore, a regular ResolveUrl ("~ / / pagename.aspx") will not complete the information ... UPDATE 2 I ended up with the following, which seems to be working across the board In ... this looks a bit ugly. stringbuilder buildUrl = new string builder (@ "http: //"); BuildUrl.Append (Request.Url.Host); If (Request.Url.Port! = 80) {buildUrl.Append (":"); BuildUrl.Append (Request.Url.Port.ToString ()); } BuildUrl.Append (this.ResolveUrl ("~ / Pages / Customers.aspx")); BuildUrl.Append (string.format ("?...

cocoa touch - Creating an alternative way to scroll TableView on iPhone -

I currently have a TableView with more than 35,000 cells. Obviously the standard iPhone shock-and-scroll becomes disabled with many of these cells. I have already applied the search but still think there is a way to scroll the whole table. I currently have -sectionIndexTitlesForTableView: My instinct tells me that a list which may be too large, uses standard hierarchical navigation on the iPhone By filtering down the small sections - which said what I can say without data, without any confidence. You say you have a section title - the list is alphanumeric? If so, what is wrong with having the standard alphabet section INDX and sectionTitles?

c# - Multi-Threading, HttpContext, Long Running Task? -

I started with thread thread.start () recently and long time Work on and many requests related issues related to issues. Edit is a job, when you suggest to provide a feedback to the user being processed, Use efficient and use HttpContext if possible? You are quite likely to have a mistake in using your thread in an ASP.NET application. Are you using Asynchronous pages, or you are using the new thread (). start over? The latter is a mistake, and you can get into some problems with the HTTP contact, when the request is complete, but the thread is still going on. Please give your question as much information as possible, again by thread.

python - Overriding inherited behavior -

I am using multi-table inheritance for an object, and I want to select options for foreign key references to parent object The only rule is that the child applies the system schedule.models by importing event, rule class AirShowRule (rules):. "Airplane" (event =): station = models.ForeignKey (station) image = models.ImageField (upload_to = 'images / airshow'); " Now, in the admin, I only have AirShowRule, in the admin panel, I am only using AirShowRule. (S) to be an airshow option (want event). Do I have all the rules that are happening in the schedule.event system. I found in Django-Schedule In the structure of the classes I listed Seen, and you should add it: class airshow (event): ... your content ... Rule = models.ForeignKey (AirShowRule, Null = true, empty = true, verbose_name = "verbose NAME", help_text = "help text") that everything should be found directly ( changed from "Rule" to "AirShowRule" ...

Is it possible to generate django models from the database? -

I am roaming with Django and Django ORM at home, and I have to say, I think the ease of use One of the best in However, I was wondering if it is possible to use it in "reverse". What I really would like to do is generate the zango models from an existing database schema (a project that does not use a regiment and does not use the oldest). Is this possible? Update: Database Oracle in question Yes , inspectdb command: inspectdb detects the database The tables in the database are indicated- from the settings of DATABASE_NAME and output a Django model module (a .py file) for standard output. Use it if you have a legacy database with which you want to use the Django script database to inspect and will create a model for each table within it. As you can expect, the built-in model table will have an attribute for each field. Note that the Inspectorate has some special cases in its field-name output: [...]

mysql syntax error when dealing with negative numbers -

उपयोग किए गए MySQL सिंटैक्स मित्रा_स्थानों में प्रविष्ट करें (user_id, lat, long) VALUES ( '82441', '28 .665899 ',' -81.359756 ') MySQL त्रुटि लौट गई आपको अपने SQL सिंटैक्स में एक त्रुटि है; मैं नहीं कर रहा हूँ ('82441', '28 .6658 99 ',' -81.359756 ') मूल्यों के पास (' 82441 ', '28 .665899', '-81.359756') का उपयोग करने के लिए सही सिंटैक्स के लिए आपके MySQL सर्वर संस्करण से संबंधित मैनुअल की जांच करें I UPDATE इस साइट पर सिंटेक्स रंगा लंबे खड़े हो जाओ, यह मेरी समस्या होना चाहिए आपको (user_id, lat, long) से (user_id, lat, `long`) क्योंकि शब्द लंबे एक आरक्षित शब्द है। मैं बैकल्टी में अपने सभी फ़ील्ड नामों को लपेटने के लिए कोशिश करता हूँ (लेकिन हमेशा याद नहीं रखता) उस चीज़ के बारे में चिंता करने की आवश्यकता नहीं है।

java - why's this program giving a runtime error on jcreator but not on netbeans? -

This is my solution for the online judge of the area. It is running fine on Netbeans, but the judge rejecting my answer Is that it gives a runtime error. I tried it on JCreator and it says: Exception in thread "main" java.lang.NumberFormatException: for input string: "java.lang.NumberFormatException.forInputString (NumberFormatException. Java: 48) at java.lang.Integer.parseInt (integer.javascuite68) at java.lang.Integer.parseInt (Integer. Java: 497) Main. Main (Maine Java: 73) > I am not passing an empty string to parse, why is this? Code: import java.io. *; Import java.util. *; Class main {public static intelglobalTatan (int no) {intestrol = 0; Int evalThisNum = ++ num; While (true) {if (ezellin (virene nnn) break); EvalThisNum ++; } FoundPalin = evalThisNum; Returned Publicin; } Public static boolean ezelline (int oculum henum) {boolean estalin = falls; Int dig = 0; Int rev = 0; Int n = evalThisNum; While (evalThisNum> 0) {dig = evalThisNum% 10; Rev...

screen scraping - simplehtmldom php: How do you search for one thing or another -

I want to scrape some html with simplehtmldom in php. My tag is a bunch of tag containg I want an alternative between bgcolor = # ffffff and bgcolor = #cccccc There are some tags that have other BGolders. I want to get all the code in each tag, which is either bgcolor = # ffffff or bgcolor = # cccccc. I can not use just $ html-> '(tr') because there There are other tags that I do not want to find. Any help would be appreciated. You can load the DOM in the simplexml class and then use xpath, such as: $ Xml = simplexml_import_dom ($ simple_html_dom); $ Gift = $ xml - & gt; Xpath ('// [@ bgcolor = "#ffffff"] | // [@ bgcol = "#cccccc"]'); Maybe you can put a single set of brackets or a syntax, but I have to check twice. Update: Sorry, I thought you were talking about the DOM extension. I thought the simplest HTML, and it seems that its search feature is based on XPath. Why not: $ gift = $ html -> find ('[bgcolor = ...

Can I count elements using jQuery? -

I have a list in ul which is in an ASP repeater list overflow with a scrollbar Is set to and only shows 16 li s at a time, is there any jQuery math function that I want to select that "16" " li Allow and add a specific class to it? The last one will not be selected because the 16th div is not the last div Because it is in a repeater. Yes, it is called. Sample: $ ("ul li: nth-child (16n)") .addClass ("sixteenth");

Ultraviolet + Textmate for Ruby? How do I use this? -

OK, so I've taken my MacBook for 3 days. I installed textmate and saw the silhouette synthetic Highlighting called Ultraviolet. I have set the ultraviolet gem, but I do not get what it does. How do I use it? Or is it installed automatically? Is there an ultraviolet subject? What does UVNeyel do? The syntax highlighting engine used in the Ruby App. Combined with TextPoint, it allows you to highlight the same syntax that you are viewing in the text page such as Web page. Textmates can choose from ships with many topics (vibrant ink is perhaps the most popular), ultraviolet takes advantage of those topics.

android - Name of the spinner event's view -

इस दृश्य का नाम क्या है। उस स्क्रीन के प्रति" नाम "नहीं है - यह एक स्पिनर पर क्लिक करने का नतीजा है। आप हालांकि, एक अलर्टडायलॉग ।

about sigma delta filter bit-wdith -

I am working on the Sigma delta ADC project, and need to decide the bit-width of the digital filter. In the four stages of my filter, first is CIC and the bit width according to the OSR is 29 beats. My final filter output is only 24 bits, so this means that the other 3 FIR filters need to reduce the total to 5 bits. If my input is 4-bit signed and output 24 bits are signed, then how do OSR = 256, bit filter of each 3 filter be fixed? Any effect on the effect of the performance due to bit-width? I think your problem may also be domain-specific for the stack overflow. I do code myself based on DSP, and I have only the least understanding of what you are asking for. KVR is audio where you can get some help with this problem.

excel vba - Where to cancel Application.OnTime in VBA -

By using VBA in Excel 2003, I am trying to cancel an application. Onetime event uses the following code Taxes: Applications. Premature Time: = varNextRunTime, Process: = "Some Methods", Schedule: = Incorrect Where varNextRunTime runs a global variable that is due to it being next time. This code runs in the workbookbase close event handler, so the workbook always keeps running, which is my intention. However, if the user tries to close the workbook, but changes his mind and hits the cancel button when he is asked to save (yes, no, cancel), then The application. The onetime event has still been canceled. Before the decision to cancel before, close closure is always run, so anyone has any idea how can I just cancel the application. From time to time when the event workbook is closed? here are some ideas

perl - How do I get a list of all Unicode characters that have a given property? -

Without full range of Unicode characters without looping, how can I get a list of characters that have a property? ? Specifically, I want a list of all the characters in the point (i.e. those that match / \ d / ). I have seen, and it is useful for determining the qualities of a given character, but it does not seem that those inventory characters have an asset out of property. The list of unicode characters of each class is generated from the Unicode device when you compile Perl, and Typically stored in / usr / lib / perl For example, a list of Unicode characters that matches IsDigit (aka \ d) is stored in the / usr / lib / perl-YOURPERLVERSION / unicore / lib file IYERPERLVERSION / Unicore / lib / gc_sc / /gc_sc/Digit.pl

cakephp - how to get my application directory name -

My URL is .... I want to get "myApplication" What is the important word to get the value? I think you want: $ this- & Gt; Webroot or $ this-> Base or in your controller $ this-> Here refer to the definition of this variable.

c - 2D-float array values scan -

मैंने सी भाषा को निम्न प्रकार से उपयोग करके एक कोड लिखा है: main () {float एक्स [10] [10]; Int i, j; clrscr (); scanf ( "% d% d", & amp; मैं, & amp; जे); के लिए (i = 0; i & lt; 3; i ++) के लिए (जे = 0; जम्मू & lt; 3; j ++) scanf ("% f", & amp; x [i] [j]); ......} जब मैं इस कार्यक्रम को चलाता हूँ, तो त्रुटि के साथ एक असामान्य समाप्ति होती है जैसे 'फ़्लोटिंग प्वाइंट कन्वर्र्सन्स लिखित नहीं'। क्या आप मुझे बताएंगे कि क्या होता है मुझे गलत है? मेरे ओएस: विंडोज एक्सपी कंपाइलर: टर्बोसी टर्बो सी (और रीची के मूल पीडीपी -11 कंपाइलर) सहित छोटी मशीनों के लिए कुछ कंपाइलर, कुछ फ़्लोटिंग प्वाइंट सपोर्ट छोड़ देते हैं अगर ऐसा लगता है कि इसकी आवश्यकता नहीं होगी। विशेष रूप से, printf के non-floating-point संस्करणों और scanf% e,% f, और% g को नियंत्रित करने के लिए कोड को शामिल नहीं करके अंतरिक्ष को बचाने के लिए ऐसा प्रतीत होता है कि क्या बोल्लैण्ड के उत्परिवर्ती प्रोग्राम फ्लोटिंग पॉइंट का उपयोग अपर्याप्त है या नहीं, और प्रोग्रामर को कभी-क...

Android TextView on top of a View -

I have a view, when something happens, I would like a textView to pop up before I Long ago), but how can I not remember it ... My code is for visual element, when adding textView, I would like to show it at the top of the view. Extension of public class testing {public trial (reference reference) {super (reference); SetBackgroundColor (Color.RED); } TextView TV; Public Zero Ad-Test (Text to TV) {this.tv = tv; Tv.setVisibility (tv.VISIBLE); }} This solves someone strange Deletes the comment ...

wpf - Making a generic loading animation in mvvm -

I have an MVVM app that retrieves lots of data from the remote server. I want to add an animation, while data loading What is his best way of doing that? One way is a property in a visual model named ISLoadingData, after which you can use it by using the BooleanTwizibility Connor animation Host can control the visibility of the control property. Visibility = {binding path = isodding data, converter = {static resource boolean tuVisibility corp}} ControlTemplate for starting the storyboard with this control animation , When the visibility property is set to True. & lt; ControlTemplate.Triggers & gt; & Lt; Trigger Property = "Equible" value = "True" & gt; & Lt; Trigger.EnterActions & gt; & Lt; StartStoreboard x: Name = "Storyboard 0" Storyboard = "{Static Resource Animation}" /> & Lt; /Trigger.EnterActions> & Lt; / Catalyst & gt; & Lt; /ControlTemplate.Triggers> For a sample o...

c# - LINQ-to-objects index within a group + for different groupings (aka ROW_NUMBER with PARTITION BY equivalent) -

After using many Google search and code, I have been stumped on a complex C # LINQ-to-object problem that is in SQL I ROW_NUMBER () it's easy to solve ... divide by function and a subquery or two Here in the words, what I'm trying to do in the code I am removing duplicate documents from the underlying requirement list: First, a list group (Document.Title, Document.Sou RceId), thus assuming a (simplified) class definition: class document {string title; Int sorid; // sources are preferred (ID = 1 is better than ID = 2)} Assign an index to each document within that group (like index 0 == 1 From this document, the first document from this title, Index 1 = from this source, from this title to other documents, etc.) I would like the equivalent of ROW_NUMBER () in SQL! Now for the group (document title, index), where the index was counted in step # 2, return only one document: one with the lowest document. SourceId Step # 1 is easy (e.g. codepronet.blogspot.com/20...

postgresql - How To Do Percent/Total in SQL? -

मेरे पास विशिष्ट ठेकेदार / आदेश तालिकाएँ हैं और मैं कुल प्रतिशत प्रदर्शित करना चाहता हूं बिक्री के लिए एक विशेष ग्राहक जिम्मेदार है मैं इस तरह से सिस्टम में कुल आदेशों की संख्या प्राप्त कर सकता हूं: ऑर्डर से SELECT COUNT (order_id) और मैं कुल संख्या प्राप्त कर सकता हूँ जैसे ग्राहकों द्वारा किए गए आदेशों का: SELECT COUNT (order_id) आदेशों से WHERE cust_id = 541 मैं इन्हें एक ही क्वेरी में कैसे जोड़ सकता हूं कि किसी विशेष ग्राहक के लिए बिक्री का प्रतिशत देता है? धन्यवाद! माइस् SQL: SELECT ROUND (100.0 * (SUM) (IF (cust_id = 541, 1, 0)) / COUNT (आदेश_आईडी)), 1) आदेश से प्रतिशत_टाल के रूप में; संपादन मुझे लगता है कि यह मदद करता है अगर मुझे पोस्टग्रेज़ टैग पर गौर करना होता। मैंने सोचा कि यह एक MySQL प्रश्न था। PostgreSQL: का चयन करें राउंड (100.0 * (SUM (केस जब cust_id = 541 THEN 1 ELSE 0 END) / COUNT (order_id )), 1) के रूप में आदेश से प्रतिशत%; पीएस मेरा PostgreSQL जंग खाए है, इसलिए यदि MySQL क्वेरी PostgreSQL पर काम करता है तो मैं जानना चाहूंगा:)...

Using Maven in Hibernate Tutorial -

I have Maven installed and I'm trying to go through the hibernate tutorial. But how can I use this file: What should Maven do with it? Maven uses the project object model to describe the project. "post-text" itemprop = "text"> Includes definitions of dependencies and execution to use for a project, including running reports while building, and many other features In Maven 2 the model is defined in pom.xml (file in Maven 1 is called Project.xml). Maven expects to find pom.xml in the project's root directory (though it can be overridden). When you run a maven goal, the POM is parsed with pom.xml, Maven determines what dependencies and plugins are necessary, download them from the remote repository, then run the plug-in configured for the project. Are there. For a Jar project, running mvn install will be based on a series of operations by default. You can define additional tasks by adding the definition of palm's plugin and binding it in t...

PHP question pagination -

How would I do that the page I'm on will not be clickable? $ page = (isset ($ _GET ['page']) & amp; amp; and_numeric ($ _GET ['page'])? (Int) $ _GET [' Page ']: 1); $ Limit = ($ page - 1) * 15; $ Sql ​​= mysql_query ("SELECT * FROM log LIMIT $ limit, 15"); $ Totalres = mysql_result (mysql_query ("Select the total number of logs"), 0); $ Cache = roof ($ total / 15); ($ I = 1; $ i & lt; = $ totalpages; $ i ++) {$ Paginagan = "& Lt; a href = \" $ _ server [PHP_SELF]? Page = $ i \ "& gt; $ i & lt; / a & gt;"; } & Lt; P & gt; & Lt ;? Php echo $ pagination? & Gt; & Lt; / P & gt; if ranking ($ i == $ page) $ page . = "$ I"; Paging on other $ page = "& Lt; a href = \" $ _ server [PHP_SELF]? Page = $ i \ "> $ i & lt; / a>"

c# - Bread crumbs with url rewriting -

In the database I have a list of hierarchical lists of categories, so I have added a custom sitemap provider (StaticSiteMapProvider with this list) ) Now, the page that shows the article / ShowArticle.aspx? Id = "+ Eval (" ID ") can be rewritten: / id /article-title.aspx. So this is not physical existence. I want the following: When the selected page is displayed "Pieces of bread" (each article has a "category" property in which it is 1 lvl) category - without parent) Structure of categories for example: Home Product CDROM DVDRT Toshiba Support Hardware Software When an article ID = Xx, category = Toshiba, title = "Best Toshiba DVD" is opened, "Bread pieces Should have path in: Home | Products | DDRR | Toshiba | all Best Toshiba DVD How do I add something to my custom sitemap provider? I do not get any answer: ( I should probably do this :) instead of categories To build a site map, I must co-operate it for bo...

javascript - CSS / Jquery Effect - What is this? -

On this website: If you scroll to "what we do" and links you get a bubble popup display , Then nobody tells me how it is made? Thank you You see like the jQuery plugin for this kind of effect.

javascript - Dynamically loading css stylesheet doesn't work on IE -

I dynamically load a CSS stylesheet (with a little help from jQuery): Var head = document.getElementsByTagName ('head') [0]; $ (Document.createElement ('link')) .attr ({type: 'text / css', href: '../../mz/mz.css', rel: 'stylesheet'}) .appendTo (head ); It works fine in Firefox and Google Chrome, but not in IE Any help? Thanks Once IE has processed all the styles loaded with the page, another stylesheet The only reliable way to add is with document.createStyleSheet (url) See on CreateStyleSheet for some more details. url = 'style.css'; If (document.createStyleSheet) {document.createStyleSheet (url); } And {$ ('& lt; link rel = "stylesheet" type = "text / css" href = "' + url + '" />').appendTo('head'); }

c# - Bind to element's position relative to a parent in WPF -

To get the position of the sub-sub element relative to the container, I need something that TransformToAncestor does, however, move elements and sublettions Doing, changing the shape of the change, their layout etc. I need a way to keep the status up-to-date Like an incident, due to anything that affects my Transformoners operation. Or the property of an "absolute" dependency which I can tie Background: I am doing a type of workflow editor. The 'module' contains one or more seaports and lines that connect the module from the port to the port. The XAML structure looks like this: & lt; Canvas & gt; & Lt; Module left = "..." top = "..." width = "..." height = "..." & gt; & Lt; Grid & gt; & Lt; Otherelement & gt; & Lt; Somemorelayouting & gt; & Lt; Port name = "A" /> & Lt; PortName = "B" /> & Lt; / Somemorelayouting & gt; & Lt; / Other...

mapping - Converting from longitude\latitude to Cartesian coordinates -

I have some earth-centric coordinate points, which are given as latitude and longitude (). How can I convert them to the Cartesian coordinates (X, Y, Z) with origin in the center of the Earth? I have recently done something like "Harvison Formula" on WGS-84 data , Which is derived as "the method of Hawrance" with very satisfactory results. Yes, WGS-84 assumes that the Earth is an ellipse, but I believe that you get an average error of 0.5% using an approach like "Harsin Formula", which can be an acceptable amount error Is your case As long as you are not talking about the distance of some feet and still the earth is theoretically curved, you will also get some error ... If you check the more stringent WGS-84 compatible approach "Vincenti Formula " is needed. I understand where STAR is coming from, but good software engineering is often about the trade off, so it all depends on the accuracy of your Required for For example, "M...

drop down menu - How to use AJAX to populate state list depending on Country list? -

I have the following code that will change the state's dropdown list when you change the list of countries. How can I change this state's list only when country ID number 234 and 224 are selected? If another country is chosen, then it should be changed to this text input box & lt; Input type = "text" name = "ostestate" value = "" class = "text box" & gt; Form & lt; Form method = "post" name = "form1" & gt; & Lt; Select style = "background-color: #FFFF 0" name = "country" onchange = "getState (this.value)" & gt; & Lt; Options & gt; Select country & lt; / Options & gt; & Lt; Option value = "223" & gt; USA & lt; / Options & gt; & Lt; Option value = "224" & gt; Canada & lt; / Options & gt; & Lt; Option value = "225" & gt; England & lt; / Options & gt; & Lt;...

c++ - Unhandled Exceptions from Managed C# User Control used in MFC Dialog -

Our main application is built in MFC C ++, but we are trying to write new code in .NET , And a user has been created will be used on existing MFC dialogue. However, when an unexpected / uncontrolled exception is removed from user control, it crashes the MFC app (illegal session style), there is no merit to recover. I have added AppDomain currentDomain = AppDomain.CurrentDomain; CurrentDomain.UnhandledException + = new unrestricted expansion event handler (currentDomain_UnhandledException); Application.ThreadException + = New ThreadExpress Event Handler (Application_ThreadException); For NET user control creator, but it seems to catch nothing. Is there any way to add an event to the MFC to handle them? Quick Google does not return anything useful Thank you. Edit: Even then the way I want it is not able to solve it, the way to do it is the best , all the NIT codes, So there is no exception bubble. I asked this same question some time ago: What I've go...