Posts

Showing posts from September, 2011

c# - 2 Product lines sharing same code -

After We are working on two product lines that will share the same code. For different functionality, I have applied the same interface to both product lines (in some case or base class) and these types of main classes (which are different for both product lines) Will be passed and forward downstream For deep code inside business logic, it is very difficult to be product line-specific code we do not want to do for the user (Productline == "ProductLine1") and the rest of the operating system. Then I'm planning to apply for a factory class which will have static methods NewObject1 (), NewObject2 (go back) and prompt. . This factory will be registered in the main category in the form of Factory.RegisterClient (ProductLine1) With the above approach, then the factory (which internally includes ProductLine1Factor & ProductLine2Factory) make the types of objects Who knows for Do you know a better approach to this problem, please note that ProductLine1 already e...

html - Php syntax issues -

I am new to php ... this is wordpress what is the issue here? This is a simple one for each loop ... ID,' sub_nav_name ', true) ;.' '& Gt;' Title ();. & Lt; / a & gt; & lt; / li & gt; '$ $ nav_items [] = html_entity_decode (get_the_title (), ENT_QUOTES,' UTF-8 '); endforeach;? & Gt ; remove at the end of the function echo ID, 'sub_nav_name', is true). ' & Gt; '. Title() . '& Lt; / A & gt; & Lt; / Li & gt; ';

javascript - Application Error Is a directory (file:///#android_asset/www/index.html) -

I am using phonegap to develop an app on Android, when I check it on my phone, This error is found The application error is a directory (file: ///#android_asset/www/index.html) I get the error only when I do not have an internet connection on my phone. Any suggestions? This means, in your index.html, you are using the resource for which Internet access Need your index.html and search for any CSS, Javascript or Cordova file that is directly connected to the internet. If so, you should download the related file and make it local I had the same problem when I added my own jazzary mobile JS file directly like this: & Lt; Script type = "css / javascript" src = "http: /code / jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.js"> What I did, the jquery.mobile-1.3.0.js file was downloaded and it was locally placed inside my www folder. He fixed my problem

.net - Entity framework delete without key -

I am using unit framework 5 and I am trying to delete the unit that does not have the primary key This means that my table does not even have a primary key. The scenario is as follows: I have 3 tables that have the following flow: Main-preparation - & gt; UserPerTeam & lt; - User The primary key ID in my main table table is in connection with MainTeamID with the main user ID. UserPerTeam is the primary key ID with User ID in User User table with UserID. UserPerTeam has these 2 links and there are some other fields required in that table. So now when I use the following code, my organization framework breaks up that it is not a primary key: var upt = new FighterPerTeam {UserID = UserId, TeamID = teamId}; Entities.UserPerTeam.Attach (upt); Entities.UserPerTeam.Remove (upt); Entities.SaveChanges (); So now I get the almighty error: EntitySet is unable to update 'UserPerTeam' because it is defined and currently in element to support element No elem...

javascript - What is the best way to implement idle time out for web application (auto log off) -

I want to implement a passive time-period for the web application we are making. I had achieved this from the Codeplex, which essentially shows the form certification and session cookie timeout by the continuous voter. But it is a drawback to not respecting the events of the client side, it is only postback to decide to be the last logoff jquery plug-in client side event from ericidad Solves this issue, but suffers from another flaw that is not able to activate the user on any other tab. Tabbed browsing issue with jquery-idle-timeout-plugin already? Or there is no better way of application time for web applications (the way it is created using the web app ASP.NFF / W) If I think your question is correct, then this is not possible, because there is no incident in Javascript for the activity outside the existing window / tab. Addon to go with your website for every browser, which can monitor all activities in the browser, but it is not actually a practical approach.

java - Can someone explain what com.google.inject does? -

I have declared a class with my constructor which was annotated with @Inject is. And I have not called a producer anywhere in the entire project. Then two questions: & lt; 1 & gt; What does @ Inject mean? (What does it do? Constructor is annotated with it?) & lt; 2 & gt; As the producer is never called directly, does the fact that it is commented with @Inject is anything to do with? Google is a dependency injection library, so that you can create objects by expressing the relationship between them Are there. The objects are manufactured because they are demanded to create other items. You can also implement abstract classes or interfaces with different implementations by configuring Guice, which makes it useful for running or testing your code. @Inject Builder and methods that determine the annotates are what many things need to initiate, there are also many other annotations that determine how the guide works but only Explanation of things is n...

html - Hand cursor on disabled fields -

I am working with the html input text field and when I hover over the text field, I want to take in Text field is read-only, so a cancellation symbol (cycle with diagonal slash) shows on hover using the CSS class on the field but it does not . In college. Cursor: hand; Cursor: indicator; } In the template & lt; Input type = "text" readable class = "rdonly" /> You can try: . Drdonly: hover {cursor: indicator; } This is it, when I try my code in jsfiddle, it works ...

Python: Global Object Destruction -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब मेरे पास एक वैश्विक उदाहरण है, जो मुझे नष्ट होने की उम्मीद है (फ़ंक्शन __ del __ कहा जाता है) जब पायथन इंटरप्रिटर निकलता है क्या मैं बहुत अधिक पायथन इंटरप्रेटर की अपेक्षा करता हूं? इसका परीक्षण करने की मेरी विधि __ डेल __ फ़ंक्शन में एक प्रिंट डालना है, कमांड लाइन से python.exe चलाएं, और फिर Ctrl / Break दबाकर। इस बिंदु पर, मैं कमांड लाइन विंडो में प्रिंट देखने की अपेक्षा करता हूं। हालांकि, मैं नहीं। हाँ, आप बहुत अधिक की उम्मीद कर रहे हैं। __ del __ को कॉल करने के बारे में पायथन: यह गारंटी नहीं है कि __ del __ () विधियों को ऐसे ऑब्जेक्ट के लिए कहा जाता है जो अभी भी मौजूद हैं जब इंटरप्रिटर निकलता है। संपादित करें: आम तौर पर, आपको __ del __ का उपयोग करने से बचना चाहिए। अधिकांश मामलों के लिए संदर्भ प्रबंधक बेहतर होते हैं। दुर्लभ मामला के लिए जब आपको यह सुनिश्चित करने की आवश्यकता होती है कि कुछ बाहरी (अर्थात सी कोड से आवंटित) संसाधन को साफ हो जाता है जब दुभाषिया बाहर निकलता है, तो आप इसका उपयोग कर सकते हैं। ...

jquery - Bootstrap datepicker not working at all -

I am trying to get a bootstrap date picture from here: to work, but the calendar will not appear at all . Not sure what I'm missing? I have added everything properly Any help would be great, thanks! & lt; Link href = "css / bootstrap.css" rel = "stylesheet" & gt; & Lt; Link href = "css / datepicker.css" rel = "stylesheet" & gt; & lt; Input type = "text" value = "02/16/12" data-date-format = "mm / day / year" class = "date picture" & gt; & Lt; Script src = "js / bootstrap.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / jquery-1.7.1.js" & gt; & Lt; / Script & gt; & Lt; Script src = "js / bootstrap-datepicker.js" & gt; & Lt; / Script & gt; & Lt; Script type = "text / javascript" & gt; $ ('Datepicker') datepicker () .; & Lt; / Script & gt; $ ...

Perl nested structures -

I have a question about complex structures in Perl My $ data1 = [ + {ID = & gt; 1, name = & gt; 'A'}, + {id = & gt; 2, name = & gt; 'B'}, + {id = & gt; 3, name = & gt; 'C' }, ]; My $ data3 = + {1 = & gt; + {ID = & gt; 1, name = & gt; 'A'}, 2 = & gt; + {ID = & gt; 2, name = & gt; 'B'}, 3 = & gt; + {ID = & gt; 3, name = & gt; 'C' }, }; How should I print "B"? What kind of data structure is that? Thank you in advance Try doing this: print $ data1-> [1] - & gt; {Name}; # ARRAY ref print $ data3- & gt; {2} - & gt; {Name}; #hash referee This will be a perl ARRAY and HASH Ref from de-reference . - & gt; D-context This is explicitly required only for the first "floor", ex: print $ data1-> [1] { Name}; Print $ data3- & gt; {2} {name}; Also there are 2 more options that works. Like Chris Charlie, take a look ...

Finding schedules in resque - ruby -

I am using resque to process some background jobs (like Cron jobs). So I set fire to these two rack works: $ & gt; Rake Risk: Work # $> Rake Res: Scheduler My question is how to find the employee and the scheduler? For the worker I can use Resque :: Worker.all to list all workers. And it works fine but I have not figured out how the scheduler can get runnig or not (or list of all fixed jobs). I tried Resque :: Scheduler.print_schedule but it does not print from time to time and always gives an APMT hash, even if I have rake resque: scheduler The method you need Resque.get_schedules It currently displays a hash of scheduled jobs and their respective metadata. {"job1" = & gt; {"Every" = & gt; "30s", "class" = & gt; "Job Class", "Args" => [1], "queue" => "Default", "Details" = & gt; "Test ..."}} If you are not dynamically adding any...

C# Proper Way to Close Multiple Excel Objects With Excel Process Destroyed -

I have a C # console program when it runs, it instantates some Excel objects such as: ( OpenXLoos) When the program is running, I have a way to close Excel (close exxcel) and it is considered to clean Excel process properly. In the Task Manager, I can see the residue of Excel that resides. I was pulled together with examples of Internet shutdown routines: Private Zero openExcelO (String Dior) {try {xlApp = new} Excel.Application ()} XlWorkBook = xlApp.Workbooks.Open (DIR + "PortfolioApptimization 5.XLSM", 0, False, 5, "", True, Microsoft Office.Error.excel.explatform.exl window, "\ t" , False, false, 0, truth, 1, 0); XL Markowitz = (Excel worksheet) Axel Workbook. Sheet ["Markovitz"]; XlWeights = (Excel Worksheet) xlWorkBook.Sheets ["Weight"]; } Hold (Exception Pre) {ReportError ("Portfolio Optimization", "OpenXcell", ex.ToString ()); }} Private zeros off xx () {object misValue = System.Reflection.Missing.Va...

uiview - How to call a tagged textfield -

I am creating a series of programs using tags, I want to be able to access the data in each text field, But it is returning to the previous tag. In this example, I am creating 10 textfields when you click on a field, then that area should be changed to blue, but it always changes the last field blue. How do I use field tags, so that I can reach the right textfield? I added NSOL to test the sender #. @implementation ViewController @ synthesis name = _name; - (zero) viewDidoadload [[Super Viewedload]; Int y = 20; For (int i = 1; i Edit: This is great thanks. This certainly resolved one of my problems, I think I was hoping for a different answer that would take me in one direction to solve my second problem. I want to take input from a tagged textfield to use elsewhere. I have only one problem that I am only getting input from the previous textfield. - (zero) viewDidoadload {[Super Viewedload]; Int y = 20; (Int tag = 1; tag & lt; = 10; tag ++) {CGRect frame = CGRa...

sql - Is LEFT OUTER JOIN + RIGHT OUTER JOIN same as FULL OUTER JOIN? -

इस सवाल का पहले से ही एक उत्तर है: 2 जवाब बिल्कुल के साथ dupes collapsed । मुझे SQLite में एक पूर्ण बाहरी सम्मिलित करने की आवश्यकता है और इसे समर्थन देने में प्रतीत नहीं होता है। / html>

stata - Export variable label, value label, and variable notes to a dataset (or a table) -

निम्न उदाहरण डेटासेट पर विचार करें: जमा की तरह सदस्य 1 1 99 99 2 22 2 2 892 23 1 1 267 34 1 9 1728 54 3 1 99 99 22 1 2 2123 34 9 2 445 13 1 1 9 28 22 1 1 276 34 2 1। 23 2 1 3728 45 3 2 3652 34 1 451 35 1 231 67 2 9 234 17 3 2 3872 37 1 1 102 45 1 1 676 56 3। । 35 2 99 99 67 सभी चर संख्यात्मक होते हैं चर लेबल और मान लेबल हैं: लेबल के सदस्य "क्या आप क्लब का सदस्य हैं?" लेबल वाले जैसे "क्या आप इसे पसंद करते हैं?" लेबल var जमा करें "आपके खाते में कितना?" लेबल की आयु "आयु" लेबल मूल्य सदस्य सदस्य, nofix लेबल परिभाषित सदस्य सदस्य 1 "सदस्य" 2 "गैर-सदस्य" 3 "इंतजार" 9 "लेबल करने के लिए इनकार करने के लिए" जैसे लेबल की तरह, nofix लेबल 1 "like" 2 "don ' "9" की तरह नहीं "लेबल मूल्य जमा पता नहीं, निक्स्च लेबल 999 9 99 99" एन / ए "99 99" डीओडी 9999 "को परिभाषित नहीं करता" आयु के चर में कोई सिस्टम- लापता मूल्य और कोई उपयोग-परिभाषित लापता मूल्य नहीं ...

c++ - Can a raw pointer be passed to a template function expecting an iterator? -

Can raw pointers be sent to template function rather than tutorials? Am I correct in thinking that an Iterator is just a class that overrides indicator-related operators (such as, ++, etc.), or does the itater expose any additional interfaces that do not give the indicator? To keep it in another way, do indicators show "fast"? Example: I want to use the boost :: algorithm :: knuth_morris_pratt_search (). My corpus (the string to be searched) and patterns (seen in the string) are just bytes in memory - I have an initial address indicator, and for length arguments in bytes, suppose That's this C-style string. According to the documentation, for the knuth_morris_pratt_search function, both of us will have to start and end iterators in the corpus and patterns. The function I want to use: template & lt; Typename patIter, typename corpusIter & gt; CorpusIter knuth_morris_pratt_search (corpusIter corpus_first, corpusIter corpus_last, patIter pat_fi...

python - parsing HTML using BeautifulSoup -

I want to read a list on the webpage using the BeautifulSuices module in Python. The HTML code is as follows: ... I parse the document using BeautifulSoup. Now I want to loop through the elements of the list. That's why I use the next_ variations as follows: Soup.all.lnct_shiibing for item's first_aliment = soup.all .: lt; Statement & gt; However, it returns the following error: TypeError: The 'NoneType' object is not iterable Can Please tell me how to read the next lee tag. It is obvious that there is another Li tag at the same level, which should be in the list of the next_shipping. P> Borrowing @ Elssar, I used this code: main_list = soup.find ('ul', attrs = {'id': 'sidebarmenu1'} li li Main_list.findAll ('li', Attrs = {}, recursive = falls): ul = l.find ('ul') if ul == none: #more: navigate (ul) Where to navigate (item) is a recurring function: def Navigate (item): Select items for A...

How to update variable and make it persistent in java? -

For example, I have a personal member who has been started for string str = "A". After the program is over, I want to be str "b". Then, the next day when I run the same program, the value of str is "B", not "A". Thank you. You have to write your data in a permanent storage location, such as a file on a database or disk.

javascript - Show only the current location marker using watchPosition -

I am trying to create a single marker on Google Maps to show the user's current location. Using the following code I'm able to do this, but every time watchPosition refreshes it makes a new point. How can I clear past markers each time a new point is added? // Geolocation var won = function (status) {var iconimage = new google.maps.MarkerImage ('images / current_location_small .png', new google.maps.size (15, 15) , New google.maps.Point (0,0), new google.maps.Point (7, 7)); Var lat = position.coords.latitude; Var tall = position.coords.longitude; Var myLatlng = new google.maps.LatLng (latitude, long); Var marker = new google.maps.marker ({status: myLatlng, map: map, icon: iconimage}); Marker.setMap (map); }; Var watchID = navigator.geolocation.watchPosition (win); You can declare your marker out of the function and setPosition's (LatLng) method // Geolocation Verifier Marker = Faucet; Var win = function (status) {var lat = position.coords.latitude; Va...

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

I have a team city build project with Gitbab VCS route, I have been triggered for both / head on PR and / Merge the referee. The annoying thing is that you can not do anything useful with the merged hash - it is not present in Gitobb. I want to exclude newsgate packages with head in gutub comet situations in the version number along with Hewash (Newsaging 7) for the music build, but against head hash. However, I can not see a way to get the head hashes while constructing that merge. I just want to head because it's useless - we only care about merge. (PR - Pull Request) This command works reliably while running One on / merge is git log --no-merge -1 ---- = '% h'

c# - Farseer Physics Rigid body when restitution =0 -

How can I create a rigid (solid / no bounce) body of physics in the world, I am trying the same with the code below body body ball = bodyfinter Crete Body (World); CircleShap Circle Shape = New CircleShap (Convert Units. Sim Units (TexturingWidth / 2F), 1f); Stability Stability = Bollywood. Crack Fixtures (CircleShap); BodyBall.BodyType = BodyType Dynamic; BodyBall.Restitution = 0f; Although I set the restore to 0, when it collides with other (similar) bodies, it bounces back. restoration of conflicts, both Replacement is a function of the value of the property. That function can be customized by modifying the code in Farsiar, especially Settings.cs in phosphichesis. Settings. Modifying the Mistressivation method. Here is the basic implementation, which gives maximum of the two returning values: Public stable float mixistration (float retitude 1, float representation 2) {Return Restitution 1 & gt; ; Restoration 2? Restoration 1: Restoration 2; } So...

mysql - sql query - how to join/union 3 tables (2 index tables and 1 data table) -

I got 3 tables, 2 index tables and 1 data table The structure of the tables is like this : User : id | Name -------- + ----------- 1 | John 2 | Mike 3 James idx and idx2 : user_id | User_id2 | Action | Date --------- + ---------- + ---------- + ---------- 1 | 2 | Message | 2013-03-20 1 | 3 | Message | 2013-03-21 3 | 2 | Chat | 2013-03-21 Earlier I had only 2 tables, 1 index table (named 'idx') and 1 data table (name '' user ''), so the query is thus Some were: Select from IDX Inner Inner Use User WHERE idx.user_id = '2' and idx.user_id2 = users.id by idDDate by DESC but now a new index table (name "id x2") was added, the structure is similar to 'idx' (i can not add 'idx' and 'idx 2' to a table, so So now I can not do any query with 3 tables I tried to do something like this: SELECT * FROM IDX, IDX2Inner Inner Using User, WHERE (idx.user_id = '2' and idx.user_id2 = users.id) or ...

asp.net mvc - how to put login form @ center of screen -

I am developing MVC 3 applications with it, I am using Bootstrap for design. I have created the log in form I am trying to set it in the center of the screen but how nothing is working this is my code @using (Html.BeginForm ("LoginUser", "Login", FormMethod.Post)) {& lt; Div class = "container-liquid" style = "padding-left: 0 pixel; margin-top: 165px; margin-left: 140px;" & gt; & Lt; Div class = "line-fluid" & gt; & Lt; Div square = "span12 spaced offset 4" style = "width: 400px; height: 250px;" & Gt; ......... ... control ... .... .... & lt; / Div & gt; & Lt; / Div & gt; & Lt; / Div & gt; } What to do? & lt; Center & gt; The margin auto does this for you>. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; Login & lt; / Title & gt; & Lt; Style type = "text / css...

string - Confused regarding pre-processed table in KMP -

Looking at the KMP algorithm, and confused about a specific row in KMP that calculates the suffix-prefix table of the numbers. algorithm kmp_table: input: an array of characters, W (words to be analyzed) an array of integers, T (table) To fill) Output: Nothing (but it shows the table during operation) Define the variable: An integer, position 2 (In the current situation, we do computing in t Are) an integer, CNG ??? 0 (Zero-based index in the W of the next character of the current candidate sub-group) (First few values ​​have been set but different from the suggestion from the algorithm) T [0] One ???? -1, t [1] a ???? 0 When the position is less than the length of W, we do: (first case: the object is turned on) W [pause -1] = w [cnd], cd c cnd + 1, t [pause] a ???? CNG, POS one ???? Position + 1 (second case: this is not, but we can come back) Otherwise, if CD & gt; 0, CDAD Do T [Cnd] (Third Case: We have run away from the candidates. Note CND = 0) Otherwise, T [Pause] 0, Po...

ajax - Javascript - Filling Combo Box with new data -

I am trying to fill the combobox (input) with data from AJAX. This is to get every city for a selected state, which is chosen on another selective control (state control). What I have tried: I am using a "change" event on the state combo box, when a state is selected , Then I search the city for it and organize the city's control. $ ("# state") On ("change", function () {getCities ($ (this), $ ("# city"))}); It's working really, but my real problem is that when I want to control this data, I'll have to click to fill it again (the previous state data is still there), I wish That this will be done when I finish the selection on the state's selection input. And another problem is that I am meeting with this, selecting the first option (--- city chosen ---) Every time the selection of the state changes the input cities. Function code: function getCities (state control, city control) {if (stateControl.val ()) {var optio...

char array member in c++ class -

इस सवाल का पहले से ही एक उत्तर है: 8 जवाब मेरे पास मेरे सी ++ क्लास में है सदस्य: चार सरणी [24]; क्या इस सदस्य को नाशक में क्या करना है या कुछ भी नहीं हो सकता है? सलाह के लिए धन्यवाद। कुछ भी नहीं। आप मैन्युअल रूप से सरणी के लिए स्थान आवंटित नहीं करते हैं, इसलिए आपको इसे मैन्युअल रूप से मुक्त नहीं करना चाहिए।

java - Changing action bar menu color -

एक्शनबार बार = getActionBar (); Bar.setBackgroundDrawable (नया ColorDrawable ("COLOR")); क्रिया-बार मेनू रंग कैसे बदल सकता है & lt; item android: id = "@ + आईडी / के बारे में" android: title = "@ string / about" एंड्रॉइड: showAsAction = "never" / & gt; & Lt; item android: id = "@ + आईडी / सहायता" एंड्रॉइड: शीर्षक = "@ स्ट्रिंग / सहायता" एंड्रॉइड: showAsAction = "never" / & gt; & Lt; item android: id = "@ + आईडी / साइनआउट" एंड्रॉइड: शीर्षक = "@ स्ट्रिंग / साइनआउट" एंड्रॉइड: showAsAction = "never" / & gt; अपने विषय में स्थिरता बनाए रखने के लिए, आप इसे बनाने के लिए उपयोग करना चाहेंगे एक नई एक्शनबियर शैली:

algorithm - Java Map with keys of 3 columns -

I need a map in which my key should be based on 3 columns, say C1, C2, C3 . C1 is the highest priority in C2 and C3 in C2 is less than. How can I make a key in the map if someone asks for information on C1 , then I should be able to give all the values ​​that have C1 if I have C1 & amp; I should be able to return all values ​​even if I have been asked for it. C2 You can use the same strategy as a multicol index in the database If your key column is an example with an integer column: can be ordered (i.e., in java, they should be comparable ) And can easily define maximum and minimum values. / P> Key Comparative for the Public Class & lt; Key & gt; {Int c1, c2, c3; Private static final full c2_min = integer MIN_VALUE; Private Static Finals Inc. c2_max = integer.mx_avn; Private constant final integer c3_min = integer. Mn_vrn; Private Static Final Inc. c3_max = Integer.MAX_VALUE; Compare override public int (key o) {if (C1! = OC1) returns th...

css - HTML Tags placement in html page making alignment issue -

I got into this strange problem. I have an unordered list with two list items & lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; P & gt; 1 & lt; / P & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; P & gt; 2 & lt; / P & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; (The end tag of 1 item item and start tag in second line is in different lines) This HTML code works fine but when I use the above code and lt; Ul & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; P & gt; 1 & lt; / P & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; P & gt; 2 & lt; / P & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt; (The start tag of 1 item...

iphone - App's metadata rejected by Apple: "Cant locate In App Purchase in my App".? -

Today my app metadata was rejected from Apple, this is what it says: We have started reviewing your app but have not been able to continue because we can not put into the app purchase within your app. On the initial occasion, please reply to this message to the steps given in order to find out the app purchases in your app. When your iTunes Connected application state is displayed as a disapproval, it is not necessary to upload a new binary. Once you respond to this message, we will review it with your review. Can move forward I can not understand how he can not afford to buy my app, because it is the only app, Apple has declined because I bought the "Restore" button in my app purchase Did not include. Now they say: "App can not be found in purchase" ..? : O Can the problem really be? They have asked me to answer, I can not understand what they have to say. In addition, do I have to submit new metadata ..? If you have implemented InApp purchase, ...

Transaction Required Exception in JPA Spring Hibernate App -

I saw several posts in the forum about the exception of transactions required but none of them solve this issue My question is: In my scanner, my application is working perfectly for some functionality and throws some exceptions. What type of status does entityManager.flush () throws the exceptions required spring + hibernate + jpa? Trying @transaction on this method level

wordpress - How to add to theme header from plugin? -

थीम हेडर (फ्रंटएंड) में ड्रॉप डाउन विकल्प ( & lt; select & gt; ) कैसे जोड़ूंगा बहु-भाषा समर्थन वाले साइटों पर उपलब्ध भाषाओं में भाषा चुनने के विकल्प की तरह। लेकिन थीम में परिवर्तन करने के बजाय, क्या इसे कुछ हुक के द्वारा प्लग इन से जोड़ना संभव है? मुझे एक फ़ंक्शन जोड़ने के लिए मन में है, और विषय में अपनी शोर्ट को जोड़ना है, लेकिन क्या ऐसा करने का कोई बेहतर तरीका है? 1 & gt; जब wp_head कार्रवाई आग लगती है, तब निष्पादित होने के लिए किसी फ़ंक्शन को पंजीकृत करें: add_action ('wp_head', 'my_function'); 2 & gt; फ़ंक्शन, जो आप शीर्ष पर चाहते हैं, गूंज करें: फ़ंक्शन my_function () {गूंज '& lt; चयन करें & gt; & LT; विकल्प & gt; 1 & lt; / विकल्प & gt; & Lt; / चयन & gt; '; }

javascript - How to use isNaN here properly? -

I have two fields, the first name is a field and the other is a number field. I want to see that the number field is numeric, if not, select () will be used and the background will change to yellow instead of blue color. I'm not able to do whatever I want in some way. window.onload = function () {idUser = document.getElementById ("user"); Document.getElementById ("Form"). Onsubmit = function () {if (idUser.value == "") {Warning ("username required"); IdUser.focus (); return false; } BirYear = document.getElementById ("birthday"); If (INN (BearAir)) is {Bearer select (); Warning ("number"); return false; }}} I am using the alert ("number"); Just to check it again to see if it is doing it properly, I do not need a warning, but in any case if I put numbers or say in both ways then this is just a cautious number which means that I do not want to be right. People are giving me the hands You will need...

visual c++ - calling function name from called function in c++ -

इस सवाल का पहले से ही एक उत्तर है: 7 जवाब क्या वैसे भी कॉलिंग फंक्शन के कोड को संशोधित किए बिना सी ++ में कॉल फ़ंक्शन से फ़ंक्शन नाम? नहीं है । एक बार कोड संकलित हो जाने पर, सभी फ़ंक्शन नाम और वेरिएबल नाम गुम हो जाते हैं। डीबगिंग जानकारी हो सकती है जो कि डिबगिंग प्रयोजनों के लिए रखी जाती है जिनके पास उस जानकारी हो सकती थी लेकिन यह कोड का हिस्सा नहीं है और मानक C ++ विधियों के माध्यम से इसका उपयोग नहीं किया जा सकता है।

libevent cannot read an open socket descriptor -

Recently, I have a small socket server program that is using libevent. In summary, it works. Zero Read_function (int FD, short event, zero * arg) {printf (called "callback! \ N"); // read from FD, and send a reply to FD! } Zero accept_thread_function () {int fd = accept (...); Struct event * ev_read = new struct event (); MEMSAT (EVE_FREED, 0, SIIFF (START EVENT)); Event_set (ev_read, fd, EV_READ | EV_PERSIST, read_function, ev_read); Event_add (ev_read, 0); } Int main () {event_init (); Thread A = start 'acceptable_thread_function' as a thread; Event_dispatch (); Thread :: Joining (a); } The problem is that reading work is never called. The incoming connection is properly accepted. You are waiting for your kind comment about this problem. Post-Text "Madprop =" Text "> First of all, take a look at the free Liberty Book by Nick Matthews at Libbevette: Then, To ensure that Event_dispatch () is required to call before is added.

php - access session by subdomains -

Hello I have a problem reaching a session on a subdomain This code will be set on domain.com using this code & lt ;? Php ob_start (); Ini_set ("session.cookie_domain", "domain.com."); Session_start (); Header ("content-type: text / html; charset = UTF-8"); .... By adding a point to the domain, possibly a session should be set for the subdomain. This line was found on phpinfo wwhere: session.cookie_domain does not value any value Because of hosters setting, There is no chance to edit .ini file. So I had to add the ini_set line in all the files like above. The problem is the following: A session will be set when I call domain.com. I have created a test page that easily unites sessions and cookies as I said the session will be set to domain.com and when I call at domain.com/testfile.php, it will be shown correctly . But when I will call at www.domain.com/testfile.php, then the cookie will appear, but the session is not empty, it is emp...

Getting XDMP-CONFLICTINGUPDATES exception in Marklogic -

निम्नलिखित कथन निष्पादित करने का प्रयास करते समय XDMP-CONFLICTINGUPDATES प्राप्त करना: (dls: दस्तावेज़-अपडेट ($ uri, $ सामग्री, "मुख्य दस्तावेज़ अपडेट किया गया", fn: true (), xdmp: डिफ़ॉल्ट अनुमतियां (), $ सामग्री संग्रह), dls: दस्तावेज़-चेकिन ($ uri , Fn: true ()), dls: document-update ($ sub-uri, $ sub-content, "sub document updated", fn: true (), xdmp: default-permissions (), $ content-sub-collection ), Dls: document-checkin ($ sub-uri, fn: true ()), cin: update-version ($ sub-uri)) फ़ंक्शन cin घोषित करें: update-version ($ sub-uri) {$ id: = Xs: int (fn: doc ($ sub-uri) // id) वापस xdmp: नोड-प्रतिस्थापित करें (fn: doc ($ sub-uri) // id, element id {fn: sum (($ id, 1 ))})}}; बहु बयानों लेनदेन के लिए लेनदेन नियम के साथ थोड़ा भ्रमित। चूंकि दस्तावेज़ पर लॉक पहले से ही जारी किया गया है। नोड करने में कोई समस्या क्यों होनी चाहिए? सिंटैक्स त्रुटियों के कारण नमूना कोड लिखे नहीं चलेंगे: इसमें वेरिएबल गायब हैं और वहां है अभिव्यक्ति शरीर के बाद एक समारोह लेक...

windows runtime - Storing Data from GridView in WinRT -

I have created a GridView layout which starts empty, then the user then records that data for each entry GridViewTime is built. The data collection is bound to a collection. What is the best way to save this collection so that it closes and opens again? I am currently using SQLite, but I was hoping that something was easy to allow me to store the actual objects instead of changing the string to the database. The text "itemprop =" text "> It really depends on how much data you want to save and how you want to use it. If it does not have thousands of objects, then saving it locally inside the app There is a great assistant class on codepacks that will allow it, you can find it here:. Supporting class is normal, so you can do all kinds of things without trying to create a database. It can be hedged and loaded. It is using async and it supports data storage and load, and storage folder

Having alignment issue in forms with bootstrap twitter -

मेरे पास एक इनपुट प्रकार और एक बटन का प्रकार यहां है & lt; div वर्ग = "स्पैन 12" शैली = "मार्जिन-बाएं: 10px; मार्जिन-दाएं: 5px;" & gt; & Lt; div class = "row-fluid mt20" & gt; & Lt; div id = "searchbox" & gt; & Lt; फ़ॉर्म आईडी = "सामान्य खोज-फ़ॉर्म" स्वतः पूर्ण = "बंद" & gt; & Lt; इनपुट प्रकार = "टेक्स्ट" प्लेसहोल्डर = "" वर्ग = "खोज-क्वेरी" नाम = "q" / & gt; & Lt; बटन प्रकार = "सबमिट करें" वर्ग = "बीटीएन पुल-दायें" शीर्षक = "खोज" & gt; & lt; / button & gt; & Lt; / प्रपत्र & gt; & Lt; / div & gt; & Lt; / div & gt; & Lt; / div & gt; मुझे लेआउट की आवश्यकता है कि डेस्कटॉप संस्करण में इनपुट का प्रकार 50 प्रतिशत की चौड़ाई रखता है और खोज बटन 50 प्रतिशत चौड़ाई में रह जाता है। मोबाइल संस्करण में इनपुट प्रकार शीर्ष पर होना चाहिए और खोज बटन नीचे होना चाहिए। यह कैसे करें। ...

php - Checking 1000 urls if they exist or not, is there a quick way for this? -

I have an array of URLs (~ 1000 URLs in it), I want to see them all if they exist or No . Here's my current code: $ south_east_png_endings = array (); ($ Y = 1; $ y & lt; = 48; $ y ++) {$ south_east_png_endings [] = "$ {$ x = 1; $ x This script works, it removes all the action URLs, but this process is very long (it takes several minutes to complete). Is there a way to speed it up or is it as fast as it is happening? Maybe I can use the curl_timeout functions to reduce the time? 1) get_headers () actually receives the request, which is not necessary if you want to know Use a head instead of whether a file exists or not: & lt ;? Php // uses a GET request to get the get_headers header by default if you want to send // a HEAD request instead, you can do this by using a stream reference: stream_context_set_default (' Http '= & gt; array (' method '= & gt;' HEAD '))); $ Header = get_headers ('http://example.com'); ? ...

xcode - Only run code if iOS < 6.0 with preprocessing? -

I can find many examples of how the compile / run code is the IOS version & gt; Something, but how can I do this in another way? I made the following attempts by running iOS 5.0 in the simulator: #if __IPHONE_OS_VERSION_MAX_ALLOWED & lt; __IPHONE_6_0 // Code for iOS & lt; 6.0 is not running on iOS 5.0 in code simulator inside #endif but under #if - #endif How can I do this? [edit] Ok then I was not sure what I wanted, sorry :) This is the thing that I want this code in my UITableViewDelegate only when the device is running iOS & Lt; 6.0: - (UIView *) Table view: (UITableView *) table view view FORHeaderInSection: (NSInteger) section {} This is because I Want to do some style if I'm running iOS & lt; 6, but I can make this style very easy on iOS 6. But in this method there is not really a check on a runtime on the runtime which is what I want because then it is late. Thank you / Suren After the There is a difference between compiling...

what is the meaning that alias passed an array parameter in perl? -

What does this mean that passes an array parameter in the parachute parallel? Is the correct code below? #! / Usr / bin / perl @ myarray = (1, 2, 3, 4, 5); & Amp; My_sub (@myarray); Sub my_sub {my (@subarray) = @_; Print @sabarere; } The word alias describes that many names indicate In the same data, without the syntax restriction of references. In Pearl, nicknames can be made arbitrarily eg. , But there are some such constructions that make aliases themselves. Foreground is a nickname for the original element in the current element list: my @ray = 1. 5; My $ elem (@array) {$ elem ++; # $ AMM $ array [$ i]} is a nickname for # # ARR is now 2. 6. Subroutine Logic: Pearl Sabretin to Scalers Called with a flat list (i.e. a collection like hash or arrays flatten in this list). This list is accessible through the @_ array. All elements of this array are the nicknames for parameters. sub alias_increment {my $ elem (@_) {$ elem ++; }} My @array = 1 .. 5; ...

primefaces - how can I get warn message instead of error message using requiredMessage attribute? -

Do I want to receive a warning message using the required message? If possible, how can I solve my problem? Can I get it without changing the managed bean? What does FacesMessage I mean without using? An easy (and safe) way to check on the server side. Check for the field, and if its blank or empty you can create FacesMessage. string message = "your message here"; FacesMessage facesMessage = new face messages (FacesMessage.SEVERITY_WARN, messages, empty); Face faces face face; FacesContext.addMessage (zero, facesMessage);

jquery - JavaScript - Simple Query -

इस सवाल का पहले से ही एक उत्तर है: 3 जवाब कृपया मुझे पहले से ही कोड देखें की है। मेरी समस्या यह है कि मुझे रेडियो स्टेशन और एक टेक्स्ट एंट्री का इस्तेमाल अन्य रेडियो, चेकबॉक्स और टेक्स्ट फ़ील्ड को सक्षम करने के लिए पाठ फ़ील्ड में करना होगा। अब तक मैंने केवल रेडियो विकल्प 1 या रेडियो विकल्प 2 का उपयोग करके रेडियो, चेकबॉक्स और टेक्स्ट फ़ील्ड को सक्षम करने में कामयाब रहे हैं। यह आपको लोगों को मदद दे सकता है और आपको अधिक समझ सकता है क्या मेरा मतलब है। HTML: & lt; div class = 'conlabel' & gt; क्या आपने अभी तक व्यापार शुरू कर दिया? & Lt; / div & gt ; & Lt; तालिका की चौड़ाई = "100" & gt; & LT; टीआर & gt; & LT; टीडी & gt; & lt; लेबल & gt; & Lt; इनपुट प्रकार = "रेडियो" नाम = "उदाहरण" मान = "हां" id = "example_0" आवश्यक / & gt; हाँ & lt; / लेबल & gt; & lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & LT; टीडी & ...

parsing - Looking for a Java User Agent String Parser -

Does a user know about a great library in Java to parse the agent strings? We wrote a custom, but it seems like a common problem for many people. I think there is a good library available. For example, User Agent String ... "Mozilla / 5.0 (Windows; U; Windows NT 6.0; N-US) Apple WebKit / 532.0 (KHML, ) Chrome / 3.0.195.21 Safari / 532.0 " ... Cryptically announces the arrival of Windows Vista PCs using Chrome on our site. I have seen libraries in Python and Ruby. Is there anything in java? Then try a new library that is updated monthly and available in the central repository: This is another cover, but more solid than other people and with the implementation of the test. I am working on a stable API 1.0 which I want to release later this year. After the release of API 1.0 you do not need to recompile anything. You can only convert UADActector-Resource.or into your application. The convenience 'monthly update' means that if you want to test a '...

android - Trying to define which layout should a device use -

I am trying to understand which layout uses that device. For example, I have a different layout: Layout-sw600dp Layout-sw720dp Nexus 7 "(800x1280) Layout - Sw600dp Uses Samsung GTp3100 7" (600x1.024) Layout- Sw600dp Uses Samsung Tab 10.1 (1280x800) Layout uses sw720dp Sony uses Xperia S 4.3 (1280x720) layout Can you "explain" people with your words Not using XPERIA S sw600dp or sw720dp? SW! = Small width? So XPERIA S is at least 720. It should use sw720 or sw600, right? Or am I wrong? I have read a lot of documents, but I do not understand why this is happening. Thank you very much. The smallest fourth qualifier mainly refers to the screen size and not the physical pixels. For example, the device should have a minimum screen width of 720 DP (device-independent pixel) - it is not nearly 720 physical pixels for documentation sw720dp ... Density-independent pixel 160 dpi is equal to a physical pixel on the screen, which is the b...

c - POSIX regex not compiling -

I have this code to match the IP address pattern. But it does not seem to work and I do not know why it always prints "no matches" at the terminal regex_t regex; Int rate; Four messagebuffs [100]; Reti = regcomp (and regex, "^ ([0- 9] {1,3}). ([0- 9] {1,3}). ([0- 9] {1,3}). ([ 0- 9] {1,3}) $ ", 0); If (reti) {FPintiff (stadder, "Reggae could not be compiled \ n"); Exit (1); } Reti = regexec (and regex, "124.168.21.3", 0, zero, 0); If (! Reti) {puts ("match"); } And if (reti == REG_NOMATCH) {puts ("no match"); } {Terror (reti, and regex, msgbuf, sizeof (msgbuf)); Fprintf (stderr, "Reggae match failed:% s \ n", msgbuf); Exit (1); } Regfree (& amp; regex); Any ideas? I found, in fact I should specify the seam of the function field REG_EXTENDED and not 0.

php - date picker code in html -

We tried the code to display the date using the date picker, one page for it and one page for dates Should be displayed twice, but it is not displayed for the date only and currently the date & Lt; Link rel = 'stylesheet' id = 'colors-fresh-css' href = 'colors-fresh.css' type = 'text / css' media = 'all' /> & Lt; Link rel = "stylesheet" href = "http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> & Lt; Script src = "http://code.jquery.com/jquery-1.8.2.js" & gt; & Lt; / Script & gt; & Lt; Script src = "http://code.jquery.com/ui/1.9.1/jquery-ui.js" & gt; & Lt; / Script & gt; & Lt; Link rel = "stylesheet" href = "/ resources / demos / style.css" /> & Lt; Script & gt; $ (Function () {$ ("#datepicker") .datepicker (); $ ("# icon"). Click (function () {$ ("# datepicker"). Duplicator (...

sql server - sql query to count various fields in a table -

मुझे पूछताछ तालिका हो रही है और फ़ील्ड नीचे हैं sno confname region inquiry status update बंद अनुमोदन 1 Conf 2020 मध्य प्रदेश परीक्षण परीक्षा दोबारा पुनर्जीवित की गई 2013 का परीक्षण 123 अभिक्रिया अभय पर पुनर्विचार किया गया 3 कन्फ्यूशन 2013 महाराष्ट्र टेस्ट 12 टेस्ट को स्वीकृति दी गई 4 विनियां 2013 महाराष्ट्र टेस्ट 124 टेस्ट 1 ने 5 मंजूर 5 कन्फर्म कर्नाटक टेस्ट 124 टेस्ट 1 6 कॉन्फ 3 कर्नाटक टेस्ट 876 टेस्ट 45 7 कॉन्फ 3 कर्नाटक का परीक्षण 365 test45 बंद कर दिया गया है और मुझे आउटपुट के रूप में क्षेत्र कॉन्फ़ नोट नाम की कुल संख्या की कुल संख्या में एनक द्वारा स्वीकृत महाराष्ट्र सं। 3 2 2 कर्नाटक कॉन्फ 3 3 1 1 मध्य प्रदेश कॉन्फ़ 2020 1 1 और मेरी एसक्यूएल क्वेरी है चुनें confname, क्षेत्र, clsed, apprstatus, गणना (क्षेत्र) के रूप में astenq, संख्या (सीएलएसडी) के रूप में totenqclsd, COUNT (apprstatus) के रूप में [enquiries_dtls] से ग्रुप द्वारा क्षेत्र, confname, clsed, अनुमोदन आप परिणाम प्राप्त करने के लिए CASE अभिव्यक्ति के साथ एक समग्र कार्य का उपयोग कर सकते हैं...

iphone - UITextField not editing properly -

I have 3 UITextField s that was dynamically placed below: if (an avestroasting: @ "1") {UITextField * t = [[UITextField alloc] initWithFrame: CGRectMake (20,20,20,20)]; T.text = s; T.delegale = self; [Scrolledview: t]; } If (Aevstrrastaging: @ "2") {UITextField * t = [[UITextField alloc] initWithFrame: CGRectMake (20,20,20,20)]; T.text = P; T.delegale = self; [Scrolledview: t]; } If (Aevstrrastaging: @ "3") {UITextField * t = [[UITextField alloc] initWithFrame: CGRectMake (20,20,20,20)]; T.text = r; T.delegale = self; [Scrolledview: t]; } My problem is in the didBeginEditing of these text fields, I have written errT.hidden = yes; This is my code, but I am unable to edit those textfields and I have to delegate it to the representative. H . What to do? == t) {err.hidden = YES; }} Try it out: A Avalastreasting: @ "1") {.... ttext = @ "s"; ....} if (a avestratrosting: @ "2") {.... ttext = @ "p...

snmp - How to show table like information in Nagios? -

My setup is something I have multiple servers There are several instances of the same service in each server (multi-type architecture like architecture, Tenant) Now I want to get the position of all the services running on all servers using SNMP. The problem I am experiencing is how can someone show a table of information in NaziOS? That is, when I click on a particular server, it will show me the list of services. Now when I click on any service, then I should re-list the list of special service examples. In advance thank you Nagios have no such attribute You have to set up a check for each service that runs on the monitor host.

c++ - How to deep copy full object behind boost::shared_ptr into shared_ptr pointing to new location? -

boost :: shared_ptr के पीछे पूर्ण ऑब्जेक्ट कैसे कॉपी करें: वहाँ memcopy विकल्प हैं सिर्फ मेमोरी क्लोन बनाएं), या हम कॉपी कन्स्ट्रक्टर बनाएंगे? आपको प्रतिलिपि कन्स्ट्रक्टर या ऑपरेटर = जो गहरी प्रतिलिपि का प्रदर्शन करेगा। बढ़ावा :: साझा_पीटीआर आपके लिए यह करने के लिए आपके ऑब्जेक्ट की संरचना को नहीं जान सकता। न तो "मेमोरी क्लोन" ऑपरेशन हो सकता है। बेशक, यह केवल ऑब्जेक्ट्स के लिए है, जिसे एक स्पष्ट रूप से परिभाषित कॉपी कन्स्ट्रक्टर / operator = की आवश्यकता है और "तुच्छ" उथले प्रतिलिपि।

wso2bam - WSO2 - Table created using Analytic Script Invisible in Gadget Generation Tool -

The case of my use: pushing data from a stream BAM configured in ESB and using a report ???? Gadget creation tool After adding an agent to the proxy service, BAM publishes the stream from ESB to work properly. From the stream I created from a table using Analytics-> Add to the screen and apply the table as it seems to me to select one and see the result from the same screen Now I have to generate a dashboard using the gadget generation tool But the table is not trying. Available, although the JDBC connection is working well, but the table is nowhere: Analytics-> script to run analytic table from the screen Create an external table Not existing CREDITTABLE (creditkey STRING, creditFlag STRING, version string) SERDEPROPERTIES ("cassandra.host" = '127.0.0.1 "with' org.apache.hadoop.hive.cassandra.CassandraStorageHandler 'stored cassandra.port" = "9163 "," Cassandra.ks.name "=" EVENT_S "," cassandra.ks....

asp.net mvc 3 - Re-using code in controller class -

The following code is taken from the tutorial: which shows that ASP.X MVC 3 is used to manage the film's database can be done. In the trainee, a list object is added to the controller class, in which the style of each movie is present in the database, then this list is seen near the drop-down, so that the database can be searched. Could. Controller: (Code related to movie style in bold) Public Functional SearchInx (String Navigator, String Search String) {var GenreLst = New list & lt; String & gt; (); Var GenreQry = d to DB Choose d.Genre d.Genre by Movie Order; GenreLst.AddRange (GenreQry.Distinct ()); ViewBag.movieGenre = New Selection List (GenreList); DB in Var Films = M. Selection of Moms; If (String.IsNullOrEmpty (searchString)) {movies = movies.Where (s = & gt; s.Title.Contains (searchString)); } If (string.IsNullOrEmpty (Movie Ganner)) see return (movies); Else {Return View (movie where (x => x.Genre == movie generator)); }} I want to proceed ...

selector - Targeting child elements jquery -

This code should target child element. The class should be secured and allocated it. Ref-hover, but it only specifies to do this Simple HTML: & lt; Div class = "see left" & gt; & Lt; Div class = "desc box" & gt; & Lt; H3 & gt; Anticorro & lt; / H3 & gt; & Lt; P & gt; Sound & lt; / P & gt; & Lt; / Div & gt; & Lt; Div class = "video box" & gt; & Lt; Iframe & gt; Acousticides iframe & lt; / Iframe & gt; & Lt; / Div & gt; & Lt; / Div & gt; JS here: $ (document) .ready (function () {$ ('refer'). Hover (function () { $ (This). Children ('video'). AddClass ('ref-hover');}, function () {$ (this). Child ('video'). RemoveClass ('ref-hover');} );}); Example: (These blocks with players with sound blocks) Is there a problem with the problem? try it $ (document) .ready (function ('$' (See reference). ...

xpages - Read content from non xp:inputText field with ssjs -

Is there a way to read fields with SSJs created by client side javascript (no such XP: input Field, this is a simple HTML input field that is in notes-tags)? I know that I can send the price with Exagent, but I hope there is another great way. Some thanks context.getSubmittedValue (" fieldName ") "> You can access the value of paramValues.get (" fieldName ") in SSJS. ToString (); In Java, you can access parameters from the map of request parameter values: ExternalContext ec = FacesContext.getCurrentInstance (). GetExternalContext (); Maps & lt; String, string []> PMap = ec.getRequestParameterValuesMap ();

c# - pass textbox value of one web part to another webpart in MOSS 2007 -

I want to give value to a text box, which is in another user part in a user control (.ascx) page. In the second web portal Six pages The code in the web part looks like this. Protected Override Zero CreateChildControls () {base.CreateChildControls (); _childControl = Page.LoadControl ("~ / _CONTROLTEMPLATES / MyFolder / MyPage.ascx"); this. Control. AddAt (0, _childControl); } I have a text box inside MyPage.ascx and I want to use that value in the other webpattel. I tried to create the interface and communication channels, but I do not any help would be appreciated. TIA, IDAD ps: I'm new to SharePoint The way to solve some solution or the way I tried P> The value of the textbox or the variable is either a query string or static variable or The session should be passed through the variable. Static variables should be used only when you feel that the data is retained by them closes for Kaus reassons your application. To use session varia...

javascript - How do I stretch a html5 video to width:600 and height 200? -

How do I raise an html5 video for width: 600 and height 200? When I try, the navigation bar increases in size but the video remains small code: Source tag: HTML & lt; Video class = "vid" controls = true> & Lt; Source src = "http://media.w3.org/2010/05/sintel/trailer.mp4" type = "video / mp34" & gt; Your browser does not support the video tag. & Lt; / Video & gt; css .id {}. Weeds Source {width: 600px; Height: 200px; }

c# - Moving Picture box with timer faster -

I have a project in Compact Framework 2.0 C # I am using a number of pictureboxes in the form and making changes in it There is a timer for every other pictureboxes but it runs slowly but how fast can I do it? The timer interval is 100 Private zero timer 1 volt (object sender, event ergugged E) {picust.Location = new point (picust.Location.X, picust.Location .Y + 10); Picx.Location = New point (picx.Location.X, picx.Location.Y + 10); Picy.Location = New point (picy.Location.X, picx.Location.Y + 10); } Since you are using Net Compact Framework 2.0, you can use your code And the methods that will start with version 2.0. As an example, place these methods around your code: // Assume that this code is within the parent form private zero timer 1 volt (object sender, eventAgps E) {this. SuspendLayout (); Picture. Location = new point (picture location.x, picture location, Y + 10); Picx.Location = New point (picx.Location.X, picx.Location.Y + 10); Picy.Location = New point (picy.L...

html5 - Flash and "206 partial conent" http status code -

I use JWPlayer to play video from the server. The video is encoded using the H.264 codec. If I open them in the browser with H.264 support - the video plays well and I can find it because the server returns the 206 header browser to understand its partial content but if I play the same video on opera Try, for example, the flash player is being used and it gets 200 OK! 2 problems are here: I can not find the video until its video is downloaded If the video The "right" encoded player can not start playing until the file is completely downloaded. 1) Flash requires pseudo-streaming to be enabled - if you can provide a link, So I'm actually seeing what's going on here, I'm guessing more or less about this. HTML5 is not required for the pseudo-streaming module installed on the server side, however. In Flash, the default is progressive download, so you can only search for downloaded parts, and in html5, it is not so. 2) Yes, this is because o...

sql server - SQL: create new table with distinct value and max/min values for other columns w/in an existing table -

उदाहरण: मान लें कि मूल तालिका में निम्न मान हैं AcctNBR StatusDate ---- -------------- 123 01/01/2012 123 01/01/2013 123 12/11/2011 987 01/01/2009 एसक्यूएल एक नई तालिका बनायेगा जिसमें एक्टएनबीआर आरम्भीस्ट स्टेटस डेट नवीनतम स्टेटस डेट ------------------------------ ------------- 123 12/11/2011 01/01/2013 987 01/01/2009 01/01/2009 मैं देख रहा हूँ ऐसा करने के लिए एक प्रभावी तरीके से मेरे पास एक ऐसा तरीका है जो काम करता है, लेकिन यह एक अस्वीकार्य रूप से लंबा समय लेता है। क्या किसी के पास कोई अनुकूलन युक्तियां हैं किसी भी मदद की काफी सराहना की जाएगी। ड्रॉप तालिका पर सेट नोड लूप टेम्पल ड्रॉप तालिका रिपोर्ट टेंपल बनाओ टेबल लूप टेम्पम (आईडी आईआईटी आईएनटीटीआई (1, 1) नल, एक्टएनएनबीआर वर्चार (50),) टेबल बनाओ रिपोर्ट टेम्प (एसीटीएनबीआर varchar (50), सबसे पुराना स्टेटस तिथि, नवीनतम स्टेटस डेट) लूपटम्प्शन में शामिल करें ऑटोस्टैटस इतिहास से एक्टिबिल का चयन करें @ कतार के रूप में INT SET @COUNTER = 1 DECLARE @MAX AS INT SET @ MAX = (लूपटेम्प से अधिकतम MAX) WHILE @ कतार & lt; @ M...

zope - Managing Plone vocabularies through the web -

I am currently working on a plan project with many custom content types. There are several fields in these content types that, in return, get their values ​​from vocabulary. Currently, I have coded my values ​​as a glossary in the file like: from . Import Artes atapi CITIES_LIST = atapi.DisplayList ((('Nairobi', 'Nairobi'), ('Kisumu', 'Kisumu'), ('Mombasa', 'Mombasa'), ('Aldert', 'Aldourt') , ('Nagur', 'Nakuru'))) It works well and there is no problem with it. The only drawback is that the vocabulary is dispersed in the code and it will require a programmer / developer to modify the existing terminology. I have a way for site administrators and users who are not required by programmers to be able to modify future terminology through web interface, i.e To change the list. I have seen but I do not think it fits the bill. Perhaps if there was any interface with the grid to manage the vocabular...