Posts

Showing posts from March, 2010

iis 7 - IIS7 Rewrite issue - Multiple websites -

Hi there is an issue with the rewrite mod for IIS7 I have many examples in this example Websites are .com.com summer.com, winter.com, spring.com) All of these domains point to the same folder (G: \ Websites \ season \ HTOX) Now complex bits rewrites Summer.com: \ websites \ seasons \ htdocs \ domains \ summer \ therefore any file in this folder will appear \ htdocs \ web.config now summer .com also has its own rewrite rules in a web.config file located in the villages \ websites \ seasons :: \ websites \ weather \ it appears in the rewriting village Htdocs \ domains \ summer \ web.config If a visitor tried to visit moudle's rewrite again to write again, The site should rewrite the news.php file within the Season \ HTOX \ domain. \ Summer \ news.php) instead of url: path: g: \ websites \ seasons \ htdocs Rewrite the rules \ domains \ summer \ news \ g: \ websites \ seasons \ htdocs \ web.config & lt; Rule name = "summer" & gt; The file loc...

css - IE conditional in the stylesheet -

I have a and gt; & Lt; Li & gt; I am trying to raise the top limit of a content div with the boundaries below. The list used for the above navigation (like a tabbed panel). Alignment in IE (or I set margin) is off with 1 pixel. Is there a direct way within CSS, so I do not have to make a separate IE stylesheet. Is there a bet that will set the margin for IE's choice? Or, if I'm turning off IE from 1 pixel, then I would love to hear that I can escape the IE hack completely (I know that I have not posted any code yet). Thanks! Yes, there it is. Myclass {* Margin: 1px; } This works for IE6 and IE7, do you need to hack for any other specific version?

iphone - Recording and then Playing Audio using AVAudioRecorder and AVAudioPLayer -

I have an AVAudioRecorder that captures sound What I want (aviideo player) recorded (audio audio record) ) As it is being recorded. I have set up AVAudioSession property for playback ... but I do not know how I programmed the following types of scenarios? As you call your head on and you are walking, some of you are a beep, but you can not hear because of your headphones, but if your iPhone captures, then beep plays right. If I am recording and playing on the same file at the same time. Will that be a problem? No problem in this. Recording and play on the same file at the same time

asp.net - Disabling controls on a nested user control -

On this UserControl I am using a masterpage, I have a UserStorage, I have another user control If I close the account, then I want to disable all the controls on the account page (user controls including parent and child - archive collection). How do I do this? Thanks Wrap the section with a panel control. Then set the panel. Competent = false; It will descend down and disable your children too. HTH

c# - How do I limit overriding in a hierarchy? -

This is an example, I am curious to know how to get this. I want to enable only sub sections of animals , they should be able to determine the number of those feet, but I still able to set them their own color Therefore, I want to limit the classes to more than the square since it changes the Legs property. Public intangible class animal {public string color {get; Protected Set; } Receive public int foot { Protected Set; } Speak the public essence string (); } Public square dog: Animal {public dog} (foot = 4;} public override string Speak (return) "Woof";} Public Sealed Class Springer: Dogs {public springer} {color = "lever and white"; } Public Sealed Class Chihuahua: Dogs {Public Chihuahua () {color = "white";} Public override string speak (return) "return" * annoying * YAP! "For example, I want to end such subclasses. I: abstract Public sealed class dalmatian: dog {public dalmatian () {feet = 20; color = "black and whit...

Compare multiple values in a Ruby array -

[{"नाम": "जॉन डो", "स्थान": {"name": "न्यूयॉर्क "" "" "" "" "", "आईडी": "आईडी": 12746342329}, "गृहनगर": {"नाम": "ब्रुकलिन, न्यू यॉर्क", "आईडी": 43453644}}, {"नाम": "जेन डो", "स्थान" {"नाम": "मियामी, फ्लोरिडा", "आईडी": 1274634232 9}, "गृहनगर": {"नाम": "क्वींस, न्यू यॉर्क", "आईडी": 12746329}}] JSON के इस टुकड़े को देखते हुए, मैं कैसे "पाल" के माध्यम से और सभी "गृहनगर" और "स्थान" कुंजियों को बाहर कर सकता हूं और देख सकता हूँ कि किसके पास न्यू यॉर्क का मूल्य है? मेरी समस्या यह है कि मैं इन मदों के माध्यम से अर्रे कर सकता हूं। लेकिन मुझे नहीं पता है कि दोनों स्थान और amp; amp; मेरे मानदंड ("न्यूयॉर्क") के साथ गृहनगर लोग.सहेक्ट {| व्यक्ति | person.any? {| कश्मीर, वी | % W [स्थान गृह नगर]...

No way to use TSQL Output with normal foreign key constraints? -

निम्नलिखित स्निपेट त्रुटि के साथ विफल: लक्ष्य तालिका 'dbo.forn' की (प्राथमिक कुंजी, विदेशी कुंजी) रिश्ते के दोनों तरफ नहीं हो सकता है। मिले संदर्भ बाधा 'FK_forn_prim'। " मैं केवल विदेशी कुंजी की कमी को अक्षम करने? यह कैसे किया जा सकता है द्वारा उत्पादन का उपयोग कर सकते हैं? object_id ( 'अगर dbo.forn ') शून्य नहीं है तालिका dbo.forn ड्रॉप बाधा FK_forn_prim ड्रॉप तालिका dbo.forn बदल शुरू, अंत यदि object_id (' dbo.prim ') नहीं NULL ड्रॉप तालिका dbo.prim है; टेबल dbo.prim बनाएं जाना (C1 पूर्णांक प्राथमिक कुंजी); टेबल dbo.forn (C1 पूर्णांक बाधा FK_forn_prim विदेशी कुंजी (C1) संदर्भ बनाने dbo.prim (C1)); जांच inserted.c1 dbo.prim उत्पादन में सम्मिलित जाना dbo.forn 1 का चयन करें; के अनुसार इसकी कोई गारंटी नहीं है कि जिस क्रम में परिवर्तन तालिका में लागू होते हैं और क्रम में आउटपुट तालिका या तालिका चर में पंक्तियां डाली जाती हैं। इस पर आधारित कई प्रतिबंध हैं, जिनमें से जो आप उपरोक्त में चला गया, लेकिन अगर आप सब चाहते हैं कि एक दूसरी...

c# - Threading as a WCF Service -

I need to run to send an email to a Windows service that I installed on a machine and still log long enough a and then sleep for 24 hours if I call service method from a web client, it works fine, but when I say that the windows service, it remains each time failed, and error information to check me anything Not specific to: Communications object, System.ServiceModel.Channels.Servic EChannel can not be used for communication, because it is in error state public partial class EDBDailyLogMailer:. ServiceBase {thread thread; Public EDBDailyLogMailer () {InitializeComponent (); This.ServiceName = "EDB Daily Log Mailer"; } Safe Override Zero Start (string [] args) {try {thread = new thread (MailLogDaily); Thread.Start (); } Hold (Exceptional) {East; }} Static void MailLogDaily () {while (true) {) client.EmailEventLog (try using {(ApprovableFieldClient client = new ApprovableFieldClient ()); Thread.Sleep (86400000); } Hold (Exceptional) {East; }}}} The code works fine i...

bash - How to get the PID of a process in a pipeline -

निम्नलिखित सरल उदाहरण पर विचार करें: my_prog | awk '...'> आउटपुट .csv और my_pid = "$!" # जीआरआईडी के लिए पीआईडी ​​के बजाय my_prog के लिए नींद 10 मारो $ my_pid # my_prog अभी भी अपने बफर में डेटा है कि awk कभी नहीं देखा डेटा खो दिया है! बैश में, $ my_pid पीआईडी ​​को awk के लिए इंगित करता है। हालांकि, मुझे my_prog के लिए पीआईडी ​​की आवश्यकता है अगर मैं awk को मारता हूं, my_prog इसे आउटपुट बफर फ्लश करने के लिए नहीं जानता और डेटा खो जाता है। तो, एक my_prog के लिए पीआईडी ​​कैसे प्राप्त करेगा? ध्यान दें कि ps aux | grep my_prog काम नहीं करेगा क्योंकि कई my_prog हो रहा है। नोट: परिवर्तित cat से awk '...' की आवश्यकता को स्पष्ट करने के लिए मुझे क्या चाहिए। बस एक ही मुद्दा था मेरा समाधान: process_1 | प्रक्रिया_2 & amp; PID_OF_PROCESS_2 = $! PID_OF_PROCESS_1 = `नौकरियां-पी` बस सुनिश्चित करें कि process_1 पहली पृष्ठभूमि प्रक्रिया है अन्यथा, आपको jobs -l के पूर्ण आउटपुट को पार्स करने की आवश्यकता है।

JQuery: How to handle ASP.Net MVC 2 View objects in Ajax data? -

I want to submit an ASP.NET MVC 2 page via javascript / jquio because I have to create some arrays In the controller, I either see (if there are any errors) or return a URL (redirect) I I can fix the URL, but I have no idea that returning an object How can handle pre > code Code Br> Jason Returns (see ("Editor" , New Administrator Edit Rollwheel Model (roles), JasonSeverest Behavior Alowweight); // If it is okay, then return the new URL - Return Jason (Redirection Taoyankha ("Editor's Details"), Jason Arefest Behavior. Elove Gate); } The JavaScript looks like this: $. Ajax ({url: '/ admin / update /', data: {item: edited roll, item 2: $ ("#deletelist"). Sorted ('toArray')}, success: function (data) {window.location .href = data;}}); If the URL looks like "/ controller / action", then it is not sure how to handle any object with a view "Itemprop =" text "> Usu...

Python: Deleting files of a certain age -

Then at this time I'm trying to delete the files listed in the 1 minute old directory, I will change that value one The time I have the script is working. In the code below, there is an error: AttributeError: 'str' object has no attribute in 'mtime' import time import OS Oslistdir (folder ) #from path import path for a file in seven_days_ago = time.time () - 60 folder = '/ home / rv / desktop / test': if int (somefile.mtime) & lt; Seven_days_ago: somefile.remove () import time import OS one_minute_ago = time For somefile in Oslistdir ('.') .time () - 60 folder = '/ home / rv / desktop / test' os.chdir (folder): st = os.stat (somefile) mtime = st.st_mtime if meet & Lt; One_mint_go: print ('% s'% somefile delete) # os.unlink (somefile) # unconnected only if you are sure

php - Why some variables are parameters and others aren't? -

यह होने के कारण क्या हो सकता है: सार्वजनिक फ़ंक्शन __construct ($ host, $ पोर्ट, $ टाइमआउट = 5) {$ errnum = 0; $ Errstr = ''; इसके बजाय: सार्वजनिक फ़ंक्शन __ रचना ($ मेजबान, $ पोर्ट, $ ग़ैरम = 0, $ errstr = '', $ timeout = 5 ) { ? क्यों कुछ पैरामीटर और अन्य नहीं हैं? बहुत बहुत धन्यवाद, एमईएम एक फ़ंक्शन परिभाषा फ़ंक्शन के बीच एक अनुबंध को परिभाषित करता है और कोड जो इसे कहते हैं एक चर एक पैरामीटर होना चाहिए, अगर कॉलर को इसका मान निर्दिष्ट करना चाहिए। अन्यथा यदि कोई चर केवल फ़ंक्शन द्वारा आंतरिक रूप से उपयोग किया जाता है, तो उसे पैरामीटर के रूप में निर्दिष्ट करने की कोई आवश्यकता नहीं है।

workflow foundation - Tools to make TFS 2010 Build customization easy -

Is there a visual tool for the TFS2010 build engine? I do not have to know workflow at the moment. It would be nice to pick up just one tool and build my custom instead of digging into the workflow, then using the workflow in TFS 2010 mode. you want to see the product Hope this will be helpful. It helps.

Simple CSS Hover Problem? -

I do not understand that due to my anchor, there is no reason for the divisible box given below yellow color . Here's my code: & lt ;? XML version = "1.0" encoding = "ISO-885 9-1"? & Gt; & Lt ;! DOCTYPE HTML Public "- // W3C // DTD XHTML 1.0 Transitional // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> & Lt; Html xmlns = "http://www.w3.org/1999/xhtml" & gt; & Lt; Top & gt; & Lt; Style type = "text / css" & gt; A {background color: blue; Width: 400px; Height: 200px;} # side {width: 500 px; Height: 500px; Background color: black; } A: Hover # Hyde {background-color: yellow; } & Lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; A & gt; Hover & lt; / A & gt; & Lt; Div id = "hide" & gt; Yellow & lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt; I am very tired now, so I...

objective c - Did OS4 change how the iPhone reads code? -

3.2 The code I wrote for displays differently in OS4. There is still no error, just new bugs So I am starting imaging, IBAction is one of the 86 cases of production of random and random number resulting in animation and image production. The only difference between the code between 0 and 86 is that the final imageView.image (I did not want to do the last 86 copies of the same code to be wired through the bus) does not matter what the matter is. Animation Image View. The bug is that the first time I run the operation, imageView.animationImages shows my animation, then instead of going to the code and going to the image, view.image = [UIImage imageNamed: @ "image36.png"], it just shows Whatever I have set in the interface builder is the actual image view background. And sometimes it runs an image view for animation and another image for a case. any idea? - (IBAction) randomize {int number = arc4random ()% 86; Switch (number) {case 0: imageView.animationImages = [NSArra...

encoding - C++ what is worse abstracting away or converting? -

I doubt: Or I remove my wire-type and type local string or I use something like ICU and convert when needed for local type. I would like to give you the following example: enum stringing {ICU_STRING, STD_STRING, MSCORLIB_STRING, nestring, ... / * you get the picture; Template & lt; Class E & gt; Square_mistress {}; The template's & lt; & Gt; Class _ MyStstring & lt; ICU_STRING & gt; {}; The template's & lt; & Gt; Class _ MyStstring & lt; NSSTRING & gt; {}; #if Defined (__ ICU_INSTALLED__) typedef _MyString & lt; ICU_STRING & gt; MyString; #Aliffer defined (__ DOT_NET__) typedIf_mustrying & lt; MSCORLIB_STRING & gt; MyString; / * ... * / #endif Or do I use the ICU implementation in my code and convert the UnicodeString to characterencoding of that runtime. Thank you, Filip Post-text "itemprop =" text "> Why is the string size an issue? Either you need Unicode (or at least some AS...

Difference between for(;;) and while (true) in C#? -

Syntactically I see that they have reached indefinitely until a break, but are they the same thing Compiled for? Is it a little faster because there is no condition to check it? Apart from code readability, is there any difference? Looking at this input: Private static zero forLoop ( ) {Int n = 0; For (;;) {console} WrightLine (n ++); }} Private static zero whileLoop () {int n = 0; While (true) {Console.WriteLine (n ++); }} ... You get this output: .method private hidebysig static zero forLoop () cil managed {// code size 14 (0xe) .MaxStack 3 .Local Init ([0] int32 N) IL_0000: ldc.i4.0 IL_0001: stloc.0 IL_0002: ldloc.0 IL_0003: dup IL_0004: ldc.i4.1 IL_0005: Add IL_0006: Stloc.0 IL_0007: Call zero [MScorlib] system. Console :: LinLine (int32) IL_000c: br.s IL_0002} // End method of program: ForLoop .method Private hidebysig static zero while whileLoop () cil managed {// code size 14 (0xe) .MaxStack 3.Local Init ([0] int 32 N) IL_0000: ldc.i4.0 IL_0001: stloc.0 IL_0002...

Bing Maps Silverlight Extended Modes API -

I have to make this API a lot faster I went to Microsoft Connect but some day Not too wasted, but no suitable answer was found. Can you please upload it somewhere else and add a link here? Omier I have got the solution and it's on the Microsoft Connect website.

interpreter - How to execute C++ code without compiling it? -

I used the C + + open source code to pass some code in an application created with C ++ Which is a TCL interpreter. So I can create a file, put some XML data in it and some tags have some TCL codes. Finally, it is possible to configure the file some configuration and execute the TCL script snippet with the XML file in the appropriate places. To not use C ++ and TCL, I ask the following: Is there an open-source C ++ code that can execute a C ++ code without compiling it? In other words, there is a C + + interpreter. What is CINT? CINT is an interpreter for C and C ++ codes. It is useful for situations where rapid development is more important than execution time. Compiling and linking cycles by using an interpreter has made dramatically easier development. CINT also makes C / C ++ programming pleasant for part-time programmers. CINT has been written in C ++, which is less than 400,000 lines. It is used by many companies by making the default interpreter for banking, in...

objective c - NSView -scaleUnitSquareToSize leaves view blank until it's resized despite -setNeedsDisplay message -

I have used this guide: scaled view to implement scaling in a particular view The problem is the problem is that when I call-scale unitSquareToSize, then call -setNeedsDisplay: Yes (I also tried -SetNeedsDisplay: Yes on Scroll View), the view (not scrolling bar, just everything inside) becomes empty If I resize the window containing the view, then its contents Is seen again and displayed properly. But as soon as I rescale and redraw, it's empty out again. Any ideas about how to force the scene to refresh properly? In addition, sorry to not provide the source code, but the code is business secrets, so ... Looks like clip views are not being updated to handle the scale of your content view. Try to log on to the document view, clip view and frame and border of the content view.

Sharepoint and Excel Services - Restrict Access by Tab -

I was wondering if there should be an Excel workbook on SP1 and it should be done so that different people can be enabled Edit different tabs in the workbook - but there are no other tabs? I am very new to Sharepoint and am trying to get up to speed, but in my quest I have not found any way to do it yet. I'm not sure that this is also possible. This will help our work to keep a spreadsheet, where different people edit different tabs and we have a central administrator on the whole document. Any help is appreciated - Thanks and a great day! I think you use Excel Web Access Web Part in SharePoint to provide access to the workbook. First of all, the purpose of the Excel Web Access Web Part is to provide a reading-only view of the spreadsheet. Users can edit data using the "Open in Excel" button, which will surely provide access to all tabs (worksheets), there is no way to set different access groups for each worksheet tab in Excel, And SharePoint is simply publi...

C# Algorithm to determine grouping of people based on a value -

I am trying to write an algorithm that creates groups of people based on their 'scores'. A person has two parameters, one name and one digit. (The range of scores is between -10 and 10 but this is not really relevant) I am looking to create a group with many people (if possible, depending on the number of people) where the members of the group are average For example: Group 1 (Avg Score = 2) - John Doe, Score 2 - Jane Doe, Score 7 - Jack Black, Score-3 Group 2 ( Average score = 2) - Bobby Flay, score 4 - carry page, score 3 - linus talvalall, score 5 It smells like the classical variation, which is NP-hard though some of the histories are present. You can loot on the Wikipedia page. Maybe your greedy approach will work in your case. By giving you the right group to give your group the place to a particular person, they were ordered by the score.

powershell - Best approach to build reusable C# data integration assemblies -

How have you addressed issues while creating a reusable suite of data integration assemblies? We are using a Microsoft Store SQL Server and C # we are consolidating our DB integration code into many C # assemblies. In this we are killing many common problems We like the source / destination of SSIS and GUI is the flexibility, but this environment only (easily) cut / paste reuse Supports - unless you know differently. We can create (console) applications that use standard command line parameters and / or config files. In this way we can bat normal tasks, but we do not have a GUI. If we code the normal GUI to work with our standard parameters, then we again create the area of ​​SSIS. We can use our C # assemblies through an electric shell cover. However, PowerShell is great for developers / administrators but not the user and we are hearing that it is slower than the SSIN equivalent, and we press the GUI issue again. Our typical integration task will take informat...

minimize - C# close to tray (like msn messenger) -

I have a C # .net app so I made a notice that sits in the tray. What I want to do, when the user hits the "x" button on the form, I want to pass it to the tray. They should be able to exclude the program using the context menu in the tray icon. So what I did, when the form closes, I check whether the form is visible or not. If it is visible, then I set it in invisible and set the Show Interscape to false (to reduce the routing) if the form is already invisible, then maybe they are closing it with the tray, so I In case, exit from the program. However, I have the problem that if the window is appearing, but they click on the context menu of the tray icon and press exit, I need to exit the program and at least not less. How can I solve this problem? Try this: bool _ shutting down menu; Zero NOTIFYICON_EXIT_MENU_HANDLER (Object Sender, EventArgs e) {_closingFromMenu = true; Close (); } // Form Off Handler FormClosing + = (a, b) = & gt; {If (_closingFromMenu...

wpf - How to change the header background of a listview? -

Image
I want to change the gray default background of a listview header but I do not know how to do it please help ! To clarify my needs, I put a screenshot here. View this link

database - SQL Script - Check if a IP has been black listed -

I am studying SQL, and I would like your advice, to see if this code is written correctly or The better way is to do this. To allow spitting in an IP address 4 octet An SPROC which allows to check whether the IP Black is listed or Please do not tell me! ! Thanks - Create Black Listed Table Tables UtlBlacklistedIPs (TINYINT octet1, TINYINT octet2, TINYINT octet3, TINYINT octet4); 1 SPRC - Convert an IP Address in 4 octets for DB storage. Process DB.StoreIPOctatsAvoice as an APIP CHAR (15) Start NOCOUNT set on UtlBlacklistedIPs (octet1, octet2 (Octet3, octet4 (@ AP, 1)) END 2 SPROC - SPROC check if an IP address has been blacklisted Create the process dbo.sproc SetIp @ip CHAR (15) as set on NOCOUNT declared @ octet1 tinyint, @ octet2 tinyint, @ octet3 tinyint, @ octet4 tinyint; SET @ octet1 = CONVERT (Tinton, PARSENAME (@ AP, 4)); SET @ octet2 = CONVERT (Tinent, PARSENAME (@ AP, 3)); SET @ octet3 = CONVERT (TININT, PARSENAME (@, 2)); SET @ octet4 = CONVERT (TININT, P...

c# - Name a class that puts action in dispatcher queue if its not already there -

I have written a simple class that works with a UIElement and works to invoke. Whenever action is taken, this dispatcher takes action in the queue, if it is not already, I use it to reduce the number of calls. class NoNameClass {// has its element and verb in its ctor: zero noamath () {if (! InQueue) {inQueue = true; Element.Dispatcher.BeginInvoke (() => {inQueue = false; ACTION}}}}} bool inQueue;} Would you please enter a name and method for this class I can define "Dispatcher Action" as the name of the class and the method Which I will call "queue". It is possible that you can add the adjective "deferred" or "delay" names, because this execution is carried out till the dispatcher, so it is clear. That Action should not be executed immediately. Update: For those cases whose work is abandoned, when they are already in queue, I try the method "TryQueue "I will keep the name of" and return a boolean. "If the w...

java - When should we close the EntityManagerFactory? -

I am very new at ORM. I am just starting to read books and documents about the Java Integration API with being in hibernation. I was just wondering, Is EntityManagerFactory close to closing jdbc database connection? Should we stop it every time we release / update / delete or stop? If we do not turn it off, will the database connection be opened? I was just wondering, closed EntityManagerFactory jdbc database connection Is it like closing? This is not perfect, but close to EntityManagerFactory will be close to eliminating a whole connection pool. If you want to consider a JDBC connection, then you should think of EntityManager . Should we stop it every time I release / update / delete or stop it? Creating a EntityManagerFactory is a very expensive operation and should be done once for the lifetime of the application (you close the end of the application In). Therefore, no, you should not turn it off for every continuation / update / removal operation. En...

vba - how to check if table is exists or not in ms access for vb macros? -

संभव डुप्लिकेट: मैं vba मैक्रोज़ के लिए नया हूँ यदि यह मौजूद है या नहीं, तो तालिका को देखने के लिए कोई भी विचार है? मैं पिछले पोस्ट और विचार के साथ जांच करता हूं, लेकिन इसके लिए स्पष्ट समाधान नहीं मिला। कृपया अपना विचार प्रदान करें। अग्रिम दोस्तों में धन्यवाद। माइक्रोसॉफ्ट एक्सेस 12.0 ऑब्जेक्ट लाइब्रेरी हमें यह जांचने की अनुमति देता है कि क्या कोई तालिका DCount का उपयोग करते हुए मौजूद है। सार्वजनिक कार्य ifTableExists (tblName के रूप में स्ट्रिंग) बूलियन के रूप में यदि DCount ("[Name]", "MSISObjects" "[नाम] = '" & amp; tblName & amp; "'") = 1 तब ifTableExists = True End यदि अंतिम फ़ंक्शन

android - Nested TabActivities and Intent based Communication -

Event is triggered in tobattivity. Both activities have been started at the beginning of the apple. The problem occurs when I use intents to access the currentAbbedTab ActiveView functionality from TopTabActivity, it starts a new instance of EmbeddedTab activity. I do not want to do this behavior I "post-text" itemprop = "text"> Try using broadcasts and receivers: In fact, TopTab will broadcast an event on your The embedded tab is the essence of this fact.

C# - Serializing and Deserializing Linq Tables whilst maintaining Relationships -

I want to test my code! A great goal I'm sure is you agree. I need to fool the datacontactors for my regression tests, by running a test, it will be verified that for any code change, we produce the same input to the same input. / P> I'm mimicking my data references. It's awesome and simple, I recommend it, I can take it if it's much lighter but it's another story. To get the data for me, I want to serialize a small amount of data stored in an MSSQL DB. To allow linux-to-SQL classes to be serialized, I've instructed the serialization mode property to set unidirectional set as the set. This allows me to serialize a line on the XML. When I want to serial a table, I must call ToList () and drag it to the first memory. This is because Linq.Data.Table is not automatically serialized . So now I have a file for each table, then I can decrypt XML, create Linq tables with files and lists, then we make a representative and use it for imitating the d...

json - getJSON problem (jquery) -

I'm trying to submit geternames and passwords for getJSON to serve the webservice and "Hello" This is my code: $ GetJSON (address + "? Format = json & jsoncallback =?", {Customer e-mail: email, password: password}, ​​function () {warning ("hello");}); If the http header submits 200 messages, it should be OK, but does not enter the function, do anyone know why? Are there pages on the same server? Most likely you are violating it. You can use the parameter named callback instead of jsoncallback , blockquote> JSONP If the string in the URL is "callback =?" In the URL, the request is considered as JSONP instead. See the discussion of jsonp data type for more information. So to work in your case, you can get the $ Try Ajax () to: $ Ajax ({url: address + "? Format = json", data: {customer e-mail: email, password: password}, ​​data type: "jsonp", jsonp: "jsoncallback", success: ...

.net - Any tips on debugging focus issues in WPF? -

Specifically, I have a button that opens a non-modal hair window in the main window something in the child's window Opens away as if it opens up The entire general approach is to comment on some parts of the code until the problem is resolved. I am looking for ways to speedily. I am using to do this now. For the beginning, the snop shows the current concentrated element in the status bar and the current focusoscope. You can get it to show all GotFocus and LostFocus events: Run your app. Run the snoop. Select your app in the dropdown. Click on the binocular ("snoop") button. On the right panel, click on the Events tab. Click to bring down the dropdown. Scroll down to the keyboard section and check the GotokiBboard focus, Lost Focus Board, and optionally preview XXX Events. You can track Focus Manager events in the same way, what you need to do now to manipulate the focus and see the snoop window. By the way.

Upload large files on the web server on android -

I want to upload a file to a web server in my Android app. Currently I'm able to upload files around 5 MB from device. But more than this gives an exception to the exception and this also makes the app very unstable. I am using a method that we can upload to the large size of the app in the background It's possible that you probably appreciate any tutorials / code. Want to check the post. The main point is that you have to set up for chunk for example. connection.setChunkedStreamingMode (chunky);

php - Multiple Upload and Image names -

I have a multiple upload form that changes the name of images after uploading: ($ I = 0; $ i & lt; counts ($ _ files ['picture'] ['name']); $ i ++) {$ ext = end (explosion (".", $ _FILES ['images'] ['name'] [$ i])); $ Name = rand (1111111,9999999) '.' $ Ext. } With print_r ($ name) output is a string image1.jpgimage2.jpgimage3.jpg . Why is the output string? How can I give an array? Thanks in advance $ name [] = rand (1111111,9999999). '.' . $ Ext; will bonus: $ ext = pathinfo ($ _ files ['picture'] ['name'] [$ I], Pathinfo_expression);

Create view in Drupal with a taxonomy argument that displays values for hierarchies -

I'm trying to get my ideas to work properly using a classification argument. My classification is a hierarchy So if I supply the main categorization term (which has different sub-rules), then I want it to display the result of all the sub-rules along with the main word. However, at the moment it only provides results for the main period and does not include its sub-rules. Therefore, I have a word: "project management", then the sub-rule: "next step", "fundraising", etc. When I show the scene with the "project management" argument, it does not list any items matching with the words "next step" or "collecting money". It only shows the "Next step" item when the argument is clearly given. Ben classification logic You need to use Classification: Word id (with depth) . When you add that argument and look at your personal configuration window, you should see a small selection drop-down titled "Depth...

random - Python - randomly partition a list into n nearly equal parts -

मैंने प्रश्न के उत्तर पढ़ा है। यह है: def विभाजन (lst, n): विभाजन = लेन (lst) / फ्लोट (एन) वापसी [lst [int (दौर (विभाजन * i)): int (दौर (विभाजन * (i + 1))) ] मैं एक्सरेन्ज (एन)] में मैं सोच रहा हूँ, कैसे इन समाधानों को संशोधित करने के लिए यादृच्छिक रूप से वृद्धिशील असाइनमेंट के विरोध में एक विभाजन के लिए आइटम असाइन करने के लिए। धन्यवाद, एस: -) इसे विभाजित करने से पहले सूची पर कॉल करें।

assembly resolution - .NET Fusion logger: What is the difference between Default and Native Images? -

.नेट फ्यूजन लॉगर (FUSLOGVW.exe) में दो विकल्प क्या करते हैं? लॉग श्रेणियां + डिफ़ॉल्ट + मूल छवियां और मिश्रित-मोड असेंबली समस्या का निदान करने के लिए मैं एक या एक का उपयोग कैसे कर सकता हूं? स्थानीय छवियाँ ngen.exe द्वारा बनाई गई फ़ाइलें हैं। इसमें विधानसभा के लिए पूर्व संकलित मशीन कोड शामिल है, ताकि जेआईटी कंपाइलर की आवश्यकता न हो। सभी .NET ढांचा असेंबली ngen-ed हैं उनके पास .ni.dll फ़ाइल नाम एक्सटेंशन है। यदि आप किसी असेंबली समाधान की समस्या का निवारण करने की कोशिश कर रहे हैं, तो आप उन में आमतौर पर रूचि नहीं रखते हैं। लेकिन अगर आप "डिफ़ॉल्ट" के बजाय "मूल छवियां" चुनते हैं तो आप उसे लोड कर सकते हैं।

Is it possible to retrieve a list of all addresses within a certain region in Google Maps API? -

Say I want to retrieve a list of all the addresses of Rome I use Google Map API , Or any other web service? I do not want the actual location of the address, just a list of address names. You can not do this with Google Maps API. You can do (both on server side or on customer side), but with reverse geocoding, you pass a coordinate and you can only return the point of that point to the Google Map API. Does not return all address of the area.

asp.net mvc 2 - Where to set the ModelMetadataprovider with DI when using MVC Turbine? -

To use your own ModelMetadataProvider, you usually set it in global.asax. The MVC turbine I am using and I also need dependencies in my model matadata provider. Something like this: ModelMetadataProviders.Current = New MyModelMetadataProvider (ISomeDependency); How is best done with the MVC turbine? The best place to apply these pieces is to override the startup method within your web application ( Types of Turbine Applications) We are currently working on making these MVC2 features easier in v2.2, by presenting the Model Model Data Blade, which will allow you to model all the models for the modelmataDataPrometer Will make in the current property. So you have to do that as the MyModelMetadataProvider is registered with the container container. Registrar & lt; ModelMetadataProvider, MyModelMetadataProvider & gt; () Then the MVC turbine will have to rest for you to get an idea about what I'm talking about, checkout the way ModelValidatorBlade is reg...

windows - How can I programmatically remove impersonation in ASP.Net? -

I have the web. In config, is there any way of "non-purpose" for programming? I need to not impersonate only one or two small places ... is this possible? Old question, I know, but what would you do it to do? (System.Security.Principal.WindowsImersonationContext wic = System.Security.Principal.WindowsIdentity.Impersonate (IntPtr .not)) {// code here}

teradata - SQL: case-when statement with "exists" -

I want to be able to set up this field by adding "value to this record, value in some other table I got the bet? "I thought I would try the case-when with exists , but teradata (my DBMS) does not like it. Any recommendations? select foo, (in case when it exists (somedb x to x.bar> as MyFlag from mydb then '1' and '0' end) It seems that you are unavailable for END Case statement? select foo, (when present (select x.foo from Embedded X where x.bar> 0) then '1' and '0' END as MYFLAG from mydb

php - how to disable aptana internal browser -

php file and when I run it, it runs in aptana in the internal web browser, whereas when I run blabla.html I run through Firefox, I just want to run the PHP file just like html, and disable that annoying internal browser. Also would like to know what is the difference between aptana http://127.0.0.1: 8000 / bbala.fp and (xampp) http: //localhost/blabla.php Thanks in advance I do not think this is a programming question that includes any code in changing user settings. Not anyway: - Look around. And the difference between your two webserver is the port number: 8000 the name "localhost" reference 127.0.0.1 also. For any configuration difference, you should consult phpinfo () on each

Create editable shapes in Flex/Flash AS3? -

I finally need to make room designers in Flex (Flash Builder 4). The part I'm having trouble with is outlining the room and allows the user to add / delete / move to edit the room size. Let me see this application for this: I know how to create a normal rack, but not with the editable points, at least how to add a point Can someone point me in the right direction, where the user clicks? I think the important thing here is POINTS instead of RECTANGLES, then to connect these points To add these points, edit the user to display any arbitrary size. To record the initial state of all four points, then update the user input, update these points, and your line drawing and how you connect them.

iphone - Drawing a bezier from multiple points -

I have 50 sets in x with a set with y. I have to attract all the points, or in other words, the sly Bezier who passes through Bezier, which will be the best fit points. How can I do this? Thanks I am going through a similar problem in 3D. This is a bit easier in 2D because the lines are not always related to parallel. First of all, reading on quadratic beijier loans represent each curve with three digits, the line will not cross the middle point. Thus, your middle point can not be one of those points that you need to fit Trying, or it will not go through it. Instead, the beginning and end point of your quadratic beak curve should be two consecutive digits. If you want to pass it, what will be your middle point? One way to solve it (never tried it yourself, it may not look right, but I am thinking over the top of my head) Calculating tangents is your -1th data Point the point to your 0th data point, and find the difference between that point of data and the second data ...

ruby - jruby: java class accepts arguments in IRB but returns error when called from a class -

मैं एक वर्ग का उपयोग कर रहा हूं जो overridden methods स्वीकार करता है अर्थात वैकल्पिक तर्क हस्ताक्षर (यह निश्चित नहीं है कि यदि इस मामले में मामला है, लेकिन हो सकता है) जब मैं इसे आईआरबी से कहता हूं यह अपेक्षा के अनुरूप काम करता है, उदाहरण के लिए, यह तर्कों को स्वीकार करता है (फ़िल्टरिंग नामस्थान और पासवर्ड [फ़िल्टर किए गए] जहां गुप्त सामान गुप्त रखने की आवश्यकता होती है और मेरी कंपनी खुश है) jruby-1.5.0 & gt; 'जावा' = & gt; सच jruby-1.5.0 & gt; Dir.glob ( '। Lib / जावा / * जार') प्रत्येक {|। जार | जार} = & gt; ["Lib / java / [filtered] .jar", "lib / java / [filtered] .jar", "lib / java / [फ़िल्टर] .jar"] jruby-1.5.0 & gt; आयात करें "[फ़िल्टर किया गया] .His351n1" = & gt; जावा :: [फ़िल्टर्ड] :: His351n1 jruby-1.5.0 & gt; ब्रोकर = [फ़िल्टर्ड]। ब्रोकर.न्यू ('[फ़िल्टर्ड]', '[फ़िल्टर्ड]') = & gt; # & LT; जावा :: [फ़िल्टर्ड] :: ब्रोकर: 0x4c4936f3 & gt; Jruby-1.5.0 ...

wcf security - WCF Client Impersonation -

Does someone point me through a [relatively] easy walking how a ASP.net hosted WCF 4.0 To properly configure the service to impersonate collar credentials for certain methods of service, but allow anonymous access to other methods? I am reading a lot about this on MSDN, but the more I read, the more confusion I might get that I am just a fool, but it seems that it is very difficult Is: - ( I have seen posts on SE, but there is a WCF guidance document on any sample or tutorial ending on End.CodePlex, but this seems foolishly old, and 2008 Not updated since Any help here will be highly appreciated. This can be done through the property [ServiceContract] Interface ISEActive Impressions Example ([Operation Contract] Zero are doing this operation (); [OperationContract] This DOTUCI installation from zero ;} // Implementation class selectively print example Example: [OperationBehavior (Impersonation = Impersonation option. Public) This user's reason () {// ...} [Operat...

c - Can I call a "function-like macro" in a header file from a CUDA __global__ function? -

यह मेरी शीर्ष लेख फ़ाइल aes_locl.h का हिस्सा है: । । # परिभाषित SWAP (x) (_lrotl (x, 8) & amp; 0x00ff00ff | _lrotr (x, 8) & amp; 0xff00ff00) # परिभाषित GETU32 (पी) स्वैप (* ((u32 *) (पी))) # परिभाषित PUTU32 ( सीटी, सीटी) {* ((u32 *) (सीटी)) = स्वैप ((सेंट)); } । अब .cu फ़ाइल से मैंने एक __ ग्लोबल __ फ़ंक्शन घोषित किया है और इस तरह हैडर फाइल भी शामिल है: #include "aes_locl.h" ..... __global__ शून्य cudaEncryptKern (u32 * _Te0, u32 * _Te1, u32 * _Te2, u32 * _Te3, अहस्ताक्षरित चार * में, u32 * rdk, अहस्ताक्षरित लंबे * लंबाई) {u32 * आरके = आरडीके; U32 s0, s1, s2, s3, t0, t1, t2, t3; S0 = GETU32 (में + थ्रेडआईडीएक्स। X * (i)) ^ आरके [0]; } यह मुझे निम्न त्रुटि संदेश की ओर ले जाता है: त्रुटि: एक __ डिवाइस __ / __ वैश्विक ग्लोबल_ फ़ंक्शन से होस्ट फ़ंक्शन को कॉल करने की अनुमति केवल डिवाइस में है इम्यूलेशन मोड मेरे पास नमूना कोड है जहां प्रोग्रामर मैक्रो को इस तरह ठीक कहता है। क्या मैं इसे इस तरह कह सकता हूँ, या यह बिल्कुल संभव नहीं है? अगर ऐसा नही...

sharepoint - What is the correct way to bind taskid property inside a replicator activity? -

I want to bind tasked to work Task and oncoscocking activity to run in parallel mode inside my replicator activity Is configured. I've composed it on the workflow field I created but there is some concatenation problem because I have composed another parallel block of code in the same area. What is the correct way to bind the working assets within a replication activity? To go to the CreateTask property. Click on TaskItemId and click on the bind to bind it with a new property In this property setter, the value will give you the work id. This property setter is said to be created every time a new task is created. If you want edit the status of the job here and send an email

discovery - How to detect the NAT type without using STUN? -

I would like to detect nat type behind a network interface without using an external public server, as it did in STUN (Hence, without using STUN clients). I am interested in NAT type, as defined in them, section 5 '5 NAT variations' The bad news is that you can not (I'm assuming that you do not have NAT Telephone network of all network administrators who plan to deal with you) To find the type of a NAT, you must have a tool ping hole on the van behind the van.

java - Explaining Interfaces to Students -

For some years I was a teaching assistant to introduce the programming module - Java for the first year graduation Most of it went well and we managed to get students very well-object-oriented programming, but one thing that rarely was seen in the interfaces was that the students. Whatever explanations we have proved to be useful to be useful for learning or have turned away from their status as beginners. The response we received was translated as "I ... see," "I can not understand and these are not useful". Is there a way to teach students successfully about any interface? I am not a teacher assistant, but it is always naked on me. If you are trying to convince the beginner, I will be with the idea that the interface code For example, we may be going to paint some objects: public class painter { Private list & lieutenant; Pentable & gt; PaintableObjects; Public Painter () {Paintable Object = New Arrestist & lt; Pentable & gt; (); ...

visual studio 2010 - RDL client-side (local) reporting on .NET 4.0? -

I just stumbled upon the collision upgrade or die for the VS-2010 "RDL Report Designer". Before I completely destroy the good monitor, I decided to take a deep breath and calmly ask if someone can provide me with real information about what RDL is doing with client-side reporting. I have seen that it can not be done with RDL 2008. Is it true, and if so, is it a deliberate attempt to keep its so called partners in the ground by Microsoft, or is it less inaccurate? "post-text" itemprop = "text"> There are some good advantages over the old one (tablics, rich text) of the new report viewer, the designer is not bad, but a big It is a bug and MS does not seem able to fix it: It is not possible to navigate child objects within the expression. If you use commercial objects then you probably wait to upgrade Otherwise you will find yourself Are casing write code or raise with unnecessary code to your business objects. Details of the problem can be found...

How can you tell what method a constraint was created with in SQL Server 2008? -

एक बाधा बनाने के दो तरीके हैं, विधि ए: वैकल्पिक तालिका डीबो। & Lt; tablename & gt; जोड़ें अनुबंध & lt; नामकरण कन्वेंशन कंसट्रैक्ट & gt; अद्वितीय अज्ञात (& lt; कॉलमनाम & gt; विधि बी: अद्वितीय अनौपचारिक इंडेक्स & lt; namingconventionconstraint & gt; ON dbo। & Lt ; Tablename & gt; (& lt; columnname & gt;) पर [प्राथमिक] हालांकि, ऐसा लगता है कि इन बाधाओं को एक विधि का उपयोग करके छोड़ दिया जाना चाहिए जो कि कैसे बनाए गए थे (ड्रॉप बाधा बनाम ड्रॉप इंडेक्स)। क्या यह निर्धारित करने का कोई तरीका है कि किस पद्धति को एक विधि की कोशिश करने और देखने में विफल रहने के अलावा अन्य बनाया गया था? मुझे पता है कि आपके पास SQL ​​सर्वर आपके लिए एक ड्रॉप स्क्रिप्ट बना सकता है, लेकिन मैं कुछ की एक क्वेरी की तलाश कर रहा हूं एक अद्वितीय बाधा एक अद्वितीय सूचकांक में दिखाई देगा नहीं sys.objects में प्रकट होता है दोनों में दिखाई देता है यही कारण है कि आपके पास कई सारणी के लिए एक ही सूचकांक नाम हो सकता है, लेकिन एक टेबल स्तर अद्वितीय ...

Using xCode in a .net application -

I have a Mac application (written with xcode) I have to write a pure application using this code . What is the best practice in this case? If this is in objective-c, then you should probably try to work with it, not .net If you absolutely NET is required. Use the GNU Objective-cum-compiler to create .lib files as much as possible, and then I think that the GUI has to be rewritten in .net. Wrap the .lib in a C ++ / CLI assembly with managed interfaces.

java - Are there any test SMTP servers that can simulate error responses? -

I have a set of Java, email related unit testing, which is currently WISER as a test SMTP server Are using It works very well for basic email testing (send an email, check to make sure that it has been received, etc.), but I have the argument that I failed to retry the email from the SMTP server Returns based on the returned error. Does anyone know if there is any testing SMTP server that supports rigging to answer them in a given way? Preferably, a pure Java server that can be adopted by unit tests, would be best, but any stand-alone server that fits the bill, it will work. Thank you. Kohusuke Kawaguchi wrote a javaMail provider for unit tests, and I know that this is a mistake Position supports simulation. You can see it here: Error simulation is very simple, they say, The mailbox can be marked as an 'error' program, which Causes the failure to send / receive to all. This can be used to test the application's error management behavior.

.net - Sending Automatic E-mails -

I want to send an automated e-mail based on date. If the current date table is more than 5 days from the current date field, then I need to send an e-mail to the fixed person. I am using VS.NET2003 / VB.NET / ASP.NET / SQL Sever 2000. Can you guys help me achieve this (if possible with code?) Thanks. @ vik18, I suggest that let's see you basically, you set it in the beginning of the app And have to establish a job which examines certain circumstances in every X time. If there are items, you trigger something like an action, for example, sending an email. Regards.

shell - Debugging monit -

I'm getting debugging monit to cause a big pain. There is nothing originally in the silent environment of monit (no path or other environment variable). Also, there is no log file that I can get. The problem is, if the start or stop command in the monit script fails, it is difficult to understand what is wrong with it. At times it is not easy to run commands only on shell because shell environment is different from monit shell environment. Are there some techniques that people use to debug monit configurations? For example, I would be happy to keep the monit open to test my script, or to test a log file to see the wrong file. I had a single problem. Monit's verbose helps to use the command line option a bit, but I was the best way to create the environment as much as possible for the monit environment and the start / stop program was run from there. #munit superuser $ sudo su # the -i goes as an option to ignore the inherited environment # This is the path tha...

Integration testing with random outcomes -

I want to write some integration tests to create a card game. However, it is based on a reshuffle, the only way I can expect that the result is swirling to achieve the desired result, yet I feel uncomfortable under any kind of pressure in the integration test. Is there any alternative strategies? What is the purpose of the examination? In the integration test, flirting IMO is fine, all tests should be examined under the testing of components. Another option would allow shuffle to take the shuffle.

PHP SESSIONS Question -

When a user logs in then I should report it there $ _ session ['user_id'] user id or not? For example, just like the code below. mysqli_real_escape_string ($ mysqli, htmlentities (strip_tags ($ _ session ['user_id']))); Session data is stored server-side, so it must be approved before being added to it. $ _ session in the first place.

asp.net - When assigning values to EntityRef ID fields in Linq to Sql, can EntityRef still delay load? -

I've got an ASP.NET MVC app that uses SQL for data access to SQL. Say I have two objects: An order object that has a foreign key for customer object by a custom ID, then in my order class, you have to look at two properties:. An integer CustomerID field, and an EntityRef member can not be accessed by a customer property Editing or submitting an order, CustomerID will update my MVC application instead of updating the Customer Property directly to the Order class directly field Saves us from having to bring a customer record, and I code binding automatically as long as the submission request is a customer ID entry The Nptti can use the default model to fill. This works fine, however, later in some other part of the code - as a business rule part, some logic will reach the customer property of the order object. For example: if (order.Customer.HasPreviousOrders) then ... Although the CustomerID field is set to, the Customer field is empty, So this business rule throws a...

git - expose the date a commit was pushed to a repository -

I am looking for a way to see the date pushed in a remote repository. Using both GIT logs, you can see both the author's date and the date committed; However, none of these dates tell you that when the developer really got to pursue the change to the main remote repository. At first I thought what I wanted was not just available in git, but then yesterday I came to know that specifying a date range in the log command actually filtered by that day It was an example of a remote repo: Let's assume that I created a patch on July 1, 2010 in my local master branch and made a patch. But now it is July 28 and I finally push to Remote Master Repo Then I get one 'to' ensure that my local origin / master distance master I see the logs for the original / master: git log --format = "format: The results of% H% n authority date logs show that it was authored and committed on July 1, 2010, even though it was still pushed Remote Repo. So I specify a date ra...

actionscript 3 - physics for top-down racing game help - Flash / AS3 -

I am trying to detect collision physics for top-down racing games in Flash / AS3. I am currently using the HitTestPoint method to detect conflicts, but I do not know how to apply a decent physics method to bounce a wall bounce which he hits, does anyone have any ideas Or maybe tell me in the right direction? What you need to do: Can you check the AS version 2 for a bit more detail.

wordpress - Php function limiting the amount of passed in characters -

I have certain characters that I can fit in place, I want to display the category. So I was thinking that in a way I could limit the number of characters which can output this function. I want to limit the output of this function: & lt; Php the_category (',')? & Gt; Output: WordPress, Computers, Blogging Something like this: I'm new to PHP and WordPress, so a little guidance on how to run would be helpful. Repeat the comment and question of Web Destory gives me suggestions: echo substr_replace (the_category (',') ," ... ", 14); I originally suggested, which did not sort out.

sql server 2008 - When Trying to Import Old Visual FoxPro Database into SQL receiving "Cannot find column -1" -

I have a ton of Visual FoxPro DB files that I am trying to import into an empty SQL 2008 Express database. When I go through the SQL Import and Export Wizard, everything seems to communicate properly. When I go to the mapping section, I can see the data in the selected FP table by clicking Preview. When I click on mapping or clicking on next I get: ================================ ================== Column information for source and destination data could not be retrieved. "Eqr_sellers" - & gt; [DBO]. [Eqr_sellers]: - Column 1 can not be found (SQL Server Import and Export Wizard) ============================== ===== Column 1 can not be found (System.Data) ------------------------------ Location of the program: System. Data on Data Column Collection. Gate_item (Inter 32 Index) on Microsoft. Data Transaction Services Control. Metadata loader MetadataOlder, IDB Connection, IconConnection, String [] StrreshScchans, Datasource Infosys DSI) on Microsoft at Microsoft. In...

Using Hibernate to Join to Tables -

I am creating an application where people will be able to post comment or articles, and give this rate to users Whether or not the article was helpful to them or not I currently have two institutions that look like this (non-relevant details are omitted): Article.java @Entity Article @Id Private Ent article_ID @ManyToOne @JoinColumn (name = "user_id") Personal user user; User.java @Entity user @Id Private Int user_id I know that one user "voted" on an article for two reasons or not, want a method, 1. Do not let them know let's vote twice, 2. To suggest other articles which can be helpful. I have experimented with one cascade option in one object in each object item I User_Article (which has only two columns, article_ID and user_id) ), However, when I get a waterfall, I'm getting LazyInitilizationException ? I am looking for Guru to be in any hibernation for guidance on both this implementation and architecture. Try @OneToMany (fe...

sql server 2005 - How to run a trace in oracle which can capture reads, writes, cpu and duration of queries -

In the SQL Server terminology, this is PROFILER what is in the ORACLE vocabulary (What is the title question) ? Or is there a third party tool (FREE) that does a job? Thanks for please You will use in Oracle. There is a lot to go for in a reply to the SO, but the essence is that you "turn on" the SQL Trace session level (usually), resulting in a trace file written on the server as your information. . Use the TKPROF program to convert the trace file to a readable report. To turn on SQL Trace in SQL Plus session: SQL & gt; Set session sql_trace = true; After that everything is logged in the trace file until you release it: SQL & gt; Set session sql_trace = false; You will then need to find the generated .trc file on the server and convert it to a report using TKPROF in some way: OS & gt; ; Tkprof xxxx.trc mytrace.txt You see mytrace.txt with a text editor. There are several options in the tkprof command that are listed in the...

actionscript - Flex 4 cursor (special hit area) -

How do I create a cursor with an image, but the mouse click area should be in the middle of the image In addition to this, if any way it would be great to change the IMG size If you have Flash, you can create a concentrated symbol and export it in an SDF. Then, you have to embed this SWF into Flex with embedded metatags. You can use it in your custom cursor. I'm not sure what happens with changing the shape of you though.

TinyMCE Removes site base url -

im using tinymce wysiwyg editor, and when I enter a link, or an image from a website, So it removes the base URL For example, if I enter: - I will get - somelink.php Any ideas how to solve it? This is something in your tinyMCE.init function Add rows: convert_urls: true, relative_urls: false, remove_script_host: false,

ASP.NET a question about AJAX library. The same code doesn't work on the 2nd machine -

I have the same code that is using jQuery's AJAX method to update the progress bar The problem is , That the code was developed on Visual Studio 2010 Ultimate (the first machine, .NET Framework 4) and is not wokr on the Visual Studio 2008 Team Edition (Machine 2, .NET Framework 3.5). How is this possible? Does not work - I mean the first machine is being updated on the progress bar, but it is updated on the second machine when the server side code ends its work. I have AJAX Extensions 1.0 installed Here is the jQuery code $ (document) .ready (function () {$ ("# progressbar"). Progressbar ({value : 0}); var intervalid; $ ("# & lt;% = this.Button1.ClientID%>"). Click (function () {intervalID = setInterval (update progress, 3000); // every 3 Progress for seconds}}; Function update progress () {$ .ajax ({type: "post", url: "progress bar. Espx / gateprogress", data: "{}", type of content: "App / Jason ; Charset = UTF...

installer Problem in iPhone app -

I developed on audio-based applications when I drag and drop into IUDs in iTunes Application The size is 177 MB. There is a problem with the size. Please help me with this problem. Thanks in advance. The truth. I do not believe the size is the problem (bigger apps are allowed, I have 2Gb believe , Not more than 3G only) Still, have you established a distribution certificate and edited your rights properly? I belive will help you.

iphone - accessoryType in the left side -

Is there a way to set the cell type accessory type ? I use the code: cell. Accessory Type = UITableViewCellAccessoryDetailDisclosureButton; In this case, the Assistant type button is on the right side and I want it to the left. I also tried to create a custom cell when I would like to be in the IB, when I am selected by the minor, it keeps it correctly in itself. No, but you can see imageView.image Code> UIImage . If you reuse Apple's Disclosure Button images, you may be able to include issues that your app accepts so you can make your own disclosure icon.

php - Warning: mysql_real_escape_string()? -

मेरे कोड - $ username = mysql_real_escape_string ($ _ POST ['username']) ; $ Password = mysql_real_escape_string ($ _ POST ['पासवर्ड']); लेकिन यह चेतावनी फेंकता है- चेतावनी: mysql_real_escape_string () [function.mysql-real-escape-string]: उपयोगकर्ता 'ओडीबीसी' @ 'लोकलहोस्ट' के लिए प्रवेश निषेध (पासवर्ड का उपयोग करते हुए: नहीं) सी में: \ xampp \ htdocs \ pics \ confirm_login_credentials.php पंक्ति 3 पर और चेतावनी: mysql_real_escape_string () [function.mysql- असली-एस्केप-स्ट्रिंग]: सर्वर के लिए एक लिंक सी: \ xampp \ htdocs \ pics \ confirm_login_credentials.php पर लाइन 3 में स्थापित नहीं किया जा सकता को वास्तव में इस्तेमाल किए गए वर्ण एन्कोडिंग को भेद करने के लिए डेटाबेस के लिए एक स्थापित लिंक की आवश्यकता है: नोट: ए mysql_real_escape_string () का उपयोग करने से पहले MySQL कनेक्शन की आवश्यकता है अन्यथा स्तर E_WARNING की एक त्रुटि उत्पन्न होती है, और FALSE वापस आ जाती है अगर link_identifier को परिभाषित नहीं किया गया है, तो पि...

c# - String.Format vs ToString and using InvariantCulture -

I'm a little confused here. What should I do Console.WriteLine ((Val / 1085) .toString ("n"); VS Console.WriteLine (String.Format ("{0: N}", (Val / 1085))); How do I fit Inviteculture apart from this? In fact, I like a third form: code> console.light line ("{0: N}", val / 1085); Console.WriteLine you can String.Format for you. Console.WriteLine does not allow you to provide culture if you want the same, you have to use the String.Format . As: string format (culture info. Invertorial culture, "{0: N}", 123456789); I do not recommend using it because international users will have trouble reading it. I'm feeling weird as 123,456,789.00 .

ASP.NET MVC2 - Trim of whitespace on all fields in a model? -

I have data in the ASP.NET MVC2 controller / view set-up. Unfortunately, all the data that comes from the scene, finally there is a large amount of white space. I am trying to try TryUpdateModel after saving all form data in DB, after verification, a FormCollection is assigned to a parameter (such as Form to Vell Provider). Is there any automated or easy way to trim all the backward white space from all the objects within the formulation? The simplest I can think: formCollection.AllKeys.Select (K = form formation .set (k, form selection). Trim ()))

Is it possible to add Grails MVC classes at deployment time? -

I'm writing a Grails app that likes 3 parties to increase me in order. Ideally, they can add a jar / war in the webapp directory, which includes new domains, controllers and service classes, new ideas, and other content. Is there an easy way to do this in a gallery? Would it be the simplest to create an initial script which copies new classes etc. into relevant directories and then updates grails.xml and web.xml? You can do this that the plugins in Galle version 2 also include the OSGI plugin

WPF data binding using ADO.NET Entity Framework 4 -

Good morning all, I am ADO.NET EF4 (and probably ORM in general) and I I was hoping someone could help fill the gap in my knowledge. In my example I have a generalized database with two tables: User & amp; Company User // UserId (PK), Company ID (FK), Firstname, Lastname Company // CompanyId (PK), company name I have created an entity data model in my application to match these tables. I now need to display a list of users with their company name in the list of controls. I realize that I can display a list of users : DatabaseEntities db = new DatabaseEntities (); Listbox1.ItemSource = db.Users; The problem here is obviously that it will display CompanyId as a protest against the company name. My question is; What is the best way to get company name? Can I create an archived procedure to return a different record set? Create a new organization with the fields I need? I can think of many ways, but I'm not sure which is the best practice. Any help is ...

GUI with C++ ? or C# and Java the way to go? -

About one course has been done about using OOP in C ++ and we have all program consoles applications written in that course. I have also completed a university course in C programming, so I think I have Solid C programming is the basics and now it is time to take a big step towards the GUI. I have done many googles and every time I read more pages, I get more confused, I came to know that there are many popular options in the past which are WinAPI and MFC. I tried to look into WinAPI but it seems very difficult and requires a lot of time, so I asked the advice of my instructor and he told me that if I want to write a GUI program then I want to learn C + or Java , Which is better designed for lower level programming applications such as C + drivers and so I have discovered the web that C ++ is still awaited Is used in writing and Firefox, Google Chrome, Notepad ++ and many other GUI applications are written in C ++ in contradiction to the advice of my instructor. Apart from this, I ca...

php - Printing to Dot Matrix printers from Web Apps -

I am not familiar with dot matrix printers, but I have a webpacked customer who generates invoices, print checks, etc. . Currently they are printing directly from the server, which means that the printer must be connected to the server or a way to connect the server to a remote printer. As you can imagine, many problems arise from this. My first reaction was to produce a PDF doctor. Send it to the server and send it to the customer so that they can print it, the printer they have access to. But it has been found that many of their clients use dot matrix printers, which do not support the printing of PDFs. My question is, can anyone read dot matrix printers? HTML, ASCII, etc. ... My client says that the only way is that the server must print directly from php which makes me feel weird. Thank you in advance! Many of your customers use dot matrix printers that do not support the printing of PDFs Crap - this is nothing to do with the printer - this is the printer dri...

Ruby passing different attribute arguments to same function -

I have a job model that has many features I want to use graphics to display the sum of some of these features. I am For this, I am using the following code in the JavaScript section of the scene which produces the graph: % job @ dell_jose %% & gt; ['& Lt;% = job.day% & gt;', & lt;% = job.walletime%>], & lt;% end% & gt; Here it returns: ['2010-07-25', 1234], ['2010-07-26', 3456], ['2010-07-27', 1234], That is working fine, however, I do not want to graph the contribution of only "waltime", but many other fragments For: memory, CPU, etc ... so I have to do such things as: & lt;% in job @ dell_jose %% & gt; ['& Lt;% = job.day% & gt;', & lt;% = job.cpu% & gt;], & lt;% end% & gt; and & lt;% in jobs @ day_jose %% & gt; ['& Lt;% = job.day% & gt;', & lt;% = job.memory% & gt;], & lt;% end% & gt; To make other graphs, but...