Posts

Showing posts from June, 2015

How can I center google map based on countrycode? -

According to the documentation, I have found this: geocoder.setBaseCountryCode (countrycode); However Any help? Itemprop = "text"> GOCODerratBaseConverter code () will not center the map. This will set the base country for geocoding so that if you try to geocode 'Plymouth', then it will differentiate between the UK and Massachusetts cities. If you want to specify the country code manually, you can use GClientGeocoder as the following: var Country_code = "ES"; // Change the country code here to function initialize () {if (GBrowserIsCompatible ()) {var map = null; Var Geocoder = Null; Map = new GMap2 (document.getElementById ("map_canvas")); GeoCoder = New GCLient Geocoder (); If (geododer) {geocoder.getLatLng ("country:" + countrycode, task (point) {if (point) {map.setCenter (point, 13);}}); }}} In this situation there is no need to set setBaseCountryCode () , because country codes are clearly unique. If yo

static - Queries count for page in asp.net mvc -

I want to know how many queries are executed while requesting a page in asp.net mvc. Difficulties in page logic: Yoga queries are executed in main controller action, but others - widget controller functions, which are called in the HTML page. I wrote the base class for all the controllers in which I called the function to increase the query. Query equivalent - static variable works well when loading the page, calculate all the questions But when I request a second page, my static counter does not reset, what should I do? If possible, avoid using a fixed variable as an example variable on the base controller as easily as possible If all the methods have shared the same controller example. I believe that you are not using new controllers to execute other actions. Edit : After thinking about it, a simple static variable will not work because it will be shared in all requests to identify the request by some unique ID Must choose some kind of dictionary. Probably based on the

c - What's a simple way to output homebrewed synthesized sound on Unix? -

I make some sound synthesis using Mac OS X (and ideally other Unix-like OS) using ANSI C Want to This is an 8-bit buffer in my program that I update 22050 times a second. How can I get the output to my speaker as a wave? No POSIX Audio API or Nothing Similar. So if you want sound support on Linux, OSX, then you need a library that wraps around the original OS API of different OS. Take a look at this, it's not asking for OSX directly, but most of the answers should also work for it, maybe at least I can not find anything on their homepage except Obao, who say they support OSX Are there.

sequence - Mathematical technique to check intersection -

Imagine that the size of the hollow cube has a very large room in the fixed discrete posts of the room There are magic balls in the air. No magic ball is exactly above each other. If we take a imaginary horizontal plane of the infinite area and pass through the cube, how can we ensure that the plane does not cut any magic balls? The height of a magic ball is given as a function of its position (X and Y). Distribution is such a way that some balls are at the same height, while others are at different altitudes to do this function - z = axy + bx + cy where a, b, c positive The integer constants are position (x-axis and y-axis value) and height (z) are discrete values ​​(for simplicity, we can consider them positive integer). If ball delivery function is Z = 10xy + 8x + 4y, then it is impossible to assume 15 or 21. So z = 15 or z = 21 will not cut any of the balls in a plane! In fact, in this case, any aircraft is not cut through balls with height (z = any strange number),

objective c - Setting IBOutlet to nil -

त्वरित प्रश्न, क्या ये वही हैं? self.sliderLabel = nil; और [स्व सेटस्लाइडर लेबल: शून्य]; गैरी ये बिल्कुल समान हैं। वास्तव में, संकलन समय self.sliderLabel = nil; हो जाता है [self setSliderLabel: nil]; ।

asp.net - Add selected items from gridview to a list using Javascript -

I have some gridviews with a checkbox I want to get the items selected in the gridview to a different list. Please recommend me a Javascript library which can be useful. The examples below are: Please see the picture You can use it Can Clone-node Dome method but it becomes very easy by using jQuery. Unischarte conceptual code: & lt; Script type = "text / javascript" src = "jquery-1.4.min.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () {$ ("Input: checkbox"). Click (function () {if ($ (this) .is (': checked')) {var $ item = $ (" & Lt; li id ​​= \ "copy_" + $ (this) .attr ("id") + "\" & gt; "); $ item.text ($ (this) .Parent (). Text ()) ; $ ("#selectedList") attachments ($ item);} and {$ ("# copy_" + $ (this) .attr ("id"), "#selectedList") ();}})}} ); &

c++ - Selecting an explicit specialization of a class based on a derived type -

Hello I have a clear expertise in choosing the right version of a templated class which has a clear expertise. I want to select an expertise using the derived class of the class used for expertise. The scenario is: #include & lt; Stdio.h & gt; class {}; Class B: Public A {}; Template & lt; Typename T & gt; Class Fu {public: int october (zero) {return 10; }}; // Clear expertise for a template & lt; & Gt; Int Foo & Lt; A & gt; :: FooBar (zero) {returns 20; } Zero main (zero) {Foo < B & gt; FooB; // It prints 10 instead of the desired 20 viz compiler, the normal version selects printf ("% d", fooB.FooBar ()); } As I said in my comments, I want to print 20 because B is obtained from A, but instead 10 gets printed. How do I get expertise while using expertise for without each and every derived class ( very derived types in my actual scenario) Have to go --- Edit: Let's get the new answer, we make the original approach mo

Can't cleanly install Visual Studio 2008 -

On my computer, I had the installation of a bare bone of Visual Studio 2008, which I think I did on SQL Server 2008 Raised by installing I later installed the standard version of VS 2008, but I could not make any new projects (I liked only under 1 or 2 unusual options C #) so I uninstalled all the VS2008 stuff, Which was not a standard version, Went to get permission to build new projects, but I could not debug (probably because I had the thing uninstalled him debugger). So I thought I would start, VS2008 would have to completely uninstall and reinstall, but by doing so I found a bunch of errors in trying to start the app, and my WPF XALL designer No more visible regular XML editor) So I followed completely to uninstall VS 2008, but after doing this and reinstalling, I still have to Is not a WPF XAML editor with the designer. So clearly I have something stuck, as I did before, VS2008 managed to establish this copy of standard, but I'm not sure what to do to establish a clea

web applications - Zero-configuration, automated, random testing tools for web-apps? -

In short, I'm looking for a tool to attack an automatic, zero-configuration, four-frontal attack on the Web Am application I'm thinking that it would be a rational browser extension that crawls links on both given domains / paths, and randomly records the data in the form and submits them. In particular, form input will randomly include different data types, special characters, excessive data, different character encoding and zero values. Multithreading is a requirement (probably the same plugin is just using many Firefox tabs). No need to make any claims about the equipment results (and should not be), or to verify any application behavior instead, to firmly assess the results of "test efforts" Layers (DB records, etc.) and application logs will be used. This will be an instrument for supplementing the current testing tool (Selenium, QuickTesto), and methods that do not have 100% coverage. Any suggestions for existing or in-development tools? If not, I

version control - What is the meaning of an asterisk appended to a TFS changeset number -

I am looking at the candidates' changes for a merge and I get some output that I can not understand: TF Merge / Candidate / Recursive $ / Acme / Branches / Release / 3.5 $ / Acme / Trunk Converter Author Date --------- ------- ------- ------------------ ---------- 47829 * nate: 14 4/16/2009 < / Pre> What does * at the end of the number of changes? This indicates that partial merge was done.

Calling a python function from bash script -

I have an "alarm email" function inside the python module. I will be able to call this function with a bash script Want to be I know that you can call a module in the script using 'Python', but if you can not do or how you will call a specific function within the module. dragon-c 'ipod module; Themodule.thefunction ("bu!") ''

PHP/Krumo: accessing arrays within arrays? -

I am using output data from a page, all the data can be accessed through the $ Page Variables. I have been called a customer with the following structure: Customer (array, 1 element) 0 (array, 1 element) ID (string, 2 characters) 85 How do I actually use the ID? I changed my code to $ page-> Customer- & gt; Id but it does not work at the same level as the customer, there is a string field called foo, which I use for $ page-> Foo - why does my viewpoint not work? If I am not misunderstanding your question then you will have the solution: $ id = $ page-> gt; ; Customer [0] ['id']; A print_r () version will also help, perhaps

django: more complicated filter -

मेरे पास ये मॉडल हैं: वर्ग ए (मॉडल): पास वर्ग बी (मॉडल): ए = विदेशी कि (ए) वर्ग सी (मॉडल): बी = विदेशी कि (बी) मेरे पास ए नाम की माया है। मैं अपने बी के लिए सभी बी खोजना चाहता हूं, जिसके लिए कम से कम एक सी है। मैं इसे एक पंक्ति में कर सकता हूं: bsiwant = [cb के लिए cbject.filter में cb (B__a == mya)] (और इसे किसी भी तरह अनूठीकृत करें) ... लेकिन शायद यह कि कई प्रश्नों का कारण होगा क्या फिल्टर के साथ ऐसा करने का कोई तरीका है कि एक एकल क्वेरी की जाएगी? Vals = cobjects.filter (b__a = mya) .select_related ("b")। विशिष्ट () bsiwant = [vals के लिए cb] इसे एक एकल में करना चाहिए क्वेरी।

C scope question -

क्या निम्न कोड मान्य है int main () {int * a = 0; यदि (! ए) {इंट बी [500]; ए = बी; } // एक के साथ कुछ करते हैं, // में सरणी है // // इंगित भी चला जाता है / गुंजाइश और कचरा के // // क्या यह अभी भी ठीक है? } नहीं यह नहीं है, ख दायरे से बाहर हो गया है, सूचक) अपरिभाषित व्यवहार है।

Subsonic and CSLA.NET -

Can Subsonic be used with CSLA.NET? The subsonic is a DAL CSLnet is a BAL (BLL) I have tried this It does not seem to get any information on this. Subsonic can be used as DAL. After learning CSLA when I did a little bit of documentation on this subject, I had some difficulty applying a DAL for the first time. I would recommend checking out our We have a quantified SQL or stored procedure driven DAL. All this is sub-templated so that you can easily copy or copy 8 sub templates and change it to use subSonic and all your BOs will now be powered by subsonic in a very short time. Thanks - Blake Niemajsky (Author)

android - How do I set the rounded corner radius of a color drawable using xml? -

On the Android website, there is one. Defining these designs in XML looks like this: & lt; Resources & gt; & Lt; Dry name = "solid_read" & gt; # F00 & lt; / Drawable & gt; & Lt; Dryable name = "solid_blue" & gt; # 0000ff & lt; / Drawable & gt; & Lt; Dryable name = "solid_green" & gt; # F0f0 & lt; / Drawable & gt; & Lt; / Resources & gt; In the Java APIs, they do the following methods to define the spherical corners: setCornerRadius (float radius) Is there a way to set the spherical corners in xml? Use & lt; To make a drawable in XML with rounded corners; Size & gt; Tags (You can also do other things with the shape tag, like defining color gradients as well). Here's a copy of an XML file that I am using in one of my applications to create drawables with a white background, black border and spherical corners: & Lt ;? Xml version = "1.0" encod

ruby - Using do block vs brackets {} -

Enter your newbie glove, new to Ruby. Is there any difference (unclear or practical) between the following two snippets? my_array = [: uno,: dos,: tres] my_array.each {| Items | The item adds my_array = [: uno,: dos ,: tres] my_array.each do | Items | The end of the item I know that bracket syntax will allow you to put the block on one line my_array.each {| Item | } But there are no compelling reasons to use a syntax on the other outside of it? says that do..end in the bracket syntax has more priority sequence, keep in mind that there is a high priority of Bracket syntax, consider the following two snippets of code compared to Do..end syntax: 1.upto 3 do X | Puts x termination 1.upto 3 {| X | On the other hand only works when parentheses are used, 1.upto (3) {| X | Puts x}

PHP, IIS Image not displaying on browser -

The following code is not displaying images from IIS 6 / PHP 5.2.9. It works fine with XAMPP (PHP 5.3) $ img = @imagecreate (200, 200); $ Background_color = imagecolorallocate ($ IMG, 0, 0, 0); $ Text_color = imagecolorallocate ($ IMG, 233, 14, 91); Imagestring ($ img, 12, 60, 90, 'image here', $ text_color); Header ('Last-Modified:' Date ('D, DM YH: I: S')); Header ('content-type: image / jpg'); Header ('content-dispute: inline; file name = empty_jp.jpg'); Ob_start (); Imagejpeg ($ img); Imagedestroy ($ img); $ Jpeg = ob_get_contents (); Ob_end_clean (); Header ('Content-Length:'. Strlen ($ jpeg)); Echo $ JPEG; Go out; More likely than GI is not properly installed for IIS Turn on and check for errors while calling the script.

wmi query - use wmi to get newest Windows log events -

I want to use WMI to get every 15 minutes to monitor the Windows event log and the latest event log. However, I can use WQL to query, it does not need keywords in the order this way. Any idea how to work around this problem? You can use a dataset. Below is only used VBScript areas ComputerName, EventCode and messages, and so on. Add desired in other areas Const adVarChar = 200 Const MaxCharacters = 1024 Const adFldIsNullable = 32 Set DataList = CreateObject ( "ADOR.Recordset") DataList.Fields.Append "computername", adVarChar , MaxCharacters, adFldIsNullable DataList.Fields.Append "EventCode", adVarChar, MaxCharacters, adFldIsNullable DataList.Fields.Append "message", adVarChar, MaxCharacters, adFldIsNullable DataList.Open strComputer = "." StrComputer = "." Set objWMIService = GetObject ( "winmgmts: {impersonationLevel = impersonate}! \\" & amp; strComputer & amp; "\ root \ cimv2") selec

Send a file in C# client-server application -

I have a socket-based server and I want to send a file from that server for all to connect to server side tcpClient.Client.SendFile (filename) But how can I separate this message on customer message? It should be that the use of normal communication protocols is based on XML, and for example sending the txt file it will not be parsed. What is a way to capture a file using "SendFile" on the client side? Programming at the socket level below, you need to create your own protocol. For example, you can decide that the client will send commands like "FILE file.typ \ n" to the server. When the server sees this command, it is expected to see the number of bytes in the file as "nnnnnn \ n". After this, it will expect the contents of the file of the next "NNNNN" bytes.

WPF: Binding Visibility by string contents -

ठीक है, तो यहां मेरा एक्सएएमएल है: & lt; TextBlock Text = "{बाध्यकारी पथ = InstanceName} "& gt; & lt; / TextBlock & gt; यदि इंस्टेंस -नाम रिक्त स्ट्रिंग है, तो मुझे दृश्यता = "संक्षिप्त" चाहिए। अन्यथा मुझे दृश्यता = "दृश्यमान" चाहिए आप ऐसा कैसे कर सकते हैं? आप एक ValueConverter का उपयोग कर सकते हैं: & Lt; टेक्स्टब्लॉक विज़िबिलिटी = "{बाध्यकारी इंस्टेंस -नाम, कनवर्टर = {स्थानीय: स्ट्रिंगनलऑरप्लूटटीओविज़िबिलिटी कननवर}}" टेक्स्ट = "{बाध्यकारी इंस्टेंस नाम}" / & gt;

iPhone: NSXMLParser's foundCharacters method called multiple time for single tag -

I am able to parse the XML file. But I'm facing a strange error. My XML file format is like this contactLastUpdated element, then the found iskers method is called multiple times and this value returns 2010-01-22 10:05:42 on the third run, \ ' , \' / Strong> on the second part On the run and last } at the last run So I received only the last value ( } ) when I said that the Eidemalment method was called. Please try to resolve this type of error please & lt;> Parser like callbacks: MeetCreator:, you should store similar characters in an example variable, possibly a string must be combined together so that when the parser: done endement: Name Location: ID: Eligible Name: Apply You have the full element value / body, its example variable position for your object Process is available through. You can also read between the difference and the parser. NSXMLParser is a SAX parser that is less convenient to use, but performs better than the DOM

javascript - Does the Google AJAX API Loader have any advantage over direct link to Google hosted files via script tag? -

I recently transferred a site to use Google AJAX libraries instead of hosting a library js files I am currently using Google's recommended approach: & lt; Script type = "text / javascript" src = "http://www.google.com/jsapi?key=MyAPIKEY" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; Google.load ('jquery', '1.3.2'); & Lt; / Script & gt; But I think I'm a little silly to include an additional JavaScript file, just so that I can call another script file. My question is that there is really any advantage to calling these files through google.load () , such as through the script tag Similarly to include: & lt; Script type = "text / javascript" src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" & gt; & Lt; / Script & gt; My main reason for using Google hosted libraries is the speed of their CDN / Edge cach

php - Path Question for Kohana -

I'm newbie for Kohana (used v3). When I run Hello World example, if I link to any other CSS file, then CSS is not working. The basic example works well. Let's go and see the file application / view / site.php message: & Lt; P & gt; We just wanted to say it! :) & Lt; / P & gt; & Lt; / Body & gt; & Lt; / Html & gt; I changed the CSS into another file like this. And I had default.css placed on the same directory of the application / view / default.css ... instead of the current ... it does not work with default.css! ? Can you please tell me how to fix this and how? & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; We've received a message for you! & Lt; / Title & gt; & Lt; LINK href = "default.css" rel = "stylesheet" type = "text / css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; & Lt ;? Php ek $ message; ? & Gt;

jquery - jTruncate / live() -

I was seeing this does not work for the HTML that was added to the page after the page was loaded. Does anyone know how this will work or a better solution? The simplest solution to your problem is jTruncate HTML returned by your AJAX call Like: $ Ajax ({Success: Function (html) // HTML returned {// html = $ (HTML) sorting in HTML word. JTruncate (/ * Enable option * /); // to add your page $ (" Element "). Append (trinitymed html);}});

database - How do you make a column an auto incremented primary key in the various .NET ORMs? -

How do you do a column (let's call it OrderID ) into an automatic increase Primary key different NAT ORMs? Linq for SQL [Column (name = "order id", IsPrimaryKey = true, IsDbGenerated = true)] [EntityKeyProperty = true, IsNullable = false] / Code> (Is not possible to specify autoinc?) NHibernate [id (name To get a one-stop answer to this question I have started this question and to ask for more information from the .NET community. If you do not have an ORM listed here If you are using, please edit this question and post the appropriate attributes. In Habanero ( ) You can set it through Class Diff.XML as the following: Property Name = "AutoConingProp" Type = "Int 32" Auto Inputing = "True" Or You can set Autogenerate (this will generate ClassDefs with AutoIncrementing.) or if you are using more fluent syntax Ie if you are not set up to business objects through ClassDefs, you. BOPR Auto Encryption P

Is there a standard method to create a configuration file for C# program? -

In the past, I will create a text file with only the key values ​​added for example WIDTH = 40 and manually parse the file. . It is a bit cumbersome, it is a standard way of doing preferably with inbuilt support from Visual Studio or NAT framework. Configuration files are one of the built-in templates right-click on your project, add-> new item In the Select Template box, select the configuration file.

continuous integration - Hudson build failed using Python & Coverage -

I set Hudson for Python I've completed everything except the coverage section. My output failed with this output: [workspace] $ / bin / sh -xe /tmp/hudson6222564272447222496.sh + coverage run test / run.py --with-xunit assigned to you I have to try to include the argument, executed at least one -e, -x, -c, -r, or -a , but got an exception, Which was ultimately due to a permissions failure: IOError: [Errno 13] Permission denied: 'nosetests.xml' What Hudson < / Strong> <> You have an old number of coverage.py It's a smear, it looks like something like 2.x. There is new syntax with "coverage run" coverage. Download the latest coverage, and it would be nice to go.

properties - Python property -

The output given to the following code seems to be a bit confusing, why "gets in base" is printed only once? And why not "set in base" printed exactly? Actual recovery / setting works fine though. What am I missing? Category base: def __init __ (self): self.s = "baseStr" def getstr (self): print "get in base" returns self.s def setstr (self, s ): Printed "Base in Set" self.s = s str = property (getstr, setstr) b = base () print b.str b.str = "foo" print b.str < P> Output: Find the Base Base FU You have to use the qualities to work correctly. To do this, get your class from object : class base: ...

methodology - Software Engineering Terminology - What does "Inconsistency" and "Incompleteness" really mean -

What does "incompatibility" and "incompleteness" really mean in terms of designing software? - Construction of specifications The use of formal methods of software engineering is called "incompatible" and "incomplete" in comparison to other less formal methods, such as object-oriented design when making specifications. . Incompatibility and incompleteness are basically both words from formal logic, where they describe logical systems. The full definitions depend on the exact context, but generally for "some X, you can prove both X and X!", And some "for some x" means you prove Can not X and you can not prove! X ". Therefore, for the specifications, I understand to understand" incompatible "as" anything can not be applied, because it is in some way self-contradictory ", and" incomplete "Meaning" determination - for some inputs, outputs are not clearly defined ".

database - If I have two tables in SQL with a many-many relationship, do I need to create an additional table? -

उदाहरण के लिए इन तालिकाओं को ले जाओ। आइटम आईडी वर्णन वर्ग श्रेणी आईडी वर्णन एक आइटम कई श्रेणियों से संबंधित हो सकता है और एक श्रेणी को स्पष्ट रूप से कई वस्तुओं से जोड़ा जा सकता है। इस स्थिति में डेटाबेस कैसे बनाया जायेगा? मुझे यकीन नहीं है। किसी ने कहा कि एक तीसरी तालिका बना, लेकिन मुझे ऐसा करने की आवश्यकता है? क्या मैं सचमुच एक तालिका तालिका bla bla तीसरी तालिका के लिए हाँ, आपको आईडी की मैपिंग के साथ एक तिहाई तालिका बनाने की आवश्यकता है, कुछ ऐसे स्तंभों के साथ: item_id (विदेशी कुंजी) category_id ( विदेशी कुंजी) संपादित करें: आप item_id और category_id को प्राथमिक कुंजी के रूप में देख सकते हैं, वे अकेले रिकॉर्ड की विशिष्ट पहचान करते हैं कुछ अनुप्रयोगों में मैंने रिकॉर्ड के लिए एक अतिरिक्त संख्यात्मक पहचानकर्ता शामिल करना उपयोगी पाया है, और यदि आप ऐसा चाहते हैं तो आप वैकल्पिक रूप से एक को शामिल कर सकते हैं इस तालिका को सभी मैपिंग की सूची के रूप में सोचें आइटम और श्रेणियाँ के बीच यह संक्षिप्त है, और इसके लिए क्वेरी करना आसान है। संपादन: हटाया गया (अनावश्यक

language agnostic - Do you keep a code bank? -

I have worked in consultation for many years and I have code snippets in many languages, lying around whom I will do it again. Use Collection for various projects is getting bigger and I want to set up a code bank for myself. What codes do banks use? Do you think this helps you, or is there a better way to organize my reusable code snippets? (If someone is present, then I want it to be open-source, color a web browser, an unknown, and possibly the way the stackwormflows the code :) < / Div> If you want you to be an opener, then it is used.

c++ - How does this pointer arithmetic work? -

#include & lt; stdio.h & gt; Int मुख्य (शून्य) {एक हस्ताक्षरित [3] [4] = {{2,23,6,7}, {8,5,1,4}, {12,15,3,9}}; printf ( "% u", * ((int *) (((चार *) क) 4))); वापसी 0; } मेरी मशीन का आउटपुट a [0] [1] यानी 23 पर मान है। क्या कोई बता सकता है कि कैसे यह काम कर रहा है? संपादित करें: पुराने yucky कोड पर वापस रोलिंग, वास्तव में मुझे क्या प्रस्तुत किया गया था: पी इसलिए आपके पास मेमोरी में अपनी सरणी है: 2, 23, 6, 7, 8 ... < / प्री> यह क्या करता है जो चार * में सरणी डाल देता है, जिससे आपको व्यक्तिगत बाइट्स का उपयोग करने की सुविधा मिलती है, और यह यहां इंगित करता है: 2, 23 , 6, 7, 8 ... ^ यह फिर चार बाइट जोड़ता है, इसे अगले मूल्य पर ले जाता है (और बाद में इस पर अधिक)। 2, 23, 6, 7, 8 ... ^ फिर यह इसे एक int * में बदल देता है और इसे मानता है, मान 23 हो रही है। < / P> इस कोड में तकनीकी रूप से तीन चीजें गलत हैं। पहला यह मानता है कि एक अहस्ताक्षरित आकार में 4 बाइट्स है (इसलिए + 4 )। लेकिन यह जरूरी नहीं कि सच है! बेहतर होता है

javascript - Find the width of a left floated list and apply to wrapper div to center it using css - jQuery? -

I want a ul center in a div with the left column of the liquid layout. To do this, I need to set the width of a div, which I used to wrap UL. Note: The list item (and content) is taken from the database using PHP. I am interested in your suggestions that this is how to use jquery. Consider the markup given below: & lt; Div id = "wrapper" & gt; & Lt; Div id = "left-column" & gt; & Lt; Div id = "list-wrap" & gt; & Lt; Ul & gt; & Lt; Li & gt; Dynamic content 1 & lt; / Li & gt; & Lt; Li & gt; Dynamic content 2 & lt; / Li & gt; & Lt; Li & gt; Dynamic content 3 & lt; / Li & gt; & Lt; Li & gt; Dynamic content 4 & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt ;! - / catalog-sheet - & gt; & Lt; / Div & gt; & Lt ;! - / left column - & gt; & Lt; Div id = "right-column" & gt; Content & lt; / D

Is there a way to reference a variable from an external document with PHP? -

I want to use PHP, but I need to know how to get a variable from an external document ( External.php) and use it in a function in a PHP document (internal.php). I was thinking something like this: Code for external code $ variable = "true"; internal.php for code if ($ GETFROM {'/ external.php'} ['variable']) "This worked" Echo; Is it possible to do something like this? If you want to include a specific value directly from an innerfile file in your current document, you You can also include the PHP file that gives value. For example: inc.php & lt ;? Php returns "Hello, world!"; ? & Gt; index.php & lt; Php $ var = Include "inc.php"; If (isset ($ var) & empty ($ var)) {echo "this worked! \ N"; Echo "value: {$ var}"; } And {echo "this failed!"; }? & Gt;

radio button - Problem with RadioGroup.ControlCount in Delphi 2010 -

I want to set the radio button property in the InitRadioGroup () process in runtime. This fails because RadioGroup.ControlCount is 0, although there are 3 radioburts in the radio group. What is wrong with the D 2010 Radio Group? The same code works well in Delphi 2007. Process InitRadioGroup (RadioGroup: TRADIOGroup); Var i: integer; Radiobutton: TrendBooten; I: Start for: 0 = radio group. Control Card - 1 Start the Radio Button: = (Radio Group. Control [i] as TreadObutton); Radiobutan Spinach Collar: = Wrong; Radio button Parent Font: = Incorrect; Radio button Font Style: = []; End; I think the radio group is not showing up when your process is called Then you can not make radio boots. Call RadioGroup.HandleNeeded to fix it for you.

How do I implement HTTPS in an ASP.NET Project? -

I want to implement HTTPS in my ASP.NET application. How do i do it The HTTPS code needs to not be implemented within itself. Unless you run the code under the implementation of server SSL, you will not have any problems. Take a look here: The only thing to ensure is that any code calling any other page should be below the SSL site, otherwise the users will be given warnings . This is especially overlooked in images.

html - Delphi Suggestions For Parsing Google SERP Results -

What's the best way to paragraph Google search results with Delphi (APIs will not work, only 10 results allowed gives)? (I like the free option.) Did you think about regular expressions (reges?) It's obviously you have a Here's a good one.

bash - How to remove part of filename and add extension programmatically? -

I have hundreds of files in such a folder like: index.html? Tab = this is - File name I would like to remove the "index.html? Tab =" part and add the extension ".txt" to all the files. How can I use this Unix Command Line Tools (I am using MacOSX 10.6.2)? In Bash, i for index.html \ tab = =; MV "$ i" "$ {i: 15} .txt"; Done

css - Aligning contents of a div right. Getting 'direction: rtl' effect, without specifying the widths? while keeping text direction in input fields going ltr. Is it possible? -

Aligning the content of a div to the right edge 'direction: RTL' effect (left to right), the width of the divide Without specifying? While keeping the input field going from LTR (left to right) in the input field, is this possible? Applying Directions: The effect of the almost radius of Wikipedia, leaving the text field input, becomes RTL (I think alignment: works fine, but gets eroded) & gt; Div style = "direction: rtl;" & Gt; Text is right aligned & lt; Input type = "text" value = "some value" style = "direction: ltr;" / & Gt; & Lt; / Div & gt;

c# - how to update a cell in DataGrid which is binded with string[][] array -

The DataSource array is the source data for this datagrid. I have DataGrid and a string [] [] I use the following code to set binding: dataGrid.ItemsSource = DataSource; (Int i = 0; i & lt; column; i ++) {dataGrid.Columns.Add (New DataGridTextColumn {binding = new binding (string.format ("[{0}]", i))}) ; } How can I update a notification in a cell in the data grid when the value [i] [j] was changed in the string? If the data items that you are bound to implement, then the INOTifyPropertyChanged update automatically Because the data will transmit the item / collection that an asset has changed, and the datagrid will be automatically updated without updating (manual grid refunds may be slower depending on the amount of data). So if you change the data structure that you are bound to string, it is something that implements INotifyPropertyChanged (even if you object yourself, which is easy to do). And set the grid to automatically create columns, then you need

c# - Generating a multipage tiff is not working -

I am trying to create a multipage TIFF file with an existing image: picture. Selection ActiveFrame (Frame Dimension.page, 0); Var image = new bitmap (image); (Using Var stream = new memorystream) {ImageCodecInfo codecInfo = null; Image Image (Encoder) in Foreign Currency (ImageCodecInfo.GetImageEncoders ()) {if (imageEncoder.MimeType! = "Image / Tiff") is on; CodecInfo = imageEncoder; break; } Var Parameter = New Encoder Parameter (Param = New) [New Encoder Parameter (Encoder. Sevflag, (Long) Encoder Value. Multifame)}}; Image. Save (stream, codecInfo, parameter); Parameters = new encoder parameter (Param = new [] {New encoder parameter (encoder.seflag, (long) encoder value .frame dementions page}}}; (var i = 1; i & lt; image .Getframecount (frame Dimension.page); i ++) {picture selection frames (frame dementions page, i); var img = new bitmap (image); image.SaveAdd (IMG, parameter);} parameter = new encoder parameters {super = New [] (new encoder parameter (encode

math - Calculate overlap between two rectangles on x/y grid? -

I need to calculate overlap (zodiac or yes / no), which is two rectangles on a particular x / y grid Make them. The grid is 500x500 but connected to the side and corner (continuous). Then after 499, the next point becomes 0. In the last question I asked a way to calculate the distance between the two points in this grid. It turns out to be Euclidean distance: sqrt (min (| x1 - x2 |, gridwidth - | x1 - x2 |) ^ 2 + min (| y1 - y2 |, gridhight - | Y1-y2 |) ^ 2) What is the good mathematical way of calculating the two rectangular (one point (x, y), width and height) is the grid Can be overlap in? Rectangle-1 ( [x = 0, y = 0], w = 20, h = 20 ) and rectangle -2 ( [X = 495, y = 0], w = 10, h = 10 ) should overlap. Overlapping rectangle (not really necessary) but should be ( [x = 0, y = 0], w = 5, h = 10 ) First of all, calculate the X and Y range for each rectangle (because you have taurus geometry, it is classified by modernity). Therefore, your rectangle is given t

mysql - Symfony i18n table: Ways to get fallback default value? -

I'm creating a city name table in MySQL with approximately 10K rows to be a Siemphonii i18n table. Basically, The default culture is N_US and every city in the table is the beginning of this culture. Over time, I would like to add only those cities in the table, which can have alternate names in different languages, such as "London (NAUS) / London (SES)", without repeating the data of every city Language in different tables Now, what I think, Symphony will not automatically choose a fallback default city name if there is no translation for it. So I need to prepare a solution to do the following: If translation exists, select it .... If not, then choose the default en_US city name. So far it seems that I should use the COALESCE However, as I am not very familiar about it, I am thinking that to use it are lacking? I am asking this because I have to include this in the query of every city which is a very consistent action on my site. Suggestions for any ideas,

singleton patterns VS static types -

संभव डुप्लिकेट: आम तौर पर, हर बार मुझे एक एकल प्रणाली की वस्तु की आवश्यकता होती थी, मैंने सिंगलटन पैटर्न का इस्तेमाल किया था एम प्रश्न यह है, क्यों मैं सिर्फ ऑब्जेक्ट को स्थिर के रूप में लागू नहीं करना चाहिए और स्वाभाविक रूप से एकल ऑब्जेक्ट व्यवहार को प्राप्त करना चाहिए? क्या सिंगलटन तथ्यात्मक वस्तु पर स्थिर प्रकार का उपयोग करने के लिए कोई बुराई है? एक स्थिर प्रकार बहुत कम है ( इकाई) testable सामान्य तौर पर आपको सिस्टमवुड ऑब्जेक्ट्स से बचना चाहिए, क्योंकि ये सुझाव है कि आपके पास वैश्विक स्थिति है सिंगलटन का उपयोग साझा संसाधन (राज्य के बजाय) तक पहुंच के प्रबंधन के लिए किया जाता है। मेरा मानना ​​है कि एक गोफ में रिकॉर्ड होने पर रिकॉर्ड किया गया है जिसमें सिंगलटन की अपनी पुस्तक में एक गलती थी और कई मामलों में इसका उपयोग विरोधी-पैटर्न के रूप में किया जाता है।

qt - Using items in the background of a QGraphicsScene -

I have QGraphicsScene where I initially attracted the background in the drawBackground () function. However, this requires a lot of calculation and got very slow, so I made a bunch of items instead. Its expected speed was My question: Is there any way to treat these items as background? Does it make a difference if I understand them as a background? Thanks There are three layers in reference to QGraphicsScene (see Qt Docs) : QGraphicsScene :: ItemLayer Item layer QGraphicsScene calls all layers in this layer by calling the virtual function drawItems (). The item layer is prepared after the background layer, but before the foreground layer. QGraphicsScene :: BackgroundLayer Background layer The QGraphicsScene virtual function renders the background of the view in this layer by calling the DrawBackground (). The background layer is drawn on all the layers first. QGraphicsScene :: Foreground Layer Foreground Layer QGraphicsScene Virtual Function By calli

C homework help: Searching through arrays -

I am working on a problem where I have given a serial array of integers, and I should take input from the user , Look for the input, and return the first instance of that input (if it exists) and the number of times it appears. I wrote a program with the following approach: I take an input from the user, then I use binary search to find the value. If it exists, then I store the index as m . After this, I type two while the loop first loop checks for the number of value events on the left and the other does the same, but for example, binary search 5 might be looking for , And finds it, however, it is the third, that is, the land. {.....5,5, ** 5 **, 5 ....} . The first while both loops left and the other will be counted, while the loop one will be counted on the right. Then I will add them all and return the total number of examples. If the input value is not present, then I leave the code already mentioned and return only 1. In the body of the main function, I then chec

browser - Encoding $_GET[] values with PHP to make them broswer safe -

With PHP, which is the best way to use with $ _GET [] values ​​to secure the browser ? I have read some HTML Specialties () and Helenties (). Should one of them be used or is there any other work that will work better? Enough use HTML encoding is only necessary if you want to use those characters Which you can not be encoded with encoded characters. But when you want to use, be sure to specify the quote_style parameter output in a attribute value cited with single quotation marks: Echo "input type = 'text' value = '". Htmlspecialchars ($ _GET ['foobar'], ENT_QUOTES) "'& Gt;"; And to specify the charset parameter when you are using any character encoding except ISO 8859-1: Echo Htmlspecialchars ($ _GET ['foobar'], ENT_QUOTES, 'UTF-8');

the right code flow in attached code? (ruby) -

In the script of my script code (see the first piece of code below) I have the array @post_csv_order To specify order and key => value relationship of elements for @ post [post_id] . I run all the values ​​(such as forum_id, post_chittel, etc.) and run an assignment line in @post [forum_id] = hash [* @ post_csv_order.flatten] . Why do I have to do this array? I should have all major names (= CSV header) and key => value definition in one place, so when I change the order or I add new extension that I want to store, I do not need to make any changes in code is. I should use that array approach, even if the object is to be used instead of hash. To create an array of the second item of the array, @ post_csv_order should be otherwise defined otherwise I will be undefined local variable or method . A little more about the whole script : It flows in that way - I parse a stage page and this gives me an array of posts. And get all the details I need to post and store

PHP: Using simplexml to loop through all levels of an XML file -

I have a function that uses simplexml to return to the first level of nodes in the XML file and make it one Writes in the unordered list: function printAssetMap () {$ xml = simplexml_load_file (X_ASSETS); $ Property = $ xml- & gt; Property; $ Html = '& lt; Ul & gt; "\ N"; Foreign Currency ($ assets as $ assets) {$ html. = '& Lt; Li id = "asset '. $ Asset- & gt; asset_assetid." "& Gt; In & gt; & lt; / ins> gt; ['$ Asset-> Asset_assetid.'] XML I am using, which has nested nodes: & lt ;? Xml version = "1.0"? & Gt; & lt; asset & gt; & gt; asset & gt; & lt; ASSET_NAME & gt; Home & lt; / ASSET_NAME & gt; & lt; Asset_url & gt; / home & lt; / asset_url & gt; & lt; asset_assetid & gt; 1 & lt; / asset_assetid & gt; & lt; / asset & gt; & lt; asset & gt; & lt; ASSET_NAME & Gt; Projects & lt; /

logic - Implementing 5-variable function using multiplexers -

If I have the 5-variable function (below) and I want to implement it using multiplexer, then I How to do (using the minimum possible multiplexer): f (A, B, C, D, E) = A + CD + BD 'B'D + B'CE This is homework, so do not provide solutions, a guide to how it works. Thank you! <5 5 variables with input from to 32 means 2 ** (32) multiplexer. convert these words binary numbers and keep the corresponding high. for B'CE we have: ABCDX 0 1x1 This gives us 4 numbers, because We do not care 2. There are four numbers: 00101 = 5 00111 = 7 10101 = 21 10111 = 23 Hold inputs 5, 7, 21, and 23 high. Repeat for the rest of the words.

xamarin.ios - iPhone UIPickerViewModel Multiple components -

I have set a picker model for a customer class, which gets the UIPR ViewModel I display the data of the first component to the picker (it has 2) but I do not see any way to tell the picker that value is for the second column? I am using MontoTouch.net, but the obj-C answer is OK. Override GetRowsInComponent (UIPickerView picker view, integer component) This does not allow me to specify the data for two columns, such as when I use the data source and Use representative. You have to override the GetComponentCount method and in that case 2 should return. You want something like this: Public override int GateCommentCount (UIPickerView picker view) {return2; } Public override int GetRowsInComponent (UIPickerView pickerView, int component) {// component will be 0 or 1: return value [component]. Lamps; }

c# - How to implement a data-bound control with templates? -

I want to implement a very simple list control, it has 2 properties: Datasource (ILIST) You must present each row using the control implementation in right-templates The template is specified in the respective object passing in the code> DataSource list, so that if I have a property called name If it is in the object that is in the passage, then it is Eval ("name") . I want an example of how to render control using the right-template and how the reporter is datasource on the template object . I am reading MSDN document on this topic: But but I do not know how to implement the control that passes an object on the template. It seems that you are trying to develop a templated data-bound control. During the rendering of the original control you need to run your data source object again. For each item in your datasource, create a new instance of your Template Container object and add it to the container control. Depending on what you are expand

I think i have a vector image format, how do use it to draw an image in php? -

I've got an image format that is being used by some Aepplets but I do not know what it is. I think this is some type of vector graphics format used by the GD library. Can anyone decode it? I want to use raw data in PGN, PHP The data is being generated from the squiggles created by the mouse. Is there some Neto GD library function that I can feed the data to recreate the image? (Looking for the PHP Laibre function to work.) Below is an example of the output from the form array ( 'signature' = & gt; 20 9 142 20 9 142 20 9 142 20 9 142 20 9 141 20 9 143 208 143 208 141 208 141 208 143 206 143 206 141 206 141 206 143 204 143 204 141 204 141 204 143 202 143 202 141 202 141 202 143 200 143 200 141 200 141 200 143 197 143 197 141 197 141 197 143 195 143 195 141 195 141 195 143 194 143 194 141 194 141 194 143 193 143 193 141 192 142 194 142 194 143 192 143 193 142 193 144 192 144 192 142 191 143 193 143 193 144 1 9 144 144 144 144 144 144 193 145 191 145 1 9 1 14

silverlight - F#: Add and remove event handlers -

I'm trying to add & amp; Remove an event handler from a Silverlight Framework Element, but I can not get the syntax correct. I have to do something like this: click event handler = funny args - & gt; Click "Printfn!" Fe.MouseLeftButtonDown.AddHandler (clickedEventHandler) ... fe.MouseLeftButtonDown.RemoveHandler (clickedEventHandler) What should be the correct way to do this? As you've already mentioned, you need to make an example of a representative: f = new MouseButtonEventHandler (funny) ch can be used as a logic for AddHandler or ; RemoveHanlder . The reason for this is that the F # function value is not actually represented as any representative type. It has its own type, which is not a representative (see also). If you look at the types of F # interactive (or VS Intelligence) types, then you can see the difference: & gt; (Fun: OBJE) (A: Mawbutton Aventergies) - Click & gt; Print FN! ") Valve it: OBG - & gt;

sql - How do I make an exclusive rather than inclusive query with named scopes in Rails? -

I have created an application that finds service providers based on many services. It is done through many mediums, so an object is included. Basically, if a user asks for service providers with Service A and Service B, then my returns give service providers who either offer both Service A and Service B or other service providers, who are offering a service or service B provide. Instead we my radius looks like this: named_scope: with_services, lambda {| Services | {: Terms = & gt; ["Services.id IN (# {services.map {| s | s.id}. Include (',')}) and service_options.service_owner_type = 'service provider' and service_options.service_owner_id = service_providers.id"] ,: Include = & gt; [: Services: Service_opher]}} As you can see, I am using these operators to do this. But it's like saying "I am a service provider, who is a service or service b," when I really want, "I can find a service provider with both Service A and Servi

How can I store entire contents of a Perl array to a scalar variable? -

How can I store all the contents of an array in a scalar variable? Example: $ my code = do $ {local $ /; & Lt; File handle & gt; }; It works fine for this file handles but I need it for an array. My $ str = join ", @array;

asp.net - Declare return Type of the Function when there are two possible returned types -

I have the following statement, I want to change it to a public shared function: If employees are employees then employee employees will return to the instances = GetEmployeeInstanceByUserId (userId) employee as employees of new employees Internships as new student students in the form of staff: GetStudentInstanceByUserId (userId) Student student withdrawal if < / Pre> Public Shared Function GetWorkerIns Tance (Byval as IMployee boolean) ... (make sure not to write here) ... There are two potential return types I'm not sure for the return type type What should be declared. Any suggestions? Thank you. It would be easiest if both employees and one parent (Either a base class or interface) students, you can use it as your return type. You can not declare different return types at a function and you will not be able to create overrides that make different types of returns, because the method is not considered for return type in signature resolution. .

Cardinal direction algorithm in Java -

At the end of this week, I will take an algorithm that takes a title (in degrees) and back together for a string Beating spend a few minutes on the main direction (I'm using it in an Android Compass app). I ended up with it: Private string headingtoostring (float heading) {string strHeading = "?"; Hashtable & lt; String, float & gt; Cardinal = new hashtable & lt; String, float & gt; (); Cardinal.put ("North_1", new Float (0)); Cardinal.put ("Northeast", New Float (45)); Cardinal.put ("East", New Float (90)); Cardinal.put ("southeast", new float (135)); Cardinal.put ("south", new float (180)); Cardinal.put ("south west", new float (225)); Cardinal.put ("west", new float (270)); Cardinal.put ("Northwest", New Float (315)); Cardinal.put ("North_2", new float (360)); For (string key: cardinal.keySet ()) {float value = cardinal.get (key); If (mathematics.base (title

java - Client side sessions -

I want customers of many related web applications to have their own authentication status. This improves scalability, since no session replication is required between cluster nodes. And it makes it easy to integrate various server technologies like Java servers and PHP. My plan is as follows: Set up a signed and encrypted cookie with the user name and session end time after client authentication. The client sends a request, the cookie cookie values ​​the values ​​and validates or denies access based on the cookie values. The expiry of the session will be updated through resetting cookies. All servers that want to use the session are only to know the cookie mechanism and decryption keys. Also see: Is this approach okay? Would it be possible to integrate it into a servlet container / application server, so that it is transparent for applications? A servlet should be able to use HttpServletRequest #getRemoteUser () for example. Is this possible? Or do I need something li

android - How to detect whether GPS signal is weak or high? -

How can detect the power of GPS signal like low (weak) or high? There is an API this getAccuracy () The method of the location object returned by onLocationChanged provides a good indication of how well "/"> "OK".

mysql - SHOW FIELDS but with filter on field type? -

I have a MySQL database with several tables with many fields. Is there a basic way to find only the fields of type TEXT , I know that the language of such a script Like PHP, I just want to know if there is a move using the show Tables / Show field, I do not have any information about it. For MySQL 5+, you must INFORMATION_SCHEMA : SELECT TABLE_NAME, COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS WHERE DATA_TYPE = 'TEXT';

flex and jsf access the same instance of bean -

मैं jsf-icefaces ऐप में एक फ्लेक्स ऐप को एकीकृत करता है (बर्फ के साथ jspx साइट में: outputmedia-tag) और चाहते हैं एक फसल से एक बीन के समान उदाहरण तक पहुंचने के लिए, जेएसएफ इंजेक्ट। मैं पहले से ही ब्लेज़ के साथ जावा-बीन से जुड़ा हुआ हूं यह बीन - अन्य सभी बीन्स की तरह- जेएसएफ के इंजेक्शन के द्वारा अन्य बीन्स प्राप्त करें, लेकिन जब मैं रिमोट से फ्लेक्स से सेम का उपयोग करता हूं तो इंजेक्शन सेम (जैसे कि स्थानीयआधारक और एक्सेमैनेजर, दोनों सत्र स्कॉड) को पकड़ नहीं सकते हैं और मैं इससे कनेक्ट नहीं हो सकता जेएसएफ सत्र (FacesContext.getCurrentInstance () शून्य है)। ऐसा इसलिए है क्योंकि फ्लेक्स सेम के एक नए उदाहरण का निर्माण होता है और यह वही वर्तमान उदाहरण नहीं होता है, जेएसएफ इंजेक्ट करते हैं, मुझे लगता है। मैं जावा में एक नई इकाई प्रबंधक बनाकर फ्लेक्स से डेटाबेस से कनेक्ट कर सकता हूं बीन, लेकिन यह वही नहीं है जो मैं चाहता हूँ, क्योंकि यह एक और इकाई प्रबंधक है ... मैं वही रहना चाहता हूं और एक्सेसमैनेजर-बीन पर डेटा प्राप्त करना चाहता हूं। मुझे एक्स्टेला फिजी और फ्लेमिंगो पता है, लेकिन

How can I correctly calculate the lengths of fields in a CSV dcoument using Perl? -

I have a datas and a simple while is to perform an operation with a Perl script here dataset Is a small withdrawal from: "number", "code", "country", "gamma", "x1", "x2", "x3", "x4", " X5 "," X6 "1," DZA "," Algeria "," 0.01 ", 7.44,47.3,0.46,0,0,0.13 2," Agu "," Angola "," 0.00 ", 6.7 9," NULL ", 0.21,1,0,0.28 3," Ben "," Benin "," - 0.01 ", 7.02,38.9,0.27,1,0,0,05 4," BWA "," Botswana "," 0.06 " , 6.28,45.7,0.42,1,0,0.07 5, "HVO", "Burqina Faso", "0.00", 6.15,36.3,0.08,1,0,0,05 6, "BDI", "Burundi", "0.00", 6.38,41.8,0.18,1,0,0 The script should calculate different fields from each , , and store the highest values ​​in an array. However, savings do not work properly. Here's a part of

sql server - Increment field in Select statement -

I have some data that I do not have a group statement, and do not want to make a group statement in it, but I Would like a salary increment field, so I can do a reporting service zebra table. So, how do I change this data: Some other Europe in the regional country office Austria Austria 12 2 Asia India Delhi 22 4 < Code> Area in the country somedata someotherdata IncField Europe Austria Vienna 12 2 1 Asia India Delhi 22 4 2 You can try to use SELECT ROW_NUMBER (works with SQL Server 2005 and 2008 [edit] < / Html>

problem in passing data in android Activities? -

Anyone can guide me what I'm doing in this code ??? It does not seem like this .. I have two activations Public Waste Create (Bundled Saved Instance) {super.onCreate (savedInstanceState); SetContentView (R.layout.main); Intent to intent = new intent (datapiasing. This, datapiasing 2. class); Bundle B = new bundle (); B.putInt ("Key", 1123); Intent.putExtras (b); StartActivity; End(); } and I have written in another activity Create a public void form (bundle saved instenstate) {bundle b = getIntent (). GetExtras (); Int value = b.getInt ("key", 0); Toast. Make text (this, value, toast. LNNGHHORART). Show (); } But the code is giving me an error. I do not know why .. I've added another activity in the manifest file .. Please guide me what I'm doing wrong ??? Any help will be aperitized. Do you debug the code Or maybe try to include some attempts / catch-blocks and find out where the error is happening and what is the error message?

linq - Merging Dictionary containing a List in C# -

It's related, how to merge two dictionaries in C. An elegant Linq solution is presented, which is cool. However, this question is dictionary & amp; Object 1 is related to object 2>, , while I have a dictionary where the value is a list & lt; Object2 & gt; I have the following requirements with the dictionary & amp; Object 1, list & lt; Object2 & gt; If Dictation 1 has the same key as the dictionary 2, then its List & lt; Object2 & gt; The list should end with a new key-value-pair with the share key, and the combined lists from two dictionaries If there is a key in 1 that Dictionary 2 is not then, then list & lt; Object 2 & gt; Must be priced from list 1, and should be opposite. This is not possible in Linq, or it may be worth writing for a loop for a long time, but it would be good for an elegant solution. I would suggest creating an own extension It will be more efficient and easy to modify. Public static z