Posts

Showing posts from August, 2010

c# - WPF: Custom routed event with extra information -

I have a normal WPF window, let's call it TopLevel , in which one The bunch is, among other things, in a simple ListView , some events should be logged in various elements in the application. It looks like I have a group of user controls called grid in TopLevel which contains work each , there is an object with them, let's call it a order , as well as a standard checkbox. Now whenever a user checks a checkbox in work , but command objects in the event also top level Should be included, so I can work from TopLevel to keep it in the event log. How can I do this? I'm guessing that I want to use the rooted event for this, but I did not know how to get the "code" to order the "code" in the check box, call it TopLevel < / Code>. How to do something like this ... Private Zero checkbox Checked (Object Sender, Routing Avent ARG E) {Sendbox as Checkbox = Checkbox; Job Task = FindPartTkS (Checkboxes); Order order = task.orde

Insert programming code in a Lyx document -

What is the best way to insert a Python / C ++ code in a Lyrics document? Code is a shorter example than 20 examples. My lyrics document is using the document document class. Orjanp one insert -> program list Should be the option. He uses the latex package, so you must have it installed. It seems that support, and has been added to their screenshot, it seems that it gives you a lot of customization options.

How to make string as primary key in entity framework! -

I have a legacy table in which the employee's name and employee ID are now in the employee ID four because it is with an alphabet Can catch the starting values. Employee ID is the only unique area available in the table. Now I am using a view to get data from the table (it is in a different database). But the structure of my organization is refusing to recognize the idea due to the lack of int primary key. Any solution for this will be highly appreciated as I can not touch the heritage table. but my entity structure due to lack of int primary key Refusing to recognize the scene. I suspect. EEF supports wires in PK form. But the idea, of course, can not be PK. This means that you have to do some extra work while using them from EF, especially if you make them updateable.

actionscript 3 - Keyboard Control on characters made with Adobe CS4 Bone Tool? -

Is there a way to control the character made with Adobe CS4 bone tool through the keyboard button? Its limbs are connected to the IC chains formed by the bone tool. import fl.ik. *; Usage IKArmature IKBone IKJoint IKMover addEventListener (keyboardEvent.KEY_DOWN, keyDownHandler); Function KeyDownloadHandler (Event: Event) {If (event.keyCode == Keyboard.UP) {/ IKMover moveTo () method}}

iphone - Creating an object to act as a delegate - Objective C -

My question is really simple, how can I create an object to act as a representative, my representative Instead of joining the delegates to see? For example, I have X functionality, which requires representative methods, and they are currently setting up to use themselves as a representative. What is the best way For example, NSXMLParser representative methods - they exist, the representative I have been defined, but I do not want to call them as my own idea of ​​form / p> Controller .. What choice do I have? If you wish, you can specify another custom class to control the delegation method. Just create a square, call it MyXMLParserDelegate or something similar. Then, tell your NSXMLParser object to what you have to do, that it should be used as a representative of your class. If you are using the interface builder, then add a new object to the XIB file, set your class to MyXMLParserDelegate and then enter your NSXMLParser delegate of the object. If you

internet explorer - IE 8 - ASP.NET form not submitting when user presses enter key -

I have a simple form written in asp.net / c # and when trying to enter the input box of the form I have applied a fix for the previous bug, where pressing will only refresh the page without submitting form data, but now there is nothing just to enter, the fix is ​​below: & gt; Div style = "display: none" & gt; & Lt; Input type = "text" name = "hidden text" /> & Lt; / Div & gt; Anyone know about this or an alternate solution? I assume that you have a button that is on your page, as well as for it There is an event handler. Have you tried wrapping your form (with the button) inside a panel control and the default button attribute? i.e. & lt; Asp: panel id = "pnlMyForm" runat = "server" DefaultButton = "btnMyButton" & gt; & Lt; Asp: textbox id = "txtInput" runat = "server" /> & Lt; Asp: button id = "btnMyButton" text = "submit"

Is there a Python library for connecting to a PostgreSQL 8.4 server using certificate authentication? -

We are in the process of upgrading PostgreSQL 8.4 from PostgreSQL 8.3, in a large part so that we can start using. / P> We have some Python 2.x code that uses a database that uses what is a way to obtain another Python Library which uses a proof to access PostgreSQL ? Seeing through PyGreSQL source, I found no way to give certificates. psycopg2 is based on libpq, so it should work there. I do not think there is a specific interface for this, so you have to use environment variables to control it (see libpq document to see it), but it should work. (Disclaimer: I did not really try to do this, but libpq at the top of the job)

Inserting data in oracle database using php -

निम्न कोड उत्पन्न कर रहा है चेतावनी: oci_execute () [function.oci- निष्पादन]: ORA-00911: पंक्ति 17 पर एफ: \ wamp \ www \ SEARCH इंजन \ done.php में अवैध वर्ण कोड है ... & lt;? Php include_once ('config.php'); $ Db = oci_new_connect (ORAUSER, ORAPASS, "लोकलहोस्ट / एक्सई"); $ Url_name = $ _ पोस्ट [ 'फ़ील्ड']; $ KEYWORD_NAME = $ _ पोस्ट [ 'पाठ क्षेत्र']; $ Cat_news = $ _ पोस्ट [ 'चेकबॉक्स']; $ Cat_sports = $ _ पोस्ट [ 'checkbox2']; $ Anchor_text = $ _ पोस्ट [ 'टेक्स्ट फ़ील्ड 2']; $ विवरण = $ _ पोस्ट [ 'textarea2']; $ Sql1 = "URL (Url_ID, Url_Name, Anchor_Text, वर्णन) मूल्यों में डालें (9,"। "{$ Url_name} '', ''। '{$ Anchor_text}'।", "। '{$ Description}' । ")"; $ परिणाम = oci_parse ($ db, $ sql1); oci_execute ($ परिणाम); ? & Gt; एसक्यूएल में सीधे उपयोगकर्ता इनपुट को सम्मिलित नहीं करें एक सुरक्षित कथन तैयार करने के लिए उपयोग करें एक

html - How to Create Automatically Expanding Block -

I need to create a one-line 3-column layout I left and right column each one without any type of word Should be displayed (they should expand and contract to fit the word). The center column should display a potentially long string, which is small to fit between two columns. There is a bit of HTML to express this idea: & lt; Div class = "container" & gt; & Lt; Div class = "left" & gt; Left & lt; / Div & gt; & Lt; Div class = "center" & gt; Center Center Center Center Center & lt; / Div & gt; & Lt; Div class = "right" & gt; Right & lt; / Div & gt; & Lt; / Div & gt; and some related CSS: . Container {White spot: Abrop; }. Left {display: inline-block; }. Center {display: inline-block; Hidden flurry; } .right {display: inline-block; } The next step is to set the center element to either expand or contract itself to fill the space between the left and right elements. Li

bash scripting challenge -

I have to write a bash script that will repeat the contents of a directory (including the subdirectory) and will substitute the following: Replace 'foo' with any file name with 'bar' Replace 'foo' in the contents of any file with 'bar' So far I have found find -name '*' -exec {} \] : -) rename E>: find -f \ (-exec sed -is / foo / bar / g \ ;, -name \ * foo \ * -exec rename foo bar {} \; \ )

Where case classes should NOT be used in Scala? -

Scale is the case class standard class which is enhanced with pattern-matching, equal, ... (or is i wrong?). Apart from this, they do not need any new "new" keywords for their instanciation, I think they are simple to define compared to regular classes (or am I wrong again?). There are many web pages in it that how they should be used (mostly about pattern matching). But where should they be avoided? Why do not we use them everywhere? There are several places where the case classes are not enough: / P> when Wants to hide any data structure. A type of two or more levels as part of the hierarchy. When the constructor is required special consideration. When Extractor requires special consideration. When similarity and hash codes require special consideration. Sometimes these requirements appear late in the design, and one needs to change a case class in a general class. Since the benefits of a case class are not really great at all - they have been spe

php - Sorting an array of SimpleXML objects -

I've read what I found on stackoverflow and is still unclear on this. i is an array of some simpleXML objects like this: array (2) {[0] => Object (SimplifiedMailment) # 2 (2) {["name"] => String (15) "Andrew" ["age"] = & gt; String (2) "21"} [1] = & gt; Object (simple assemment) # 3 (2) {["name"] = & gt; String (12) "Beth" ["age"] = & gt; String (2) "56"}} and I want to be able to sort by sorting, ascending or descending. Something like this: sort ($ data, 'name', 'acc'); How do I pass an object over the array and sort by the way I like it, based on its value. For reference, one identical. The NET solution will be with these lines: XmlSortOrder command = XmlSortOrder.Ascending; If (sortDirection == "ACC") {order = XmlSortOrder.Ascending; } Expression. Edset (column settingon + "/ text ()", order, XML orders order, "N-U

c++ - Can I use glibc under windows? -

Is it possible to use glibc (as a replacement for msvcrt) under windows? I know that this is a stupid question, and answers like pops will be popping up, but I'm really asking: Is it possible to link globals to windows and use all library functions like msvcrt? ? glibc is used once to work on different * findings, these days glibc It is definitely Linux specific, it certainly will not work on windows.

windows mobile - Determine screen color depth/monochrome in .NET compact framework 2.0? -

I am using .NET CF 2.0 on many devices that have different display capabilities (especially color / monochrome ) D run-time, but can not find any method that provides access to this information. Ask for colors with the P / NINX value. Edit 1 This gives you a color depth, but the actual "color" vs "monochrome" She is actually not provided anywhere because it is not really important at that level. Normally you can see the depth of color and say that if it is 8-bit or less then it is likely to be very deep. There is a possibility of having a better color Of course the OEM could use a 16-BPP driver on a monochrome display. There is no reason why you can not do this, it's just really worthless useless because there is no wire or provision for extra bits in monochrome hardware, so they are thrown on the floor. If you really know, in fact it is color or monochrome, the only reliable way to know is to actually ask the user through any setting.

c# - How expensive is a GUID cast and comparison vs a string comparison -

जो तेज़ हो जाएगा? बाल समान = (गाइड) पहचानकर्ता == आईडी; Bool same = String.Equals (स्ट्रिंग 1, स्ट्रिंग 2, स्ट्रिंग कॉमपरिन। ऑर्डिनल इज्ञोर केस); मैंने इस कोड का इस्तेमाल किया: ऑब्जेक्ट पीड़ित = Guid.Empty; Guid लक्ष्य = Guid.NewGuid (); स्टॉपवॉच SW = नया स्टॉपवॉच (); sw.Start (); (इंट आई = 0; आई & lt; 10000000; i ++) के लिए {bool equal = ((शिकार) शिकार) == लक्ष्य; } कंसोल। Wrightite ("प्रत्यक्ष कलाकार: {0}", sw.Elapsed); sw.Reset (); sw.Start (); (इंट आई = 0; आई & lt; 10000000; i ++) के लिए {bool equal = Guid.Equals (शिकार, लक्ष्य); } कंसोल.प्रकाशलाइन ("Guid.Equals: {0}", sw.Elapsed); sw.Reset (); sw.Start (); स्ट्रिंग ए = पीड़ित। टॉस्ट्रिंग (); // जैसा मिकेल स्ट्रिंग द्वारा सुझाया गया है b = लक्ष्य। टॉस्ट्रिंग (); (इंट आई = 0; आई & lt; 10000000; i ++) के लिए {bool equal = String.Equals (a, b, स्ट्रिंग कॉम्परियन। ऑर्डिनल इग्नेोर कैस); } कंसोल। Wrightite ("String.Equals: {0}", sw.Elapsed); Console.ReadLine (); और विभिन्न मानो

Overlay Google Maps Normal tiles in the Google Earth Api -

I do not believe this is possible, but I would like to overlay the normal Google Maps tile (Type: G_NORMAL_MAP) Google Earth Web The satellite map inside the API I want to display is very inconsistent for the layers. Any help would be appreciated if it is possible, and if it is a direction how to do it. Thanks! It is not possible, unfortunately: There is no 'roadmap' or 'normal' map type in the Google Earth API. That's why it comes out of the easy way. The tiles used in Google Earth are unrestricted, while Google Maps tiles is broadly served in Mercator Projection. Although theoretically you can unpublish Google Maps tiles so that they can align properly with Google Earth tiles, it and / or <. P> Though I believe, it would be great: -)

excel - how to use a macro to transpose data from rows into columns -

I'm totally new to VBA (aside from recording and running manually), so I was hoping someone could help me with this design. Based on the date and type, I have a worksheet with unrated # rows according to a unique ID (column A). : ABCD1 12 Janet 2010 Type Single Person 1 1 16 Parent 2010 Type B Person 1 2 06 DC 2 2 9 Type A Person 2 3 16 DC 2 200 Type A Person 1 5 20 dc 2900 type one person 2 5 02 january 2010 type b person 2 4 10 dc 2 2009 type one person 2, based on unique ID, i will copy this data per 1 copy I want to move to the unique ID, and then put all the rows in sequential order So that it looks like this: ABC 1 person 1 12 January 2010 (A) 16 January 2010 (B) 2 person 2 06 dc 02009 (a) 3 person 1 16 dc 2009 (A) 4 person 2 10 dc 2009 (a) 5 person 2 20 dc 02009 (a) 02 January 2010 (b) Can a macro be done in this? Use a pivot table! Select the entire table, and create a pivot table with column A in the column field, the top field is column B and only calculates

Directional Logic PLC -

How can you determine the direction of input by using stair pictures with PLC? Meaning, how can you save the situation? Information of the previous state I need to set the direction that photobom has been activated .. forward or reverse if they are active in reverse, do one thing. If they are further active, take a different action. The input to be labeled from 1 to 6. The normal direction is 1 to 6. The simple implementation of a link here is the ladder argument: | ----- [] ----- + ----------------- () ---- ---- | | Input | Output | | | | | ----- [] ----- '| Output and here's where you can reset the output: | ----- [] ---------- --- + --------- () -------- | | Input | Output | | | | | ----- [] ----- [/] ----- '| Output Reset These ladder logic create the original building block for memory. I'm not sure, but what are you looking for this? Generally, the language implementing ladder logic will contain high level elements that apply memory such as

osx - What is the mac equivalent of "/etc/apache2/sites-available"? -

P> available from sudo ln -s /etc/koha/koha-httpd.conf/ etc/apache2/sites/ChoA No site is available in my apache2 directory, only / private / etc / apache2 / extra /private/etc/apache2/httpd.conf/ Private / etc / apache2 / magic / private / ATC / Apache 2 / mmet type / private / etc / 2 / ma To run Koha, code / http: // servername: 8080 / / Code>, where I get it "servername" has been specified in Kohha-httpd.conf as such: ## Intranet & lt; VirtualHost 192.168.1.4:8080> ServerAdmin Webmaster @ Local DocumentRoot / usr / share / Koha / intranet / htdocs Server Name John-Breedloves-Mac-mini.local: 8080 # of the server intranet.mydomain.com ScriptAlias ​​/ cgi-bin / Koha / "/ usr / Share / Koha / intranet / cgi-bin / "ScriptAlias ​​/index.html" /usr/share/koha/intranet/cgi-bin/mainpage.pl "ScriptAlias ​​/ Search" / usr / share / koha / intranet /cgi-bin/search.pl "Errorlog / var / log / Koha / Koha-error_log # Tr

php - Sort array of objects -

I have had problems with the PHP manual, so I want to ask it here ... I have an array of objects. Is there a way to sort on the content of the object? For example, my array is: Array ([0] => Study Class Object ([ID] => 123 [alias] = & Gt; Mike) [1] => Study Class Object ([ID] => [456] [nickname] => Elise) [2] => Study Class Object ([ID] = & gt; ; 789 [nickname] = & gt; Zeke] [3] => Study Class Object ([ID] => 987 [nickname] => DAVE]) In the example, the output should be: Array ([0] => Study Class object. How do I determine the array by the object's [nickname] ([Id] = & gt; 456 [nickname] => alice) [1] = gt; StdClass object ([ID] => 987 [nickname] => DAVE] [2] => ; StdClass object ([ID] => 123 [nickname] => Mike) [3] => Post-text "itemprop =" text "> You specify the function to compare and sort based on the function, eg: function my_comparison ($ a, $ b) {return strcm

language agnostic - What is the preferred way to store different versions of data? -

What if you are writing an application that requires reading and working with two versions of data The best way to organize my classes to represent that figure is to come up with three scenarios: General support / special children data union Different Textures Version 1 Car Example Byte Dwarkat is Int Color byte Byte Bite HasSpoiler Float Engine Segment Byte CylinderCount Version 2 Car Byte Dorcant Ent Color Enum: Int Mouneroff Type Anonym: Int Trunk Assets: Engine Engine Type Normal basis / specific children The method with it, between two versions of data and one child class for each version of the data The common areas are the base class. class car {byte dwarcount; Int color; } Class carrier 1: car {byte smootherroof; Byte Hespiiler; Float Engines; Byte cylinders; } Class Performance 2: Car {Ent Moonrof Type; Int TrunkAccessories; Int engine Existing child class Data for a conceptual unit is divided between two definitions, because it does not mak

What components and IDE add-ins do you install with Delphi? -

After the Delphi's clean installation, what components and IDE add-in do you decide that you install? What is your Delphi "rig"? Delphi 2007 / Delphi 2010 - JDI Code Library and JDI Visual Code Library (600+ Component) - JDI API Library & amp; Security Code Library - Adding many features to GeExts IDE, Delphi and C ++ builder are a free set of tools designed to increase the productivity of the programmer > - Virtual Treeview is a tree-view control built from the ground up. Over 5 years of development it is one of the most flexible and advanced tree controls. (EasyList View, Virtual ShellTools, etc.) - EasyListview is a control, there is no dependency on Microsoft's list view control, but it has all the features of the latest version of Microsoft. Apart from this, 'explorer.xa' has also been included as shell components. Lightweight networking components - There are simple low-level non-visible objects for easy pro

Random linq result -

मेरे पास यह LINQ क्वेरी है: var agnts = (db.agents में से एक नया { A.UserId, a.name}) लो। (10); मैं अपने एजेन्ट टेबल से बेतरतीब ढंग से 10 रिकॉर्ड कैसे प्राप्त करूं? मैंने कोशिश की है: agnts = agnts.OrderBy (n => Guid.NewGuid ()); लेकिन यह कुछ भी नहीं लगता है। मैं इस पर किसी की मदद की सराहना करता हूँ । धन्यवाद, लुई तब आप करते हैं agnts = agnts.OrderBy (n = & gt; Guid.NewGuid ()); के बाद var agnts = (db.agents में से एक का चयन करें नया {a.UserId, a.name})। लो (10); एजेंट पहले ही ले जा चुके हैं आपको लॉन्च करने से पहले OrderBy () निर्दिष्ट करना होगा ()

design patterns - Help designing my own rough DataContext -

I did a little bit of LINQ programming with TDD ASP.Net MVC and liked it. Degraceing, I am now learning webform against stored procs and can not use linq. I would like to maintain some loose coupling and testability which was mixed with MVC. I did not have time to learn and setup a dependency injection infrastructure, instead I created an object factory that is necessary to be configured to make fake or actual examples, depending on which is necessary is. The problem with this approach is that the factory offers new examples of my test reserves, so when the unit accepts a repository for the unit, it can be done without any changes in the context of my unit test. Receives a fresh example - this is the problem. Since there is no firmness mechanism in the examples of my examination and I am not using dependency injection, I need a way to use the current data reference of the unit test for the entity A, so that it can replace the filthy property of the entity B. Could get. Generall

Tips when moving from YUI Datatable to Jquery Datatable -

I used YUI Datatable to present all my records so far ... Since jazzery is very popular and YUi , I have decided to use it ... What are the lack of learning while running from UI and jquery? Tips and tricks about jazzery datasets? Can I configure paginator in jquery datatable? Learning curve: You should know that jQuery can be simpler than YUI Actually depends on you what you are trying to do. That is, tables and processing that are necessary for you, how complex are the simplest jQuery datatable only in order to make a line of code required. Since you are already familiar with YUI, I will not see any problem, which you will have with jQuery. And yes you can configure the paginator in the jQuery datatel.

iphone - How do I open links in a WebView rather than Safari? -

I have a text view that contains links to web pages, like Wikipedia usually when I click on the link So it closes my app and unlocks the safari. How can I control the hyperlink, so it loads web pages in UIBelwee instead of Safari? What do I do not want to add a button to the link, because it is a scrollable text view. Is there a zero that I can call, because clicking on the link is also showing the web view is clicked. Thanks (I'm learning a 12-year education for the program for the iPhone. View the Speaker or go to timh.me.uk for my first app) & lt; Key & gt; CFBundleURL types & lt; / Key & gt; & Lt; Array & gt; & Lt; Dict & gt; & Lt; Key & gt; CFBundleURLName & lt; / Key & gt; & Lt; String & gt; Com.test.nttp & lt; / String & gt; & Lt; Key & gt; CFBundleURLSchemes & lt; / Key & gt; & Lt; Array & gt; & Lt; String & gt; Ntp & lt; / String & gt; & Lt; / Array

performance - Which kind information to cache in memory? -

It's easy to set the information in the cache in a web-site like a node, where you have some nodes, most popular Pages, you can keep in memory For example - wiki sites or social networks? added There is something wrong with the "Add Comment" button ... well, actually, I ask Then, after the logical caching of the static part of the site, you can cache only the finished results as you do. (Not in memory, but somewhere). All you can do, tell me wrong if I'm wrong. Caching is understandable and only if you have only some (spatial, temporary), like most More frequent questions (Temporary area) If you have a model where each page is brought with the same probability, then caching is a complete nonsense, yes.

How can I use PowerShell with the Visual Studio Command Prompt? -

I am using beta 2 for a while and making me crazy that I am CMD.ax when the VS2010 command Prompt is running. I was making a good makeover 2008.ps1 script for Visual Studio 2008. Does anyone have a vsvars2010.ps1 or something similar? Stolen generously from here: I was able to work it out. I added the following to my profile .ps1 and it is well with the world. pushd 'c: \ program files (x86) \ Microsoft Visual Studio 10.0 \ VC' cmd / c "vcvarsall.bat and set" | Forex currency {if ($ _-- match "=") {$ v = $ _ Divided ("="); Set-item -force-path "ENV: \ $ ($ v [0])" -value "$ ($ v [1])"}} popd write-host "` nVisual Studio 2010 set command prompt variable. "- Forgreen Color Yellow It worked well for years - Visual Studio 2015. vcvarsall.bat no longer exists unless you can use vsvars32.bat file Is located in the Common7 \ Tools folder. pushd 'C: \ Program Files (x86) \ Microsoft Visual Studio 14.0 \ C

timer - scheduling runnable tasks in java -

I'm following an interesting point on the use of scheduled Tahradpool Explorer for some repetitive tasks. Scheduling this object returns a scheduled return futures object that can be used to cancel the next run of the task. One thing to note is that the work itself is completely decrypted from the schedule - scheduled exclosure service executor = new Scheduled Thread Paul Exchanger (1); ScheduledFuture nextSchedule = Examiner Schedule (work, 60000, time unit. Milliseconds); Where - Some Task Functions = New Tasks (); So the work itself is not aware of the schedule if there is any way to cancel the job and create a new schedule for yourself, please understand. Thank you There is no such reason that this work is done by scheduled exhaupors Service can not reference and schedule yourself to run again if necessary: ​​ // (need to create last variable * if * this is a Local (method) variable.) Last Scheduled Exclor Service execService = Exporter. NewSingl

c - DBus Glib Send Signal - No signals being emitted -

I am trying to send a signal to the session message bus I use the D-Pat Debus Debugger with no problem Unfortunately, D-leg does not allow you to connect the debug to the signal, in the replacement I am using dbus-monitor "type = 'signal'" I am going to see what has been sent so far except what I send It works. My impression is that when a call dbus_g_connection_register_g_object (connection, path, object); It registers all the methods, properties and signals within your self confidence xml file. This can be true because I will not complain about the signals associated with DBUS before joining them. I g_signal_emit_by_name (self, "application_identifier_changed", "some new mad support", NULL); . This function within the app itself, I can connect to the signal and triggers it, though nothing in DBS Monitor shows I should remember a few simple. The files contained in this are: main.c Ent main (int arguments, four * argv []) {GINT r

javascript - array join() method without a separator -

var arr = ['जी', 'ओ', 'ओ', 'डी']; Var arr2 = arr.join (); आरआर 2 "जी, ओ, ओ, डी" होगा मैं "अच्छा" प्राप्त करना चाहूंगा मुझे पता है कि इसे प्राप्त करने के लिए मिलियन अन्य तरीके हैं लेकिन उत्सुक था अगर इसमें शामिल होने का कोई तरीका था। धन्यवाद ज़रूर - बस खाली स्ट्रिंग पास करें: var arr2 = arr.join ('');

c# - Using Entity Framework, how do I reflect a many to many relationship and add entites that exist to a new entity being created? -

I'm new to the unit framework and I'm trying to understand things. I have created a database that is not very complicated. It has about 7 tables and 3 of these mapping tables to add a table record w / other. Example I is using this: The table user < RoleId Role Name Table: UserRole UserId RoleId The foreign keys are mapped to my database. When I'm making a new unit model inside VS 2008, relationships look right in the picture, but UserRole does not have a table for the table. Relationship between the user and amp has been mapped as many; role. My problem is that I can make new users and I can make new roles, but I can not understand how to create a new user with an existing role. In addition, the UserRule table is probably not mapped properly within the model. Even my code is here: object_city & lt; Role & gt; Roles = references Roles; Role Role = Reference. Where (C => C. RelayName == "Subscriber"). first ()

networking - What is the state of C10K-like event-based server development in TCL? -

TCL is a good simple programming language, but does not receive and / or respect credit. I learned it back in college in 1995 and immediately forgot about it that it stumbled again recently. I take more interest in TCL for the development of TCL-based network services as well as for web development. It has been mentioned that TCL has made network programming easier. However, it seems that TCL uses the selection () under those links which do not scale well keeping the "web scale" in mind (see). I have searched for libevent, libev, raw epoll / kqueue but I do not see much. Do you know about any "modern" (for lack of better word) incident-based network services, written in TCL? Do you have any signal, suggestion, or best practice for developing a TCL-based server? Thank you! This topic has been discussed at comp.lang.tcl in the previous year and it appears that The situation is: "Core team is thinking about it": For the web server, which is

algorithm - how to merge two sorted integer array in place using O(n) time and O(1) space cost -

For example, the position of the beginning of an integer array and its two consecutive sequences, which is 'B1' and 'B2', to With this the situation is provided with 'last' which indicates the ending status of the second sequence. From array [b1] to array [B2-1] and array [B2] from array [last] in a different order, how do they O (n) time and o (1) space cost This is not an easy problem, it is possible, but rarely done in practice because the N-scratch This is much more complex than the standard merge using space. Paper has been since the 80's, although the practical implementation did not really come later. Earlier, in 1977, L. Treb-Prado's paper tells Huang and Langstone quite a while ago, but I have been challenged to make that text accurate. Only references are abundant. An excellent later publication by Geert, Katajainenb, and Pasanen (1995) is a good coverage of multiple algorithms, and Trabb-Prado's contribution in the context top

java - Browser treating real file differently than servlet-generated file -

text after "itemprop =" text "> I use HTML 5, the user has an application to go to listen to some audio samples on the server. If I specify the path to an actual audio file on the server, things work as expected: & lt; Audio src = "/ audio / English / banana_1.mp3" control & gt; Your browser & lt; Code & gt; Audio & lt; / Code & gt; Does not support element & Lt; / Audio & gt; However, if I point out that a resource actually generates an audio file that is servlet, audio does not seem to play: & Lt; Audio src = "/ app / db audio" control & gt; Your browser & lt; Code & gt; Audio & lt; / Code & gt; Does not support element & Lt; / Audio & gt; I have confirmed that this servlet writes the required audio file; I downloaded and played it straight back and I have typed the reaction material on audio / mpeg and audio / x-mpeg but there is no dice. Do I have some other headin

objective c - NSConcreteNotification is received, but not defined? -

I am writing preference for my app which registers it to launch on login ( LSSharedItemList API). All goes well and my app toggles its presence in the user's login items on the checkbox state. Now I want to solve another problem when the user actually removes the app from "login items" in "code.accounts.prefPane" . By using the notification watcher, I think the Distributed Notification Center Com.apple.loginItemsListDidChnage (note the typo) notification, so I'm the only selector for that selection That is the IBAction ) which handles the checkbox in the preferences window (which in fact registers the app to login with the [UN] object.) The problem occurs when I send the action I try to compare the class of A which turns my app into a login item. I use the NSConcreteNotification class by using [sender details] and [sender class] , but as soon as I can compare it with I try - Code Breaks is saying that no such class has been defined: If (

last sibling in jquery? -

Can someone help me in selecting the last brother of the element clicked in jquery? Click $ ("# myElement")

debugging - I don't have a clue on how to debug an application in Visual C++ 2008 Express -

Initial question: I want to debug some code which is compiled I press debug, I asked for an xi file Selecting Browse and Visual C ++ XE does not work and I do not know how to change it. How can I change this EXE file? What should I set it? It seems that you are debugging DLL. To debug DLL, create a Win32 console program EXE and then make a function call that is highlighted by DLL. Or, you can create Win32 console program (EXE) and enter your code in it; So you can debug EXE directly.

osx - How to use notificationconf? -

I have read the tutorial about creating push nodes and notification / posting. The only problem is that it seems that notificationconf is unable to create that node ... My first question: the node name ( notificationconf Tools) and Notification name ( NSString which I use from the app) do the same thing? Second: Notificationconf createnode push.example.com Enter the BFMyTestPushh Notification Bifon Password: // Password from the Open Directory for User BIEF - This is the administrator of the 10.6 server. 2010-01-24 13: 24: 58.916 Notification Conff [15221: 903] XMPP session 2010- 01-24 13: 24: 58.931 Notification [15221: 903] From the user com.apple.notificationuser@push.example.com/TestPubsub Connecting to push.example.com .222 with security = 2 ... ... 2010-01-24 13: 24: 59.130 Notification Conference [15221: 903] Session Callback (Event 1) 2010-01 -24 13: 24: 59.130 Ucnakendra [15221: 903] The session was stopped (Event 1) What do I do wrong? And posting notifi

nsurlconnection - Does the iPhone / iPod touch cache data also on disk, or only in memory? -

I'm not sure, but I think I was reading some time ago that anything on the iPhone / iPod touch disc Does not cache. Cash only in memory so the cache is not persistent when the app ends. This will bring data back to the net after the relaunching the application. is it true? You can use the iPhone simulator, open the terminal or finder, and `library / application support / IPhone simulator / user / application / then any directory that you have in your application must be opened. You will see a document directory, library and tmp directory. I have never seen whether UIWebView is caching anything but I know that core data If you exclude your data using CF networks, then I believe that this will allow you to tmp or Keeps the document if you wish. TMP will not be backed up with the iTunes sync process, but documents , hence will not use documents temporary cache Otherwise you will simply waste the space and slow down the sync backup. In addition to the

php - utf-8 problem in using jquery autocomplete tags -

अरे साथी हाल ही में मैंने jquery auto-complete टैग का उपयोग किया सबकुछ ठीक हो जाता है utf-8 टैग सुझाव के अलावा, केवल अंग्रेज़ी टैग सुझाए गए हैं मुझे लगता है कि कुछ गलत है स्क्रिप्ट लिंक्स यह अंग्रेज़ी टैग्स के साथ ठीक काम करती है, लेकिन फारसी की तरह बहु बाइट भाषाओं के साथ नहीं शायद 212 में लाइन TextboxList.Autocomplete.js को दोष देना है: regexp = नया RegExp ('\\ b' + एस्केप REGExp (खोज), असंवेदनशील? 'I': ''); यह एक शब्द सीमा के बाद दिए गए चरित्र की तलाश में है लेकिन शब्द सीमा शब्द वर्णों की पहचान पर निर्भर हैं, और जावास्क्रिप्ट RegExp की शब्द वर्णों की सूची सिर्फ एएससीआईआई अल्फ़ान्यूमरीक्स प्लस _ है यद्यपि RegExp को यूनिकोड के बारे में कुछ नहीं पता है, यह काम नहीं करेगा जहां शब्द गैर-एएससीआईआई वर्ण से शुरू होता है। आप \\ b से छुटकारा पाने की कोशिश कर सकते हैं, जिस स्थिति में शब्द की शुरुआत में न केवल दिए गए स्ट्रिंग के साथ किसी भी सुझाव से मेल खाएगा।

Compiling Issue. C# -

There is a problem. When I compile my code again, then none of the changes takes effect. I have tried to add a message box, change the labels, color the text .. everything when I do something Does not change, so it seems to load the old code. Any ideas what's going on? Is there any cash or anything? I had a GAC'd version when I tried to debug the same DLL During the load, I had runtime run above GAC rather than one version instead of GAC.

c# - Global Variable not incrementing on callback functions -

After I am using Webclient to upload data to a server using Async calls, WebClient WebClient = new webclient (); WebClient.UploadDataAsync (Yuri, "Pt", Buffer, UserToken); I have linked datepload progress and data uploads related events to the appropriate callback function // Full webmail uploaded. Upload Data Contains + = New UploadData Provisioning Handler (UploadDataCallback2); // uploaded progress webClient.UploadProgressChanged + = new uploadprogressingthan handler (uploadprogelbackback); And in the function I am trying to show some message boxes: // upgrade date progress zero upload progress callback (object sender, Upgrade Progress Changed Event ARG E) {Show the message box (this, "upload progress, x =" + x); X ++; MessageBox.Show (e.BytesSent.ToString ()); } // Full UploadDataCallBlack2 (Object Sender, UploadDataCompletedEventArgsE) on uploaded date {MessageBox.Show (this, "uploaded, x =" + x); X ++; MessageBox.Show (ASCIIEncodin

c# - Invoking a Thread .NET .this vs. .control -

I have noticed that when "return your focus back" to your main thread, "this" or control You want to do it, call it well. I have noticed that it does not matter if you give back control, so someone can tell why I will bring a control on the main thread? Does this make a difference, or the main thread is being prohibited in a prohibitive form? What, this.Invoke (InvokedMethod, args) 1 is on my main form button1.Invoke (InvokedMethod, args) P> control uses the control handle to determine which formula controls the UI thread is, and then uses that thread to execute. It may be possible to control many UI threads (a UI thread is any thread running a message thread), or it is possible to control a non-UI thread (if programming is incorrectly controlled). Generally, there is no difference in invading the main form or control, but it can be a case under certain circumstances.

jquery - Pull text <TD:last> based on content of the first <TD:first> -

I have a table with dozens of rows, one of which is: & Lt; TR & gt; & Lt; TD & gt; & Lt; B & gt; Order date & lt; / B & gt; & Lt; / TD & gt; & Lt; TD & gt; [Foo] & lt; / TD> & Lt; / TR & gt; & Lt; TR & gt; & Lt; TD & gt; And I want to value the last cell in a var.

Use regex to extract integer from url in a string with php -

मेरे पास एक यूआरएल है जैसे नीचे दिए गए उदाहरण http://www.website .com / page.php? Pid = 263547322425 और amp; foo = भी मैं pid का मूल्य प्राप्त करने के लिए regex का उपयोग कैसे कर सकता / सकती हूं? पीड = के अंत से मूल्य को & amp;? $ matches = सरणी (); अगर (preg_match ('/ pid = (\ d +) /', $ url, $ मैच)) {$ matches [1]; // pid मान}

asp classic - ASP check request method -

क्लासिक एएसपी में मेरे फॉर्म को जमा कर दिया गया है या नहीं? < Div class = "post-text" itemprop = "text"> सबसे पहले, यदि आप अनुरोध कर सकते हैं, तो आप जांच सकते हैं। सर्वर ("REQUEST_METHOD") = "पोस्ट" । यह मानते हुए, आप फॉर्म सबमिट करने के लिए POST विधि का उपयोग करते हैं, आरंभिक लोड में GET विधि होगी, बाद में सबमिट की जाएगी POST। आप अपने फ़ॉर्म में एक छिपे हुए फ़ील्ड भी जोड़ सकते हैं, यदि वह वैरिएबल पोस्ट डेटा ( Request.Form ऑब्जेक्ट में सेट है), आपको पता चल जाएगा कि यह एक पोस्टबैक है, अन्यथा यह पहला लोड है।

python - Pylons: free module-level variables? -

It is also not certain that the module-level is right here, but ... I have Within a project and model component, I have a global variable, doctor, in which I have to use different query objects in __ init __.py . (The doctor has a document handle on an XML file that I am using as a fake DB.) My question is, when __init __ Is the term of Py end? Currently I am not releasing the document with Doc.Nelilk () and I am not sure where to place it. Alternative design I was thinking that consumer object (questions) level of this doctor (i.e., make it a singleton). But it appears that the life of my query object is such that the doctor is always redistributed to a new document handle. class query (object): doc = none def __init __ (self, content = none): self.content = content if self.doc == none: self.doc = parse (Os.path.join (config ['app_conf'] ['xmldb'], "sample_search_result.xml")) I can tell because the elements of the document are changed . Do

Python: xml.dom.minidom empty nodeValue nonempty toxml() value -

मेरे पास एक नोड है जो नोड के नोडवेल्ले प्राप्त करता है: parent.getElementsByTagName ( "यूआरएल") [0] .nodeValue जो कुछ भी रिटर्न नहीं देता: & lt; br / & gt; जब मैं करता हूँ: parent.getElementsByTagName ("Url") [0] .toxml () यह रिटर्न: & lt; यूआरएल & gt; www.something.com & LT; / यूआरएल & gt; मुझे यकीन नहीं है कि यहाँ क्या हो रहा है एक अन्य डेटा बिंदु: जब मैं नोड नाम के बजाय नोड वैल्यू करता हूं, जैसा कि अपेक्षित, यूआरएल देता है। कोई भी विचार? इसे आज़माएं: parent.getElementsByTagName ('Url') [0] .childNodes [0] .nodeValue

HTML/XML Parser for Java -

क्या HTML पार्सर में निम्नलिखित विशेषताएं हैं: फास्ट थ्रेड-सुरक्षित विश्वसनीय और बग-रहित पार्स HTML और XML गलत HTML संभालता है एक DOM कार्यान्वयन है HTML4, जावास्क्रिप्ट, और सीएसएस टैग का समर्थन करता है अपेक्षाकृत सरल, ऑब्जेक्ट-ओरिएंटेड एपीआई आपको लगता है कि बेहतर पार्सर क्या है? धन्यवाद। चेक आउट करें। यह दोनों लाइब्रेरी है जो आप उपयोग कर सकते हैं और एक डाटा निष्कर्षण उपकरण है, जो मुझे लगता है कि वास्तव में आप क्या करना चाहते हैं। आप स्केकर को निर्देश देने के लिए XML स्क्रिप्ट फाइल बना सकते हैं कि आपको अपनी आवश्यक जानकारी को कैसे निकाले और कहां से यह देखने के लिए कि क्या यह करने के लिए आप क्या करने की कोशिश कर रहे हैं, यह ठीक है।

Smart Phone ! Iphone | Reading the device phone number HTTP etc -

Does anybody know if one of these devices is connected to the Web or not, its phone number is the header or Can be read by any other medium? Phone numbers do not go into HTTP headers Your IP address will be visible to the web server, but it is. EDIT: Ah, I want you want to get a phone number This is a privacy issue for many people and the consensus is that the slight inconvenience to clearly mentioning a phone number is worth the peace of mind that someone is not stealing it. What you can do is for the user to number, and store it with the UDID in the phone of the database. The next time your app connects to your server, you can send it to the phone's UDID and view that number.

sql server - Datetime display using month name in T-SQL -

is an area that has a date type in the table. The format of this field is mm / dd / yy. Change in DD-month name-yy? select convert (VARCHAR, GETDATE (106) p> For example, "25 January 2010" If you want your exact format, then you have a little manual feeding Required: Select Cast (VARCHAR as GETDATE)) + '-' + Left (DATENAME (mm, GETDATE ()), 3) + '- For example, "25-Jan-10" for example (CAST (VARCHAR as the year (GETDATE ()), 2) > Update: In fact, it is available A short way to do this is: SELECT REPLACE (convert (VARCHAR, GETDATE), 6), '', '-') Eg "25-Jan-10"

C#: Webclient Assigning Chunk size when using AsyncUploadData -

After I am using Webclient to upload data to a server using Async calls, WebClient WebClient = new webclient (); WebClient.UploadDataAsync (Yuri, "Pt", Buffer, UserToken); I progressed to appropriate callback functions // Upload Date DatauploadProgress and DatauploadCompleted Events have attached webClient.UploadProgressChanged + = New UploadProgressChangedEventHandler (UploadProgressCallback); // upload date progress zero upload program callback (object sender, uploadpregraging angle, rgs e) {// magic goes here} I have to give a chunk / partial file upload size to get the callback function I am trying to be told at periodic times. Note: I know that to read the bytes sent when calling the callback function, I read e. Bytescent can use , but it is not what I am trying to do. You can not define the Chuck size, such as WebClient that Does not expose any property for the handle. If you want to control the length of that pack, you will need to move yo

java - Duplicate namespace declarations in JAXB generated XML -

I am using JACAB to generate XML from Java object, this is a real time, high enough message rate The application is PM. However, sometimes and without any obvious clues, I get duplicate namespace delivery in the XML generated. Example: & lt; UpdateRequest xmlns = "http://xml.mycomp.com/ns/myservice" xmlns = "http://xml.mycomp.com/ns/myservice" & gt; & Lt; Field 1 & gt; Price & lt; / Field 1 & gt; ... & lt; / UpdateRequest & gt; Has this behavior been seen before? Check whether the xsd code of this class permits creation of more than 1 instance of repeated attribute . If so, you can avoid this recurrence that sets the number of examples of the xmlns attribute for each UpdateRequest object. If the problem is your code, maybe this attribute is being created twice) and you have limited the number of examples of the attribute (as I said above), the program will show an error on the runtime. You are trying to incorporat

web services - Parse JSON result via j2me -

I am creating a mobile application using j2me, which interacts with a webservice, with the webservice response to JSON data How do I parse it and get personal values? The Sun has a technical article - which will be helpful for you.

apache - Redirect all page on a domain to one file -

I redirect all pages of domains to a domain on a page by using htaccess / mod_rewrite Seeing. Actually, I want to request any page for the domain that returns the holding page [which is index.php] to domain.com My Most of the efforts have yet caused errors. .k There is a need to exclude such a destination that you are redirecting in this way: RewriteRule rewrite engine! ^ Index \ .php $ / endex.php [L, R = 301] If you want to redirect only files that are not mapped to existing files in the file system If so, add this condition: Rewrite the number% {REQUEST_FILENAME}! - But in that case you should answer with 404.

c# - Is there a way to get the ID of a select button from the EventArgs of a ListView SelectedIndexChanged? -

I have two buttons in a list view that adjust the position of that item, basically, take it up Or it takes it down in both the buttons there is CommandName = "select" , so I have to know that their ID is anywhere in EventArgs, so I can tell that the button above or below was pressed . This is my temporary soul, maybe it will give you a better idea what I mean. int s; Public Zero iBtnUp_Click (Object Sender, EventArgs e) {s = 1; } Public Zero iBtnDown_Click (Object Sender, EventArgs e) {S = 0; } Public Zero lvSteps_electedIndexChanged (Object Sender, EventArgs e) {DataKey currentDataKey = this.lvSteps.DataKeys [lvSteps.SelectedIndex]; Int id = (int) Current data. Values ​​[0]; Int step = (int) Current data. Evaluations [1]; ClsProcessStep newProcessStep = new clsProcessStep () {ProcessStepID = ID, StepNumber = step}; NewProcessStep.swapSteps (s); } with command name On the / code> button if you apply a unique command argument for each button, in your event

iPhone - How set uinavigationbar height? -

Image
I want to shorten the top of the navigation How do you get it? This is what I have tried to do so far, but as you can see, though I make the navigationbar smaller, the area that is used to capture it is still (black). [window junction: [navigation controller view]]; Navigation controller.view.fr = cgartextmake (0, 100, 320, 280); Navigation Controller Navigationbar.fr = CGRactam (0, 0, 320, 20); Navigation Controller View.backgroundColor = [UIColor blackColor]; [Window-making and knowledgeable]; @implementation UINavigationBar (customNav) - (CGSize) sizeThatFits: (CGSize) size {CGSize newSize = CGSizeMake (self.frame.size.width, 70); New return; } @end

java - Converting a List of pojo Class to a Jdom Tree? -

मेरे पास एक POJO class call LEVEL & amp; उसका वर्ग आरेख इस प्रकार है: 0,1 ------------ | | | | | \ | / | स्तर- & lt; & gt; ------- दूसरे शब्दों में: सार्वजनिक वर्ग स्तर {निजी इंट आईडी; निजी इंट लेबल; निजी सेट & lt; स्तर & gt; लेबल; निजी स्तर के माता पिता; ...} मेरे पास एक ऐसा तरीका है जो डेटाबेस से एक सूची & lt; स्तर & gt; में सभी स्तर को प्राप्त करता है। मैं चाहता हूं जेड प्रतिनिधित्व के लिए (जैसे org.jdom एपीआई का प्रयोग करें) एक वृक्ष (जैसे आपकी निर्देशिका के लिए एक पेड़) LEVEl 1 +++ LEVEL 2 +++ +++ LEVEL 3 LEVEL 4 LEVEL 5 मुझे पता है कि एल्गोरिथम को पुनरावर्ती होना है। क्या आपके पास कोई समाधान है? जावा क्लास को एक जेड ट्री में कनवर्ट करने का कोई भी टूल? मुझे कोई भी पुस्तकालय नहीं पता ठीक उसी तरह करें जो आप के लिए पूछें। आपका वर्ग स्तर सही है, लेकिन एकमात्र विकल्प नहीं है। आप एक संपत्ति जोड़ सकते हैं सेट & lt; स्तर & gt; बच्चों । आप माता पिता लिंक को रख सकते हैं या नहीं (द्वि-दिशात्मक संबंध, या कई-से-एक

windows 7 - Java user.home is being set to %userprofile% and not being resolved -

Our company has recently upgraded from Windows XP to Windows 7 Enterprise. The JDK installation is no longer setting user.home on the full path of the user directory, rather setting user.home to % userprofile% instead. It is causing a lot of issues with Eclipse, Maven etc. Now I have to set deuser ham for each app in JVM. Has anyone else experienced this? Is there a way to fix this? Is it related to the installation of Windows 7 Enterprise? I have tried 1.5 JDK and 1.6 JDK. Here is a list of properties Note user.home: - Listing Properties - java.runtime.name = Java (TM) SE Runtime Environment sun.boot.library. Path = c: \ program files java \ jre6 \ bin java.vm.version = 16.0-b13 java.vm.vendor = Sun Microsystems Inc. Java.vendor.url = http: //java.sun.com/ path.separator =; Java.vm.name = Java Hotspot (TM) client VM file.encoding.pkg = sun.io user.country = US sun.java.launcher = SUN_STANDARD sun.os.patch.level = java.vm.specification.name = Java virtual machine specificat

.net - Having an issue with CoverterParameter Binding in silverlight -

I'm having a problem with the xaml parser who do not like my binding statement but I do not have anything wrong with the statement Can see Invalid property value {binding vehicle speed, converter • parameter = {binding in-miles}, converter = {static resource speedcounter}, mode = two} DataMemberBinding for property < / Blockquote> Vehicle Speed ​​and Inmilium Xaml document's parameters are class parameters in the DataContext property of the xaml top level grid. This statement, used to work without converter pirometre, is now complaining after adding another binding, "Boole in Mileage" I am trying to go through Value Controller. If anyone can see anything wrong in this line, please tell me. You can not force the converter parameter, because it does not have the dependency property of the binding object. Instead, you can pass the entire data item in the converter and use your vehicle speed and InMiles properties in the Convert () method. Ar

Recaptcha ErrorMessage Property in ASP.NET -

text after "itemprop =" text "> I am using recaptcha in an ASP.NET 3.5 application and for some weird reason the error property is not working. Below is my code & lt; recaptcha: RecaptchaControl id = "recaptcha" runat = "server" PublicKey = "****************** *************" PrivateKey = "*******************" theme = "white" error = "this is a typo error" / & Gt; typed text recaptcha image text does not match with shows it is still the default error message when "wrong. Try again." Instead of my custom error messages can be caused by this strange behavior You have a little tag message Have put in. Here is my code snippet: & lt; Tr & gt; & Lt; Td align = "center" colspan = "2" & gt; & Lt; recaptcha: RecaptchaControl subject = "white" id = "recaptcha" runat = "server" PrivateKey = "*************"

r - How to split a chron date & time object in zoo for aggregation -

I have imported data into a zoo item with a gap of five minutes, where the index is a chronological order with both date and time Is: > D (09/09/09 16:45:10) 13.2 5.8 (09/09/09 16:50:10) 8.3 0.7 (09/09/09 16:55:10) ) 4.7 0.7 (09/09/09 17:00:10) 6.6 0.7 (09/09/09 17:05:10) 4.6 0.7 I am trying to gather at quarterly intervals . I found a way to do this by converting a string, but now the output is no longer a zoo. > r = data.frame (total (d, trunk (cron (times = substr (as Cheuchar (index (d)), 11, 18)), "00:15:00" , Mean)> 00 00:00 0.5644444 00:15:00 0.5400000 00:30:00 0.5488889 00: 45:00 0.6155556 01:00:00 0.3422222 When I can plot it, then I It was trying to do it basically. I came to know that with the zoo, the whole day and hour can be done, but I could not be divided into hours. I do not believe there is any way to do this bird You have fallen in the house or time, but you can create your own function using a little math. Here you can go: trun

Android and Dependency Injection -

For some information about using dependency injection containers in Android development, I see in vain. Specifically, how can one activity be overridden in a way that will work even when coming back from the dead (whatever reason). Has anyone got any experience about this area? It seems that you can use it with Android, you can also see it in Edit: Edit: Robogues is now deprecated. The developers behind can attempt the remarks mentioned in the comments.

iphone - reading/writing files to Windows Azure storage using Objective C -

Is there any good resources or tutorials about how to write files in Windows Azure and using the Objective-C Have read the files? (For an iPhone app) Thanks! Question, I will share that if you want to implement your own purpose-AEZUR client To be careful, be careful that NSMutableURLRequest will try to be helpful and you will capitalize the names of any of the headers you add to the request, i.e. X-ms-date X-Ms-date. Azure barf and HTTP code 403 (bad request) on this, even if the HTTP RFC clearly states that the case as the header name is considered insensitive. It's about where I left it. P>