Posts

Showing posts from May, 2015

windows installer - How do you install Tomcat 6 as a service using the Wix ServiceInstall Tag? -

How do you install Tomcat 6 as a service by using the Wix ServiceInstall tag? Is there a way to do this, or do I need to use a custom verb to call the executionable or batch file that comes with it to install the service? The Windows Installer requires the keypath of the component with the service of the service, which is the service, File is In a different way, you should mark the file element with the Tomcat 6 service executable (tomcat.exe?) Keypath = "yes". Then insert the service install element into the same component. If you are not installing the Tomcat 6 service executable, you have to turn it towards a custom action. Remember to perform custom actions with custom actions to think about repair / upgrade / uninstall / patching and rollback, there are many tasks.

c# - date and time control format -

I have used the Ajax Calendar Amplifier to display the date in Date_Box, and then select the time to expand the numeric expander. .. Here is my code: & lt; Td bgcolor = "# 969ECD" & gt; & Amp; Nbsp; & Nbsp; & Nbsp; & Lt; ASP: Text Box ID = "Deadbox" Runat = "Server" width = "85px" & gt; & Lt; / Asp: text box & gt; & Amp; Nbsp; & Lt; Br / & gt; & Lt; Div style = "height: 4px" & gt; & Lt; / Div & gt; & Amp; Nbsp; & Nbsp; & Nbsp; & Lt; ASP: Text Box ID = "TextTure" Runat = "Server" & gt; & Lt; / Asp: text box & gt; & Lt; AjaxToolkit: NumericUpDownExtender id = "txtHour_NumericUpDownExtender" runat = "server" enabled = "true" max = "12" min = "1" target control = "1x" width = "70" & gt; & Lt; / AjaxToolkit: NumericUpDownExtender & gt; ...

entity groups - Google Appengine: Odd get_by_key_name behavior -

Update: After further testing, it seems that this problem affects all child organizations in my unit group. For all these different instances, my original parent is the user type, which is my own creation, not in the built user type. After removing the parent = user from the child's constructor, the received_by_name works as expected, however, I would like to be able to use the unit group's functionality with defined key, if possible. - Hello, I'm trying to use the defined key names for fast inquiries in my GAE project. However, I have participated in a strange problem where I can not bring them the key. This code does not seem to work: some notes: I only tested in SDK l.key (). Name () key gives the string listed with the unit when I see it in the data store. I can copy and paste the string from the story of the data and use it as RG for get_by_key_name () and it does not work either. All names for the login type are "L" (i.e. lowercase "L...

ruby on rails - Whenever Plugin Help -

I'm trying to use the plugin to a process model at a time when rail My schedule .rb is as follows: every 1.day, at => '5:30 am' runner "user.mail_out" end My model is as follows: class user & lt; ActiveRecord :: Base works_as_authentic DEF mail_out working days = Date.today.strftime ('% A') @users downcase = find. (: Status = & gt; "# {working days} sub = T") @ users.each {| You UserMailer.deliver_mail_out (U)} end end command when I try script / runner -e development run "User.mail_out", I get the following error: /var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:48: undefined method `# & lt mail_out '; Class: 0xb708bd50 & gt; (Eval) from (NoMethodError): 1 from `eval '/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in from /var/lib/gems/1.8/gems/rails-2.3.5/lib `/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in from /commands/runner.rb:48 from gem_original_require '` /usr/lib/...

c++ - How does QDebug() << stuff; add a newline automatically? -

I'm trying to implement my own QDebug () style debug-output stream, it's basically What I've done so far: Structure Debug {#if Defined (Debug) Template & lt; Typename T & gt; Std :: ostream & amp; Operator & lt; & Lt; (T const & amp; A) const {std :: cout & lt; & Lt; a; Return std :: cout; } #template & lt; Typename T & gt; Debug Cons & amp; Operator & lt; & Lt; (T const & amp;) const {return * this; } / * Should be handled separately from manipulators (endless): * Manipulator functions which are a stream & amp; As a logic and a * stream & amp; * / Debug constant & amp; Operator & lt; & Lt; (Std :: ostream & amp; (* manip) (std :: ostream & amp ;;)) const {// nothing with the machine returns *; } #end if }; Specific Uses: debug () & lt; & Lt; "Accessories" & lt; & Lt; "More stuff" & lt; & Lt; Std :: endl; But I do not want to add st...

@font-face in CSS....is it ok? -

मेरे पर, मेरा फ़ॉन्ट परिवार Tw Cen MT, Gill Sans, Century Gothic, sans-serif । दुर्भाग्य से, हर कोई Tw Cen MT नहीं होने जा रहा है, इसलिए मैंने @ font-face विधि को बाहर करने का प्रयास किया है। यह मेरा है सीएसएस: @ फ़ॉन्ट-चेहरा {फ़ॉन्ट-परिवार: Tw Cen MT; Src: स्थानीय ("Tw Cen MT"), url (fonts / TwCenMT.ttf)} कुछ प्रश्न: क्या यह सभी आधुनिक ब्राउज़रों (फ़ायरफ़ॉक्स, क्रोम, सफारी और IE8) में काम करते हैं? मैंने अभी तक इसका परीक्षण नहीं किया है क्योंकि मेरे पास फ़ॉन्ट है क्या आप इस पद्धति से मेरे लिए काम करते हैं? फ़ॉन्ट एक बड़ी फाइल है पहले से बहुत बहुत धन्यवाद यह आपके द्वारा उल्लिखित सभी ब्राउज़रों के नवीनतम संस्करण में तकनीकी रूप से काम करेगा, हालांकि कुछ" मिलते हैं ", विशेषकर आसपास के IE। एक लिंक है जो उस पर और अधिक विस्तार में जाता है। आपकी साइट पर जाने का लोड समय संक्षिप्त (& lt; 1 सेकंड) था, लेकिन मुझे यकीन नहीं है कि यह वास्तव में क्या फटका है, क्योंकि मैं परिचित नहीं हूं आपके स्टैक में सभी फोंट के साथ। जहां तक ​​मुझे प...

java - Custom tag - get access to data in model? -

I am creating a custom JSP tag by enhancing SimpleTagSupport. Usually in the scene, I use jstl to draw data from the model using & lt; C: out value = "$ {key.attr}" /> & gt; Someone could do my question is how do I get access to data from a model when I create a custom tag (using SimpleTagSupport)? Thank you. Just to clarify, I need a custom tag to model some formatting on a piece of data. If a custom tag is not the best way to do this, then I'm open to suggestions (but still would like the answer to my original question) Update : Bozhos replies Based on this I can get data from the model using JSP reference. Is this usually done normally (i.e. when a custom tag is used to manipulate a Paes data in the first model of display)? Or is it okay to pass data as a parameter for custom tag arguments (such as through tag attributes)? I am just trying to understand the pros and cons of each method thanks. All data using JSTL has been stored in jsp refere...

oracle - How to create a database in Oracle8 Lite with Developer 2000? -

I'm new to Oracle, I install Oracle 8 Light with developer 2000. Now that I want to create a database for myself, I open the Oracle 8 Navigator and create a database that is user system. But I can not communicate with the database in Oracle SQL * Plus. Or even after creating a table using the Oracle 8 Navigator, I can not change the table. Please tell me how can I change my table? Not sure who you're working with, an Oracle Lite Database for PDA, Mobile Device etc. is. But this version ran from 5 to 9. There was a standard Oracle 8 database (8 and 8i) which is clearly different, especially when it comes to Developer / 2000. Finally, Oracle 8 and developer / 2000 are quite long in the tooth. I will not try to learn from them, unless there is any special work for using those techniques. [Similar with Oracle Lite]. I look for Oracle XE (Express Edition) and Apex Development environments as a good way to start learning Oracle.

c# - Populate an Html.TextBox with a List of data that is converted to a String -

& lt; p & gt; & Lt; लेबल = "टैग" & gt; टैग: & lt; / label & gt; & Lt;% स्ट्रिंग टैग टेक्स्ट = ""; अग्रग्राम (मॉडल। टैग में मॉडल। टैग) {tagsText + = item.Name + ""; }% & Gt; & Lt;% = Html.TextBox ("टैग", टैग पाठ। रिम ())% & gt; & Lt;% = Html. वैधता संदेश ("टैग", "*")% & gt; & Lt; / p & gt; जाहिर है यह कोड सही नहीं है, और मैं इसे स्वीकार करता हूं। लेकिन आप इसे कैसे सुधारेंगे? यह मेरे लिए थोड़ा ढीला लगता है। पूरी तरह से बहुत क्लीनर नहीं है लेकिन इसका नतीजा नहीं है स्ट्रिंग के अंत में एक अंतराल स्थान जोड़ना। & lt; p & gt; & Lt; लेबल = "टैग" & gt; टैग: & lt; / label & gt; & Lt;% स्ट्रिंग टैग्स टेक्स्ट = स्ट्रिंग .जोइंड ("", (मॉडल में से टी.टैग चुनें t.Name) .एओआरआरए & lt; स्ट्रिंग & gt; ()); & Gt%; & Lt;% = Html.TextBox ("टैग", टैग पाठ)% & gt; & Lt;% = Html. वैधता संदेश ("टैग...

activerecord - Create missing auto increment attribute with rails migration -

I am writing a migration to convert a non-rail app to the right format for rail - for some One reason for the tables is not the automatic incremental salary set on the ID column. Is it possible to run in the migration, maybe change_column or something else? You need to execute an SQL statement. statement = "ALTER TABLE" user 'change ID id / SML LINT (5) unknown unknown endonantement "ActiveRecord:: Base.connection.execute (statement) Note that this is just an example. The last SQL statement depends on the syntax database.

architecture - What are the best practices for large continuous integration? -

My organization has started a continuous integration project to automate the creation of its large public-facing web site. From "big", I mean 30+ RES services, integration for content and an external CMS, and many ASP.NET front-end systems to mix Linux and Windows server boxes with Java and C Written with a mixture of # We work with seven cross-disciplinary teams after a tight process, which are running for all weekly sprint chakras. We have automated the creation and deployment of each individual services, but now our challenge (currently manual) is to automate the integration and final acceptance test. My concerns are: What happens when a service changes its contract and its users update their code, but the initial service Does the contract change? Will we ever get a stable build? Dependency testing is a nightmare in manual system, and I can not see it better in automated systems. (We use Maven with the Nexus in the Java world, with the plan to use Ivy, we...

tags - How to show related content using like in mysql? -

I currently have a table for the products with its own set of tags, and with its own set of tags, I wanted to add the related page to the page of products so I was thinking of using like but since the product page has a column tag something like this (Products) Tags-manutd, UTD, Bruha [ Male, UTV, Football (News) Tags: - manutd , Blah, bruha [ this is related to ] (news) It is not related to ] I have to show all my things Want to use a query in which any of my tags (from products) is different from commas, how should I go about making such a question using mysql? If there is a better way of doing this then a little explanation will also be useful. Thank you Do you have product tags in your hand or do you want to be included in two tables based on them Tag equality? In the first case, I will try to do something like: Choose from ... news from where 'manutd | Man utd | Football ' Note that I have used the above product tag string, | Changed the comma by...

c++ - boost::Spirit Grammar for unsorted schema -

I have a piece of schema for that model that I have to parse, say it looks like the following. {type = "standard"; Hostname = "x.y.z"; Port = "123"; } Properties are: Elements may appear undefined. All elements that are part of the schema must appear, and none else. The synthesized properties of all the elements go into a structure (Optional) The schema may depend on the type field in the future - that is, different fields depending on the type - although at this time I'm not worried about this. According to the soul forums, the following answer is: You may want to take a look at the permutation parser: a ^ b ^ c B matches (or its combination) in any sequence. If analyzing in a structure is the best way, then all the necessary members have been initialized, the composition members should have boost :: optional , then post-parsing can be easily tested during run-time after survival.

iphone - NSString basics - memory - retain - copy -

यहाँ मेरा सवाल है। NSString * xyz = [NSString stringWithFormat: @ "% मैं% @ ", 10, @" सागर "]; अब मैं अन्य स्ट्रिंग ले रहा हूं, जैसा कि निम्न है। NSString * x2 = [xyz कॉपी]; मुझे नहीं पता कि यहाँ क्या होगा? (क्या ऐसा कुछ है, x2 में xyz के रेफरी का रेफ्रेंस है।) NSString * x3 = [xyz retain]; (यहां क्या होगा, x3 की एक नई मेमोरी है जिसकी स्ट्रिंग या [xyz कॉपी] की प्रतिलिपि बनाई गई है?) अब, इन तीनों स्ट्रिंग्स को कैसे निकालना है स्मृति से? अग्रिम धन्यवाद। सागर। NSString * xyz = [NSString stringWithFormat: @ "% i% @", 10, @ "सागर"]; यह NSString के आटोरेसलेज्ड इंस्टेंस को बनाएगा - यह तब जारी किया जाएगा जब ऑटोरेक्लोज़ पूल निकाला जाता है (आमतौर पर अगले रन लूप पर)। NSString * X2 = [xyz कॉपी]; सिद्धांत में -copy संदेश ऑब्जेक्ट का एक नया इंस्टेंस बनाएगा गिनती 1 को बनाए रखने के साथ (यह आपको कहीं न कहीं छोड़ना चाहिए), लेकिन जैसा कि NSString ऑब्जेक्ट है अपरिवर्तनीय तब [xyz कॉपी] को अनुकूलित किया जाएगा [xyz बनाए रखन...

javascript - Div in screen center when there are frames? -

How can I put a div in the screen (not the page) center, when the div is in an iframe, and the position of division x is too much to stay at the center of the screen, even then iframe is present on the page (div.x iframe is in a table in the right row, and on the left is a navigation tree view You can not. The contents of an iframe will never be able to leave the frame, instead, iframe will get the scrollbar. There is no crime, but it seems like a poor site architecture anyway. Maybe you should take a look at the (lightweight) content management system, by saying that perhaps you have great grace reasons for this "architecture"?

Storing and deleting data recursively in SQL Server -

I am creating a blog component for a client's website and I'm having some problems with the data. There is a simple "content" table that holds content for blog entries. I am reusing this table for comments on blog entries because the fields are the same. I have added a ParentID to the content table so that I can link the comments to their original content item. To ensure that I have not received zombie content items, I have added a trigger to remove any child content items when a content item is deleted: Remove from the content where However, when I remove content items that do not have any child content items, then I am getting the error from SQL Server (2008), in ParentID (select ID to be deleted) : Maximum of archived Trigger should set fire to the destroyed material once more (limit 32) than seeing a variety, function, trigger or nesting level, but if the material has no child, then it will Should not be called from? Does anyone know why I got th...

SMTP email on Windows using C++ -

using C ++ There is no Windows Basic API for sending SMTP based messages. Class = "post-text" itemprop = "text"> There is no native API, you will need a third-party component or to create itself. Useful information in this thread:

flex - How to create the Advanced Datagrid -

Image
I have an advanced datagroup requirement but I do not know how to create it. Please help me on this. I am attaching a JPG file. Create an Array as ADAPRICE for ADG Field"> "month", "group", "group", for "environment", "availability", "display" and "utility" and "usefulness" for "group" Add column for element 1-4 in ADG ADG group by area "group"

REST's 'resource communication mechanisms' and 'on-the-fly' improvement of a client's knowledge of them -

I am trying to come up with REST, as defined by Roy Fielding. Recently I am trying to wrap my mind around: The concept I have is in this quote: Transition can be determined by the customer's knowledge (or limited) of media type and resource communication system, both of which can improve flight (e.g., code-on-demand). Specifically, what is the knowledge of "resource communication system", how is this knowledge described in the document / specs and is an intention? Then, how would it be best to improve that knowledge? I think I understand addressing the 'knowledge of customer type of media' I have some estimates (put, gate, etc.) but for any suggestions, examples or pointers for the restime API It would be appreciated, which clearly solve the problems in that quote. If it helps, I am thinking about these issues in the context of HTTP + JSON, so I appreciate REST that HTTP + * is not limited to Sun Cloud API is already Quoted as a nice cool design,...

osx - Advantages/disadvantages of using the built-in Apache for web development on Mac OS X -

10.6 Snow leopard especially on the advantages and disadvantages of using embedded Apache for local web development Are you Rather than using the built-in Apache, I know that the options exist and exist. However, for some reason I have not wrapped my head around profit or potential damage with the use of Apache vs. built using MAMP / XAMP based (or other) solution. Does the benefit of the MAMP / XAMPP based solution easily ease the configuration? While not using the built-in Apache, there are benefits other than ease in configuration? For example, is there a benefit to using VirtualNV? If you are developing only stable webpages and you do not need PHP or MySQL, then why not create Apache with something or Configuration and usage related issues I am interested in using virtual hosts to develop many websites together I use git for version control And source files in ~ / instead of ~ / sites There is a tendency to store (this is probably not content, but I think I...

string - Decoding tcp packets using python -

I am trying to decode the data obtained on a TCP connection. Packets are small, no more than 100 bytes. However, when a lot of them get then I get some packets. Is there a way to prevent this. I am using python I have tried to isolate the packet, my source starts with packet STX byte and ends with ETX bytes, after bytex, byte packet The length is, (the length of the packet is less than 5) Checksum is the last byte before ETX Def decode (data): while true: start = data.find (STX) if start == -1: Message in #no stx pkt = '' data = '' break #stx, next byte is length pktlen = ord ( Eta [1]) is the # Czech Send ending ETX (pktken -1) or checksum invalid if pktlen & lt; 5 or data [pktlen-1]! = ETX or checksum_valid (data [start: pktlen]) == incorrect: print "invalid Pkt" data = data [start + 1:] continue: pkt = data [start: pktlen] data = data [pktlen:] break returns Data, PKT I try it this way Try the #process reports: except data = sock.recv (25...

Simile timeline - Reading from database without using XML? -

Do anyone have any ideas about creating data read data from a database without using XML? Or XML is definitely the way to go. I want to hear about those options, which will be the most optimal solution. The data I will use is basically just coordinates and geographic names, as well as some small integers. I sometimes like to use json format which is not too complex or nested, and I think That can be good for it too.

How to query WURFL information -

What is the programming interface to query device capabilities in wurfl? WURFL creator here ScientiaMobile recently launched a new way of providing WURFL for developers. I advise you In short, if you import a small JS file: You will be left with the JSON object that looks: {"full_device_name": "Google Nexus 7", "is_mobile": true, "Form_factor": "Tablet"} (Assuming that you are definitely using a Nexus 7) and you will be able to work like this: if (WURFL.form_factor == "tablet") {// dostf (); } This is what you are looking for. Disclaimer: I work for a company that provides this free service. Thank you.

javascript - Updating a select box without causing onChange -

What do I want to achieve here, I have a selection box that loads in some rows, when the selection changes The (onchange) key is used in the PHP function as AJAX, which gives an array in JSON format, then my code selection box clears options and applies the values ​​that I have just returned from my PHP function . The problem when the new values ​​are set, it fires the on-event event again, it sets the value and we are in the beginning of a non-ending loop, there is an error in firebug Goes out and goes out of it. My question is that there is a way to disable the incident of attack, so it only takes a fire. I am coding in a structure around the prototype, posting a code example would be a bit heavy, although I can try to fill any missing data on the request. Cheers! ILMV Using flag variable, worry about stopping onchange Instead, wrap your logic in a conditionally condition based on a flag variable. Basically you can only create a variable , and set it to false when ...

windows - Updating Active Directory user properties in Active Directory using Powershell -

In a Windows Server 2003 R2 environment, using Powershell v2.0, how to update user properties Will there be a duplicate of Active Directory, such as their phone number and title? The move here, I would like to do this without depending on the set-QAIDSER and I do not have the option to use the Commandlets of Server 2008, however thanks. Taking things together around the Internet, I would ... function Get-ADUser ([string] $ samid = $ env: user name) {$ searcher = new object directory services Directory Finder $ explorer Filter = "(& amp; (objectcategory = person) (objectclass = user) (sAMAccountname = $ samid))" $ user = $ searcher.FindOne () if ($ user -ne $ null) {$ user.getdirectoryentry () }} $ User = get-ADUser 'username' # Use all properties $ user.psbase.properties # Use some properties $ R.title = 'new title' $ user.telephoneNumber = '5555551212' $ user SetInfo () # Output Results $ user.title $ user.telephoneNumber More i...

asp.net ajax - jQuery Events on Elements in an UpdatePanel -

I have an element inside an update panel that can be displayed or displayed based on different conditions. & lt; Asp: UpdatePanel id = "MyUpdatePanel" runat = "server" & gt; & Lt; ContentTemplate & gt; & Lt; Asp: panel id = "mypanel" runat = "server" & gt; & Lt; Img id = "clickable image" src = "/ path / to / image.png" alt = "clickable image" /> & Lt; Span id = "specialMessage" & gt; You clicked on the image! & Lt; / Span & gt; & Lt; ASP: Cell & gt; & Lt; / ContentTemplate & gt; & Lt; / ASP: UpdatePanel & gt; I'm trying to wire it so that a special message span can be shown when clickable image IM is clicked on: $ (Document) $ ("# clickableImage") click (function () {$ ("# special message"). Show ();}); $ ("# Special message") Draggable ();}); However since the page loads (but it can app...

WPF, finding control inside itemtemplates datatemplate -

मैं एक प्रोग्राम को एक ItemTemplate के DataTemplate में नियंत्रण कैसे प्राप्त करूं? >, जैसे मैं निम्न कोड के अंदर चेकबॉक्स कैसे प्राप्त करूं? & lt; ListBox.ItemTemplate & gt; & LT; DataTemplate & gt; & Lt; चेक बॉक्स x: नाम = "कॉन्टोफेलकैकबॉक्स" चेक किया गया "" कोनोफ़ेलकरॉकबॉक्सेक्लेक्टेड "/ & gt; & Lt; / DataTemplate & gt; & LT; /ListBox.ItemTemplate>

security - ASP.NET Forms Authentication without Redirect -

I am using ASP.Net's form authentication , but to redirect it to Do not want default behavior of a login page when the restricted area is used. Instead, I would like to call a Javascript JQuery dialog for login on the current page, blocking the content behind loading. My only problem is that by default, the form authentication wants to be redirected. Is there any other handler that can hook me up, or stop redirection ? In addition to DWF: Add the following to your web.config: & lt; System.web.extensions & gt; & Lt; Screening & gt; & Lt; Webservices & gt; & Lt; Authentication service enabled = "true" /> & Lt; / Webservices & gt; & Lt; / Script & gt; & Lt; /system.web.extensions> Now you can call the authentication service from javascript: Sys.Services.AuthenticationService.login ("username", "password", Wrong, empty, blank, login complete, login, ""); Function e...

javascript - For loop issue in FireFox -

I am working on a script that removes the default value in form elements using prototype and lightview. The script works fine in Safari, but not at all in Firefox (3.5.5). A fire starts when the light begins. document.observe ('lightview: opened', function () (if ($ ('contact_form')) {var defaults = new Array (); var ins = $ ('contact_form' ). GetElements (); var inlen = ins.length; for (i = 0; i & lt; inlen; i ++) {Warning (i) if ($ (INS [i]) readAttribute ('type') ! = 'Image') {Default [INS [i] .name] = $ (INS [i]) Value; $ (INS [i]). ('Focus', check default.top (event, ins [i] ]);}} Function check default (name, event) {alert (name.name)} ($ (name) .value == defaults [name.name]) {warning (default [name.name]) $ (Name) .value = '';}}}}); It's weird, when I check the inline length, the appropriate number is alerted, but when I give 'I' warning, only the first number is alert She goes. Any idea whic...

uiimageview - iPhone: rendering of different views possible? -

I have a problem, I can not solve it correctly In short: I have more than one I want to create a single view (say: UIImageView) from SubViews - that means it includes multiple imageviews and text scenes. The thing is, I want to present them as 'one' view. Say, I take an image, add some details below, add a title above and the second small image below. I want this whole thing to be a UIIm so that it can 'listen' to a (like) swipe gesture, which I can not tell to display the new image. Does anyone know the best way to achieve this? By now my results were pretty bad. Any hints are welcome! This is definitely possible you know about ideas and sub-scenes, but "UIResponder "Class and" Answer series "should also be read on. The master view that you want to include them all, however, will not not a UIImageView, because it exists to show only one image, you can create all those people about whom you Talk about a plain UIView sub-view (in th...

database - Bind variables in R DBI -

In the RK DBI package, I'm not looking for any feature to use bound variables I got a document (original brief description from 2002) which says about the bound variable, "Maybe DBI may have some time in implementing this facility in the future", but it seems that it has left it till now has gone. What is the use of people in R for an alternative? Is just adding strings to the SQL? There are some obvious problems for safety; Display. Edit: An example of how a placeholder can work: query & lt; - "Choose from animals numlegs where color =?" Result & lt; - dbGetQuery (caseinfo, query, bind = "green") This is not a very well-thought-out interface, but the idea is that you tie And handle the driver's avoidance details (if the built-in API does not handle the bound variable originally) without using [colloquially] re-using [badly] For any person coming to this question like I did after googling for RSQLite and debate prin...

jquery - Is it possible to click a link through an image on top that link? -

I have a transparent PNG sitting at the top of the list of links and I would like to know if any one user Is there currently a way to allow jQuery to click on any link that sits behind the image? The image is too big that it is covering the DIV all the time down to it. & lt; Div id = "links" & gt; & Lt; A href = "#" & gt; Link & lt; / A & gt; & Lt; / Div & gt; & Lt; Div id = "image" & gt; & Lt; Img src = "image.png" alt = "" border = "0" & ​​gt; & Lt; / Div & gt; I'm completely new in the jQuery world so I'm still learning and how it can be understood how to do it. Any help would be appreciated! If the image is interfering with the link, then users can not physically click on them. You have to give them more z-index, or click programmatically instead.

air - Value undefined does not allow function calls -

I am using aptana + adobe air 2.0, I have created a page .. while executing the page, its The following error is giving TypeError: the value does not allow undefined function calls. I have tried to copy a small content. The clip board .. The code is below holdtext.innerText = getID. Id; Copied = holdtext.createTextRange (); Copied.execCommand ("Copy"); Holdtext is an id of a text field - with that I try to copy just a small content into the clipboard. Can you please tell me the problem is the problem And how to ride it : var holdtext = document.getElementById ("holdtext"); then: holdtext.innetText = getID.id;

java - Is "long x = 1/2" equal to 1 or 0, and why? -

इस सवाल का पहले से ही एक उत्तर है: अगर मेरे पास कुछ ऐसा है तो: लंबा x = 1/2; इसे 1 तक गोल नहीं किया जाना चाहिए? जब मैं इसे स्क्रीन पर प्रिंट करता हूं तो इसे 0 कहते हैं। यह पूर्णांक प्रभाग कर रहा है, जो हर चीज को छोटा करता है दशमलव बिंदु के ठीक ऊपर।

How do I access a constant in Perl whose name is contained in a variable? -

मेरे पास पर्ल में घोषित स्थिरांकों का एक सेट है: स्थिर C1 = & gt; 111; स्थिर C2 = & gt; 222; .. स्थिर C9 = & gt; 999; मेरा $ which_constant = "C2"; मैं कैसे एक पर्ल अभिव्यक्ति का निर्माण कर सकता हूँ, जो $ which_constant पर आधारित है, इस चर के मान के नाम से स्थिरांक के मान प्राप्त करते हैं - उदा। "222"। कृपया ध्यान दें कि मैं ऊपर की किसी भी शर्त को परिवर्तित नहीं कर सकता - यह एक वास्तविक परिदृश्य का सरलीकरण है: मेरे पास एक मॉड्यूल है (जिस पर मेरा कोई नियंत्रण नहीं है) जिसमें से ये स्थिरांक हैं आयात किया। कमांड लाइन से उपयोगकर्ता द्वारा स्थिरांक का नाम दिया जाता है मुझे उचित स्थिरांक के मूल्य का उपयोग करने की आवश्यकता है। मैं दीवार के खिलाफ मेरे सिर को मार रहा हूं (ज्यादातर सभी प्रकार के अजीब ग्लोब निर्माण) लेकिन उनमें से कोई भी काम नहीं करता है। पुनश्च अगर समाधान अपने मूल मॉड्यूल के अंदर स्थिरांक तक पहुंचता है - मेरा :: स्थिरांक :: सी 2 (उन्हें आयात करने की आवश्यकता के बिना) कहें, तो इससे भी बेहतर है, लेकिन जरूरी नहीं है - मैं सही स्थि...

geolocation - Detect currency based on user's location? -

I am creating an international web application that users can subscribe to. I want membership rates to vary according to user currency. If my user is in the US, then they pay $ 19 / month; If in China, they pay some other rate. Therefore, I am thinking that I can locate the user's location, and from their place, I can find out my currency (in the currency map table through one place in my database). If I can not locate my currency, then I will force them to enter before displaying the subscription rate. Does this seem like an acceptable solution? Will it be very reliable? If not, can anybody think of a better solution? It sounds like geolocation is very reliable, and mapping for currencies should be easy from countries. I do not know if this type of mapping is already available elsewhere. Just make sure that you allow users to change the currency, if your detection fails. Or they are trying to subscribe while abroad, or something else.

asp.net - LINQ sorting, doesn't work -

I have a LINQ query like this: to i _db.Items.OfType And in lt; MP. M in M. module. P in pages I. = Null & amp; Amp; I.Type == 1 & amp; Amp; I.Published == True & amp; Amp; P.PageId == 2 Select P I use the query in this way because I have a strongly typed view (ASP.NET MVC). Sorted by item i.Sort property. orderby i.Sort and i.orderby (this => it.Sort) does not work. How can I fix this? When you sort with Linq you typically call OrderBy Property, and ultimately a icon , not a sorting function. For example: class person {get public ent era; Set;}} public static zero main () {var ps = new list & lt; Person & gt; (); Ps.Add (new person {age = 1}); Ps.Add (new person {age = 5}); Ps.Add (new person {age = 3}); Var Sorted = ps.OrderBy (p = & gt; p.Age); Foreach (sorted P) {Console.WriteLine (p.Age); }} Here Linq will know how to sort integers like the right way. And without context (such as i.Sort , what is the purpose of this, wh...

debugging - Stack Level Too Deep in Production Rails App - How to Get Details? -

I am running 256MB slice on the slices with a production spree on MySQL, Mongrel, and Nginx. I get this error every time I try to access any URL in the app: SystemStackError (stack level too deep): compass (0.8.17) BB / compass / APIAnation / Rail / Action_ Controller RB: 7: `Process' vendor / plugins / hamel / rail /. / Lib / sass / plugin / rack.rb: 44: `in call ' (some more test url requests are in this) Devaging strategy / tools I use in advanced mode What should be advanced (but free and open source), so can I improve my problem? It is slightly different each time depending on the controller. I have tried, but it does not help because maybe there is probably no loop getting me. The question is how do I get more detailed reports of exact output during production? I am using and all server-side commands to execute Capistrano. I am running a Mongrale cluster of 3. I see that log files are: current / log $ ls development.log testite.com-error.log mongrel.8000...

javascript - Differences between methods of reloading pages -

window.location.reload () history.go (0) window.location.href = window.location Href मैंने एक वेबसाइट पर टिप्पणी की है कि इन तरीकों के सभी 3 तरीकों को एक पृष्ठ पुनः लोड करने के लिए इस्तेमाल किया जा सकता है इस पर विश्वास करने के लिए सामग्री नहीं है, मैंने IE8, FF3, और ओपेरा 10 में सभी 3 तरीकों की कोशिश की। मैंने देखा कि फ़ायरफ़ॉक्स ने history.go (0) के लिए एक वास्तविक पुनः लोड के बजाय एक कैश पुनः लोड किया, लेकिन अन्यथा कोई मतभेद नहीं देखा। हालांकि, मैंने सोचा कि मैं यहाँ समुदाय से पूछूंगा कि इन विधियों के बीच वे क्या अंतर रखते थे। Window.location.reload () और window.location.href = window.location.href के बीच मुख्य अंतर यह है, कि यदि पहले मौजूद है तो POST डेटा फिर से भेज देगा (ब्राउज़र आपको पूछेगा कि क्या आप पृष्ठ को पुनः लोड करना चाहते हैं और पुनः भेजें डेटा), दूसरा यूआरएल यूआरएल को किसी भी POST डेटा की अनदेखी कर देगा। History.go (0) के बारे में, हम इतिहास वस्तु का उपयोग कर रहे हैं, इसलिए ब्राउज़र संचयित पृष्ठ के कैश्ड संस्करण का उपयोग कर सकते हैं कहीं स्मृति में।

sql - MySQL - SELECTing based on an IF-statement -

यदि मेरे पास फ़ील्ड एक , two कोड>, तीन और चार तब मैं किसी भी तरह फ़ील्ड चार प्राप्त करने के लिए if कथन का उपयोग कर सकता हूं, केवल तब एक निश्चित स्थिति सही है? क्या मुझे SELECT कथन के दो सेटों के पास होना है? क्या मैं (स्यूडोकोड में) कर सकता हूँ: एक, दो, तीन चुनें (1 == 1) तब तालिका से चार ईडीआईडी ​​ या मुझे कुछ करना होगा: IF (1 == 1) तो एक का चयन करें मैं बस उत्सुक हूँ, मेरे पास इस के लिए एक विशिष्ट उपयोग नहीं है। उपयोग करें: SELECT t.one, t.two, t.three, case WHEN 1 = 1 THEN टी.पूरा ELSE NULL END के रूप में चार से तालिका टी आपके पास SELECT सूची में वैकल्पिक स्तंभ नहीं हो सकते हैं - इसमें कॉलम और एक उचित मान शामिल है , या कोई कॉलम बिल्कुल नहीं। आप एक IF स्टेटमेंट द्वारा अलग किए गए दो (या अधिक) बयान कर सकते हैं, लेकिन किसी एक बयान में एक अतिरिक्त कॉलम के लिए आदर्श नहीं है क्योंकि आप निर्णय तर्क को आगे बढ़ा रहे हैं लापता स्तंभ स्थिति को संभालने के लिए आपका आवेदन पर।

mysqlimport - Importing text to MySQL: strange format -

I am importing some data from a .txt file into MySQL database tables using mysqlimport. It seems that right (no error message) is imported, but it looks very strange when displayed, and can not be searched as expected. Here the details are given. The original text file is saved in UTF-8, along with the record (like in the text editor) looks like this: The second area contains line breaks: war-16,52 ~~~~~ Online Advertising About Us ~~~~~ ENDOFRECORD War-16,53 ~~~~~ Online Advertising. About us about us ~~~~~ ENDOFRECORD The database table in which I am importing is very simple: + - ------ + - ------------- + ------ + ----- + --------- + ----- - + | Field | Type | Faucet Key | Default | Extra | + ------- + --------------- + ------ + ----- + --------- + - - ---- + | ID | Varchar (100) | Yes. | Faucet | | Text | Varchar (5000) | Yes. | Faucet | + ------- + --------------- + ------ + ----- + --------- + - When I import a file, here's the command I use: $ mysqlimpor...

c# - How to change row color in datagridview? -

I want to change the color of a particular line in my datagrid view. If the value of column 7 is less than the value in column 10, then the row should be changed to red. Any suggestions about how to accomplish this? You need a loop through rows in the DataGrade view and then columns 7 and 10 in each row Compare prices. Try it: foreach (DataGridViewRow Line Vendors in DataGridView.Rows) if (Convert.ToInt32 (line Seals [7]. Value) Convert ToInt32 (line.cel [10]. Value)) {row.DefaultCellStyle.BackColor = Color .Red; }

flip bytes using Python's struct module -

I want to flip from this string to a slightly higher end: \ x00 \ X40 To make it like this: \ x40 \ x00 I think use Struct.pack will have the proper function to do, but I can not find a way to work it properly. Thanks You are not showing the whole code, then the easiest solution would be : data = data [1] + data [0] If you have structure : & gt; & Gt; & Gt; From the composition import pack, unpack & gt; & Gt; & Gt; Unpack ('& lt; H', '\ x12 \ x13') (4882,) & gt; & Gt; & Gt; Packs ('& gt; H', * unpack ('' 'H', '\ x12 \ x13')) '\ x13 \ x12' Which string is a bit In unpacked -Andende unsigned miniature, and then pack it back into the big endian unsigned miniature. You can take it the other way around, of course. If you change between BE and LE, it does not matter how you are converting - the conversion function is bi-directional.

html - jquery hover function -

The following code needs to be changed, so when onmouseover firefalls the event appears on the right side of a div hyperlink? & lt; Html & gt; & Lt; Top & gt; & Lt; Script src = "http://code.jquery.com/jquery-latest.js" & gt; & Lt; / Script & gt; & Lt; Script & gt; $ (Document) .ready (function () {$ ('a.moreDetails'). Hover (function () {$ (this) .next (). Toggle ('sharp');});}); & Lt; / Script & gt; & Lt; Body & gt; & Lt; A href = "#" class = "more details" & gt; (Details) & lt; / A & gt; & Lt; Div class = "description" & gt; User 1 & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; JQuery's hover method takes two functions: $ ("A.moreDetails") hover (function {$ (this) .next (). Show ('sharp');}, function () {$ (this) .next (). Hide ( ' fast ');}); You can mark your closing ...

javascript - How do I inject a script URL containing an ampersand with ASP.NET? -

I have a server control that the program needs to inject javascript context into the page. This refers to the context of Microsoft's Bing Map, for which the & amp; to attach to the script URL for use on SSL; S = 1 is required. the problem is that. NET Framework encodes properties and & amp; Converts to and (verified with reflector). After some time that & amp; is completely deleted The desired script tag:. & lt; Script type = "text / javascript" src = "https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&s=1" & gt; & Lt; / Script & gt; Effort 1: var Client Script Manager = this.Page.ClientScript; If (! Kliantskriptmnagrkiscliantskriptinkluderegistred (Thiskgettype (), "Bingmpkantrol")) {Kliantskriptmnagrkregistrcliantskriptinklude (Thiskgettype (), "Bingmpkantrol", "Https://akankdevkvirtutlearthknet/mpkantrol/mpkantrol. ? Ashx v = 6.2 & amp; s = 1 "); } ...

windows - %x was unexpected at this time. batch script -

@echo for off / f "tokens = 1,2 delims =", "% x (my CSV ) Sometimes it works fine, sometimes it fails with the following error: (If% M% LSS% x set M = %% x) Max X value =% M% % x was unexpected at this time. The problem is that you use % m% loop inside a (before any iteration). In other words, before the execution, before the closing bracket and the entire loop is read and evaluated. Therefore, % m% will always be its initial value even if you are actually setting it in the loop. For example, this example should be given: Set Val = 7 in% i (1) (set val = 99 echo% wal%) resonance% Val% resulting in unexpected (something): 7 99 Just because in the first echo statement % val% is interpreted (i.e., the whole code before that, before anybody is running) loop is interpreted. In which m is forced to set Should be the first %% x using setlocal command and ! M! instead of % m% Time will be delayed to evaluate m Additionally, do not ...

Doubt regarding operators in C/C++/Java -

अनुरूपण के टुकड़े पर विचार करें: int a, b; ए = 1; बी = 2; C = a ++++ b; // काम नहीं करता!! समेकन की त्रुटि। सी = ए ++ * + बी; // काम करता है !! कृपया C = a ++++ b; को इस प्रकार माना जाता है: c = ((a ++) ++) b; जो गैर-लावलु को बढ़ाने की कोशिश कर रहे हैं, वह गलत है। और c = a ++ * b; इस प्रकार माना जाता है: c = (a ++) * (+ b); इस व्यवहार का कारण यह है: सी भाषा लेक्सिकल विश्लेषक है। मामले में 1: टोकन 'ए' (पहचानकर्ता) के बाद लेक्सर देखता + एक और + के बाद, तो यह एक ही टोकन के हिस्से के रूप में दोनों (वेतन वृद्धि ऑपरेटर के रूप में) का उपयोग करता है यह एक समान टोकन का तीसरा हिस्सा नहीं है क्योंकि +++ मान्य टोकन नहीं है। इसी तरह, अगले दो + + टोकन में इसे प्रभावी रूप से समान रूप से बना देता है: c = ((a ++) ++) b; जो एक ++ के रूप में सही नहीं है, कोई लावलू नहीं लौटाएगा, इसलिए आप उस पर ++ को लागू नहीं कर सकते। 5 ++; कहने की तरह कुछ है, लेकिन 2 में: ++ की पहली जोड़ी एक साथ (वेतन वृद्धि ऑपरेटर के रूप में) समूहबद्ध हो जाएगी। अगला * अकेले एक टोकन होगा...

algorithm - how do you calculate co-ordinates of point based on constraints relative to other points? -

I know this is mathovflow content, and I'll take my way out there. I'm hoping someone will recognize it and tell me in the right direction ... I am trying to map the related nodes. I have come to know how to calculate the minimum distance between all the points, and now I should know how to change them in real coordination in 2D space. Then, a point P N (where n> 1), a set of digits [P 1 .. p N-1 ], and a set of distance [d 1 .. d n-1 ] where each dp n and related point Represents the minimum distance between, how can I calculate the best valid p n set to [x, y]? When I say the 'best' valid coordination set, I mean set p n my first thoughts [0,0] at p 1 was to be left, at [0, D] (D 1 p 2 ) and then for this I [0, y] where y is the minimum distance, which is to its D 1 and d 2 To satisfy and then move it around 2 in the circle of a circle, in the form of 2 By the time it still satisfies d 1 . It will be repeated for all the...

vb6 migration - What's the fastest way to convert an existing Vb6.0 win-based application into a c# win-based? -

What is the fastest way to convert an existing Vb6.0 win-based application to AC # win-based? Core language is so different, that I have to start with scratch, and only copy complex code bits. If you start from scratch, you will have to deal with all VB6 problems while using all the C # power. VB6 does not have any real class or OOP, which makes it very different from C #. In addition, there is very little control over event manager (). So, start with zero, copy the UI layout, and think about how I apply it to the first place in C #, it's your life easier Will make.

zend framework - Can I use Zend_Log to handle PHP errors? -

I am developing a web service with Zend, especially I am Zend_AMF for the interop with Aeded Flex. The problem with that is that I can not easily see the PHP errors because the Flex debugger will not display the actual answer from the server, unless they are the appropriate Amphit. If I go to the Zend_Amf endpoint with the web browser then I have not found any errors, so error while executing an AMF handler, I am still using firebug to observe HTTP traffic to see any errors I am For my question: Can I use a login utility (like Zend_log) to send all PHP errors, warnings and notice files instead of sending them (or additionally) in an HTTP response? You can use PHP to catch errors and log them in the form of thanks Use Zend_Log for The only problem with this function is that it will not catch all the PHP errors, it is not possible to catch errors such as syntax errors .... Playing with another method The function is like this: error_reporting (E_ALL); Ini_set ('di...

java - XSLT: can we use abs value? -

I would like to know whether we can use mathematics in XLST: abs (...)? I saw it somewhere but it does not work. I have something like this: & lt; Tag & gt; & Lt; Xsl: Select Value = "./Product / BlablaPath" /> & Lt; / Tags & gt; I tried to do this: & lt; Tag & gt; & Lt; Xsl: Select the value = "math: stomach (/. Product / blablaPath)" /> & Lt; / Tags & gt; but does not work I am using Java 1.6 language. Here is a single XPath expression abs () function: ($ x> = 0) * $ x - no ($ x> = 0) * $ x It evaluates abs ($ x) . Here is a short description of : & lt; Xsl: stylesheet version = "1.0" xmlns: xsl = "http://www.w3.org/1999/XSL/Transform" & gt; & Lt; Xsl: output omit-xml-declaration = "yes" indent = "yes" /> & Lt; Xsl: strip-space element = "*" /> & Lt; Xsl: template match = "node () | @ *" ...

c++ - Explicitly passing a const object to an constructor which takes const reference to a polymorphic class -

I found a problem with my classes, a clear constructor to pass a const object (multiform structure) A reference refers to the sample class for the base class of that polymorphic structure (this is not from my code, it is for clarification) class base {...} Category derivative: Public base {...} class problem {problem (cost base & amp;;); ...} myFunction Zero (const problem and problem) {...} int main () {// explicit producer derived with non-intact objects; Problem number 1 (d); // This is working fine myFunction (no1); // Build constructor problem with const object no2 = derived (); // It is working fine, debugged and everything is called myFunction (no2); // working fine. Constant constructor working with Const object is not working Problem no 3 (Derived ()); // debugger jumps on this line (no compiler error) myFunction (no3); // This line does not say at all: // There is no match for calling your function (problem (& amp;) (derivative)) / Note: Candidates are: Muneefa...

Macro for concatenating two strings in C -

I am trying to define a macro that assumes 2 strings and a space between them Joins back together It seems that I can use any character which I want apart from space, for example: #define conc (str1, str2) # str1 ## # str2 # Define space_conc (str1, str2) conc (str1, -) ## # straw2 space_ncc (iden, oop); space_conc back "idan-oop" Let me back "idan oop", some suggestions? try it #define space_conc (str1, str2) # Using the string '##', adding symbols is not done for strings, wires can be sequated simply in C, and the compiler will add them. , Which is what this macro does. First turns the strobe into strobe and straight 2 (if you use it like the space_conc (hello, world) ) and they are used by each other Near sir This is inbetween in space, string, the resulting extension will be understood by such compiler. "hello" "" "world" Edit ## The macro extension is used in this way, we say that you have ...

multithreading - Are there any static code analysis tools that look at potential execution paths that might lead to a deadlock(C#) -

Is there a tool or plugin for a Visual Studio (2008) that goes to the C # class and is likely to find scenarios Lead to potential deadlocks? Anything that locates every lock (xxx) {} and then searches for other methods that call the method for that important section and make a list of those methods that can be due to conflict. I have used work cover for Java, which is quite good to detect potential obstacles It was also used to support C #, but to verify its effect it is not run against any code.

syntax - Conditional operator in Python? -

Did you know that Python supports backing some keywords or expressions such as C ++ values ​​ condition, all in the same line (expressed with C ++ if question mark ) // C ++ value = (a & gt; 10; b: c) Since Python 2.5 you can: value = b if a & gt; 10 and C Before that you have to do something like the following, although semantics are not equal because the short circuiting effect is lost: value = [ C, B] [A & gt; 10] There is another hack using 'and ... or' but it is best to use it because in some cases there is an undesirable behavior in which to find the bug There can be difficulty. I will not even write a hack here because I think it's best not to use it, but you can read about it if you want to.

asp.net - getting a value of selected radiobutton in LoadViewState -

Can I get the value of a selected radio button in the LoadViewState event of WebControl and how? All components are generated in codebehind, so I have those controls: Radiobutton list RLL; LISTIME leon; List liTwo; At this time I was stuck on that the overloaded loadviolet is not being implemented protected override zero load vivestat (object o) {action = Rbl.SelectedValue; Verb 2 = rll Selected item. value; Base.LoadViewState (O); } You also need to override the SaveViewState method. Radio button AFAIK has problems in saving their selected state.

ASP.NET MVC2 RC : How to intercept or trigger client-side validation before ajax request? -

I have a user name text box on the form that has some validity rules applied through the DataAntiation attributes: I also have a button next to this text box, which closes a jQuery AJAX request that checks the existence of a username: & lt; Button onclick = "check (this); return false;" Id = "FtpLoginCheck" name = "FtpLoginCheck" & gt; available? & Lt; / Button & gt; I am looking for a way to share the two together so that click on the "check" before the client-side verification call arrives. / P> EDIT: To be more clear, I need to inspect or trigger the client side verification result of the text box, when I click on the unconnected button without it. EDIT: I now check the JSON JS ("form") button. Valid (). Is invalid, but is not displaying general verification message. About Any thoughts? OK if my solution is to manually trigger the button Button onclick event: - var validator = $ ("for...

PHP Perform Action with Incoming Email -

I am creating a photo sharing website (just testing PHP content) and I want to be the user Can submit photos using email. For example, the website needs to run a script when users send email in an attachment and text to the email. The image will be uploaded to the server, and a new "photo post" will be created in the text with details in the email text. My question is, how do I tell my server to run? Is the script automatically received when you receive an email? Any / all help is greatly appreciated if you want more information, just comment! Thank you! -like If you use cpanel, you can pipe the email to a script According to which the email process is done. You can find that option under Email Forwarders.

linux - getopt_long vs getopt_long_only -

To make a proper Linux / Unix style application, what is the best option (e.g., Afaik ls Getopt_long, but for example ffmpeg getopt_long_only) In my opinion, the following are usually things true: Users prefer long, natural language options because they are easy to remember. Users who wrap scripts in the program, have hundreds of options. If a program becomes large enough, it will eventually fall out of fewer options combinations that make any kind of emotions compared to the canonical option. For example, -Z may be similar to a long option that starts with a completely different letter. At that point, especially for the single guardian, the option becomes a headache to maintain the parsing code. If you do, you have a few options: Use only long options (usually a bad idea) Try to keep your program under 52 options (usually a bad idea) Implement the options where small options only become switches that do not take logic , Use long options for those who ...

odp.net - ODP app working for Oracle clients 10 and 11 -

I want to make my app work for targeted machines where the oracle client can be 10 or 11. Is it possible with ODP? If in my app I refer to Oracle.DataAccess.dll from my Dev Machine (I have ORA Client 11) - My app works on target machines only with client 11 ... If I refer to ODD from my customer 10 - AP ARA works for machines with client 10. Is it possible to develop applications (with ODP) that Oracle customer version 10, 11? I am asking for ORA client versions, not the DB version Thank you! I think the two versions (hence 2.102.2.20 or Anything on Oracle.DataAccess.dll ) is the safest to build on the bottom. In case of machines where higher version is installed, you can set a policy in GAC (global assembly cache). This policy file redirects to applications that use the 2.102.2.20 reference to the new version of ODP.NET (11.xxx.xx). Normal Oracle Client Installation This policy file must already be in your GAC , but if it is not, you can call it ORACL...

Entity Framework 4.0 Best Practise for Creating Object Context -

I would like to know what is the best practice to create an object project instance. Prior to the unit framework, we are advised not to delay the creation of the connection object unless we need to settle it to execute the query and to conserve resources. Will this exercise also apply to objectcontact? Do we want ObjectContext to maintain the underlying database connection once we instantinate the objectcontent or when we release the SaveChanges call? Regards Yong The best practice for creating an image context per HTTP request for more detail Take a look at the article below. Insert in which he has discussed many scenarios. Thanks

Python: urllib2.urlopen(url, data) Why do you have to urllib.urlencode() the data? -

I thought a post had sent all the information in the HTTP header when you used the post ( But it's not a good idea, obviously), so I'm confused that you have to change the data to key = value & amp; Why urlencode () in the key2 = value2 format why is this format used when using POST?: #Failed data = {'name': 'John Smith '} Urllib2.urlopen (foo_url, data) but # successful data = {' name ':' John Smith '} data = urllib. Urlencode (data) urllib2.urlopen (foo_url, data) This "content-type "Is related to the header: The client should know how the post data is encoded or otherwise how it is deco Right? The standard way to do this is via the encoding format application / x-www-form-urlencoded . Now, if the question is "Why do we need to encode?" So the answer is "because we should be able to portray the payload in the HTTP container."

How do I implement a Rails model named "series"? -

Singular and plural forms are the same and I get an undefended_and error while trying to kill the new method. I know why and I know that the easiest solution would be to use another name. I know that I can create a Custom Invocation, but what? The problem is that I actually need a URL like / series, / series / 1 because I'm actually modeling ... wait for it ... series of events. Does not express "set" or "sequence" or any other synonyms. A series of events is not a series or sequence. What is a "nickname" model? Should I use designated routes? Any help is appreciated. Assume that you generate the script / generate series to create your model controller et al. , you should have a line in /config/routes.rb such as . map.resources: Series If you change it in map.series_index '/ series' ,: Controller = & Gt; 'Chain',: verb = & gt ;: index map. Resource: Series This will work or you can add Eric Hill...

c++ - How to print additional information when assert fails? -

often wants to print an additional information, if someone emphasize fails to do so One way to do this is: emphasize (vec.size ()> gt; i !! (Std :: cerr & lt; & lt; "wrong:" & lt; ; Vec In this way the actual size is printed when stresses fails. But it's ugly, and ! It is also easy to forget, which will correct the claim situation and the program will only continue. What is the use of people instead of printing additional information on the indictment failure, like the above? defined as # eserate (status) {if (! (Condition)} {std :: cerr & lt; "eserate fail:" Usage: Acer (vec.size ()> 1); Result: Acer Fail: vec.size () & gt; 1 @ main.cpp (17) You can optionally debugbrake () or exit (-1) or your needs Can be placed in the macro on the basis of. The macro has been updated with different left and right sides: define #SSERT (left, operator, right) {if (((! Left) operator (right))} {std:: ser ...

localhost - Why do I get an AG_E_NETWORK_ERROR in Silverlight on my local machine -

I am hosting my Silverlight app in SharePoint 2010, which is running on my machine, suddenly showing my images Closed, and after a lot of naked, I tracked this issue to an AG_E_NETWORK_ERROR. Searching on the Internet says that I cross in Silverlight- but this is not my problem My site is turned on, and the image URL is The worst part is used to do this work. But I do not know what has changed since then.

.net - Formatting a String for a SQL IN Clause -

I need to format a string and pass an SQL as the parameter of these sections like: Select from the table where in x (@ param1) The literal string passed as an atom looks like this: "item1, item 2, item 3" does not seem to work for this any suggestions? Thanks! I believe what you want to do can be found here:

php - .htaccess redirect folder -

all, I want to redirect all incoming traffic into the folder. Currently I am using it below in an .htaccess file and it works for root directory. But if I browse, this directory does not redirect to the listing. RedirectMatch Permanent ^ / * $ / Public / Thanks / Div> Try this example: Rewrite on RewriteRule! ^ Public / / public% {REQUEST_URI} [L, R = 301]

java - Intermittent Error Message in Eclipse Console Window -

I am starting to learn Eclipse environment, and sometimes when I type some code and "F11" Press, compile and run), I have a successful compilation and run of my program, after that in the red text at the bottom of the console window, this is: Error: JDDP JNI 1.2 Unable to obtain environment, jvm- & gt; GetEnv () Return code = -2 JDWP exit error AGENT_ERROR_NO_JNI_ENV (183): [../../../src/share/back/util.c:820] This Only happens occasionally, and I still have to meet a pattern (open windows or attitude, before saving or not, etc.). A minute ago, it was happening every other time, and now I can not get it at all. In all cases, (very simple) program is going well to complete I'm guessing the way the environment has been established, but in fact, I downloaded the darned thing from the internet and ran it Taken, so whatever should be "Vinyl" beautiful to me. Nothing really hurt, I think - just curious. Eclipse SDK, Version: 3.4.2, Build ID: M200...