Posts

Showing posts from March, 2015

c# - Syncing referential integrity tables and enums -

I think this question periodically, so I thought I would ask you about it. Suppose my database table looks like this: Table: Visibility ID value - ----- 0 visible 1 invisible 2 collapsed This is a table to ensure only one table. It is basically an enumen stored in the database for the purpose of ensuring that any visibility values ​​that appear in other tables, Are always valid. At the end of my face, I have some options. I can ask this table and give it a dictionary & lt; String, int & gt; or dictionary & lt; Int, string & gt; I can store in . I can write an ANM manually and only manually edit the value in rare event that there is a change in the table. E.g., Public Enum Visibility {visible, invisible, collapsed} Something else ???? What would you advise and why? Thank you. This kind of fairly trivial stuff for me, I usually go with an enum, I like this with you. I can recognize that I think it is not entirely right ... but in my opin...

Change Mysql, php and apache2 log file formats -

मैं php त्रुटियाँ, सभी mysql प्रश्नों, apache2 त्रुटियों और mod_rewrite डिबगिंग को एक फाइल में भेज रहा हूं, यह कहने की जरूरत नहीं है कि इसमें व्यस्त है । स्वरूप बदल सकते हैं: [22-Jul-2009 23:00:58] पैरामीटर: GRE Array () POST Array () [22- Jul-2009 23:00:58] एसोसिएशनों को ढूंढना 237 प्रश्न का चयन करें `तालिका`। * तालिका से जहां 1 = 1 आदेश दिनांक एएससी 237 प्रश्न का चयन करें` तालिका 2`। * से 'तालिका 2' कहां रैंड () आईडी के आधार पर 237 Quit [Wed Jul 22 23:00:58 2009] [त्रुटि] [क्लाइंट 127.0.0.1] स्क्रिप्ट '/var/www/default/public/static/js/menu.js' पाया नहीं गया या stat करने में असमर्थ, रेफरर: Http: // localhost [Wed Jul 22 23:58:58 2009] [त्रुटि] [क्लाइंट 127.0.0.1] स्क्रिप्ट '/var/www/default/public/404.php' नहीं मिला या स्टेट में असमर्थ, रेफरर: http : // स्थानीयहोस्ट 090722 23:03:00 238 परियोजना पर @ स्थानीयहोस्ट से कनेक्ट करें 238 क्वेरी का चयन करें @@ sql_mode 238 प्रश्न SET सत्र sql_mode = '' 238 क्वेरी एसईटी नाम utf8 238 क्वेरी का चयन @@ SQ...

ruby - Rails partials and HAML -

I have an Ajax method that interprets users @collection. This code is from partial users. Now what I need to do is wrap around one of the 3l tags for every third object. I can do this with HAML? I can not just add the% ul tag to "when 1" - because that object stopped when the object was provided. - User-client for K + 1- Then 1% li.prost @user.login - all 2% li @ uer.login- then 3% le.lal@user.login This is the result I am looking for: etc. I think you want every_slice . It makes a countable partition in groups of the specified size. You can do something like this: - @ collection.each_slice (3) Two | Slices | % Ul% li.first = slice [0] .login% li = piece [1] .login% li.last = slice [2] .login

Pasting images into Silverlight -

I'm exploring a way to enable images for my users to paste images into their Silverlight component (a text box In, I think, or is there any better control to do this?). For security reasons, there is no clipboard access from the code in the computer that has been read, except that using the Javascript function which only works with IE But what if the user asks for a browser command (Ctrl-V or Menu) to paste data? I can see that it works with the text, so I am thinking that I can do this for pictures. Any help appreciated. The only way to access images from the user's vibrator is copy / paste not working .

javascript - What is Jquery's alternative to Mootools MochaUI? -

is very intuitive and unfortunately, to replicate the modal iframes almost completely, I have the scripts written in Jquery Used, and I have heard that there is conflict in putting an entire HTML and jquery on an HTML file (is this true?). How can I feature in Mokuyi Jquery? At the very least, is there a similar modal dialogue system? I have seen the JqueryUI dialogue but it makes the background dark and non-functional, which is not what I see. with some tweaking (Enable jQuery noConflict-Mode, replace the $ selector with something like $ jq Let you both be able to work. However, you can easily end up with a Frankstein app that mixes mitols and jazzy plugins apart from that Javascript load is quite prevalent, because you can see Mototels, Jacquire and their top-level UI toolkits Include I recommend that you check whether JQuery UI may replace MochaUI (or vice versa). It is easy to maintain a combination of JS Lib + UI Toolkit so far. The downside of MOAUUI is that...

How to build and run a data-generating tool in a Visual Studio build? -

My main project creates some software that requires a data file ('image' below). This image comes from another program, which I can create in any other project. I want to automate all of these in a Visual Studio (2008) solution. In the summary I have the following dependencies: Software.exa should run only if the image depends on the software.exe (but the image No) Image depends on tool.exe and other data files tool.exe depends on Tool.c Attempted to add a post build event to .vcproj, which runs the tool.exa. It works, except that it does not auto-execute the tool.exe if the image is unavailable or other data files have changed. Suggestions?

Stacking a variable in reverse in PHP -

I have a loop that spits the values ​​and it is inserted into the string: $ all_values ​​= ""; While loop {$ value = "..."; $ All_values ​​= $ value ""; } Output: 1,3,8,2,10 ... The easiest way to output the same thing, but the number in reverse is so That example will come out like ... 10,2,8,3,1 Put everything in an array and then join it, vice versa: $ all_values ​​= array (); While loop {$ value = "..."; $ All_values ​​[] = $ value; } $ All_values ​​= implode (',', array_reverse ($ all_values)); It is even more efficient at millions of values.

Storing web content in cache in c# .NET windows application -

I am developing a windows application in C # in which I am displaying web pages using web browser controls , And I have to store how can I do the contents of a web page in a cache? If you store only the document text property of the control, it will only enable you HTML content Items such as images and stylesheets will not be cached for caching. If you want to cache images and stylesheets, you will need to parse the content of the document text and recover the objects and the like-like images and stylesheets. They are stored on the web server and make local copies, then update the link in the DocumentText property to point to local versions. Use a class to download a copy of the object on the remote web server.

Convert XML file to DBF -

I am trying to convert an XML file to DBF. Right now I do it manually, opening XML excel 2003 and saving it as dbf4 file type. This is a boring and time-consuming process that has been made worse than the fact that for Mac, Office 2007 nor Office 2008 is allowed to save as DBF. I think it is possible if possible. Do you really know any way to do this? I do not even know which programming language to use for it ... An XmlReader Use Format, Use OleDb to save your data and save in a DBF file. Here you can find a connection string for DBF:

perl - What are the various directories in @INC used for? -

I will be able to help understand that what module do I have if I understand that module module @INC Under Windows, under ActiveState it is quite clear c: / pearl / lib c: / pearl / site / lib first There is stuff set up through PLM, but am I right? However, under Debian, it seems too complex / etc / perl /usr/local/lib/perl/5.8.4 / usr / local / share / Perl / 5.8.4 / usr / lib / perl5 / usr / share / perl5 /usr/lib/perl/5.8 / usr / share /perl/5.8 / usr / local / lib / site_perl What is the reason for so many directories and where it goes. Based on the files in these directories, and my knowledge of Pearl, I would say that they broke like this / etc / perl - Some Pearl modules write configuration files, these are two examples and there are modules in the distribution. Debian-based machines store these config files here. /usr/local/lib/perl/5.8.4 - This is where platform-specific files installed outside the package system. /usr/local/share/perl/5...

objective c - iPhone OpenGL fps test -

Anyone can tell me how to get and display the FPS (frame rate) of the program running on the screen? In XCode, run -> Start with Display Tool -> OpenGL Launch devices with GL Tool, where you will see FPS and GPU usage If you are not getting your Flexible 60 FPS, then GPU% is the number that you have to reduce.

sql - Problem in mysql when ordering by more than one column using ORDER BY FIELD -

I have a MySQL query where I sort by field: "..WHERE (pattern id id ($ id join)) $ where order by command ($ ids2) LIMIT 0, $ numlines"; Where $ idsJoin2 is something like this: my $ idsJoin = join (',', @ id); My $ idsJoin2 = "patterns.id," Add $ id; And "IID is an array with numbers I want to order. This is the thing that after ordering by $ idsJoin2, I have another Column, like this: "WHERE (pattern id id ($ IDs)) $ $ where ORDER BY FIELD ($ IDs2), products.product, versions.version, builds.build LIMIT 0, $ NumLines "; If I sort that column by them with any problem, but if they are after ORDER BY FIELD, which I want , It's just I do not know why this is happening Thank you. Why do you call ID in $ ids2 Adding? Is not it just 'patterns.id' If you want to order from that column?

java - What is org.springframework.orm.hibernate3.support.BlobByteArrayType good for? -

What's good for this? Do not map as byte [] as the hibernate to the original type ""? What are the differences? BlobByteArrayType lets you map arbitrary bytes. Array in a Blob field in the database binary type hibernate allows you to map a byte array to an area. In , Blob is like rain, but can grow as much as you want.

javascript - Dojo widget defaults -

I am currently writing applications on a large scale based on the Dojo Toolkit. The whole app is working and standing, but one issue can not get my way, it is the creation of custom widgets. This will be useful because it will clear my source code and I can reuse 'widgets' in the subsequent projects. For example: I have a main toolbar that I want to call myapp.toolbar = new myapp.mainToolbar (); Instead of using myapp.toolbar = new new dijit.Toolbar ({}, container id); Var button 1 = new dijit.form.Button ({label: 'delete', id: 'toolbar button 1', Showbail: true, icon class: "DigitEditor Icon Deguit Editor Icon Delete"}); Myapp.toolbar.addChild (Button1); ... In short: How do I set the entire toolbar elsewhere and call it as a simple object? Trying to exclude dojo.declare ('myapp.mainToolbar', dijit.Toolbar, {...}) but then I have a group of errors like 'startup function not existing' etc. Get it ... Although I do al...

c# - Casting vs Converting an object toString, when object really is a string -

This is not really an issue, though I'm curious. When I save a string, a detractor says, it is inserted into the object. When I want to use it, I have to put it into the tooling, as far as I know there are several ways to do this, first string name = (string) DataRowObject ["name "]; / Valid since I know that it is a string and the other one is: string name = Detorobbs ["name"] . ToString (); I am interested in what is the difference between the two? Is it more efficient than ever? (It's just a speculation, my head has been implemented by some looping mechanisms in the toostring () method where casting it can be "sharp", although it is just a "gut feeling"). Can anyone clean it for me? "text"> For two different purposes, the ToString method of any object should represent the string of that object returned. Casting is quite different, and 'key' as the key word makes a conditional, as it has been ...

silverlight - Line with different solid colors, solidcolorbrush with gradient stops but without the gradients -

In Silverlight (version 3 preview), I want to create a line with different solid colors, so any of the colors Do not shield it. Actually I want to do the following: & lt; Line X1 = "0" X2 = "500" StrokeTechnness = "10" & gt; & Lt; Line.Stroke & gt; & Lt; LinearGradientBrush & gt; & Lt; GradientStop color = "blue" offset = "0.5" /> & Lt; GradientStop color = "Red" offset = "1" /> & Lt; / LinearGradientBrush & gt; & Lt; /Line.Stroke> & Lt; / Line & gt; But with a discrete change in color, and not red to blue color I wonder if it is possible to use interaction without using multiple lines possible? What you are looking for is & Lt; GradientStop color = "red" offset = "0.5" /> & Lt; / LinearGradientBrush & gt; & Lt; /Line.Stroke> They do not have transit from one place to another by setting up ...

asp.net mvc - Running jquery script block with a MVC PartialView -

So I'm loading partial views using an AJAX action link, but some zype as part of a partial view Need to embed in which the return I'm getting harsh with, how to fire the script once it's over. Use the callback Whatever jQuery function you use (.post, .get, ajax) are doing. See this for: $ Get (url, callbackFn); Add markup to the function callback FN (data) {// $ $ ('# some DIV'). Append (data) // js function here function functionPromaryView (); } N.B. I make all JS files in different files. There is no need to embed JS inside partial scenes. Very easy and strong to keep logical division

c++ - Should use an insertion sort or construct a heap to improve performance? -

itemprop = "text"> We have large (100,000+ elements) vent of structures (operator and lt; overload for providing ordering): std :: vector & lt; MyType & gt; VectorMyTypes; Std :: sort (vectorMyType.begin (), vectorMyType.end ()); My problem is that while preserving the sort order, we are seeing performance issues while adding new elements of these vectors. At the moment we are doing something like this: for (very large set) {vectorMyTypes.push_back (newType); Std :: sort (vectorMyType.begin (), vectorMyType.end ()); ... valid stuff (vector mitip); // This method assumes that vector can be ordered} it is not absolutely as I know that this example can be used in different ways However, it gives you an idea why performance can be a problem because I am sorting after every push_back . I think I have two options to improve performance: To improve sort performance (one hand is prepared?) entry std: Should I sort an inclu...

asp.net - Server.Transferrequest() and getting the current URL -

"a.aspx" के मेरे 'Page_init ()' में कहें तो मुझे बस 'server.transferrequest (' b.aspx ")। यह बहुत अच्छा काम करता है," बी.एस्पक्स "के लिए सामग्री प्रदर्शित करता है और ब्राउजररल अभी भी" a.aspx "पर रहता है। खुश दिन। हालांकि, किसी को भी यह पता है कि कैसे मेरे यूआरएल को देखने के लिए "b.aspx" (परिणामस्वरूप पृष्ठ)। सामान्य अनुरोध .और request.url.absoluteuri दोनों वर्तमान पेज को " B.aspx "। सर्वर। ट्रांसफररेक्स्ट निर्दिष्ट यूआरएल के एक एसिंक्रोनस निष्पादन करता है। इसका मतलब यह है कि आपके ग्राहक का कोई संकेत नहीं है कि वे सर्वर पर चल रहे हैं, इसलिए आपके ग्राहक के दृष्टिकोण से यह एक ही पृष्ठ है। यदि आपको वास्तविक पृष्ठ बदलने की जरूरत है (जो सबसे सामान्य है) तो प्रतिक्रिया। रीडायरेक्ट।

asp.net - How to check whether EnableViewStateMac is set at runtime? -

In ASP.NET, the viewstate is protected from tampering on the client, which is the signature generated by the machine secret on the server. But this protection can be easily turned off: & lt;% @ page ... EnableWegetMack = "incorrect"%> I am writing an ASP.NET control that may store security-sensitive information (not secretive ... but it did not tamper it Depending on whether EnableViewStateMac is true or not, How do I want to see the runtime on or off? You just need to be able to reference Enable the widgets from within your code.

asp.net - What is the most unobtrusive way to add a layer of security for a private beta of website? -

Suppose I have an ASP.NET site (in this case MVC) which uses form authentication and a specific membership system. The site allows both certified and anonymous users. When I leave the site as a private beta, I want to add another layer of security at the top of the application, just like a simple password system, for example. Once the user has crossed this layer of protection, I still want my form authentication / subscription system so that the Beta tester can see the site as a certified or anonymous user. What is the easiest way to achieve this? I'm looking for the easiest solution for which at least new or modified code will be required. Like I do not want to modify every controller to check a particular cookie. There should be a better method ... There is a question here, but it seems that the site in question (once public) will only serve anonymous requests, so it is not necessary from my situation. Suggestions that serverfault has used some cookie system, but there is n...

iphone - Turn Auto-Lock Off from an Application -

Users want to turn off auto-lock when using my navigation utility. Do I control auto-lock from an application possible? [Also, "how to stop sleeping or suspending your ipad"] This will dim the screen and Stop going to sleep. [UIApplication shared application] .idleTimerDisabled = YES;

php - How to install FFMpeg in WampServer 2.0 (Windows XP) -

I need to install the ffmpeg PHP extension on my localhost, so I can test some of my scripts, but I'm having trouble how to do this. I have WampServer 2.0 with PHP 5.2.9-2, my OS is Windows XP. Please take steps with some step instructions. I've found that some Windows produces here: But I do not know which file downloads and what to do with files. edited: What have I done so far: download ffmpeg_new copy php_ffmpeg.dll from php5 folder Copy C: \ wamp \ bin \ php \ php5.2.9-2 \ ext Copy files from the Windows / System 32 folder Extensions = php_ffmpeg.dll to php Ini Restart all services (Apache, PHP ...) I am getting an error after using this code: $ Extension = 'ffmpeg'; $ Extension_soname = 'php_ffmpeg.dll'; $ Extension_full name = PHP_EXTENSION_DIR "/" $ Extension_soname; // Load Extension (false === Extension_loaded ($ extension) ; } Error: WARNING: DL () [function.dl]: is not supported in multithreaded web serv...

perforce - Integrated files disappear from a pending changelist at p4v -

itemprop = "text"> Integrated files between the branches of our user was placed in the pending changelist but when I changed this change in P4V If I see, they can become invisible. When I connect to another workspace, I can see them when I look at this change, then I can also see it in Eclipse. When I choose to solve the struggle on this changeist, it also works, but when I try to present the changes, there is nothing there. After I installed a new version of p4v, the problematic pending changelist appeared with a question mark (red triangle with a question mark). any idea? Thank you. Answer by the supportive support: This could be a task and sync problem Can you lock out of the following server commands: p4d -r $ P4ROOT -xf 925 Where "$ P4ROOT" db Is the place of * Files

Why doesnt Clojure execute this function at all? -

I'm called a function that displays a dialogue with the message. I need to mute this function in all the items in goodbye but Closer does not show me any message what am I doing? (defn show [message] (.javax.swing.JOptionPane (showMessageDialog nil message)) (defn action [] (map show '(Hello sweet love))) The map function does not actually run the mapp function on every memeber of the collection. Rather it returns a 'lazy-opposition' cell. It looks like its classic single link with a very significant difference, the data in each cell is defined when it did not define it (This result is definitely stored then reads later). So to run the function actually you have to read the result of running the function. Because in this case you do not care only about the results of the function, which is run by the closure. (Door ... insert your map here ....) / code> This will create the map, read the results and immediately remove them to destroy them with the...

osx - On Mac OS X 10.5 what determines PATH value before /etc/profile? -

While examining the process described on the Man-man page, I was surprised to know that the value of PATH / etc / seems to be profound that the profile is already customized per user. I can not get anything documenting this behavior Can anyone tell me in the right direction? Apple documentation was taken from: On login, login window Looks for a special property list file with. This file should be located in a directory, which is called macoxax at the root of the user's home directory. The path to this file is as follows: ~ / .macosx / environment.plist If an environment.plist file exists, the login window sees for the key that the child of the original element Are there. For each of these keys, the login window registers an environment variable of the same name and assigns it the value of the key

windbg/cdb hangs when bp hit -

I have a problem where CDB or Windbag is hanging often, but not all the time, when I'm debugging with it And I attach a specific application to my machine. I have found this article: One problem that describes the load condition being loaded, but I can force the symbols to load, in fact, a breakpoint in -AAP has worked, and still has hanged it somewhere else. When I connect it to another debugger, here is a stack with CDB: ntdll! NtReadFile kernel32! ReadFile CDB! ReadNonConLine CDB ! Report that the APPLICATION_HANG_BusyHang problem is bucket, and 'ReadNonConLine' is offensive work. As far as the stack goes: ffffffffffffff000000000000000000000001`3f641498 00000000`0014ea50: kernel32! ReadFile + 0x86 00000000`000002a400000000`0014ebb0 00000000`00001000 0000000000000000: CDB! ReadNonConLine + 0x6d which is part of the order that I will be on the hanging breakpoint (It was something like BP foo "Dt A; g") ReadFile takes a handle as its first...

ria - No DomainDataSource in toolbox in Visual Studio -

In Brad Adams, in walking on the blog of the new RIA Gift, he mentions that you pull only one DomainDataSource from Toolbox Do your XAML All my RIA kits have come from the link from that blog and I have definite July CTP, yet there is a specific absence of DomainDataSource in my toolbox. What type of arcane rituals do I automatically qualify for toolboxing in terms of project and XAM, as well as additional privileges as well as privileges for projects and XAML as well as for privilege? Microsoft responded to the second platform if you right-click on the Silverlight control section of Toolbox for the context menu, If you click and add controls, you can browse Silverlight controls and keep DDS in the list. is very easy.

vb.net - What's the C# equivalent to the With statement in VB? -

संभव डुप्लिकेट: वीबी की एक विशेषता थी जो मुझे वास्तव में पसंद थी ... साथ कथन सी # है इसके बराबर है? मुझे पता है कि आप का उपयोग करके का इस्तेमाल कर सकते हैं, न कि एक नेमस्पेस टाइप करना है, लेकिन यह सिर्फ इतना ही सीमित है। VB में आप यह कर सकते हैं: Stuff.Elements.Foo के साथ .नाम = "बॉब डिलन"। = 68। स्थान = "टूर पर"। आईआईएसकुशल = सच अंत के साथ C # में समान कोड होगा: Stuff.Elements.Foo.Name = "Bob Dylan"; Stuff.Elements.Foo.Age = 68; Stuff.Elements.Foo.Location = "टूर पर"; Stuff.Elements.Foo.IsCool = सच; वास्तव में, आपको एक चर निर्दिष्ट करना होगा। तो Stuff.Elements.Foo बार; बार। नाम = "बॉब डायलान"; बार। एज = 68; बार। स्थान = "यात्रा पर"; Bar.IsCool = True; या सी # 3.0 में: var bar = new stuff.Elements.Foo {name = "Bob Dylan", आयु = 68, स्थान = " यात्रा पर ", IsCool = True};

iphone - NSSearchPathForDirectoriesInDomains trouble (losing hair fast) -

I'm getting very fast and need help! I am writing an app that needs access to the directory. I use the user / mine / library / application support / iPhone simulator / user / application / 6958D21C-C94B-4843-9EEF 1-70406D.CA3A3 / document Was hoping to find the way. However my app is giving me / user / me / library / app support / iphone simulator / user / document , which I do not want because there is no written access to it . Here is a well-snatched version of my code. Note that you need to see the console in the simulator to see the output. I have examined all the references that I know and there is no success in changing behavior. Is this some compiler option? Or would you have to change me to Info.plist for some information? Anyone please ... Update: My app is not being sandboxed due to some very strange reason. Why? File DirTestAppDelegate.h #import & lt; UIKit / UIKit.h & gt; @ Interface default app delete: NSobigant & lt; UIApplicationDelega...

hyperlink - Getting mediafire directlink without using WebBrowser .NET control? -

I am looking for a way to get direct link from MediaFire. By default, when a user goes to the download link, they will be presented on the download page, where they will have to wait for download and then a link will appear. I googled and found a VB .NET 2008 solution used by WebBooser WB It works very well, but I have pop-up windows And I'm tired at load speed. So, I wonder what is the solution to this problem? (A non-WB solution ^^) Any help is greatly appreciated. (handling cookies) When I do regular expressions in the code, I have to post back, it is not sure that it is going to work though I think the real link is received through AJAX I still Playing with this Ajax concerns were discussed: Based on the php code given in the comments: 1 response-> "CG (Value varied from a function called "var1, var2, var3"). I do not think that the mediafire still uses that function, it seems that it is called "Q (var1, var2, var3)", is...

Java exception handling - Custom exception -

मेरे पास ऐसा एक कस्टम अपवाद है सार्वजनिक वर्ग MyOwnException अपवाद फैली {} फिर मेरे वर्ग में मेरे पास दो विधियां हैं सार्वजनिक शून्य ExceptionTest () अपवाद फेंकता {नई FileNotFoundException फेंको}; } सार्वजनिक शून्य ApplicationExceptionTest () MyOwnException फेंकता {नया FileNotFoundException (); } ईक्लिप्स दूसरी पद्धति के बारे में शिकायत करता है 'अप्रतिबंधित अपवाद प्रकार' FileNotFoundException ' मैंने सोचा कि चूंकि MyOwnException अपवाद फैली यह शिकायत नहीं होना चाहिए ... क्या कोई मुझे बता सकता है कि मुझे क्या याद आ रही है? MyNwnException FileNotFound और MyOwn एक-दूसरे को नहीं जानते थे। सार्वजनिक शून्य ApplicationExceptionTest () अपवाद फेंकता {नया FileNotFoundException फेंको (); } जाने का तरीका टिप्पणी: मुझे आशा है कि यह केवल मॉकअप परीक्षण के लिए है और नहीं अपने नियमित स्रोत कोड में उपयोग करने के लिए एक वर्ग को लागू करने के लिए!

Manually Start ANT Task -

For various reasons that I will not go in (I promise that this current code is necessary to do with the base ; I know this is unwise), I want to execute the goal twice in the same build work. For example, I want to execute the foo target, then times , then foo again this I have already tried a simple version of it: & lt; Target name = "foo" & gt; ... & lt; / Target & gt; & Lt; Target name = "bar" dependent = "foo" & gt; ... & lt; / Target & gt; & Lt; Target name = "project" dependent = "foo, bar" & gt; ... & lt; / Target & gt; When executing the project target, foo ran only once. Dependance of the project attribute "foo, bar, foo" , but the dependent attribute on the bar target, but Still have the same results. Is there any way to force the work to execute, even if it has already been successfully completed? Or is there a better way to go about it? ...

python - Change current process environment's LD_LIBRARY_PATH -

Is it possible to change the environmental variable of the current process? I especially want to change the LD_LIBRARY_PATH in a python script so that a module relies on some xyz.so on the import of 'x' xyz.so has been taken from the given path in the LD_LIBIRRBRRAPHTH Is there any way to change the dynamic way from which the library loads? Edit : I think I need to tell that I already have OS. Environment ["LD_LIBRIAPH"] = MAYPATH has tried like OSPNAV ('LD_LIBRIAPHH', MYPATH), but these env For the spontaneous sub-process, not the current process, and module loading does not consider the new LD_LIBIRRAABABRATH Edit2 , so the question is whether we can change the environment or Something from which the library loader sees it and loads from there? Reasons os Environ ["LD_LIBRARY_PATH"] = .. . does not work: it's the behavior of variable dynamic loader control behavior ( ld-linux.so.2 on linux, ld.so .1 on Solaris...

graphics - How would you implement a perfect line-of-sight algorithm? -

Disclaimer: I'm not actually trying to make one it can be done. When I say "the most accurate" I include the basics the wall the distance the light > Fire Fire If I want to program this, then which resources should I check and what should I look for? Apart from this, are there any relevant books on the theory behind the line of sight, including all these variables? Typically, the amount of space in any kind of space division data structure as the world's Represents, then that space represents your "line of sight", so that hit can be set to find the set of that object; Then Ray went in order from Genesis to determine the overall result. Due to reflective objects, further rays are removed, opaque objects stop moving, and semicolon objects partially contribute to the result. You may want to read on the trail; There is a great body of literature on the subject and basically there are good ways to solve problems present in your...

php - Programmatically determine maximum filename length -

How do I fix the maximum filename length on the Linux box? Favorite in PHP Programming Language You want, in PHP (now (When they are, they will probably be posix_pathconf .) You can also open a command line utility interface for the same functionality. Try it on your system: $ getconfig NAME_MAX / tmp $ getconfit_mx / tmp

silverlight - Fixing Tim Heuer's EditableComboBox for SL3 & latest SL Toolkit -

I'm using Tim Hair's style to get an editable combo box from here: It's working Unfortunately, the latest SL Toolkit is not working while trying to use this style with the SL3 RTM about the previous release of Silverlight Toolkit in my project. I doubt what to do with this problem: "Breaking change:" dropdown toggle "part of the template type toggle button has been removed." I'm not sure how to fix this drop down part to work again? > It works for me now I have added this line to the ToggleSpeed ​​Manifesto in the EditableComboStyle template: IsChecked = "{Binding Relative Soros = {Relative Surface Templated}, path = IsDropDownOpen, Mode = TwoWay} " Also, changing the list box name to X is important: named =" selector "in the same editable column bookstyle, Jeff said. Then control is used in this form: & lt; Toolkit: Autocomplete box minimum profile threshold = "0" minimum populated = "200"...

xml - How to assert for each child one element is present or not -

& lt; क्लिनिकल डॉक्यूमेंट & gt; & LT; प्रविष्टि & gt; & LT; substaceAdministration & gt; & LT; effectiveTime & gt; & lt; / effectiveTime & gt; & Lt; / substaceAdministration & gt; & Lt; / प्रविष्टि & gt; & LT; प्रविष्टि & gt; & LT; substaceAdministration & gt; & LT; effectiveTime & gt; & lt; / effectiveTime & gt; & Lt; / substaceAdministration & gt; & Lt; / प्रविष्टि & gt; & LT; प्रविष्टि & gt; & LT; substaceAdministration & gt; & Lt; / substaceAdministration & gt; & Lt; / प्रविष्टि & gt; & Lt; / ClinicalDocument & gt; मुझे प्रत्येक प्रविष्टि / सबसाइट के लिए जबरदस्ती करना होगा। प्रशासन प्रभावी है समय तत्व मौजूद है या नहीं। मैंने इस अभिव्यक्ति के साथ कोशिश की है & Lt; xsl: जब परीक्षण = "गिनती (क्लीनिकल डॉक्यूमेंट / एंट्री / पदार्थ प्रशासन / प्रभावी समय) = 1" / & gt; मैं इस आवश्यकता को पूरा करने के लिए मेरी XPath...

reporting services - Tracking report usage -

There is an easy way to running a report in SSRS 2005, and at what time they say reports Is the track running? Our Ssars implementation, we have nearly 80 reports, and what you're trying to see if there's something that we can safely put in the pasture if we can easily see a way that did not use what reports Any ideas, which will help us? There is some good advice and questions to create reports on the following. For example, if you most want to see the report used, you do the following: of COUNT select ExecutionCount as (name), name, SUM (TimeDataRetrieval) TimeDataRetrievalSum, SUM (TimeProcessing) as TimeProcessingSum, SUM (TimeRendering) TimeRenderingSum, SUM (ByteCount) ByteCountSum, SUM ([rOWCOUNT]) RowCountSum the (selection Initial, Catalog.Type, as in the form of the list.Name, TimeDataRetrieval, TimeProcessing, TimeRendering, ByteCount, [rOWCOUNT] Catalog.ItemID = ExecutionLog on inner ExecutionLog from the list. ReportID join where type = 2), then name ...

Flex TextArea auto-resize behavior - is this possible? -

बहु-लाइन टेक्स्टएरा फ्लेक्स घटक के लिए, टेक्स्ट में प्रवेश करना और टेक्स्टएरिया ऑटो-आकार में ऊर्ध्वाधर दिशा ताकि सभी प्रवेश किए गए पाठ एक बार में दिखाए जाएंगे। हालांकि, टेक्स्टएरिया लेआउट प्रवाह में किसी भी घटक को नीचे खींचना चाहता है। इसके बजाय, TextArea को उनसे ऊपर की ओर बढ़ाना चाहते हैं एक बार पाठ प्रविष्टि हो जाने के बाद, टेक्स्टएरिया को वापस हटना चाहिए और इसे अपने सामान्य सीमा पर पुनः करना चाहिए। यदि टेक्स्टएरे कंटेनर में है, तो 'पूर्ण' स्थिति का उपयोग कर रहा है (जैसे कैनवास), यह काम करेगा बस TextArea पर textHeight को मापें और जब TextArea की ऊंचाई के भीतर एक निश्चित सीमा तक जाता है, ऊंचाई को बड़ा बनाएं हालांकि आपको अभी भी z-order को ठीक करना होगा, क्योंकि TextArea पीछे अन्य घटकों को फैलाना चाहते हैं।

sql - Oracle Minus - From a list of values, how do I count ONLY non reversed values -

I have a list of payment transactions in a table, including payment reversal, payment reversals have not been flagged, so I It is to be assumed that if any deduction is equal to an existing transaction then it is a reversal I should only count the transaction which was not reversed. For example, from a list of transactions. 5 5 -5 (It is inversion for 5 transactions, hence a 5 transaction is still valid) 10 -10 (this is inverted for 10 transactions, so no 10 transactions are not valid) 15 15 15 -15 (This One is inverted for 15 transactions, so two 15 transactions are valid) 20 I want a list which 5 15 15 20 i There were four transactions that were not reversed. Here are some test codes, my attempt does not work Make tab check_minas (name_id number (4), trans number (4), well number (2)) ; Insert in check_minas values ​​(1,1,5); Insert in check_minus values ​​(1,2,5); Insert check_minus values ​​(1,3, -5); Insert check_minus values ​​(1,4, 10); Insert in check_mineas ...

How to read installer shortcuts with C# (WPF) -

background: I have decided to teach myself from WPF to C #, and I have a small Apps need to get started menu shortcuts and their target list and archive them. Actually, I am trying to take all shortcuts and put the path of their target applications in memory. However, I have a problem trying to read Windows Installer shortcuts (which is the C: \ Windows \ Installer \ {90120000-0030-0000-0000-0000000FF1CE} \ wordicon.exe - Microsoft Office is one of the Is a good example). I have done some research and it seems that the Windows uses some back-to-screen magic to connect to the registry to find the actual location of the file. Question: Do I get the actual goal of these Windows Installer shortcuts in C #? I have a lot of sources that point me on the IShellLink interface, but I do not know how to use it with C #. I prefer to use Windows API calls (or better, a NAT library) instead of searching the registry manually, but I take some guidance on this issue. After doing more...

Learning C using Visual Studio 2008/Visual C++ 2008 Express -

Is there some kind of "books or tutorials available for developers of other languages ​​available"? I am currently trying to learn C (not C ++, maybe later) and even though I had some experience with it (this was writing DOS application using the Boseland C in the school ...), I do not know the standard library or a lot about it "about architecture" My current project - which I want to use to learn - is to write an Ogg Theora player, that's it, using libob, libroboris and libriotora in my project but here I have a problem already Is: How do I add them? I am a C # developer, and I will just add a reference to C # and it will be fine. But the visual C ++ (compiler / IDE which I will use in any case because I really want to do this project later) depends on the existing C Visual C ++ project, I am just overwhelmed by project properties. I have found a lot of resources about C, but many things are really basic stuff (stating what the functions are - I kn...

vb.net - .NET application for blackberry? -

I have a very simple Winform application in vb.net and I was thinking that I got it BlackBerry and other PDAs? Check the MDS runtime and visualstudio plug-in, in which you can download here:

programming languages - Should I stay focused on desktop development or learn more about web application development? -

Let me introduce myself to a little I have 7 years of C ++ ( Most MFCs), 1-year C # .NET and 2-year Java experience. I know something about web applications, what I did and I'm making windows desktop applications. I started doing some (small) freelance side projects in the last half year and uses C # because it is "intense" than MFC, but seems to be This market has more web projects than desktop projects. And I do not like it until I know web development. So, should I touch the new web file for me or just focus on desktop applications, but to learn more, such as Python, or framework / library like QT or Boost? The feeling of my stomach is that more and more people / companies have projects on their web for example, My company has added many web applications because another prominent example of this is that I provide a web based version of Microsoft Office (yes, even), their main product. Always need desktop applications, but projects me more web-based...

php - pass MySQL link to a class method -

Here's my problem, I have a class with Away method, I want to pass it with mysql db link, So I create a new object from the class, and call the saveProperty method, and in my main file I have created a MySQL connection and saved it in a var called $ db, when I call the method it is from this link Is: saveProperty ($ db) But to save the data, I get an error: Warning: mysql_select_db (): Distributed logic is not a valid MySQL-link resource C: \ wamp \ www \ WARNING: mysql_query (): The supply logic is not a valid MySQL-link resource C: \ wamp \ www \ aqaria \ classes \ property.php on line 99 Which means that I did not correct the link? & lt ;? Php class test {function saveProperty ($ db) {$ sql = "& lt; mysql_query ($ SQL, $ Database); If (mysql_affected_rows ()> 0) echo " data was saved "; Else Echo "& lt; h3 & gt; Error saving data & lt; / h3 & gt;"; }} Here is the calling code: $ db = mysql_connect ('l...

ASP.NET MVC - Strange routing issue, very simple route mismatch problem -

मुझे नुकसान हो रहा है ... यहाँ मेरा मार्ग है: routes.MapRoute ("लैंगऑनली", "{भाषा}", नया {नियंत्रक = "होम", एक्शन = "रूट", भाषा = "एन"}, नई {language = @ "en | ja"}); यह www.domain.com/en से मेल खाता है, लेकिन नहीं मैच www.domain.com/ja । हुह? मैं अभी तक किसी भी अन्य मार्गों पर टिप्पणी करने के लिए इतने दूर चला गया ... तरह का अटक गया। ; / अपडेट: होम कंट्रोलर पर यहां रूट एक्शन है। [CompressFilter] सार्वजनिक एक्शन रिजल्ट रूट () {यदि (! इज़ेनजीजी) रिडायरेक्ट टाईएक्शन ("इंडेक्स" , "बिज़", नया {b = ""}); वापसी अनुरोध। क्या अधिकृत है? देखें ("लॉग इन इनटूट"): देखें ("रूट"); } यह एक भाषा पैरामीटर नहीं लेता है क्योंकि यह ऑनएक्शनएक्सास्टिंग में बेस नियंत्रक पर सेट किया जा रहा है, जैसे: var l = (रूटाडेटा मान ["भाषा"] = नल)? रूटडेटा। मूल्य ["भाषा"]। ToString (): string.Empty; यदि (string.IsNullOrEmpty (l)) l = "en"; अगर (एल। कंटन (...

delphi - How to make PBear's THtmlViewer load & show a unicode HTML file? -

I have some Unicode .html files that I want to display inside a Thambalivier component in Delphi. I can not seem to convince the code to do ".loadloadfile" file - do I need to load the Unicode file in a stream for the first time and then in any way Changing it? Delphi 2007, thumbnailVieweware v9.45 I did nothing with Unicode files, or the first THMLViewer. D6-DX2 and Correction of Lazarus, tons of fixes and corrections from the "original" (9.45) version.

generics - Is there a set type in .NET 2.0? -

संभव डुप्लिकेट: डुप्लिकेट: यह "" का डुप्लिकेट है। कृपया इसे डुप्लिकेट के रूप में बंद करें और पहले के प्रश्नों के उत्तरों को और संबोधित करें। क्या एसटीएल सेट & lt; T & gt; टेम्पलेट के साथ समान सामान्य संग्रह है.नेट ढांचे में? यदि नहीं, तो आप अनगिनत स्ट्रिंग का एक गैर-आदेशित संग्रह कैसे लागू करेंगे? मुझे लगता है कि मैं शब्दकोश & lt; स्ट्रिंग, इंट & gt; का उपयोग कर सकता हूं और बस कुंजियों का उपयोग कर सकता हूं, लेकिन ऐसा लगता है कि यह बदबूदार है। संपादित करें: क्षमा करें, मुझे यह निर्दिष्ट करना चाहिए था कि यह .NET 2.0 .NET3.5 तक, नहीं (मुझे मत पूछो कि उन्हें ऐसा क्यों ले गया इन मूलभूत तत्वों को जोड़ने के लिए लंबे समय तक (अब तक कोई हेप क्लास नहीं है, एपीएआईक। एनएटी संग्रह कक्षाएं आश्चर्यजनक रूप से कम होती हैं)। 3.5 में, आपके पास हैशसेट T & gt; है। यह TR1 unordered_set की तुलना में std :: set की तरह है, हालांकि इसमें अनारडेड है, जहां std :: set आंतरिक रूप से एक वृक्ष संरचना का उपयोग करता है बेशक, इन कमियों को ठीक करने की ...

when not to use CSS sprites? -

I want to know that CSS sprites do great works while not using CSS sprites, but do have a chance when Do they produce many headaches? Maintain your site will suffer from using them to combine pictures related to only one logical unit And it is unlikely to be updated individually. Keep images that need to be changed differently to get started with.

servlets - Strangeness with Jetty serving images -

I'm completely stumped I'll give the background for the sake of perfection, but I'm not sure whether it will help or not. I'm running a lift project on a standard jetty set-up that is running a lift example. Mac OS X I have a snippet that replaces XML input, gives an image, saves disk in the disc with the filename of the content from the MD5 of the content under the webtruth / images / directory, such as "c5669d3eedcf7d305dcf9f88a61b3ee0 .png ". The snippet then returns an IMG tag with reference to the generated image to be included in the output. Most of the pictures work most, but most of them do not take time, and some images are not provided by the browser. No problem attempting to see an image in the browser (Camino and Firefox): The image is not displayed, suggesting that something is wrong. Seeing it in another browser (with Safari and QuickTime), the image works properly Downloading and opening the image works fine with camino (i.e. file: // ...

Should rails ajax calls be bundled into their own separate controller? -

Should have AJAX calls that are not refreshing: Put in the controller which is mostly Your performance / view, or Consolidate in your own separate 'Ajax' controller? I am doing 1, but I have read it (2725 diggs) article (see 9 point) and this method opts for the method. But he is a PHP developer though. One benefit can be that it can clean the paths from 2 It seems that one's 6.5, the second half baker's dozen type a matter of. / P> Which options do you go for? I like the first approach: This is analogous If the resource XXX is included in an Ajax action, you (and other coders) will know where the things in your application reveal, thanks to the rail conferences. If your application is heavy on Ajax (and nowadays most of them), then you will end up with a BHAM AjaxController which completely slows down your rest controller just the highly humiliated non Javascript CRUD functions Will be available to provide. Similarly, testing your Ajax...

c# - How to get distinct instance from a list by Lambda or LINQ -

मेरे पास एक ऐसा वर्ग है: वर्ग MyClass & lt; T & gt; {सार्वजनिक स्ट्रिंग value1 {get; सेट; } सार्वजनिक टी objT {get; सेट; }} और इस वर्ग की एक सूची। विशिष्ट value1 द्वारा MyClass की एक सूची प्राप्त करने के लिए मैं 3.5। लैम्ब्डा या लिनक का इस्तेमाल करना चाहता हूं I मुझे लगता है कि इस तरह से एक सूची को कैश करने के लिए .net 2.0 के रास्ते से यह संभव और बहुत सरल है: सूची & lt; MyClass & lt; T & gt; & gt; सूची; ... सूची & lt; MyClass & lt; T & gt; & gt; ListDistinct = नई सूची & lt; MyClass & lt; T & gt; & gt; (); Foreach (सूची में MyClass & lt; T & gt; उदाहरण) {// कुछ सूची को चेक करने के लिए कुछ कोड ओस्ट इंजेक्शन के साथ obj शामिल है। Value1 // फिर listDistinct.Add (उदाहरण); } यह करने के लिए लैम्ब्डा या LINQ तरीका क्या है? दोनों मार्क 's और दाहबेल के उत्तर बहुत अच्छी तरह से काम करते हैं। मेरे पास बहुत आसान समाधान है हालांकि। विशिष्ट का उपयोग करने के बजाय, आप GroupBy का उपयोग कर सकते हैं। यह इस तरह स...

oauth - Using Twitter OpenAuth -

I am currently starting a project which will interact with Twitter through its OpenAuth system and I Was thinking about something. If a user agrees to access my site in my Twitter account, can I log in to my account even if they are not on my site? For example, can I get a job at night that can drag all users' tweets and information really without reaching my site? Thanks! Yes you will not be able to do this if the tokens use Twitter is over, but they Do not do this.

java - Is there an Appfuse equivalent for .net mvc apps? (An open source C# .net mvc project that eliminates the ramp up time when developing applications for new customers?) -

I use the app in java to crank a quick web app, which is the front end of my choice and backend Framework is already configured. The app or maven was used to create web applications. Looking for .NET, there are similar settings; Java for device, i.e. ANT and nanat, hibernate and NHibernate, log4j and log4net, spring and spring.Net; Is there a similar project for the app for the net? The app is an open source project and application that uses open source tools created on the Java platform so that web applications can be developed quickly and efficiently. It was originally developed to eliminate ramps while creating new web applications for customers - first time was found. I think what you are called "Sharp Architecture", it is ASP with NHibernate. Net MVC structure is the basis of a solid architecture to create leverage web applications. To use any architectural framework, the primary benefit should be to write code while increasing the quality of the end code....

sql server - How to read and learn Execution plan of a T_SQL? -

How to read and know the TCLQ statement execution plan? If you are using SQL Server 2008, then query for "Include Execution Plan" There is an option on the menu. It will display the execution plan of the query after it is executed. To learn more about how to enable this feature: For more information about execution plans, what are they and how to use them, Grant Frichich's Find articles here:

zend framework - setting a default value in a dojo filteringselect -

I am trying to select filter using the Zend Framework, with the dojo enabled form. This form allows the user to update their profile such as address, URL etc. for their profile. Although elements in the form are using a filiteringselect for things such as country and state / county. I want to get it in default with this value, when I am populating it, not working. I'm populating as such $ form-> GetElement ('country') - & gt; Set val ($ country); $ The country will be priced like United Kingdom, France, Spain etc. These values ​​are stored in [ID] in the database, [name ]. Used by element in Z form $ county = new zend_Dojo_form_element_filteringselect ('county'); $ County-> setriyare (true) - & gt; SetstorID ('countystore') - & gt; Setstore type ('doodetitefileredstore') - & gt; Setstore Perm ('url' = & gt; $ baseUrl. '/ Dojo SetAttrib (' searchAttr ',' name ') - & gt; remov...

iphone - How to Play Videos Files from an iPod Video Library? -

How do I play video files from my iPod Video Library? Is there any other possibility to search and play stored video files anywhere on any iPhone? You can not only access iPod library at this time. There is currently no way to access any video outside your app sandbox (in other words, you can only download and play videos through your app). If you need access to the video library, there is a description of a bug with the apple that you need it.

sql server - MySQL, MSSql, Oracle: When to use which? -

What is the limit? Can each data be controlled regardless of disk space? Licensing believes that there is no problem? This is a very subtle question which can not really be answered easily , Because in every situation many plus and minus can be provided. In addition, MySQL is now owned by Oracle and the main functionality means that many branches mean MySQL! = MySQL now If you are really looking for a huge data set, then you start to see things like RDBMS sets and MapReduce and other large data set processing technologies. I have personally worked with application perspective in the last three decades or with three. All of their benefits, such as MSSLLL, will be working with other Microsoft technologies such as LINQ, where there is a huge Open Community Assistance and Oracle is built as a business area, where there is a lot of potential to embed data logic into the database is. Again, this really depends on the application, position, skill of those people who will ma...

json - Convert form data to JavaScript object with jQuery -

How can I convert all the elements of my form to a JavaScript object? Without looping on each element, I have a way to automatically create a JavaScript object from my form. I do not want any string, as given by $ ('# formid') has gone. Serialize (); , and I do not want to return the map by $ ('# formid'). SerializeArray (); Already completely fine. You just need to massage the data in your required format: function object (form ARRA) {// serialize data function var returnArray = {}; (Var i = 0; i & lt; formArray.length; i ++) {return arrow [farmer [i] ['name']] = formarere [i] ['value']; } Return back; } Look for hidden areas that name the actual inputs, because they will be overwritten.

xaml - WPF Spell check -

I'm playing with integrated spell check in WPF. I have to configure it dynamically back to the code, not just in XML The XAML solution works perfectly (spell check. ISNActed = true + xml: lang feature). However, if I try to enable spell check using this code snippet, then it does not work: thread Existing content Current Agriculture = New CultureInfo ("N-US"); Thread Existing content Current Ukraine Agriculture = Thread. Present. Tb.SpellCheck.IsEnabled = true; Any ideas? Thank you very much TB.Language = system. Windows Marck up. Xml language Gate Language ("N-US"); Tb.SpellCheck.IsEnabled = true;

osx - How to associate py extension with python launcher on Mac OS X? -

How can I add PI extension with Python interpreter on Mac OS X 10.5.7? I have received application to associate this application (/System/Library/Frameworks/Python.framework/Versions/2.5/bin/python), but Python is a non-selectable executable Any idea as a grade-out item appears? Python OS X Python installers include an application called "Python Launcher. Want to do it for AN / 2.6 / / application / MacPathon NN / 2.5 and earlier / application / Python NN Has been established in In your preference panel, you can specify which dragon is executable; This can be a command-line path, which includes one Apple-installed on /usr/bin/python2.5. You will also need to make sure that .py is associated with "Python Launcher"; You can use the Finder's Information command to do this as described elsewhere, however, be aware that it can be a security risk when downloaded. .p script is automatically launched by your browser (note, 10.5 does not include "Python Launcher...

c - Naming scheme for typedefs -

I am working on a library which is used for mass production typedef struct foo_bar_s {...} foo_bar_t; This is a bad idea to use the _t suffix, because it is a POSIX reserved namespace _s suffix for Structs is also pretty useless. So I thought I could turn it into typingfuffefu_bar {...} foo_bar; Or if the configuration name is not required typedef struct {...} foo_bar; However, I can not separate typingfaces from regular symbols (variables, etc.). Is this really such a big thing and should I use a different appropriate naming scheme for typefaces? Or does it make any difference? I'm not really so sure what you think? Apart from this, what are the recommendations you have for typefay naming schemes? However, "_t" is reserved, it is not very likely that you will face a problem. However, this conference is the remainder of the earlier versions of C, where this syntax was required for the name of the Stacket, and so nowadays you can just write som...

Java Exception printing twice -

I know there is no point in exception, but I was trying to figure out how to use exceptions. The only problem / problem caused by my exception exception is to hide the error message twice to the console. Import java.io.File; Import java.io.phileNotFoundException; Import java.io.PrintStream; Import java.util.Scanner; public square Project3 {public static zero main (string [] args) {try {string inputFileName = null; If (args.length & gt; 0) inputfile name = args [0]; File inputfile = FileGetter.getFile ("Enter the full path of the input file:", inputfile name); String output filename = null; If (args.length & gt; 1) output filename = Args [1]; File outputFile = FileGetter.getFile ("Enter the full path of the output file:", outputFileName); Scanner = new scanner (inputfile); Printstream out = new printstream (outputfile); Person person = null; // Read the record from the input file, get an object from the factory, // output the class in the output file...

sql - Creating tables with fields from 3 different tables -

I am trying to create a new table for the data group from the following three tables. Fields in account_no fields BMF and acct_map are actually taken from CMF fields. : BMF: account_no, trans_date CMF: account_no, balance_due acct_map: account_no, external_id fields I want in my new table: external_id, account_no, balance_due When I use Query 1, without external_id column, it works fine and correctly Fills the data. But when I try Query 2, it creates an empty table. Why is it happening query1: select the table bmf.account_no, sum (cmf.balance_due) postpaid_balance from BMF, making payments in the form of CMF where TO_CHAR ( BMF trans_date, 'YYYY MM DD') = '1996 08 14' and bmf.account_no = cmf.account_no group bmf.account_no from query 2: select table bmf.account_no, sum (cmf.balance_due) postpaid_balance, acct_map.external_id from BMF, CMF, acct_map where TO_CHAR (bmf.trans_date, 'YYYY MM DD') = '1996 08 14 'and mak...

x12 - generating 9 digit ids without database sequence -

I want to create a 9-digit numerical ID which is unique to machines. I am currently using a database sequence for this. But I am thinking that it can be done without any one. The scenes will be used for X12 EDI transactions, so they do not always have to be unique. Each server has 2 digits server identifier Each server keeps a file, it essentially keeps track of a local sequence. ID = + & lt; 7 points sequence which wraps> My biggest problem with this is what's hard to do- the flow fails. I do not know where it was left. All of my ideas are essentially the end to rebuilding a centralized database sequence. Any thoughts? If HD fails, then you can only set new and unused 2 digits server identifiers and make sure Make sure the number is unique (for at least 24 hours))

How to find the path of Database file in Android Emulator? -

I am performing some SQLite queries in the Android emulator. I want to know which path is collecting database files. Pls let me know how to find it to me if u can provide me some code snippets. urs, s.kumaran. database usually /data/data/your.applications .package / databases are stored in and you can use adb shell to CD in that directory and sqlite3 .

exec - What is the best way to call a Python script from another Python script? -

I have a test1.py name that is not in a module. It only has code that should run because of the script. There are no functions, classes, methods, etc. I have another script that runs as a service. I want to call test1.py from the script running as a service. For example: file test1.py print "I see an exam" print "! I'm not anything productive." file service # many things here test1.py # which is also in test1.py I know about a method that is opening the file, reading the material, and basically eval'ing it. I am assuming that there is a better way to do this. Or at least I hope so. The usual way to do this is as follows. Def some_func (): printed 'test1, unproductive' if __name__ == '__main__': # test1.py script # executed as something something_func Import () service.py import test1 def service_func (): print 'enjoy service' if __name__ == '__main__': # # Execute as feature.py script # service_...

Oversized Qt Fonts on OSX -

Why does QT appear on the OSX default in larger fonts? Even when you manually select the same font size, the fonts look a bit bigger. Does the Qt OSX on OSX use a different font rendering? Does this improve if you use QT for cocoa? Alternatively, is there a QTConfig tool or set the font setting for all QT applications globally? Thank you! Max Howell is correct. In native OS X applications, you have got the option to set small and small size in your windows and widgets. These will then select smaller fonts and also change the size of some graphical elements. Many OS X designers use it, and therefore an application that does not follow these conventions, the OS is more likely to see X. As mentioned, QT provides it which can change it: Qt :: WA_MacNormalSize , Qt :: WA_MacSmallSize , Qt :: WA_MacMiniSize , Qt :: WA_MacVariableSize - but unfortunately, it seems that many people do not know about them and if they do, then their implementation is a hack Is a bit because...

c++ - DirectX9 Texture of arbitrary size (non 2^n) -

I am relatively new to DirectX and I have to work on existing C ++ DX9 application. The app monitors the camera images and displays some direct-more (i.e. 2D) content. There is an aspect ratio of 4: 3 (always) in the camera and the screen is undefined. I want to load a texture and want to use this texture as a mask, so tracking and displaying content is done only within the masked area of ​​texture so I have a texture I would like to load, which has the same size as the camera's images. I have completed all the steps to load texture, but when I call GetDesc () field width and The height of D3 DSURFCDUNDC is the next big power-of-2 size. I do not care that the actual memory used for texture has been optimized for the graphics card but I did not find any way to get the dimensions of the original image file on the hard disk. Search for the possibility of loading the RAM in the computer (no graphic card is needed) without adding a new dependency to the code (and done b...

C# 2005 COM and .NET Access Denied 0x80070005 E_ACCESSDENIED -

I am re-writing to the C ++ app in C # 2005. There are 2 components in the app: an out-of-process com server which will be started by a C ++ service, the com server uses the outgoing interface, which means that it is the event handler method from the C ++ service module on some events. Invites. I'm rewriting the C ++ service part. Right now, Jute has developed an app that uses runtime callable caps and connection points to start com server. And provides implementation for the event handler method. When I run the app, the COM server starts well, but I get an exception when the COM server tries to call the event handle handler method. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) I have searched a lot on the web and these are some of the topics that are related to my problem: Any help would be greatly appreciated. I solved the problem by uninstalling the old version of DLL from GAC and then I was able to build DLL without E_ACCESSDENIED error.

objective c - hitting a next button for a UITableViewcell -

I was wondering how I could know the following: Creating a next button and when it comes to the next UITABAVE line Tapes are selected Since a picture is equal to thousand words, I've added a screenshot. As you can see below I added a toolbar and if I have to select this next line on the right button how can I contact it ps I want the line to work as it has been touched (so I can take any action behind it) Something like this should do the trick: - (zero ) Select Next Line {NSIndexPath * selectedRow = [self.tableView indexPathForSelectedRow]; NSUnitor Row = Selected ROOW.row; NSUINTEGER section = selected road.Section; ++ row; If (line & gt; = [self.tableView numberOfRowsInSection: selectedRow.section]) {line = 0; ++ section; If (section> = [self.tableView numberOfSections]) {line = 0; Section = 0; }} NSIndexPath * rowToSelect = [Self TableView: self.tableView willSelectRowAtIndexPath: [NSIndexPath indexPathForRow: in line: Special: section]]; [Select S...

.net - Will an exception created during rollback logic within another catch wipeout the stack trace of the original exception? -

I have a method, which a) inserts a line in the table, and then b) the resulting identity value is used multiple If the argument in Part B fails for any reason in another table, then I need to rollback all the inclusions for parts B and A. I am quite sure that the transactions will not work for it, although I am otherwise convinced. I have a "main" method that manages calling both A and B, in ways that are surrounded by a try-gap. What I am thinking, if I call a method which is the main method If rollback performance is from the grip and fails in some rollback method, an exception will be caught in the rollback method (I want to log in it) eliminating the stack trace (or something else) the main method of exception Caught in? Code example: Public class DoSomeStuff {Public Zero MainMethod (...) {int intro; Try {identity = DoFirstInsert (...); DoSubsequentEnerts (Identity, ....); Hold (rollback stick); throw; }} Cancellation of Rollback Stuff (Intident Identity) {Try {Da...