Posts

Showing posts from February, 2015

python - Middleware for both Django and Pylons -

It looks like how middleware should work but there are different ideas of Django and Pillons I like that the piles Are standardized, but seem to adopt the system more widely. Can middleware be used in both? The project says that the middleware is porting a security toolkit to ESAPI from Java to Python. Because Java is so standards-oriented, it is very easy to have the structure an agnostic. In Python, different frameworks have different ideas about how HttpRequest objects and middleware work are basic things, so it seems more difficult. Obviously, new users can not post more than one hyperlink to see below for links to Django and Pylons middleware information. Pilones uses standard WSGI middleware if you deploy DNS through WSGI, then you At that time WSGI can use middleware. Although you can currently use Denskoji Middleware settings. In standard Deseño MIDDLEWARE_CLASSES option. He said, currently a Google Summer Off Code project to enable the use of WSGI middleware in ...

In C#.Net Given a window handle how to force a window to full screen? -

I have managed the management in the main window and want to force that window to full screen. I am programming with the C # .NET framework V2.0 with SP1. Here it is necessary to p / invite in most Windows APIs for calls.

How Can I Get Information About the Source Image of a WPF `<Image>` Element? -

मैं WPF & lt; छवि & gt; तत्व की स्रोत छवि के बारे में जानकारी कैसे प्राप्त करूं? मेरा & lt; छवि & gt; तत्व में स्रोत स्रोत है जो एक छवि स्रोत स्रोत है, जो अक्सर बदले मेरे कोड के पीछे, मुझे गणितीय उद्देश्यों के लिए, वर्तमान स्रोत छवि फ़ाइल की वास्तविक चौड़ाई (नियमित पिक्सेल में) तक पहुंचने में सक्षम होना चाहिए। मेरा आवेदन छवि फ़ाइल पर छवि संचालन निष्पादित करेगा, इसलिए यह जानकारी आवश्यक है किसी भी मदद की सराहना की जाती है। मुझे लगता है कि यह आपके लिए काम करेगा: बिटमैप स्रोत स्रोत डेटा = छवि। स्रोत के रूप में बिटमैपसोर्स; Int width = sourceData.PixelWidth; Int height = sourceData.PixelHeight;

debugging - Why doesn't Java tell you which pointer is null? -

I always wonder why JVM gives you which indicator (or more precise, which variable) is zero Is when a NullPointerException is thrown. A line number is not sufficiently specific because the abusive line often involves many variables that could cause an error Is there any compiler or JMM flag that Will making exception messages more useful? The reason for this is that when a name is not available, it always keeps distracting the value operand stack Is loaded on, and then it is sent to any JRE opodd that it directs. However, there is no name to associate the operand stack with a zero value. All this is 'tap' with some smart runtime tracking code, a name can be obtained, but it will add an overhead with a limited value. For this reason, there is no JRE option which will turn additional information to zero indicator exceptions. In this example, the reference is stored in local slot 1, which maps the deviation in a local variable name but in the infographic instruc...

design - MVC Question: How do I know when I'm putting too much logic into my view? -

Consider the following from CodeIgniter. If I am doing this wrong, please let me know: & lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt ;? = $ Heading? & Gt; & Lt; / Heading & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; H1 & gt; & Lt ;? = $ Heading; ? & Gt; & Lt; / H1> & Lt ;? Php foreach ($ query- & gt; result () as the $ line):? & Gt; & Lt; P & gt; & Lt ;? = $ Row-> Last name ',' $ line- & gt; Firstname ''. $ Row-> MiddleName & gt; & Lt; / Br & gt; & Lt ;? = $ Row-> MyField & gt; & Lt ;? Php if ($ row-> myField == ''):? & Gt; No data found & lt ;? Php endif ;? & Gt; Some text & lt ;? = $ Row-> Another field? & Gt; & Lt; / Br & gt; & Lt ;? Php if (buy $ row- & gt; buy! = '') {Echo 'purchase date' Mdate ('% m'. '/'. '% D'. '...

ruby - RSpec: stubbing Kernel::sleep? -

क्या कोई rspec परिदृश्य में stub Kernel.sleep है? यदि आप एक ऑब्जेक्ट के संदर्भ में सो रहे हैं, तो आपको ऑब्जेक्ट पर इसे स्टब करना चाहिए, जैसे: कक्षा Foo DEF self.some_method नींद 5 अंत के अंत में यह "नींद कॉल करना चाहिए" Foo.stub! (: सो) Foo.should_receive (: सो) .with (5) Foo.some_method सबसे महत्वपूर्ण बात यह है कि संदर्भ में "स्व" जो भी सो जाता है, उस पर ठोकर खाई जाती है।

oracle - how to access multiple users' database via JDBC -

I have an account in the Oracle database, I can connect it to my Java code via jdbc. When I use the database from Oracle SQL Developer, under "Connection" -> "Other User", then I can access their tables (I have been privileged You need to prefix the name of the table with the schema name, which is in the oracle Name. Choose from some_exactions * heir_table; If hardcoded in SQL statement Or username is a problem, you can make Java configurable in any way or set a table nickname (synonyms) on the Oracle in your own schema.

php - SQL - Query Help: Finding a Local Maximum -

I have a table with graph data. For example index value 0 3 1 5 2 7 3 6 4 8 5 9 6 12 7 11 8 10 9 14 10 13 I need a query that gives the result where the value is at a local maximum, i.e. the value index of a particular index is greater than the value of + 1 and index -1. For an example set, it should return the index list: 2, 6, 9 7, 7, 12, 14. I am using PHP with SQLite. I can do this in PHP with a foreach-loop, but wondering if this is an easy way to use just the SQL command. Any input will be appreciated. By doing so with a single loop in PHP it can be very fast in SQL queries, But if you really want to join yourself in the table with something like: Select from B.andx as the number, in the form of the number B, the form of the number C In WHERE a.index = b.index-1 and c indices = bindex + 1 and a.value & lt; B.value and c.value & lt; B.value (unchecked, so * cross fingers *.)

cocoa touch - Add images via Push Notification Service? -

I have a content app and should now notify users of new content using the Apple Push Notification service, now After a long app store submission notice to the user, a download update button will be enabled. The user will download the SQL file and images from his website. I will execute the contained SQL file and the images will be downloaded to disk. I currently load content (wire and bundle image references) in UIWebView. Images are displayed as part of content How do I execute a SQL file to insert new content? Then, do I have to start referring to images on disk instead of bundle, where I add images when using app store update submissions? For SQL file, maybe I downloaded some event based once the download is complete. But the new content to be read again needs to be reloaded to read-only databases. Does the user have to start the app again? As you said that the database has been read only for your app, I have just uploaded a new database file Will have a download trigger ...

.net - need help on ADO.net connection string -

I have to get data from a user site. If I work on my site, then I will remotely vpn and then using the username and password in my server. I think the data should be obtained by accessing my server in my local machine where my work is not secure. / P> Therefore, I thought about using Ironpython to obtain data from remote server, therefore, I have still been VPN from my domain, but when I connect ADO to my database If the .net connection was using the string, then it does not work. Connection String: Data Source = xx.xx Xx.xx; Initial catalog =; User ID =; Password =; And the error says: Failed to log in OK, one thing is worth mentioning: when I provide a remote server, once I have a username and password When I log on to SQL Server, I do not have to give a username and password. This is Windows certified, so, in the above connection string, I have used the same user name and password that I would be using remoting Do the time I hope that I will remember what I can remem...

How can we write our customized testcase in JUnit4? -

Suppose I have an arrayOf object that returns some values ​​from the database. I want to check whether any value is not included in any orre object, how it can be used on 4th June. Can I write any customized test case in Junit4? Was made to test quick. Then a simple example would look like this: class MyTesterClass {@Test Public Zero Check AllObjectsHaveValue () {String [data] = DAO.findAllData (); For (string s: data) emphasis fals (s.isEmpty ()); }} You can create many such classes, and each may have more than one method. Once you have, you can run automatically or manually using your IDE, ant, maven or other build tools. It will report failure or success based on the condition * statement provided by you.

SIlverlight 3 out-of-browser high DPI window size problem -

My Silverlight 3 app in general (and 96 DPI) with DPI setting in Windows XP After switching the DPI settings to large size (120 dpi), the application looks similar in the browser, but it scales out of the browser. The problem is that when running the out-of-browser, the hosting window size remains the same regardless of the DPI setting. Therefore, a part of the application GUI is visible with 120 dpi. Is there any way to adjust the OOB hosting window size or to disable scaling of applications with high DPI? Take a look at Pete Brown:

html - How to stop jQuery from matching multiple elements -

I am trying to create a rollover effect with jquery. I have such things, but because I am trying to mouse over something with a link in which there is a link I problem. I have a Level 2 nav bar, placeholder table cell (bad I know - but it has already been done this way). I want to turn background from white (#FFF) to dark brown (# 99). I also want to change the text from dark brown to white. Since the text is a link, I have to specify a square within the link tag to ensure that it is dark brown without an underline, in the blue, undefined text the default T. I have written that the code causes the change of all the links of the class = "all links" to being white, when any of them is "hovered over" I want to do this for special items - this background should be brown and the link should be white. HTML and jQuery are below: - & lt; Td class = "submenuity" & gt; & Lt; A href = "newsletter.html" class = "sublink" ...

sql server - how to fetch data from database? -

How can we get data from the database through Silver Light? I only want the basics because I am a fresher in silver light. It depends a bit on the version of Silverlight that you use. In any case, there are some very good and comprehensive tutorials on the web. Here are some of the things that interest:

Google Chrome textareas wrapping and adding line breaks -

I have problems with textarea in Google Chrome. I am using classic ASP, but it is unimportant because Chrome actually Posting data. The problem is with a text field as long as a string of text is too long to fit a line of text field, it wraps on the next line (as it should be). My problem is that when submitted, then the carriage return in form data and amp; Wherever the lines are wrapped in the line, the user gets recorded / return events - I can not even tell the difference between the two. Does anyone know how to fix this? Maybe an option in text field or something? Only add carriagerels and linefigs in all other browsers where the end user has actually put them in. This only sets if you set the wrap = "hard" attribute on TextRena If so, what will happen Do you have wrap = "hard" on textran? If so, delete it, if not, can you try setting wrap = "soft" as the attribute?

vb.net - How is a negative image figured out? -

My program works on im grayscale, Alpha creates a mask, and divides the color channel Image by pixel After looking at the pixel I am using speed for vb2005.net using the things that are using drawing.graphics ? You must use ColorMatrix : new float [] [] {new float [] {-1, 0, 0, 0}, new Float [] {0, -1, 0, 0}, new float [0], 0, -1, 0}, new float [] {0, 1, 0}, new float [ ] {1, 1, 1, 0, 1}} or (It is not certain that this can be done specifically in VB.NET)

crash - Website consistently crashes Internet Explorer on my PC -

When I load my site in IE, I keep crashing, but I do not know why if I If you choose to restore, this will usually work, but the link I click on will crash. How can I say that this is a lot that people are watching and how can I start tracking down the problem? Site This may be the number of problems, it is a version of IE I could try to get it to Vista / IE8 without any problem. This can only be related to your browser locally; Do you have a browser plug-in installed that can cause problems? Some related to web development & amp; Thats integrated into test ISA? It may be related to Flash somehow, have you installed the Flash Development Environment on your machine? There may be a mismatch between the plug-in and the environment. If you have been writing some javascript in your web site, then check it also, which you feel like the crashing website looks like some busy javascript is stuck in a loop. To help track this problem, many helpful people like me need to c...

hex - In emacs, how to strip CR (^M) and leave LF (^J) characters? -

I'm trying to manually delete some special characters from a text file to use a hexel mode And it's not seeing how to delete anything in Hexal mode. What exactly do I have to do to remove the carriage return and keep the linefeed character, is the correct method of doing this hexal mode? There is no need for hexal-mode J ^ Save, kill buffer, and come back to the file so that the window shows the new file mode (Unix vs. DOS).

hardware - Is it more difficult to program on Lenovo/Apple keyboards due to Ctrl key positioning? -

I ask because I discovered while searching for a new laptop, that the Fn key in the left corner of the keyboard rather than the Lenovo keyboard I also know that there is only one configuration on apple laptop. Obviously developers are often used by the controls: they are often power-users, which depend on many shortcuts, and I expect touch to reach the key below It's a matter of muscle memory. So my question is: Is FN and control status on these laptops a special problem for developers ? Or are there many developers there who found that they used this configuration quickly, and did not have any effect on their productivity? I have a Lenovo laptop, and often switch between back and back between my desktops, In which there is a standard keyboard, first of all, it made me crazy. Sometimes, I still have trouble with copy-paste efforts. I know that this is very low pressure on my pinky Ctrl + C and Ctrl + V While the Ctrl key is slightly closer, though.

C# newbie: reading repetitive XML to memory -

I'm new to C # I am creating an application that creates an XML file with a list of elements Used to be. The structure of my XML file is as follows: & lt; Element & gt; & Lt; Element & gt; & Lt; Name & gt; Price & lt; / Name & gt; & Lt; Type & gt; Price & lt; / Type & gt; & Lt; Color & gt; Price & lt; / Color & gt; & Lt; / Element & gt; & Lt; Element & gt; & Lt; Name & gt; Price & lt; / Name & gt; & Lt; Type & gt; Price & lt; / Type & gt; & Lt; Color & gt; Price & lt; / Color & gt; & Lt; / Element & gt; & Lt; Element & gt; & Lt; Name & gt; Price & lt; / Name & gt; & Lt; Type & gt; Price & lt; / Type & gt; & Lt; Color & gt; Price & lt; / Color & gt; & Lt; / Element & gt; & Lt; / Elements & gt; I have & lt; Those 100 items, and this is a single list (so I'm cons...

OpenGL iPhone Sprite Sheet -

I have a sprite sheet of images of differnet width and height, which I have coordinates only to render only a specific phantom And need to think about how to do it. Can you help me anyway? If you are using OpenGL for rendering, then I hope you will use a Make your phantom sheet as texture. There is a good tutorial on texing in OpenGell ...

Is a Persistent Store a requirement for Core Data on the iPhone? -

I'm looking to use core data inside my iPhone app. The app is not really required to store the data used, but it needs to be managed and queryed. Can core data be used for dataset which is purely in memory and not persisted on disk? Absolutely, just set the store type to NSInMemoryStoreType More specifically, you set it this way Are: NSError * error = zero; // Ignore that it is called "NSPersistentStore", it is in NSPersistentStore * MemoryStore = [persistentStoreCoorindator addPersistentStoreWithType: NSInMemoryStoreType Configuration: Zero URL: Zero Option: Zero Error: & amp; Error]; If (inMemoryStore & amp;! Error) {// it is setup}

sql server - New object in Entity Framework - problems with primary key -

In my database I have a vehicle table with a primary key, I have a new Vehicle using the item new vehicle (); and appropriately updating the properties of the vehicle When I Junky's Contax Wheels. I try to object; The table for the first time has been updated successfully and the primary key is 0. On all subsequent occasions, I get an error by saying that the key is not unique the primary key constraint 'VEHICLES_PK' can not be included in the violation object 'dbo.Vehicles' in the duplicate key is. \ R \ nThe statement has been terminated. (possibly because the primary key still determined by EF 0 ) I understand that the EF wisely excludes the primary key Works, why is this happening ?? You have two options: In that case, SQL Server will automatically assign unique and individual numbers, and EF will be OK with that to INT identity (1,1) Take care, eg You need to find your app to come up with unique vehicle ID numbers in y...

flex - ActionScript: Package-level introspection? Or some other pluggable loading scheme? -

I'm writing some delicious business logic and I've come to a situation like this: A set of rules ( ruleA , ruleB , etc ...), which all follow a standard pattern, I created a rule interface , And implemented it like rule A , RuleB , and so on. So now I just need to load them. I am currently using a map: var rule: object = {ruleA: new rule A (), ruleB: new rule B (),. ..}} Then calling it this way: function doStuff (which rule: string, some data: object): * {return rule [jorul ] .applyTo (some data); } Now, the rules follow a standard naming scheme, and they are all part of a package ( foo.rules ) ... There is Thank you! Edit : To clarify, find out the possible rule on the runtime, so I do not have to maintain a list of rules. For example: function loadRule (name: string): rule {import foo.rules; Var Rule: Class = foo.rules [name]; Return the new rule (); } , of course, I can not index in the foo.rules namespace ... but that's what I...

python - Wxpython: Positioning a menu under a toolbar button -

I have a CheckLabelTool in wx.ToolBar and I want to popup a menu directly on a mouse click popup. I'm trying to get the position of the tool so that I can set the position of the menu, but whatever I have tried (GetEventObject, GetPosition, etc.) gives me the status of the toolbar, so the menu will pop up under the toolbar , But is far from the affiliate tool. Any suggestions? I need tools for toggling and bitmap capability, but if I'm doing something better, I have not been fixed on the checklist. Thank you! Read the section on the method at wxpython.org: "Specify The menu on the coordinates pops up above this window, and when the user has dismissed the menu, returns returns on the control. If the menu item is selected, the corresponding menu event is created and it is normally If the default status is given then the current position of the mouse cursor will be used Or You need to bind to your check tool's EVT_MENU event. After checking the tool butto...

python - using pyunit on a network thread -

I have been tasked with writing a unit test for a suite of network software written in Python. It is very easy to write units for message builders and other static methods, but when it comes to writing a test for threads omitted from the network, I have killed a wall. For example: It connects to the server, it may be any port, and I want to be able to test the ability to add multiple ports (in sequence, not parallel), without actually running multiple servers What is a good way to approach this? Probably can the server build a test and make the destruction part? Some tell me that I should have a simple answer. I think the unit test methods are for methods of thread threads, but I can not find any. I try to present an existing factory in my existing code to create a socket object is ready. Then in an imitation factory, a test pass which creates fake chairs that are connected to only one server (or not for error cases, which you also want to check, do not?) And to prove the me...

How to play binary MP3 stream with jQuery/Javascript? -

I'm getting a pure binary MP3 stream with an AJAX call. No headers, nothing just direct MP3 bits (actually what is actually a stream?) I want to be able to play it in a web page (and if possible, Then provide it for download). Is this possible? And what is the best way to do this? If this is not possible, then what are some other ways to handle it? You can play music with pure javascript, you can get that stream and play it in a flash player. Will need to pass. Try it, though I'm not sure it can control the type of stream about which you are talking about. You have to do some research on what it can handle

How do I create a custom WordPress page? -

I want my WordPress blog to be a page called Music. On that page, I will inquire the DB for posts with category music and then I will change around the feelings and feelings of the posts. So I can not just put a link to / categories / music / because I want to do custom work on posts. Should I put this code in a different php file and link to it? I think if I do this I can get access to all the good WordPress API calls. I was thinking about using a filter, but I'm not sure what to use, except for the the_title I was thinking something like the following So far, I can not check the title. function show_music () {if (page_page) & Amp; The_title ('', '', false) == 'music') {echo "found here"; }} Add_filter ('pre_get_posts', 'show_portfolio'); How can you go about this? Insert the code below into the file, and then put the file in the Theme folder. You can then create a page by using Wordpress pages and select...

uitextview - Iphone sdk : Tab Character inside a textview -

मैं UITextView \ t ) कैसे दिखा सकता हूं? >? मेरे पास एक छोटा सा कोड है (नीचे का उदाहरण) जो टैब और न्यूलाइनों के साथ अच्छी तरह से स्वरूपित है, लेकिन जब मैं इस कोड को किसी पाठ दृश्य पर देखता हूं तो वह टैब नहीं दिखाता है, हालांकि यह नई लाइनें दिखाती है । @ इंटरफेस पशु: एनएसओबीके {एनएसएसटीइंग * नाम; NSString * विवरण; NSString * imageURL; } मदद के लिए धन्यवाद। UITextView टैब वर्ण हटाएं पाठ से, लेकिन आप इसे रिक्त स्थान के साथ बदल सकते हैं। विवरण = [विवरण स्ट्रिंगरिपेलिंग ओकुर्रेंसऑफ़स्ट्रिंग: @ "\ t" स्ट्रिंग: @ ""];

How to get Firefox bookmarks from a Delphi application? -

I know how to get favorites from IE, but how can I use Firefox's bookmarks? I have a code to retrieve the IE Favorites: Schlobz uses ActiveX; Function GetIEFavourites (const favpath: string): TStrings; Search Var: TSearchRec; Str: Teestring; Path, dir, filename: string; Buffer: Sir's [0..2047] Sir; Found: integer; Start str: = TStringList.Create; // Find all file names in the preferred file path: = FavPath + '\ *. Url '; Dir: = ExtractFilepath (route); Found: = Finding first (path, faAnyFile, searchrec); While founding = 0, get the URL from files in the variable files. Now set the string (filename, buffer, gateprivateprofelistring ('Internet shortcut', PChar ('url'), zero, buffer, sizeoff (buffer), PCAR (dial) + Serchar) name))); Str.Add (file name); Found: = FindNext (searchrec); End; // Find subfolders found: = SearchSTist (DIR + '\ *. *', Finefile, SearchEx); Where found = 0 if ((searchrec.Attr and faDirectory)> 0) and (searchrec.N...

c# - Select DropDownList item inside of a Repeater control -

I have a repeater with some items and one of them is a dropdown list and a button. The goal here is to associate an item with the selected repeater line from the selected DPL. ASPX code: & lt; Asp: repeater id = "sharedplanslist" runat = "server" onitemdatabound = "shared plan list_itimate datetime" command = "shared plan list_it command" & gt; & Lt; ItemTemplate & gt; & Lt; Div & gt; & Lt; H1 & gt; & Amp; Middot; & Lt;% # Eval ("Product Name")% & gt; & Lt; / H1> & Lt; Div & gt; Assassier Le Domains: & lt; ASP: Dropdown List Runat = "Server" ID = "Domain List" /> & Lt; ASP: Button ID = "Associated Demyne" text = "esoior" runat = "server" command agreement = '& lt;% # container.datetime% & gt;' / & Gt; & Lt; / Div & gt; & Lt; Div & gt; Domain: & lt; ASP: Bulleted List R...

.net - C# Datetime formatting -

I want to know that there is already a build-in C # method which I would quickly get to the date of an American culture ( 07 / 22/200 9) to '200 9 722' string I am using .NET Framework 2.0; Thank you! Assume that you already have a datetime: DateTime dt = DateTime.Today; Dt.ToString ("YYYYMMDD"); If you have an N-US datetime string, you can parse it like this: datetime DT = date time. Paraaxect ("07/22/2009", "MM / DD / YYY", Culture Info. GETCalcherINFO ("N-US")); See section on MSDN and dateTime format strings.

php - How can I tell my wordpress to do something in the header if its a blog page? -

In the previous post () I asked how I would go about having a div echo in my headers if the user with a The URL in the URL load / header The one I did not take into consideration was that I do not want to display the div if it got not only the blog / blog in its display, but if any of its blog Post, not just index page blogs. If I see that blog is a blog post then how do I run some code from my header.php? You will use the WordPress function is_single () and is_page. If (! Is_single () and! Is_page () & amp;; Is_home () & amp;; Is_archive ()) / / This will not display for anybody Post, page, home page or a collection You can remove each statement according to your needs * /} For posts only, use_using, page, home and archive for one That's it. The complete list of Is_statements can be found. Here are some others: is_home (): home page is_front_page: front page is_single (): single post is_admin (): admin panel is_sticky (): sticky post is_page (): page ...

exception - Try Catch Block in Java -

Then I have given this code and to create an exception and then use to / hold Block to catch it. I have already made an exception, at the bottom of the code. But I have never used the try / hold block and I am not sure how to implement it The exception is if the rank enum has been entered. I need to use toString with the exception of holding me, but I'm pretty sure I can understand it. package pracapp4; Import java.util.Scanner; Public Class Staff Staff {enum title} {DEPARTMENT_HEAD, DIRECTOR, DEAN, VICE_CHANCELLOR, CHANCELLOR} provides the title of private title; Public staff () {super (); Title = title. DEPARTMENT_HEAD; } Public employee (string first name, string last name, full salary, title title) {super (first name, last name, salary); This.title = Title; } @ Override public string toasting () {return super.toString () + "\ n \ t title:" + title; } @ Override Public Zero Exposure () {System.out.println (" >" + this); } @ Override public...

When to use '$(this)' and 'this' in a jQuery plugin? (Article on net.tutsplus.com) -

I am now learning jQuery, and Jeffrey was reading an article about him, almost everything is clear, but some point I am still unable to understand. The problems start with 'Step 3: Creating the plugin', the title 'Title for each', and the next 'Error Checking'. this.each (function () {$ this = $ (this); var title = this.title; if ($ this.is ('a') & amp; $ this Attr ('title')! = '') {This.title = ''; $ this.hover (function (e) { question This.title - what is this a method? When we use jQuery, we type $ (this) .attr ('title') - and was made to simplify jQuery) code> this.title is a DOM specification, or is the context of JavaScript embedded methods? I can not understand that this is the keyword When, when do we have to this and when to use $ (this) ? Why do we this.each (func ..., and not $ (this) .each (using func ... (I tested it - and it also works, but what is the difference?) I k...

events - Where do I start making a linux input hack? -

When you hold "shift" and scroll your mouse over the Mac, it will rotate your vertical scroll speed horizontally Explains in the works. This is my most remembered feature while working on Linux, and I would love to bring it to Linux (because I have seen it well and nobody else has done it). I hope this can be done with some kind of runtime plugin, or at least in a way that I do not need to add all my other applications again, so that they To use. My question is: should such libraries be written to such a plugin? It would be nice to type some types of scripts, because it does not seem to be complicated in functionality, but if I need a code in C and C ++, then I can code. I think the X solution such as XViE (Closed) and Extrap (similarly it seems). How can I access an open source project if this can not be done as a plugin? Xfree86? Genome? Anyone else?) To try this functionality? - Update (with a solution!): Install the package "Xbindkeys" and "...

image processing - White balance algorithm -

I am processing some image and I need automatic white balance algorithm which is very intensive in terms of CPU computation time is not. Any recommendations? EDIT: And if it is relevant to efficiency, then I am implementing this as an array of integers with colorful images in Java. Averageizing the brightest and dark pixel colors (in HSV or HSL) on a relatively simple algorithm screen is. In a pinch, just go with brilliant pixels if the color between the brightest and dark is very different, go with the bright pixel, if it is close to dark black then go with the bright pixel. Why also look at the dark pixel? Occasionally dark clouds are not close to the black, and the ambient signs indicate light or mist or mist. If you are a heavy photoshop user, this will give you a sense of it. In some photos the highlighted objects are unrelated (or weakly related) in the underlying colors. Then adjust the color of all the pixels. You are the best representation of the light of y...

jquery - Improvements or Variations of DiggSpy -

Define 'periodic refresh' patterns in chapter 14 of Scott and Neil of writers and cite as a canonical example Are there. I agree that the pattern and its expression are the best ways to give real-time information to the user. I have to face a similar challenge. I want javascript (and jquery) to update the information divisions on the web page continuously. My layout will be different from DiggSpy in two important ways: Multiple devices are being updated together (but not synchronous). The device will not extend the width of the page In other words, they will be more square than rectangular. Despite my desire to update, I my question: did you Any improvement or change of DGGOS has seen the 'periodic refresh' pattern can be precedent and suitable for my purposes? Try multiple. Here it is.

osx - mySQL Query Browser connection using ssh -

Is there a problem with the MySQL query browser using a connection from SSH on Mac? I use the command: ssh-L33306: Localhost: 3306 user @ host I, while trying to open a connection with the MQB, pointing to local 33446 ports I get an error "Could not connect to MySQL instance on local host ..." What is odd is that it works fine in Navicat. I find "localhost" very unbelievable on my Mac. Try 127.0.0.1 instead.

textbox - How do you pre-set values on the right-hand side of a Shuttle Item in Oracle APEX? -

I have seen many forums and tutorials, but it values ​​the shuttle though, if I set session values I see it, it determines the value correctly, it does not just show it In the shuttle item itself I have found what I have done: But none of them is working for me. Any other ideas? If you want to set the value A, B and D to the right, the object of the shuttle object Set default property to A: B: D

c - What is the recommended way to write this sql statement? -

Considering both readability and performance, what is the best way to format the following sql statement. Thank you sql = (char *) "select * from tblEvent_basic, rowid" "where" "(" "(start_time & gt" service_id = else? "; = And Start_time & lt; =?) or "" (END_TIME & gt ;? and END_TIME & lt ;?) or "" (start_time & lt ;? and END_TIME & gt ;?) "") "order by" "Start_time ASC; Edit: 1.sqlite3 database engine; Using CIP; Running on MIPS24K 250M embedded CPU 2. Second, fourth, 6th parameter is same, and 3, 5, 7 is the same. RC = Sqlite3_bind_int (sql_stmt, 1, service_id); Rc = sqlite3_bind_text (sql_stmt, 2, ts.start, 5, SQLITE_TRANSIENT); Rc = sqlite3_bind_text (sql_stmt, 3, ts.end, 5, SQLITE_TRANSIENT); Rc = sqlite3_bind_text (sql_stmt, 4, ts.start, 5, SQLITE_TRANSIENT); Rc = sqlite3_bind_text (sql_stmt, 5, ts.end, 5, SQLITE_TRANSIENT); Rc = sqlite3_bind_text (sql...

objective c - Altering the style of an NSSearchField -

I'm thinking how I will change the look of NSSearchField, I'm pretty sure this sub-class would mean NSSearchField, But bit I do not know how to do this code to make it the way I want to see below, you can see the way you want to see it, and how it looks. How can I make it (on the left) using the code? I'm looking to add that ambosode and reduce the internal shadow. You need to create a custom NSSearchFieldCell subclass, and draw WithFrame: Override, then your NSSearchField Set that cell to use. You can draw your custom border in the code or use the end-caps images and a background image for the center that you tile horizontally. Here NSSearchField uses the old code that has been used to create custom NSTextField after the look of a standard before control like a search field.

c# - LINQ "zip" in String Array -

Say there are two arrays: string [] title = {"one" two three four"}; String [] user = {"rob", "", "john", ""}; I have to filter the array given above when the user is empty, then join two or zip together in two. The final output should be: {"one: rob", "three: John"} How can LINQ be used? It seems that you really want to "zip" data together (not to add) I.e. matches match; Is that right? If so, then simply: var qry = by title. Zip (user, (t, u) = & gt; new {title = t, user = u}) where! String Select the IsNullOrEmpty (row.User) row. Title + ":" + row.User; Foreach (string as in curie) console Limit (s); Using zip operation: // http://log.msdn.com/ericlippertarch// 2009 / 05/07 / zip-me-up.spacks public static IEnumerable & lt; TResult & gt; ZIP & lt; TFirst, Tsecond, TResult & gt; (This IEnumerable & lt; Tirsty & gt; First, IEnumer...

How can I create a new user (visitor - read only) in SharePoint? -

What I'm getting is simply adding existing users to a group or creating a new group, but I Nothing Found I'm logged in as administrator and I do not have any more users to create new users. You can add users to SharePoint using 'Stsadm'; Take a look I hope it will be helpful!

pki - C# Export cert in pfx format -

प्रमाणपत्र को प्रमाणपत्र से एक PFX फ़ाइल में निर्यात करने के लिए नेट। मैं X509certificate2.Export विधि के साथ X509ContentType.Pfx फ्लैग सेट का उपयोग करने की कोशिश कर रहा हूं, लेकिन मुझे यकीन है कि कैसे लौटे बाइट सरणी को संभाल और यह फ़ाइल को सही ढंग से आउटपुट करने के लिए। किसी भी मदद की सराहना की। तिथि को देखते हुए, आप पहले से ही लगा सकते हैं यह बाहर है, लेकिन आपको केवल एक लौट बाइट सरणी को सीधे एक फाइल में लिखना है: बाइट [] certData = cert.Export (X509ContentType.Pfx, "MyPassword"); फ़ाइल। वाइटएल्लेबाइट्स (@ "सी: \ मायक्रर्ट.पीएफएक्स", प्रमाणडेटा);

java - Where can I find the old "Developer Collaboration" plugin? -

Once upon a time there is a Netbeen plugin named "Developer Support" which allows you to perform remote pair programming. Now, in Netbeans 6.7, "Developers Support" and nobody else, but there is something called "Keny Support". Unfortunately Kenai is a real time editor and it does not seem to be usable just for the OpenSource project, but my project source is off. I went back to Netbeans 6.5 but I found that the "Developer Support" plugin is not available for download through plugin manager (from Tools> Plugins) and I do it Where can I find the "old developer collaboration" plugin? Or what choice do I have? I tried on 6.9 and it does not work. Editor Library 1.27 is required, 6.9 is 2+

Report Services: Controlling page breaks inside a table -

I am using the table on my report to present data as it was too much data and I used to have A4 I wanted to print the report on the page, so I divided each row into 3 separate rows. My problem occurs when the report goes to the second page, I want it to break before or after 3 lines. Example: Name of the name / contact Name of age - address / contact The name / address of the name * page break * contact This is what is usually the case. I want to make sure that the page breaks are on the lines only. There are several strategies to follow: KeepTogether is useful in If you want to fit it on a page, try to adjust the page margins, padding, font size, line height to create the report, provide more complexity Another option is to create a table group on the person, and the page on the property ending with group properties (group edit) Check the brakes. Thus you can put each group on a separate page Hope it helps

security - Is it possible to create a forged file which has the same checksums using two different algorithms? -

I was slightly inspired by this blog entry (German) The current assumption is that MD5 and Both Sha1 have broken down easily and not fast, but for at least one practical possibility, for MD5 in the range. (I'm not exactly cryptologist, so maybe I'm wrong as stuff). So I asked myself if it would be possible to create a file, same size , as the original file A same MD5 amount , And same amount 1 amount First of all, will it be possible? Second, is it possible with the current hardware / software in reality? If not, the easiest way to assure honesty is not to have one file always used to use two different algorithms, even if they have some kind of weakness? Renew : Just to clarify: This idea is a file A and a file that meets the requirements: Size (A) == Size (A ') && md5sum (A) == MD5 SUM (A') && SHA1sum (A) == Sha1sum (A ') "Would this be possible?" - Yes, if the total size of the checksum is smaller than the t...

Code signing certificate for open-source projects? -

I want to publish one of my applications as open-source and want to digitally sign on the binary created by me. Yes certificate. (Of course, someone else can download any code and make himself a certificate of mine.) I want to do this so that no one can see that this build was made by me, not by anyone else I want to create a secure website with a valid SSL certificate so that visitors can make their accounts securely so that they can contribute to this project. I can make a self-signed certificate, but I really do not like that option or I can pay Verizon a piece of gold to get the certificate which is something Will be valid for years. I do not like that option because my treasure is valuable to me. So, are there any other options? For example, a provider who supports open source projects by giving certificate for low cost? It is not free, much less expensive than Verisign ... (The project is created in C #. Additional projects in ASP .NET which require SSL.) You can t...

wcf - Best ways for transfering data over the Internet (for .NET developers) -

I have to read some data from a server, have to transfer it to the internet (no VPN), and write it to disk I could have considered several options of other servers, but in the end I implemented it: Serving the sender as a window, which sends new data every x minute Receiver service hosted with WSHttpBinding as a WCF self The data is being transferred as a string, the object that has been serialized XML But after doing this, I realized that such a Several ways to do this: Other protocols such as FTP. Listed in other bindings Other parameter types, such as the original object type And I wonder if any of these options will result in faster, more reliable or more secure transfers. If you are likely to get the SFTP (SSH File Transfer Protocol) my vote will be / P> FTP, too many tunnels through an SSH connection. ... You can also try to build web based services that are conforming to WS-security policy for message based security (go together on the basis of...

c# - Stopping a programmatically instantiated storyboard -

I have an event trigger that will stop some storyboards which are defined in my XML ... but now I have a storyboard That I am starting the program. & lt; UserControl.Resources & gt; & Lt; Storyboard x: key = "fadein" & gt; ... Definition in feed & lt; / StoryBoard & gt; & Lt; Storyboard x: key = "fadeout" & gt; ... Definition in feed & lt; / StoryBoard & gt; & Lt; / UserControl & gt; & Lt; UserControl.Triggers & gt; & Lt; Event Trigger Routing Avent = "Mouse. Mouse Lev" & gt; & Lt; StartStoreboard = "{Static Resources Fadein}" X: Name = "FadeinBAG Storyboard" /> & Lt; / EventTrigger & gt; & Lt; EventTrigger Routing Avent = "Mouse.Messenger" & gt; & Lt; StopStoryboard StartStoreboardNameName = "FadeIn_BeginStoryboard" / & gt; & Lt; Start StopStoryboard StoryboardName = "FadeOut_BeginStoryboard" /> ...

asp.net mvc - Multiple Dynamically Populated Drop Down Lists -

I have a page that has about 10 drop down lists that are generated from my SQL database. What's the best way? I was going to use a stored procedure with LINQ back to multiple result sets, but it looks a bit more I have another way of doing this? Using HtmlHelpers or something like that? As everyone is confused by this, I will be elaborate. It is not with caching, it is not Do not do this with ASP.NET controls like DopDownList, I have tagged it as ap.net-mvc Behind this code-model, I thought how clearly it was clearly clear from this question originally tagged as ASP.NET MVC The problem is that many results set on the page are necessary for the drop down list HTML!). So I have a drop down list for Badger's own favorite breed, a drop list for how many birthday lists you have, how many clouds in the sky today are all dynamically populated (please note, I jokingly I am a financial system on which I work). I need to stay on all my watch pages, but I do not want to us...

database - What is the difference between ODBC and OleDB? -

I found this question here: who gave me more information but actually did not answer the question I am asking, so I will go from there. I am working in C #. I will tell you how I have reached this puzzle, but basically I am trying to make a decision between ODBC and Oleadibi. We work with many different clients who keep extremely diverse databases (some SQL, some Oracle, some more I have never heard of and have not troubled to remember the name ) Now, what I think, the ODBC is old, and that is / is the standard. And now Olebey has come along and ... is ... different? But it caters to the same thing (it talks to the database) Why would I want to use one from one to another? The Odyssey (according to the above post) is cross-platform, which is good, but Olendi has provided very little information about the offer of ODBC. In my second research, I have found (on MSDN forums) people are saying "If you can, use the Odidi, take the support of ODBC" Naturally, no logi...

linux - Link to a specific inode -

I have a file that was deleted, but is still opening a program. I would use the LSOF Found inode number. Any code helps, but Pearl will be easy. pid / fd / Copy file descriptor Use the LSoff to find the PID and file descriptor.

Find out which group matches in Java regex without linear search? -

मेरे पास कुछ प्रोग्राममैटिक इकट्ठा हुए विशाल रिजक्स है, जैसे (A) | (B ) | (सी) | ... प्रत्येक उप-पैटर्न उसके कैप्चरिंग समूह में है जब मुझे कोई मैच मिलता है, तो मुझे यह कैसे पता चलेगा कि कौन सी समूह बिना किसी निरपेक्ष स्ट्रिंग के लिए प्रत्येक समूह (i) का परीक्षण कर रहा है? यदि आपका regex प्रोग्रामेटिक रूप से जेनरेट किया गया है, तो क्यों नहीं प्रोग्रामैटिक रूप से n अलग regexes उत्पन्न करें और उनमें से प्रत्येक का परीक्षण करें? जब तक कि वे एक सामान्य उपसर्ग और जावा रेगेक्स इंजन को चतुर रूप से साझा करते हैं, तो सभी विकल्पों को भी परीक्षण किया जाता है। अपडेट: मैं सिर्फ सन जावा स्रोत के माध्यम से देखा, विशेष रूप से, java.util.regex.Pattern $ Branch .मेल (), और यह भी सभी विकल्पों पर एक रैखिक खोज भी करता है, बदले में प्रत्येक की कोशिश कर रहा है अन्य जगह जहां शाखा का उपयोग किया जाता है, आम उपसर्गों के किसी भी प्रकार के अनुकूलन का सुझाव नहीं देता।

sql server - Good books or sites for advanced SQL queries or puzzles? -

I work with SQL daily and want to improve my SQL skills. I am looking for online resources or books for advanced questions for real life problems, which I liked for Celco's books and I am looking for similar resources. I am also interested in SQL puzzles, but who solve real life business apps I'm not like the problems of brain teasers, chess, games, cards, and SQL which look too complex or too vague. I want to learn how to use SQL with less floating tables and more sophisticated, subqueries .. etc .. I tested resources from a similar SO question, but I did not find them very useful and expected that there was a need for others. Celco's books refer to different ways of the same problem and I find it very informative and open the eye. I want more! I like the following book:

windows - Batch Delete Files From File On Cmd Line -

I have a long list of file names in a txt file, which I Searchr / m "string here" *. * & Gt; C: \ files.log The file is about 3 MB. Now I want to delete all those files I tried Dell & lt; C: \ files.log But it does not work NT's batch supports for a loop with a special switch For / F looks appropriate as you want because it allows input from the file and the static delimiter . You are looking for something Are ... for / F "token = *" %% a in (files.log) "DELETE" %% A "

OpenGL vs OpenGL ES 2.0 - Can an OpenGL Application Be Easily Ported? -

I am working on the gaming framework, and am a newcomer to OpenGL. Most books do not give very clear answers to this question, and I want to develop OpenGL on my desktop, but executing code in the OpenGL ES 2.0 environment. My question is two times: If I target my framework for OpenGL on desktop, will it run without any modification in the surroundings of OpenGL ES 2.0? If not, then there is a good emulator, PC or Mac; Is there a script that I can convert to my OpenGL code in OpenGL ES code, or flag things that will not work? It has been around three years since I was finally working on any ES , So I can be old or remember just a few things wrongly No, targeting OpenGL for desktop is not similar to the target of OpenGL, because EE is a subset of ES instantaneous mode functions ( glBegin () , > does not apply glEnd () glVertex * () , ...) The main way to send goods in the pipeline is to Vertex arrays. In addition, it depends on you which product you are targeting...

cocoa touch - Favorite way to synchronize sqlite3 db on iPhone over HTTP -

There is currently a sqlite3 database in my iPhone application, the database has reached 10 MB + by itself, which so far I have removed all those data. Some of the data in which there was no part of the App Bundle. If I only provide the schema, then what is your preferred way of syncing all the tables on HTTP? Use a tag filed to identify whether the record was synchronized or not. Both iPhide-side databases and server side.

How do I get php-win to work with Zend Server? -

I have recently installed Z server CE but I can not get php-win to do anything. When I run a CMD script using standard php calls, it works perfectly but fails to do anything in any call using php-win. no output; nothing. For example: php C: \ path \ to \ script The above works. But nothing below: php-win c: \ path \ to \ script any ideas ? Excerpt from PHP manual: As a PHP 5, A new php-win.exe file is distributed. This is equivalent to the CLI version, except that php-win does not output anything and thus does not provide any console ("dos box" does not appear on the screen). This behavior is similar to php-gtk. You should configure with --enable-cli-win32. I.e. Php-win production output is not considered. It can do other things - to write discs, in databases, etc. If you want to check it, type this type of script: & lt ;? Php file_put_contents ("a", "aaa"); and see if the file is showing up.

asp.net - Implementing authentication in an webpage through WinForms app -

And here comes the situation ... A customer has installed my Super Cooper Winform application is. Username and password are authenticated on App Startup with my MSSQL server. I want to redirect the user to my webpage and when he clicks on the "Update Subscription" button Any thoughts or Opposition should be welcomed I will suggest a slight change in your architecture. Instead of authenticating from the WinForms app directly to the database, create a simple web service allows you to pass authentication token in passing in the username and password and in response to a successful login. Maybe this makes us some kind of user name + password hash. Token generation / authentication is included in your website code by putting arguments for it in your website, and you can change it to one place instead of ensuring part of WinForms and share the site in sync is. Anyway, the WinForms app can then capture tokens in memory, and it can pass back to the web site in th...

c++ - Developing a static source code analysis tool for proprietary API? -

is a proprietary API that is built on C ++, so it uses all the features of C ++ and It has its own API There are some APIs that work similar to C ++ APIs (such as Stroke for Molok), these APIs are made available for reasons of execution. Although many stable code analysts are available for C ++, we can not use any of them. There is a need to keep a stable code analyzer which can be run on code with proprietary APIs. I would like to know how I can start developing code analyzer. Like people available for C ++, this may not be very convenient. [UPDATE] I got the following question which is what I am doing. I would appreciate any guidance. My only difference is that instead of Java, the only difference is my concern for proprietary API, so far I have got good answers, but I want to know more from those who are Are through. I am confused: Is the implementation of a language at the top of C ++ or just one set of APIs? Any later C ++ programmer will capture things like ...

datetime - What to use as foreign key if no match in the other table - MySQL -

I am working on the presence / overtime module for a scheduled web app. The idea is that there is a table in the change MySQL, each shift has a start and end time, the manager will select a change and an entry in the attendance table, specifying that the employee was left early / late / / Overtime had worked The entry in the presence table is important for Shift ID # (which is just an enumerated key). But if someone stops in their day, what is a good system to use for those keys? Ccan I set up a conditional calculation? And how do I avoid the risk of overlap with a change ID? Adding overtime changes back to the original schedule DB is not an option. Like your previous question, if there is no data, then NULL is appropriate. In this case, the work is not related to any particular change, so what can you do there? And then the situation should be shown to it.

SEO - noindex, nofollow and canonical tag -

I need some explanation about your question. An example already added to my header Should I add an ethnic tag to my header again? & lt; Link rel = "canonical" href = "http: //www.example .com / product.php? Item = big-fish" /> let me know :) Update We can learn that authentic Tag is currently also supported by Google, Yahoo and Live Search, How about No Indics and Nofollow? Are Yahoo and Live (Bing) also supported? , and support noindex and nofollow No indax > Nofollow tells them that you do not want to follow any links on the page. Adding canonical tags on the same page will not hurt, but the effects are unknown unless you talk to a search engineer.

sqlite - Does an in-memory database also have a filesystem component? -

I am working with the DataMaper which allows you to specify a path for the database file on your system or Just string "memory" and then an "in-memory" database is used, however, I do not know what it means. Is an "in-memory" database completely memory-based or is it sorted on the file system at any time? What is the benefit of the in-memory database? For the efficiency of removing the cost of the filesystem access? Due to the fact that the memory database in SQLite is not actually for display. In practice, leaving the file is not really any slow motion, except that if you get out of memory, it is actually mostly for temporary caching or testing, for example you can use in-memory for your unit test. You can use DB so that you can not go to the production data. Or if you want SQL functionality, you can use it as a substitute for a memcache. Actually, it's there so that you do not to continue the data, if you do not need it.

c# - how to extract maximum date from web page in dot net window application -

In my application, I want to remove the latest date shown in the web page. I am using the System.Xml.Linq.XDocument class to remove content. But I am not able to remove the feed's pubidate. Here is my code but the exception is. System.Xml.Linq.XDocument feeddata = System.Xml.Linq.XDocument.Load ("http://feeds2.feedburner.com/plasticsnews/plasticsinformation/plastopedia"); Var maxPubDates = (Select feeds in feeddata.Descendants ("feeds") feeds; DateTime maxDate = maxPubDates.Max (feed => (date time) Feed Element ("pubadet")); Actually the row: var maxPubDates = (Select Feeds ("Feeds") feeds in Feeds.Descendants); Nothing is returning, because the tag is not a lineage with "feeds" Change it to this line and you will get the right result: var maxPubDates = (choose items from feeddata.Descendants ("item") items);

objective c - Customize UIStatusBar in iOS -

क्या UIStatusBar class को अनुकूलित करने का कोई तरीका है? स्थिति पट्टी के साथ (या आसपास) आप क्या कर सकते हैं, इस गिथूब प्रोजेक्ट को देखें: I यह मेरा एक प्रोजेक्ट में उपयोग किया है, और यह एप्लिकेशन की समीक्षा के माध्यम से ठीक ही जाता है।

svn - How do you sanitize your source before doing a subversion commit? -

Sometimes when you are working with your local copy, you have stored the configuration settings that you are bound to Do not want to be unresponsive and to ignore the file as there are also application specific settings. For example, a Django settings.py file contains both the database connection details and the project settings, such as which application to load. Is there any way to secure these types of files when they are committed? And then what's the way to restore your local settings during a checkout? My existing environment is Linux and Command Line Subversions settings.py.example , "itemprop =" text "> In your copy of the work, you settings.py.example to settings.py and work with copy. If you need to make any changes to the standard configuration, then change settings.py.example and check it. Otherwise, you will not need to change it, and your revised code is not even under the settings.py version control, so it does not take into acc...

sql - MySQL query - show results that are not in another table -

मेरे पास एक क्वेरी है: SELECT lesson.id, p1.first_name, P1.surname, start_time, instrument.name सबक से, व्यक्ति के रूप में पी 1, व्यक्ति ए पी 2, लिखत, इनवॉइस_अथोन कहां पाठ। विषय = p1.id और पाठ। टीचर = p2.id और instrument.id = lesson.instrument_id आदेश द्वारा उपनाम हालांकि, मैं इसे संशोधित करना चाहूंगा ताकि यह केवल परिणाम दिखाएगा जहां lesson.id तालिका में नहीं है invoice_lesson.lesson_id । क्या यह एक सहसंबद्ध क्वेरी है? मैं यह कैसे कर सकता हूं? आप इसे बाहरी सहभागी से कर सकते हैं: SELECT lesson.id, p1.first_name, p1.surname, start_time, instrument.name सबम से I JOIN व्यक्ति p1 ON l.student = p1.id JOIN व्यक्ति P2 ON l.teacher = p2.id I पर i.id = l.instrument_id LEFT JOIN इनवॉइस_अथान आईएल ON l.id = IL.lesson_id WHERE IL.lesson_id नाम से उपनाम है यह दृष्टिकोण सहसंबद्ध subquery से बहुत तेज हो जाएगा दृष्टिकोण।

c - Curses getting arrow keys -

In an attempt to get input through curses (ncurses) from the arrow keys, it will not catch in the form of KEY_UP etc. I Keypad function with real logic but getch still returns a escape sequence how can i flip through the given values ​​given by getch () and specifically get arrow key? I used to call storage getch () as char When they are int, it works perfectly after the switch

ruby - Distributing Rails Applications as Native Applications -

I would like to distribute a rail application as a double-clickable application when double-clicking on an app I think that Mongol should start and then the user's browser should be started and open to something like the local host: 3000 I will need to do what I need to do, a copy of the rail in the project Need to include Yes, and a copy of the jewels will be required. Do I Need to Distribute Ruby? Initially I'm trying to target Mac and Linux for distribution. Does anyone have any such experience packaging rail application? The application I want to deploy is a media center server for a user's media, unfortunately it means that I can not be a public server serving media. I have created the server to import and manage media using ruby ​​on rail and rack works. Is it a good way for users to set up this easy? This idea was with a double-clickable application, which would be easy for users to bring up and down servers. I have decided to use jruby and saw the applic...

iphone - Play Alert Sound (Vibrate) While AudioQueue is Recording -

It seems that it is not possible to play a warning sound audio service playlists (kSystemSoundID_Vibrate) ; While AudioQueue is being used to record audio, is that correct? Maybe I'm doing something wrong, is there any way to do this except to stop recording? TIA By reading the developer forum of Apple, some deity claims that this is a bug that was filed has gone. If you set your session type to kAudioSessionCategory_PlayAndRecord, then it should work .. but not so.

java - What's the use of a method-local inner class? -

जावा के डिजाइनर ने यह उपयोगी / आवश्यक क्यों समझा? विधि-स्थानीय कक्षाओं का उपयोग करके संबंधित भागों को एक साथ रखकर आपके कोड की पठनीयता बढ़ सकती है। एक अनुचित उदाहरण के रूप में, मान लीजिए कि आपके पास पृष्ठभूमि में कुछ करने के लिए एक विधि बनाने की आवश्यकता है: class test {void f () {// बहुत सारे सामान नए थ्रेड (नया) रननाबल () {सार्वजनिक शून्य रन () {doSomethingBackgroundish ();}})। प्रारंभ (); // बहुत अधिक सामान}} विधि-स्थानीय कक्षाओं के बिना, आपको या तो करना होगा: टेस्ट के अंदर एक नया नाम दर्ज करें P> ये दोनों विकल्प आपके स्रोत के पेड़ में अन्यथा संबंधित प्रसंस्करण को स्थानांतरित करके कोड की पठनीयता को कम कर सकते हैं (हो सकता है कि एक ही स्रोत फ़ाइल में, संभवत: किसी अन्य स्रोत फ़ाइल में)। विधि-स्थानीय वर्ग का उपयोग प्रसंस्करण तर्क को सही स्थान पर रखता है जहां यह उपयोग किया जाता है। यह निश्चित रूप से सभी परिस्थितियों के लिए लागू नहीं है, लेकिन कई सामान्य स्थितियों में यह बहुत उपयोगी हो सकता है ऐसा कोड आमतौर पर जीयूआई एक्शन श्रोताओं के लिए उपयोग किय...