Posts

Showing posts from January, 2011

performance - Jquery Data grid or flex datagrid -

There are approximately 200,000 (.2 million) records in my database. The client wants 5,000 records of a time to appear on the browser. I tried jacagrid and used paging to load 5000 records and load for other records. But the scroll bar is taking some time to scroll and squeezes for a while. It is taking a very good time to choose a record (500 records also take enough time to select the record Time) I tried it on Windows 7 62 bit machine and 8 GB RAM I'm trying to firefox, IE and Chrome I just checked Flex DataGrid and it is loading very fast (because it is controlled by Flash Player) and everything works perfectly Does. But is the priority for the Zacry grid? Do you use any other grid that handles 5,000 records at a time in client over (or is there any other way to increase performance)? I use it however I'm not sure this will help you here The real problem is that You want to show 5000 items on one page via javascript What you really should do, tell the customer...

extjs - Showing a limited subset of (or individual record from) a store in an Ext.DataView -

In Sankcha Touch, I often get an Ext. The DataAvE panel is required to have a sub-set record or a single record from the collection in the archive. For example, I might have a model for car , in which it has app.stores.cars store, but I have listened to my listoffers In the DataView , I want to show a small subset of these items (say, just sports car ), while displaying large full sets in my list is also done by DataView . My First thought that many shops were to be used. So I have a main store for a large list of all cars, and there is another store with one filter for my other player, however, updating a model from a store does not automatically update the records in other stores. Therefore, it defeats the purpose of using Datavway because updates are not updated everywhere in the page while updating. My Second attempt was to overwrite the collection data method on the DataView, which was OK like I did later : var card = new Ext.DataView ({store: app.stores...

code signing - iPhone Entitlements problem with XCode 4 for Ad Hoc distribution -

I have read all documents and postings again on ad hoc distribution and there is still a problem. If I try to distribute 'wireless' (with a .plist and .ipa file being downloaded through Safari), the app starts to download, the icon is well-formed and 'Installing' Name changes. But when it's about 90% complete I 'unable to download ...' get the warning. If I use the iTunes method of transferring an app then I was not installed on "app" xx "xx" because entitlements are not correct. ' Question 1: I have read that you no longer need to add different .mobileprovision files because XCode (I'm using 4.0.1) adds it to the bundle - is this true? Q2: When I download .mobileprovision in Safari (on iPhone) it's only text Does it represent my problem or an indispensability? Question 3: Does this problem entitlement concern the plast? I have not received any documents from the Apple or any blog I see this file while editing with...

php - URL as URL's get parameters - problem with "&" -

एक स्क्रिप्ट है जो GET पैरामीटर के रूप में अन्य url प्राप्त करता है: script.php? File = Http: //www.google.com& id = 123 समस्या यह है: जब यूआरएल में पैरामीटर होता है, तो इसे स्क्रिप्ट के पैरामीटर के रूप में प्रयोग किया जाता है, न कि यूआरएल के पैरामीटर: script.php? File = http: //www.google.com? Q = adsf & lang = en & amp; id = 123 यूआरएल है http://www.google.com?q=adsf&lang=en , लेकिन यह और के बाद कटा हुआ है, क्योंकि इसे से संबंधित के रूप में देखा जाता है Script.php स्वयं। मैं इस बारे में क्या कर सकता हूं? मैं और को % 26 के साथ बदलने के लिए थक गया हूँ, लेकिन यूआरएल इसके साथ टूट जाता है। आपको इसके साथ मान को एन्कोड करना होगा। यदि आप PHP का उपयोग कर रहे हैं, तो उपयोग करें (या यदि अपेक्षित है): $ url = 'http://www.google.com?q=adsf&lang= एन '; गूंज 'script.php? File ='। Rawurlencode ($ url);

asp.net - The webservice handler is never called I have no compilation error no security exception -

I have a simple Hello web site that is hosted on local lighting, such as the Silverlight app and this code without error Executed (I've checked that the mainpage debug has been fully implemented) but the hellocompled is never called. Public Menopause () {InitializeComponent (); WebserviceHello.HelloSoapClientHello = New WebserviceHello.HelloSoapClient (); Hello = envoyel = new event holler & lt; WebserviceHello.getHello Full EventArgs & gt; (Hello Completed); } Public Zero Halo Compiled (Object Sender, WebserviceHello.getHelloCompletedEventArgs e) {Message Box.Show ("Success"); } So what is happening now? Is Silverlight Incredible or Did I Make a Mistake? Certainly the webservice works, I can call it on the webservice test page, and I have said it with vanofha. The second line of the main page instructs the webservice, the third line binds an eventholder, but you Do not call any function from your webservice.

SNORT: how to save the log file as ASCII format? -

I have captured traffic with this command / usr / loca / bin / snort -ieth0 -l / var / Log / since I never put- b then this is not a binary file .. but when I read a log file to read a program appears like all unknown words ... then this still means a binary file Rite ... Any other method should be the ASCII format to specify it? Like snort.conf or others need to be configured? Most applications read binary log format. Apart from this, the binary format is preferred for performance reasons. I simply log in to the integrated log format and use the guest house to convert the log to text on the fly. This will allow you the flexibility of binary logs and text.

c# - Type or namespace of 'ModelBuilder' cannot be found (are you missing a using directive or assembly reference?) -

In this, it introduces the 'Model Maker' type I use ASP.Net 4, MVC3, and EF 4.1 I'm getting, and I get a red squillline line under the 'model maker' type. Can not find this type, has that name changed? What context should I add to use it? Using the system; Using System.Data.Entity; Using System.Data.Entity.ModelConfiguration; ... Protected Override Zero OnModelCreating (Modelbuilder Modalbuilder) {modelBuilder.Entity & lt; Movie & gt; (). Property (P => P. value). Publication (18, 2); } The name has been changed from CTP5 to EF 4.1. This thing is now called DbModelbuilder .

cocoa touch - iPhone: To store photo album image URL's and compare later: -

According to my query from the link below, I have retrieved the images of the photo album from the ALSAT Library. I get the images like the property url below, "Property-Library: //asset/asset.JPG? Id = 1000000001 and ext = JPG" "Property-Library: /asset/asset.JPG?id=1000000002&ext=JPG Property-Library: //asset/asset.JPG? Id = 1000000003 and ext = JPG " I stored these in one Want to do the database (or) file [I do not know that is suitable for comparison for later purposes] Next time (say, after 30 minutes), I can re-all image url from the property. Want to capture and compare the previous image URL, which has been stored in DB, to find out if any new images have been added to the photo album or not? If a new image has been added to the photo album, then I get that image in my code. I want to know, what should I use to store image URL strings, whether the SQLite database (or) file, and next time to be enough to compare previous data and current data ...

html - How to keep symmetry with CSS fluid spacing of dynamic content -

I have a main content in which I'm dynamically adding content blocks to a row-style layout (tables has no use) . I am trying to keep a space symmetry between the content block as well as the range of content blocks and the range of the main content. This is the layout I am trying to achieve: ______________________________________ | | | | Xxxxx | | Xxxxx | | Xxxxx | | Xxxxx | | | | Xxxxx | | Xxxxx | | Xxxxx | | Xxxxx | | | | | | Xxxxx | | Xxxxx | | Xxxxx | | Xxxxx | | | | Xxxxx | | Xxxxx | | Xxxxx | | Xxxxx | | | | | | Xxxxx | | Xxxxx | | Xxxxx | | Xxxxx | | | | Xxxxx | | Xxxxx | | Xxxxx | | Xxxxx | | | ______________________________________ | The large container div is my content div small | XXXXXX | Blocks are my internal content-block divs Here's the issue I raise: When I use the inner space from margin-left or margin-right to the right place, then with this large content devil Throwing the edge of the block in the edge - then I end up with the extra space, e...

avd - Strange android emulator behavior - mixed landscape and horizontal views -

Image
It starts to be a portrait view ... but it's a mixed scene. I tried several skins and nothing I did not even try to use Landscape Skins, but they apper for the same. (Promote to answer it) I have done this on my phone under multiple roms (Eclair + Sense, Fryo + CyanogenMod, Gingerbread + AOP (with and without CMOD), so this is probably not a bug in the emulator; More likely it is a bug in the base system libraries. I have sometimes noticed that it attracts the status bar in the wrong position but everything else is unfortunately, I do not know what to do about it; Usually it is fine after many orientation changes, but once I had to reboot, though the probability of being in low memory conditions is high, though.

php - why class attribute assign by reference doesn't work? -

वर्ग c {सार्वजनिक $ myV = & amp; $ _ GET; } यह मुझे त्रुटि देता है: ( यदि मैं सादा सरल करता हूँ: $ myV = & amp; $ _ GET; यह काम करता है आप यह भी नहीं कर सकते: सार्वजनिक $ x = $ y; मैन्युअल से: इस घोषणा में एक आरम्भिकरण शामिल हो सकता है, लेकिन यह प्रारंभ एक निरंतर मूल्य होना चाहिए - यानी, इसे संकलन के समय मूल्यांकन करने में सक्षम होना चाहिए और मूल्यांकित होने के लिए रन-टाइम जानकारी पर निर्भर नहीं होना चाहिए। इस के आसपास पाने के लिए , बस इसे __ निर्माण फ़ंक्शन में सेट करें। सार्वजनिक फ़ंक्शन __construct () {$ this- & gt; myV = & amp; $ _GET;}

Django Haystack/Solr: Faceting on a model but show results only from a ForeignKey field -

मेरे पास Django में दो मॉडल हैं (छद्म कोड में) class Medicine Db.Model): field_1 = db.CharField () field_2 = db.CharField () वर्ग अनुप्रयोग (db.Model): field_1 = db.CharField () field_2 = db.CharField () दवा = db.ForeignKey (चिकित्सा) एक 1: एम है एक दवा में कई अनुप्रयोग हो सकते हैं। मुझे अनुप्रयोग के क्षेत्र में पहलू की जरूरत है लेकिन केवल संबंधित चिकित्सा ऑब्जेक्ट दिखाएं क्या हो सकता है? या एप्लिकेशन ? अगर मैं SearchIndex के लिए एप्लिकेशन बनाता हूं, तो मैं कैसे पता लगाता / फिल्टर डुप्लिकेट चिकित्सा वस्तुओं? पीएस: मुझे पता है देवता को Solr के रिलीज में फ़ील्ड गिराना सुविधा है, लेकिन मैं ऐसा करने से बचना चाहता हूं, क्योंकि यह बहुत बड़ा डाटाबेस और प्रदर्शन महत्वपूर्ण है। मैंने घास का ढेर मेलिंग सूची पर डैनियल लिंडसे (हेस्टैक / पीएसओएलआर लेखक) की सहायता से इसे हल किया है। से हयस्टैक इंडेक्स इंडेक्सस क्लास मेडिसिन (इंडेक्सिस। खोज इंडेक्स): field_1 = इंडेक्स .MultiValuedField (faceted = True) # अन्य फ़ील्ड परिभाषा def defer_field_1 (स्वयं, ऑब्जेक्ट): ऑब्...

android - DispatchKeyEvent: determine the exact type of the getCurrentFocus view -

I have a custom activity group that adds and removes views in the stack. Send sending dispatch to special key press. The problem is that I need to check the current focused view like this: view v = getCurrentFocus (); When I check the type of view, it gives a type like this com.android.internal.policy.impl. PhoneWindow $ DecorView What is this type and do I cast the object of any type of this type? Thanks No, you can only see objects of any type Can not put! The best practice is that you should only put up the class hierarchy, or if you really want to put it down, make sure you check the first type using the example operator. In addition to this, considering the name of the package it is an internal Android class, so you do not want any reference to that reference in your code - if it is internal, then it is non-API they You can also change the time and your app will be broken immediately. Why are you looking at the type of view? Are you looking for a s...

xcode - Core Data Entity Object in Object Library -

I recently downloaded Xcode 4.0. After installing it, Xcode downloaded the core data framework. The version I installed is 102.1. I created a test application in ExCode 3.2 and was able to have a core data unit in my main window. I rewrite the application in Xcode 4.0, but the core data unit can not be found in the object library. I am trying to figure out that the framework was not properly loaded or for some reason there is no core data unit in the Xcode 4.0 object library. I can open my xcdatamodel file and edit it. There is nothing wrong with your installation. This feature is currently unavailable in Xcode 4 and there is no indication that its coming or not. I found it useful too. The best part is that your system should have Xcode 3 installed which you can use to use the object that you want to use that object.

ruby on rails - Storing navigation structure -

I need a way to store the nested navigation structure I do not want to use the database for it, like tree-like structures There are a lot of headaches in storing. I want some space to keep this structure as a text file, so that I can easily change during development. What are my best options? YAML? XML? I throw complex navigation structures into a helper myself and call it good if you External, but I will put together a config / nav.yml file: - url: 'root_path' - text: colors url: 'colors_path' nodes: - Text: Blue URL: 'Blue-Path' - Text: Red URL: 'Red_Path' Then when this project is loaded, the Yimal file is loaded into global stability: NAV = YAML.load_file (file.joi) N (RAILS_ROOT, 'config', 'nav.yml') Then in the view you will iterate nav still.

.net - Is a dynamic ConfigurationSection possible in a simple manner? -

In .NET 1.0, IConfigurationSectionHandler provided a clean, single-method interface for implementing the configuration handler. In .NET 2, came with the configuration, with a great wild animal of complexity and static type enforcement, declaring a banner, "unknown evil will occur when you use IConfigurationSectionHandler!" . Being rebellious, I am trying to noise a plugin architecture like an ancient, static frame like .NET 2, I want a dynamic configuration section. Nothing is stagnant, just a nice tree of XML nodes or nested key / value pair is something that plugins can use without defining delicate serialization codes. Originally intended like XML, before it's fragile catch -22 web. Configurable horror and painful boilerplate became the cerealization tree. Can I have an XMLElement example, or XMLReader, please? Keeping in mind the age of this post, you may already have this self answer Got it ... You can implement ConfigurationSection , which only n...

is "backgroundWorker" suitable for my code in c# -

I want to direct something with a .bat file. My BT file is AECO OFF SETUP_FILE_DIR =% cd% echo Please wait ...: NOOR @ echo of xcopy "% SETUP_FILE_DIR% \% 2" "% 1" / S / E / H / Q / C resonance files Are copied! Stop and I want to use the progress bar for all directory copy operations. For example: If a file is copied, the progress bar increases. ... I used C # in the process but did not work when WindowStyle is hidden, the window is visible I do not understand how it can be. Now I want to try the background player. Do you think this project is suitable? And What is the difference between the process and the background worker? The process starts an external process, alternatively waiting for the return. BackgroundWorker runs the works in a background thread and includes events to run in different stages I had to go with BackgroudWorker.

iphone - regarding UIImageView Constant Animation -

I have an image that I want to animate continuously in UIImageView. Like left to right and some image objects to move? Thanks in advance Create an animation in the image editor (or something else if you have Then there is an animation) > Then save each frame as an image Create a folder in your Xcode project and import files into it (named "frame-x page" in the example below each frame Where x is the frame number) Then create an array of UIImages and UIImageView's animation image Set this to: imageView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed: @ "frame-1"], [UIImage imageNamed: @ "frame-2"], [UIImage imageNamed : @ "Frame-3"], [UIImage imageNamed: @ "frame-4"], zero]; Where you have a UIImage for each frame, then you start the animation: [imageView startAnimation]; You can also set the animationRepeatCount property of the image view. See for more information.

ASP.NET MVC Database Views -

Quick questions about database views I'm assuming that I can create a database of different tables and how to Add joints and then when I query, add, delete, etc. I can edit. MVC will understand all this without any complex work in the controller or in the store? There is a strange question but just wanted to make sure that my belief was valid. Cheers Unfortunately, MVC will not understand all this for you, you still have to write the communication from the database Use the SQL code (or ). There is a clear isolation of responsibilities that MVC gives you with its architecture: Views is responsible for displaying the data and should be as simple as possible (i.e. There is no argument) in the model and the rules Controllers are responsible for passing the data between the model and the view.

algorithm - Copy a string in constant time? -

I have seen the work of copying the string as O (n), where n is the string length, because It has been assumed that we should walk again through each character of the string and have to copy it individually. However, is it not possible to prepare instructions for a compiler who can copy an entire block of memory in an ongoing time? What is the potential of today's common architecture? As far as I do not know. However, for O () notation to be meaningful, you must first define the cost of each original operation. It is often left because "it is clear" and most of the time it is actually a good example of your (fictional) scenario where it is mandatory to define the cost. Second, a slightly more useful example is in the analysis of disk or tape storage search / sort algorithms.

python - Matplotlib svg as string and not a file -

I want to use Matplotlib and pyplot to generate a svg image used in the Django framework. As of now, I am creating image files that are linked to the page, but is there a way to meet STVG image directly as Unicode string without writing the file system? StringIO to avoid writing any file-object on disk Try to use import matplotlib.pyplot as plt import matlotlib with string IO np x = np.arange (0, np.pi * 3, .1) y = np.sin (x) fig = Import as plt.figure () plt. Plot (x, y) imgdata = StringIO.StringIO () fig.savefig (imgdata, format = 'svg') imgdata.seek (0) # Open the data again svg_dta = imgdata.buf # This is svg data file (' Test.htm ',' w '). Write (svg_dta) # this test

php xml get value of node -

How can I get "bla" in the dump under my node basically what is in my node bla & lt; Mynode name = "myvalueone" display = "myvalue2" & gt; Bla & lt; / Mynode & gt; Object (Simplexmlment) [21] Public '@Entiments' = & gt; Array 'name' = & gt; String 'MyLiveOn' (length = 65) 'display' = & gt; The string 'myvalue2' (length = 9) string 'bla' (length = 3) You can get the value by casting SimpleXMLElement in a string like this: $ value = (string) $ element;

http - Is a three-tiered architecture with REST-like Business Logic possible or viable for secure web applications? -

So not only answer this question, but feel free to throw ideas or improvements. Business logic level : Have done that the devices can prepare their own custom UI and tap in functionality such as REST, using GET, POST, and not interacting with the server. They are. Issue 1: The problem is how do you protect user's information? You can authenticate the user to an SSL connection and return a special hush so that users can manipulate their account, but if listening on a network, then whatever they want to do, they will call for a rest call Hears and HSH steals. One solution is that all the remaining calls should be on SSL, but this causes another problem. Problem 2: If the rest of the processes are in SSL, the browser must use SSL for everything that I think is slow and cumbersome Can be unnecessary when it is unnecessary. Apart from this, SOP makes it impossible to use SEL Ajax calls for REST processes from an unsafe browser. HTTP and HTTPS are con...

javascript - AnythingSlider Static Link takes 2 clicks the first time -

Image
I'm having a strange problem with AnythingSlider, this is my page layout: Being a red block, link the largest red block in the large middle black in Firefox and Blackberry Browser Clicks are required, but only one in Chrome / IE (IE !!) other red boxes (links) only need one click in all browsers What happens? Any help will be awesome people! Yes, it's the least in the version I'm using: AnythingSlider v1 8.6, I had the same problem, but now that we are setting the hashtag on false links;) $ ('# slider'). Some sliders ({hashtags: incorrect});

c++ - Instantiating an object on the Heap -

मुझे त्रुटि मिली: hashing.cpp: फ़ंक्शन में ???? Int main (int, char **) एक ????: hashing.cpp: 96: त्रुटि: अपेक्षित प्रकार-विनिर्देशक से पहले "Linked_HashTable" Hashing.cpp: 96: त्रुटि: एएएफ़एर int * एक ??? कन्वर्ट नहीं कर सकता LinkedList_HashTable * एक ???? प्रारंभ में हैशिंग। सीपीपी: 96: त्रुटि: अपेक्षित '', ??? या एक ????; एक ???? इससे पहले कि एक? Linked_HashTable ?? जब मैं अपना कोड संकलित करता हूं मुझे लगता है कि मुझे पता लगाना बहुत आसान है। यह कोड मुझे त्रुटि दे रहा है: Array_HashTable * linear_div_hash = new Array_HashTable (sizeDiv); LinkedList_HashTable * chain_div_hash = नया लिंकेड_हैशटेबल (आकारडिव); Array_HashTable * डबलहैश = नया Array_HashTable (sizeDiv); जहां दोनों Array_HashTable और LinkedList_HashTable () दोनों के लिए कंसट्रक्टर sizeDiv जैसा पूर्णांक लेता है चाहिए पूर्व> लिंक्ड लिस्ट_हैशटेबल * चेन_डिवाइस_हैश = नया लिंकेड_हैशटेबल (आकारडिव); हो लिंक्ड लिस्ट_हैशटेबल * चेन_डिवाइस_हैश = नई लिंक्डलिस्ट_हैशटेबल (आकारड...

android - where can I find httpsURLConnection source code? -

In Eclipse on my PC, I'm debugging my app and seeing an exception like this: At org.apache.harmony.luni.internal.net.www.protocol.https.HttpsURLConnection.connect (HttpsURLConnection.java146) I have the HttpsURLConnection source code Where can i find My environment is: PC, Eclipse Galileo, Android API Level 4 (Platform 1.6), Eclipse Installation Details "Eclipse," from Apache Commons HTTPPL, 3.1.0.v20080605-1035 Here's a tutorial on getting and receiving an Android source code. Maybe it can help but I'm not sure. Edit: This can actually be more direct for your question I found the link above originally from this post There are a lot of Solutions to see common source code. Hope it can help.

php preg_replace problem -

$ strSubject = preg_replace ('/ / बी'। $ StrWord। '\ B / i', '& lt ; बी & gt; '। $ स्ट्रॉवर्ड।' & Lt; / b & gt; ', $ strSubject); कोड के ऊपर PHP 5.2.6 में काम करता है, लेकिन PHP 5.2.9 में काम नहीं कर रहा है और "चेतावनी, अनजान मोडिफ़र ....." त्रुटि मिलती है। कृपया संभवत: $ strWord में एक मेटा वर्ण अनपेक्षित है। यह प्रयास करें ... $ strSubject = preg_replace ('/ \ b'.preg_quote ($ strWord,' /').'\b/i ',' & lt; b & gt; ' $ स्ट्रॉवर्ड। '& Lt; / b & gt;', $ strSubject); इसके अलावा, आप इसका उपयोग कर सकते हैं:) $ strSubject = preg_replace ('/ \ b ('। Preg_quote ($ strWord, '/' )। ') \ B / i', '& lt; b & gt; $ 1 & lt; / b & gt;', $ strSubject);

asp.net - using Threadpool.QueueWorkItem in Asnychronous Handler -

For an asynchronous handler it starts the new thread using MSDN ThreadPool.QueueUserWorkItem. I thought that the thread is taken from the ASP.net thread pool and the purpose of using the asynchronous handler should not be to use Threadpool. QUUserverctrite as a dashed. What's wrong with the example? Some things are wrong in your claim: Code> ThreadPool.QueueUserWorkItem , you do not start a new thread. This is the issue of being thradpold in the first place. You are reusing a thread from a pool. You mean that the example was specifically targeting ASP.NET, when it is not. This is showing you how to use Threadpool, to stop background tasks (which are expensive) without manually creating new sources. When and when to use ThreadPool, it is still yours, it is still yours. Using Threadpool to run an asynchronous task "does not defeat the purpose of using an asynchronous handler" Manually firing another thread is not giving you You do not block the user...

java - IP compression for database storage -

I have a database that stores the IP number of all users who have used a feature (i.e.: anyone Voted on polling), and I want to avoid voting twice from the same user or IP. As a result, I am collecting all the IPs of anonymous users who have voted in my elections. My database is full of IPs like 123.456.789 ... However, it is disabled, does one function reduce the function and IP in low string? Like 123.456 = 798 = & gt; For IPv4, you can insert an IP address from int such as int it: scanner scanner = new scanner (IP) .Usedelimeter ("\\."); Int value = (scanner.nextInt () (Scanner.nextInt () It can also be reversed: string ip = ((value> 24) & amp; 0xFF) + " . " + ((Value> gt; & gt; 16) & amp; 0xFF) + "." + ((Value> 8> & amp; 0xFF) + "." + (Value & amp; 0xFF);

asp.net - Best Technology suited for building E-Commerce Applications and the review on Supported Frameworks -

This may appear as a subjective question, but I'm asking from a technical architect approach. What would you like if you are creating ecommerce-based applications to help giant companies fulfill their marketing and sales campaigns? I saw an open source framework such as Magento that works with ZendFramework using PHP, MySQL and Apache stacks. Other infrastructure like OSAC looks sound. What is the e-commerce framework for Net Technologies? I also saw in Zoho and it seems that using their applications can be closed most of the requirements, but I think that whatever they make available they may have to face the issues of flexibility at the bottom of the line . Please tell that you know about the architectural benefits in the framework, thank you, always, and always listen to the advice of experts on the Stackhouse Flow, its greatness, your question of "huge companies" badly And there really is no information to answer it. / P>

Long title in Jquery's plugin FullCalendar -

I have a small problem with the long title in fullcalendar plugin. If you have a long title and short event time (for example 1 day) then the ur event title will not fit. What can I do with it? If you want to show the title in multiple rows, you can override the fullcalendar default CSS. Default CSS in full calendar v2.1.1 .fc-day-grid-event> .fc-content {white-space: abrop; Hidden flurry; } Remove White-space: iPod; and your title will always be visible.

java - Wrong output when searching with indexOf -

int locsPlusLast = locsPlus.get (locsPlus.size () - 1); Println (locsPlusLast); इंट इंडेक्स = चेकस्कैनिंग.इंडएक्सओफ़ ('(', लोकज़प्लसलास्ट); जबकि (इंडेक्स & gt; = 0) {index = checkScanning.indexOf ('(', locsPlusLast + 1); सिस्टम.आउट.प्रिंटएलएन (इंडेक्स);} चेक स्कैनिंग स्कैनर इनपुट है। मैं केवल (, लेकिन यह पोस्ट की गई) दो की स्थिति का उत्पादन करना चाहता हूं, ऐसा क्यों है क्षमा करें, मैं आपके प्रश्न को गलत समझा। इसे आज़माएं: निजी स्थिर शून्य स्थितिऑफ (चार लक्ष्य, स्ट्रिंग क्वेरी) {int position = 0; int परिणाम = 0; जबकि (-1! = (परिणाम = query.indexOf (लक्ष्य, स्थिति))) {System.out.println (परिणाम); स्थिति = परिणाम 1;}}

iphone - I want to pass a variable in CFSTR? -

In the following coding, I want to exceed the variable through CFSTR, how can I do this? ABMutableMultiValueRef address = ABMultiValueCreateMutable (kABDictionaryPropertyType); // Set the key and value for the CFStringRef key [5]; CFStringRef value [5]; Key [0] = Kebapar's address style; Key [1] = cables address ketikee; Keys [2] = kabPersonAddressStateKey; Keys [3] = kabpersonAddressZIPKey; Key [4] = kABPersonAddressCountryKey; Value [0] = CFR ("Wijtech, 208 / B Clifton Center, Karachi"); // value [0] = CFRR (address1); Let me know 1 which is NSString, how can I do that? Value [1] = CFR (""); Value [2] = CFR (""); Value [3] = CFR (""); Value [4] = CFR (""); Just insert it: NSString * YourThing = [NSString stringWithString: @ "Blow Blah"] Value [0] = (CFStringRef) yourThing; NSString and seafstring are interchangeable (subject to being cast). Do not forget to keep / continue

Ccreate an .exe from a .C file on Windows -

I would like to know whether windows should be used without any compiler. You can cross-compile from other platforms, e.g. , But eventually you need a compiler somewhere . If you do not actually need .EXE per , but only compile and run some code without having to install a compiler, for example for academic / experimental purposes , Then there are very useful sites, such as C provide this ability and many other languages.

mysql - Building a knowledgebase -

I am working on a helpdesk solution using Ruby on Rail and MySQL. I want to create a functionality which will suggest possible solutions based on the phrase in the query and on the basis of the previous solution for similar questions. Example A customer is calling a question "I can not access my account" and "the system is rejecting my login request". Login to my account. " The executive ticket logs a link will say" possible solution. " Clicking on the link will pop up a list of similar questions (in this case two results above). What is the best way to create a system like this? The best way to start is to implement some type of full-text search. See Sphinx and Solar. I recommend starting with Rail They are straightforward to implement and has a large user base, followed by the ability to use Spinks' algorithms results of keywords and rank / weight.

asp.net mvc - MVC - Call multiple controllers for a single view -

I have a view to show students, courses, topics together, I have 3 different controllers for each I get a model I I do not want to merge 3 different models in one model and then want to call a controller. Instead I need 3 different controllers and call 3 for these controllers. How to get it? Public Class ABV Controller: Controller {Public Activity Student Student} (See Return (RepositoryHeather.Gate Student List); } Public Action Course () {See RezultaryHeather Gate Course List ()); } Public Action Topic () {View Returns (RepositoryHelper GatesWise's List); }} - View (HTML.BeginForm ("GetData", "University", FormMethod.Post, new {id = "parameter"} )) {@: & Lt; Table & gt; @: & Lt; TR & gt; & Lt; TD & gt; @html Dropdown list ("student") @: & lt; / Tr & gt; & Lt; / Td> @: & Lt; TR & gt; & Lt; TD & gt; @html.drafficdollist ("course") @: & lt; / Tr & gt; &...

php - Check or Add to DB quickly -

I am using apache, php, mysql and code igniter and I have a database set up. In the database I have two columns, both of which should be unique in the combo: latitude and longitude So I have set up the database using this call: replace the pano_raw table Add unique index (latitude, LNG) Now when I add value to two columns (latitude and LNG), if the value is the same, then should the database be written correctly? Function addNewSet ($ data) {$ this- & gt; Db- & gt; Insert ('set', $ data); } Based on the success of reading or writing, should this function return true or false? So how do I change it now so that when it is returned or returned the line_ID of the record recorded? If writing works, then I need a line_id, if I do not need a phalsee then I can change the code called this function. Will this work? I do not think so? Function addNewSet ($ data) {$ this- & gt; Db- & gt; Insert ('set', $ data); Return $ the-> gt; & G...

php - How to create mentions for names like "@myname" using javascript? -

I am planning to create a web app and I have a question about how to create a Facebook or Twitter name like "@ Myname "is named Find them in a string with this regex .... $ Str = 'yo @bob, what's up? I have a new email, tell tom@bob.com, @Joyon, @ Alex ;; Preg_match_all ('/ \ s @ (? P & lt; ment & gt; \ w +?) \ B /', $ str, $ is mentioned); Var_dump ($ ment); output array (3) {[0] = & gt; Array (3) {[0] = & gt; String (5) "@bob" [1] = & gt; String (6) "@John" [2] = & gt; String (6) "@ black"} ["ment"] = & gt; Array (3) {[0] = & gt; String (3) "Bob" [1] = & gt; String (4) "John" [2] = & gt; String (4) "Alex"} [1] = & gt; Array (3) {[0] = & gt; String (3) "Bob" [1] = & gt; String (4) "John" [2] = & gt; String (4) "Alex"}} Of course, you can recognize them in real-time JavaScript in a stri...

Deploying apps with multiple ruby versions using Passenger -

Is it still the current state of deploying an application using different rubies with passenger? a???? #rails @ phusion_nl If this is so, then its disorder. This is the correct way of independent examples of rail applications, read this tutorial for some overview

Android: Uri to File -

I need to send a file through httppost. The image uri has been returned after clicking on the image But I can not make the file from the given Yuri. I tried: New file (mediaUri.getPath ()); // Error: There is no such file or new file (MediaURI); New file ("file: //" + mediaUri.getPath ()); But nothing works. Can anyone help? You can view it or

cck - autotranslate content in every enabled language with triggers autopublishes the new content in drupal -

I have a rule of triggers in Drupt that when I create a new content, then automatically translate content into each enabled language Translates. It's okay with some problems (such as Drupal is always pronov) This publishes new translated content, even if I can not publish my original content. It will be fine if I copy the image uploaded by CCK. I can make a script or even say CCC content to translate ... I could not go to translation in the added CCL areas, so only the title How can I pass CK areas and I can tell that can not be published in specific .. I can also use PHP code and program, but I do not Where does the address begin ... If you are ready to dive into PHP: refer to the module that provides the translation action and makes it even more clever. It is very likely that the maintenance of the module will be happy with such contribution. The documents of the rules are not complete, but you got a support ID to look at the implementation of other module rul...

How to send status to other class in JAVA -

मेरे पास तीन वर्गों सेवा प्रबंधक, सेवामास्टरहाण्डलर और WokerThread.serviceManager इन्स्टैंटिव सर्विस मैस्टरहैंडलर, सर्विस मैस्टरहैंडलर इन्स्ताइज और वर्कटीट थ्रेड प्रारंभ करें मैं लागू करना चाहता हूं कि प्रत्येक कक्षा को सफलतापूर्वक शुरू किया गया ताकि ऊपरी कक्षाओं को कॉल करने के लिए स्थिति भेज दी जा सके। कार्यान्वित करने के बारे में सभी सुझावों का स्वागत है धन्यवाद क्या आपने पहले से ही और जुड़े वर्गों (जैसे और) के बारे में सुना है? यदि नहीं, तो उन पर एक नज़र डालें .. और अध्याय में पढ़िए। ध्यान दें कि, हालांकि यह स्विंग प्रसंग में परिभाषित है, java.beans के तत्वों को कहीं और भी इस्तेमाल किया जा सकता है, क्योंकि वे स्विंग-निर्भर नहीं हैं।

c# - Hang while running 'hello world' test in Fitnesse -

I have our I am trying to evaluate Fitnesse for use with net projects. I am following the instructions of Gjko Ezik and fell on the first obstacles. When I run the Hello World Test on Page 1, fitness is just hanging on the running test screen Is anyone else facing this problem? How can I go about debugging issues like this? I have solved the problem. It was wrong to define syntax COMMAND_PATTERN. I got% p on a different line

animation - Rotate UIView iPhone -

I am working on puzzle games and let me rotate the puzzle piece to 90 degrees angle Need on every dual taps The first method I have tried to use in two different ways is: [UIView startup permissions: @ "to rotate" reference: zero]; [UIView Set Animation Duration: 0.5]; Self.transform = CFE regenerationMarketation (90); [UIView commitAnimations]; There are problems with this that the piece is not rotating in the 90 ; It rotates around 100 degrees, and it is amending the frame of the animation puzzle piece UIView . This is my console output: CABasicAnimation * spinAnimation = [with CABasic animation animation: @ "Transformation. Spin animation.Tavaluos = [NSNumber Number: Flat: 1]; [Self Learner Ad Animation: For Spin Animation: @ "Spin Animation"]; The problem with this method is that after completing the rotation, it is rolling out my UIView in its previous state. How would I rotate the puzzle piece with animation without these pro...

audio - Guitar Chord Detection -

Most other questions here are in relation to determining which notes have a wire information, I am slightly different The point is asking. You will be able to determine whether the sound played is a single note or wire? Ive tried to look for some papers, but so far, I have just seen how the handling papers handled to detect the notes of a wire rather than the difference in the output sound was only a single note or a wire. Thank you! / P> You will need to match certain types of patterns on the spectrum of electricity. For a note you will see many + basic harmonics, which are the integer multiples of the fundamental frequency of all curriculum. For a wire, eg As a simple key wire in C major, which contains C, E and G notes, you will get 3 basic + harmonics of each. Some of the different basic principles of harmonics match (due to almost rational integer ratios between the notes, The sound makes "good"), although there will still be intervals between the frequenc...

android emulator, get the widgets on home screen -

I am currently working on getting a list of widgets on the home screen, I want to write a code that A list of all widgets that can be made On the Home screen It googled but no luck! Any help is appreciated! Thanks Dozens, possibly hundreds of home screen implementers Perhaps one has an API that will allow you to complete it, but there is no standard API for this.

link anchors in HTML email -

O people, I am trying to create a newsletter email with different anchors in the email, but so far, The client does not seem to work in This code is: & lt; Ul style = "list-style: none; margin: 0px; padding: 0px;" & Gt; & Lt; Li & gt; & Lt; A href = "# anchor 1" & gt; Seh Viure NSUUsISIS? & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# anchor 1" & gt; Seh Viure NSUUsISIS? & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# anchor 1" & gt; Seh Viure NSUUsISIS? & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# anchor 1" & gt; Seh Viure NSUUsISIS? & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "# anchor 1" & gt; Seh Viure NSUUsISIS? & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; ... ...

How to make a Python script standalone executable to run without ANY dependency? -

I am creating a Python application and do not want to force my clients to install Python and Module. I also want to make my application off-source. So, is there a way to make the Python script swap executable? You have already responded and your key was in the .py file .pyc , compiled C files, such as . Dll in Windows and .so in linux, returning more than usual .pyo and .pyc Benefits in!)

jquery - Refering SPGRIDVIEW.ROWS in Javascript -

I am using 'spgridview' in one of my SharePoint applications. & lt; SharePoint: SpreadViewue = "Sample Grid" visible = "false" run = "server" Autogenetate column = "false" width = "100%" Allow = "true" /> & Lt; / SharePoint: spgridview & gt; I have to use the number of rows in the javascript function in the sprig. So how can I reference the grid in Javascript and how do I get the number of rows in javascript? Label the total number of rows and get as splist.items.count. Now refresh this label and its text in java script or jquery

iphone - this class is not key value coding-compliant for the key givenName -

इस सवाल का पहले से ही एक उत्तर है: 63 जवाब अतः मेरे पास यह - (शून्य) लोड दृश्य {BOOL सफलता; NSFileManager * fileManager = [NSFileManager defaultManager]; NSString * documentsPath = [NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, हाँ) objectAtIndex: 0]; NSString * databasePath = [दस्तावेज पाथ स्ट्रिंगबैपैंसेटिंग पाथ कम्पेनेंट: @ "प्रॉक्सीडीएलएएसडीडीबी"]; NSError * त्रुटि; BOOL फ़ाइलएक्सिस्ट = [[एनएसएफफ़ाइल प्रबंधक डिफ़ॉल्ट प्रबंधक] फ़ाइलएक्सस्टैथः डेटाबेसपाथ]; If (fileExists == true) {[[NSBundle mainBundle] loadNib नामांकित: @ "ProxDealsViewController" स्वामी: स्वयं विकल्प: शून्य]; } Else {NSString * defaultDBPath = [[[NSBundle mainBundle] संसाधनपैथ] स्ट्रिंगबैपिंगिंगपाथकंपनी: @ "प्रॉक्सीडीएलएएसडीडीबी"]; NSLog (@ "% @", defaultDBPath); सफलता = [फ़ाइल प्रबंधक प्रतिलिपिअटपैथ: डिफ़ॉल्ट डीबीपाथ टूपाथ: डेटाबेसपाथ त्रुटि: & amp; त्रुटि]; यदि (! सफलता) {NSAssert1 (0, @ "संदेश '% @ /।' के साथ ...

object - Android Passing BluetoothSocket to the next Activity -

After connecting to Bluetooth, I need a child to send data through that socket. I But I have to send the socket to the child How do I get into activity? Not sure that this is the best design, but what I did here and it was on my simple application Worked, as a "global variable" to a Bluetooth connection, a variable of my main application (class which increases the Application class). In this way all my activities can get it and set it.

c++ - Unsigned int reverse iteration with for loops -

I repeat the Ierator variable as a code in a for loop as 0 unsigned int Want me, and i i & gt; You can not compare to -1, , as you do if it was signed int for (unsigned int i = 10; I & lt; = 10; -i) {...} But it seems very vague because it relies on numerical overflow of unsigned integer up to 10. Perhaps I have no clear head, but what is a better way to do this ... Disclaimer: This is just a simple use The case is, the upper limit of 10 is trivial, it can be anything, and i should be an unsigned int . You for (unsigned int j = n; Comes from n-1 to 0 . / div>

ef code first - What is the setting to require Entity Framework automatic database schema creation? -

If you are developing against SQL CE and using the unit framework code, make schema by default on the fly. has gone. But what is appropriate about SQL Express or SQL Server? What is the setting - either in code or in the web? Configure - To Enable Automatic Schema Creation? Magic is the only provider SQL Server CE connection string: & lt; ConnectionStrings & gt; & Lt; Name = "reference" provider name = "System.Data.SqlServerCe.4.0" connectionString = "data source = File.sdf" /> & Lt; / ConnectionStrings & gt; SQL Server Connection String: & lt; Connection best & gt; & Lt; Name add = "context" provider name = "System.Data.SqlClient" connectionString = "data source = localhost; initial catalog = testdb; integrated security = spi" /> & Lt; / ConnectionStrings & gt;

php - Subdomain Session Issue -

I am trying to access session data on multiple wildcard subdomains. I set the session using the following: & lt ;? Php session_name ("session"); Session_set_cookie_params (0, '/', '.example.com'); Session_start (); $ _SESSION ['MID'] = 1 9 2; ? & Gt; I set the above session to sub1.example.com . I then go to sub2.example.com and I use the following code to use the session: & lt ;? Php session_name ("session"); Session_set_cookie_params (0, '/', '.example.com'); Session_start (); Print_r ($ _ session); ? & Gt; But the session is empty. What am I missing? You tried to use: session_regenerate_id (true) ); P>

php - Not able to login with my hosted login page -

I am trying to host my code in a host site www.my3gb.com with my code right on my PC Working, but not when I hosted there ... look at this code ... h1> you are alowed & lt; / h1 & gt;"; } Other {Print "& lt; h1 & gt; No Alowed & lt; / h1 & gt;"; }}? & Gt; & Lt; / Body & gt; & Lt; / Html & gt; and the login page is ..... & lt; Html & gt; & Lt; Body bgcolor = "yellow" & gt; & Lt; Center & gt; & Lt; H1 & gt; Admission application & lt; / H1> & Lt; Form action = "log.php" method = "post" & gt; Users & lt; Input type = "text" name = "T1" & gt; & Lt; Br> & Lt; Br> Pswd & lt; Input type = "password" name = "T2" & gt; & Lt; Br> & Lt; Br> & Lt; Input type = "submit" & gt; & Lt; / Form & gt; & Lt; / Center & gt; & Lt; / Body ...

c# - Passing parameters in Silverlight Usercontrol -

I have a usercontrol called MyUserControl.xaml which dynamically adds another user control: UserControl myControl = (UserControl) assembly.CreateInstance ("EditControlPage"); MyControl.Name = "MyUserControl"; This is a shared editing control that will be shown to many other controls. What do I want when I use EditControlPage I know the control I am using I tried to add my control to the name. Name is named above when the name var = this.Name on the edit page but it gives blank. Why not just UserControl myControl = new EditControlPage (parameter); ?

java - How can I store information in the context of a web service? -

I use a web service which is responsible for user login. If a login is successful, the token generated should be done. The public string login (@QueryParam ("userName") is the name of the string, @ kyaparm ("password") strings @GET @Produces (MediaType.TEXT_PLAIN) @ path ("/ login") Password) {// Spring Security Check HTTP Response R = Logan Response (name, password); String s = r.getFirstHeader ("location"). ToString (); Boolean is error = s.contains ("login_error"); If (! Error is) {// Tudo Store Tokens in the application reference MD5 token = new MD5 (name + System.currentTimeMillis ()); Return "Token:" + token.getMD5 (); } Return "unsuccessful"; } I want to store token in the application context, but I do not know how the token should be present until the server application is running. Does the web service have its own application reference? Should I use any type of HTTP sublet to store information? ...

html5 - In HTML, what is the opposite to ? -

In HTML, & lt; Strong> Is there a contrast tag in ? Or will it be offered in HTML5? "To mark the marked text or not important, just do not have it m or strong elements Respectively. "

c# - Grid Star-Size in code behind -

मेरे पास निम्नानुसार एक ग्रिड है, & lt; ग्रिड & gt; & LT; Grid.RowDefinitions & gt; & Lt; RowDefinition ऊँचाई = "0.5 *" / & gt; & Lt; RowDefinition ऊँचाई = "0.5 *" / & gt; & LT; /Grid.RowDefinitions> & Lt; / ग्रिड & gt; मैं पीछे ऊँचाई = "0.5 *" कोड कैसे दे सकता हूं? आप इसका उपयोग कर सकते हैं: rowDefinition.Height = नया ग्रिड लैंग (0.5, GridUnitType.Star);

c++ - Full-expression boundaries and lifetime of temporaries -

संभव डुप्लिकेट: यह कहा जाता है कि अस्थायी चर पूर्ण-अभिव्यक्ति के मूल्यांकन में अंतिम चरण के रूप में नष्ट हो जाते हैं, उदा। बार (foo ()। C_str ()); अस्थायी पॉइंटर रहता है जब तक कि बार रिटर्न नहीं होता है, लेकिन बाज़ (बार (foo () (cf) (cistr ()) के लिए क्या होता है; क्या यह अभी भी रहता है जब तक कि बार रिटर्न, या बज़ रिटर्न का अर्थ पूर्ण अभिव्यक्ति अंत में होता है, कंपलर मैं बाज़ रिटर्न के बाद ऑब्जेक्ट को नष्ट करने की कोशिश करता था, लेकिन क्या मैं उस पर भरोसा कर सकता हूं? अस्थायी जीवन पूर्ण अभिव्यक्ति के अंत तक जीवन जिसमें वे बनाए जाते हैं एक "पूर्ण अभिव्यक्ति" एक अभिव्यक्ति है जो किसी अन्य अभिव्यक्ति का उप-अभिव्यक्ति नहीं है में बाज़ (बार (...)); , बार (...) baz (.. के एक subexpression है ।) , जबकि बाज़ (...) कुछ भी नहीं एक subexpression है इसलिए, बाज़ (...) पूर्ण अभिव्यक्ति है, और इस अभिव्यक्ति के मूल्यांकन के दौरान बनाए गए सभी अस्थायी संदेशों को baz (...) के बाद तब तक नहीं हटाया जाएगा ।

php - CodeIgniter style $this->modelname->function() calls -

What am I trying to do, is the CodeIgniter style entry model, $ this-> By calling model_name - & gt; Function () What I've done so far in my controllers: $ this-> load = new load (); Foreign currency (globe ("app / model / * .php") as $ file) {$ model = basename ($ file, ".php"); $ This- & gt; $ Model = new $ model; } I know that whatever I am trying to do there I can not, but hopefully you can see my goal. What I want to do, write the PDP in the model folder for each file $ this-> Model name = new model name; I'm capturing all the PHP files and leaving the directory and .php and just leaving the file name. I understand that it is difficult to understand, its difficulty & gt; & Lt; This should really work, you really need to include the file: foreign currency (globe ("app / model / * .php") as $ file) {@include_once $ file; $ Model = basename ($ file, ".php"); If (class_exists ($ Models)) {$...

iphone - Hiding Tabbar still occupy Space? -

I'm building a navigation base application I also need to display a tab bar. My main window. Xib includes: UIAVAGE controller , UITabBarController . UITabBarController has three UINavigationController with it. A condition-based algorithm, I am displaying navigation and tabbar. This is working well. The problem occurs when I want to move any internal view of TabBar: It shows the navigation barbar (what I want) but it also shows the tabbar I want to remove the tabbar of all internal views. When I hide the tabbar, he still occupies his place at the bottom of the scene. I tried to reset the scene and window frame but nothing helped. How can I hide the tabbar and how can I use my thoughts? Is the argument correct or not? If not, please do it right. If there is a tutorial then it would be better. You can try: yourInnerViewController.hidesBottomBarWhenPushed = Yes; [Self. Navigation Push ViewController: Animated YourInnerViewController: Yes];

jQuery ajax responseText 'undefined' -

I have some jQuery which posts two variables for a php script. PHP is very simple and simply gives the string based on that 'given update' which I want to use on some page on the page. The first time I click the warning 'Undefined', any other click and everything works fine enough to make sure that I am not away, but I can not solve this problem! I have used firebug and the data has been posted and the correct response has been received on all the efforts. ft ('value'); Deductions = $ (ADR) ('value'). Etritt ('value'); Datastring = 'additions =' + additions' & amp; Deductions = '+ deductions; $ AJAX ({Type: "Post", Data: Datestrying, URL: Doadjust.php ", Completed: Function (Data) {Warning (Data.Propic Text);}}})}}}}); It sorted. Ajax function requires the async: false option Data type: "html", async: false, breakthrough: function (data). ) {Warning (data);}});

javascript - Detect state of object from previous page -

I am working on a mobile site that has a bunch of .html pages in the structure. In the header of the site I have a simple show / hide button that uses jquery toggle to show or hide the banner works perfectly But when you switch to another page, clearly the banner is displayed because it can not tell that on the previous page you have chosen the banner "hide" because it is providing a new .html page. Anyways the question is with Javascript, can I find out about the previous page that the banner should be "shown" or "hidden" when loading the next page. My initial thought was that a specific hash tag that can be picked up using JS and indicates that the banner should be hidden or shown (depending on the hash). I'm not in love with the hash idea because this is the best one ugly hack. Any ideas about finding a property of the previous page which I can use in jquery or js banner show / hide on property store.js is designed for this. Thi...

webcam - Record from Web Cam in Java -

I have to record with webcams However, I have twelve requirements It can not be JMF and it should be under the LGPL or similar license. I have examined Xgler, but I do not know if you can actually record it. Apart from this, it seems that some of its parts have been released under the GPL license. If you used Eggler for webcam recording, some details would be great. Thanks I have worked with VLCJ API and it works great is. You need to install VLC DLL or simply install the VLC player. VLCJ code is an example of a webcam. Google and you will find a cam capture file that records both audio and video.

php - Filter before routing, and sfStopExceptions -

I would like to create a filter that runs before the routing system and thinking that this is possible. Specifically, I want to parse and redirect the URL itself in some situations using filters. The URL required to parse using my filter will otherwise come through all the rules in my routing. IML. What I am doing now is the first filter running in the filter. IML, but when I need to redirect to my filter there are a variety of bad things: sfStopExceptions and sfError404Exceptions are thrown anyway and clutter my logs (see this bug: ) A complete I like the bunch of lines in my logs: [Monday March 07 14:24:48 2011] [error] [customer] 67.184.53.79] FastCGI: Server "/ var / local / fcgi / php-cgi-wrapper.fcgi" stderr: after parsing empty module and / or action url ". /files/beezee50.png "(/), referenced: [Mon March 07 14:24:53 2011] [Error] [Customer 67.184.53.79] FastCGI: Server" / var / local / fcgi /php-cgi-wrapper.fcgi "stderr :. The verb...

Problems testing Camel with Spring config -

I have the routes defined in CamelRoutes.xml and I want to test them using The wrapping technique is described below. My CamelRoutes.xml & lt; Route autoStartup = "true" xmlns = "http: / /camel.apache.org/schema/spring"> & Lt; From Yuri = "Direct: Start" /> & Lt; From Yuri = "direct: end" /> & Lt; / Route & gt; So I created with CamelRoutesTest.xml : & Lt; Bean id = "fake all points" class = "org.apache.camel.impl.InterceptSendToMockEndpointStrategy" /> But I'm not sure how to prepare a test, which both the spring XML loads and provides access to the fake endpoint. If I use .. @ContextConfiguration (places = ("/ CamelRoutesTest")) provides public class CamelTest AbstractJUnit38SpringContextTests} I do not know how to get fake endpoint if I use .. public class CamelTest CamelTestSupport Provides} Then I do not know how to load my topical...

ruby - Rails 3.0.5: Bundler says it'd be using Rack1.2.2 but Passenger casts a GemNotFound Error -

I am using passenger with passenger 3.0.5 and Ruby 1.8.7. It worked fine until I could not remember some changes. I hit bundle install and said that it will use rack 1.2.2, but the bundler still pays the GemNotFound rack 1.2.2. As I hit find / -name "rack" , it shows that all the DIR rack 1.2.2 has been installed and it seems that it is installed is. I explicitly demand Gems Rack 1.2.2 It does not help in my jamfile too. Do not help gemdir to enter bundle via configured path / diamonds / to / gems Your, Zorn . Your passenger uses another installation of Ruby to get it to NGINX_FOLDER / Set the manual to conf / nginx.conf http {passenger_ruby / path / to / you / ruby ​​/ folder; ...} Use this command to know your Ruby folder: which is the Ruby UPD For Apache (you can read this in official passenger Apache module document) just set: Passengerruby / path / To / your / ruby ​​/ folder

ruby - Is 'valid' a reserved name in DataMapper? -

I have the following model in the datamap: Class student: DataMaper :: resource property : ID, serial # & lt; Snip & gt; Property: permissions, string,: accessor = & gt; : Protected, Required = & gt; True ,: default = & gt; 'Standard' Asset: Valid, Boolean ,: Default = & gt; Incorrect, Required = & gt; True # and lieutenant; Snippet & gt; After the need for 'DM-validation' (version 1.1.0), and after starting my Sinatra app, I receive the following message: / library / ruby ​​/ Gems / 1.8 / gemstone / DM-legalization -1.1.0 / lib / DM-legalization. RB: 81: `Valid ': Wrong number of arguments (0 for 1) (/ 1) for / library / ruby ​​/ gemstone / 1.8 / gemstone / DM-legalization -1.1.0 / lib / DM-legalization RB: 81: In `savings_off '/ library / rabbi / games / 1.8 / games / DM -core-1.1.0 / leeb / DM-core / resources. RB: 1007: to` _save' in / library / ruby ​​/ James / 1.8 / Games / DM -core-1.1.0 / lib / dm-core / r...

plsql - Formatting Clear and readable SQL queries -

I am writing several SQL queries and connects everything a lot, both subquery and the resulting subquery from the table. We are not using ideas to get out of the question. After writing it I am seeing it and thinking that it is not even doing it for me. Follow it. What kind of formatting do you use to try to clean up such a mess? Indents probably? With great questions, I rely heavily on the named result using I . This allows to define the result set in advance and it simplifies the main query. Named result sets can help to make query plans more efficient, such as postgres sets results in the temporary table Example: cubed_data AS (SELECT dimension1_id, dimension2_id, dimension3_id, measure_id, SUM (value) value From the source_data group, the cube (dimension 1, dimension 2, dimension 2, dimension3), for example: example: measurement), dimension1_label AS (SELECT dimension1_id, dimension1_label WHERE object = 'dimension 1' ), ... SELECT * FROM to cubed_data...

clr - When you register an assembly in SQL Server using CREATE ASSEMBLY - where does SQL Server store it? -

When you register CREATE ASSEMBLY using an assembly in SQL Server - Where does SQL Server store it? The following statement registers an assembly with SQL Server, but I want to know where it is stored by SQL Server create assembly [YaddyYaddy] 'C: \ YaddyYaddy.dll' PERMISSION_SET = with UNSAFE; The short answer is that the actual upload DLL code Sys.assembly_files / Strong>, within the database which was loaded in the assembly. See sys.assemblies, sys.assembly_files, and sys.assembly_moduleules (and follow the object_id link sys.objects) for details of stored assemblies.

Export event with C# to iCalendar and vCalendar format -

I am working on a project where we support the ability to export an event in Outlook 2007, Outlook 2010. ICal and I have done some research and have found that iCal (to support the iCal program) and vCal (to support Outlook) is basically the same thing that I have seen, That's why I'm trying to see if I'm .ics and .vcs files What between the two implementations to make it easier for Nane I could borrow. I found, even more. Is there anyone who knows the truth between the two? It seems that iCal has some more properties and version 2.0 is where vCal 1.0 is. Is there a library that is already handling these two different types of exports What is the vCal implementation of Outlook Is different between 2007 and Outlook 2010? Note: I know that Outlook also supports the iCal (* .ics) format, but we have additionally vCal (*. VCS) has been asked to support the creation of files. * For .ics files And here's one. Originally iCal is inherited from vCal ...

c# - Click Gmail Refresh button -

I am writing a simple personal app that has a browser control and I want to "refresh" it often By default, there are monkey scripts that do this, but I'm trying to incorporate my personal style into it. Either way, I have looked around and found everything, but what can I do in SASHAR using the browser controls? / P> I have found this: // Link the ID from the web form, Button = Webbutton = Gmail. Document Get Element BIID ("Refresh"); // Now click theButton.InvokeMember ("Click"); But if the button comes back with a null, it will not speak anything. Anyone have any suggestions? I used javascript, but it's been a while but has given other answers and comments. With that element there is no real ID, do something like the following: Find all div with a feature of role == 'button' and an INHML == 'refresh' . Once found the right InnerHtml, get the element. Click on the element found. Then, it can be smok...

localization - c# : In a dotnet class is there a property that states if the "Current" culture is actual the default culture? -

Is there a property in some classes that can tell me that the current culture is really basic culture. Similar to how localization works with winforms it tells in a form if the language is default. Say I am in America - how can I tell by code if en.US is the default default? I need to implement some localization for some XML files that do not support .NET, so I want to implement my own ... And it How do such winforms work? nameofxml etc property exists? default system.globalization.cqueryuref.connect culture indicates the system's control panel area setting, while System.Globalization .gadgetinfo The input of the current eqing system matches the UI language setting (which you can not change without installing a multilingual user interface). So you can use the following code snippet to define 'default' culture: using System.Globalization; // N.B. Perform the following line * You get the current culture // according to programming (if you ever d...

c++ - MPI_Scatter Segfaulting -

I am working on a parallel sort program to learn MPI, and every time I am having problems with MPI_Scatter I try to run, I get the following: Input reading input inputting input _pidadad (sigclld): [nid 00012] PE exit signal signal segmentation error [NID 00012] 2011- 03-28 10:21:56 APID 23655: Application termination started On the other questions, a basic form really did not answer why I am getting bothered - close to arrays, so I do not want to have problems with non-compatible memory access, and I passed the correct indicators in the right order. I am here. Anyone have any ideas? The source code is below - it is specified for a specific number because I do not want to deal with variable input and rank size yet. #include & lt; Mpi.h & gt; # Include & lt; Iostream & gt; Using the Std :: endl; Using std :: cout; # Include & lt; Fstream & gt; Std :: using ifstream; Using std :: ofstream; # Include & lt; Algorithm & gt; Using the Std :: sor...

android - how do you add array to listview -

I have a number of arrays (PInfo) and I'm wondering how to add that array to a list view ? Arreelist & lt; PInfo & gt; Info = appsGetter.listPackages (); Int number = 0; PInfo app inwards; While (number & lt; info.size ()) {appInArray = info.get (number); } I have this moment, the list package () is a method that is receiving application names from the device. At this time I am trying to get information from the array one by one and I want to add it to this list view. Is it that how should I do this to add our array to see our list? And how do you do that? You can use ArrayAdapter and start it By way: Arrayadapter & lt; PInfo & gt; Adapters = new array adapters (references, Android R.Lt.simple_l_link_item_multiplay_choice, info); Then you can use the ListView.setAdapter (adapter) . I'm not sure that this is what you are asking. So please explain that if it is not what you are saying then

user interface - How do you limit the overall height of a ListField? -

I'm trying to limit the height of a ListField so that when you step through the item, Therefore, for example, the header on the screen will not disappear, because they go down inside. My current solution does not work, the height does not change. This stability depends on the size of the list of items, the code I am using is: _listField = new ListField () {secure Zero layout (int w, int h) {super.layout (w, 100); }}; You can do this in your main screen manufacturer Add super (NO_VERTICAL_SCROLL); Then your manual screen will not scroll. Create a new manager that enables virtual scrolling, so that only the manager will be scrolled Vertical Field Manager List Manager = New Vertical Field Manager (VERTICAL_SCROLL | VERTICAL_SCROLLBAR); Now your manager tells this manager that your ListField like listManager.add (the commodity of your list); If you want to limit the height of the list, you can set the limit for managing the list and add manager to the...

asp.net - Use javascript variable into inlined code -

How can I call a pure method inline code using a javascript variable? My code looks like this: for (var i = 0; i & lt; number entry; i ++) {var result = & lt;% # GetFilterTagURL (myArray [i ]. Value, inaccurate)%> // work with results} This block is inside a Javascript block; GetFilterTagURLType AAt Is the method and I want to give variable myArray [i] .Value as the first parameter. Any thoughts? Update: All your answers are helpful. I think, as you say, what I need to do is to make me a web service. You will not be able to complete it like this because the & lt; % #% & Gt; tag is used. An approach however will create a webservice and call it from your javascript. You can call GetFilterTagURL to call you inside your webservice and use the results in your Javascript. See for more information.