Posts

Showing posts from March, 2011

objective c - iOS app structure -

I'm very new to iOS and I'm hoping someone will be able to give me some insight into the program frameworks / books which I sell in the architecture of the iOS app, for example, News stand application. Are there additional programs that 'run' outside the Newsstand app or are the modules loaded inside the original app? And how do you refer them in the appstore? I want to make bookshelves for some books. Each book is made using Cocos 2D (works like a game) and they need to be sold separately, but they should be 'related' to their bookshelf. All the books of bookshelf already downloading, etc. have to be 'managed to save, edit, delete'. Will anyone be able to provide some guidance? Since I do not understand the architecture, I do not even know where to start my search. Many thanks! I think you should split your problem into smaller parts or modules. First Learn about Cocos 2D Then look for UICollectionView to look like a shelf. Then integrate

python - find all urls prefixed with something specific flask -

I want to create a test environment for a series of templates in my flask application. The directory structure looks slightly like this: run.py app / blueprints / __init__.py bp.py bp2.py bp3.py __init__.py opin.py init .pi , / Url_prefix ('/ Generate' I want to launch a test system which does some such (pseudocode): for each URL that is generated / j: j = json.load (That_url ()) open ('With stability) .json', 'r') as stability: If j == json.load (stability): app.logger.info ('test pass') How will this work? Can not you do this with regular expressions? ** ** End of the line assuming the end of the URL is ... u = re.c Ompile ('/ generated (...) \ n' ') r = u.findall for l: j = json.load (l) # Add your remaining tasks here ....

c# - Linq query to return list within a list -

नमस्कार, मैंने दो मॉडल वर्गों का पालन किया है सार्वजनिक वर्ग c1 {सार्वजनिक इन्ट आईडी {get ; सेट; } सार्वजनिक int ptId {get; सेट; } सार्वजनिक int बीआईडी ​​{get; सेट; } सार्वजनिक int rId {get; सेट; } सार्वजनिक IEnumerable & lt; शैलियों & gt; NewStruct {get; सेट; }} सार्वजनिक वर्ग शैलियाँ {सार्वजनिक इन्ट आईडी {get; सेट; } सार्वजनिक int बीआईडी ​​{get; सेट; } सार्वजनिक स्ट्रिंग desc {get; सेट; }} मैं एक linq क्वेरी लिखने का प्रयास कर रहा हूं var रिकॉर्ड = (वाई से db.main में शामिल होने c में db.secondary y पर। बीआईडी ​​c.bId के बराबर होता है जहां c.id == आईडी का चयन करें नया c1 {pId = c.pId, id = c.id, newStruct = नई सूची & lt; शैलियों & gt; {नई शैली {id = y.room_id, desc = y.desc} ,}}}); वापसी रिकॉर्ड। टॉलिक (); मुझे लगता है कि नए स्टार्ट में सभी शैलियों की सूची होने की संभावना है लेकिन यह सिर्फ एक सूची के बजाए एक शैली देता है। कृपया मुझे बताएं कि यह रिकॉर्ड कैसे वापस कर सकता है जहां अंदर शैलियों की सूची है धन्यवाद अगर आप चाहते हैं मुख्य सूची के अनुसार

android - How to disable marker click event? -

I am developing a simple app, where I already have mrkr.showInfoWindow () but I do not want the user to tap that marker again. How can the specific marker's event be disabled by clicking? In this way I have tried. marker marker = gMap.addMarker (new marker option). Position (newlatlag (location .getLatitude), location.getLongitude ()). Title ("I am here"). Icon (BitmapDiscriptor Factor From Resource (R.drawable.mrk1)); marker.showInfoWindow (); // How to use marker.set click here or something here How do I display that instantly () / title of my marker in my application? You can set markers in the GoogleMap object on List-Listener map.setOnMarkerClickListener (New OnMarkerClickListener) {@Override Public boolean onMarkerClick} {true};}};

Foreign Keys on Python Flask -

Obtaining this error with the DB model. What can be the problem in any idea? Invalid space error: when starting Mapper Mapper. Stand | Stand, expression 'stand.tem_code_name == item_id' failed to detect name ("name 'item_id' is not defined"). If this is a class name, consider adding this relationship; & Lt; class 'app.models.Stand' & gt; The class is defined after both dependent classes. Square stand (db.model): stand_id = db Columns (DB String (10), Primary_Keys = True) Stand_name = DB. Columns (DB String (24), Index = True, Exclusive = True) Item_Code_Name = DB Column (db.String, db.ForeignKey ('item_codes.item_id')) item_codes = db.relationship ('Item_codes', primary join = "stand.item_code_name == item_id") Square Item_codes (db.model): item_id = db Column (db.String (10), primary_keys = true) item_name = db.Column (db.String (100), index = true, exclusive = true) combi = db.Column (db.String (140)) Map

ios - iPhone - UIImageView moves when Rotate Animation > 90 degree -

I am using this code to rotate my image - ( IBAction) Spin: (ID) sender {[UIView startAnimations: zero reference: zero]; [UIView Set Animation Duration: 5.0]; [UIView Set AnimationBuginFrenchTant: Yes]; self.imgRad.transform = CGAffineTransformMakeRotation (arc4random ()% 360 * M_PI / 180); [UIView commitAnimations]; } Now I have two problems. First: If the random number is greater than 90, then the image rotates near its center in the right corner and in relation to its random number. So much more number = the position of the image is close to the right corner. How can I fix that? Do I have to set my new UIImageView every time more than 90? Second: If the number is for example 300, then the image does not rotate 300 degrees, it spins only 60 degrees on the other side. How can I fix this problem? Thank you very much! The first problem may be due to an incorrect signal point when using the transformer CAAnimation . The second problem can be solved by using

mysql - Upgrading to ToadForMySQL version 7.2.0.2922 and now have authentication issue -

I'm new to TOAD I have my ToadForMySQL client in my Windows 7 box ToadForMySQL 7.0. ToadForMySQL from 0.2038 has been upgraded to 7.2.0.2922. I have 4 databases that I am currently connecting to. Of the 4 connection entries, I can only connect to 3 of the connection manager. When I try to connect to the 4 database using my connection entry, I get this error: MySQL database error old Authentication with password is no longer supported, 4.1 Use the password of the style. Any suggestions on how to fix this problem would be appreciated. Nothing about permission or password in any of these connections has changed. This issue was in Recurring Confidential, from which our DBA has so far used the 4.1 style password Users have not changed. Just in case of someone else I think I want to post my findings better. Thank you.

home automation - Configure MQTT Broker for iOS -

I am working on the home automation application for iOS. I want to use MQTT with Quel for home automation. But I am unable to understand how I set up and configure the MCTT broker / server apart from how I can create a topic or get a list of all the devices. Perhaps the mosquito broker might be able to start the easiest place, pre-release for most platforms available on the download page. As subjects, you do not configure them on a broker, they publish or subscribe to customers as a fly. The specific configuration you want to see is to install ACL for trees of specific subjects, so that customers can be subscribed / published. You do not usually need to have a list of Connected Clients, but if you need it, they see the admin themes that have $ SYS / broker / clients / # sub tree

xmlhttprequest - CSRF via ClickJacking -

Is it possible to execute CSRF through click-junk vulnerability? Suppose my website is completely safe with CSRF attack but there is no XFO, so there is no way to use CSRF through click-jeking vulnerability? I have heard about XML that it can be used to use if there is no XFO but CSRF protection, then what is the idea? An X-frame-option response header exists, an attacker can make your page frame and transparent, so when a victim tries to click the button on the attacker's site (like Click here to win an iPad ) They are actually communicating with your page (like click here to initiate a bank transfer ). It depends on the victim who already has the target site, and it also depends on the availability of one click action on the site. If there is a form of filling which can not be filled out before using the criteria, then this particular attack is probably not possible without giving a trick to fulfill the victim in any way. This creates high risk clickjacking for para

css - bootstrap class not working with select -

I am working on Ruby app on Ruby and I am trying to reduce the size of selection. I have 'bootstrap gem' installed for my application. Here is the code <% = f.select: fromyear, (1995 .. time.nan.year) .to_a. reverse ,: include_blank = & gt; {: Year = & gt; "Select year"} ,: class => "Input-less"%> As I have seen the values ​​of the square of this question but it seems that it is not working with this selection I have tried < code> & lt;% = f.select: fromyear, (1995 .. time.Nan. yayer) .to_a.reverse ,: include_blank => {: Year = & gt; "Select year"} ,: style = & gt; "100px"%> But nothing happened to tell me what I'm remembering thanks Try it & lt;% = f.select (: Fromyear, options_for_select ((1995 .. time.Now), .to_a.reverse), {: include_blank = & gt; Select Year '}, {: class =>' input-small '})%> Or you can here inline with a select tag with a

android - Save whole logcat to device -

I know there are so many similar questions but I (hopefully) have checked them all. My question is: How can I save the Entire logs on my device? Currently I am running logcat -d but it only gives me the log-in relation to my app. I need full luteq, as if I adb logcat -d> Logcat.txt When I do this from my PC, I get a large file, but when I go on my device, I get only a small file. I also have the logcat - F , but it does not save anything on my device. And yes, I have & lt; Usage-permission is using Android: name = "Android.permission.READ_LOGS" /> and root permissions When you run it is your host PC ADB lockout- d & gt; Logcat.txt will save all logs On a Windows machine: To get a log related to your app only adb logcat | "Package name of your app" & gt; Find Logfile.txt to get a log with time values ​​ adb logcat -v time | "Package name of your app" & gt; Find logfile.txt You can either provide

c# - PlayerPrefs.SetInt and .GetInt having undesired effect -

I have an app in Unity 3D which I'm making for Android, and you collect coins which coins Can Play Every time I start the game, my coin amount starts up to 0, even then I am using SetInt and the next time a player plays the game, I try to save the coin. Completely unsure why this coin is not saving money, no idea? (Maybe some stupid because I'm a little bit of a knot) using UnityEngine; Using System.Collections; Public category pickup coin: Monobehavik {public interest amount; Public audio clip Sikkim; Public audioSOS playerAudio; Zero Start () (If PlayerPrefs.GetInt ("TotalCoinsPlayerPrefs") == Faucet) {PlayerPrefs.SetInt ("TotalCoinsPlayerPrefs", 0);} AmountOfCoins = PlayerPrefs.GetInt ("TotalCoinsPlayerPrefs");} Zero OnCollisionEnter (other collision) {if (other gameObject.name.Contains ("coin")) {playerAudio.PlayOneShot (Sikkating); amountOfCoins + = 1; Player Prefs.SetInt ("TotalCoinsPlayerPrefs", ZodiacApocax); De

duplicates - How to avoid while-loop code duplication? -

स्ट्रिंग s = कंसोल.रिडलाइन (); जबकि (एस! = नल) {// कुछ करना / / .... s = कंसोल.रिडलाइन (); } उपरोक्त कोड इनपुट प्राप्त करना, इसे सत्यापित करने, उसे संसाधित करना और फिर इनपुट करना है, लेकिन जाहिर है, s = Console.ReadLine (); कोड दोहराव। दोहराव से बचने के लिए क्या युक्तियां हैं? पायथन में (जहां कम से कम एक पुनरावृत्ति की गारंटी देने के लिए कोई do-while लूप नहीं है), यह चाल एक स्पष्ट विराम के साथ अनंत लूप का उपयोग करना है। जबकि (सत्य ) // या जो कुछ भी सच बिना शर्त का मूल्यांकन करता है {s = Console.ReadLine (); यदि (एस == रिक्त) {ब्रेक; } // कुछ करो}

mysql - SQL IN Operator With Date Range -

Image
I am trying to select from table1 in Table1, where Table 2 has a specific date range, I have a few different questions have tried; Some of which I get syntax errors, and some where the date range is not working. Currently: Choose from Table 1 Where to select F (FT2) as SS Time. & Gt; '2013-01-01 00:00:00' and S. Time & lt; '2013-01-07 00:00:00' by order s.time What is the correct syntax for this type of statement? I see all the examples are: select * from table 1 where in x (table2); I can not find anyone else in depth examples. Any suggestion is appreciated, if necessary, please leave a comment for more information. < Div class = "post-text" itemprop = "text"> A WHERE section can be present only once in the query IN to use < Inside a SUBQUERY with code> SELECT , you must follow this method: '1/1/2012' and '1/1 / 2013 ' From Table 1, column X should be same I type OneColumnOn

sql - DB2 SELECT statement using COUNT and GROUP BY -

I have a database that has a DB2 database in which I have a customer notification, how many times I have duplicated columns in a specific table . Here is an example of data. CUSTOMERID | Customs Group | PRODUCTID | PRODUCTNAME | ALERTNAME | Altelevel | XXX | YYY | ZZZ 12345 ABC 987654 Product A Alert 1 4 More data here The customer is identified by the Customer ID and Customer Group column. They can have any number of products and these products can get various types of alerts (product, productive and productive all alerts 1). In our old MySQL database, it was not very difficult because I do something like customerID, customer group, productive, product name, alerts, count (alertname) Alert level, select more data ... from where the customer ID = XXX and client group = YYY Group Alert Level alert, alerts, product name I was not included in the Not been included tax shall, in which customer information back and several times received a specific warning. Now that we h

binary files update in C++ -

I am new in binary files, my binary file is written in length indicators and I want to know what the way Can I update it (write it) without writing it (writing it)? And how can it be removed (removing backwards with shifting)? You can not do this If you want to delete a part of the data in your file, then you have to rewrite the rest of the file. Pseudo-code: - Open original file to read - Open temp file for writing - Data in original file - if original file data is required - data is temporary file Type - Delete original file - Rename temporary file to original file name

Elif invalid syntax python -

I have an invalid syntax on my alif statement, why is this code: While correct_turns! = len (word): if correct_turns == len (word): finish () estimate = input ("Please take one letter from above:") in the word is not an estimate and not used in letters: used Gel_Laster (use of estimation, display, letters) is assumed in alphabetical terms and words: Correct (estimation, performance, correct_ty, use of letters) Letters do not have elif estimation and not word: incorrect (estimation, performance, letters Not used Defense is) not use Application: estimates Elif letter made Ga_lestr (has used estimates, performance, characters) Elif Len (estimated) & gt; 1: Estimate_word (estimation) Your first elif only If a should be , then its indentation will be given. Alif s is not really related to the first even .

Visual Studio 2013 JavaScript/TypeScript odd indenting behavior -

There is a problem with the automatic indentation of code while working on my typecript code. Examples of promises for example: someService.GetSomeProperties (). Then (x = & gt; {Return to another service} SoftwingWithX (x.map (y => y.id))}}). Then pressing (x = & gt; {// right) sets the cursor in this position // Using the document format (CTRL + K, CTRL + D) code goes back to this level of return '';}) . Then (x = & gt; {enter the press from here // moves the previous row to its position and the cursor returns here 'a';}). Then (x = & gt; {// this document block is also known as this indented level //}). Then (x = & gt; {// follow-up chaining remains the same}); Based on the 'symptom', this behavior is normally coming from multi-line statements. I have both VS 2013 option and R # Do anyone know how to fix this? <div class = "post- anybody know how to fix this? </ p> </ blockquote> <p> If you h

ruby on rails - rescue_from not working with ActionController::BadRequest -

using Rail 4, I'll work with rescue_from with ActionController :: BadRequest can not be found for : application_controller.rb rescue_from ActionController :: BadRequest, with: raise_bad_request def raise_bad_request (Nothing present: true, position: 404) end inside the controller You have to rescue_from to collect errors only (in action, views or filters) inside your controller. It looks like Passes the ActionController :: BadRequest route (middleware stack before requesting to do the controller somewhere). If you write your middle class this way, then you can take action on such errors: class HandleErrorsMiddleware def initialize (app) @app = app End DIF Call (env) @ app call (env) Rescue control: BadRequest ApplicationController.action (raise_bad_request) .call (env) End End raise_bad_request ApplicationController You must add this middleware to config / application.rb config.middleware .insert_before 'ActionDispatch :: ParamsParser

ios - Putting a UITableViewController in a UIPopoverController -

मैं नीचे कोड के साथ एक UITableViewController (EnrollmentPopoverTableViewController) से एक popover बनाने का प्रयास कर रहा हूं। < / p> हालांकि, मुझे रिक्त पॉपवर मिल रहा है। UIViewController * popovercontent = [[UIViewController alloc] init]; UIView * popoverview = [[UIView alloc] initWithFrame: CGRectMake (0, 0, 300, 768)]; नामांकन PopoverTableViewController * नामांकन PopoverTable = [[नामांकन PopoverTableViewController alloc] init]; [पॉपओवरइव्यू ऐडस्यूब्यूव्यू: एनरोलमैंट पोपओवरटैबटेबलव्यू]; popovercontent.view = popoverview; myPopoverController = [[UIPopoverController alloc] initWithContentViewController: popovercontent]; UITableViewCell * सेल = [tableView सेलफोररॉएटइंडएक्सपाथ: इंडेक्सपेथ]; [self.myPopoverController presentPopoverFromRect: cell.bounds inView: cell.contentView अनुमतिएरो डायरेक्शन: UIPopoverArrowDirectionLeft एनिमेटेड: हाँ]; तालिका दृश्य नियंत्रक नामांकन PopoverTableViewController * tableViewController = [[नामांकन PopoverTableViewController] alloc] ini

Sales Summary Report Square connect -

Is it possible to prepare daily sales summary reports using Square-Connect? I see where I can list items, categories, etc. but nothing is where I can prepare daily sales summary reports. "post-text" itemprop = "text"> You can use the Connect API to get a list of your daily sales and see which items are purchased in those sales. Had gone. Obtaining a daily sale Retrieve a list of your daily sales with the end point of the funds (tax, tip, etc.) collected in each object and the tender Includes breakdown of the used (credit card, cash, etc.) form. By default, this endpoint provides a list of all of payments you've ever processed, but you begin_time and You can specify a custom time window with the end_time parameter. For example, to recover all your payments on April 21, 2014: start_time is 2014-04- 21T00: 00: 00-07: 00 end_time is 2014-04-22T00: 00: 00-07: 00 < / li> -07: 00 Offset assumes that you are on Pacific Dayl

php if statement not working properly -

I'm not sure why, but some empty values ​​are still through my if statement Like when I resonate a Jason encoded version, some values ​​are "keys", but there is nothing in "value". Any ideas? function graph_fiss ($ competitors, $ fee_graph_data) {foreach ($ competitors as competitors) {if (empty ($ contestant-> minSingleCareFee)) {$ fee_graph_data [$ contestant - & gt; Home_name] = $ rival- & gt; Minsinglefi; }} Return $ fee_graph_data; } $ mm_fees = graph_fees ($ competitors, $ fee_graph_data); Echo json_encode ($ mm_fees); Whitespace can be garbled when creating data, trim it before your check . $$ Competitive- & gt; Home_name = trim ($ contestant-> home_name); $ Competitor- & gt; Minslinglegi = trim ($ contestant-> miningeckerfery); If ($ (Competitive-> Minalingekarfasi & gt; miningeckerfesi) & amp; Empty! ($ Contributor-> Home_name)) {$ fee_graph_data [$ Contest-> Home_name] = $ competitor- & gt; M

How do you setup mixed authorizations for different authentications in .net (web api 2 + owin) -

I am quite new to .NET and I am trying to create a restfull service where you can add othe 2 Be able to login with a "General Account" From VS 2013, the SPA template allowed me to do it quickly and easily and I am very happy with it. I am facing a different problem right now. I'm unable to find a different way to access these different types of logins. For example, I only allow users to access X and users through the Youth Authentication method which is able to only see Y for authenticating "normal methods" (even with a carrier token). I searched the web and it looks like I should use the [authorized] tag, but I'm not sure how to customize it and there is no difference between different logins. Various ways of optimizing but no one is working and I am stumbling in solutions which are outdated. Can anyone help? Thank you! Public class AuthorizeExternalsOnly: AuthorizeAttribute {protected override bool} IsAuthorized (System.Web.Http.Controllers

c++ - Using the destructor to free linked objects -

I have a class named "node". I link a group of node objects to create a link list. When called "node" catalyst, it only removes the first node. How can I be repeated from the entire linked list of nodes and remove each node object? Here is the definition of class: class node {private: double coffe; Intel exponent; Node * next; Public: node (double c, int e, node * nodobject) {coeff = c; Exponent = e; Next = nodeobjectPtr; } ~ Node () {printf ("node destroyed"); } The destructor is called to remove the pointer on the node before the linked node list. Since you do not know how many nodes are in the list, if you do not have firm obligation, then It is not a good idea to make methods continuously recursive, because each call uses some stack space, and when the available stack space ends, you get undefined behavior like an accident. So if you want to diagnose the nodes in the node's destructor, then first you need to unlink each node firs

perl - Why doesn't LWP.pm work on Mac OSX? -

I have a Mac Book Pro, there is a Pearl in it. I have a script that contains it. used LWP; HTTP :: Request :: Use common qw {POST}; HTML :: Use Forms; I ran the LWP (twice as a normal user once in the form of a normal user) perl -MCPAN -e 'shell' / p> Install Bundle :: Install LWP HTML :: Tree Installation HTML :: Form WARNING: HTML :: format Can not be installed, do not know what this is. It says that two dependencies are missing, but when I establish them, it says that they have already done it ...? When I run the script, I receive this error: @incom is not included in LWPMM (@INC: / opt / local / lib / perl5 / site_perl / 5.16 3 / Darwin-thread-multi-to level / opty / local / lib / parlly5 / site_perl / 5.16.3 /opt/local/lib/perl5/vendor_perl/5.16.3 / darwin-thread-multi-2level / optim / local / lib / perl5 / vendor_perl / 5.16.3 /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/opt/local/lib/perl5 /5.16.3 / opt / local / lib / perl5 /

r - Any way to label points in pair plots? -

I have set up a small data, which I am planning to plots with a pair. I have some enough data points that I want to add text labels to each point. Is there any way to do this? I have seen some examples of color coding, but in my dataframe, I have a lot of text labels from one column. For the example given below I have an RR, position. I will tell about C, and Prep and thank you the numbers labeled with Hurricane! example & lt; - Structure (list (Storm = structure (C (1 L, 10 L, 12 L, 13 L, 15 L, 16 L, 2 L, 3 L, 4 L, 5 L, 6 L, 7 L, 8 L, 9 L), .Label = C ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10" "11 "," 12 "," 13 "," 14 "," 15 "," 16 "), class =" factor ") status. cm = c (-50.1260416666667, -11.5458333333333, -11.4005208333333, -13.303125, -8.91302083333333 , -8.9984375, -20.0125, -18.766666666666, -3

c++ - void *p...; if (p > 0) .... Is this undefined behavior? -

After a compiler upgrade I received a new warning message. WARNING: Command to compare pointer with integer zero [[VIDEO] if (inx> gt; 0) An indicator that comes out is usually I expect this old code to be 0 or less. It has got me to think about signed and unsigned values ​​and possible risk. Some research shows: < It suggests that an address (returned by malloc) can never be zero which is my old copy of standard. 4.10 pointer conversion 1 single tap indicator constant is an integral static expression (5.1 9) integer type property which evaluates zero A private std :: nullptr_t type or a null pointer constant can be changed into an indicator type; The result is the empty indicator value of that type and separates the object or pointer from the other type of function into the work type. This type of conversion is called a zero-pointer conversion. Compare two similar types of null pointer values. A null pointer constant is an indicator of conv

sitecore - Using IoC container in a multi-site environment -

I am setting up an architecture for a new project. For this project, we will be using Sitecore 7 Using CMS. As you know, Sitcom supports multi-site environments. This means that the 1 IIS example can be used for multiple sites because the cyclor resolves them to use the right code and content. I will have the following hierarchy for this project: Website B p> We should be able to add as many sites as we want. Every site has data, business and presentation levels. I also want to use IOC containers such as Castle Windsor , Ninject or Integration . I want a generic container / colonel for the core and then I want to be able to register the class for specific sites. Therefore, the category I register for Website A should not be resolved for the unity in website B I think that you can make baby containers to me site Context Contact There is no good way to force the child to apply to use the container while completing a certain requirement. Ninject Ninject

java - Is it good practice to use AtomicInteger as a substitute for mutable Integer? -

I have the following scenario: This is a simple form of code that I'm showing here to explain my concern I: Public Zero Columns () {Atomic integer howohonobbs = NewElectricIntergrader (0); AtomicInteger howManyEvens = New AtomicInteger (0); loopthrough (100, howManyOdds, howManyEvens); System.out.println (howManyOdds.get () + "" + howManyEvens.get ()); } Private Zero Loopthu (Int counter, AtomicIntergeor howManyOdds, AtomicInteger howManyEvens) {for (int i = 1; i & lt; = counter; i ++) {if (M = 2 == 0) howManyEvens.get and Add (1) ; And how many people are there? Add and Add (1); }} I know that this can be done by int [] but it looks strange. Is it a good option for a variable integer in atomic integers in such cases? If not then why? I do not think this is a good idea: in reference AtomicInteger < Using / code> is not naturally concurrent, the reader is misleading. Using an array is not a good idea, even if it works technically well. The pro

sql server - Multiple shared datasets in different report projects -

I have a database called CommonDB. I have created a shared data set from this database in one of my report projects. The report needs to include the same shared data set in the project. Ideally this would be good if I could point it to the test site in the bid and develop my report on the basis of the context. I was thinking that there is a way to do this without adding existing data sets (as I was hoping to keep the code base, so I do not have to update it in different projects ). I know that you can also add an existing data set from the URL, but it defeats the purpose because it only downloads one report in my report solution and it is not synced. Any thoughts? Thank you :) This scenario is not supported by BIDS / Visual Studio. It gets spoiled: if you use more than one project on the same server in the same shared dataset folder, then they try to reuse each other shared dataset definitions at runtime Will be the latest posted shared dataset definition will win Ther

jquery mobile - JQM - How to use space under thumbnail in listview -

I am using a Jquery mobile listview with a thumbnail, within this list view, there will be another list view Uses thumbnails from and it is also set as inset (external list view is not inset) The code that I worked fine but I want to be able to use the location Under the thumbnail in the first list view, so that my internal list is visible Width is width of the screen. Here I have JSFDell and you can see what I am trying to get: And the code from JSFiddle is as follows: < / p> & lt; Ul data-roll = "list view" data-inset = "true" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; img src = "http://www.addict.co.uk/images/products/verylarge/IRON_MAN_FACE_OF_IRON_TEE_1359634428_ADMM111J_260_3.jpg" /> & Lt; H2 & gt; Broken Bell & lt; / H2 & gt; & Lt; P & gt; Broken Bell & lt; / P & gt; & Lt; / A & gt; & Lt; / li & gt; & Lt; Li & gt; & Lt; A

javascript - Pause and change current frame of CSS3 animation? -

Is it possible to change the current frame of CSS3 animation after using it (jQuery or Vanilla JS)? How can I do this? More specifically, I am thinking about the slidebar which can change the current frame ... A writes a good post on Iime Vidas but there is still a problem with CSS3 on the old IE. And Bela who works: .pause {-webkit-animation-play-state: paused; -moz- State of animation play: paused; State of O-Animation Play: Paused; State of animation play: paused; }

java - How to compare array elements that are not parrallel while looping through the lines of a text file? -

I'm stuck with this argument. I have two text files that read programs, but I can not compare it to each other in the following way: The first text file looks like this: 1,01 / 04/14, APO, 14: 47: 53, 2,01 / 04/14, APO, 14: 48: 08, 3, 01/04/14, APO, 14: 48: 25, 7, 01/04/14, APO, 14: 53: 50, The second text file looks like this: 1,01 / 04/14 , apo, 14: 47: 53, 2,01 / 04/14, APO, 14: 48: 08, 4, 01/04/14, APO, 14: 48: 25, 701 / 04/14, APO , 14: 53: 50, each line of text from each file The array is stored. I want to grab the first line of the first text file, the first array of the first line, which is "1" and compares the first array element of each row in the second file. Then grab the first array element of the second row of the first text file, which is "2" and compares the first array element of each row on the second text file. I have done this so far: while ((TKP = tkpbr.readLine ()) = Null & amp; (tkn = tknbr.readLine ()) = Null) {

glsl - How does OpenGL interpolate varying variables on the fragment shader even if they are only set three times on the vertex shader? -

Since the top Shinde is run once per head (3 times the mean in the triangle), then how to calculate the variable variables for each Is the piece, if it is assigned (for example) only three times? Piece Sha ader: Exact Medium Pommel Float; VC4 v_Color different; Zero main () {gl_FragColor = v_Color; } Vertex shader: attribute vec4 a_Position; Attribute vec4 a_Color; VC4 v_Color different; Zero main () {v_Color = a_Color; gl_Position = a_Position; } So, the question is, how does this system show how variable v_Color is calculated on each segment, because this shader is only three times (in a triangle) ) Provides v_Color. All outputs of the peak shider are at the top when you enter v_Color If set, then it sets to the current top. When the piece shader runs, it reads the v_Color value for each head in primitive and intervals between them, depending on the location of the piece.

javascript - Non-scrolling image needs relatively placed trigger and brake -

here ... ... I have a non- Scrolling Advertisement This works very well in the right-hand column, but I need some more changes. First of all, the stop-scrolling action begins with a full pixel amount from the top of the page, instead, I need an action from the first one, starting with a full pixel, in which " relProd "ID. I do not know how to specify in javascript. Secondly, I need to start scrawling over a certain pixel amount above the orange ad in the lower part of the picture. (In other words, it needs a "break" at a certain point, it does not cover orange ads.) Can anyone help me? I searched everywhere for answers. I wish I knew more JavaScript Thank you! I think it would be best that you read it so that you can position an element on the screen Then you can set a function onscroll which will scroll up / down every time a user scrolls something like this: window.onscroll = function (e) {If (in this case) {// do this} else if (in this ca

permissions - Difference between g+w and 775 linux -

Sorry if this is a very simple question, then it is trying to read all the stuff. I know that there may be a difference in reading and writing, so I anticipate specifying the question, should include a 770 chmod and allow more for the owner and the group. Have the group been given in writing specifically with G + W? How about chmod 2775? I'm reading about this and do not believe what 2 adds. I saw setuide and accessories, but if the owner: the group is already the right owner: the group and you change in 775, 2775 what is adding? Already exists on LS-L, currently Drockswax-X exists, but users of a group can not write in a folder? Does this sound about right? The numerical and the character's way of giving the parameter generates the same result is numeric, and I use it I use it because I use it, whatever is comfortable for you, use it. Do not allow special perms (such as sigs, sgid), unless you have a specific reason to do so. We can rarely see anything except 3

google play game realtime multiplayer how to get quickmatch player's name? -

I am trying to use Google APIs to create my real-time multiplayer game I saw that every time the player " Play with each other using the "random match" option, their IDs are different from their actual Google IDs ... is their actual Google ID one way to get a random match and do not use these funny IDs? As far as I've found you can not do it for automatic matching. <, However, to protect the unknown, only players who were included in the room through automatic matching will have only one participant ID (and no player id). However, if you have sent the person's name as a message to another device - this can be an option

Javascript constructor behaviour -

I have a question regarding the JS constructor function. I have the following code: var PersonConstructorFunction = function (first name, last name, gender) {this.personFirstName = firstName; This.personListName = lastname; this.person gender = gender; this.personFullName = function () {return.personFirstName + "" + this.personListName; }; this.personGreeting = ceremony (person) {if (this.personGender == "male") {return "hello shri" + this.personFullName (); } And if (this.person gender == "female") {return "hello misses" + this.personFullName (); } And {return "Hello there!"; }}; }; var p = new public control functions ("Donald", "Duck", "Male"); P2 = new person control function ("Lola", "Bunny", "Women"); document.write (p2.personGreeting (p2) + ""); The result is very clear - - Hello Mrs. Lola Bunny - The question is: There are two equal obj

universe - How to create the NLS.LC.CTYPE -

How to create NLLSLC CETEPE file on Unix at Universe? I searched BasicRef and BasicExt but did not see any documents on it. NLSLC CTYEEEP is part of the NLS (National Language Support) package in File Universe. The manual you are looking for is: Rocket Universe NLS Guide Note that you will need to turn it on with NLS. There is no need to create a file if you are not using NLS.

mathematical optimization - Julia: How to find a list of the elements of a Composite Type -

Let's say we're using the rosenbrock function, created by John Mills White. Can anyone tell me what features / methods will I get from this function? [2] ^ 2) ^ 2A = Optimize (F, [2] ^ 2 = 100.0 * (x [2] - x [1] ^ 2) 0.0, 0.0]) Attributes (A) I am interested in grabbing customized values ​​to create a distribution primarily, prejudices, estimated standard errors (in data samples with estimated data) , Etc. to test for the values. OK, so I find out how White has created for the package. & gt; a.minimum 2-element Array {Float64,1}: 1.00001 1.00001 I have also found & gt; a.itures 60 However, I'm still not sure how to find the list of elements of the whole type

magento 1.8 recently viewed products on home page -

I want to see recently viewed products on the home page under the list of products / grids for a column view . I made many attempts, but did not achieve. I do not even want to use extensions, there is a solution or link. Try adding the following code to your page's content {{Widget type = "report / product_visit_view" page_sackage = "5" template = "report / widget / viewed / content / viewed_write.file"}}

ejb - @Resource(name="jms/StockQueue", type=javax.jms.Queue) @Stateless public class StockServiceBean{} JNDI lookup does not work -

I am trying to run an example from page 281 of the EJB 3.2 specification, but it creates an error. In short, I have made a queue JMS / StockQueue in Glassfish 4 and I can make a reference about it with @resources (Lookup = "Jms / Stockquay"). So my stateless bean myban successfully received the reference of the queue @Stateless Public Class MyBean {@Resource (lookup = "jms / stockQueue") Personal queue queue; Public zip send message () {System.out.println (queue); }} But the specification does not provide reference to the stock service service queue. @Resource (name = "jms / stockQueue", type = javax.jms.Queue.class) @Stateless public class StockServiceBean {public void processStockInfo () {try context initCtx = new InitialContext ( ); System.out.print (initCtx.lookup ("Java: Computer Application / env / jms / StockQueue")); } Hold (naming exceptions) {ex.printStackTrace (); Instead, it generates an error: SEVERE: javax.naming.Nam

sendmail - Google Apps: Not receiving email from same domain sent by PHP mail() -

To test the email sent to PHP mail () I have the following script named phpmail.php This sends 3 email addresses: david@domain.com (Google Apps) david@gmail.com ( Standard Gmail) david@otherdomain.com (Google Apps also) The script is hosting the website "domain.com" from the server. While the same message is received by Email 2. and 3. It is not by 1. This is a common domain where PHP was executed. Do I need to change the server to change it? Thank you. Edit: Using the instructions from MX is correctly setup I have another server using this setting and it is working correctly for some reason, it is not working with this server. It is believed that (fuzzy memory) had done this work some time ago. Resolve this problem by changing the network hostname (it was similar to Google Apps) For instructions:

sql - How do I "collapse" the following column data with TSQL in Access 2010? -

While conducting my research I have not found such a problem (in reference to Access 2010 and TSQL) Challenge: Currently, my data looks like State # 1 below. There are duplicate rows in state # 1, only the difference is that they have different fields / column values ​​for three special areas (offermembership, hassetting, quittieria). Wish: I would like to "collapse" the lines through "PlaceIDID" and "year", and for each line, one of the current number of Y within each field Will generate different numbers. I have prepared sample data to represent my desired result. My data currently looks like the following: state # 1 line | Year | Place ID | Offer Ambership | Hassiatic | Quitaria 001 2011 Park Yi 002 2011 Park YNN 003 2011 Library YYY 004 2011 Library NYN 005 2011 Museum YN 006 2011 Museum YYY 006 2011 Movie Theater YN 007 2012 Park YYY 008 2012 Park N Do I want to see my data: state # 2 line | Year | Place ID | Ambership "Y&q

regex - How to match digits in perl glob -

$ dir_path = (-d ("./abc/dir-\d.\d.\d" ))? ग्लोब ("। / abc / dir- \ d। \ d। \ d / my-dir *"): "my-dir-doesnot-exist"; क्या यह एक मान्य ग्लोब विकल्प है? क्या मैं डीआईआर पथ में संख्याओं से मिलान करने के लिए \ d का उपयोग कर सकता हूं? $ dir_path को मिलना चाहिए "./abc/dir-#.#.#/my-dir/some_dir_name" if "./abc/dir - #। #। # "मौजूद है (जहां # कोई अंक है) और" मेरे-डायर-कोई-मौजूद नहीं "स्ट्रिंग आप scalar संदर्भ में (लेकिन एक इटरेटर के रूप में नहीं) में glob के दोनों उदाहरणों को बुला रहे हैं जो बहुत गलत है उदाहरण के लिए, मेरी $ foo = glob ("a"); मेरी $ bar = ग्लोब ("a"); $ foo // "[undef]" कहना; # एक कहना $ बार // "[undef]"; # [अनफफ] ग्लोब भाषा रीजेक्स भाषा से बिल्कुल अलग है \ d काम नहीं करेगा, लेकिन [0123456789] होगा। my @dir_paths = glob ("। / Abc / dir- [0123456789] [0123456789] [0123456789] / मेरी-निर्देशिका * ")।। मर "कोई मैच नहीं!" अगर! @ डीर

java ee - Oracle Firstcup tutorial (firstcup-war) -

I am new to JavaE I got a tutorial firstcup from Oracle Java A page. I followed the dukes-age for tutorials and it works fine does not seem to be the tutorial for the first system running on my system. I am using Netbeans 8.0, Glassfish 4.0 and Windows 7 operating system. 1. I followed the instructions given and when I started the project, I found the first message I had not seen on the tutorial (firstcup-war). 2. After adding the glassfish server the project was not deployed to the server and I received these warnings and exceptions are in the form of a glassfish server: 2.1 WARNING: RAR5038: Unexpected exception exception while creating resource for the derby pool pool: javax.resource.spi.ResourceAllocationException: allocated connections Could not be used because: java.net.ConnectException: server with localhost on port 1527 Error in connecting to RT: Connect Warning: RAR5117: Connection pool [DerbyPool] failed to create / create connection due to: com.sun.appserv

android - ListFragment onListItemClick not firing on first click on returning from back click -

Click the listfragment and list item. The implementation of ADT templates for tabs with pagers is directly out. The catalog pops up with the default adapter and default simple_list_item_1 - so no button, checkbox, etc. to capture the click event. On returning from a description view, due to highlighting the item by clicking Next on the list view, but OnListenItemClick does not fire Click on the second fire and goes for detail this time in detail On seeing, it works on the first click. Next time it takes two more alternatives in that pattern. R.id.pager is the main activity viewpage from the original layout. In addition, I'm popping backstacks into an online revision (). I do not understand why why take 2 clicks every time Here the code is thanks! ContactListFragment Expands ListFragment {@Override Public View onCreateView (LayoutInflater Inflator, ViewGroup Container, Bundle savedInstanceState) {View contactsView = inflater.inflate (R.layout.fragment_contact_list, conta

SQL Server regular expression to find comma in middle of string -

मेरे पास ऐसा कोड स्निपेट है , @generalAgency_uniqueID, nvarchar (100), @ जोखिम रेखा के अन्तराल, nvarchar (100), @ rsk_transactionType, nvarchar (5), @ rsk_transactioneffectweightate, datetime मैं प्रत्येक लाइन के बीच में केवल अल्पविराम को स्पेस के साथ रिक्त स्थान के साथ बदलना चाहता हूँ नियमित अभिव्यक्ति। कृपया मदद करें। SQL सर्वर वास्तव में नहीं है नियमित अभिव्यक्ति की कार्यक्षमता को बदलते हैं यद्यपि आप इसे नकल करने की कोशिश कर सकते हैं, यहां एक अलग दृष्टिकोण है: कुछ असामान्य अनुक्रम के साथ ',' ' बदलें का चयन करें (प्रतिस्थापित करें (चेले, ', @', '*** काश मैं रेगेक्स पुनःस्थापित किया गया था ***'), ',', ''), '*** मैं जानना चाहता हूं कि रीपेक्स का स्थान ***' , ', @')

ruby - Rails CanCan - wrong number of arguments (0 for 2+) -

I have received this code: def editing @ shipp = ship.fund ( params [: id]) authorized! if can? : Make, @ship # unauthorized! if can? : Update, @ship # unauthorized! If not? : Update, @ship End And I'm getting this error: Error on logic / ships / 4 / Edit the wrong number of arguments (For 2 to 2) +) which is highlighting this line: authorize! if can? : Make, @ship I have tried a lot, but whatever we did earlier, which was just now: authorize! @ship And lack of rewriting of user system with roles I'm not sure how to solve it. This is my ability class: Class eligibility includes CanCan :: Ability def initializer (user) #if! User if user.try (: admin?) Can: manage, return: all Elsf! Users can: read, ship: can read, planets can be returned again: read, all: # scan: management, ship, user_id = & gt; User.id: can manage, ship. Ship Ship.try (: user) == User end end method two required The parameter is at least - verb and subject , so you

.net - VB would not accept these text string characters -

I am trying to find and replace this text string in a rich text box, String = "String =" & lt ;? Xml version = "1.0" encoding = "UTF-16"? & gt; However, I expect the end " . Thank you for your help. Avoid double quotes: OK, how do I tell about the answer: " xml version = "" 1.0 "" encoding = "" UTF-16 ""? ""

knockout.js - KnockoutJS computed is undefined -

I have a calculation of two integer based observations that I am trying to convert to a time bar. It appears that it should be very easy to see the documentation, but I am getting an unspecified: Undefined value from my computed value, if it is difficult to follow then any kind of help is highly appreciated. This is my JS: var routine = function (routine_name, minute, second, duration, rest, round) {this.routine_name = ko.protectedObservable (routine_name); This.minutes = to Protected (minutes) protected; This.seconds = ko.protectedObservable (sec); //this.duration = Co-Protected Obsessive (period); This.rest = to Protected (rest); this.rounds = to Protected Obsessive (Chakkar || 1); this.duration = ko.computed (function () {this return.minutes + ':' + this.Sseconds;}); } Var RoutineModel = Function (Routine) {var itself = this; Self.routine_id = ko.observable (); Self.routine_name = ko.observable (); //self.duration = ko.observable (); self.minutes = ko.observable (); I

search - Limiting top score results returned based on conditional (same value of a field) ElasticSearch Aggregations -

Is there any way to draw only the top 2 results based on _score for documents with the same value in a certain area? ? This filter will be like hit before bulging: {"_index": "myindex", "_score": 100, "_source": {"myfield1 "I have a twin", "name": "Fred"}}, {"_index": "myindex", "_score": 50, "_source": {"myfield1": "I have twins" " Name ":" George "}}, {" _index ":" myindex "," _score ": 10," _source ": {" myfield1 ":" I have a twin "," name ":" tom "}} After this filter / AGG, I want it ... removed the tame because my field 1 has the same value for the "name": "band"}} "," , But the lowest score. Doug lives because he has a different value for my field 1. {"_index"}: "myindex", "_scor

ios - KVO message sent to deallocated instance error. even if observer removed -

I need to locate the tableview content because I use KVO, and everything works perfectly . I also have a UIActivityViewController service in the same view controller. If I use the service from UIActiview controller and then after the sack, I pop the view controller, I get the follow-up error ... < Pre> * frame # 0: 0x0000000183071280 Core forwarding `___ forwarding ___ + 736 frame # 1: 0x0000000182f9108c CoreFoundation___forwarding_prep_0___ + 92 frames # 2: 0x0000000183b2e7d0 Foundation`NSKeyValuePushPendingNotificationPerThread + 340 Frame # 3: 0x0000000183b19068 Foundation`NSKeyValueWillChange + 532 frame # 4: 0x00000 00183b023a8 Foundation`- [NSObject (NSKeyValueObserverNotification) willChangeValueForKey:] 236 Frame # 5: 0x0000000183bc9148 Foundation`_NSSetPointValueAndNotify + 116 frame # 6: 0x00000001863126c0 UIKit`- [UIScrollView (UIScrollViewInternal) _adjustContentOffsetIfNecessary] 864 Frame # 7: 0x0000000186116a0c UIKit`- [UIScrollView ( UIScrollViewInternal _st

java - Getting test coverage results with Cobertura -

I am using Cobertura 2.3.0 to analyze my project for testing coverage, and give me a < / P> Error: The main square could not be found or could not be loaded. Source.sourceforge.cobertura.instrument.Main When I tried to execute cobertura-instrument.bat from the command line, I have seen this batch file and it is from% COBERTURA_HOME% / lib folder There are many JAR trying to load which does not exist. I have manually downloaded these jars but I am getting other strange errors. java.lang.IncompatibleClassChangeError: class net.sourceforge.cobertura.instrument.pass1.DetectIgnoredCodeClassVisitor is the interface org.objectweb.asm. As a class visitor super class Is it possible that this release was incorrectly updated? I do not see a way to do this work in any other way. Apart from this, does a work know the testing-coverage utility, possibly a separate version of Cobertura's work? I have tried Nounit and many others, but I have not got the kind of clean producti

c++ - Check for zeros horizontally across __m128i vector? -

I have several __ m128i vectors with 32-bit signed integers and I would like to check that Is any of the 4 integers zero? I understand how I can do "Total" multiple __M 128i but in the end I still have a __ M 128i will end with vector, which I need to check again horizontally. How do I do the last horizontal check for zero in the last vector? Edit I am using Intel Intrins, not inline assembly Do not do this. Avoid horizontal operations whenever possible; There is death for the display of vector codes. Instead, compare the vector to a vector of zero, then use the PMOVMSKB to get a mask in the GPR. If the mask is zero, at least the strings of your vector were zero: __ m128i yourVector; __m128i zero-void = _mm_set1_epi32 (0); If (_mm_movemask_epi8 (_mm_cmpeq_epi32 (yourVector, zero vector)) // Your vector has at least one lane zero.} If you want to receive SSE4.1 You can also use PTEST. Take the question at face value, if you really need to do a

Perl regex - store reference to regex captures in a variable -

Just wondering how this will work: $ my capture = qr / Perl pattern (. *) /; My string = "Pearl pattern is complex"; My $ print_it = "Printing Test: $ 1 \ n"; If ($ string = ~ m / $ capture /) {print $ print_it; } I tried to cite $ print_it in different ways (qw, qr, '', '"), but when I create pattern string and not set On runtime. Around other methods, I'm sure, but it would be convenient. EDIT: This is what I am trying to do. I want the user to provide an argument to format the input string. Like - - Format 1 Input String: "User = Usernames Resource_used_cput = 20: 00: 01 Resources_As_WithLine = 10: 00" Say I want to draw only one waletime or cputime and a flag-based user name from the command line. I was thinking of defining the set of formatting options like Usernames and CPU for username, 2 for user name and 2 for voltim. With 3 easy to do with brute force, and just define some if / again cases for match-up or match.

javascript - jQuery – Hide menu/sidebar when click in the body area -

I'm new to jQuery normally and am trying to work in this sidebar in general and coding in general. When you click on the INFO link, a sidebar opens just as you can just close the sidebar by clicking on the X in the corner, but whenever you click in the body area (but when you click in the sidebar area Do not) still want to be able to close the sidebar. I got to work this way, but then I was not able to open any of my links to see my projects (only another project, Frankenstein Ebook, now has a working link). Also, why are you able to click on full width rather than X instead of X to close the sidebar? I have seen a lot of problems here, but never enough to match it very well for mine. And here's a JSFiddle: My HTML: / p> & lt; Div class = "wrap" & gt; & Lt; -! Sidebar - & gt; & Lt ;! - Info panel - & gt; & Lt; Div class = "infopanel" & gt; & Lt; Nav class = "closeBtn" & gt; & Lt; A href