Posts

Showing posts from April, 2015

javascript - how to access a subdomain's html5 localStorage from the root domain? -

जब मेरे पास www.mydomain.com और mydomain.com है, तो उनमें से प्रत्येक को एक अलग स्थानीय स्टोरेज मिलता है। मैंने यहां पढ़ा है कि मैं mydomain.com root डोमेन से www.mydomain.com की स्थानीय स्टोरेज का उपयोग कर सकता हूं। लेकिन मैं यह कैसे कर सकता हूँ? मैंने स्थानीय स्टोरेज ['www.mydomain.com'] की कोशिश की है। GetItem ... लेकिन यह काम करने के लिए प्रतीत नहीं होता क्या यह IE विशिष्ट है? मैंने सफारी 5 में कोशिश की। धन्यवाद। मैंने लिखा है शांत लाइब्रेरी जो साझा आइफ्रेम और पोस्ट संदेशों का उपयोग कर क्रॉस डोमेन स्थानीय स्टोरेज समस्या को हल करती है। यह घटना कोणीय समर्थन के साथ आता है। इसे पर देखें

ebnf - Scala Parser Combinators tricks for recursive bnf? -

I am trying to match this syntax: pgm :: = Exprs exprs :: = Expr [; Exprs] expr :: = id | | Xp. [0- 9] + My Scale Packet Parser Composer looks like this: Import Scal.Till.SparkingConitor. Expand StandardTokenParsers with the PacketPervers Import Scale.til.parsing.combinator.syntactical._Object DotTrator PacketParsers {lexical.delimiters ++ = list (".", ";") Def pgm = repsep (expr, ";") Def expr: Parser [Any] = Identity | Expr ~ "." ~ Num def num = numericLit def parse (Input: string) = Phrase (pgm) (New PackratReader (new lexical.Scanner (Input) match {case success (result, _) => println ("success!") ; Some (result) case n @ _ => println (n); println ("bla"); none} def main (args: array [string]) {val prg = "x.1.2.3;" + "Y.4.1.1;" + "Z;" + "N.1.10.30" Pars (PRG);}} But this does not work either " Greedy "and tells me: [1.2] Failure: End of required inpu...

iphone - Including a static library in a Xcode project -

I have developed a static library using Xcode's "iPhone OS-> Library-> Coco Touch Static Library". I compiled it and it works fine then I wanted to include this library in a new project. Here's what I did: Create a new Xcode project "view-based application" Add to project-> project: I added my static library .xcodeproj file Edit active-> active target In the General tab: I've added a static library in "direct dependency" In the Build tab: "Search Path" Then I have added the path of the header in the "Header Search Path" section I tried to use a class I 've put in my static library, but I get a linking error: "_bbc_lass _ $ _ genUIImage", referenced from: Symbol (s) not found in Objc-class-ref-to-GenUIImage TestViewController.o Collect 2: ID1 returned to exit status What I did to me is not wrong. Please help. Thanks in advance I got the solution I pulled & amp; L...

gcc - Prepending (w/out newlines) to an auto-generated dependency list for Makefiles -

Not sure if the title is understandable ... then I'll extend a bit. I is being won by this makefile which uses the GCC's auto-dependency list generator. At the same time, I wanted to have a well-sorted directory structure that separates the source, headers and resources. Dependency Now, makefile dependency list generator ATM is: $ (DEP_PATH)%. D: $ (SRC_PATH)% C @ $ {CC} $ (CFLAGS) -MMKK $ (Include) $ & lt; & Gt; $ {DEP_PATH} $$ D $ $ @ The idea involved is that we make dependency rules, then include it in the making of the building. And the result to say, foo1.o is: foo1.o: src / foo1.c included / include foo1.h / foo2.h included / foo3 .h This will work fine if I find all of my items in the main directory ... even when they say instead of / main / objects ... / Main / items / foo1.o Now, I tried to do this: @echo "$ (OBJ_PATH)" & gt; $ (DEP_PATH) $ * D $$ {CC} $ (CFLAGS) -MMKK $ (Include) $ & lt; & Gt; ...

Is it possible to call an ASP.NET function inside a Javascript function? -

Is it possible to call an ASP.NET function inside the JavaScript function? Like and lt;% @ page language = "c #" autoevolutionwireUP = "true" codefile = "default.aspx.cs" inherits = "_default" % & Gt; & Lt;% @ Import Namespace = "System.Xml"% & gt; & Lt ;; DOCTYPE HTML PUBLIC "- // W3C // DTT XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Script runat = "server" & gt; Protected void btnSave_Click (Object Sender, EventArgs E) {} & lt; / Script & gt; & Lt; Head & gt; ..... & lt; / Head & gt; & Lt; Script type = "text / javascript" language = "javascript" & gt; Function ABC () {. . . . BtnSave_Click (this, e); } This code is just to give me an idea of ​​what I want. No, you will need to return a post to the server to complete it.

c# - How to use the symbols +=, *=,-= -

These interfaces can be simple but the difficulty of finding explanations that is fixed and complete, prompted me to ask a similar mark ( Such as * =, - =, + =, etc.), what are the character combinations of an operand, what do they do and how are they useful (especially related to non-numeric fields)? Examples and definitions will be highly appreciated. Thanks They usually widely Explain: x + = y === x = x + y (for operator's own choice etc.) However ; In some languages ​​you can bespoke + = operator *, or in some situations it can be interpreted differently; For example, in C # events, + = and - = mean "subscribe through ad accessor" and "Cancel membership via exit access" respectively. Usually They are just space saver, but in some cases, may be meaningful difference. * = Where I mean: Only + operator and assignment

regex - How can I catch the following obfuscated email addresses in PHP? -

Consider the following script, which contains ambiguous email addresses, and a function based on *** Tries to change ** using regex pattern matching. My script tries to capture the word: "at", "at", "at", "@" after some text (a domain name), "dot" " After. "" Dot " , after a TLD. Input: $ str [] = 'dsfatasdfasdf asd dsfasdf dsfdsf @ hotmail.com'; $ Str [] = 'I'm at school where I know dsfdsf@hotmail.com'; $ Str [] = 'I live in school my address is dsfdsf@hotmail.com'; $ Str [] = 'My address at school is dsfdsf@hotmail.com'; $ Str [] = 'dsf a t asdfasdf asd dsfasdf dsfdsf@hotmail.com'; $ Str [] = 'DSFDSF A T HOTM One I LCOM'; Function clean_text ($ text) {$ pattern = '/ (\ ba [\. -_] * t \ b | @) [\. \ -_] * (. +) [\. \ -_] * (d [\. \ -_] * o [\ -_] * t. \) [\. \ -_] * (c [\. \ -_] * o [\. \ -_] * M | n [\. -_] * E [\. \ -_] * TOO [\. \ - _] * R [...

c++ - std::swap returns 0xBAADF00D -

मैं दो std :: सूची & lt; डोंटकेयर *> :: आईआरएआर के तहत दृश्य 2005। Iter it1 = ..., it2 = ...; // it1 और it2 ठीक हैं, अंत नहीं () या जैसे (...) {std :: swap (it1, it2); } स्वैप काम करता है, लेकिन जब मैं () गुंजाइश छोड़ देता हूं, तो 1 अंक 0xbaadfood तक चलता है। यह 2 ठीक है। मैंने swap_iter और हाथ से बने स्वैप सहित कई रूपों की कोशिश की। किसी भी मदद की सराहना की:) संपादित करें ठीक है, इसलिए शर्म की बात है समय। स्वैप किए गए it1 एक अगर स्थानीय दायरे में होता है। F ** राजा कटने चिपकाने अपना समय बर्बाद करने के लिए क्षमा करें: / क्या आप अपने कोड अगर की जांच हो सकती है, लेकिन स्वैप वास्तव में इटरेटर (शायद मिटाना) को अवैध ठहराए जाने के बाद हो सकता है।

c# - Storing Data from Forms without creating 100's of tables: ASP.NET and SQL Server -

Let me describe the situation first. We host several alumni during each year and provide an online registration form for each program. An event with date, time, managers, internal billing information etc. with a registration record 1 or more attendees (name , Address, degree, etc.) Information about bio / demographic and alumni data payments and payments We expect that all the above data columns in the table we store We do. The problem is with the 'extra' field that we put on the form. Maybe it is a dinner and there is a veggie or carnivor option, maybe there is a bed and smoking option, or maybe alternative transportation option. It is very strange in "Can you add it in this form?" The types of requests we receive At present, we store any non-standard data in JSONify and in a column (present), which is called 'extra', we can read this data in code but it Not suitable for inquiries. Our internal staff want to generate a quick report on Veggie...

c# - How to generate xsi:schemalocation attribute correctly when generating a dynamic sitemap.xml with LINQ to XML? -

मैं एक गतिशील sitemap.xml उत्पन्न कर रहा हूँ इस के अनुसार एक sitemap.xml & lt;? Xml संस्करण = '1.0' एन्कोडिंग = 'UTF-8'? & Gt; & Lt; urlset xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: स्कीमा स्थान = "http://www.sitemaps.org/schemas/sitemap/0.9 http: // www। Sitemaps.org/schemas/sitemap/0.9/sitemap.xsd "xmlns =" ​​http://www.sitemaps.org/schemas/sitemap/0.9 "& gt; & LT; यूआरएल & gt; ... & lt; / url & gt; & Lt; / urlset & gt; तो मैं sitemap.xml को उत्पन्न करने के लिए XML को LINQ का उपयोग कर रहा हूं XNamespace ns = "http://www.sitemaps.org/schemas /sitemap/0.9 "; नया XElement (एनएस + "यूआरएलसेट", नए एक्सएट्रीब्यूवर ("एक्सएमएलएनएस", "http://www.sitemaps.org/schemas/sitemap/0.9"), नई एक्सएट्रीबेट (एक्स-नेमस्पेस.एक्सएमएलएनएस + "एक्सएसआई", "एचटीटीपी: //www.w3.org/2001/XMLSchema-instance "), // नया XAttribute (" ...

Upgraded VS 2010 Ultimate - Modeling Project - Layer Diagram freezes visual studio -

I just run from business to last, VS Updated to 2010, especially to access architecture modeling utilities. After successfully creating a new modeling project, I am unable to create a useful layer diagram. Every time VS Designer Shows Pictures, VS Freezes, which has to be forced through the Task Manager. I joined VS 2010 has complete repair / restoration, but the same problem continues. I have Referbor and TaylorRock JustCode installed with some power tools. If anyone has such an experience, I would love to hear how you solved them. It seems that the telecort is incompatible. Disabling it completely removed Re-enabled and returned to it now it has been disabled and VS 2010 is doing a great job again. Fortunately, I'm more dependent on the razor, which is very happy in the presence of the Layer Diagram Designer.

python - Why is it not safe to modify sequence being iterated on? -

The sequence to be aligned in the loop is not safe to modify (this is only for temporary sequence types Maybe, like lists) If you need to modify the list that you are repeating (for example, to duplicate selected items), then you have to iterate over the copy slice notation making it particularly convenient Is: & gt; & Gt; & Gt; For x in [:]: # Copy a piece of the entire list ... if lane (x)> gt; 6: a.insert (0, x) ... & gt; & Gt; & Gt; Why is it not safe to do for X in an X code> ?? Do not get very technical: If you are running again Python The sequence changes through a temporary sequence and when it is moving through it, it is not always completely clear what will happen. If you include an element in the sequence, then what will happen next, what will be considered as the "next" element in the sequence? What happens if you delete the next object? For this reason, when you change it, walking through a temporary sequence le...

sql - Stored procedure, pass table name as a parameter -

I have almost half a dozen generic, but quite complex stored procedures and functions that I would like to use in a more general fashion. Ideally I want to be able to pass the table name as a parameter in the process, because at present it is a tough code. To use dynamic SQL to tweak in the dynamic table name from the I parameter I tried to replace all the existing SQL, although I was thinking that the table is referenced in another way Any easy way to do this? For example: SELECT * FROM @MyTable WHERE ... If so, How do I set up myTable variable? I am using SQL Server 2005. Dynamic SQL is the only way, but I reconsider the architecture of my application if it needs to be . SQL is not very good at "normalized" code. It works best when it's designed and coded to do personal work. Selecting from TableA table is not similar to selection from the tab, even if the selected details look the same, different indexes, different table sizes, data delivery, a...

.net - How closely is Entity Framework tied to WCF RIA Services? -

मैं सिल्वरलाइट में एक साधारण प्रूफ ऑफ अवधारणा "व्यावसायिक अनुप्रयोग" बनाने की कोशिश कर रहा हूं और मैं एक दीवार में चल रहा हूं डेटाबेस में और बाहर डेटा प्राप्त करने की कोशिश में। मैं वर्तमान में डब्लूसीएफ आरआईए सेवाओं को सीखने की कोशिश कर रहा हूं, लेकिन मैं फंस गया हूं क्योंकि मेरे डेटाबेस में मौजूदा तालिकाओं के साथ काम करने के लिए मुझे संस्था ढांचा नहीं मिल सकता है (हालांकि वे मॉडल डिजाइनर में दिखाई नहीं देते हैं, हालांकि मैं उन्हें उनसे जोड़ देता हूं विज़ार्ड)। मैं अभी भी आरआईए सेवाओं (मुझे लगता है) का उपयोग करना चाहूंगा, लेकिन मुझे नहीं पता कि इस प्रक्रिया में ईएफ को छोड़कर मुझे कितना नुकसान होगा। वे कितनी बारीकी से एकजुट हो गए हैं? एक नया डोमेन सेवा जोड़ने के लिए WCF RIA Services विज़ार्ड की आवश्यकता है प्रदाता जो डेटाकॉन्टेक्स या ऑब्जेक्टटॉन्टेक्स्ट का समर्थन करता है EntityFramework, Linq2sql, और NHibernate इन दो श्रेणियों में से एक में आते हैं। हालांकि, यदि आप झुकाव का उपयोग किए बिना विज़ार्ड का उपयोग किए बिना एक डेटासेवा को लागू करने के लिए स्वतंत्र महसूस क...

actionscript 3 - using action script how to draw a semi circle -

How to draw a cm circle using the action script ... I need to add a semicolon to another circle, The circle looks like this! [Alt text] [1] How to draw a semi-circle inside that circle Use the following function to attract the required arc. function drawArc (centerX, centerY, radius, startup group, arcangle, phase) {startAngle - = .25; Var two pi = 2 * monastery PI; Var angleStep = arcAngle / steps; Var xx = centerX + Math.cos (startAngle * 2 PI) * Radius; Var yy = centerY + math sin (startAngle * twoPI) * radius; Move (xx, yy); For {var i = 1; i & lt; = steps; i ++} {var angle = startAngle + i * angleStep; Xx = centerX + Mathos (angle * two pi) * radius; Yy = centerY + Math.sin (angle * two pi) * radius; From line (xx, yy); }} Line style (0, 0xFF0000); Draw ARC (250, 250, 200, 45/360, -90/360, 20); semicolon? It is not well to join the end points. Use Lineto.

documentation - Documenting in grails -

I want to generate something like my grails project. I have tried grails doctor, but it does not organize the project in taglibs etc. I have a desire to bring the taglib easily for a given namespace. In addition to this, clearly see the status of the global document project. Did you know that a plugin exists for this or any workaround? Thanks in advance Nothing like that I know it's automatic Generates from. Everything under the source / docs / guide is included in the main document, and the files under src / docs / ref are included in the left frame. I create subdirectories sub-section under subsidy / docs / referee.

ruby on rails - Stubbing A Model Attribute -

I am writing RSPEC test for my car class, and there is a question about joking about the parts array in cars I want to stumble, how can I do this? I have the following code: There are cars in the class: parts def heavy_count parts injection (0) {| Sum, v | V.weight & gt; 10? (= "#heavy_count") reference (: car) {mock_model (car, etc.) with the test : Brand = & gt; "Toyota")} Let's (: Vote1) {mock_model (part ,: weight => 11)} ((vote: 2) {mock_model (part, weight => 11) } "2 If more than 10 parts 2 is heavy" What # do I stub parts here? Suppose you are using RSPC for fun and not the second framework: part.should_receive (: find) .and_return ([vote_1, vote2])

python - py2exe on PIL ImageStat.Stat throws Exception: argument 2 must be ImagingCore, not ImagingCore -

I am trying to create .exe from a Python program using py2exe, but when I run .exe Exception in Thread I: Traceback (most recent call final): File "threading.pyc", line 532, __bootstrap_inner file "threading.pyc", in line 484, run In the file "webcam.py", in line 66, type "ImageStat.pyc" in the Loop file, in line 50, __init__ file "PIL \ image.pyc", line 9 9, in histogram Line: Logic2 should be imaging Here, there is some code: # webcam.py cam = VideoCapture.Device (); Def getImage (): return cam.getImage (); ... camerashot = grayscale (getImage ()); LightCoords = []; Level = camshot.getextrema () [1] - Flexibility; In camshot.getdata (): if p & gt; = Level: lightCoords.append (255); Else: lightCoords.append (0); Mask I = New ("L", Ridge); MaskIm.putdata (lightCoords); ... 64 colorcamshot = getImage (); 65 camshot = grayscale (color camera); 66 Brightness = ImageStat.Stat (camshot, masked) .sum [0] / divVal; ...

drupal - Creating a view for a node -

I have some problems in creating a view for one node in my website. The content is the path to 'content /%' from which the% node is the title. What I tried to do, create a page view in View2 module, but there is no advantage. When I try to preview the name of one of my nodes, nothing appears, and when I go to the node, it reads the text on the screen without any formatting. See some settings from here ... please tell me that I have to provide any additional information! Page Settings Path: Content /% Logic Node: Title: Title:% 1 If the argument is not present then work to get: Provide default argument The default argument type : Node id from the URL edit I will describe the behavior I am looking for ... I have a list of nodes in my website at a glance .... Which points to any issue Does not appear. What I have to do is click on the node and go to the page of that node, which is basically an extended view of an item from my list. I thought...

php - loading value into a select? -

When my form is loaded (with variable), then I will assign the value of most text form items to Easily set up with tags: & lt; Input type = "text" name = "fname" id = "fname" value = "& lt ;? php print" $ fname ";? Gt;" / & Gt; How can I do this with Choose input form elements? I think I have to use a script? Thank you very much You have selected attribute, for example & lt; Option value = "foo" & lt ;? Php echo ($ value == "foo")? 'Selected =' selected '': ''; ? & Gt; & Gt; Bar & lt; / Options & gt;

python - Search for a file using a wildcard -

I should get a list of filenames with a search pattern with wildcards. Such as: getFilenames.py c: \ PathToFolder \ * getFilenames.py c: \ PathToFolder \ FileType * .txt getFilenames.py C: \ pathpolder \ FileTypeA.txt How can I do this? like this: & gt; & Gt; & Gt; Import Globe & gt; & Gt; & Gt; Glob.glob ('./ [0-9]. *') ['./.g.g ",' ./2.txt '] & gt; & Gt; & Gt; Glob.glob ('* .gif') ['1.gif', 'card.gif'] & gt; & Gt; & Gt; Glob.glob ('.gif') ['1.gif'] It comes directly from here:

JavaScript: property assignment through prototype -

I am struggling to understand the difference in the following 2 set codes from the original code and I have a bit simpler for myself Made it. Question: I think I understand how CodeA works Ninja.prototype.swung = false function ninja () Specifying a new property in , and ninjiaA.swung because it makes a false evaluation. However, in CodeB, when we declare the function with ninja () with this.swung = true , then Ninja.prototype.swung = false takes no effect, and ninja. Swung remains on the right to evaluate. I have not been able to understand why it does not work later in the assignment codebase. Can anyone enlighten me on this? Code: Function Ninja () {} Ninja.prototype.swung = false; Var ninja = new ninja (); NinjaA.swung; // Valuation for false CodeB: function ninja () {this.swung = true; } Ninja.prototype.swung = false; // I'm expecting this change lies, // but it is not. Var ninja = new ninja (); NinjaA.swung; // evaluates the truth Thank y...

javascript - JS restrict mouse movement with axis when shift pressed (for draggable element) -

When I press the shift button, I want the user to move only the mouse upwards / down or right / right . My current raw idea is to use event simulations to stop all movements and to pass the necessary event when the change is pressed (which will only have the required axis movement). I use the jQuery Draggable, so other ideas are to determine that when the shift is pressed and dragged to itself, but it can check the dragable code and any time it might be time consuming How to do more elegant way? Resolve by dragging restriction restrictions (FF only): Apply ApplyGrogressifference (Event, Prepayment) {if ($ (".componentPlaced"). DrugGable ("Option", "Axis")) Return; If (Math.abs (event.clientX - prev.position.x) & lt; Math.abs (event.clientY - prevposition.y)) $ $ ('componentPlaced'). Draggable ({axis: 'y'}); } And {$ ('component component'). Dragable ({axis: 'x'}); }} Apply the functionShiftHandler (event) {if...

jquery - Finding and wrapping text with tag in another tag -

अपवाद परिणाम के लिए एक पाठ है जैसे: & lt; span class = 'Sxception' & gt; अपवाद फेंक दिया गया कृपया विवरण की जांच करें: संदेश: स्ट्रिंग को मान्य दिनांकटाइम के रूप में पहचाना नहीं गया था स्टैक: सिस्टम पर.डेटाइमपरर्स.परसएक्सैक्ट (स्ट्रिंग एस, स्ट्रिंग फ़ॉर्मेट, डेटटाइमफ़ॉर्मैट इन्फो डीटीएफआई, डेटटाइम स्टाइल शैली) ... पर & lt; / span & gt; मैं सीएसएस के साथ कुछ ग्रंथों (संदेश:, स्टैक: और उनके बीच ग्रंथों) को लपेट करना चाहता हूं। इसलिए मैं इसे एक परिणाम के रूप में रखना चाहता हूं: & lt; span class = 'sException' & gt; अपवाद फेंक दिया गया। कृपया विवरण की जांच करें: & lt; b & gt; संदेश: & lt; / b & gt; & lt; span class = 'sMessage' & gt; स्ट्रिंग मान्य दिनांकटाइम के रूप में मान्यता नहीं थी। & Lt; / span & gt; & Lt; b & gt; ढेर: & lt; / b & gt; & lt; span class = 'stack' & gt; सिस्टम.डेटाइमपरर्स.परसएक्सैक्ट (स्ट्रिंग एस, स्ट्रिंग फ़ॉर्मेट, डेटटाइमफ़ॉर्मैट इन्फो डीटीएफआई, ...

perl - DBD::CSV: Returns header in lower case -

I have a problem with the module DBD :: CSV v0.30 after updating the new version From, all headers in fetch_hashref are fewer cases instead of mixed cases. The Finili data will be committed to a MySQL database and the column header must be mixed case. It is a snippet of my script using DBD :: CSV My $ Csv_dbh = dbi- & gt; Connect ("DBI: CSV: F_DIIR = \. Csv_eol = \ n"); $ Csv_dbh- & gt; {F_dir} = $ ElementConfig-> {_ DIR} if defined ($ ElementConfig-> {_ DIR}); $ Csv_dbh- & gt; {Csv_sep_char} = "$ separator" if (defined ($ separator)); $ Csv_dbh- & gt; {Csv_eol} = $ csv_eol if (defined ($ csv_eol)); $ Csv_dbh- & gt; {Csv_allow_whitespace} = $ csv_allow_whitespace if (defined ($ csv_allow_whitespace)); My $ CSV_Select; Unless (defined ($ ref_FullSQLSt)) {// standard "SELECT * FROM filname.txt" $ CSV_Select = "SELECT". $ {$ Ref_CSV Select} "$ From File" $ {$ Ref_CSVWhere}; } And {$ CSV_Select = ...

When using a windows service, is it better to use the start parameters or just have an app.config? -

When clicking on the properties of a window service, you can set the start parameter. Do you want to use it to configure a Windows service or to use AppConfig? For a user, going to change the starting parameter of the service and looking for the install directory is very easy, open the app.config and edit it. You feel that you have answered your question. .. It really depends on the scenario of using your service and depends on the amount of configuration required for it. As you said, the startup parameters make it easy because they are directly controlled in one place where the service is managed, however, they are not self-documenting and you still have a valid parameter Must provide documentation on what is there. They do not even lend themselves in a comprehensive configuration. An app.config, on the other hand may be the document itself (xml comment), all possible configuration options are specified and you may have too many configurations another To think about...

Is .NET Socket Send()/Receive() thread-safe? -

Since a socket is completely duplex, which means that you can send and receive simultaneously, therefore. Send NET Socket () / Received () thread-protected? I need to send (in thread) and receive (). (bottom thread protection , at the end of the page): Examples of this class are threads secure. Then I think the answer is "yes".

sql - Variable not getting set by select -

I have an issue where a variable is not set with a selection statement. A table variable @ contact (which is used to control a loop) and then is included in the real contract and contract line tables. My selection is: Select Top 1 @contract_id = c.contract_id, @account = ch.account, @service = cl.service, @model = Cl.model, @serial = cl.serial, @contract = ch.contract @ Contracts c inner in contractline cl C.contract_id = cl.contract_id Internal connected contactHard cl.contract = ch.contract where cl.contract_id = @contract_id But when I do a select @contract_id, then return me a NULL , as all of my variables are I Contract_ID = CLC with Contract_ID, a simple SELECT * is inserted C. CC contract = seed contract and it gives exactly 1 line with values ​​in all the right places, there is no vacancy in the selected values. What have I done? It seems that your WHERE block can be prevented from returning. You have mentioned that you have tested the same SELECT w...

sql - Getting DATETIME for rows inserted/Modified -

Using SQL Server 2005, I need to get the date time of all the rows in a particular table to be created Unfortunately, there are no "linewashing" or datetime columns in the table (I know this is a major design flaw). So, I was wondering if SQL Server keeps the date time for inserting each line. Recommendations for comments are appreciated with lamps No, the SQL Server does not timestamp the rows automatically when they are created as you have suggested, for the future, you can create a new date_created column and make it the default GETDATE () : Optional table your_table ADD contract dc_your_table_date_created debit gate (date_created; If you want, you can also use a trigger instead.

SQL select until full sort of problem -

I am trying to write some SQL which pulls from several tables using unions, where the rows date one hour Less than. But if the total rows from the SQL query do not add up to about 20, then it should be changed until the date of less than two lines and until it reaches 20 rows. Is it possible to do this only in SQL? I have a way of implementing it using PHP, but it has been done in SQL. SQL Server SELECT Top 20 .. Other DB SELECT .. LIMIT 0, 20

jsp - jspc-maven-plugin - inconsistent genereated class directory -

I have a web-app with configuration below (parent to parent plugin). JSPC fixes my JSP properly but there is some very strange behavior: In my web app, if I run mvn clean install , then compiled JSP class Is placed in the target / classes like I want if I run mvn install without cleaning, then the compiled JSP is placed in target / JSP-source / JSP with JSP The result is that on a non-clean run, it will join the war The old version of the SP class is. Why is this happening to anyone? & lt; Plugin & gt; & Lt; Group & gt; Org.codehaus.mojo & lt; / Group & gt; & Lt; ArtifactId & gt; Jspc-maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.4.6 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Jspc & lt; / Id & gt; & Lt; Goals & gt; & Lt; Goal & gt; Collection & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration ...

php - How to get data from a mysql database using javascript? -

If possible, how can I get (and post) data from a mysql database using javascript? I know that I can use php and other languages, but I should know that it is possible with Javascript? Thank you in advance. It is not possible with Javascript I can not even find it with it. Not sure about your exact requirement, but you can use some server-side languages ​​to interact with the database, though.

php - dont wait for script to finish -

I have a PHP script that sends the SMS, the problem is that before some SMS is sent to my The page in the site will wait until this script runs. How can I give a message to the user that the SMS will be sent and the normal operation of the site will resume. The only issue here is that the browser thinks that it is awaiting more output from the script when Nobody will be there. You can put a load in a different process, or you can use an asynchronous web call, or you just ..... & lt; Php register_shutdown_function ('when_alls_done'); .... // Present Page Exit; Function when_alls_done () {if ($ _REQUEST ['send_to_phone']) {send_sms ($ _ request ['send_to_phone'], $ _REQUEST ['message']); }} The request should flush the webserver on 'exit' and the browser should know that the response has been completed (before that there is a clear flush in the PHP code The webserver buffer will not flush or the result will result in encoding wit...

##*/ use in UNIX Shell Scripting -

Can anyone explain how ## * / UNIX shell works in scripting? I have seen that it uses corn Is in the shell. This is used specifically to remove the file extension. For example, "Func_write_app_log" is being removed from the $ {CIE_STATUS_FILE ## * /} status file Assume that the file is CIE_STATUS_FILE.DAT, then ## * / CIE_STATUS_FILE This also works in Bash and is described as: $ {string ## substring} $ removes the longest match of the substring from the front of the string. is a wildcard which means Anything matches. Your example removes the path from the file, the extension No. $ bazfile = '/ foo / bar / baz.txt' $ echo $ {bazfile ## * /} baz.txt the extension you want to use To delete it, % : $ {string% substring} removes at least the $ string of the substring $ string Back. $ echo $ {bazfile%. *} / Foo / bar / baz

dom - Using JavaScript insertBefore() to insert before a TextNode? -

मेरे पास HTML की तरह निम्न है: & lt; div id = "move-me "& gt; & Lt; a href = "#" & gt; मैं एक लिंक हूं & lt; / a & gt; & Lt; / div & gt; & Lt; div id = "new-parent" & gt; कुछ सादा पाठ & Lt; / div & gt; मैं जावास्क्रिप्ट लिखने का प्रयास कर रहा हूं जो # नई-पैरेंट डिवा के अंदर पूरे # स्थानांतरित-मुझे डिवा को स्थानांतरित करने का प्रयास कर रहा है, ऊपर टेक्स्ट, ऐसा ही है: & lt; div id = "new-parent" & gt; & Lt; div id = "move-me" & gt; & Lt; a href = "#" & gt; मैं एक लिंक हूं & lt; / a & gt; & Lt; / div & gt; कुछ सादा पाठ & Lt; / div & gt; यहां मेरे पास जावास्क्रिप्ट है: फ़ंक्शन moveDiv () {var moveable = document.getElementById ('move-me'); Var newParent = document.getElementById ('नए-मूल'); NewParent.parentNode.insertBefore (गतिशील, newParent.firstChild); } मैं डिबग करने के लिए फायरबग का उपयोग कर ...

inheritance - Scala abstract method is null in superclass when subclass implements it using val? -

I got an error in my scale code, which makes me puzzle below is a simplified version of the problem. In the constellation of an abstract class, I want to know something about abstract methods in some ways. Thus, when a subclass is created, they are checked, to see if everyone should apply it. It goes wrong when the subclass implements an abstract method using a "wall": Scala code: Abstract class A {def aval: string thrust (aval! = Null, "aval == null") emphasis (aval == "B", "Aval:" + aval)} extension of class B A {def aval = "B" VariousScalaTests object {args: Array [String]): unit = {val slash error: Exceptions in thread "main" class = A {val aval = "B"} Java.lang.AssertionError: Claim Fail: Aval == Scale on tap. Pedfeh $. Asset (Preface: Scala: 92) AT & Lt; Init & gt; (Miscellaneous titles. Scala: 4) c. And lieutenant; Init & gt; (Miscellaneous titles.Syaka: 19) on various scallat's...

mysqldump - mysql rbar situation -

What would be the best way to handle this situation? I'm working off the shelf software, and it stores the user-defined field names in the database as a line instead of adding a new column in the table. It looks like this: id FIELDNAME fieldValue propertyId 1 Latitude 23.192 id_property1 2 Longitude -10.323 id_property1 3 Latitude 23.192 id_property2 4 Longitude -11.824 id_property2 5 Latitude 25.254 id_property3 "" I enters the need to filter the table based on user input so FIELDNAME and fieldValue, user, FIELDNAME = "Latitude" and fieldValue = "23.192" this return id_property1 and id_property2 Come on. But the user enters, then FIELDNAME = "Latitude" and fieldValue = "23.192" and FIELDNAME = "Longitude" and fieldValue = "- 10.323" It will just id_property1 back I use loops Having made an approach. Php, but I'm worried that it will be down under a lot of records. Thank you! Use a join s...

Should I bring temporary variable declarations out of loops in C and C++? -

यहाँ मेरा क्या मतलब है, मानो मेरे पास कोड है: के लिए (int i = 0; i & lt; 1000; i ++) {चार * ptr = कुछ; / * ... पीटीआर का उपयोग करें * /} ऐसा लगता है कि चार * ptr हर बार लूप में आवंटित हो जाता है, जिससे यह अप्रभावी हो जाता है? क्या यह लिखना अधिक प्रभावी है? चार * ptr = कुछ; के लिए (int i = 0; i & lt; 1000; i ++) {/ * ... का उपयोग करें ptr here * /} कृपया इस दिलचस्प समस्या पर टिप्पणी करें। धन्यवाद! धन्यवाद, बोडा सिडो। यह एक प्रदर्शन अंतर बना सकता है , लेकिन कई अनुकूलक कंपलर आपके लिए यह ऑप्टिमाइज़ेशन करते हैं, यदि उपयुक्त हो इसे "" कहा जाता है।

javascript - Post js array to php @jquery @codeigniter -

I have a PHP controller with the AGX post method (I'm using the codeigniter) to cross a JavaScript array I am trying. Data is being sent but $ _POST ['data'] is not known This code is: JAVASCRIPT: function update_order () {var ordre_column1 = $ (' # Column1 '). Sortable ('toArray'); Var data = serialize (ordre_column1); $ .post ('../../ controlleur_groupe_admin / ordre_box', data); My control: function ordre_box () {$ data = $ this- & gt; Input-> Post ('data') $ array = unserialize ($ data); Print_r ($ array); } I did not get any returns in the firebug, I wonder if the content type is incorrect: content-type application / x-www-form-urlencoded; Charset = UTF-8 Thank you. To simplify the code: Javascript: function update_order () {var ordre_column1 = $ ('# column1'). Sortable ('toArray'); Var data = ordre_column1.toString (); $ .post ('../../ controlleur_groupe_admin / ordre_box', data);...

methods - What is wrong with this C# code? -

सार्वजनिक बूल आइएसआइआलिड () {रिटर्न (गेटर्यूली उल्लंघन)। गणना () == 0); }} मुझे यह त्रुटि मिल रही है: ; मैं क्या कर रहा हूँ मैं इस ट्यूटोरियल का पालन कर रहा हूं: मुझे यकीन नहीं है। P> आपको IsValid के बाद कोष्ठकों की आवश्यकता नहीं है, क्योंकि यह कोई संपत्ति नहीं है (संभवतः, क्योंकि आप प्राप्तकर्ता का उपयोग कर रहे हैं) इसे इस तरह से लिखें: सार्वजनिक बूल आइएसआइआलिड {प्राप्त करें (रिटर्न (गेटर्यूएल उल्लंघन)। गणना () == 0); }} वैकल्पिक रूप से, अगर IsValid थे एक विधि, यह इस तरह दिख सकता है: public bool IsValid () { वापसी (GetRuleViolations ()। गणना () == 0); }

c# - Style for Textbox Silverlight -

I want to create a simple style for the text box. OnFocus want to be able to change the border color of the text box. I wrote the following and it works, however, everything has been rested, I have to declare the height, the feeling of non-centric bounds and the feeling is different. How can I create a template to affect only the ONFOROX state? & lt; Style x: key = "textbox type" targettype = "textbox" & gt; & Lt; Setter Property = "Borderbrush" Value = "Gold" /> & Lt; Setter Estates = "Template" & gt; & Lt; Setter.Value & gt; & Lt; ControlTemplate TargetType = "Textbox" & gt; & Lt; Grid Height = "{TemplateBinding Height}" & gt; & Lt; VisualStateManager.VisualStateGroups & gt; & Lt; VisualState Group x: Name = "General Location" & gt; & Lt; VisualState X: Name = "General" /> & Lt; VisualState X: Name = "mouse...

snmp - Send trap v2 in Java -

How can I send snmpv2 webs from the Java application? I tried to make an example on snmp4j, but it does not work. I use it for javadoc can help you write your code You can use this method Edit: Good At this time I do not own the code, but you can mention one. You have to use Snmp.notify () to send a V2 trap instead of Snmp.trap (), as Trap () only supports sending V1 mesh.

javascript - Can anyone please show a simple example of using BeautyTips? -

Looking for a simple example of how beautytips can be used (HTML + CSS included)? My requirement is - I'm displaying the product name. When hovering over the product name, I want to display a product image in the tooltip. How can I do this? Thanks Here is a website with some samples: Believing that you are referring to this jquery plugin

windows - Is there a way to sleep unless a message is received? -

I am working in a service whose main loop looks like this: While start (FServer.ServerState = ssStarted) and (Self.Terminated = false) self.ServiceThread.ProcessRequests (False); ProcessFiles; Sleep (3000); End; There is a lot like the process application.process message . I can not pass it to true because if I do this, no message is received from Windows, and process files will not run, and it must be run continuously to keep speed CPU usage low is. It just works fine until I try to shut down the service from the Windows Service Management list. When I hit the stop, it sends a message and hopes that it gets almost instant feedback, and if it is between sleep commands, then Windows will give me an error which the service did not respond to stop command. So what do I have to say "sleep for 3000 or until you get the message, whichever comes first." I'm sure there is an API for this, but I'm not sure what this is. Do anyone know Use the timer to run...

getting Principal during Grails Spring Security authentication -

I am wrapping the implementation of spring protection in Grails. This is the implementation on my first spring security - I used to use Azegi first. The problem here is what I am doing. In Asegi, I was able to recover the authenticated user in the on-line interactive etxevent () callback to get access to the user's principle, and then to access SecurityContextHolder while getting the 'live' user from the database. In Spring security, SecurityContaxHold does not appear - when I try to access it, then I receive a low-level Grails complaint about such a method on such an object. Then, my question: How can I use SecurityContextHolder onInternactiveAuthenticationSuccessEvent or Is there a better way of getting certified theory? Thank you, donation It may have to be updated - this Spring Protection was changed from 2 to 3 - it is now org.springframework.security.core.context.SecurityContextHolder , but there has been no change in the methods. But this ...

.net 3.5 - Virtualizing WPF Wrap Panel Issue -

There is not a lot of options for virtualization wrap panels for use in WPF. For one reason or another the MS decided to not do a ship in the standard library. Anybody can be so bold to provide a crowded source response (and explaination) for the first work item on the following CodePlex project, I would appreciate it: Thank you! Problem Summary: I have tried to use recently. Verticalizing Loppanal has faced another bug from this project. Repeating steps: .. Create listbox Setting wrappanel virtualizing the itemhost in a listboxpanel template Tie the ItemSource of the listbox to a noticeable collection. Remove an item from the support noticeable archive. Debug.Assert fails (Debug.Assert (child = = _children [childIndex], "wrong child was generated");) In MeasureOverride, and a null in the cleaning method Exceptions continue to execute the results [see attached screenshots]. . Please let me know if you are able to fix it Thank you, AO Code...

passing data structures from java to perl -

I want to pass some data structures from Perl to Java. In Perl, it should be basically a hash where the key is string and each value is either a hash or hash of a string hash. Is there a way to dump data from Java that can be easily parsed by a parl?

SharePoint 2007 web parts integration with Project Server 2007 -

For my knowledge, Web Parts has the ability to display portions of other web pages. Is it difficult to do this if it is possible if it is possible to integrate SharePoint 07 with Project Server 07 and display a Web page from a project server via a Web Part on a SharePoint site? I understood a bit about this page (, and) integration, but I am not a SharePoint specialist, I am actually new to SharePoint, so much of what is mentioned in my help does not. You already know that in fact the project server is with the additional elements SharePoint A Project Web Access (PWA) portal is a SharePoint site collection that knows the SharePoint content database and four project server databases, and has a boat of web parts and pages that present project data and in the SharePoint site collection Manage the processes. The page viewer Web Part is the easiest out-of-the-box web part to show the page within a SharePoint page. Under the hood, an IFRAME is dropped on the page to give eff...

objective c - Joining a NSArray of objects into a string, but need to be able to specify property -

मेरे पास NSArray का Foo वस्तुओं है @interface Foo: NSObject {} - (NSString *) नाम; @end मैं इन सभी [Foo name] परिणामों में एक NSString में शामिल होने के लिए सक्षम होना चाहता हूं। सी # में मैं इनमें से एक सरणी को LINQ का उपयोग करके इसे का एक सरणी बनाकर और String.Join () : सूची में क्या ऐसा उद्देश्य-सी में संभव है? मुझे पता है के बारे में [NSArray componentsJoinedByString] , लेकिन मैं कैसे आसानी से [Foo name] मैन्युअल रूप से looping गर्त के बिना सभी वस्तुओं के गुणों को चुन सकता है इसकी सामग्री? [[myArray मूल्य ForKey: @ "name"] componentsJoinedByString: @ ", "] ()

optimization - SSE2 intrinsics: access memory directly -

Many SSE directives allow source operands to have 16-byte coalition memory addresses. For example, various (UN) packed instructions PUNCKLBW are the following signatures: PUNPCKLBW xmm1, xmm2 / m128 Now with all possible intrinsics May not seem to be. It is essential to use _mm_load * intrinsics to read anything in memory, it is natural for PUNPCKLBW: __M128i _mm_unpacklo_epi8 (a __m128i, __m128i b); (As far as I know, __m128i type always refers to an XMM register.) Now, why is this? It is nostalgic because I see the potential of some optimization by addressing the memory directly ... The built-in relatively Direct references are referred to for actual instructions, but compilers are not obliged to issue related instructions. Optimizing the load (even if written internally) after an operation in the memory form of operation is a general optimization by all respectable compilers, when it is beneficial to do so. TLDR: Write loads and internal operations, and let...

design - How can this circular, bidirectional dependency be resolved? -

मेरे पास एक RequestHandler वर्ग और एक RequestListener वर्ग है। एक अनुरोधहैण्डलर एक RequestListener बनाता है और इसे खुद के लिए एक संदर्भ गुजरता है बदले में RequestListener RequestHandler पर विभिन्न प्रकार के अनुरोधों को संभालते हैं जब उन्हें संसाधित किया जाता है (उदाहरण के लिए handleTypeARequest (), handleTypeBRequest () आदि)। दुर्भाग्य से, RequestHandler भी requestListener पर तरीकों को कॉल करता है (जैसे processNextRequest ()), इसलिए मेरे पास एक परिपत्र निर्भरता है: class RequestHandler {RequestListener requestListener; ...} वर्ग RequestListener {RequestHandler अनुरोधहैंडलर; ...} इसका मतलब है कि दोनों के बीच सख्त युग्मन और आमतौर पर कोड गंध माना जाता है। एक समाधान विभिन्न ऑब्जेक्ट्स का उपयोग करने के लिए प्रत्येक विभिन्न तरीकों के बजाय अनुरोध अनुरोधकर्ता, अनुरोध किए जाने पर, एक अनुरोध पर कार्रवाई कर सकता है और इसके लिए कुछ ऑब्जेक्ट ऑब्जेक्ट वापस लौटा सकता है। दुर्भाग्यवश, मैं वास्तव में इस दृष्टिकोण को पसंद नहीं करता, क्योंकि अधिक वस्तुएं और कक्षाओं की अतिरिक्त जटिलता और भाग क...

Does GWT JSNI support callbacks? -

I am creating a GWT app that uses Web SQL Local Storage (). The problem is that the web uses the SQL API callback function as a logic. Is it possible to pass "Java" callback to JSNI? Yes, it does: Private static country zero doThingWithCallback () / * - {var self = this; Var Callback Fn = $ Entry (Function (Val) {Late @ Com.your.package.aclass.a Method (Ljava / lang / String;) (val);}); $ Wnd.someApiThatTakesACallback (callbackFn); } - * /; To memorize two things: $ entry () to track code while using the debugger GWT reminds var refers to this inside the self = it function - else this function

How to create a 2D array of objects in Ruby? -

I am making a map for my roguelike game and already I stumbled upon a problem. I want to make a two dimensional array of objects. In my last C ++ game I did this: square tile; // Tile map found in another file [MAP_WIDTH] [MAP_HEIGHT]; I do not understand how I should do this with Ruby. theMap = Array.new (MAP_HEIGHT) {Array.new (MAP_WIDTH) {Tile. New}}

java - Is using checked exceptions in external APIs a good idea? -

A test extraction is not rare in the API, one of the most famous examples is IOException In and often annoys me to deal with this exception really annoying example was one of our projects. It is composed of many components and each component declares specific check exceptions. The problem (in my opinion) is that at design time it was not known exactly what would be the exception. Thus, for example, component configurator declared configurator access . When I asked why not only use uncontrolled exceptions, I was told that we want our app to be strong and do not shock in runtime. But it can be as fast as a weak argument because: Most of those exceptions make the app unusable, yes, it does not blow up, but these messages Can not do anything to open flood logs. Those exceptions are not specific, and in effect it means that 'something bad happened' how is it supposed to fix the client? In fact, there are exceptions for logging in all the recovery and then it is swall...

actionscript 3 - How do I change the size of an HBox in Flex to fit its container? -

I am creating an HBox, setting it to a scroll policy by filling it with a button grid. When I change the size of the window, the stage size changes, and at such a point, HBox ... does. After reaching the height of this grid, this shrinkage stops, as its "minimum-height" breaks down the scrollbar which I am trying to install in this case. I set the height to 100%, does not it always take the height of the step, her parents? & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Mx: application xmlns: mx = "http://www.adobe.com/2006/mxml" initialize = "init ();" Horizontalcosol policy = "off" vertical cycrol policy = "closed" width = "100%" & gt; & Lt; Mx: script & gt; & Lt ;! [CDATA [import mx.controls.Button; Import mx.containers.grid; Import mx.containers.GridRow; Import mx.containers.GridItem; Protected Works init (): Zero {for (var i: int = 0; i & lt; 3; i ++...

javascript - iFrame file upload with IE produces download dialogue -

I am developing a custom module to handle the Duplex Document Management At this point, the module loads, you can upload files (through hidden iframes and some AJAX requests), browse directories and set different levels of permissions. And everything works perfectly in Firefox. Problem: However, I go into a problem. For some reason when I upload a file, the file save the dialog and I am prompted to download the uploaded file. It seems that this is telling me to download it from the web server TMP location, because this file name and so on. However, if I cancel and refresh the page, then I can see that the file I uploaded It was actually uploaded to the server. How the process of upload here works Click on the upload button The upload button is a standard file input form element that is hidden and placed on the style version of the button. Clicking on it causes the "Choose File" dialog to open. Choose a file and click on "Open". A modal dialog asks you ...

xcode - Putting my iPhone app on my phone to test? -

How can I get my working iPhone app and put it on my phone to test it? I do not think how and what I am thinking about my GoogleGig does not change ... I am a registered developer and have already paid $ 99. Anyone know? Note: I have already placed the same answer somewhere for questions. There are some steps for which you need to test your app on your personal iPhone. Below you can find all the steps: Create a Mac Certificate in the first step. Upload that certificate to the Developer account. Open Developer Account You can now find an option for the device ID on the left side in your Developer account. Register your iPhone device. Unique identifier on the developer account, download your certificate and organize it on XCode Now open your project and embed your unique identifier in your project. These steps can be beneficial for all the software included in the mobile app testing.

How to clean a columns with a dots at the beginning and end of a text using T SQL for SQL Server? -

Description: I have a table (e-mail address) table (Business User) stores my database. Problem: For example, some lines of data have a point at the beginning of this column. Jane Doe@mycompany.com (dot I want to get rid of just jeter in the jetter) Some lines of data are dot at the end of this column For example John .doe @ mycompany .com (Dot I want to get rid of dot dot after bus charater m com) Resolution: I'm using SQL Server 2008 Using the basic functionality Start with a period of email address = SUBSTRING (email address, 2, LAN (email address)) for updated business sets where the email address is preferred. Last Updated with: Update Businesspersons email address = SUBSTRING (email address, 1, lan (email address) -1) Where do you like the email '%.'

visual c++ - Any solutions to multi-environment source control? -

Is there an effective way for which Too many greatly disliked (I'm a bit) crossed > 1 is working in the environment? By him, I mean multiple IDE; I am developing at VS-2010 at home, but I want to work on the project with my laptop in the university. My laptop is running Debian and I'm open to suggesting which IDE to use (if there is something special that is suitable for the solution.) I'm mainly working in C ++. Depending on your comments, it seems that you can create more of a multi-platform build environment Are looking for. Personally, I use make, vi and command line for most things, but this is too old for the most you can give a try. This idea is a CMakeLists.txt file The project that describes is to maintain. cmake utility can generate project files for different platforms - makefiles for Linux, MSVS solutions etc. The second which is decided in the brain works like a semi-com, in which files are created for different environments from a project des...

fetch - returning a lazily-computed scalar, in perl -

I am trying to add some functionality in my code base using binding scalers. We have a function that is specified to return the scales, I thought I can add some features to the system before returning to these scalers, but it seems that the FETCH method returns It is already said, resulting in an unwanted scanner returning. Is there any way around this? I really want to maintain the subroutine interface (returning scalar) if this is possible. Use strict; Use warnings; Main(); Sub GetThing {My $ thing; Tie $ cheese, 'mithing', @_; Talk of return; } Sub Main {My% m; $ M {Pre} = GetThing ('Fred'); Print "1 \ n"; Print $ m {east}; Print "2 \ n"; Print $ m {east}; Print "3 \ n"; } Package mything; Tie requirement: Scalar; My @ ISA = Qua (Tie :: STScallar); Sub TIESCALAR {my $ class = shift; Bless {name = & gt; Change || 'Nom',}, $ square; } All Effitt {my $ self = shift; Print "Access Warning! \ N"; Return ...

git: keeping repos in sync despite chopped history -

Background: I'm in the process of clearing a project before releasing it as an open source. During code history, I did not really want to show any public repository (in the comment, the harsh harsh path, the embarrassing piece of code), so I want to see the public after code base, point of cleanliness - even then I want to maintain complete history in my own private repository. After the cutoff point, private and public treasures are being fully synchronized. Apart from local non-pushing temporary branches, there will be no private branch; The master branch on both the repositories should be equal, except that the public history is cut off at the cut-off point. As far as I can tell that the git requires repository with full history, I can not directly my local master branch in both public and private treasures Pushing I think it would be possible to create a separate 'public' branch and rewrite history, but before sending the code to the repositories the private b...

jQuery table styling vs CSS table styling for alternate rows -

Is it possible to use CSS with classes on tables for strangers / even rows generated on the server Or is it faster / better to use jQuery? document.Ready () on ? Style Stripe I would like to start using jQuery to minimize my markup, but I'm not sure about this performance, especially for large (up to 200 rows) tables You can not have any choice based on browser. JQuery will work with older browsers like IE 7 which does not have anth child selector. Ideally you should use CSS. The stylesheets are the best places to go. I will use CSS with Javascript backup for the old browser, for example, if you want Zebra to try all the tables: tr: Nth-child (2n + 1), tr.odd {background: # 911100; } Tr: nth-child (2n), tr.even {background: # 222200; } and add .odd and .even classes in jQuery if the browser is outdated. // You will have to check which browsers do not support n-th babies but I suspect that for example would be IE ... if ($ .mobile.mms & amp; $ .browser....

css: the meaning of * mark -

Can you tell me what it means: * {margin: 0 Auto; Padding: 0; } * everything matches this special snippet setting the default padding for 0,0,0,0,0 and 0 for the default margin of 0, auto (that is, the vertical margin is 0, horizontal margins are "auto") .

sql - How to return different strings from a Boolean type in MySQL? -

If I have a column set in mySQL as Boolean, then a query value should be of the 0 1 . Is it possible to do something SELECT 'bool_value' as "yes" or "no" text "> Select when bool_value and then "yes" or "no" ed

windows - Programming language and O/S for a kiosk based system -

I am developing some software for a kiosk and wondering how best I am operating system and programming language Together with I understand Kiosk a bit and understand that there are so many issues because it relates to software upgrade, etc. So I want an environment that can easily be managed remotely, but it Is also safe. I have read that for a Windows Embedded Kiosk, there is a very popular O / S option and I think that if it is the path I take, then I It is likely that with a Net (C # / VB) solution for development language However, I thought it would add a lot to the cost of the kiosk. Personally, I like Linux as O / S but then I Java should not be used (with any experience), or some very experienced and very common-looking UI like TCL / TC), or web front-end I actually have a web application because I think it's too much to come by Develop a new web based user interface that includes many data entries, it takes a lot of time to develop and the way you want, in...

Iterating through columns in VBA (Excel) -

When I typed that title, I found it in topics of help and saw some of them and some basic ideas Received. I am still stuck and this is the reason that to get some guidance, prepare a new post. The scenario is: In my Excel sheet, the letter Y or N is in A1, some text in B1 and valid future date in C1. I currently have a VBA script that does this for a line: It checks that (in the date C1-15 days) is today's date and after that Check whether A1N is If these two conditions are correct, then send an automated e-mail. I do not know, how can I work it for a number of rows? Here's what I have now Sub-SendAlert () Set the items required for automation in lotus notes 'Dim mailboxes as objects' In the form of the user name string 'Current user names name Dim MailDbName as String' Current those mail databases name as dirty maildoc object Note 'mail self document dull AttachME object' attachment richtextfile dim session object object notes session...