Posts

Showing posts from July, 2010

scala - Spray.io - delegate processing to another actor(s) -

I apply a REST service using spray.io frameworks. Such a service should receive some "search" queries, take action on them and return results to the customer. Code which has been discovered in different actor - search, after receiving the query from the user (JSON), I send this query again from my search engine (using the Ask Pattern) but I do not really understand that This is how I should apply the conversation between the spray.io route actor and my SearchActor. I look at many variations here, but which one is more correct and why? Create an example of a search operator at startup and send every request to this actor Create the pool of the search actor actor at the startup and send the request to this pool class = "post-text" itemprop = "text"> You have not been forced to use the pattern to ask In fact, This will create a thread for each of your requests and probably is not what you want . I recommend that you use a tell instead yo...

android - Open Chrome App with URL -

Is there a way to open Chrome apps from the default Android browser on Android? I'm able to open the app, but it does not redirect the user to the correct page. This is what I tried: & lt; A href = "googlechrome: //www.toovia.com" & gt; I see that I may have to make an intention URL, but I was hoping that there is a much easier way than that. This is a web page and there is no web view involved in it. Yes, but if it is not installed on the system you will participate in the ActivityNotFound exception if it is not available , Then you should launch via the normal browser: string URL = "http: // mysuperwebsite"; Try {intent i = new intent ("android.intent.action.MAIN"); I.setComponent (ComponentName.unflattenFromString ("com.android.chrome/com.android.chrome.Main")); I.addCategory ("android.intent.category.LAUNCHER"); I.setData (Uri.parse (url)); startActivity (i); } Catch (ActivityNotFoundException E) {// ...

mobile - Loading animated interactive content in Sencha Touch 2 -

I have an animated interactive quiz on a URL that I want to load in my app . The URL is http: //some-link/story.html . Its an HTML file though content is animated and interactive. But when I load it, then nothing, but only appears blank. I'm testing with Android using Cordova on the device. 4.3 I'm using it to load the animation Ext.define ('View myApp: Mapple, extension:' extension ', config: {id:' MyPanel ', itemId:' MyPanel ', scrollable: right, listeners: [{fn:' OnMyPanelActivate ', Event:' Active '}]}, Activate OnMyPanel: Function (New Activitum, Container, Old Active Item, eOpts) {Ext.Ajax.request ({// Local path of your HTML file url: 'http: //some-link/story.html', success: function (response) {Ext.getCmp ('MyPanel'). SetHtml (response.responseText);} , Failure: Function (Re: ) {Var text = response.responseText; Ext.Msg.alert ('error', text, Ext.emptyFn);}}}}}}); Second it ext Try to load i...

java - ReentrantReadWriteLock and synchronized blocks -

If I have ReentrantReadWriteLock , and I can use it as a lock in the synchronized block Do other threads still release your locks? For example: ReentrantReadWriteLock lock = new ReentrantReadWriteLock (true); Public Zero doSomething () {synchronize (lock) {lock.readLock (). Lock (); // do stuff lock.readLock () Unlock (); }} If I call doSomething () and another thread keeps the already read lock, does it continue to read the thread read? Can do? When I call doSomething () , then I will synchronize on ReentrantReadWriteLock and then try to get the lock to be read. Since there is a pre-read lock, I will block that lock until it is released. I'm curious to know whether reading lock can be released since being synchronized on the lock. Syncing on a REINrent Redirect Lock object seems like an incredibly bad idea. Locking completely free lock. First of all, it locks the mute x built in each object (in this case, the restartreddrytalk object), and then it locks ...

active directory - Differences in calling CSVDE from Powershell vs Command Prompt -

Can anyone explain why calling a CSVDE utility from an advanced Windows Command Prompt, a vertical powerhole console? The problem I have is that I can successfully export from Active Directory via the command prompt method, but PowerShell returns an authentication error, "Simple Tie Back" Invalid Credential '. For both here The command to be used is edited for sensitive pieces: c: \ csvde.exe -s domain.company.org -f ExportFile.csv -l "The name given above, SP, IPhone, Title, Dept., Company, Physical DeliveryOfficeName, Mail "-D" OU = ABC Group, OU = ABC User, DC = Domain Name, DC = ORG "- A User Distant Encant Password Running with the privileges of both session administrators I am a powerless newbie, and for my life, I can not understand it. Thank you! I can see two possible issues. The first thing is that it separates your username and password. Or as Adi Inbar has suggested: You have some special characters that are causing probl...

android - Alignment layout at the bottom with listview -

I have a list view and a linerlayout (bottom bar) at the bottom. When the list view expands, I can not scroll properly because the bottom linear layout has seen the meeting. I do not understand where the problem is ... I want to separate the bottom strip from the list view. This is my layout (possibly, can you customize this layout?): & Lt; / RelativeLayout & gt; & Lt; LinearLayout Android: layout_width = "match_parent" Android: layout_height = "50dp" Android: Orientation = "Horizontal" Android: layout_gravity = "bottom" style = "@ Android: Style / Widget.Holo.Light.ActionBar.Solid" & gt; & Lt; Spinner Android: Android: Android: Android: Layout_Wind = "wrap_ content" Android: layout_heat = "wrap-content" Android: layout_weight = "1" Android: layout_gravity = "center_weight" Android: layout_margin = "8dp" & gt; & Lt; Android: layout_height = "w...

knockout.js - Wiring Bootstrap-switch to knockout observable -

I'm looking at this example to wire the occurrence of a bootstrap button. I am having trouble with the fact that how do I add it to some other knockout. I have a noticeable self.IsAggregate = ko.observable (modeldata.SelectedItem.Aggregate); There is a default value on the load, I'm trying to wire it in the switch. I can not even understand the syntax in the belt. How are they defining a : for observation and not a = ? When I try this, a syntax throws error. Eventually I am trying to replace the IsAggregate with compulsive // Registration switch $ ("[name = 'toggle list']"). Bootstrap switch (); $ ("[Name = 'toggleAggregate']") bootstrapSwitch () .; Var viewloadel = function (modal data) {var itself = this; Self. To = to Spectacular (true), self Selected = K. orssabel (ModelData selected) list; Igragget = to.SourceWeble (ModelData selected item. Argentina); Self-enabled. = HorseBel (Mod.Data selected item. Enabled)...

python - Connect 4 Horizontal Victory Checking Error -

I'm trying to solve this issue for a few days ... here's the code ... ... Here is an error / "/ home / firearrow5235 / PycharmProjects / Connect 4 / Connect 4.P ", line 132, & lt; Module & gt; If Exchange (F): File "/ Home / FireRoro 5235 / PKARAM Project / Connect 4 / Connect 4.P", line 77, in Checkhouse (array [x] == array [(x + 1)] and ( Array [x] == array [(x + 2)] and (array [x] == array [(x + 3)]: index error: index index outside of class Points which populate this error are actually sporadic ... I can insert pieces in some of the seven slots without any problems ... I keep my last input The word 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o' 'O', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o' , 'O', 'o', 'o', 'o', 'o', 'o'] ['e', ...

Post-increment operator in function argument in Go, not possible? -

कैसे जाते हैं (1.2.1) में, यह काम करता है? पैकेज मुख्य आयात ("एफएमटी") func main () {var i = 0 i और lt; 10 {fmt.Println (i) i ++}} लेकिन यह (फंक्शन तर्क में वेतन वृद्धि ऑपरेटर के साथ) नहीं करता है? पैकेज मुख्य आयात ("एफएमटी") func main () {var i = 0 i और lt; 10 {fmt.Println (i ++)}} में जाओ, i ++ एक बयान है, अभिव्यक्ति नहीं है इसलिए आप किसी अन्य अभिव्यक्ति में इसके मूल्य का उपयोग किसी फ़ंक्शन कॉल में नहीं कर सकते हैं। यह बाद के वेतन वृद्धि और पूर्व-वेतन वृद्धि के बीच अंतर को समाप्त करता है, जो भ्रम और बग का स्रोत है।

mvel - elasticsearch aggregation using a script to transform field value being aggregated -

मेरे पास वर्तमान में कुछ ऐसा है: "एग्स": {"group_by_myfield": { हालांकि, "myfield" के लिए मान "अल्फा 1.0", "अल्फा 2.0", "बीटा 1.0" है, लेकिन "शब्द": {"field": "myfield"}}} अब मैं केवल "अल्फा", "बीटा" मानों पर कुल जोड़ना चाहता हूं। मैं उसको कैसे करू? मैंने कोशिश की: "एग्स": {"group_by_myfield": {"terms": {"field": "myfield" "script": "_value.split () [0]"} }} लेकिन मुझे लगता है कि कोई अलग कार्यक्षमता नहीं है संपादित करें: इसके बाद के संस्करण के लिंक का उपयोग करके इसे पूरा करने में कामयाब रहे। निम्नलिखित क्वेरी काम करती है। प्राप्त करें _search {"size": 0, "aggs": {"group_by_myfield": {"terms": {"field": "myfield", "script ":" _value.replaceAll ('\\\\ s +। *', '') "}}}} मेरे प्रश्न में चिपक...

jquery - Is it possible to have a new title tag for each accordion heading? -

Hosts large amounts of information with my site categories / subcategories / sub-subkeys (tab) and then split into questions Answers in information and Accordion format. I have to make a different title tag and / or url for each level Example animal / reptile / snake / you-how-catch-a-snake (how do you snake Catch, this is a structured title). Is this possible? Multiple & lt; Title & gt; Tags are not allowed, but you can use the document.title property JavaScript, for example, this will work: $ ('# animals, #reptiles, #snakes, # how-to-hold-a-snake '). (Function (e) {// Assuming the selected tab. Get the selected class if (! $ (This) .hasClass ('selected')) {$ (this) .addClass ('selected'); // Suppose you document the same as the contents of the `title = gt; tab.title = this.innerHTML;} and {$ (this) .removeClass ('selected');}}); This makes a whole bunch of assumptions, but without the code, I can not really give you mor...

python - Error while running the simplest flask app -

Help me understand the problem of this code as you are seeing it are only two lines of code Flask import flask app = flask (__name__) to return type erro. C: \ Users \ Natali \ AppData \ Local \ Enthought \ Canopy32 \ User \ lib \ site-packages \ flask \ app .poc "-> 622 prefix, package_path = find_package (self.import_name) 623 if no prefix is: 624 Return os.path.join (package_path, 'instance') C: \ user \ Natalie \ AppData \ Local \ Enthought \ Canopy32 656 "" 660 root_mod_name = import_name.split ('.') [0] - & gt; \ User \ lib \ site-packages \ flask \ helpers \ uCP find_package (import_name) 661 loader = pkgutil.get_loader (root_mod_name) 662 if there is no loader or import_name == '__main__': 663 # import name is not found, or Get_loader (module_or_name) 462 in interactive / main module C: \ Program Files \ Enthought \ Canopy32 \ app \ appdata \ canopy32 -1.3.0.1715.win-x86 \ lib \ pkgutil.pyc Second: 463 Full Name = Mod_Or...

convert mysql classes to mssql classes on php 5.3 version -

In my project, we use mysql but now I want to use the client mssql, I search PDO or Use SQLRV classes. But I can not decide what is appropriate for our project or can easily change the structure of this web application? My code example class sql {public $ oci; Public $ rupee; Public $ temp; Public function __ composition () {$ this- & gt; Oc = new mysquilli (DBHost, DBS, DBPASS, DBNM); $ This- & gt; Oci-> set_charset ('UTF8'); If (mysqli_connect_errno ()) {printf ('Sql arbitrage ± shorunu. Hata kodu:'. Mysqli_connect_errno ()); Go out(); }} Public celebration closeOCI () {$ this-> oci- & gt; Close (); } Public Function Query ($ query) {$ this- & gt; RS = $ it- & gt; OC- & gt; Query ($ query); } and login class extends the SQL class class login provides SQL {public function loginControl ($ user, $ pass) {$ dbHandle = New sql ($ dbhost, $ dbUserName, $ dbPassWord, $ dbCntDBName); // resonance "SELECT level, Username by nam...

Is there any difference when compilers implements C inline function in different platforms -

I was told that implementation (such as MIP vs. X86) for C inline functions in different platforms is a bit different. For example, inline function for one of them (amps or x86) still allocates a heap and thus is not so efficient, is this true? What are all the differences? Thanks It is not guaranteed that inline inline (this is just a suggestion for a compiler) Em> any functions which are not underlined for architecture will be considered as normal tasks, and therefore Push & amp; When you call them (like any normal non-inline function) pops up from the stack and how your compiler is configured, it is very much dependent. For example, there are such flags: - Finnish functions Consider all the functions of inlineing, even if the inline has not been declared, the compiler predicts that In this way, which functions are being consolidated in this way. -finline-limit = n By default, the GCC limits the size of tasks that can be inline. This flag allows thick control...

java - First GUI, app organization -

This is my first Java swing application and I have some questions about the organization. I need to create an application that after logging in to the user (call it), "normal user page", "admin page" or "super user page" redirect. After reading some articles, I came to know that use the java swing app, a jehfram and panels to hide or show content (some things like some pages). My questions are now: Do I need to create 4 "main classes" (login, normal user, administrator, super) and each one spreads a gefrem Because they are specially separate applications and this has their own sections of jframes (panels), with them I hide the content on them / show or, log my main jframe and After the entry, I show a different panel (normal user, admii Or super), and they have panels to hide the show content When my first question is correct, then it's a good folder structure: folder ap: login, normal, admin, super user class (frame) folder...

jquery - Cannot load the Css -

मेरे पास इस तरह की सामग्री में एक फ़ोल्डर है -content --jquery-ui- 1.10.4.custom -------------------------- सीएसएस ------------------ -------- चिकनाई ------------------------------------ jquery-ui-1.10 .4.custom.css ------------------------------------ jquery-ui-1.10.4। custom.min.css -------------------------- जेएस ------------------ -------- jquery-1.10.2.js -------------------------- jquery-ui-1.10.4.custom .js -------------------------- jquery-ui-1.10.4.custom.min.js में BundleConfig.cs मैंने जोड़ा बंडलों। जोड़ें (नया शैली बंडल ("~ / सामग्री / jquery-ui-1.10.4.custom / css / smoothness ")। शामिल करें (" ~ / सामग्री / jquery-ui-1.10.4.custom / css / smoothness / jquery-ui-1.10.4.custom.css "," ~ / सामग्री / jquery-ui-1.10.4। कस्टम / सीएसएस / चिकनाई / jquery-ui-1.10.4.custom.min.css ")); बंडल। जोड़ें (नया स्क्रिप्टबंडल ("~ / सामग्री / jquery-ui-1.10.4.custom / js")। शामिल करें ("~ / सामग्री / jquery-ui-1.10.4.custom / js / j...

oauth 2.0 - How to update Office 365 SharePoint App Client Secret after it expired? -

In Msdian, Office 365 is required to be updated before the end of the customer's deadline. But the deadline after the update we now have a new client secret forgot to do so before the end, before a new added and then not working app Some sites went, finished construction timelines and app in some sites The error works well that we can not get Exston from the content token with the new customer secret. The system. Exception: SharePoint20l3 authentication exception: Sistmkaidentitimodel. Tokens.SecurityTokenException: illegal JWT token issuer could not be solved token On Microsoft.IdentityModel.S2S.Tokens.JsonWebSecurityTokenHandler.ReadTokenCore (string token, Boolean isActorToken ) it takes some time to influence it - 12 hours in my case app. It has started working for new installments immediately, but with the pre-installed app, tenants had to wait to refresh. New and old hide can be used in config file with "up to date" tokonahalper CS. This will work whe...

c# - Detecting screen recording in windows using .NET -

I am trying to write an application in C # where I can find out whether any other application captures the video of the screen in Windows. I can see the process list and find out that there is a special process, but it is not efficient because the process name of the capturing application can be changed. Can anyone tell me what is the way to do this? Thanks! If you are trying to do that, you will find out that there is a process recording on the same computer Whether or not the screen you might find a way to do this for some things. There are some APIs that are used by screening software that you can tamper with EasyHook or something similar, but you'll remember the rest that work differently. For example, UltraVNC is a mirror video driver that you can install, which gives you direct access to the video framebuffer as well as notification of screen updates, which is very good for screen recording or recasting. . How will your code react to it? The big problem is that scann...

debugging - (gdb) Get the value of the memory address indicated by a register -

So I'm working on this debugging project for which I need to see assembly code in GDB. Is a line that reads movzbl (% ebx),% eax . I understand that it adds zero for less important byte copies of (ebx) to % eax , and more important bits. I am trying to use gdb to know which value is kept on (% ebx) information registers % ebx is 0x804a6ac . As I understand, to get value on (% ebx) , I want the value located at the address 0x804a6ac . How do I get this value? I know that, after movzbl (% ebx),% eax is run , the value of % eax is 0x41 , so I suppose Is that 41 is the least important byte of (% ebx) , but how can I see its full value? I tried to do p / x $ 0x804a6ac , but I get $ 13 = value can not be converted into integer. . I tried to do p / x% ebx , but I get a syntax error in expression near "% x ebx". " The "standard" command for this is x / cx $ ebx . This is better than p / x * 0x804a6ac You do not need to cut / pa...

javascript - AJAX in email body? -

Is there any way to load dynamic contents in an email, when it is provided? Recently, I had to book a flight again and the booking agent asked me to call me out on the phone so that they could give me a new program. How are they piping dynamic content into email? AJAX? I thought that JS was not working in email. AJAX does not run in most e-mail clients - this is a security risk. The only thing I can imagine is that they can change the picture. Pictures are usually reloaded from the server when you open the email. In addition, the person talking to you can not understand how email actually works.

sql - Trim off 1st Comma from Result -

घोषणा @WithdrawnClasses VARCHAR (मैक्स) = '' का चयन करें @WithdrawnClasses = COALESCE (@WithdrawnClasses + ',', '') + Fcd.ClassNbr FROM XR.FrmCM9 विवरण एफसीडी INNER JOIN XR.FrmCM9 एफसी ON fcd.FrmCM9FK = fc.Id और fc.FrmMstFK = '00775549-4EB9-478B-AFD5-5667BD9AA7EE' SELECT @WithdrawnClasses यदि मैं इस क्वेरी को चलाता हूँ तो मैं आउटपुट को 01, 03, 05, 29, 35 के रूप में वापस लौटाऊंगा ऐसा कोई रास्ता नहीं है कि मैं उपर्युक्त क्वेरी से पहला कॉमा बंद कर देता हूं। का प्रयास करें होना चाहिए > का चयन करें @ विथड्राक्लाक्लास = STUFF (@ विथड्राव क्लासेस, 1, 1, '') या वेरिएबल @WithdrawnClasses घोषणा @WithdrawnClasses VARCHAR (मैक्स) का चयन करें @WithdrawnClasses = COALESCE (@WithdrawnClasses + ',' ',') + fcd.ClassNbr XR.FrmCM9Details से FCD अंदरूनी XR.FrmCM9 एफसी शामिल हों FCD पर .FrmCM9FK = fc.Id और fc.FrmMstFK = '00775549-4EB9-478B-AFD5-5667BD9AA7EE'

when to use "and" statement in informix DB -

I have a problem with my SQL statement, where the situation requires me to select the data to meet many criteria . Question: How to determine the existing old company - Lodging Off (F 557 & F595) or (F558 & F559) or (F557 and F 55) My SQL: SELECT * '55') But this statement gives me results empty, even the data is present condition. vchformtrx does not contain more than one value in the same line For example; WHERE (vchformtrx = '559' and vchformtrx = '557') ... both values ​​ 559 and 557 will require vchformtrx in one line at the same time come true and return to the result goes to the same other and situations 3 false Using or on situations is always wrong. Your quoted question does not give me enough information about what exactly the situation should be, but - in short - you will not get any indication because your current situation can never be true.

node.js - Mongodb in linux server -

By using SSH I have installed the MongoDub in the Linux server with the following steps. In the / bin folder in the Setter Edit .bash_profile and add > Pat = $ path: $ HOME / bin / mongodb-linux-x86_64-2.6.0 / bin export path To run mkdir -p / data / db to mongod --dbpath / data / Db / code> mongo to run the mongo command, it shows an error such as this: MongoDB shell Versions: Connecting to 2.6.0: Exam 2014-04-24 T 10: 07: 58.831 + 0530 Warning: Connectors from 127.0.0.17 0777 Failed to install, because: errno: 111 Connection refused: 2014-04-24T10: 07: 58.832 + 0530 Error: 127.0.0.170177 (127.0.0.1) Could not connect to server, connection attempt src / mongo / shell Failed on / mongo.js: 146 Exception: Connect failed How can this solve? First of all, make sure your DBPit is present. Start mongod with mkdir -p ~ / data / db then again: mongod --dbpath Finally mongo edit : I saw that some people vote for this answ...

Visual Studio 2013 doesn't support MYSQL -

I made an application in the VS 2010 run on MSLL, the customer will download this program and will create its own MYSQL database . Now when I VS 2013 I can not get it to work again. Unless I include all these Dll files: I have 3 questions: Is it no longer supported? Is there a better local database type that I can use instead, which does not require additional DLL? Do I have to send these DLLs every time, when I update my application? MySQL was originally not supported by the basic framework, you must install mysql conector to get full access. Mysql or you can use the ODBC but it will actually slow down. If you want Compacto Local DB, then the skylite is very good for that job. And to send those DLLs, it depends on how you make your updates, if you have a system that restores your XE and leaves the previous files , This will work, but if you are planning to use an installer, the installer will have it.

c# - Session name is not retrieved in master page -

मैं लॉग-इन और लॉग-आउट कार्यक्षमता के लिए asp.net में एकल मास्टर पृष्ठ का उपयोग कर रहा हूं ... पर मास्टर पेज सत्र का नाम शून्य मान लेता है। यहाँ मेरा कोड है, कृपया मेरी मदद करें ... MasterPage.master.cs संरक्षित शून्य पृष्ठ_लोड (ऑब्जेक्ट प्रेषक, EventArgs ई) {if (! IsPostBack) { यदि (सत्र ["नाम"] == नल) {panel2.Visible = false; पैनल 1। दृश्यमान = सच; } और अगर (सत्र ["नाम"] = शून्य) {पैनल 1। दृश्य = झूठे; पैनल 2। विजुअल = सच; Label2.Text = "स्वागत | मिस्टर" + सत्र ["नाम"]। ToString (); }}} सुरक्षित void LoginStatus1_LoggedOut (ऑब्जेक्ट प्रेषक, EventArgs ई) {सत्र। क्लीयर (); Session.Abandon (); } मेरा homepage.aspx.cs संरक्षित शून्य बटन 1_Click (ऑब्जेक्ट प्रेषक, EventArgs ई) {string st = " चुनें लेबल 4, लेबल 3 से रजिस्टर 1_master WHERE लेबल 4 = '' + पाठ बॉक्स 1। पाठ + "'और लेबल 3 ='" + पाठ बॉक्स 2। पाठ "" "; सीएमडी = नया एसक्यूएल कॉमांड (सेंट, एसकेएलकॉन); cmd.Connection.Open (); स्ट्...

ios - How to Remove the White Separator in Cell? -

Image
UITableViewControlller में मैं लोड कर रहा हूँ में कंटेनर देखें स्टेटिक सेल के रूप में, और उन कंटेनरों को एम्बेडेड हैं एक टेबलव्यू नियंत्रक। मैंने सभी दृश्यों को पृष्ठभूमि का रंग काला कर दिया है, फिर भी सेलर के शुरू होने पर विभाजक सफेद हो रहा है तालिका का विभाजक अंतःस्थापित बदलें। self.tableView.separatorInset = UIEdgeInsetsMake (0, 0, 0, 0);

c# - MVC Routing picking up Area controllers at root -

I am getting difficulties with my controllers who are responding to requests on the routes in an area which Are not there. So I have such a setup (extra luggage cut): / Ares / security / controllers / member controller CAS / AREES / security / securityArgation.cs / controller / home controller CS I have my area of ​​security: Namesplace MyApp.Web.Areas.Security {public class securityArera registration: regional registration {public override string areaname { Receive {and Püssi "security"; }} Public override blank register area (Regional Registration Content Reference) {reference.MapRoute ("security_default", "security / {controller}" {{action} / {id} ", new {action =" index ", id = UrlParameter Optional}); }}} and my global routing rules: route. Ignoreroute ("{resource} .axd / {* pathInfo}"); way. Unknown route ("{* robotstxt}", new {robotstxt = @ "(. * /)? Robots.txt (/.*)?"}); way. Unknown r...

objective c - Receiving APNS notification but cant display on device in ios -

Hello everyone, I'm trying to implement pushnotification . For this I have read the official document of apples, for push notification and also read the Reverendlich blog and I understand the flow of handwriting very well. I have created the development and production certificate, profile and its work is fine and it was successfully sent and received - - (zero) application: (UIApplication *) Application DidReiveiveRemoteNotification: Display the message (NSDictionary *) in userInfo {*** uialertview *** message ******} But my problem is how I I can display push in device like other push notifications Currently I have IOS 7.0 and XCode Version 5.1.1 (5B1008) Thanks in advance for both upwards. Firstly check these applications through these methods to verify that if your registered successfully. APNS - (void) application: (UIApplication *) application didRegisterForRemoteNotificationsWithDeviceToken: (NSData *) deviceToken {} - (void) application: (UIApplica...

c# - Dropdown comboboxcell on button click -

IDE: दृश्य स्टूडियो c # .net 4.0 मेरे प्रोजेक्ट में मेरे पास एक डेटाग्रिड दृश्य है एक कॉम्बोबॉक्सेसेल, जिसमें ड्रॉपडाउन में 4, ए, बी, सी, डी आइटम हैं, और जब उपयोगकर्ता बटन 1 पर क्लिक करता है तो मैं उस ड्रॉपडाउन सूची को दिखाना चाहता हूं डेटाग्रिविड कॉमबॉक्सीक्स बटन पर क्लिक करें- ईवेंट पर क्लिक करें बटन_ऑनक्लिक करें (प्रेषक एस, इवेंटगेस ई) {डेटाग्रीड विवेकंबोबॉक्सकेल डीजीवी = (डेटाग्रिडवियसंगोबाकॉक्सेल) gvTeam2.Rows [0]। सेल [4]; Dgv.dropdown = true // सामान्य कॉम्बो बॉक्स में उपलब्ध है / डेटाग्रिविड कन्बोबाक्स सेल में उपलब्ध नहीं है। } इसे आज़माएं: gvTeam2.CurrentCell = जीवीटीम 2 [4, 0]; gvTeam2.BeginEdit (गलत); gvTeam2.EditingControlDataGridViewComboBoxEditingControl के रूप में नियंत्रण) .DroppedDown = true;

Adding a block to magento category page using local.xml -

Before posting it, I have looked at the following, but not all of them helped me and I Was not able to add block I want to add an image of the category at the top of the page. This product list view , And I want to put it above the left navigation, so that it can take full page width. I have created a template file in mytheme / template / catalog / category / image.phtml and I have just added some text "I am here" After that, I will call my local.xml file to catalog_category_default & lt; Reference Name = "Content" & gt; & Lt; Block type = "catalog / category_view" name = "category.image" template = "catalog / category / image.file" & gt; & Lt; / Block & gt; & Lt; / References & gt; But it still does not work and the text is not displayed there. When this text is displayed, I will display the image of the category, but for now I just want to work on the block and want to display ...

How to find the shape of an object in an image using python -

Image
I want to know how to find an object's shape in the image and store it in a variable for further use For example, And I just want to remove the shape, something like this (I reshape the image in Photoshop), Only me of the image Need Uprekha, and I want it to save on disk. I have not tried so far, and I am using Python 2.7 Any suggestion is welcome Thank you in advance! I do not recommend grayscale for your image. You are interested in red flowers versus green background. To identify any pixels with flowers, there is a simple and clear way to create that difference in your image, whose red value is more than its green value. Imported from Numpy import array, cv2img = cv2.imread ('flower.jpg') img2 = array (200 * (IMG [:,:, 2] & gt; IMG [:,:, 1]), dtype = ' uint8 ') img2 clearly shows the shape of the flower to achieve only the edges, you can use a very sharp detector : edges = cv2.Canny (img2, 70, 50) cv2.imwrite ('edges.png...

c# - textBox items copy to different textBoxes -

I want to work in one of my projects I want to transfer items to a text box I can get it in different text boxes. string [] values ​​= textbox1.Text.Split ('#'); Textbox2.Text = Value [0]; Textbox3.Text = Value [1]; TextBox4.Text = Value [2]; TextBox5.Text = Value [3]; TextBox6.Text = Value [4]; What do I want, when 5 items will be copied into 5 different text boxes, those 5 items should be removed from the original text box. OR ** I find 10 items in a text box named text box 1 for example: a # The following incident happens textbox2 / b in textbox3 / c in textbox4 / d in textbox5 / e in B # C #D # E # F # G # H # IG # Textbox5 / e in textbox6 - Now when I click on button 1 I think 5 items left in text box 1 text box 3 / h Textbox 4 / G in 2g / t In text box 5 / J in text box 5 / J, the text box must be in the > Will start typing that tries to split your string, which limits the amount of strings returned. Removing the same method, parts are spl...

Rails Has_One Association Seems Illogical, Wrong Way Around -

Sorry if this is clear. I've been using the rail for a while, but the way my association is still getting worse with my head, it has not clicked yet. I am creating a special table that prepares a list of companies that meet certain criteria for an email mail-out, and have information about whether they have been emailed Or not, and has responded to the email (or not.) An entry in the email - Matching table for a single company's record, it seems logical to me that each respondent records Switch to a company. However, if I add a response model and then use responder.company, I get an error saying that I need a company responder_id in the record that does not make sense to me The company does not know anything about the respondents. I expected the respondent to have a company, because there will be no company ID in the record of the respondent, which is not otherwise. It seems that bass echad So, obviously what I have done is not a railway, but in addition to hacking ...

python - SQLAlchemy, PostgreSQL and array_agg: How to select items from array_agg? -

I want to use in a subquery, then use the data collected by its array index in my main query, however, After trying many different ways, I am really in a disadvantage how it should be done; Can anyone explain why in the example given below, why did I get a series of values ​​instead of the first class in the array? I understand that the following, simple example array can be done without SELECTING [i], but it will explain the nature of the problem: to sqlalchemy import from sqlalchemy .dialects.postgres Import import ARRAY prods = (session.query (Product.id.label ('id'), Func.array_agg (ProductCategory.id, type_ = ARRAY (integer)) Labels ('cats')). Outrojoined (ProductCafe, Productcake.product_id ==Products.id) .group_by (Product.id) .babber ()) # Confirm that there are categories in: [x] session.query (prods) for x) The LAN (x [1]) gt; 1] [4]: ​​[[2428, [1633667, 1633665, 1633666]), (2462, [1162046, 1162043, 2543783, 1162045]), (2573, [1633697, 16336 9]), (25 ...

python - How to make the anaconda plugin use a custom interpreter (virtualenv)? -

I want to set the Python interpreter for the project base. Says: You can definitely configure Python interpreter to use in a per-project basis. To do this, you will need to edit your .sublime-project file and override the Python_specified user setting in it: {// ... "settings": {"Python_interpreter": "/home/damnwidget/.virtualenvs/mamba-pypy/bin/python"}} This is for me. Successful file: " folders ": [{" follow_symlinks ": true," path ":" c: \\ user \\ maids \ "gooprojects"}, {"follow_symlinks" : True, "Path": "C: \\ User \\ Mads \ PythonProjects"}} I have tried many different combinations and I'm out of docs Can not go where exactly that setting should go. / P> A sample .sublime-project can be found in the full layout of the file : ["Backup"], "follow-simlinks": {"folders": [{"" path: "src", "f...

PHP variables and loops in HTML format -

page.html & lt; body & gt; & Lt; h1 & gt; {{HEADING1}} & lt; / h1 & gt; {{CONTENT1}} & lt; h2 & gt; {{NEWSLETTER}} & lt; / h2 & gt; & Lt; h1 & gt; {{var1}} & lt; / h1 & gt; {{VAR2}} & lt; / body & gt; page.php $ HEADING = 'हेडिंग'; $ CONTENT = '& lt; div align = "center" & gt; - सामग्री यहां दी गई - & lt; / div & gt; '; $ NEWSLETTER = 'न्यूज़लेटर सामग्री'; $ VAR1 = 'एक अन्य उप शीर्षक'; $ VAR2 = 'सामग्री'; $ फ़ाइल = फ़ाइल ('पृष्ठ' ''); प्रिंट $ फ़ाइल; 1 & gt; यूआरएल निष्पादित करते समय, सभी {{VARIABLE}} को $ VARIABLE में मान से बदलना चाहिए। 2 & gt; इसके अलावा मैं HTML के अंदर PHP लूप को कॉल करना चाहता हूं जैसा कि लूप सामग्रीएं अंत इन तरीकों को लागू करने के लिए सबसे अच्छे तरीके (या नियमित अभिव्यक्ति) हैं? नीचे $ HEADING से {{HEADING}} को चर बदलने के लिए इस्तेमाल किया जा सकता है $ file = file (...

javascript - How to show echo content inside of a DIV -

Image
I'm trying to load an html file for inline editing with tinymce, which basically means a dividing area The output resonates in so that the editor up Page load is just fine, though the editor appears "up" "html", which looks like a small div box, which spreads the page in place of the content. I need reciprocated $ content to appear inside the Div area, and instead it appears that it is showing below & lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTD XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "../tinymce / js / tinymce / tinymce.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Tinymce.init ({selector: "div.edit", subject: "modern", plugins: [...

objective c - Is a CGContext an object? -

I've been programming for 2 months (so I am quite new) and I am currently learning how to attract Graphics for an iPhone app but I need clarification on CGContext . To create the current reference we use CGContextRef currentContext = UIGraphicsGetCurrentContext () , if here I understand well (and please correct me if I am wrong), UIGraphicsGetCurrentContext () On the current context, we provide it on an indicator type CGContexRef . Is there an object allocated to memory on the heap in the current context, or is it only a type of variable on the stack? I know that we use the pointer to work with the same data and avoid copying the big memory block (right?), But actually a CGContext , an object, a Straight or whatever? These opaque types mean that you do not have to know and there is no need to take care . Apple can change its interior with every release and we do not know (and it is not needed). Typically, the FooRef type is the indication of something, now it has b...

html - Icon .ico extention doesn't display in IE or Chrome -

I have gridview buttons for using and removing CSS to display icons for each. It's okay in Firefox It's working, but Icax is not displayed in IE or Chrome. This is my CSS code .delete {display: inline; Background: Repeat the URL 'delete.ico'; Border: Nobody! Important; Background-position: -0px -0px; Width: 20px; Height: 20px; Float: None; }. Editing {display: inline; Background: URL ('edit.ico') No-repeat; Border: Nobody! Important; Background-position: -0px -0px; Width: 20px; Height: 20px; Float: None; } [edit] Here are the html buttons & lt; Asp: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; Asp: button id = "btnDelete" runat = "server" CssClass = "CommandName =" delete "on command =" BtnDelete_Command "CommandArgument = '& lt;% # DataBinder.Eval (Container," RowIndex ") +"; "+ Eval (" code ") +"; + + Eval ("name")%> '...

object - org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required (CloudConnect Salesforce sample ETL SOQL validation error) -

SOQLvalidation CloudConnect Salesforce नमूना ईटीएल में सत्यापन त्रुटि फेंक दिया। org.apache.axis2.AxisFault: परिवहन त्रुटि: 411 त्रुटि: लम्बाई आवश्यक डेटा प्राप्त करने वाले लक्ष्य सेल्सफोर्स संगठन कस्टम डोमेन का उपयोग करता है मैं जानना चाहूंगा कि इसके बाद के संस्करण की वजह से त्रुटि और कैसे हल किया जाए। यह ज्ञात समस्या है (बग ) CloudConnect में। हम इसे ठीक करने के लिए कड़ी मेहनत कर रहे हैं।

android - IllegalStateExcaption: Could not execute method of the activity -

In my application, I want to send a httpRequest on the button click. My button is the click of the event click button. My code is like this: Public Zero click button (see V) {Toast. GetApplicationContext, "Inside Button Click", Toast. LNNHH_LOG). Show (); OrderNumber = (edit text) findViewById (R.id.order_no); DeliverTime = (edit text) findViewById (R.id.delivery_time); String id = orderNumber.getText (). ToString (); String tim = delete time.get text (). ToString (); Logs. I ("Button Click Value", "Inside Post" + Tim); String toopus = "url? Id =" + id + "& amp; time =" + tim; // TODO auto generated method stub log.i ("xxxxxxxx", "inside post"); Try {Http Client Client = getHttpClient (); HTTP post request = new HTTP post (toPass); Logs. I ("hpp request", "send reckoning" + papas); HttpResponse response = client.execute (request); } Hold (exception e) {Log.e ("problem in connection...

c# - Check system language changes on an application -

I want to test a Qt application for different languages. Therefore, I change the system language to modify the MUI language registry tag ( HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlSet / Control / MUI / UILanguages ​​ ) for French and German respectively, French and German. Then I have to restart the system for AUT (application under trial) to display the new language. Can I do this without restarting the system? I tried to kill explorer.exe and it has re-launched but unless I restart language changes do not reflect on my application. I want to avoid restarting Also, is there any other possible way to change the system language and reflect in my application (without changing the registry)? No, I think it is not possible without a restart or log off system because the system check starts when it does not start after. Examine many registry keys Try it to be your help Thread. Present. Culture = new cultureInfo ("D-D"); Thread.CurrentThread.CurrentUICulture = Thr...

c# - Convert hex string to bytearray and write to file -

Image
I wrote an app using C # to read data from a serial port, and shows data in a text box in hex string format. I Finally, I had saved all the data in the binary file. If the data is large (maybe> 20mb) it throws out of memory error, how can it be solved? Here is my code: Private zeros btn_Save_Click (Object Sender, EventArgs e) {SaveFileDialog save_log = New SaveFileDialog (); Save_log.DefaultExt = ".bin"; Save_log.Filter = "Binary file (* .bini) | * .bin"; // determine that the user has chosen the name of a file from saveFileDialog. If (save_log.ShowDialog () == System.Windows.Forms.DialogResult.OK & save_log.FileName.Length & gt; {} {try {string hexString = Content.Text.ToString ()} file stream stream = new FileStream (save_log.FileName, FileMode.Create, FileAccess.ReadWrite); Stream Write (hex_to_byteArray (hexstring), 0, hex_to_byteArray (hexstringing lamp.); Stream.Close (); } Hold (Exception pre) {Message Box. Show (ex.Message); }}} Private byt...

caching - VB6 : Navigating to a webpage without reading files from temporary internet files folder -

I am using the VB6 web browser control every time I navigate to a page (web browser. Navigate) I want to load the page freshly from the server instead of reading it from the cache and temporary internet file folder. I posted a question that did not receive the correct answer. Now I need to know that any code or API is available, which is available to open webbrovers without reading files from temporary Internet files and avoiding reading cache. So please help me on this. When you try to open Internet Explorer (or to open), or if you are using VB6 If you choose to use the packaged controls, you can force the browser to rely on the pages that are endlessly cached, without any 'random' query string like: www .mysite .com? A = 8267889457 String webAddress = "www.mywebaddress.com?a=" & amp; IT (RND (1) * 1000000) This should start the browser directly by requesting data from the server. In addition, you can include:

sql - How to make a role from schema A "grantable" in schema B -

There are two schemas in the same database: A and B is the role A_ROLE in schema A, to grant A_ROLE to Schema B (So ​​users with A_ROLE were able to query tables from Schema B) Is this possible? If so, how does it? As far as I know, the role in Oracle is a non-schema object, so a schema But if you mean that the role A_ROLE in User A and it wants to grant the object from Schema B, you can use the following statement as an example Are: Choose from GRANT BT_able1 to A_ROLE;

build - Calling npm install from grunt -

I started using raucous for my project and I like it so far. I installed some tasks through NPM and everything worked fine. I have to do a basic work in my granutfile which installs other hoarsely before starting other tasks, so that every NPM dependency will surely be loaded. I need this because if I increase my gland with new tasks, then I do not want to install NPM with my hand hand on my Jenkins machine and I would like to do this without running an additional script before rubbish. Is there any way to achieve this or is it completely crazy? Is there any problem in loading NPM works into the grumble after running my first job? Is this also possible? Yes, it's completely crazy. To run grunt, it is necessary that node_module / grunt exists to make it work, you must either set the npm install or NPM install bitter will be required - if you know that you need more modules, just go ahead option. I do not know how Jenkins works, but it probably allows you to run...

ios - Delete a value from NSMutable Array -

मेरे पास NSMutableArray नामित _groupCategoryCurrentIds जिसका डेटा इस प्रारूप में है ({id = 2; नाम = फैशन;}, {id = 5; नाम = अवकाश}}, {id = 14; नाम = वस्त्र;}, {id = 17; नाम = खेल;}, {आईडी = 2; नाम = फैशन;}, {आईडी = 36; नाम = पुरुष;}, {आईडी = 34; नाम = वुडलैंड;}, {आईडी = 30; नाम = सहायक;}, { आईडी = 4; नाम = मनोरंजन;}, {आईडी = 40; नाम = शिक्षा;}) मैं वस्तु = 40 के साथ ऑब्जेक्ट को हटाने का प्रयास कर रहा हूं और यह मैं कैसे करता हूं यह _groupCategoryCurrentIds = [[_groupCategoryCurrentIds फ़िल्टर किया गयाअनुप्रयोग का उपयोग करना: [NSPredicate predicateWithFormat: @ "आईडी में नहीं% @", @ "40"]] म्यूटिवकॉपी]; लेकिन यह ऑब्जेक्ट को id = 4 के साथ भी हटाता है। कोई भी सुझाव जो मैं गलत कर रहा हूं? उपयोग करें [ NSPredicate predicateWithFormat: @ "id! =% @", @ "40"] या [NSPredicate predicateWithFormat: @ "id! =% @ ", @ 40] इस बात पर निर्भर करता है कि आईडी स्ट्रिंग के रूप में या एक संख्या के रूप में संग्रहीत है या नही...

Ruby on Rails: Mass-Assignment on iteration in loop? -

I'm getting an assignment error on a large scale. Features: 1, 2, 3, 4, 5, 6, 7 These numbers represent recurrence in this loop: & lt;% (1 ..7). I & Gt%; & Lt;% = select_tag "Hour [# {i}] [days]", option_key_description (day_hur)% & gt; & Lt;% end% & gt; This is in my model: attr_accessible: day,: open_time, close_time i like this Trying to create an array: "hour" => {"1" = & gt; {"day" = & gt; "Sunday", "Open_time" = & gt; 6 "," close_time "=> 6 "}," 2 "=> {" day "=> Sunday "," Open_time "=> 6 "," close_time "=> 6 "}," 3 "=> {" day "=" gtc: "Sunday", "open_time" = & gt; "6", "close_time" =>, "6"}} And I'm trying to save every repetition in the database in a new line def @hour =...

regex - To interrupt org-latex-pdf-process to regexp-replace some string of the .tex intermediate file and continue to export -

I am using org-mode to write some articles now. Organization-mode is really great tool to outline an article with great tables and image support Organization-mode inline. PNG image however. The pdf file can display. Because now the organ-mode can not control the width or height of the inline image shown, so for in-depth export, inline display and lower DPI in the PPG folder for high DPI PDF image in the PDF folder. Use matplotlib to produce PGG image. In the .org file, the image link is like [[File: PNG * *. Png]] and \ includegraphics {PNG * * png} in the .tx file created. Then use emacs org-latex-pdf-process to present it in PDF file. What do I need before or org-latex-pdf-process to replace a regexp with \ includegraphics {PDF \ *. Pdf} , and then produce the final PDF file. I am making an initial start, so there is no way to know how to put some code here. Can somebody help me out? With the help of some great people in the organ-mode mailing list, I finally ...

c++ - How to resolve compilation errors for boost multithreading simple program -

I have a problem compiling a boost integrated source code in my PC I am working on the environment below OS: CentOs 6.3 Boost Edition: 1.41 Install Header File Directory Promote: / usr / include / boost / IDE: code :: block for compilation Event: #include & lt; boost / thread.hpp & gt; # Include & lt; Iostream & gt; using namespace std; Zero threadfunction () {int counter = 0; (;;) {std :: cout & lt; & Lt; "Walking Thread" & lt; & Lt; ++ Counter & lt; & Lt; "Press Enter to stop" & lt; & Lt; Std :: endl; Try {// sleep and check in between. // To check for interrupts without sleep, // use boost :: this_thread :: interruption_point () // whatever promotes: Thread_Inverweld boost :: this_thread :: sleep (boost :: posix_time :: milliseconds (500)); } Hold (boost: Thread Interactive & amp;) {std :: cout & lt; & Lt; "Thread is paused" & lt; & Lt; Std :: endl; Return; }}} Int main () {...

iis - ASP.NET with AcuXDBC problems -

Image
We are currently running an ASP.NET MVC site which connects to the COBOL database via ACUGT. We are using ACUXDBC 8.01 drivers. Machine with ASP.NET site is on a machine that has Windows Server Standard 2008 with SP2, IIS 7, 4 GB RAM. The website about two times in a day stops working for one of two reasons: We get an error that says " System Runtime Interoper Services. COMException (0x80080005): The class factory for the component with COM CLSID (BFBBB600-C4DB-11D2-B11B-74F606C10000) failed due to the following error: 80080005 server execution failed (exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE).), Where we must restart the server. came IS processors take up to 100% and we have to stop the process and everything becomes normal. Has anyone encountered this problem and solved it? P> Below is the configuration section for ACU. AcuXDBC version 8.0.1 is quite preliminary (this was first introduced in version 7.4.0). It seems that the versio...

c# - ApplicationBar Foreground color not applying -

Image
I am working on a Windows 8 phone. I have an app bar with an icon, I've set the background and foreground color as the symbol too. ApplicationBar.BackgroundColor // Orange ApplicationBar.ForegroundColor // White Now the application bar looks like this: Now my phone theme settings I have set the accent color as pink so when I tap on the icon it looks like this: But when I tap on the icon, I want to That affect the way, even though my phone settings accent color pink or some other color and set the background the Light or Dark . It is not possible to change the behavior of the applicationbar in the way you describe it. The application is not regular control and it is not possible to change the behavior in this manner If you really want to get your behavior, then you have your own space for your application Will need to be created.