Posts

Showing posts from June, 2013

iphone - How to add up a value when a button pressed -

The last time I asked when a button is pressed - (IBAction) AddTap: (id) this; Now call me tapCount ++; was used to use (tapacount is an int type variable) button was pressed to add 1 time. However, I think the value remains the same, no matter how many times I pressed it. I want to be a popcount 1 if I press the button once, and make it 2, if I press the button in detail: The pass player is a class named, which is called a member of the result of int takpcount and int When the button is pressed each time, a value will be added to the tapacount, and the value will be displayed at the end (When Game & Say) For now, whenever I want to check it A. I use NSLog the value remains the same. Player.h @class TappingViewController; @ Interface player: NSBK {NSSTING * name; Int Takpank; Full result; } @property (nanatomic, assign) NSString * name; @protty (nanatomic, assign) int tapacount; @property (nonatomic, assigned) integer results; @end TappingViewControl...

java - Write proxy/wrapper class for own service in jersey -

I want to use a full rest of the service with basic http auth running. To solve this problem, I have thought about various ways Someone has suggested to remove it, but when pressing a credential box There is no way for javascript browser clients. Authenticate the header with a WWW-one filter (I do not think this is a clear perspective) I do not re-use my app to use the original http at least I can say a proxy that talks to my regular service The last approach I like best I have my regular rest interface, but with those interfaces The option of using Ntrfes are not flexible, which moreover I could unsupported HTTP requests by some browsers later. This idea has a / api / proxy / {request} path that is a proxy on / API / {request} and a Facebook-graph - such as JSON query {data: {data}, error: {Error}} This proxy class is located @ path ("proxy") public class ProxyResource {@GET () @ path ("{url: [ A-zA-Z /] *} ") public string received (@contact...

html - Putting mobile Google into an iframe does not work -

Google's mobile view behind the following link:. I have an iRame on my website, but it does not work. & lt; Iframe id = "google_search" src = "http://m.google.at/search?hl=de&safe = on & amp; q = stackoverflow" style = "width: 400px; height: 600px; overflow: scroll; Border: 1px solid black; "& gt; & Lt; / Iframe & gt; Whatever I get is an Ami IFrame, why am I? I suspect that Google is sending x-frames-option Set the header set to Decline . This page prevents the page from loading in new versions of IE8 + and Firefox, Opera and Chrome (the exact version number prevents me at this time). This is usually done to deal with click jacking in IEBlog, there is a great article on it:

Library for reservation scheduling for accommodation on an ASP.NET web site -

I have a library for a nice UX feature to display a reservation calendar for a small bed and breakfast location I'm looking for I am showing the high and low seasons, showing the original reservation of the current reservation and showing a more accurate reservation details to a 'month' view and possibly want to be able to show a calendar with two scenes to allow. To submit a reservation request using a button or context menu for a user. I am in the very early part of the life cycle for this project and am looking for suggestions instead of some solutions, but libraries and components are out there that I can see and prepare a shortlist from I can do? For simplicity and speed of execution, I will consider telereck controls if you implement it in Silverlight Calendar / Schedule control gives you a lot of what you are asking, in fact: They also have configurable controls for NAT and NAT. As well as Javascript: If you want a solution that does not require integr...

sharepoint 2010 - How to get SPWebApplication for current request in HttpModule? -

How do I get SPW applications for the current request from the HTT module? Try to create your own SSPET Taxes (SPS ite site = new SPS ite (app.Context.Request.Url.ToString ())) // // may need to trim the URL site. Web Application}

C++, fastest method of getting angle into a specified range? -

What is the fastest way to obtain a variable in the given range? For example, make sure an angle "double alpha" is always inside (0.0, 2 * Pi). I get two solutions, one of them is very slow and the other seems to be complicated so easy should a better way be a better way or not? // is concise but very slow (hence it's none); Return Asin (sin (alpha)); // very fast, but looks ugly (two while loops to change a variable! Come!) While (alpha = 0.0) {alpha + = 2.0 * M_PI; } While (alpha> = 2.0 * M_PI) {alpha - = 2.0 * M_PI; } Return alpha; Instead of applying it by hand, I suggest that you fmod Function family: which actually does this you still have to take into account the negative consequences, though: alpha = FMOD (alpha, 2.0 * mopi); If (alpha & lt; 0.0) alpha + = 2.0 * M_PI; Return alpha;

.net - Performance diff between Target="someType" and Target="{x:Type someType}" -

संभव डुप्लिकेट: मैं देख सकता हूं कि सेट प्रकार के ये अलग-अलग तरीकों मूल रूप से समान हैं। लेकिन मैं सोच रहा था कि क्या कोई निष्पादन प्रभाव है क्योंकि मुझे लगता है कि {x: type} एक मार्कअप ऑब्जेक्ट को इन्स्तांत करेगा। मेरा सुझाव था कि एक कम वस्तु बनाने के लिए प्रदर्शन के लिए फायदेमंद होने वाला है। हालांकि, इस मामले में, प्रदर्शन का लाभ इतना छोटा हो सकता है कि आप इसके बजाय अपने कोड की पठनीयता पर विचार कर रहे हैं। मैं हमेशा {x: typeType type} का उपयोग करता हूं यह स्पष्ट करता है कि यह एक प्रकार है जिसके बारे में मैं बात कर रहा हूं। और जब मैं चीजों को बाद में बदलता हूं, तो मैं हमेशा {x: type पर खोज कर सकता हूं।

PHP COM Component. How to use it to get the generated HTML by the Browser? -

I need to parse the webpage that is generated by javascript. I'm checking PHP COM component and I think what I need to get the HTML generated by this browser My problem is how can I not use the HTML generated by the browser & lt ;? Php $ browser = new COM ("InternetExplorer.Application"); $ Browser- & gt; Navigate ("http://www.yahoo.com"); $ Browser-> visible = true; $ Browser- & gt; Width = 700; $ Browser- & gt; Height = 380; ? & Gt; I am able to open this browser. Now ... how can I go to the link and save the HTML generated by the browser? Can anyone give me a clue on this? Best regards, I think the $ browser- & Gt; The document will contain the page in ; Comment @Andrew left Note that it looks like you can see the manual for the applicable object for questions like this.

php - Display all records from db with empty form fields -

Is it possible to get all the forms from the database when you do not enter any field in the form In some way like this, in some sort of conditional query, I query a query $, which gives me some data after filling out the form but I need an evet to display all the data from the database when working in the country and country Are empty, there are also two other date fields, some time interval code Filter results in: ... $ country = $ _GET ['country']; $ Work = $ _GET ['work']; If ($ country == 0 and $ work == 0) echo $ query1; And $ query; $ Query1 = "SELECT ...." $ query = "SELECT ...." ..... thanks Edit & gt; Hi, I've tried and all this data witch fixes. _But I have an error now: when I fill out the field field the question was empty. Code like this: if (empty ($ country) and below ($ work)) {$ query1 = "SELECT line_number, country, project_type, code, start_date, and_date, work, Start with the name ENG \ "$ sta...

Flash Builder: how to get flex project framework into ActionScript project? -

If I am creating a new flex project with FlashBlender, then these are the libraries that are included via Flex SDK by default: http://neo.cycovery.com/flex_problem4.gif If I create an Action Script project, then the Flex SDK framework is exactly the same The path involves very few SCC files: http://neo.cycovery.com/flex_problem5.gif I have a How to get the full flex framework in the project script? If I try to add aircore.swc manually for example, then I get a details processing path location type An internal build error has occurred is. For more information, right-click MVP Unknown Flex Problem Error Erm, you're not. Flex is a framework that brings more functionality to the table, which can not understand the action script (and if I remember correctly, you will be on the basis of the project, while Flex's UIcomplant is based). You can load a Flex application in the ActionScript using Loader only. Can I ask if you want Flex's capabilities, why a...

php - How to check if a site has rss feeds -

Suppose I would like to create a webpage that takes the domain name of a website as input and checks if the site has RSS feeds or not. . And if that site has RSS feeds, then it goes to the next page or in other words, just check whether the given domain name has this tag or not- & lt ; Link rel = "alternate" type = "application / rss + xml" title = "something" Href = "http: //www.example.com/feed1.xml?type=/ How do I do this by using php or javascript? Because of, you do not implement javascript You will need PHP, and Xpath html> gtc: head> gt; [@ rel = 'optional'] .

java - Servlet 3.0 MVC frameworks -

With the adoption of servlet3.0, it is seeing many new features and many articles on Blu-Ray, but in reality, Any solid MVC framework that is targeted for new specification? JSF 2.1 Some service 3.0 uses specific attributes (and therefore is not compatible with Servlet 2.5 ). Other MVC frameworks are not targeted servlet 3.0 yet.

tortoisesvn - Could not read chunk size. Error in SVN -

I have retrieved the SVN repository from a crashed PC and now I can file a checkout with a few directories, But at a place during checkout it says: error: '/ svn / reptest /! Report of Svn / vcc / default: The size of the segment could not be read: Secure connection disconnect (https: // mypc: 8443) Can someone help me, that repository How to fix? Thanks! I have had a single error while trying to update the checkout in the latest amendment about something negligible It was revealed in a special file that was the issue of this issue. For example: Root - A - Email Inf Folder AH - Other File In Folder AH - B - Profile Infobar BH - C - Effail Infollow CH The structure was over with the repo, affilinfolder ah was a problem file. I came to this conclusion because I could and do not svn update folders in B and C but on the root > Or drilling down the folder A , I can update AnotherFileInFolderA.h , but the problem is not one. However, with that informa...

learn python the hard way exercise 41 help -

O people, I do not understand anything at the runner up or afterwards. Thanks Exit System Import Random Exit Random DF Death (): quips = ['You died, you suck a little. ',' Your mother will be proud of you, if she is smart. '' There Lusr 'is a little puppy to me which is better for you' Print Quit [Randint 0, len (thing) -1)] exit (1) Diif princess _ Liws_ here (): print " You see a beautiful princess with a bright crown. ' Print 'He gives you some cakes.' Eat_it = raw_input ('& gt;') If eat_it == 'eat it': Print 'you blast like a pins full of fleets.' The prints' Princess cackles and frogs eats wow! 'Return' death 'Alif eating IIT ==' Do not eat it ': Print' He throws the cake for you and it is cut into your head 'print', the last thing is that he is eating his torso Wow! 'Return' Death 'Elif's eating IIT ==' Eat him ':' Print 'he screams...

Rails 3 - Form submission issues -

I'm having trouble submitting from my show.html .erb page. It is a nested form that is / events / 1 / Ticket builder / 1 to the same page, however, when I submit the form, IGAT and routing error (no routes match "/ event / 1 / ticket builder / 1") also go to that URL Works fine straight from # show.html ARB & lt;% = form_for, section, url = & gt; Event_ticketbuilder_path (@event) do S | & Gt%; & Lt;% = s.text_field (: name)% & gt; & Lt;% = submit_tag ("Add section")%> & Lt;% end% & gt; #ticketbuilder_controller.rb class ticketbilder control & lt; ApplicationController def Show @Event = Event.find (params [: event_id]) SEsection = Make section.new end DEF @event = Event.new (params [: event_id]) @section = @ event.sections.build (params [: Name]) if @ section.save = section = section.New and render: action => : Show End End When the link is directly linked to the page, it succeeds and I get "event / 1 / ...

debugging - Extremely simple foreach and if - can't figure out why it isn't working - PHP -

I have a million and if foreach in scripts from before, but this one I can not seem to know. It just is not working ...? Perhaps this is one of those things, if you look at it 100 times you will not see the error and the second set of eyes will be required. Ok, so here's the code: The personal function can be removed by resultUUID {foreach ($ this-> search result as $ key => $ value } {If (! $ $- [$ [- key]) Search [Reset [$ of] ['authorUID'] == $ this- & gt; Search UID); } Return; } Simply put, this forum is a part of the search program, which attempts to remove search results based on the username that they can filter. The problem is, this is not filtering, so I went to the examination mode and adjusted the code to see what was happening: remove the private functionBuyBug () {foreach ($ this - & gt; searchResults $ key = & gt; as $ value) {var_dump ($ this-> Search [result] [$ key] ['authorUID']); Echo ''; Var_dump ($ this...

objective c - Error switching views in AppDelegate -

I'm making an iPhone app with a login facility. After logging in, I have written it in the database. When the user opens the app, I want to know whether to go to the app or not, or show a UIView for them to login. I have some code, but it crashes here: - (zero) applicationdeffish: Launching: (UI application *) app {sleep (5); // Configure and Show Window [Add WindowSubview: [Navigation Controller View]]; [Window-making and knowledgeable]; // [app set: Starts Bars Style: Uitatus Bars Style Blake Opaque]; Int Check Login Quote = 0; NSArray * checkLoginInfo = [database executeQuery: @ "Log In Selection * where id! = '' Or email! = '' Or password! = ''"];]; (NSDictionary * checkLoginRow checkLoginInfo) {checkLoginCount ++; } NSLog (@ "Alsfuffled Foxjeels de FJcas% D", check logiccards); If (CheckOgnCount == 0) {SplashPageVient Controller * Scravveno = [[SplashPage Vuii Controller Alok] Init Whitneynam: @ "SplashPage" Bundle: ...

iphone - How to set up a clipping rectangle or area -

How to set up, modify, and clear a clipping rectangle inside an iOS draw, pictures, etc. . Is it possible to use a more complex clipping area that is a composite of a group of rectangles and boards? You can set a clipping area with arbitrary routes, not limited to rectangles. Followers are a few ways to do this: You can attract an arbitrary route and set a clipping area with it. For example: CGContextBeginPath (reference); // Drag a route here CGContextClosePath (reference); CGContextClip (reference); // The following drawing will be deducted on the reference If you want to use a mask image to set a clipping area, then use the CGContextClipToMask method. See Apple's 'Quartzdmo' sample project for more uses.

user interface - Good style in GUI Development -

Now I am developing some standalone applications with GUI. But if I do not have enough experience, then what is the good style to make the module, flexible UI Make the tree of all components in one place . or Parents know only about their children Thank you. Not deeper than one level Do not mention. Look at the Swing library in Java In it are object-oriented structures, which are defined with well-documented message passing through the object.

overloading every function operator for a class in matlab -

I am creating a square, which is quite complex for all practical purposes (though it looks like what it looks like), ho Thought as a matlab real number. In the class, I can surcharge a large number of matlab operators like Plus, Amver, etc. This is probably impossible, but how would I go about overloading any of my classes? In other words, suppose I have an arbitrary task that takes the actual numbers and outputs the real numbers, and X says that my class is an example. I would like f (x) to correctly interpret the matlab (matbab), (I have a natural way of taking a function pointer and implementing it in my class, which I will do in the code). / P> As issues, I can see them: There is no way of seeing matlab that a function takes the form of the actual number F as the input but I want that user to have my function Do not I think anybody? I do not think it is possible, but if it was, then it would be horrible. ps: I know that maybe it can be found around by making a met...

html - jquery fetching blank value from input field -

I have a form where there is 2 inputs and 1 texeter, when a user submits the form, the default behavior of the form The AJAX stopped to make way for the request. Here's the code I'm using. $ (document) .ready (function () {$ ('input # submit') (function () {$ name = $ ('input # name'). Val ( ); Alert ($ name); return false;});); And here is my html form & lt; Form action = "" method = "post" id = "mail-form" & gt; & Lt; Label = "name" & gt; Name * & lt; / Label & gt; & Lt; Br / & gt; & Lt; Input type = "text" name = "name" id = "name" /> gt; & Lt; Br / & gt; & Lt; Label = "email" & gt; Email * & lt; / Label & gt; & Lt; Br / & gt; & Lt; Input type = "text" name = "email" id = "email" /> gt; & Lt; Br / & gt; & Lt; Label = "message" & gt; Mes...

Blocker Bug with Aloha Editor / ExtJS, We Need Your Help -

We have a blocker bug with Aloha editor, which is holding back the 0.10 release. I was doing it all day, and could not understand it. So I'm opening it to you. Check the error report here: Thank you. I will reward a 200 reputation to solve it as well. It seems as if the button is trying to get started twice. If you put a breakpoint at floatingmenu.js # 436, then scopeObject.buttons.length & gt; 6 You can try adding another bold button to the button group. It succeeds; I can only assume that this is not considered. The IDs for two bold buttons are similar to the suspicion. I have not started it down twice, but hopefully this is a start.

php - cURL WRITEFUNCTION callback with anonymous function and closures -

I'm using the option of curls so take care to specify a callback when data CRL makes the request. $ serverid = 5; $ Ch = curl_init (); Curl_setopt ($ c, CURLOPT_URL, 'http://www.whatever.com'); Curl_setopt ($ ch, CURLOPT_WRITEFUNCTION, function ($ ch, $ string) {Read read callback ($ ch, $ string, $ serverid);}); Curl_exec ($ ch); Read the functionbackback ($ ch, $ string, $ serverid) {resonant "server #", $ serverid, "|", $ string; Return Strangel ($ string); } I I would like to use an unknown function to call your own function that actuall work ( readCallback () ) so that Can be able to associate with server ID ( $ serverid ). How can I use Closure / can do so when my callback mismatch function may be affected, was known unknown function that is basically defined by $ serverid = 5 and ReadCallback () is appropriate? I will eventually use it with L and a common callback, this is the reason why I need to call my callback with an unknown...

Rails - ActionMailer sometimes shows attachments before the email content? -

I can do it so ActionMailer always shows attachments under the message: HTML, TXT, attachments .... the problem is an attachment is a text file: ---- == _ mimepart_4d8f976d6359a_4f0d15a519e35138763f4 Date: Sun, 27 March 2011 13:00:45 -0700 Maim- Version: 1.0 Content-Type: Text / Plain; Charset = UTF-8 Content-Transfer-Encoding: base64 Content division: attachment; File name = x00_129999 People 14 message content-id: & lt; 4d8f976d49c72_4f0d15a519e351387611f@रैल्गुन64.53331.मेल&गत; Thank you I had the same problem, and in my case The solution was to swap attachments and mail lines first, then mail it again. Rail 3 wrong def from Pdf_email (e-mail, subject, Peedifnam, Pdfpath) Mail (= & Gt; Email ,: Subject => Subject) Attachment [pdfname] = File. Reid (pdfpath) Good def pdf_email (email, topic, pdfname, pdfpath) attachment [pdfname] = File.read (pdfpath) Mail (: = & gt; Email ,: Subject => Subject) End

vb.net - How to specify a path with spaces for StreamWriter -

VB.Net में, मैं एक मार्ग के साथ StreamWriter कन्स्ट्रक्टर कैसे प्रदान करूं जिसमें रिक्त स्थान शामिल है? StreamWriter ("" "C: \ users \ public \ public users \ file.txt" "") काम नहीं करता। आप स्ट्रीमरीडर कन्स्ट्रक्टर को पास करने वाली स्ट्रिंग के आसपास उद्धरण नहीं डालते हैं उद्धरण केवल तभी उपयोग किए जाते हैं जब आप उपयोग करते हैं, कहते हैं, कमांड लाइन या कुछ और जो तर्क के बीच विभाजक के रूप में रिक्त स्थान का उपयोग करता है प्रोग्राम को एक एम्बेडेड स्पेस के साथ एक तर्क को पहचानने के लिए उन दोहरे उद्धरणों की आवश्यकता होती है। यहां आवश्यक नहीं है, कोई अस्पष्टता नहीं है क्योंकि तर्क केवल एक फ़ाइल का पथ लेता है उस नियम का एकमात्र अपवाद है जो मुझे पता है कि ProcessStartInfo.Arguments गुण है। इसलिए, बस स्ट्रिंग के आसपास सिंगल डबल कोट्स डाल, सिंटैक्स जिसे कंपाइलर की आवश्यकता है। आपकी वास्तविक समस्या फ़ोल्डर का नाम है विंडोज एक्सप्लोरर c: \ users \ public में फ़ोल्डर्स के लिए अलग नाम दिखाता है उदाहरण के लिए c: \ users \ public \ वीडियो एक्सप्लोरर विंडो म...

Wordpress - Restrict access to plugin only -

I have created a plugin using Wordpress and I want to create a user account which only has access to this plugin. In other words when the user logs in to the WordPress admin panel, this plugin is the only thing they see. You can create a menu of plugins available for user level capability. As you can, add_options_page ('My plugin options', 'my plugin', 'management_option', 'mine-unique-identifier', 'my_plugin_options'); 'Manage_options' is an administrator's ability to 'read' the capability of a customer, so replace 'management_pop' with 'reading' and give you access to the customer. This works not only with add_option_page, but also works with add_menu_page, add_plugins_page, etc. Here is a complete list.

A very Strange SQL of PostgreSQL -

Our PostgreSQL server is a strange SQL in version 8.4. It looks like a system SQL which is excited by PG server! I do not have any information about this SQL? Does anyone know this? - Select the weird SQL NULL TABLE_CAT, n.nspname as TABLE_SCHEM, in the form of c.relname TABLE_NAME, the form of the form n.nspname In ~ ^ ^ pg_ 'or N. Nspname = 'INFORMATION_SCHEMA' when true when n.nspname = 'pg_catalog' or n.nspname = 'INFORMATION_SCHEMA' then case c.relkind when 'r' then 'system table' when 'v' then 'system view' when 'I' then 'system index' balance zero end when n.nspname = 'pg_toast' then case c.relkind when 'r' then 'system toast table' when 'i' then 'system toast index' balance zero end and case c . When 'R' then 'floating table' when 'I' then 'temporary index' balance zero end END when false then case c.relkind when 'r...

Arbitrary length bytes to int builtin in Python -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब मैं एक के लिए देख रहा हूँ फ़ंक्शन जो एक मनमानी लम्बाई बाइट ऑब्जेक्ट लेता है, और इसे एक int में बदल देता है जाहिर है अंत्यतापन इस फ़ंक्शन के लिए एक आवश्यक पैरामीटर है। मुझे पूरा यकीन है कि मैं बाइट या int पर एक बिल्टिन का सामना करना पड़ा, लेकिन नहीं मिल सकता यह अब और नहीं struct के उपयोग से संबंधित समान प्रश्नों पर बहुत सारे उत्तर दिए गए हैं, और व्यक्तिगत बाइट मूल्यों को मैन्युअलाइज़ करते हुए क्या ऐसा कोई अंतर्निर्मित स्रोत है जो सी-जैसे मान्यताओं / मॉड्यूल का उपयोग किए बिना यह रूपांतरण करता है? def int (बाइट्स, 'छोटा') - & gt; 3.2 & gt; gt "post-text" itemprop = "text"> ; & gt; Int.from_bytes (b '\ xFF \ x00', 'थोड़ा') 255>> gt; & gt; Int.from_bytes (b '\ xFF \ x00', 'बड़ा') 65280

sql - How can like 'z%' in eclipse query when 'z' is my parameter -

For example Choose the custname name from the customer, where '% john%' as the custname of My parameter is the correct name, so in the Query Community Birt report, I use custname from the customer where '%?%' Used as the custName is; But this is a work to do, how can I make this possible? I need help. Can anyone solve this matter? You enter the wildcard character ( % ) in the parameter value. For example - parameter value = "% JOI %%" WHOLE custname name from the customer, select the custName?

file - How do you read binary data in C# .NET and then convert it to a string? -

As opposed to using StreamReader / Filestream I want to read binary data from files And let's say that data in a text box is not clear what you are actually trying to achieve here: Read the random file and chain of hex values Display as (Bin in Visual Studio or any other binary file viewer Mr. file footage was similar) covering the indifference of North Jeff M. Read and write your own objects using binary serialization Check the serialization watchthrough on MSDN - and read on Binterformer Objects. Reading any one such binary format (such as JPEG, PNG, Zip, PDF). In this case, you should know the file structure (you can often get file format documentation) and use BinaryReader to read individual sections of the file. It is easy to find existing libraries for most common file formats, which allow such files to be read in a more solid way. The basic usage model of MSDN article is also on binary reader.

c# - Windows 7 Mobile Broadband API - Crash with no exception -

Exits with the exception of the following code before exiting: private void Form 1_load (object sender, EventArgs e) {MbnConnectionManager connectionManager = New MbnConnectionManager (); IMbnConnectionManager ConnectionMeager interface = (IMbnConnectionManager) connectionManager; IMbnConnection [] Connection = (IMbnConnection []) connectionManagerInterface.GetConnections (); (IMbnConnectionProfileManager) connectionProfile; MbnApi.MbnInterfaceManager interfaceManager = New MbnInterfaceManager (); MbnApi.IMbnInterfaceManager interfaceManagerInterface = (IMbnInterfaceManager) Interface Manager; IMBN interface [] Interface = InterfaceManagerInterface.GetInterface () IMbnInterface [] as; Foreign exchange (IMBN interface MBN interface in interface) {MBN_ PROVIDER HOMEPRODUCTOR = MBN interface.GetHomeProvider (outside homeprint); }} This line is about to crash - MBN_ PROVIDER home provider = mbnInterface.GetHomeProvider (outside the homeprint); Why is it that there is any wa...

javascript - Creating a floating box which stays within a div -

I'm trying to create a div 'floator' which works like a fixed divis scrolling), but when It rotates the boundaries of the divis, then it becomes stationary. When the scrollbar is at the top, then the div should be placed in that compartment in the 100 pixels from the top) and when the scrollbar reaches the bottom, then it will allow Flater to contain the container Should stop from going out The height of the floater will be fixed, but the height of the container will be dynamic. I have seen all such places, but I can not figure out how to find a good example for this. If possible, I would like to avoid jQuery, because I think it only requires a few simple javascript, so it can be determined that it is in the current position relative to that div . Thank you. OK, there is a complete solution here I have tested it only in Firefox and IE, but it Should work on the board (I think) It is directly Javascript and the use of jQuery is not The first JS function en...

browser - CSS borders style INSET or GROOVE look very different from IE9 FF4 or Safari5 or Chrome2 -

Sorry to be Nitwit, but I'm getting really very different results when trying to get the scene from different browsers. {border: 5px drain # A 000; When using)} or {border: 5px inset # A00; } The firefox 3.6 / 4.0 is the one that I want and which I think is a right brown or INSET rendering. I look very different to all others, solid or outset is obvious. There is no real exact definition, just as it is a wonderful party for developers in the browser, each one has its own interpretation of INSET and gray style. Is there any way I can get ridiculous differences in the present which is a good idea of ​​me which can be seen in the same way in big browsers? I am not afraid to use some other creative CSS3 stuff, if I only know what can be used then any thoughts are welcome and special Code from Firefox / WebKit / IE / Opera, according to the pattern of the pattern - which is, the border-left and A dark color outside the border-top and under the border-border and th...

vba - Creating a Macro in Excel which executes the other Macro every 2 seconds -

I have a macro called UpdateMacro that updates my database from my Excel I want to create a macro called repeatmacro , where it executes UpdateMacro every 2 seconds and provides only to provide start and stop buttons Go Repeat Macro . How can this be done? applications for Google example To clear a predetermined process, you have to save the time at which it was determined) such as DtNextRunTime above), then use: Applications. On Here is a sample VB module that you are going to start with startshield / stopshield: Here is a sample VB module that you are going to start with: Start Private m_dtScheduledTime as private m_lDelaySeconds as long Private m_bIs Scheduled Boolean Private Sub-Door (as) m_bIsScheduled = False '... Do Your Job' Once Again Start Starting StartSearch m_lDelaySeconds, " Doverker "And Sub Public Sub Start Shadule (By Val Delay Seconds Long) StopSedule M_LadyKScand = Dellacondus M_DTS ScheduledTem = Now + TimerCeri...

What's the best way to programmatically detect the iPad 2's graphics hardware? -

My app needs to run a separate code (big texture) on iPad 2. How do I find the programmatics of graphics hardware faster? The code should be future proof (i.e. it detects fast graphics hardware on iPad 3 or any other future iOS devices). Maybe you can go with framerate, if it gets too large, then small texture Take it, if it is above 100 fps, take big size.

ios - Does Simulator Play Video? -

I want to add a splash screen on my application which will play a video. Can I test it on a simulator? Any help regarding playing video will be appreciated. And you can help ... the simulator runs the video .. but I do not think you You can play video as a splash screen.

c++ - How can I get the enemies to move? -

Hello I'm trying to move the enemies left and right, as they are sliding backwards and I know that this can be done with the following code: slide + = slide_iCar; If (abs (slides)> 30) slide_incr = -slide_incr; However this is no use for me because I need to set a boolean, so I can cycle through the frame when the enemy is getting correct or left Can i Ive tried follow-up code with no luck: if (abdomen) 30) {eSlide_incr = -eSlide_incr; } How can I apply it but any thoughts? Thank you If you are sliding forward or backward, then you want to keep the hysteresis status. Try mixing the abs () function, try something on the lines of the boundary being checked: islide + eslide_icaster; If (stomach (eslied)> = 30) {eSlide_incr = -eSlide_incr; }

jQuery stop(); question -

Added true); The amount of animation to stop but when you move the mouse fast on the object it sounds too bad that I have a similar effect on the thumbnail (hover) on my current code (with jquery easing plugin): $ (".dummy_product_x1"). Hover ( function () {$ (this). Children ('.productdescription'). Stop (true, true). Slip down ({Duration: 500, easy: 'easyinqubic' , Full: function () {}}}}, function () {$ (this). Stop (true, true). Slipup ({duration: 500, ease: 'easy otobic', complete: work} }}};}); thanks $ (". Productive description ") .hor (function (e) {e.stopPropagation (); // what you want}); You have to catch and then stop the incident;)

linux - Run an external program with php -

I have a problem with php! I want to run an external program with php. This program works in the command line and on the Linux platform. So this work should be just fine But I try more time and I can not run it. so what's wrong ! This is a link to the program: and it is fine in the command line and not the case in PHP: Out and this is php code: I hope to solve this PB. Thanks in advance .. Update Please upload the executable program and Hopwood.fet file to try it. This is a link: Try to do this in full path: / path / to / install / fet - -inputfile = /path/to/your/Hopwood.fet --outputdir = / path / to / your / out so that you can finish execution: Exec ("/ path / to / install / fet --inputfile = / path / to / your / hopwood.fet --outputdir = / path / to / your / out"); In addition, make sure that your current process is / path / to / your / out UPDATE exec ("/ path / to / install / fet --inputfile = / path / to / your / Hopwo...

In Android, how to switch the page -

संभव डुप्लिकेट: मेरे दो वर्ग हैं, मैं एक पृष्ठ से दूसरे पेज पर कैसे स्विच कर सकता / सकती हूं? दोनों वर्गों के पास है गतिविधि को बढ़ाएं, और AndroidManifest.xml में परिभाषित किया जा सकता है Class2 से Class2 से शुरू करने के लिए यह करें: आशय I = नया आशय (कक्षा 1। इस, कक्षा 2। वर्ग) ; startActivity (i); AndroidManifest.xml: & lt; गतिविधि एंड्रॉइड: name = "Class1" एंड्रॉइड: label = "Class1" & gt; & LT; आशय-फ़िल्टर & gt; & Lt; एक्शन एंड्रॉइड: name = "android.intent.action.MAIN" / & gt; & Lt; श्रेणी android: name = "android.intent.category.LAUNCHER" / & gt; & Lt; / आशय-फ़िल्टर & gt; & Lt; / गतिविधि & gt; & Lt; गतिविधि एंड्रॉइड: name = "Class2" android: label = "Class2" & gt; & lt; / गतिविधि & gt;

android - Is there a way to tell if the soft-keyboard is shown? -

Is there any way to say whether the Softkeyboard is shown in any activity? I tried InputMethodManager Manager = (InputMethodManager) getSystemService (getApplicationContext (.) INPUT_METHOD_SERVICE); Manager.isActive (v) but isActive lies before the keyboard is shown for the first time only, but if KB appears and then dismissed , = "text" itemprop = "text" > According to this You can not be detected whether a soft keyboard has been shown or not, but you can learn indirectly that knowing the soft key board has shown that your View change shape. Imagine that you have ListView and a EditText below, you you ListView The subclass is required to be applied, then it has its list activation or activity or view . Public category threadwid list view [public threadview (reference reference T, AttributeSet attributeSet) {super (context, attribute set); } @ Ivoride Secure Zero Size Change (Int x New, Int y New, Int Xald, Int y Old...

string - detect the first character in a variable c# -

I have a program that reads serial information from a device and it works fine, but I do something like that Want to If doing something (first character = R) (first character = T) do something else I hope this makes sense. Actually I have only one way to find the first letter of one variable, then remove that character from the variable. Thanks Say we're talking about a string : string input = GetInput (); String balance = input Asbestring (1); // Get the string without the first character switch (input [0]) {case 'R': {DoSomething (the rest); break; } Case 'T': {Dosoming Else (the rest); break; } // More case segments follow the default here: {break; }}

javascript - How do i disable a submit button when checkbox is uncheck? -

Do I have any ideas that can not help in disabling the submit button any ideas? & lt; Input type = "checkbox" check = "checked" id = "check" & gt; & Lt; A href = "#" & gt; Terms and Conditions & lt; / A & gt; & Lt; Input type = "submit" id = "postme" value = "submit" & gt; $ ('#cch'). Click (function () ($ (this ($ (checked) == incorrect) {$ ('# postme'). Attr ("disabled", "disabled");} and {$ ('# post' ) Removed attribute ('disabled');}}); Checked should be checked and not the method. Updated Bella: $ ('#cch') Click (function } {If ($ (this) .attr ('checked') == incorrect) {$ ('# postme') etter ("disabled", "disabled");} and {$ ('# postmay'). Gone at ('disabled');}}); edit Remember that The code should be wrapped inside $ .dir file. Or enter it in...

java - JMS like queue implementation using Scala -

Is it possible to implement the JMS message queue in Scala using the Akka framework? It looks like this: since version 0.7 , Akaka provides a new feature that allows actors to send and receive a great type of protocol and APIs in addition to the original Scala Actor API, the actor now has a large number of protocols and APIs such as HTTP, SOAP, TCP, FTP, Messages coming with SMTP or other systems on JMS Currently, around 80 protocols and APIs are supported to refer to some of the donations. This new feature is provided by Akka's Camel module. (my emphasis)

c - Parsing user input using time_t -

I think, if the user enters in t = 2.5 , then i will get 2 and 0.5 Separate 2 different variables but I am unable to do this. Here the code is: $ export LT_LEAK_START = 1.5 $ echo $ LT_LEAK_START 1.5 #include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; # Include & lt; Time.h> Int main () {Double D; Time_t; Long NSE; D = Stroke (getenv ("LT_LEAK_START"), NULL); T = (Time_T) d; Nsec = D (double) ((time_t) d); Remove partial part as // time_t is not always complete Printf ("d =% lf \ n", d); Printf ("t =% u, nsec =% f \ n", d, nsec); } Output is: # ./a.out d = 1.500000 t = 0, nsec = 0.000000 Your output is broken. You are actually writing the value of d in the following code twice: nsec = d- (double) ((time_t) d); Remove partial part as // time_t is not always complete Printf ("d =% lf \ n", d); Printf ("t =% u, nsec =% f \ n", d, nsec); If you have written it: nsec = d- (doubl...

.net - type error in EF 4.1 -

I have created a unit and it has a type int int when I run the project and use this unit I get the following error: The 'id' property on 'product' can not be set to 'int64' value. You need to set this property in non-null value of type 'Int32'. How can I fix this? Edit: I am using SQL Server and Entity Framework 4.1. I get an error in the administrator's action: public functioning test (long id) {return view (repository. Getobliger (id)); } You have mentioned that you enter int but If you are going through the long id, try converting it to int or change the id long in the unit.

c# - Linq to XML join and add data? -

इस तरह एक्सएमएल को दिया गया: & lt; root & gt; & LT; तत्व & gt; & LT; ईद & gt; 1 & lt; / आईडी & gt; & Lt; / तत्व & gt; & LT; तत्व & gt; & LT; ईद & gt; 2 & lt; / आईडी & gt; & Lt; / तत्व & gt; & LT; तत्व & gt; & LT; ईद & gt; 3 & lt; / आईडी & gt; & Lt; / तत्व & gt; & Lt; / रूट & gt; और इस डेटा के साथ एक IEnumerable: [0] = {आईडी = 1, डेटा = 429} [1] = {आईडी = 2, डेटा = 271} [2] = {आईडी = 3, डेटा = 328} क्या LINQ से एक्सएमएल का उपयोग करने के लिए आम तौर पर एक्सएमएल के साथ IEnumerable डेटा में शामिल होने का एक शानदार तरीका आईडी के साथ डेटा को लिंक करने के लिए प्रत्येक तत्व के लिए व्यक्तिगत रूप से पूछताछ किए बिना तो परिणाम ऐसा दिखेगा: & lt; root & gt; & LT; तत्व & gt; & LT; ईद & gt; 1 & lt; / आईडी & gt; & LT; डाटा & gt; 429 & lt; / डाटा & gt; & Lt; / तत्व & gt; & LT; तत्व & gt; & LT; ईद & gt...

keyword event in c# -

संभव डुप्लिकेट: एमएसडीएन उदाहरण में: यदि मैं प्रकाशक वर्ग से ईवेंट कीवर्ड हटाता हूं, तो मेरा प्रोजेक्ट कार्य इसलिए हम कुंजी शब्द घटना जोड़ते हैं। धन्यवाद के कारण > कैप्सूलीकरण । यदि कीवर्ड 'इवेंट' निकाल दिया जाएगा तो आप 'इवेंट' को आमंत्रित करने में सक्षम होंगे और यहां तक ​​कि इसके बाहरी क्लासेस से सदस्यता भी बदल सकते हैं, जो ईवेंट के स्वामी नहीं हैं। जॉन का उत्तर देखें ईवेंट कीवर्ड से जो आप एक ईवेंट साझा कर रहे हैं, इसके बिना आप प्रतिनिधि पर पहुंच दे रहे हैं।

java - How to access beans in across different xml files -

मेरे पास स्प्रिंग हाइबरनेट ऐप में तीन XML फाइल हैं Spring-Security.xml & lt; सुरक्षा: प्रमाणीकरण-प्रबंधक & gt; & Lt; सुरक्षा: प्रमाणीकरण प्रदाता उपयोगकर्ता-सेवा-रिफ = "customUserDetailsService" & gt; & Lt; / सुरक्षा: प्रमाणीकरण प्रदाता & gt; & Lt; / सुरक्षा: प्रमाणीकरण-प्रबंधक & gt; & Lt;! - एक एमडी 5 एन्कोडर का उपयोग करें, क्योंकि उपयोगकर्ता के पासवर्ड डेटाबेस में एमडी 5 के रूप में संग्रहीत हैं - & gt; & Lt; बीन वर्ग = "org.springframework.security.authentication.encoding.Md5PasswordEncoder" id = "passwordEncoder" / & gt; & Lt;! - एक कस्टम सेवा जहां वसंत उपयोगकर्ताओं और उनके संबंधित एक्सेस स्तरों को पुनर्प्राप्त करेगा - & gt; & Lt; बीन आईडी = "customUserDetailsService" वर्ग = "com.vaannila.service.CustomUserDetailsService" & gt; & Lt; / सेम ​​& gt; हाइबरनेट- context.xml कोड यहाँ दर्ज करें & lt;! - एक घोषणा डेटा संसाधन जिसमें पूलिंग क्षमताओं ह...

c# - Timeout expired -

itemprop = "text"> I am writing C # code and using LINQ and some stored procedures, I have to open and close the connection But I keep this error in mind. Timeout expired. The expiration time has expired to get a connection from the pool. This can happen because all pool connections were in use and reached the maximum pool size. My code works entirely except in the event of this error, what can I do about it? Thanks for any thoughts. public static list & lt; Int & gt; GetIslemIdleribySPbyCariId (int cariId) {string connString = System.Configuration.ConfigurationManager.ConnectionStrings ["LocalSqlServer1"]. ConnectionString; SqlConnection sqlConn = New SqlConnection (connString); SqlConn.Open (); & Lt; Integer & gt; Islemidleri = new list & lt; Int & gt; (); Islemidler.Clear (); SqlCommand CMD; CMD = New SQL Commands ("Gate islam idleri", SKL cone); Cmd.CommandType = CommandType.StoredProcedure; Cmd.Parameters.Add ...

html - animating with .animate() jquery -

मेरे पास सीएसएस में एक लोगो / हेडर है # logo2 {padding: 43px 20px 0 20 पीएक्स; पृष्ठभूमि: url (images / in_Store_Marketing.jpg) शीर्ष दाईं ओर नहीं-दोहराना;} मैं लोगो का सही पक्ष से लोगो बनाने के लिए jquery में। स्क्रीन की बाईं ओर स्थित स्क्रीन और व्यवस्थित करें। ऊपर सीएसएस का उपयोग करके, यह बाईं ओर की छवि को सेट करता है, जहां एनीमेशन के अंत में होना चाहिए। वर्तमान में jquery इस तरह दिखता है $ (दस्तावेज़ ) .ready (function () {$ ('# logo2')। चेतन ({right: "+ = 95%"}, 3000);}); HTML इस तरह दिखता है & lt; div id = "logo2" शैली = "ऊंचाई: 70px" & gt; यह वर्तमान में कुछ नहीं करता है, कोई एनीमेशन नहीं है ... मैं क्या याद कर रहा हूं? इस कोशिश का? .logo {padding: 35px 15 px 0 15 px; पृष्ठभूमि: यूआरएल (छवियाँ / लोगो.जेपीजी) शीर्ष दाएं न-दोहराना;} नोटिस मैं दाएं और बदले में बदल गया जे एस से: $ (दस्तावेज़) .ready (function () {$ ('# alex')। चेतन ({right: "+ = 95%"}, 3000);} ); मैंने आपके लि...

database - Replication Modes Definitions? -

I am checking various NoSQL and RDBMSes in relation to various replication capabilities to create distributed systems. Reading through several papers and books, I feel that some vendors or writers have used their definitions regarding the terms Master-Master Replication (Replication Between Two Servers) Master-Slave Replication (Replication Between Mutliple Server to Increase Reading Speed, Writes It Is Only Enabled for Master Server) Multi-Master Replication (= Peer-to-P Merge recurrence (?) Ul> Example: Some mix defines master-master and peer-to-peer as the same, whereas for example in Maxil Docus, I have Master Master and Multi-Master (= Peer-to-Peer ?? ?) The difference between replication is considered. Where is the difference in multi-master and peer-to-peer copy? Is the use of multi-master replication more oriented towards case clustering, while the peer-to-peer target distributed content is on distributed content? I would like to sort things out and m...

postgresql - In postgres (plpgsql), how to make a function that returns select * on a variable table_name? -

Actually, at least for proof of concept, I want to do a task where I can run: SELECT Res ('Table_name'); And this will give me the result of selection - from table_name; The problem I have is the schema ... Function is in the announcement I: Make the function ridge (table_name text) or re-replace SETOF as the THISISTHEPROBLEM AS The problem That I do not know how to declare my return, because it wants to specify me a table or schema, and I will not be as long as the function does not really work. Any thoughts? You can do this, but as you see a column definiton list SELECT Query. create or save session function (table_name text) return $$ as cellphone record QUERY EXECUTE 'SELECT * FROM' table name; End; $$ LANGUAGE plpgsql; For some time (select 'sometime') (section 1), select the section (call 1 Integer, Cola2 Integer, Cole 3 Smalling, Cole 4 Text);

jquery page load, page keeps getting stuck till the page is fully loaded, instead of displaying the loading gif -

I am using the following code to display the loading GIF until the page loads. I'm not sure I'm doing it correctly. I am very new to this Here is the code: $ ("# hm"). Click (function () {$ ("# response"). Empty () .html ('& lt; img src = "asset / AJAX-loader gif" />;); $ ("# response") Load ("file.php"); $ ("# response") Hide (); $ ("# response"). Feedin ("slow");}); Try to link as URL or my images, loading gif is displayed, but then the page is trapped for a while before loading. Thank you, please tell me what I am doing. Your code is stuck here: url: $ ( 'Form-demo'). Action, with error: Unwanted type error: property can not be read 'action' of zero

silverlight - How to make Image doubleclick event in C# -

I am working on the Silverlight app and I want to create an image masque double click event, but an inbuilt muscle in the image control There is no click, so I can do this .. thanks ... !! The key to complete this is to check two things: Measure the timezone between two mouse clicks to verify that it is less than 300 milliseconds. Make sure that the mouse has not moved more than a few pixels. Try it out Regards.

GWT Permutation for browser -

Can anyone tell me in GWT, when the compiler creates a war file, which contains the folder that contains the Java script The file stores in the browser This is in the folder specified in your .gwt.xml file: & lt; Rename module- "Merumul" & gt; This folder is "mymodule". Javascript files contain names like "19F721DD4BCFB147198D3EC97B70ACD5.cache.html" Yes, the suffix is ​​".html", although this is Javascript's GWT FAQ: The reason for this is that some browsers do not handle compression of pure-javascript files properly under certain circumstances.

httprequest - HTTP URLRequest in Adobe Flex -

I'm trying to create a simple HTML URL, trying to rank Adobe Flex, the code is roughly Sends to: Var requestSender: URLLoader = new URLloader (); Var urlRequest: URLRequest = new URLRequest ("http: // localhost: 8888"); Var msg: string = "data = blah"; UrlRequest.data = msg; UrlRequest.contentType = "application / x-www-form-urlencoded"; UrlRequest.method = URLRequestMethod.POST; Something closer is produced: Post / HTTP / 1.1 Referrer: App: / PersonalSearch.Swf Accept: Text / Xml, App / XML, App / XHTML + XML, ... X-Flash-Version: 10,1,85,3 Content-Type: Application / X-www-Form-URLX Content-Length: 102 Accepting-Encoding: Gzip, deflate User Agent: Mozilla / 5.0 (Windows; U; N-US) ... Host: 127.0.0.1:8888 Connection: Keep-alive data = blah What exactly do I want: POST / HTTP / 1.1 Content-Type: application / x-www-form-urlencoded Connection: Via close: Accept MDS_777: * / * Host: Lokhost: 8888 Content-Length: 104 Data = Blah ...

SQL Grouping Issues -

I am trying to write a question that will return to any customer who is separate with different work orders. Separate days of the week fall. For every customer, every work order should fall on the same day of the week so that I want to know why this is not the case, so I can fix it. The name of the table is the core. Work order, and there is a column called Customer Id, which specifies which customer is related to each work order, there is a column in the TimeWindowStart which can be used to see what day of each work order falls (I To do this, I am using DATENAME (time of week, time-window start). Any idea how to write this query? Thank you! select where workaround exists (where 1 to 1 of work order Select W1 and W1.CustomerId = W.CustomerId and DatePort (dw, W1.TimeWindowStart) DatePort (dw, W.TimeWindowStart))

iphone - Providing In-App Purchase, in a free app -

I want to submit a free app with in-app purchase in the appstore which may be available in all geographic areas and Not limited to any special geography. However, I do not have a financial account for all geographic areas, say, I have an account in the US. Therefore, as I make the app easily accessible to all geographical areas, but I do not have financial accounts for all geographical accounts, how to buy any increase through users from outside the US In-app purchase Could? Does the apple restrict such transactions in any way? Or, does the Apple reject these applications? It is believed that if this app is approved by Apple and goes to App Store and any user outside the US downloads this app and using In-App Purchase If you try to buy any increase, then how will financial transaction be? I can be away from here but Apple can not handle all payment transactions themselves? I thought that they processed everything, took 30% off of their own and gave their share to the devel...

jQuery Ajax loading div question -

I have a question about jQuery Ajax question. My question is: If I load a portion of an HTML using jQuery Ajax, like: $ ('# result'). Load ('ajax / test.html #container'); Does the user have to download whole test.html to view in #container div? In other words, will the whole test.html file be downloaded and then will be parsed to select only # container divas, or will only download # container device? If this happens for the first time, can you think of just downloading # container divas without creating a new HTML file? Thanks a lot for your input! :) I really appreciate it. Surely the entire HTML will be downloaded. If you want to avoid it, then you have to create some type of server side script, for example PHP, which will only send the necessary content. You can call it in some way $ ('# result') load ('ajax / test.php ajax = 1?') .; In PHP checks for the existence of and $ _GET ['ajax'] , and if it exists, then o...

objective c - Where is this leaking? / Why am I having memory issues? -

I'm having trouble with an iPad app that I'm making the code looks the same (this is a UIView subclass subclass): - (id) Init {UIImage * theImage = [UIImage imageNamed: @ "chart0075.jpg"]; // frames CGRact lageframe = CGRact make (20, 130, IIMAG size.width, IIMAG size.height); // Set new frame CGFloat newHeight = theImage.size.height / 1.65; CGFloat newWidth = theImage.size.width / 1.65; CGF FTPMFFrame = CGRactMake (480, 200, NewWeather, NewHead); Self = [super initWithLargeFrame: lgeFrame smallFrame: smlFrame]; If (self) {/} adds the image as an image view, IMAGEView = [[UIImageView alloc] initWithImage: theImage]; [Image view setframe: CGRactMake (0, 0, selffame size.width, selffame-size.hit)]; [Image view setautorizingmask: UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [Self-ed. Sview: imageview]; // Now we need to create an array of images for image sequence NSMutableArray * imageSeq = [NSMutableArray array]; For (int i = 1; i Th...