Posts

Showing posts from July, 2015

reporting services - How to make a scheduled report take holidays into consideration? -

I have a report that needs to be emailed every Friday (weekly report). If it falls on holiday on Friday, to create this report, in any way can be emailed through a table on a Thursday or holidays in a similar nature. I think a more appropriate question might be: Is it possible to have data-based programs in SSRs? To be specific, all holiday users will be defined. Ideally stored in a SQL DB. If that report is available in this table compared to the report, it will be given one day earlier. Reporting services can not do this by default. An alternative solution may be: Create a table with a holiday For each report Create a weekly schedule, day to run on Friday Setting Create scheduled jobs in SQL Server Agent to run at the beginning of each week, if this week If the holiday then ek If it is, it will update the optics from 32 (Friday) to 16 (Thursday) on the Schedule table on your report server, otherwise it will set to DayOffV value 32 (default) Important: ...

How do I override widths in 960.css? -

I have a 24 column page which is based on 24 column 960 template. I have an element that should be specific with 84px. I tried to write a markup like this: & lt; Div class = "container_24 grid_84" & gt; & Lt; / Div & gt; I tried to write CSS like this: .container_24 .grid_84 {width: 84px! Important; } It is not being set to 84px, which is set to 960px. Is it fair to show it? Your CSS is as follows: .container_24 .grid_84 is in the search for an element with a class of grid_84 which is a child of container_24 But you are actually looking at it in your HTML: .container_24.grid_84 This is an element with both classes, Shows Side Advice: Do not mix Grid Framework syntax with yours. Refers to 24 columns. Your 84 refers to a specific pixel. I recommend using some of the lines of .override_84px , so it's obviously Those who are not part of the grid framework will have to see your markup. Besides, since you are...

Rails 3 getting nested records -

मेरा सेटअप: रेल 3.0.9, रूबी 1.9.2 मॉडल: वर्ग उपयोगकर्ता has_many: पोस्ट है has_many: photos class पोस्ट is_many: user has_many: comments class photo is_to: user has_many: comments class टिप्पणी को सम्मिलित करना है: post is_to: photo at at उपयोगकर्ता स्तर, मैं user.posts और user.photos से जुड़ी सारी टिप्पणियों को पकड़ना चाहता हूं, यह संभव है और यदि ऐसा है, तो क्या है वाक्यविन्यास? user.posts.map (और: टिप्पणियाँ) या user.photos.map (और: टिप्पणियाँ)

Jquery Daily Timer Failing -

I am using this jQuery code to display locally up to 10am on the left. It removes some images between 10am and 14:00 Then after 14:00 it should spend time till 10:00. It adds the offset to the account for the weekend too It works brilliantly at the most time, although after 14:00 it seems that this route goes along. . Can anyone see why this is unsuccessful, I am looking for it for a long time ... now I am just confused! help please! $ (document) .ready (function () {// 24 hour based var targetTime = 1000; var targetHour = 10; var openingTime = 1400; var openingHour = 14; var CurrentTime = new Date (); // Sun 0 Mon 1 ... Venus 5 Saturn 6 var Current day = Current time .getDay (); var offset = 24; // if Friday (current del === 5) {offset = 60;} // Saturdays and if (current day === 6) {offset = 48;} var the_current_time = '' + current time.gethors () + '' + current time.get minute () + ''; if (the_current_time & Gt; Target Time & amp;; Amp; ...

google app engine - Facebook linter says url invalid on AppEngine App -

I'm running an app engine app that is being displayed on an open domain using Google Apps. When I call the appena url, the correct open graph values ​​the value. However, if I point it to the naked domain then it says that the URL is invalid and it is "blocked or is being reached for a long time, so we are not bringing it." How does anyone have any idea to solve it? Edit: I used the qualified (www) domain and redirected it to the naked domain. However, Facebook is still not giving the same error as the URL before. App Engine does not support naked domain closed service You (www.foo.com) Domain should be used.

c# - Breaking the .NET MEF import chain -

For this example, you might assume that the upper part is importing the class. By the time you import everything (i.e. ClassX), MEF works very well. Often you do not need to import because classb is in the same name space / file as a result the import chain is now broken and my logs are never created. In my example, Classbie Logger is trying to import the service, which may be the desire of almost all classes. If anyone has the purpose / best MEF solution for this issue? 1) Once the import chain breaks down, then the import is never used again. Instead you will have to start constructing / constructing all types of constructor (i.e. new classbie) This works in this example, but it is messy if the intermediate classes are not used in the series. 2) Use the IceSwalker in system namespace to import Classbase, as far as I know that the Serverside (for example, the Prism Framework) is the only essence of dependency injection scheme. For example if classbie If ISISLL can import, th...

php - How do I include my ID with the ID's from a SELECT and JOIN statement? -

I have been completely stumped on this, and the reasoning behind this is not correct, so I once asked the experts Changing again These are my tables: | Table. Follow | Owner ID | UserID | | Table.supers | | ID | Username | Table. Posted in | | ID | Owner ID | Posted in | Date | I am using posts with information about the user. So the argument came with me ... Follow. Honored = Follow me more. Userid = user.id = post. OnorID But also, how would I include my own postings? Here's my SQL: SELECT * from the table. Post join tables. User on table.post. Owner ID = table.USERS.IdOn table. Follow the table. Owned = Table. Follow. USIDID and Table. behind. OnerID = 'MyDay' order, table.post.date DESC but it is not giving me posting as well, it only provides posting of users I am following. The issue is that I am using the ID that I am getting from the table. Follow, and obviously I can not follow myself. So I did it but it does not work: Choose...

How to parse only the children where attribute = foo from xml using android.sax? -

I have a few data stored in an XML file like so: & lt ; Group name = "example" & gt; & Lt; Article Name = "Foo" & gt; & Lt; Content & gt; Visit the website. & Lt; / Content & gt; & Lt; Link & gt; & Lt; Title & gt; Lipsum & lt; / Title & gt; & Lt; URL & gt; Http: //www.lipsum.com/feed/html< / URL & gt; & Lt; / Link & gt; & Lt; / Article & gt; & Lt; Article Name = "Bar" & gt; & Lt; Content & gt; Visit the website. & Lt; / Content & gt; & Lt; Link & gt; & Lt; Title & gt; Google & lt; / Title & gt; & Lt; URL & gt; Http: //www.google.com< / URL & gt; & Lt; / Link & gt; & Lt; / Article & gt; & Lt; / Groups & gt; Say I want to parse the specific article where name = "foo" is using the android.sax package in Android, but let me I do not know if this has the potential too....

javascript - Law of Demeter/single responsibility when events are involved -

I am trying to resolve the law of dementors for programming environments where incidents are involved - I used this JavaScript and OBJ- C is tagged in Coca's NSNotificationCenter) because both events allow for. In such an environment, you can only tap them and tie up / subscribe events. Instead of going through the context of that object in OBJ-C, it may be easy to do this, on which you need to apply a method. I'm thinking that maybe it's not always good to use: On the display's perspective, you miss on optimization for a dispatch of the method (possibly unless it is not a big app). A programmer for readability may want to make it clear that one object is dependent on another, which is not clear when an object only throws events. I should have some idea about the role of events in software architecture: how do you want to balance the cost of event binding and direct method? Be careful, your terminology "Event" in the GUI context often means that u...

iphone - Problem with adding framework into project -

Image
The project is taken from SCM repositories. Some frameworks are visible in red: do not get deleted properly or in the project. When I'm trying to add an essential framework, The red color shown in the text is the name of a structure, which means that I have not added the framework properly for this project. How can anyone connect the structure in this matter? @ Thanks beforehand These libraries are red-red indicates that Xcode can not find them. It is possible that your Xcode is installed and it needs to be reinstalled. Are other projects compiled properly?

php - Why does this loop give up halfway through? -

$ list is a very large array with a series of words, some of which There are 5 letters and some of which are small, this loop will unset all the values ​​where the word length exceeds 5 characters. ($ I = 0; $ i & lt; count ($ list); $ i ++) {$ list [$ i] = trim ($ list [$ i] for ); If (strlen ($ list [$ i])> 5) {unset ($ list [$ i]); Although}, it cuts for almost half the $ list and cuts the dead, there are words that are still more than 5 characters in the list, but only start about halfway through. What is it left? Should I run that loop multiple times? You are counting every time, and you are unstable before loops before loops It is a good practice to do the number of calls only once, because it greatly reduces the number of function calls you make. $ count = count ($ list); ($ I = 0; $ i & lt; $ count; $ i ++) {$ list [$ i] = trim ($ list [$ i]) for; If (strlen ($ list [$ i])> 5) {unset ($ list [$ i]); }} Or for fun, use array_map / array_filter: ...

java netcdf 4 tutorial -

I am using the latest netcdf jar library from the unidata website here: I have a Java Looking for Netcdf 4 tutorials / examples but I can not find that thing on my website or anywhere else. Version 4 differs considerably in comparison to previous versions that the writing work (to write data in a variable) is no longer used and has been replaced by a written CDL ... I think. Has anyone used the latest version with Java? I really appreciate it if someone can tell me in the right direction Thank you for your help! -dom P.S. Here is their tutorial website ... There is no mention of Java: I am currently working I am using a project using NETCDF. Unfortunately, the NetsCD API for Java does not write write to NCTCF4 files. To help you with this API tutorial on written support for NetCDF-3 files or using it in Java, you can find API Login here: And Tutorial: I'm sure this will help you. NCTDF is a great way to store scientific data, but NetsDF-3 lacks a lot of fea...

linux - Perl IDE over SSH -

Is there a Perl IDE / editor that supports remotely working on files (via SSH)? Currently I am using shell with shell; Nano on remote machines, and while working locally, I usually use Aptana Studio (Eclipse + EPIC). ps: I am working under Linux. Thank you, You can mount remote file system with sshfs, After that, any local IDE can work with

Why does adding id="ad_a" to a HTML element sometimes make it invisible in Chrome and Firefox? -

मैं आपको HTML का एक सरल स्निपेट लाता हूं: & lt; HTML & gt; & Lt; HEAD & gt; & lt; / HEAD & gt; & LT; body & gt; & Lt; div id = "ad_a" & gt; परीक्षण डीआईवी & lt; / div & gt; परीक्षण शरीर & lt; / body & gt; & Lt; / एचटीएमएल & gt; हाँ, कोई सिद्धांत नहीं है या आप क्या हैं, लेकिन उस में से कोई भी इस अजीब व्यवहार के लिए बात नहीं करता है। क्या कोई मुझे बता सकता है कि मेरे div क्यों फोन कर रहा है आईडी = "ad_ (यहाँ कुछ भी)" इस div के अंदर सब कुछ छुपाता है? यह सिर्फ .. गायब हो जाता है .. यह पृष्ठ स्रोत में दिखाई देता है लेकिन यह लोड किए गए पृष्ठ पर दिखाई नहीं देता .. मैंने पहले इसे Google Chrome में देखा था फ़ायरफ़ॉक्स इसे अनदेखा कर रहा है (कम से कम मेरे लिए, लेकिन मेरे दोस्त का कहना है कि यह उनके एफएफ में होता है) मेरा इंटरनेट एक्सप्लोरर 9 भी इस डिवेल नेम की उपेक्षा करता है और पृष्ठ पर अपनी सामग्री दिखाता है। क्या चल रहा है और यह ऐसा क्यों करता है? क्या यह सामान्यतः उपयोग किया जाता है? यदि हा...

Am I going crazy with the Perl string comparison operator? Debug log included -

I should remember something about variable assignment or string comparison. I have a script that is running through a different file from one tab. Unless there is a special value in the line "P", I go to the next line, the code looks like this: 1 print "processing inst_report file ... \ n"; 2 foreign (@inst_report_file) {3 @ line = partition (/ \ t /); 4 ($ line [13] "p") & amp; Amp; the upcoming; 5 $ inst_report {$ line [1]} ++; 6} For some reason, the script will never be found on line 5, even if there are clearly lines with "P" in it. Then debug time! # continue the breakpoint of the DB & lt; 13 & gt; C Main :: (count.pl:27): ($ line [13] "P") & amp; Amp; the upcoming; Explaining that this particular array element is actually "P", in which there is no leading or trailing character. DB & lt; 13 & gt; P "- ​​$ line [13] - \ n"; - P - # Prove that I am not mad and the Perl strin...

sql server - Change datatable and tableadapter schema at runtime according to stored procedure. C# -

I have a dataset and table adapters for the table in that dataset. The problem is that to fill TableAdapter DataTable Uses the stored procedure, but the amount of returned column may vary. How can I change the datatylet's schema on runtime to get all the columns from the stored procedure? In my opinion, leave the idea of ​​using a data adapter, it is completely unnecessary Do this instead to get DataTable: using (SqlConnection con = new SqlConnection ("Conectionstring")) {con.Open (); (Using SqlCommand commnand = new SqlCommand ("StoredProcName", con)) {command.CommandType = CommandType.StoredProcedure; SqlDataReader Reader = command.ExecuteReader (); Datatyal table = new datatelle (); Table.Load (reader); Return table; }} It is no longer a matter that you return the call to the call #, all of them will be included in the dataet edit: & Lt; Configuration & gt; Move the actual connection to your connection to the following section in you...

ruby on rails 3 - How to write cucumber test? -

I want to write the test to post the edit as I write something: on the "/ post / 1 / edit" page but at this time I have not recorded with ID = 1, even if I made it in the previous test How to solve it? Because it is a test database, you will not know exactly what the id is. I think you are better to follow the edited link from the index after the post is created.

winforms - How to add tooltip to enum selection in propertygrid in C#? -

I came to know how to use the basic features of an PropertyGrid and I found out that my enum constant is not enough Self explanatory. Is it possible that when the user opens the list of all the constant constants that appears for a tooltip, which continuously he raises his mouse? For example, if I have a property in some grid which is some ANNUM and value is Enum1, Enum2, Enum3, when the user wants to change the value of the property, then he brings down the list and anom is more than 1, a tooltip "This Enum1" and will look like this. You want to override the default convert-to-string functionality of enum as described in these : Or this MSDN article:

php - json not giving back the proper result from database array -

I am returning two lines from my query, I tested it in phpadmin. In the firebug, I can only view data from one row. Do not I know what can be wrong? $ data = mysql_fetch_assoc ($ r); }} Header ('Content-Type: App / Jason'); $ Output = array ("check" => gt; check, "user" = & gt; $ data, "testnumberoffrows" => $ number); Echo json_encode ($ output); AjaxFunction if (data.check) {var user = data.users; Console.log (user); Thanks, Richard mysql_fetch_assoc () only a fetches the line until it FALSE creates an output array, you need a loop. Something like this: while (($ row = mysql_fetch_assoc) ($ R)) == FALSE {$ data [] = $ line; }

apache - How to set up 2 SSL cert on a single webpage -

I am running an Apache web server and I have to enter 2 SSL certificates on a website. Is this possible? how can I do this? I read the Apache user manual and it says that only one IP and port can have only 1 SSL certificate. After comments from OP: Set up two subdomains - Not for stability / CDN content for one and one / Dynamic / CDN content. Obtain a "wildcard certificate" for your domain i.e. "certificate com for .yourdomain" ... this is slightly more expensive for your situation but actually ...

cocoa touch - When is UITableView's reloadData Synchronous? -

Reload a UITableView When the Data Method Is Synchronous vs Asynchronous? There is nothing mentioned about this in Apple's documentation, and I have seen that the reload data functions do both synchronous and asynchronous, which really confuse me. What type of plan does Apple differentiate? Does anyone know? The update in the UI is always synchronous but it is possible to update the data asynchronously, to reload the data Before making calls and updating synchronous UI.

c# 4.0 - Facebook SDK C# -

I am trying to parse Facebook API via some AD / Feed API using Facebook ADC C # I am But I can not parse the keys quite right. Does anyone have an example of how it should work? dynamic FB = new faceback client (token); Dynamic feed = fb.get ("123456 / feed"); Var msg = feed.message; // (does not get intellisense) or var msg = feed ["message]; // Returns (no data key error. You must also pass the App ID and the app to the FaceBack client. Confidential: Confirm: & lt; facebookSettings appId = "123" App Indicator = "ABC" Site URL = "..." canvas page = "..." Canvas URL = ".." Cancel "=" ... "/> Try again: FacebookWebClient fbWebClient = New FacebookWebClient (); Dynamic result = get fbWebClient ("123456 / feed");

How to add a line break in C# .NET documentation -

It should be easy waaaay ... I want to add a "coded" line break XML documentation in code /// & lt; Summary & gt; Get a human-readable version of the SQL WHERE statement of the /// Search Element. & Amp; Lt; Br / & amp; Gt; /// Instead of SQL, this method gives a string with a mark-token, which can be used to represent /// in a short picture format. /// & lt; / Summary & gt; As you can see, I get some answers that are & lt; And & gt; Bracket Interesting, good 'ol language & lt; Br / & gt; Line breaks do not make a line break in the Intellisense popup. I find it bother ... Any suggestions? a & lt; Para / & gt; Add . This will give you paragraph breaks.

javascript - How to enable the keyboard event for a html div? -

मेरे कोड में एक ऐसी div है: & lt; div style = "text -निरचना: रेखांकित "onmouseover =" this.style.cursor = 'सूचक'; " Id = "& lt;% = namespace% & gt; _pmProfileName_ & lt;% = i% & gt; _" onclick = "perfChartConfig_ & lt;% = नामस्थान% & gt;। शो ShowProfilesForElement (this);" & gt; & lt; / div & gt; अब इस लिंक पर क्लिक करने से एक नई पॉपअप विंडो खुल जाएगी। लेकिन यह बात केवल माउस क्लिक करके ही किया जा सकता है। मुझे यह भी प्रविष्ट करें बटन दबाकर करना है। कोई भी विचार यह कैसे करें? jQuery की तरह एक जावास्क्रिप्ट फ़्रेमवर्क का उपयोग करें, और इसका सुबूत-दस्तावेज का उपयोग करें।

.net - Best free auto updater c# -

What is the best free auto update tool for pure desktop applications at this time (for this date)? I use ".NET Application Updater Component", but it remains in 2002. --- No click-ins (this has many limitations) try it

In an Android Gallery, how do you listen to a locked in image? -

When I flip through an Android gallery, it goes to an image and the focus stops on it mCoverFlow.setOnItemSelectedListener () {@Override the item selected on public zero (adapter view & lt;? & Gt; ARG 0, see V, condition of the interval, long arg3) {// condition will give you locked items} @ Override on public zero Not even Selected (adapter view & lt;? & Gt; arg0) {}});

iphone - Non-English Characters in JSON -

I am using a JSON file that contains non-English characters. So when I'm getting value from this file, I'm showing some sugar-like characters in the simulator. In the console, I \ U2021 \ U00c6 \ U00e1 \ U2021 \ U00c6 \ U00a9 \ U2021 \ U00d8 \ U00e7 \ U2021 getting value such as \ U00c6 \ U00b1 \ U2021 \ U00d8 \ U00e0 \ U2021 \ U00c6 \ U00d6 \ U2021 \ U00c6 \ U00d6 \ U2021 \ U00c6 \ U2264 \ U2021 \ U00c6 \ U2122 \ U2021 \ U00d8 \ U00e7 \ U2021 \ U00c6 \ U00b1 \ U2021 \ U00d8 \ U00e0 \ U2021 \ U00c6 \ U00ef \ U2021 \ U00d8 \ U00e7 \ U2021 \ U00c6 \ U00ef \ U2021 \ U00d8 \ U00c7 \ U2021 \ U00c6 \ U00fc ... Any ideas? Try to print in this way: NSString * currentString = [[[NSString alloc] initWithData: character buffer encoding: NSUTF8StringEncoding] autorelease]; NSLog (@ "converged string:% @", current string); where characterBuffer is the buffer where you collected the data obtained, NSUTF8StringEncoding Replace with the appropriate encoding u...

algorithm - What's the insert complexity of btree? -

It seems that when a new node is inserted (whose complexity is O (logen)), the whole tree is re-balanced should be done . What is the complexity of balance again? This height is the tree. It does not get reborn in the meaning of binary tree when you add node, if it is due to division, then you put a key in the node above it if it causes division as part, then you only get one level up Do, etc., until you reach the root. So the complexity is (logen).

cluster computing - QSUB a process for every file in a directory? -

मैं उपयोग कर रहा हूं qsub -t 1-90000 do_stuff.sh मेरे कार्यों को एक सूर्य ग्रिडईएनजीन क्लस्टर पर जमा करने के लिए, लेकिन अब मैं खुद डेटा सेट (सुपर बड़े वाले, भी) के साथ मिल पाता हूं जो इतनी आसानी से नाम नहीं देते हैं इस बारे में जाने का सबसे अच्छा तरीका क्या है? मैं उन सभी का नाम बदलने का प्रयास कर सकता हूं, लेकिन इन नामों में जानकारी होती है जिसे संरक्षित करना चाहिए, और यह स्पष्ट रूप से कई समस्याओं का परिचय देता है मैं सिर्फ जेएसंस में सब कुछ प्रसंस्करण कर सकता था, लेकिन अगर केवल qsub -all_contents_of_directory का तरीका होता है, तो यह आदर्श होगा। क्या मैं एसओएल हूँ? क्या मैं सिर्फ सवाल में डायरेक्टरी पर जाना चाहता हूं और मिल सकता हूं। -एक्सएसी 'qsub setupscript.sh {}'? नौकरी जमा करने के लिए दूसरी स्क्रिप्ट का उपयोग करें - यहाँ एक उदाहरण के लिए मैं जहां नौकरी के नाम में निर्देशिका नाम चाहता हूँ। "Run_openfoam" विशेष निर्देशिका में pbs स्क्रिप्ट है। #! / Bin / bash सीडी $ 1 qsub -N $ 1 run_openfoam आप इसे अनुकूलित कर सकते हैं लिप अपनी नौकरी के अनु...

iphone - How to sort NSArray? -

संभव डुप्लिकेट: मैं NSArray से डेटा को UITableView में लोड करने के लिए कोड का उपयोग कर रहा हूं। मैं उन्हें कैसे वर्णानुक्रम में सॉर्ट कर सकता हूँ? मेरा NSArray नहीं NSMutableArray है और न ही मैं शब्दकोष defaultVot = [[NSFileManager defaultManager] सामग्रीओफ़ डायरेक्टरीआपपथ का उपयोग कर रहा हूँ: पथ तोट त्रुटि: & amp; त्रुटि]; NSString * fileName = [[डिफ़ॉल्टवॉट ऑब्जेक्टअटइंडएक्स: इंडेक्सपैथ.रो -1] आखिरी पथाइयां]; NSString * filename बिना एक्स्टेंशन = [फ़ाइलनाम substringToIndex: [फ़ाइल की लंबाई] -4]; Cell.textLabel.text = filename बिना एक्स्टेंशन; जांचें और भी

c# - video not found or access denied when playing .flv file -

मैंने अपना कोड .flv फ़ाइल का उपयोग किया है: & lt; script type = " पाठ / जावास्क्रिप्ट "& gt; Var खिलाड़ीफ्लवी = नया SWFObject (पथ + 'खिलाड़ी एसडब्ल्यूएफ', 'प्लेयर', '500', '350', '9'); PlayerFlv.addVariable ('अनुमतिप्राप्त स्क्रीन', 'सच'); PlayerFlv.addVariable ("अनुमतिप्राप्ति", "हमेशा"); PlayerFlv.addVariable ("सक्षम जावास्क्रिप्ट", "सच"); PlayerFlv.addVariable ("छवि", पथ + छवि); PlayerFlv.addVariable ("फ़ाइल", पथ + 'वीडियोफ़ाइल /' + वीडियो); playerFlv.write ( "playerview"); & Lt; / स्क्रिप्ट & gt; आईआईएस में अपने माइम प्रकार में .flv एक्सटेंशन को जोड़ने के लिए सुनिश्चित करें कि यह होनी चाहिए I / O : वीडियो / x-flv

java - Does creating a File object create a physical file or touch anything outside the JVM? -

जावा वर्ग फ़ाइल में 4 कन्स्ट्रक्टर हैं: फ़ाइल (फ़ाइल माता पिता, स्ट्रिंग बच्चे) एक मूल फ़ाइल नाम और मूल पथ पथ से एक नया फ़ाइल उदाहरण बनाता है। फ़ाइल (स्ट्रिंग पाथनाम) फ़ाइल (स्ट्रिंग पेरेंट, स्ट्रिंग चाइल्ड) फ़ाइल (यूआरआई यूरी) एक नया बनाता है फ़ाइल फ़ाइल को परिवर्तित करके: उदाहरण के लिए एक अमूर्त पथनाम में यूआरआई। जब मैं करता हूँ: फ़ाइल f = new file (" myfile.txt "); क्या डिस्क पर एक भौतिक फाइल बनाई जाती है? या क्या जेवीएम ने ओएस में कॉल किया है या क्या यह केवल जेवीएम के अंदर किसी ऑब्जेक्ट का निर्माण करता है? नहीं, नया फ़ाइल ऑब्जेक्ट फाइल सिस्टम पर फ़ाइल बनाते हैं नहीं विशेष रूप से, आप फ़ाइल ऑब्जेक्ट बना सकते हैं जो पथ (और यहां तक ​​कि Windows पर ड्राइव) को संदर्भित करते हैं जो मौजूद नहीं हैं। कन्स्ट्रक्टर करें पूछें अंतर्निहित फ़ाइल सिस्टम प्रतिनिधित्व यदि संभव हो तो कुछ प्रकार के सामान्यीकरण कार्रवाइयां करने के लिए, लेकिन यह नहीं को फ़ाइल उपस्थित होने की आवश्यकता होती है सामान्यकरण के एक उदाहरण के रूप में, इस कोड क...

grails - hbase - how to change tables structure without drop tables -

I use grails-1.3.2 and plugin. Sometimes I need to change the table structure new tables or columns). I have created a car table: class car {static belongsTo = [user: user] string color string model // ..... static barriers = {}} But when I want to create a car object: def create = {car car = new car () car. Properties = Parameter car.save (flush: true)} I got the following exception: error garm Save Percentage Method - APP_CAR org.apache.hadoop.hbase.TableNotFoundException: APP_CAR After running the application with add-drop, the alithing starts to work well. But every change I make After all the data can not be deleted, I thought that the plugin has to update all then, I see If anyone knows, then solutions please help. Grails will not automatically update for automatic tables, what if it is automatically in production Column drop? It's probably not what you wanted. There is a database migration plugin to do this and it is an excellent that tells...

math - Best way to find the Coordinates of a Point on a Line-Segment a specified Distance Away from another Point -

Image
इस समस्या की छवि यहां है: मेरे कोड में मेरे पास 4 अंक हैं: Q , आर , एस , T । मुझे निम्न पता है आर के लिए निर्देशांक, T , और एस ; वह खंड आरटी & lt; आरक्यू & लेफ्टिनेंट; आरएस ; मुझे Q के निर्देशांक का पता लगाना होगा। मुझे पहले से ही पता Q लाइन खंड TS पर पाया जा सकता है। हालांकि मुझे Q और I के लिए निर्देशांक प्राप्त करने की आवश्यकता है, इसे अपेक्षाकृत कुशल गणना की आवश्यकता है। मेरे पास इस समस्या के लिए कई समाधान हैं लेकिन वे सब बहुत जटिल हैं और लंबे समय तक मुझे पता है कि मुझे कुछ गलत करना होगा। मुझे लगता है कि इस को हल करने के लिए एक सरल सुरुचिपूर्ण तरीका होना चाहिए। सबसे अच्छा समाधान एक होगा जो अधिक गहन गणना की संख्या को कम करता है, लेकिन यह भी हास्यास्पद रूप से लंबा नहीं है। क्यू आर के चारों ओर त्रिज्या घ के एक चक्र और रेखा टीएस के बीच का अंतरायन बिंदु है, जो गुणांक में कई मापदंडों के साथ एक द्विघात समीकरण की ओर जाता है। मुझे नहीं पता कि अगर निम्नलिखित में सबसे अच्छा है ??? समाधान (यह भी बीच में एक संख्यात्मक solver का उपयोग करने के...

zope - What is the maximum number of sites in Plone 4.1 -

I would like to know how many sites / virtual hosts are permitted in the same installation of the plan. I'm currently using a zeocluster installation, I'm interested in theoretical max ie the infinite hardware, bandwidth etc. You can infer that you can do as much as you want. If they are accessed then your obstacles are memory and CPU, we usually deploy our multisite deployment with each mount for each site which means that there is a separate zodiac cache for each site. This means that every site uses more RAM on each zopay example, but it is infinite because it is not a problem for you :) If all sites are often accessed then CPU comes into play. More requests require more cores to avoid pending requests. The third factor is the database. Finally, if you write on sites that are often sufficient, then you maximize your zodb connection. This is not easy because zodb requests are light. However, if you have done so, you can probably use it by having restores and replicat...

mono - Not able to open MonoDevelop v 2.4.2 -

When I try to open a mono development then the console appears in the log Com.apple .launchd.peruser.501 [249] ([0x0-0x13013] .com.ximian.monodevelop [308]) Exited with exit code: 255 How can I fix this problem Edit: Snow Leopard 10.6.8, Mono Development 2.4.2 and Mono 2.10.5 Update: This error if I try to run monodevelop from shell error for LSOpenURLsWithRole () file /Applications/MonoDevelop.app -10810 failed with Update 2: I've found a crash reporter for mono Fatal error [2011-09-03 15: 06 : 25Z]: Failed to start mono development. Some assemblies needed to run mono development (for example gtk-sharp, gnome-sharp or gtkhtml-sharp) can not be properly installed in GAC. System.DllNotFoundException: On /Library/Frameworks/Mono.framework/Versions/2.10.5/lib/libgtk-quartz-2.0.0.dylib (native to successful envelopment) Gtk.Application: gtk_init (integer & amp; ;; IntPtr & amp; & amp; lt arg, Boolean probe); [0x00000] ;;) Gtk.Application.do_init...

Javascript - Regex access multiple occurrences -

इस सवाल का पहले से ही एक उत्तर है: 15 उत्तर मेरे पास यह पाठ है txt = "स्थानीय निवासियों o1__have g__in o22__ रिपोर्ट के साथ बुलाया ..."; जिसमें मुझे प्रत्येक o और __ के बीच संख्याओं की सूची प्राप्त करने की आवश्यकता है I txt.match (/ o ([0- 9] +) __ / जी); मुझे मिल जाएगा ["o1__", "o22__"] लेकिन मैं चाहता हूं ["1", "22"] मैं यह कैसे कर सकता हूं? देखें: txt = "स्थानीय निवासियों o1__have g__in o22__ रिपोर्ट के साथ कहा जाता है ..."; Var रिगेक्स = / ओ ([0- 9] +) __ / जी वाई मैचों = []; Var मैच = regex.exec (txt); जबकि (मैच! = नल) {matches.push (मैच [1]); मैच = रेगेक्स। एक्सएक्स (टीएसटीटी); } अलर्ट (मैचों);

oracle - Need a fix for merge update query (Simple but still confusing) -

तालिका में एक प्रयोग करें (तालिका 2 से चुनें *) b चालू (a.row_id = b.row_id और a .in_correct IS NULL) जब मिलान किया गया था तो सेट करें a.in_correct = 'Y'; उपर्युक्त प्रश्न में ओआरए -38104: स्तंभ पर संदर्भित कॉलम अपडेट नहीं किया जा सकता। मैं इसे सुलझाने के लिए घंटों तक बैठा हूं। मैंने यह पहचान लिया है कि समस्या फ़ील्ड में गलत है। यह फ़ील्ड "इनकाओक्ट" दोनों को धारा में और एसईटी के बाद भी नहीं लगाया जा सकता है। लेकिन मेरे मानदंडों को पूरा करने के लिए मेरे पास कोई विकल्प नहीं है। कृपया मेरी मदद करें तालिका में एक मेजबानी करें (तालिका 2 से चुनें *) b ऑन (a.row_id = b.row_id) जब मिलान की गई एटीसी सेट a.in_correct = NVL (inaccorrect, 'Y'); अद्यतन: एक और अधिक "सामान्य" कमांड (गैर शून्य मानों के लिए): तालिका में एक प्रयोग करें (चयन करें SELECT * टेबल से) * बी ऑन (a.row_id = b.row_id) जब मिलान किया गया था तो तयशुदा सेट a.in_correct = मामला जब in_correct = 'valuetobereplaced' और फिर 'वाई'; अन्य गलत; समाप्त;

sql - Determine most recent 'vote type' for a record, returning 2 fields for HasVotedUp/Down? -

I have a SQL Server 2008 table that contains 'votes', either a 'vote vote' or 'vote down' 'Are Voter ID (1 or 2 of course). Each time a vote is made in the vote, a timestamp is held. Each vote line is related to a post (FK post id ). Each vote line is related to any user (FK user id ). I have a query to return a list of posts, and in the same question, I want to know whether the current user has voted or not (or not at all). In some cases, a single post may include both an up and down vote, where the user changed his mind at a later date (changing one vote below vote) in this scenario , I want to identify the latest vote as the relevant vote (the original vote is held down just for the historical purposes in DB). Ideally, I should revert back to 2 simple bit areas within the query: hasvated up and hasdatedown I can include something like this (cut for short). Just enter the 'HasVotedUp' and 'HasVotedDown' property co...

qt - Meego 1.2 Harmattan and QCamera application -

Is there any way to work with the camera with the QCamera class in Nokia N9 (Mago 1.2 Harmatan) Should others use? Here's my problem: Simple applications that work fine on Nokia C6-01 (Symbian Anna), do nothing useful on the N9. Here are the code snippets: testmobile.pro & lt; ... & gt; CONFIG + = Mobility MOBILITY + = Multimedia LIBS + = -lQtMultimediaKit & lt; ... & gt; mainwindow.h class main window: public QWidget {Q_OBJECT & lt; ... & gt; Private: QCamera * camera_; QGraphicsView * view; QGraphicsVideoItem * videoItem; QGraphicsScene * view; & Lt; ... & gt; } MainWindow.cpp Main Menu :: QWidget * Guardian ... & gt; Camera_ = new quemera; See = New QGraphicsView (this); View = new QGraphicsScene (see); VideoItem = new QGraphicsVideoItem; View-> SetScene (view); Scene-> AddItem (videoItem); QVBoxLayout * lay = new QVBoxLayout (this); Draw & gt; AddWidget (see); This- & gt; SetLayout (keep); View-> Show ()...

c++ - Low performance of Incremental linking -

I have a large binary that is composed of several stable libs and standalone CPP files. It is configured to use incremental linking, all adaptations are disabled by / od / - this is debug build I have noticed that if I send any CDP file Changes, the incremental link runs fast - 1 minute but if I change any CPP in any static lib then it runs for a long time - 10 minutes, time like normal linking. In this case, I am not getting any benefit from incremental linking. Is it possible to speed up? I use VS2005. Set the linkir for the general property page for your project. This will link individual .obj files of reliance .lib instead of .lb, which may have some different side effects.

google chrome - How do I open a browser window from a desktop notification that's generated from a background page? -

I have created a simple Chrome application that has a background page that shows desktop notifications when a new article is available. If a user clicks the notification when a browser window is opened, they are taken to the new article page and everything is correct with the world. If the browser turns off the notification is shown, then the href does not open the browser. I have tried to capture the click and set a window. Open, but that too is not working. As a side, it would also be good if I would like to see if any help would be great! thanks / div> Whether the Chrome window is open or not. Open the new tab in open new window chrome.windows.getCurrent (function (currentWindow) {if (currentWindow! = Null) {return chrome.tabs.create ({'url': url });} Else {return chrome .windows.create ({'url': url, 'centric': true});}});

.htaccess - Zend Framework URL Rewriting Using Htaccess -

दोस्तों, मैं ज़ेंड फ़्रेमवर्क में .htaccess rewrite rule लिखना चाहता हूं। मेरा यूआरएल है मैं इस यूआरएल को रीडायरेक्ट करना चाहता हूं, इसलिए इस लक्ष्य को हासिल करने के लिए मैंने अपने मौजूदा .htaccess फ़ाइल का अनुसरण कर लिया है। RewriteRule ^ hotel-profile $ / अक्षम लेकिन यह मेरे लिए काम नहीं कर रहा है। मेरी .htaccess फ़ाइलों की तरह दिखता है: पुनर्लेखन इंजन पर पुनर्लेखन / पुनर्लेखन नियम ^ होटल प्रोफाइल $ / अक्षम # सक्रिय Zend फ्रेमवर्क RewriteCond% {SCRIPT_FILENAME}! -s रीवाइटकॉन्ड% {SCRIPT_FILENAME}! -l रिवेराइटकॉन्ड% {SCRIPT_FILENAME}! -डी रिक्राइटआर्यूल ^। * $ Index.php [NC, L] धन्यवाद आप एक प्लगइन का उपयोग क्यों नहीं करते जो एक प्रीविज़पैच विधि का उपयोग करते हैं? यदि आप इस तरह और अधिक पुनर्निर्देशों को जोड़ना चाहते हैं, तो यह उपयोगी हो सकता है।

How to format date in Kohana php -

I am using Kohana 3.1 and need to convert to format on 2011-04-21 21: 45: 00. 21:45:00 is the current time when the date will be selected using the date selector function. I need to compare the date and time I tried to format the date with the help of date assistant. $ time = date :: formatted_time ($ actual data, 'wi-m-dh: i: s'); But this error returns the "date of unchanged method: formatted_time ()"; I tried to do this - $ format = 'y-m-d'; $ Date = DateTime: createFromFormat ($ format, $ _POST ['real date']); and it has been given the "Time to call the undefined method" timetime :: bunfrom () "" error. How can I do this in Kohana or use PHP functions to format the date? Which php are you running (you can use phpinfo () to do this ) Kohana 3.1 requires a fairly recent version of php 5.2.x from memory You can use the original php date function as an option instead Date ('Ymd H: i:

architecture - Using Memcache for Centralization of Distributed Cache Against DB -

I'm new to remembering and thinking whether the following ideas work or exist with successful cases or just Going to the bin? Save me and any guidance is highly appreciated. It goes here ... Currently 1 MySQL DB is using memmache using additional memory to feed the already hungry webserver, which works in the frontend. Now we are going to start a new DB and webserver again and have not forgotten a son hungry to eat, we are considering alternate ways to do mashchach so that more DB and webserver should be connected in the future quickly. Could: Introduce a standalone server that is dedicated to running a mammesk and it is a lot of stuff, with lots of RAM and hard disk apps Get all DB examples to feed the luggage memory server Monitor memory usage from time to time to create scaling in the future by launching more cluster memcache to load. Cash strategy and content can be used again in more than one webserver, who have the same style or data cache. If this design wo...

c# - How can I get this DateTime format in .NET -

I'm trying to format some date times in: - Full date plus hours and minutes: eg YYYY-MM-DDThh: mmTZD (such as 1997-07-16T19: 20 + 01: 00) where: YYYY = four digit year mm = month of two digits (01 = January, etc.) DD = two digits a month ( 01 to 31) HH = Two points of the hour (00 to 23) (morning / evening is not allowed) mm = minutes (two minutes between) two points (00 to 59) ss = two points of second (00 59) = More points representing the decimal fraction of one or a second TZD = time zone designator (Z or + hh: mm or -hh: mm) I basically Was ... var myDa TeTime = someDateTime.ToString ("s", system globalization.cultureInfo.Invalian culture); But the result is in the string: 2011-08-31T08: 46: 00 Any help? Use the following: yourDateTime.ToString (" -MM-DDTH: MMK ", Culture Info. Invertechniculture); More than anything you want to know about datetime formats:

Ubuntu 11.04 PHP MongoDB installation - mongo.so in php.ini but no effects -

I set mongodb to spend some time and get confused. To file: /etc/php5/apache2/php.ini I said: exptension = mongo.so also exptension = / usr / lib / php5 / Apache started for some time but has no effect: ( A new installation of Ubuntu 11.04 Do you have any idea? Why is it dead? exptension = Mongo. and Exptension = / usr / lib / php5 / 20090626 + lfs / mongo.so is incorrect! Instead use the word " extension = ." / P> Observe your apache For some module-related errors, the error.log file. You can use PHP phpinfo () to determine the wheter that successfully loads your module. / Code> function, even if your file /usr/lib/php5/20090626+lfs/mongo.so exists.

cocos2d iphone - How to remove black screen between scenes in CCTransitionPageTurn? -

I have to use the CCTR installation page in my app between scenes when I run this infection, my walking view Looks good - this looks like a page but in the background I see the black screen (during the page turn animation), which is later replaced by the new scene. And I want to see new animation in the background (during animation), when I start this transition, can someone help me? Oh, I got the answer. // directory projection = kccdirectorproject2d; I also started a depth buffer and changed it deeply.

Python: class static member pointing to itself? -

संभव डुप्लिकेट: कोड एक हजार शब्दों के लायक है: > gt; & gt; वर्ग ShortRib (ऑब्जेक्ट): & gt; & gt; & gt; Def __init __ (स्वयं, स्वामी): & gt; & gt; & gt; स्वयं। स्वामी = स्वामी & gt; & gt; & gt; & Gt; & gt; & gt; ... कुछ और तरीकों और सामान ... & gt; & gt; & gt; & Gt; & gt; & gt; & Gt; & gt; & gt; वर्ग गाय (ऑब्जेक्ट): & gt; & gt; & gt; ShortRib = शॉर्टरिब (स्वयं)> gt; & gt; & gt; & Gt; & gt; & gt; & Gt; & gt; & gt; वर्ग ब्राउनचो (गाय): & gt; & gt; & gt; पास & gt; & gt; & gt; & Gt; & gt; & gt; ब्राउनचौ। शॉर्ट रिब। मालिक & lt; क्लास '__मैन __. ब्राउनकॉ' & gt; यह काम नहीं करता है, यद्यपि मैं चाहता हूं कि यह होगा। असल में, मैं चाहता हूं कि प्रत्येक कक्षा में कुछ स्थिर / वर्ग चर (मुझे यकीन नहीं है कि यह इस मामले में क्या है?), लेकिन उन सभी लोगों को जानने की जरूरत है कि यह किस वर्ग की है दुर्...

Using jQuery Form plugin, how do I prevent form resubmission temporarily? -

I am using an event handler for form submission. However, I need to disable the formation of the form until I get an event on which the server has finished processing how do I do it? $ ("# submit") (function () {$ (this) .attr ('disabled', 'disabled');}); Accessories

ios - Disable button when no internet connection -

How can I disable a button when there is no connection to a network / internet in iOS? Look for Accessibility Code from Apple. And use it like this: Richability * Accessibility Capabilities = [[Retouchability Possibility for Internet connection]]; [Reach notifier]; NetworkStatus Networks Stats = [Current Reachability Stands] [Accessibility]; BOOL connect = (network status == retinal viii = network status == recyclable wavadon);

MySQL Left Join help -

Hello community then, I posted a question an hour ago SQL query, which promptly responded It was a great help and regret was, however, on reflection and further usage, it has been found that the query was returning all the rows in the target table. I have validated it by adding mysql_fetch_object in a while. So now what do I need to keep an eye on SQL queries and tell me what is going wrong and how to fix it if possible. When using $ _SESSION ['model'] as a reference, I just need one line (the correct line). Below is the complete content of my previous question. Thank you in advance. =========================================== ================================= Web_quite_models table id | Model | Product_id | Cpu_id | RAM_ID | HDDID | Os_id | Opt_id ================================================= ======================== 1 | 000001 | 1 | 1 | 1 | 1 | 1 | 1 2 | 000002 | 1 | 2 | 2 | 2 | 2 | 2 3 | 000003 | 1 | 3 | 3 | 3 | 3 | 3 4 | 000004 | 1 | 4 | 4 | 4 | 4 | 4...

objective c - AVURLAsset loadValuesAsynchronouslyForKeys: completionHandler: never fires on device -

I'm using the next snippet to load, values ​​are synchronously, so loading = no fire ever No. And I have the same problem with the AVAssetExportSession export. Simultaneously This is not all just working on the device. NSDictionary * options = [Object with NSDictionary dictionary: [NSNumber Number Witbools: Yes] Key: AVURLASETPreferPreciseDurationAndTimingKey]; AVURLAsset * asset = [AVURLASET URLServerValid URL: URL options: options]; NSArray * key = [NSArray arrayWithObjects: @ "duration", @ "track", zero]; __block Bull loading = yes; [Asset Load ValueExcinronusForcases: Keys Whole Handler: ^ (Zero) {Loading = No; }]; While (loading) [[NSRunLoop currentRunLoop] Run-upDate: [[NSDate date] dateByAddingTimeInterval: 0.5]]; Please, help! My brain is melting. Here's the code I use: NSDRAEL * URL = [NSUr file URLTHath Path: [[NSBindal Mainbundal] PathForreresource: @ "Intro" type type: @ "M4V"]]; Self.asset = [[AVURLAsset a...

eclipse - Where does Java put resource files when I JAR my program? -

Looking for this for the last two hours and can not find anything (I found a solution to the same problem But with images, not text files). Too much, I created a program that reads the text file, is a list of file names and ids using Eclipse, I've put the file in my src folder and put the path file in the program is. Like this: In = new buffer reader (new file reader (curDir + "\\ bin \\ items.txt")); where curdir is the current directory of the user (with System.getProperty ("user.dir"). Now, the problem is, when I run it from eclipse, but when I try to make it a runner jar and then run it, the program continues, but information from the text file It does not seem that the load does not appear that the eclipse is not putting a text file with a jar. Edit: Is the problem solved? So the jar file needs to be in the folder with all the original files? I am very confused, what is a jar file? Another strong way to get a file is by running Eclipse ...

javascript - position image at bottom of div without wrapper -

How would I put an image under an image without wrapping it without the use of Java? I think I'll wrap it with a div and make a complete position, but it makes the markup messy and it's also dynamic content, so I can not wrap the image, it targets the image in a particular div To do. Here is the original markup, it needs to find the height of the div, then the position image on the bottom. I think how this will work? & lt; Div id = "content" & gt; & Lt; P & gt; Some text & lt; / P & gt; & Lt; Img src = "img.jpg" /> & Lt; / Div & gt; You can also create an image status under any DIV Do not you? There is no need to add a second cover or do it in the CSS: div {status: relative; } Div> IMG {status: complete; Bottom: 0; } Or do the same in JS if you need it in JS.

javascript - jQuery hotkeys plugin to submit a form not working when in an input -

I have a page with a group of small forms, I assign a hotkey dynamically to submit each form The code you want to see looks like this: HTML & lt; Form: form id = "formCtrl" action = "review.html" & gt; & Lt; Input name = "id" type = "hidden" value = "" /> & Lt; / Form: Form & gt; & Lt; Form: form id = "formCtrls" action = "save.html" & gt; & Lt; Input name = "id" type = "hidden" value = "" /> & Lt; / Form: Form & gt; ... Such other small variations with a specific ID related to hotkey ... jQuery $ ('[id = "formCtrl"]). Each (function () {var me = $ (this); var myId = me.attr ("id"); var key binding = MyId.replace ("form", "") .replace (/ (. {4} $ (Document) .bind ('keydown', key binding, function (evt) {evt .stopPropagation (); evt.preventDefault (); $ ("#" + m...

Object release in Objective-C: Why release an object twice in viewDidUnload and dealloc method? -

Objective-I have a question about the release of the object. I saw some sample code in chapter 9 of "Safing iPhone 4 Development" (p. 287). The sample code releases an object twice: both viewDownload and Deloop method. Here are sample codes: - (zero) viewDidUutup {self.list = zero; [ChildController release], childController = nil;} - (zero) DLock {[release list]; [Child Controller Release]; [Super Delooc];} Child Controller has been declared as an example of the UIViewController subclass, both of it Why is the ViewDidInloadload and Deloop method released? Since childController is already being released in viewDidUnload , is it necessary to reissue it in the dealloc method? Based on my understanding, I will write the code: - (zero) viewDiduude {self.list = zero; ChildController = Zero;} - (Zero) Dailyock {[Release list]; [Child Controller Release]; [Super DeLoc];} Thanks, Sam The problem is that every time such as the dealloc method is no...

javascript - Firebug - Search nested dom nodes -

Image
Whether to find nested dom nodes or using firebug to find deep dark nodes from the DOM tab. Thank you. text"> Firebug has a search box in the correct area. Works on the Dome, but I believe that it also works in other panes. edit It seems that this is a known problem: you can notify the bug about updates / changes. I informed myself and added a link to this question. Once the problem is resolved, I am planning to update it again, at the time when I can post the version of firebug. Apparently firebug is helpful in searching, but I'm not sure it will help you.

android - Getting a Context from a NativeActivity -

I have an application using Native Activity I I have a valid for my activity How do I get the references? I want to call a javascript to use a reference in Java (for example, to access the telephony manager to ask IMEI). The interactive activity structure includes many useful data for my application, such as JavaWime, and JNI environment, etc. There is also a job pointing to the class object of my native activity. What is not included in this is the job indicated on the example of the net actcty I do not see anything useful in the struct android_app . It would be possible to do this; Any idea how? Despite its name, clazz member normal activity Stretch is actually pointing to android.app.NativeActivity example. Check out an example of using Java code JNI calls from basic activity.

I have an Oracle Stack trace file Python cx_Oracle -

My Pyro application is dying, this Oracle Trace file is being generated. I am using cx_Oracle, how do I use this trace file to solve this accident? ora_18225_139690296567552.trc kpedbg_dmp_stack () + 360 & lt; -kpeDbgCrash () + 192 & lt; -kpureq2 () + 3194 & lt; - OCIStmtPrepare2 () + 157s & lt; -Cursor_InternalPrepare () + 298 from & lt; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & LT; -0000000000EA3010 & lt; - 0000000000 EA3010 & lt; -0000000000 EA3010 & lt; -0000000000 EA3010 & lt; -0000000000 EA 3010 Do you have an Oracle Support Agreement? If I upload an SR file and Trace to Oracle and tell them what is the complaint about it. Those code calls are deeply visible in their codebase....

python - Getting the dtype of a result array in numpy -

I want to lock the memory for the output of an array operation, and I need to know how it Will be done to create DTP. Below I have a function that I want to do, but it is very ugly. Import np def array_operation (arr1, arr2): out_shape = arr1.shape # get dtype of production, these are the lines that I want to change. Index 1 = ([0],) * arr1.ndim index2 = ([0],) * arr2.ndim tmp_arr = arr1 [index1] * arr2 [index2] out_dtype = tmp_arr.dtype # All so I can do the following. Out_arr = np.empty (out_shape, out_dtype) The above is very ugly. Is this a function? Looking for you. (On the one hand, do you know that you can reach all multi-dimensional arrays in the form of 1D arrays? You have x [0, 0, 0, 0, 0] No need to access / code> - You can access x.flat [0] .)

windows - example code: A service calls CreateProcessAsUser() I want the process to run in the user's session, not session 0 -

I am getting the example code: CreateProcessAsUser () for a service call In the user session you want to run, session 0 does not The process created so far is just like a service in session 0 This was stripped from some old code that launched the console app from the service. It worked under NT4, but I did not test it with a modern version of Windows, so it can not guarantee that it works on NT4. EDIT: No, it is not going to work. You need to set up the code found to create a desktop, add SID etc. (Logon user (user ID, domain, password, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, and amp; hUserToken)) {return GetLastError (); } If (! ImpressNet Logged Onuser (Aututteroken)) {DWORD rc = GetLastError (); CloseHandle (hUserToken); Return RC; } STARTUPINFO C; PROCESS_INFORMATION pi; Memes (& amp; si, 0, size (SI)); Memset (and p, 0, sizaf (pi)); Si.cb = Size (C); RC = CreateProcessAsUser (hUserToken, // user token 0, // app name "foo.exe", // comman...

python - Problem importing latest Pyside version -

मुझे मिल रहा है: आयात त्रुटि: /usr/lib/pymodules/python2.6/PySide/QtCore .so: अपरिभाषित प्रतीक: _ZN8Shiboken4Enum16createGlobalEnumEP7_objectPKcS4_S4_P11_typeobject जब मैं import PySide PySide का नया संस्करण स्थापित करने के बाद, संस्करण 1.0.6 isolino क्या कोई आस-पास काम है? यह एक नया श्वासबन्द । क्या आप पुष्टि कर सकते हैं कि आप नवीनतम संस्करण का उपयोग कर रहे हैं (shiboken 1.0.6)? यदि आप उबंटू का उपयोग कर रहे हैं, अजगर-पाइसाइड पैकेज यह सुनिश्चित करना चाहिए कि सभी मॉड्यूल ठीक से अद्यतन किए गए हैं - देखें

cocoa - No action sent when NSSearchField is emptied? -

I have set a NSSearchField to a toolbar and An action in Connected Interface Builder . This action does not say every time I enter some text, but when I click on the small cross to clear it or I delete some text that I have entered in some way. Is this a bug or is it okay? Well, I thought it really works my problem was 1) I used the search string from the search field to filter, and apparently did not return a return search string for the empty string (@ "") 2) When I entered the NSLog (@ "% @", searchstress) I have found some output with only empty string, while NSLog (@ "some time ago% @", sir Stress) seems to work! / P>

python - Print a list in reverse order with range()? -

How do you create the following code with the category () in Python? [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] function: reverse (category (10)) itemprop = "text"> this is very If you want to make it a list (as BTK has said): List ( Update: If you want to use only category to get the same result You can use all your parameters (For example, stop, phase) For example, to generate a list, [5,4,3,2,1,0] You can use the following: category (5, -1, -1) This may be less intuitive, but the comments As mentioned, this is the use of more efficient and correct category for reverse list.

c# - Possible to specify directory path with a wildcard? -

मेरे पास निम्न कोड का कोड है: foreach (Directory.GetFiles में स्ट्रिंग फ़ाइल) (SourcePath)) {// जो कुछ भी} यह एक विशिष्ट निर्देशिका से फाइल हो जाता है क्या वाइल्डकार्ड का उपयोग करके निर्देशिकाओं का मिलान करना संभव होगा? उदाहरण के लिए: c: \ test \ di * सभी फाइलों को डायरेक्टरी में मिलती है: c : \ Test \ dictionary \ c: \ test \ directory \ c: \ test \ dig \ मैंने देखा है कि आप GetFiles विधि में एक फ़ाइल फ़िल्टर पास कर सकते हैं, लेकिन यह फाइलों पर लागू होता है केवल, निर्देशिका नाम नहीं। आप इसके लिए एक है जो आपको एक खोज पैटर्न निर्दिष्ट करने की अनुमति देता है या आपको खोज विकल्प निर्दिष्ट करने की आवश्यकता है: foreach (Directory.GetDirectories (sourcePath, "di *") में स्ट्रिंग निर्देशिका) {// whatever}

c# - Using Vici cool Storage with monodroid -

Oh, for the moment I am not sure how it is officially supported, but for the success of the people Using Monodroid Vic Cool Storage I am able to leave and compile assemblies in my project, but while trying to use some classes, the errors of time have to be gathered. Especially when trying to connect like the example for Mono Touch string dbName = path. Cobain (environment. Gatefolder path (environment specialfolder personal), "mydb.db3"); // The following line will be called coolestation, where is the database, // to make it if it does not exist, and call a delegate that creates the necessary tables (only when the database file was newly created //) CSConfig.SetDB (DbName, true, () => {CSDatabase.ExecuteNonQuery ("Subscriber Integer Primary Key Attribute, Name Text (50) No, Number, Date First Text (30)");); There is no difference when I try to use the methods of CSConfig and when I cscfif If I try to pass 3 aggregates to STDB (3) then I get the invalid ...

c - Set TCP_QUICKACK and TCP_NODELAY -

If you set the TCP_QUICKACK setting on each call on the socket, then TCP_NODELAY is already set, whether QuarkCamp option is set to Will NODELAY overwrite the call? On connect: int i = 1; Setochop (ISKAC, IPPRTOODCDP, TCP_NODELE, (Zero *) and I, Size (I)); On every writing int i = 1; Setochop (ISOK, IPPRTOODCPC, TCP_QWarkac, (Zero *) and I, Size (I)); Will TCP_QUICKACK tap be called last call by TCP_NODEL? There is no direct connection between those two options, they are only for different purposes. TCP / NADALA is intended to disable / enable buffering of segments so that the data can be sent as a peer as soon as possible, so it is generally used to improve network usage Is done for TCP_QUICKACK is used to accept the delay as soon as possible under some protocol level exchanges, and it is not stable / permanent, subsequent TCP transactions (which are below the robbery This option may be ignored) No actual disagreement between actual protocol level processi...

php - get hidden input value from page using curl -

I am using curl to display a page response on the thank you page. The code looks like this: $ curl_handle = curl_init (); Curl_setopt ($ curl_handle, CURLOPT_URL, 'http: //www.site.com'); Curl_exec ($ curl_handle); Curl_close ($ curl_handle); The page above 'www.site.com' has an hidden input value that looks like this: & lt; Input type = "hidden" id = "my_id" value = "123" /> I have to take the value ('123') from this hidden input thanks = "post-text" itemprop = "text"> you parse HTML You can use to get and get value from the input element. I have not tested this code, but the quick code should look something like this: $ doc = new DOMDocument (); $ Doctor & gt; LoadHTMLFile ('http://www.site.com'); $ Id = $ doc- & gt; GetElementById ('my_id') - & gt; GetAttribute ('value'); For example, cnn.com has the following HTML code on the fro...

javascript - Strategy to sort html content for writing -

I have found a general question about a strategy to sort the HTML elements. Here's a prerequisite: I'm dynamically creating content that will be written in an HTML file. This content is written on a string that will be saved in the body of an HTML file later. There is a hierarchical representation of UL and Li tags in the content, for example (coded with spaces and on separate lines for clarity) var mText = " ul> ; "; MText + = "& lt; li class = 'folder' & gt; Folder 1"; Mteext + = "& lt; ul & gt;"; Mteext + = "& lt; li class = 'page' & gt; page 3 & lt; / li & gt;"; MText + = "& lt; li class = 'page' & gt; page2 "; Mteext + = "& lt; li class = 'folder' & gt; sub folder 2"; Mteext + = "& lt; ul & gt;"; Mteext + = "& lt; li class = 'page'> sub page 3 "; MText + = "& lt; li class...