Posts

Showing posts from February, 2013

Manually add ":animated" selector to jQuery objects -

I have a function that animates the DOM elements with CSS3 when available. Now I often use the : animated jQuery selector. How can I answer my CSS3 animated elements to : animated selector? When a DOM object is animated with jQuery, it becomes "fxqueue": "inprogress" is in the data object, so I was thinking that I would be manually I can use my elements from: $ ("div"). Eq (0). Data ({"fxqueue": "Inprogress"}); console.log ($ ("div: animated")) None selected Does. This will not work. : Animated is defined as a filter jQuery.expr.filters.animated = function (elem) {return jQuery.grep (jQuery. Timers, function (fn) {return elem === Fn.elem;}) Length; }; Checks whether the element is in jQuery.timers . Instead, you can change : animated selector: var originally estimated = jQuery.expr.filters.animated; JQuery.expr.filters.animated = Function (AMM) {Return Original Animated (AMM) || someth...

ActionScript Flash Predefined Global Variables -

Can someone send me a link, or list all global variables that are predefined by Flash Action Script 3 ? For example, like the current time, or current frame etc. Thank you, Thoie I'm not sure whether anyone is or not As a matter of fact, you will use the platform or the main movie clip object. trace ("frame:" + myMovieClip.currentFrame); Var now: date = new date (); Trace ("time:" + now.getTime ()); If I need a global variable, then I usually use a singleton pattern.

sql server - vb.net SQL date to time conversion issue -

error is:. Conversion failed when changing date and / or time from character string Actually I'm trying to make it so that when someone clicks on a location in a list box, this figure is correct with 1 in the table. The field increases so that they can click on the location. I'm trying to solve it for a while and can not find anywhere. My date is in date format, and so on my statistics table has a date field. My code can be seen below. String Dim Check String as String ObjCmd2 Object dim as iCount integer dim tDate as current current as dirty current = LocBox.SelectedItem check = LocList.FindString (Current) if check & gt; -1 Then the MsgBox ("you have already selected this place to travel") or else LocList.Items.Add (current) ObjDataReader.Close () tDate = Date.Today MessageBox.Show (tDate) tDate = tDate .toString () objCmd2 = New SqlCommand ("select" & replace (current, "", "_") & "where data from date = to...

PHP stream_socket_client and facebook chat -

$ fp = stream_socket_client ("tcp: //chat.facebook.com: 5222", $ त्रुटि, $ Errstr, 20); Fwrite ($ fp, '& lt; स्ट्रीम: स्ट्रीम = "chat.facebook.com" xmlns: स्ट्रीम = "http://etherx.jabber.org/streams" xmlns = "jabber: client" version = "1.0" / & Gt; '। PHP_EOL); $ Temp1 = fgets ($ fp); Fwrite ($ fp, '& lt; auth xmlns = "कलश: ietf: परम: xml: ns: xmpp-sasl" तंत्र = "एक्स-फेसबुक-प्लैटफॉर्म" & gt; & lt; / auth & gt;'); $ Temp2 = fgets ($ fp); fclose ($ एफपी); मर (var_dump ($ temp1, $ temp2)); $ Temp2 झूठे परिणाम क्या हो रहा है? स्ट्रिंग (365) "& lt;? Xml संस्करण =" 1.0 "? & Gt; स्ट्रीम: स्ट्रीम id =" 247B12CF "=" chat.facebook.com "से" xmlns = "jabber: client" xmlns: stream = "http://etherx.jabber.org/streams" version = " 1.0 "xml: lang =" en "& gt; & lt; स्ट्रीम: फीचर & ...

javascript - Understanding classes with Mootools -

Sorry for my english, I am french :) I have created an original class called "slider". This class has a "slider_elment" attribute, which is a DIV element. There is also a "destroyer" method in the class, this method destroys the div element. The slider_alment is considered to be a div that has another DIV named "Delete" CSS class name. When I click on "Remove DIV", then I want to call the "Destructive" method so that DIV disappears. Here my code is down, and it works graphically as if I want to. My question is: when I destroy the DIV element, then I do not need my slider instance ("MySlender" here). But my code destroys DIV elements, not slider example Does this example still exist? I think yes, so I discovered how could destroy an example of a class with a monotonous but did not get it ... so I think I am doing something wrong, even if my code does this What I graphically illustrate Please help :) var sli...

asp.net - How to encode the plus (+) symbol in URL -

The URL links below will open a new Google Mail window. The problem I have is that Google replaces all plus + (+) signatures of the email body with spaces, it seems that it only happens with + sign, how to suggest a solution for this solution? (I am working on ASP.NET web page) topic and body = hi there + hello there (in the body email, "hi there + hello there "Will appear in the + character in a special url = meaning; = it means white space. If you want to use + , you can enter it in the URL Will have to be changed in: body = hi + there% 2bHello + Here's an example of how you can make the URL in the net You can: class program {static void main () {var uriBuilder = new UriBuilder ("https://mail.google .com / mail"); Var values ​​= HttpUtility Value ["view"] = "cm"; value ["TF"] = "0"; value ["" from "] =" someemail@somedomain.com "; value [" su " ] = "Some topic...

internationalization - Java EE i18n and default project structure -

I'm developing Python DJGengo I want to make a little effort to Java I used to translate myself into the DEGENGO because it happens as follows: django.utils.translation import from ugettext_lazy _ _ And then if the translation _ ("Hello World") Question 1: Is there any such thing in which the locale / N / Is specified. Java? I have found them: There is no one I am looking for I did as an example import java.util.ResourceBundle; Import java.util.MissingResourceException; Public Class i18n {Personal Stable Resource Bundle myResources = ResourceBundle.getBundle ("Message"); Public Static String _ (String Original STR) Return {try {myResources.getString (Original STR); } Grip (missing RSOS Exception E) {Return Original STR; }}} and later Fixed I18n._; Import; Question 2: But where do you keep messages? Property file? I have to keep a separate locale directory with those files. Translation from entire package and su...

normalization - Manipulating Gyroscope / Accelerometer Values obtained from iPhone 4 -

I am developing a project for my university, which manipulate gyroscope / accelerometer values ​​from iPhone 4 . But I got stuck with a math problem and I hope you guys can help me. What example do I give you about this: Your iPhone is of face and you The face of your iPhone is correct and you At the bar X axis, this time the axis (when you have rotated the iPhone 90 degrees). For the second time, the computer has said that I have transferred the iPhone to the right, but it is wrong. I have taken it up, but my eyes were rotated because the face of the iPhone was right. What do I want? I need to virtually withdraw the iPhone face (where 3 axis is correct) and each axis gives the right movement. If the iPhone has been 90 degrees, I can easily switch the XJ axis and its right but I want to work it for any angle of rotation. If someone can help me with some kind of pseudo-algorithm or mathematical description, then I would be truly grateful. Note: I just need to replenis...

algorithm - How does WinRAR perform a compression ratio check? -

For example how can it tell that a 4GB text file can be compressed for 200 MB? Obviously, it does not read all the contents in 2 or more seconds ... so what kind of predictive algorithm (s) does it use? They use the prediction type, called ppmmd by partial matching (ppm).

Do I have to write the "GO" word in order to execute an SQL server statement? -

When I want to execute a statement in MySQL, I just do not want to have any experience with TSLL and SQL Server: Select from users ... and then press enter. However, now I see many SQL Server tutorials that you have the word GO immediately after each statement Do I have to write it? For example: select from users *; Go Or I can just write: Choose from users; & Lt; The entered key was pressed ... & gt; In SQL Server, the go query separates the batches In most situations this is optional. In previous versions of SQL Server, you had to do go after changing a table, such as: changing the table MyTable MyColumn int Select MyTable from MyColumn for If you do not, then SQL Server will parse the query batch and will complain that MyColumn was not present. See: SQL Server utilities explain as going to be a signal that they should send the current batch of Transact-SQL statement to the frequency of SQL Server. The current batch of the statement...

scripting - creating an iterator in Python from a dictionary in memory-efficient way -

I'm running a very large tab-delimited file (containing millions of rows) and depending on it The values ​​of some fields in the file I am pairing lines, eg mydict = defaultdict () for the row in myfile: # Place the group of all rows in the same field in the list in mydict [line.field]. Append (line) Since "MIDDICT" becomes very big, I want to make it in an iterator so I do not have to capture it all in memory instead of making a dictionary I How can I make it, I make an Iterator, by which I can loop and all these lists get the same area value? Thank you. "millions of lines" are not too big, unless the lines are long if the lines are long You can save some storage by storing only the files in the file ( .tell () / .seek () ). If the file is sorted by line.field ; you can use. SQLX Group BY can help with files of the average size (like using sqlite ). In fact for larger files you can use.

Keys are not unique for a python dictionary! -

यहाँ एक बेवकूफ नौसिखिया सवाल एक अजगर शब्दकोश q लेनन (सेट (q.keys ()) के लिए! = लेन (q.keys ()) । क्या यह भी संभव है? यह हो सकता है अगर आप dict की आवश्यकता का उल्लंघन करते हैं, और इसे बदल सकते हैं हैश। जब किसी ऑब्जेक्ट को dict में उपयोग किया जाता है, तो इसके हैश मान में परिवर्तन नहीं होना चाहिए, और अन्य वस्तुओं के समानता में कोई परिवर्तन नहीं होना चाहिए। (यह नहीं इसका अर्थ है कि एक हैश मान है अन्य गुण हो सकता है परिवर्तन, जब तक कि ये प्रभावित नहीं करते। इसे कभी भी बदलने की अनुमति नहीं होती है। यह एक सामान्य ग़लतफ़हमी है। हैश का मान खुद बदल सकता है। यह केवल dict है, जिसके लिए वह कुंजी हैश अपरिवर्तनीय है, न ही __ हैश __ है।) निम्न कोड एक वस्तु के लिए एक वस्तु जोड़ता है, फिर उसके हश को तेंदुए के नीचे से बदलता है q [a] = 2 फिर a को डिक् में एक नई कुंजी के रूप में जोड़ता है, भले ही यह पहले से मौजूद है; चूंकि हैश मान बदल गया है, डिक्ट पुराने मूल्य को नहीं मिल रहा है। यह आपके द्वारा देखी गई ख़ासियत को दोहराता है। वर्ग टेस्ट (ऑब्जेक्ट): def __init __ (आत्म, ज)...

javascript - jScrollPane Vertical Tabs - How can I simulate a click on a link/tab? -

I have implemented successfully and I am trying to show a tab by default. Can I simulate a click on the link with id #default? if so, how? The code is the same on that site. This is Javascript: $ (function () {// "tabs" $ ('. Tabs'). Each (function () {var currentTab, ul = $ (this); $ (This) .find ('a'). Each (function (i) {var a = $ (this) .bind ('click', function () {if (currentTab) {ul.find ('a. $ (CurrentTab) .hide ();} currentTab = $ (this) .addClass ('active') .attr ('href'); $ (currentTab). Show () .jScrollPane (); return false;}); $ (A.attr ('href').);});});}); Here is the html code: & Lt; ul class = "tabs"> page 1 & lt; / Li> palette 2 gt; & lt; li & gt; & lt; li & gt; & lt; li & gt; ; & Lt; a href = "# Pence 3"> F A Thank you! Does not such a required work, after it's started? $ ('# default'). Click ()...

How to update javascript file in client browser? -

When I have a bug in the javascript file, then I fix it and deploy it. But to keep updated files in the browser, I should press Ctrl + F5. This is not a problem for me, but it is difficult to tell the user to update the file. How to create a user browser to update the javascript file from the server without special actions? The file is one of the paths to modify JS file - each time the file path will be different. But it is not convenient. Many sites add URL parameters pointing to URLs Javascript file and each time the file changes It transforms it. Something like this: & lt; Script langauge = "javascript" src = "myfile.js? Ver = 1" /> And after a change: This can not be convenient, but this is the most common solution that some web infrastructure automates this process so that the developer has to increase the version number manually.

tfs2010 - Team Foundation Server 2010 and NuGet package folder -

I am using the Nugget Package Manager in Visual Studio 2010 to add third-party dependencies for my projects like Antoine, Elmah itemprop = "text"> etc. By default these are installed in the package folder at the same level as the SLN file. Is there any control where this folder is created and ideally the package folder is automatically added to the version control I know that I can move the folder manually in my current liberation folder But I would like to configure Daven to ensure that if we can upgrade through the package manager. Thank you. Honestly, this is a great feature suggestion for NuGet's owner Visual Studio team. I think NuGet to TFS For developers who understand the dependency and to enliven the project, and look at the build servers that compile to use more newgate dependencies.

ruby array of array with repeated values to hash of hash -

I'm new to Ruby and I find it hard to figure out how to convert array array into a hash For example, I have: [[38, "s", "we"], [38, "t", ", [45," s "," we [45] [52] "T", "[45]", [45] "T", "Ram"], [52, "s", "we"], [38, "t", "bar"], [45] I want to finally: {38 => "S" => ["we"], "t" => [["foo", "bar"]}, 45 => {"S" => ["we"], "T" => ["Rama"]}, 52 => {"S" => ["we"], "t" => ["cat", " I have tried the group and the hush, but I am not giving it to me what I am looking for. Therefore, the part you really use, all have been merged: output = {} input. External_key, interior_key, value | Output [external_key] || = {} Output [external_key] [internal_key] || = [] Output [external_key] [i...

xcode - UITableViewController: what's with the incomplete method implementation warnings? -

I am working on my first iOS / Cocoa Touch app, and to handle user settings, Need to create footage for Navigation Controller At any rate, I created a custom UITableViewController, and pushed it to my UINAVigationController. I did not change one thing (except the return number) in the following two methods, but they should bring warnings in XCode. what gives? - (NSInteger) numberOfSectionsInTableView: (UITableView *) tableView {#warning Returns the number of potential incomplete method implementation // sections return 1; } - (NSInteger) TableView: (UITableView *) table view numberofrose inSession: (NSInteger) section {# warning incomplete method Returns the number of rows in the implementation section / return3; } # warning instructions, appropriately adequate, Due to the compiler to emit a warning, remove those two lines and the warnings should be removed.

Java reflection: getMethod(String method, Object[].class) not working -

मेरे पास निम्न कोड है: सार्वजनिक शून्य myMethod (ऑब्जेक्ट ... आर्ग्स) {System.out.println ("यह मेरी विधि है"); } सार्वजनिक शून्य invokeMyMethod () {विधि s = this.getClass ()। GetMethod ("myMethod", वस्तु []। वर्ग); वस्तु [] पूर्व = नया ऑब्जेक्ट [2]; पूर्व [0] = "नमस्ते"; पूर्व [1] = "वहां"; S.invoke (यह, पूर्व); } मुझे अपवाद java.lang.IllegalArgumentException प्राप्त हो रहा है: तर्कों की गलत संख्या क्या गलत है? आपको इस तरह से विधि कॉल करने की आवश्यकता है: S.invoke (यह, नई वस्तु [] (नई वस्तु [] ("हाय", "वहां"}}); (... या @ जॉन के उत्तर में विकल्प का उपयोग करें।) कारण आपका वर्तमान कोड विफल हो जाता है जिस तरह से विभिन्न तरीकों को लागू किया जाता है जावा। मूलतः, T1 xxx (टी 2 ... आर्ग्स) वाक्य संवादात्मक चीनी के लिए T1 xxx (T2 [] args) । और जब आप विधियों को कॉल करते हैं, तो xxx (arg1, arg2, arg3) के लिए वाक्यकोषीय चीनी है xxx (नया टी 2 [] {arg1, arg2, arg3}) । इस मामले में, आप वाराडिक पद्धति को एक ही स...

objective c - Giving my program 'options' -

OK, In XCode 4, I have created 3 small programs: a calculator, a 'scratch Pad '(empty note-type window), and' spread sheet '(just like a spread sheet to keep the values ​​obtained with the calculator) Now what I'm trying to do My calculator will press, either execute a scratch pad or spread sheet and give the user the option to choose one I have put both 'bundles' in the 'Applications' folder, they are easy to meet. I was thinking that I need an NSButton subclass or if there is an easy way to do this. I was thinking that I just open a file browser on NSButton / users / me / applications and then when the user (I :-)) chooses an app, Will store in the button which will implement the button when I call it key-equivalent. But then I do not know how to give the buttons two different actions, one 'click' and one 'press' If I want to sub-section the button, then Where should I look? And if there is any easy way, then where...

algorithm - find max of a function that is minimized of a group of functions -

I want to find an algorithm that meets the maximum of a function that is least of a group of other functions. This problem can be described as following: search the maximum f (x) . F (x) = minutes (F1 (x), f2 (x), ..., fn) with a & lt; = X & lt; = B . This is a classic maximin problem, commonly used in tree searching to hide pay-trees. is. In a maximum, "current maximum" is kept. Then, for every repetition of X, loop through (1-> N) If any FN comes with the value & lt; Existing maximum, there is no point in continuing (as the minimum of all functions will be of course Without knowing the function function, there is no analytical method to get answers without any transactions.

Mysql Case - 2 conditions need same update value -

I am trying to use a mysql case query to update several rows in the table. I have some issues that want to update the line with the same value. I was wondering if it is possible to put all of them in one case or do I have to create a new 'WHEN' for each? What I'm trying to do below, but this is obviously not the right way to do this because I get an error. UPDATE `group 'SET` condition` = case` group_id` when 32 or 33 then' 1 'when 31' 2 'END Is it possible to do something like this? Thanks TRY UPDATE` Tablename` SET `condition` = IF ('group_id = 31', 2,1) EDIT updated tagname SET` condition` = IF ( Group_id IN (31, 32), 2, 1) WHERE section_id = 1 or updated tagname SET `status` = IF (Group_ID) (31, 32), 2, 1) WHERE section_id = 1 Successfully running on my table..What is the error facing me ?? Other syntax UPDATE `filename 'SET` group_id` = case when in group_id (31,32) then 1 WHEN group_id IN (33,34...

elements - cakePHP layout data, using requestAction, is there another way? -

एक ज्ञात मुद्दा I'ts, requestAction संसाधन कचरा है हालांकि, मुझे अपने डिफ़ॉल्ट लेआउट में कुछ डायनामिक डेटा की आवश्यकता है I मैं requestAction कॉल के साथ इसके लिए तत्वों का उपयोग कर रहा हूं। क्या यह एकमात्र तरीका है? RequestAction के साथ कुछ भी गलत नहीं है, यह अक्षमता से इसे लागू करने और अपने ऐप के प्रदर्शन को कम करने के लिए बहुत आसान है। जिस तरह से यह काम करता है, आप राक्षस वस्तुओं, गुणों आदि के साथ उभरा करेंगे - आपको जो सामान नहीं चाहिए और संभवतः अगर आपने महसूस नहीं किया होता कि यह ऐसा हो रहा था कितने devs टाइप करने के लिए तीन अतिरिक्त सेकंड खर्च नहीं करेंगे $- this- & gt; अन्य- & gt; मॉडल- & gt; अगर यह संभवतः आप उन बेजोड़ वस्तुओं में से एक को डिबग करने की कोशिश कर रहे हैं? 100 में से 85 गुना, एक और अधिक कुशल (ऐप प्रदर्शन) तरीका है जो आपसे अनुरोध करने के लिए आवश्यक है () करना। वास्तव में एक और तरीका है जो केक में बनाया गया है जो लगभग एक ही चीज़ करता है, केवल इसका इस्तेमाल नियंत्रकों में किया जाता है और अगर मुझे मिल सकता है, तो मैं लिंक करूँगा ... संपादित करें...

struct - Access C Array within blocks (variable array count) Objective-C -

The blocks are OK but what about writing C arrays? Looking at this simple situation: CGPoint points [10]; [MyArray forEElementWithBlock: ^ (Int idx) {number [idx] = CG point make (10, 20); // error here can not mention declaration with an array type inside // block}}; After searching for some time, found this possible solution, put it in a straight: __ block straight {CGPoint points [100]; } Point streak; [MyArray forEElementWithBlock: ^ (Int IDX) {pointStruct.points [idx] = CGPEXMake (10, 20); }]; This will work but there are some limitations that I need to dynamically create a C: int count = [str countOcurencesOfString: @ ";" ]; __blak straight {gg point number [count]; // Here there should be a static shape in the error // field: 'variable length array' structure in the structure will never be supported) pointStruct; How can I get my CGPoint array within a block ? OR Is it possible at all or do I have to type the block method again to...

bash: check if remote file exists using scp -

I am writing a Bash script to copy a file from a remote script into my local machine. I have to check to see whether the file is available or not, so I can take an alternative action if it is not. I know if a local file exists or not, check it, however, using SCP makes things complicated by bit. General knowledge tells me that in a way the file will be attempted to skip in any way, and check the return code from the scp command. Is this the right way to go about it? If so, how do I check the return code from the SCP invitation? Using some shell code embedded in the CSD + CMD line; Use this method when you need to make a decision before file transfer fails; SH Remote-host 'sh -c' if [-f / / myfile]; Then gzip -c ~ / myfile; Fi '' | Gzip -dc & gt; /tmp/pkparse.py/spy/pkparse.py/en/default/ If you want to transfer directories, you may want to "tar" - first if you want to use scp So you can check return code like this: if scp remote-host:...

javascript - json.parse doesn't like google maps suggest -

As a JSON object in the Firefox extension: I tried to parse it using JSON.parse and this does not work. Is there another way of using regex to use it as a JSON object? var Xhr_return = JSON.parse (rtoparse); Returns: Syntax Error: JSON.parse Other json files in my script without problems. The URL you are using is not part of Google and therefore subject to change, blockage etc. You really should use the official API. It is being said that, despite the URL containing json , the result is YAML, not JSON JSON parameter to get JSON result to a (rather than b ).

mysql - how to insert an image into a database using php -

संभावित डुप्लिकेट: नमस्ते, मैं php का उपयोग कर डेटाबेस में उत्पाद छवि सम्मिलित करना चाहता हूं। कृपया मेरी मदद करें। ऐसा करने के दो तरीके हैं। छवि के लिए बाइनरी डेटा सम्मिलित करें। छवि के स्थान को डेटाबेस में सम्मिलित करें और छवि फ़ाइल को अपने ऐप्लिकेशंस से पहुंच योग्य स्थान पर रखें।

firebreath dockable window in a web browser -

I want to create a dockable window on a web browser using FireBreath. The plugin should be used by the browser, and should be displayed in the of section of the browser. I am new to this, so any help would be appreciated. You can not do it with FireBreath; Do you have an extension (add-on), not a plugin. View

eclipse override method -

I've downloaded Eclipse Galileo. Now, when I use the ActionListener for the button, to override an onClick method of that listener, but in my eclipse, this @override The onClick method does not display on . Do you have any clue about that missing annotation? Bugs are not being displayed about the override annotation: : Misleading problem used on @Override method with endless parameter type : [Clear] 'No' override annotation for 'Save' 'interface method implementation (Java 6) Can you check that your particular problem persists with Eclipse Heliens (3.6)?

javascript - jQuery bind function to parent div but not child anchor and vice-versa -

मेरे पास एक div है, जिसमें से कुछ एंकर लिंक हैं: & lt; Div id = "myDiv" & gt; + ---------------------------- + | | | & Lt; एक कक्षा = "myAnc" & gt; ... & lt; / a & gt; | | & Lt; एक कक्षा = "myAnc" & gt; ... & lt; / a & gt; | | | + ---------------------------- + मैं एक क्लिक ईवेंट को #myDiv यह कॉल myFunction1 () पर .myAnc टैग कॉल myFunction2 () है। JQuery के बाँध का उपयोग करके, क्या होता है कि दोनों myFunction1 और myFunction2 को आप जो भी क्लिक करते हैं (div या the anchor) कहते हैं। मैं यह कैसे सुनिश्चित कर सकता हूं कि वे अपने दो अलग-अलग कार्यों (और केवल उन फ़ंक्शन) पर कॉल कर सकते हैं? में myFunction2 (ev) कॉल करें: ev.stopPropagation ();

concurrency - Trade offs between using Java's built in concurency mechanism versus Utilities provided in java.util.concurrent -

What are the trade-offs between Java's utility versus usilities (for example, in reententials) in the form of Java. Synchronize : Obviously, just using the synchronized block (or method) is easier than the syntax side, and you can not forget the unlock () step. lock : With clear lock objects, on the other hand, you Non-Nested Protected Blocks - As you repeat on a linked list, you always want to lock the next list element and only later this unlock can be preceded. Allows blocking a lock object blocker, blocks interceptors and blocks non-blocking to obtain lock, while a synchronized block is blocked only non-interrupt Allows Again, other lock implementations allow different locking strategies (like ReadWriteLock).

linux - How do I do a recursive, in-file replace? -

Assume that I want to scan every file in this directory (recurring, too). And I want to change happy.magic with sad.apps.magic ? How can I go about doing this? search-type f -exec sed -is, happy.magic, sad.apps. Magic, g '{} \;

flex - AS3 How to create a custom list item renderer with image(base64 png string) at runtime -

I'm a newbie for flex. I'm trying to create a list with the mouse, but there are many examples That they are using all embedded images. My problem is how can I create a list with the icon from the base64 png string in sequence? Use (the first object object in that component list).

xml - C# SelectSingleNode with NameSpace issues -

I'm using C # (actually .NET 2.0) - I'm actually trying to use Mono on Mac OS X (I don 7E1158D2-DA42-4048-8513-66B4D48FA992 "> N100 & lt; / subcategoryCode> gt; subcategoryName xmlns =" ​​uuid : 7E1158D2-DA42-4048-8513-66B4D48FA992 "> DJ Headphones & lt; / subcategoryName & gt; Products xlink: href =" tcm: 5-33 975 "xlink: title =" teston compression "xlink: Type = "simple" xmlns: xlink = "http://www.w3.org/1999/xlink" xmlns = "UUID: 7E1158D2-DA42-4048-8513-66B4D48FA 992" / & Gt; & lt; products xlink: href = "tcm: 5-54295" xlink: title = "HPX 2000 Composition" xlink: type = "simple" xmlns: xlink = "http://www.w3.org/1999/xlink" xmlns = "UUID: 7E1158D2-DA42-4048-8513-66b 4D 48FA 992 "/> & lt; products xlink: href =" tcm: 5-54296 "xlink: title =" HPX4000 composition "xlink: type =" simple "xmln...

c# - EF Relationships and Specification Pattern -

I see in the specification pattern for my repository, I use EF4 in my repository to query the database Maping selected organizations by passing in an expression, doing something like this: - public IEnumerable & lt; Tentity & gt; Find (expression & lt; funk & lt; tntti, boyoy & gt; count) {return _objectSet.Where & lt; Tanti & gt; (Forecast); } It works fine if you work with an object set but say whether you want to select all the comments made by the user more than 128 times and The user is active. Example: - class user {public string name {get; Set; } Public Bull Active {get; Set; } Public virtual iconenging & lt; Post & gt; Post {get; Set; } Public User () {Mail = New List & lt; Post & gt; (); }} Class post {public string text {get; Set; } Public Date Time Created (Receive; Set;} Public Virtual Icoding & lt; Comment & gt; Comments {get; Set;} Public Post () {Comments = New List & lt; Comment & gt; ();}} Class...

validation - jquery validate, add, delete email address -

I'm trying to validate an email address and then adding it to a multiple selection box. I'm using the QTip and jquery valid to move. Then when press the Add button, the script should be valid and added to the box below. Validation is working fine, but the difficulty is to add the method to the main qTip script to add. Add Script $ (document) .ready (function () {$ ("#addButton") Click (function () {var arr = new Array ( ); $ ('# EmailRecipients Options') Each (function () {arr.push ($ (this) .attr ('value')) () () (Var (i {DuplicateFlag = true; break;}} If (duplicate flags) {warning ('sorry ...');} and {$ ('# email reciprocer'). Append ($ ("(>> option>" + $ "('# valid') Val () + "& lt; / option & gt;"));} return false;});}); Since you are able to compare the string, you can tighten your code below. Besides, you would want to change your jacket. Addendum () method to be raw...

using AJAX with php to display the data on the web page after some calculation is finished -

Here is the position I have a php file. I actually get value in one of the variable array in this php file. can do. But the further process on the data inside the array takes a very long time in the time-range. I would like to use AJAX so that when the page is loaded, processed results are displayed and updated as soon as personal data is processed within the variable array. Any example will be highly appreciated An easy way to do this Can be closed, look at the PHP method, comments explain a systematic method, which you can try If you close the and tag After processing your processing at the bottom of your page (after flushing the output) your results with javascript on completion Micro Update

css - What's the best approach to this type of layout? -

Image
I know that I can use margin and padding to accomplish what I want. But, it seems a bit ... I do not know, I feel weird. I think that's another ... structured? How to do this? Here's what I want to do: How would you suggest that I am going to do this? Oh man, there's a CSS grid system I'm in love with, it's so easy to implement and understand. Look at it, call it. Although it is done for 960px, making this change is very easy. & lt; Div class = 'container_4' & gt; & Lt ;! - It will be a container that has four grid spots - - & gt; & Lt; Div class = 'grid_1 alpha' & gt; & Lt ;! - It will start with the first column of the container and take one place - & gt; & Lt; H2 & gt; Title & lt; / H2 & gt; & Lt; Li & gt; List item & lt; / Li & gt; & Lt ;! - et cetera - & gt; & Lt; / Div & gt; & Lt; Div class = 'grid_1' & gt; & Lt ;! - It takes the ...

c# - dotNet should a class library only expose an interface or an implementation too -

I am reading myself because I go and am the only developer in our organization. I have started separating specific functions in class libraries so that the need for organization increases, I can reuse that code. I have for example emailing tingi and mailing in the cloud library when I add library reference to both resolutions. I also feel that this reduces the repetition of the code but some hoopers jumping (for example daily mailing ting rules and monthly mailing rules) Is this class in the library Is better practice to implement code only on interface and project basis? I am using C #netnet but I think architectural decision language at this level is neutral ... SolutionRoot1 --ClassLibrary --- - IMailing ---- Mailing - Project 1 ---- References - Project 2 - --- Reference or SolutionRoot1 --ClassLibrary ---- IMailing - Project 1 ---- context ---- mailing - project 2 ---- context ---- mailing Implementation is better to share if code is used again if you wa...

excel - Group same date values in PivotTable -

I have some data that is a pivot table, which is basically a customer Donation (amount). The issue with me is that I can not group months of dates. I tried the group but it was not working PRICE LINE LABEL DATE TRANSCISE AMOUNT EUR_EQUIVAL MAX XYZ Jul-10 1 15.000,00 15.000,00 15.000,00 September -10 1 15.000,00 15.000, 00 15.000,00 October -10 1 15.000,00 15.000,00 15.000,00 October -10 1 5.000,00 5.000,00 5.000,00 November -10 1 1.250,00 1.250,00 1.250,00 Dec-10 1 15.000,00 15.000,00 15.000,00 People -11 1 7.000, 00 7.000,00 7.000,00 So from top I want to merge "October-10" If the code recognizes date transaction field As a date data type, then right-clicking in the field on the Smoke and choosing the group and show extension option within the context menu Are there. If this does not work, and you only know the month, try changing the data - e.g. September 1, 2010 for September -10 value etc.

regex - Regexp, skip nested pairs -

In my own markup language, I have a quotation tag & gt; & Gt; Who use these characters to create blockquote & lt; & Lt; . The problem begins when nested blockquotes occur: & gt; & Gt; (1) start1 & gt; & Gt; (2) quote 2! & Lt; & Lt; (3) & lt; & Lt; (4) I would only like to match the outermost tag, such as: & lt; Blockquote & gt; Start1 & gt; & Gt; Speech 2! & Lt; & Lt; & Lt; / Blockquote & gt; If I have a simple unorganized regex /> and gt; (. +?) & Lt; & Lt; / , (1) and (3) will try to match and (2) and (4) will never be matched if I make it unconditional then /> & gt; & Gt; (A) Bid 1 & lt; & Lt; (B) & gt; & Gt; (C) Bid 2 & lt; & Lt; (D) Greedy will match the one (A) to (D), (B) and (C) leaving alone. I think I would have to make it "irreversible" in some way, but only if there is no other pair "", which is beyond my ...

how to check that contact is already added to iphone phonebook or not? -

I want to check the iphone phonebook whether a contact has already been added or not, if I added I will not be able to add it, it is not added, then I will add new contact, I want to compare only one name like "Veer" is present in the Phonebook or not ABAddressBookRef address book = abderracebook creation Health Option (zero, zero); NSArray * People = (__breeze NSARRA *) ABAdressbookPierAreOf All People (address book); NSMutableArray * Nameserray = [[NSMUTABELARROR] INIT]; (People in person ID) {NSString * firstNameString = (__breeze NSString *) ABRecordCopyValue ((__ bridge ABRecordRef) (person), kabpersonFirstNameProperty); NSLog (@ "% @", firstNameString); [Nomination addObject: firstNameString]; } NSLog (@ "% @", nominal); NSString * yourString = name that you want to add; BOOL Equal Stringfound = No; (For NSString * someString namearray) {if ([someString isEqual: yourString]) {Similar stringfade = yes; break; }} If you want to do the same {{...

Using the revealing modul pattern with jQuery/JavaScript -

I'm working on some tooltip functionality on my site again. The manifest module pattern as shown here: As a quick test, I tried it: var tooltip = function () {var foobar = 'foo bar'; Function getAlerter () {return warning (foobar); } Return {alerter: getAlerter}} (); Tooltip.alerter (); Which alert is expected of 'foo and bar'. However, I have to pass the element that triggered the tooltip functionality: var tooltip = function (AMM) {var triggers = AMM; Function getAlerter () {return warning (trigger); } Return {alerter: getAlerter}} (); Tooltip.alerter ('trigger'); But this return is unscheduled why it is not sure: ( This is because you are executing the function ( () at the end of your 'module'), and when your function is declared and executed, no value passed You can tell your getAlerter function to accept additional parameters: function getAlerter (triggers) {// you Greater code ...} But it questions the e...

jquery - First word selector -

How do I choose the first word in a div? I need to be able to insert a line break after the first word, or wrap it in a span tag. I would have to do this for multiple divs on the same class page. Event handlers are unbounding as a result of HTML changes and as a result of changing whole text for an entry The best way to lose HTML markup is to leave any HTML insulated, only the first text of the mailing element connects to the node. To get that text node, you can use it and: overlay the function () {// only select node = $ ("div") for the node of the first node. Function () {return.nodeType == 3;}). First (), // Get the text ... text = node.text (), // ... and the first word first = text.slice (0, text index ("")); If (! Node. Lamps) return; // Remove the word before text node [0] .nodeValue = text.slice (first.length); // Add it back to the node with HTML. First ('& lt; span & gt;' + First + ' }; Content You ca...

How to permit specific group permissions to project in JIRA -

I'm new to Jirra. I have many customers, which I only want to read some of my own projects I am (For example, Clients X can only use Project Y) Other, I do not want to see them. Apart from this, I have developers who I want them to read / write. To create such a scenario, I did not understand permissions plans and roles and project setup. (Read, write read permissions and buy tickets etc ...) Thanks! browse only the permissions, but do not provide anything, use the best project roles to do so In this way, you do not need a specific permission plan for each project. - Create a role 'Customer' - Create a permit plan 'Client project permission scheme' - Configure permission scheme, such as - Permissions in the role of the customer have been browsed - In the role of the developer, there are all other (applicable) permissions, such as edit, proceed ... - Link permission scheme to a project - Configure the project in such a way - User ID (s) of your cust...

mysql - SQL search result ranking -

मेरे पास टेबल कॉल ऑब्जेक्ट हैं जो कॉलम हैं: object_id, name_english प्रत्येक वस्तु के लिए vchar), नाम_जापानी (vchar), नाम_फ्रेंच (vchar), वस्तु_विवरण जब कोई उपयोगकर्ता खोज करता है, तो वे अंग्रेजी, जापानी या फ़्रेंच में प्रवेश कर सकते हैं ... और मेरा एसक्यूएल स्टेटमेंट है: SELECT o.object_id, o.name_english , O.name_japanese, o.name_french, o.object_description वस्तुओं से ऑब्जेक्ट के रूप में ओ.नाम_अंग्रेजी की तरह कनकैट ('%' ,: खोज, '%') या ओ। नाम_जापानी की तरह कनकैट ('%',: खोज, '% ') या ओ.नाम_फ्रेंच कन्कैट ('% ',: खोज,'% ') द्वारा आदेश o_name_english, o.name_japanese, o.name_french एएससी और कुछ प्रविष्टियां जैसे हैं: टिन चम्मच, टिन फ़ॉइल, डॉक्टर मार्टिन जूते, मार्टिनी ग्लास, काटना बोर्ड, टिंग सोडा इसलिए, जब उपयोगकर्ता "टिन" शब्द खोजता है तो ये सभी परिणामों को वापस देगा, लेकिन इसके बजाय मैं केवल उन परिणामों को वापस करना चाहता हूं जो विशिष्ट शब्द "टिन" या प्रदर्शित करते हैं परिणाम और प्रासंगिकता आद...

actionscript 3 - splitting values and putting it in a text box in AS3 -

I am entering a set of 4 values ​​in a text box and I want to make it a blower in 4 different small text boxes This code displays in the way: Sarabeshoot (number (T1 text)); Array.push (number (t2.text)); Array.push (number (t3.text)); Array.push (number (t4.text)); B2.addEventListener (MouseEvent.CLICK, Act 2); // First button click function act1 (Event: MouseEvent): array {var input: string = tt.text; Array = input.split (""); T1.text = array [0]; T2.text = array [1]; T3.text = array [2]; T4.text = array [3]; } But now I have to know how to do the same for a dynamic value. Say I have a text box TT1 and a button B1. When I enter any value (say 6) this number text boxes (new text boxes, T1, T1 .... T5 with 6 names) have been created I have Another text box is TT2 and a button B2I when I enter a set of values ​​in it (say 10,66,33,45,2,4) I need to see these values ​​in those text boxes Which is T, T1, T2 .. Is it possible? This snippet will make your tex...

ajax - jquery replace table rows with new data -

I am trying to replace the table with new data received through ajax. For the first time just works just fine But then the rows are added instead of replacing them. So I end up with duplicate rows here. I have some code here success: function (data) {$ ("# featured_listing_tbody"). Children ('tr: not (: first)') .remove (); Counter = 1; $ .eec (data, function (i, val) {newPropertyRows + = '& lt; tr & gt;'; $ .EEC (val, function (key, info) {var skip = false; if (key == " Id ") {id = information; new property everyday = ''; leave = true;} if (key ==" thumb ") {info = '& lt; img width =" 100px "src = upload / properties /' + id + '/ Thumbs_' + Info + '/ & gt;'; newPropertyRows + = '& lt; td class = "call' + counter + '" & gt; & lt; a href = "/ featured.php? Prop = '+ + Id +' "& gt; '+ info +' & lt; / a & gt;...

maven - How to automatically set the JRE_CONTAINER on top of all others dependencies in Eclipse.classpath? -

I want to modify the auto order on which classpathentry Written by Maven Eclipse Plugin The first reason : In my application, the interface is a way to do this? Org.w3c.dom.Node is provided by several third-party libraries (for XML processing), as well as JDK (1.6). However, org.w3c.dom provided by these libraries * The version of the classes is quite old compared to the JDK. For example, the method does not exist there. mvn eclipse: eclipse is running on my project earlier in the JDK container .classpath , this method in eclipse Will cause a compilation error. So this idea is to enter this line: The second reason (less important) occurs when . I run mvn eclipse: eclipse , it always sets the src / test / * package before src / java / * , which Bothers me a bit (yes, I know that we develop the first test in TDD, but still ...) Technical information: Java 1.6, MV 2.2.1, Eclipse Plugin 2.8 Edit: is a question that may look like mine, but he d...

web services - python RESTful webservice framework: roll my own or is there a recommended library? -

I need to write a dragon webservice, but I would like to use a light weight frame (no mention of Django please), so that I can complete more complex scenarios in the future. Is there a recommended library that I can use or at least provide a good starting point? [edit] To clarify, I'm talking about a secure web service - nothing with SOAP and / or WSDL I recommend that you refer to Cherry P

Calendar integration to Domino (Lotus Notes)? -

How do I integrate with Lotus Notes Domino server? I know that there are many versions and the answer will be different for each one, but advice on any version will be great at this time because I did not get the information about which server I am, I still want to integrate with it. Assume that version 6 + I assume that I need to integrate with the server, not the local Lotus Note client, but this can not be right? I need it to read and write calendar appointments of a selected number of both users. For example, I should be able to create / update / delete appointments for a certain user. Appointments need access to only one thing, I do not need mail yet. Do not have a standard interface to do this with what I've read on the Internet? Should I develop a Domino app that I want? Perhaps there is a server API that I can use to connect and retrieve the information? Hope this can be done in C #? If not, what's the preferred way? I read something about Java and...

java - Apache POI set selected cell after xls document opens -

Our next condition is: Our system has exported data in XL format, it is a large file with multiple rows and columns and After downloading and opening the user, the document is scrolled on the previous column and the last spreadsheet tab. It is very upset, it is better to focus on the first tab and the first cell. I have given a simple test code to see how it works: public class selection {public static string file = "/usr/test/poi.test/src/main/resources / Test "; @Test Public Zero Test () throws file notfought exception, IOException {HSSFWorkbook wb = new HSSFWorkbook (new FileInputStream (file)); HSSFSheet s = wb.getSheetAt (0); S.setActive (true); HSSFRow line = s.getRow (0); HSSFCell cell = row.getlet (0); Cell.setAsActiveCell (); FileOutputStream Out = New FileOutputStream (File); Wb.write (outside); Out.close (); }} And it does not work Here's the solution Working, it is found HSSFWorkbook wb = new HSSFWorkbook (new FileInputStream (file)); HSSFShe...

C Preprocessor: concatenate int to string -

How do I figure out I can add a #define 'd rounded to a I'm trying to C using the preprocessor #define 'The string GCC 4.1 solution on my compiler CentOS 5 should also work for MinGW. I would like to modify a version number on a string, but the only way that I would define as a copy wires of the version number to make sure you can get it to work is. The closest thing I could find was a method of quoting macro arguments, but it #define s does not It does not work Does. #define MAJOR_VER 2 #define MINOR_VER 6 #define MY_FILE "/home/user/.myapp" #MAJOR_VER #MINOR_VER without # s does not work because these values ​​are numbers and it will expand on "/ home / user / .myapp". >, Which is not valid C . This works, but I do not like to define copies of this edition because I also need numbers in them. / P> #define MAJOR_VER 2 #define MINOR_VER 6 #define MAJOR_VER_STR "2" #define MINOR_VER_STR "6" #define...

Android Google Maps talking to Google Maps Enterprise Data? -

Is it possible to switch Android Google Map codes to use custom data provided by Google Enterprise? Description: Google offers an "Enterprise" version of your Maps service, where you can host your own data. See here: But there is no way to use any alternative data source other than being available independently on the Web in the Maps API of the Android. There are other tools like Open Street Maps or ANNV, there is no API to replace the MapView data source, and because it There is no open source, there is no clear way to change it. You can, however, use WebView to embed a standard web-based Google Map, which may come from your "Enterprise" version .

sql server - Matching and ranking query with dynamic columns and percentage match -

I am trying to write a ranking match / search system for a client who has requested content (matitue test) And providers (where userprofile.usertype_id = 1) can provide content (s) and rank those ranks which can provide the highest, or all content. Here is the database schema I: User Profiles table userprofile_id int identity userprofile_dt datetime first_nm varchar (50) last_nm varchar (50) usertype_id int (Provider = 1, requester = 2) request table request_id applicant identity request _ dt datetime title varchar (50 ) Description Varchar (100) userprofile_id int (where usertype = 2) materials spacing table Samgri_rek_aid ITI identified request_id int Content_id int content provider table Samgri_pru_aidi IIT Upyogkrtaprofail_ id Int (where Ugrtep = 1) content_id int Table of Contents material_id int identity Samgri_desk Varchar (50) For example, if I have this request: request_id = 1 request_dt = 3/28/2011 title = 'test request ...

c# - Moq unit test with It.IsAny() fails -

I am using Moq to write unit tests for a project, and when I try to verify So one of the tests is failing that a DateTime property is assigned a value. Context.TaskQueue.AddObject (It.Is & lt; TaskQueueItem & gt; (task_queue = & gt; task_queue.TaskCode == (integer _mockTaskContext.Verify (reference = & gt; here's my Verify (which fails) is TaskCode.MyTask & amp; Work_queue.ClientID == ExpectedClientID & amp; task_queue.JobNumber == It.IsAny & LT; Integer & gt; () & amp; ; & Amp; task_queue.Requester == String.Empty & amp; task_queue.JobStatus == (int) JobStatus.Submitted & amp; task_queue.TimeQueued == It.Is Any Any & DateTime & gt; ;;) & Amp; amp; amp; & amp; task_queue.TimeStarted == New Date Time (1900, 1, 1) & amp; amp; task_queue.TimeStopped == New DateTime (1900, 1, 1) & amp; amp; ; Task line Task parameter == Expected Tasks Ramam), Times.Once ()); If I comment on hope at task_queue.TimeQueued ...

Android graphics draw on a canvas question -

I'm writing my first Android app so it's still in the learning stages. Its very simple, I draw a graphic in the center of the screen and simultaneously touch the event to the graphic to the point where the user touches it for a thread ontouch event Will start and update the graphic. The problem is that the canvas dial () is working when calling from onDraw (), but does not update the canvas / screen when the call is made from within the thread DrawSplash my function (Canvas c, location l); I call both the on-the-draw () and the same functions in the thread. I can see that the only difference in that code is that I am accumulating that canvas object in my class in a variable in the Ondau () function, so that I can use it again in the thread. It seems somehow wrong. If so, what is the right way to do this? Can I get canvas object any time? How do i do this P to you .invalidate () The onDraw method for your view is overrited with. Every time it is said that it...

Stopping a Distributed Ruby Service -

I have a script that produces a handler object and waits through DRb.thread First, join a DRb service . I would prefer the script running until I was killed clearly, so I put trap "INT" in the DRB.stop_ervice and which Successfully closes the DRB service and Ruby goes down to 1.8, but seems to have a stalemate below 1.9 (on OS X 10.6.7). By sampling the process, some strings of spinning are shown in semaphore_wait_signal_trap . I think the way I am calling stop_service , I'm doing something wrong, but I'm not sure what happened. Can anyone give me some signs about it correctly? OK, I think I have found solutions If I replace the original code with , start the DRB.read. Ensure rescue interrupts that the DRb.stop_service end Ctrl-C works and stops the service.

geospatial - PHP Select a random lon/lat within a certain radius -

मान लें कि मेरे पास यह लॉन / lat है: 33.33333,22.22222 मैं एक्स मी / किमी त्रिज्या के भीतर एक और लन / अक्षांश कैसे चुन सकता हूं? धन्यवाद, आप इस पोस्ट का उपयोग आपको मार्गदर्शन में करने के लिए कर सकते हैं: तो आपके उदाहरण के साथ, आप केवल 1 और 10 मील के बीच यादृच्छिक संख्या चुन सकते हैं, जहां 10 आपका "एक निश्चित त्रिज्या के भीतर" है। $ देशांतर = (फ्लोट) 33.33333; $ अक्षांश = (फ्लोट) 22.22222; $ त्रिज्या = रैंड (1,10); // मील $ lng_min = $ देशांतर - $ त्रिज्या / एबीएस (कॉस (डीजी 2rad ($ अक्षांश)) * 69); $ Lng_max = $ अक्षांश + $ त्रिज्या / एबीएस (कॉस (डीजी 2rad ($ अक्षांश)) * 69); $ Lat_min = $ अक्षांश - ($ त्रिज्या / 69); $ लैट_मैक्स = $ अक्षांश + ($ त्रिज्या / 69); प्रतिध्वनि 'एलएनजी (न्यूनतम / अधिकतम):' $ Lng_min '/' $ Lng_max PHP_EOL; गूंज 'अक्षांश (न्यूनतम / अधिकतम):'। $ Lat_min '/' $ Lat_max; अपडेट: जैसा Tomalak नीचे टिप्पणी में कहा, यह धारणा है कि पृथ्वी एक क्षेत्र के बजाय एक क्षेत्र है असमान भौगोलिक इसके कारण, आपको ...

ASP.NET MVC3 Model Validation DataAnnotations to do less than or equal to another property with client side validation -

I have a simple form that is using ASP.Net MVC3 humorous client-side validation. The model looks a bit like this (the name has been changed for privacy): public class MyInputModel {public MyInputModel () {} Public MyInputModel (MyViewData viewData) {ViewData = viewData; MaxValueForSize = ViewData Max size; } Public Inc. MaxValueForSize {get; Set; } [Regular expression ("[1-9] [0-9] *", error message = "value should be a whole number.")] Public full size {get; Set; } [String lang (255)] [required] public string description {get; Set; }} In my opinion, I put a hidden field for MaxValueForSize and I entered the value for the size I want to reduce the amount of MaxValueForSize is equal to or equal to the property. I know that I can do this server with the override verification attribute: Internal class SizeValidAttribute: verification entry {protected override validation result IsValid (object value, Validation validation validation verification) ...

c# - Exception: The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value type -

Can anyone explain why this exception is coming in the following LINQ query: Code> Back to DC (Classification of C. Categorization where CID == Select the Classification ID Classification () {Description = C. Description, PainterID = Convert. ToInt16 (c.ParentId),}). Single & lt; Classification & gt; (); is DC detacentext, classification is a class in which the intribute is ParentId. In the case of parent field empty in ParentId column SQL Server database is a nullable int, the statement returns invalid operation exceptions. In other words, why the above query fails and 'int y = convert.OINT16 (empty);' Works? if can be c.PartentId null , Then Convert.ToInt16 (null) throws an exception. Since you indicate that the classification ParentId is an integer, is there any reason that you are using Convert.ToInt16 instead of a little? Do not you want ToInt32 instead? For that matter, why convert all to? Just: ParentId = c.ParentId ?? 0 ... and ju...

How to completely turn off vim's abilty to recode files? -

I have found that every encoding related question is how to read files. However, I have quite the opposite - is it possible that they do not want to fill the VID files? (And how, if it is so?) Sometimes it is writing [converted] on the status line, and always remembers, however, Only the encoding has been set as the edited file, so, I do not need any encoding at all. use vim -b "myfile.type" / Code> To edit in binary mode. You can set : set binary or if you are lazy like me : se bin 'binary' * 'binary' * * 'bin' * * 'before boring to edit the file in vim / code> Local '' * * * 'Nobelin' * 'Binary' 'bin' boolean (default off) {Not in vi} This option should be set before editing a binary file. You -b. You can also use Vim logic when this option is switched to some options (even when it was already running): 'Text width' will be set as 0 'wormargin' on 0 'modeli...

jQuery AJAX page loading, DIV specific -

Trying to fetch specific DIV from a page called jQuery loader. I have this code: & lt; Script type = "text / javascript" & gt; $ ('Ul.navigation li a'). Click (function () {$ ('# content-wrap'). FadeOut (500); var targetPage = $ (this) .attr ('href') setTimeout (function () {$ ('# content-wrap' ) Load (Target Page, Function () {$ ('# content-wrap'). FadeIn (500);}}}}); Return;}); & Lt; / Script & gt; ... and it works - but it calls the whole page instead of a specific area ... Cheers! You are trying to load the page piece instead of the whole page If you dig deeper into the documentation, you will see that you just have to change your targetPage variable slightly. var targetPage = $ (this) .attr ('href'); TargetPage + = "# content-wrap"; This will replace the targetPage variable with the http: //site.url # content-wrap and instead of the full page Get the content of the ...

c - Package gtk-engines-2 was not found in the pkg-config search path -

I am trying to compile the implementation of Rob Hayes of SIFT algorithm. I successfully installed OpenCiv2 2.1 and tested the installation with sample C programs provided. There was no error. This code I was trying to compile was written using OpenCV 2.0. I successfully compiled and ran the exact code some time ago with OCV2.0. But now the compilation fails and it prints and prints it. I am using the file provided with the code. make -C ./src siftfeat [1]: Accessing the directory `/ home / niroshan / sift / src 'ar rc ../ Lib / libfeat.a imgfeatures.o utils. O sift.o kdtree.o minpq.o xform.o refine.o ranlib ../lib/libfeat.a GCC-i ../ Include 'pkg-config -cflags opencv Gtk-engines-2` siftfeat.c - O ../bin/siftfeat -L./ lib-lfeat `pkg-config -libs opencv gtk-engines-2` package gtk-engines-2 was not found The Pkg-config search path might be 'gtk-engines-2.pc 'Should be added to the PKGCNGGIGIP environment variable, no package' gtk-engines-2 'was found, th...