Posts

Showing posts from February, 2012

java - should play 2 xx App have both build.sbt and build.scala -

I am trying to go through a tutorial that was made properly using play 1xx but I I am using play.2.3.5. The old project has been created in the project / folder. The new game 2.3.5 is the only build.sbt in the root of the project. When I try to create a new file build.scale in the project subdirectory, I get errors. The question is how to create a file for creating my project without disturbing the build of the old project's build. Be successful. build.scala - Val App Dependency = Sik (JavaCor, JavaEdbc, Java Eben, "ISBL"% "MySQL-Connector-Java"% "5.1. 18 ") This is the setting in my build.bbt - build.sbt - name: =" "wefarm "" " version: =" 1.0-SNAPSHOT " idle val root = (file (". "). EnablePlugins (PlayJava) ScalaVersion: = "2.11.1" LibraryDependensis ++ = Sik (JavaEdbC, Java Eben, Cache, JavaWise) Thank you very much. Just move that dependency to Library Code of ...

c# - Regex not working to capture html tags -

इस सवाल का पहले से ही एक उत्तर है: 35 उत्तर मेरे पास एक नियमित अभिव्यक्ति है स्ट्रिंग से एचटीएमएल टैग्स को कैप्चर करें यह बहुत अच्छी तरह से काम करता है लेकिन मुझे कोई ऐसा मामला मिल गया है कि यह काम नहीं कर रहा है। जब मेरे पास टैग "attribute-xxxx-xxxx" विशेषता द्वारा टैग किया जाता है, तो टैग को अनदेखा कर दिया जाता है। अगर मैं एक ही विशेषता को अंतिम स्थिति में ले जाता हूं, तो यह काम करता है। अगर मैं शब्द से "-" को निकाल देता हूं, तो यह काम करता है। मेरी नियमित अभिव्यक्ति में कुछ गुम है, लेकिन मैं इसे ठीक करने का समाधान नहीं मिल पा रहा हूं। यहां एक उदाहरण है जो काम करता है: & lt; td & gt; जाओ? & Lt; a href = "$ VAR" लक्ष्य = "_ रिक्त" डेटा-लिंक-श्रेणी = "बिल्ली" डेटा-लिंक-नाम = "bla" & gt; क्लिक करें & lt; / a & gt; & lt; / td & gt; & LT; टीडी & gt; जाओ? & Lt; a datalinkcategory = "cat" href = "$ VAR" लक्ष्य = "_ रिक्त" डेटा-लिंक-नाम ...

variables - Simple PHP url Help needed -

I'm new to php, I need some help .php I think that when a person will automatically add that page to a number or at the end of any URL like www.abc.com/index.php - - & Gt; Www.abc.com/index.php?abc or? 132 Whenever that index page is refreshed, it should finally get any number or any variable Try it out: & lt ;? Php if (! Isset ($ _GET ["123"]) {header ("location:" $ _SERVER ["PHP_SELF"]. "? 123"); }

embedded - How to prepare new SD card for iMX6 sabre lite board for running linux -

I recently bought the i.mx6 subtlelet board and I'm learning colonel cross compilation and board loud. U-Boot is already in Flash and it is configured to load the kernel from the SD card. I tried to use these images on the SD card using the DD, after some polished image and board boot successfully successfully. Now, I want to know how to prepare this entire SD card with the kernel and route. I am able to create kernel images using the following steps described here: ~ / $ git clone GIT: //github.com/boundarydevices/linux- Imx6.git ~ / $ cd linux-imx6 ~ / linux-imx6 $ PATH = / opt / freescale / usr / local / gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12 / fsl-linaro-toolchain / bin /: $ Path ~ / linux-imx6 $ export ARCH = arm ~ / linux-imx6 $ export CROSS_COMPILE = arm-none-linux-gnueabi- ~ / linux-imx6 $ git checkout orig / border-imx-3.0.35_1.1.0 \ -b range-imx-3.0.35_1.1.0 ~ / linux-imx6 $ nitrogen 6x_defconfig ~ / linux-imx6 $ creates UImage modules Now, these are...

css - Media queries with sass -

I'm getting errors in compiling my sauce files through Media Query Mixes. I followed many tutorials, but it will not compile I Sass 3.3.0.alpha.67 (bleeding edge) . This is my code / * finally included * / @ michigan mobile-only {@ media (max-width: 320px ) {@content; }} / * This is where the rest of my luggage * / body {@ in it only mobile-display {display: none; }} I am compiling and viewing for changes using Scout. Do I need to do something else? No longer seems an issue modified code in coding Explained. @missine start-desktop-size {@ media (minimum-width: 1024px) {@content; }} Body {@ included- desktop-size {background: red; }}

c - writing values in a text file, getting run time check error -

I am programming in Windows 7, using MS Visual C ++ 2010. I have an API that gives me access to such error codes: Pre> I need to write this code, a text file, here's how I proceeded: four buffers [10]; Strcpy (Buff, lResult.GetCodeString ()); PFile_display = fopen ("D: \\ ABCD \\ myfile_display.txt", "a +"); Fputs ("\ n back error is vlaue", pFile_display); Fillit (fond, size (four), size (fond), pfile_display); Is there a better way to do this, because I'm getting a runtime check error and I suspect that I'm doing something wrong here. Yes, this is a different way of doing this. You do not know how long an error message is, but you are reserved cell for only 10 characters. This is not much. There is no need to copy the message in another buffer before typing in the file. Use sizeof to calculate the length of the string is broken. There is no need to use a lower-level function to write binary data (i.e., ...

c - fopen returns null and perror prints invalid argument -

I have created a file called "test" but I am unable to use it FOPN. Here's the code - Add # & lt; Stdio.h & gt; Int main () {FILE * fp; Fp = fopen ("test.txt", "r"); If (fp == NULL) {perror ("Error:"); } Fclose (fpose); Return 0; } When I run the code above, I get the following output: Error: invalid argument What could be the reason? When does the Madden "invalid logic" error message? Take a look at this: EINVAL Fopen (), The method provided for fdopen (), or FreeOpen () was invalid. Perhaps test.txt is not readable.

hadoop - The best way to filter large data sets -

I have a question about how to filter the records related to the large data set of financial transactions. We use the Oracle 11G database and one of the requirements is to produce different end reports with all types of criteria. Trade_matetight 18M rows, 10 GB Trade_Echemonics 18M rows, 15 GB business functions 18M rows, 11GB trade_trade_avity_link 18m rows, 3 GB / Code> One of our reports is now taking ages (> 5 hours) to run. The underlying process has been adapted from time to time but keep adding new criteria so that we can start fighting again. This process is very standard - join all the tables and apply a host where clause (20 on final count). I was thinking that I have a big problem which is enough to get rid of big data solutions every few months in this optimize-the-query game. In any case, the volumes are only going up. I've read a bit about Hadoop + HBase, Cassandra, Apache Pig, but being very new at this place, the best way to move forward, is a ...

VBA - Error handling with multiple forms -

There are many forms in my application that say to each other, with the error handling I ran into a problem and as posted here To make the project very large, I created the smallest subset of the code that still reproduces the problem. raiseError - The function that just raises an error file mainForm - a form with a button - click on addClientForm addClientForm - which generates an error raiseError via showMainForm - a collar that is MainForm shows the code is really simple, module error Public sub raiseError () Call Err.Raise (2048, "errorSource", "errorDescription") Last sub MainForm Personal sub cbAddClientForm_Click () Dim xAddClientForm as new addClientForm: xAddClientForm.Show End Sub AddClientForm Private sub UserForm_Initialize () call raiseError end The new mainForm in the form of a public sub-collar () or GoTo ErrorHandler DM xMainForm: call xMainForm.Show caller ErrorExit: Sub Out Error Handler:...

php - Laravel HTTP basic authentication not working -

I am creating an API in Laravel and I am trying to use HTTP Basic Authentication. I created a user with an email / password combination of user@gmail.com: testpass . I'm reaching an end point at the following URL for which authentication is required: https: //user@gmail.com: testpass@myapp.local/users/2 When I add the auth.basic route filter on this route, I can successfully authenticate and access the user's details through the Auth class, although this is a The API is, therefore I want to use Stateless HTTP Basic authentication, therefore I wrote my own filter: // Once using our own filter filter and returning a consistent API response, the root :: filter ('basic.once', function ( ) {$ Result = Auth :: onceBasic (); if ($ result-> GetStatusCode () === 401) {// Unauthorized, return our own answer Returns: Answer: json (['message' => Bad Credentials'], ConfiG :: Receive ('status panic unauthorized'));} return result;}); No ma...

c# - XmlTextReader - XML reading old content after file update -

इसलिए मैं " Updater.exe " का प्रयोग कर रहा हूं जो एक्सएमएल फ़ाइल को मेरे वेबसर्वर पर रखें अपडेटर जांचता है कि यदि प्रोग्राम का एक नया संस्करण उपलब्ध है, तो स्थानान्तरण को नई फ़ाइल (पुराने को बदलकर) और उसे चलाता है। (फ़ाइल का नाम बेतरतीब है क्योंकि मैं इसे सीधे चलाने के लिए नहीं चाहता हूं, उसे अपॉडरेटर (जो इसे p.StartInfo.UseShellExecute = false;) की मदद से चलाता है) को छोड़ना होगा। I अब एक बहुत ही अजीब "बग" का सामना करना पड़ा है या मुझे इसे कैसे कॉल करना चाहिए। चलिए कहते हैं कि मैं 1 सप्ताह के बाद एक नया संस्करण बना सकता हूं। मैं आवेदन की असेंब्ली जानकारी और XML फ़ाइल संस्करण को भी अद्यतन करता हूं। अब जब मैं UPDATER.exe चलाता हूं, तो वह नया नवीनीकृत XML सामग्री नहीं देखता है, उसे बताए हुए एक नया संस्करण उपलब्ध है। जैसा कि मैं फ़ाइल गर्त को अपने वेब ब्राउजर की जांच करना चाहता था, वह यह भी ओल्ड सामग्री (पिछले संस्करण) का अर्थ दिखा रहा था, जिसका मतलब है कि आवेदन DATE तक गलत है। के बाद मैं "ताज़ा करें" बटन दबाया क्रोम, मैंने अद्यतन किय...

configuration - Apache Solr - which script launched? -

I'm taking a website, and I'm reading the crontab which I think: 0 * / 2 * * * Curl http://127.0.0.1:8006/se/index-places/ 0 * / 6 * * * Curl http://127.0.0.1:8006/searchengine/index-places / So I understand every 2 and 6 hours, from "/ index-location" & amp; This is called "Searchengine / index-places", listening on a Jetty / SLR installation 8006 port. But somewhere I can not find which script is "from / index-location" or "searchengine / index-places" .... WTF ?? How to find out the locations described by these URLs? I went to all config files, and I do not have any clue: ((

How do I *prevent* "weak" linking of static library symbols in Visual-C++? -

जहाँ तक मेरा व्यावहारिक परीक्षण हो, जब एक स्थिर पुस्तकालय ( .lib ) को अपने निष्पादन योग्य दृश्य-सी ++ में , यदि कोई निष्पादन योग्य .obj फ़ाइल स्थिर पुस्तकालय में एक को डुप्लिकेट प्रतीक निर्धारित करती है, तो स्थिर लाइब्रेरी में प्रतीक चुपचाप को नजरअंदाज कर दिया जाएगा । मैं यह नहीं कह सकता कि मैंने इसे जबकि, लेकिन मुझे आश्चर्य होगा कि यदि वे इस व्यवहार को बदलते हैं (विशेष रूप से .obj परिभाषित प्रतीकों .lib फ़ाइलों में प्रतीकों को ओवरराइड करते हैं)। वीएस 2010 आरसी के साथ एक संक्षिप्त परीक्षण यह इंगित करता है कि मैंने जो भी वर्णन किया है वह अभी भी है (मुझे) अब सबसे पहले, मुझे गलत साबित करना अच्छा लगेगा, लेकिन कम से कम एक नियमित सी ++ फ़ंक्शन के लिए ऐसा लगता है जिस तरह से हो रहा है। दूसरा, क्या यह रोकने का कोई तरीका है? मेरे पास एक फ़ंक्शन है, जब किसी भी द्विआधारी लिंक को इस फ़ंक्शन के साथ स्थिर लाइब्रेरी से जोड़ा जाता है, तो मैं यह पुष्टि करना चाहूंगा कि स्थिर लाइब्रेरी का संस्करण है वास्तव में प्रयोग किया जाता है, और कुछ बचे हुए या अन्य में परियोजना। (ध्यान दें: प्रश्...

c - diStorm library, disassemble CALL instruction -

Image
डायस्टॉर्म लाइब्रेरी () 0x86 अनुदेश डिस्मैंज करता है e813000000 जैसा कॉल 0x20 जबकि यह होना चाहिए 0x13 कॉल करें क्या यह कोई बग है या मैं कुछ गलत समझता हूं? अतिरिक्त जानकारी द्विआधारी डेटा (ऑपोडोड्स) को डायस्टम के Distorm_decode है const अहस्ताक्षरित चार बिन [] = {0x55, 0x8b, 0xec, 0xE8, 0x92, 0xF8, 0xFF, 0xFF, 0xE8, 0x13, 00,00,00} ; स्क्रीनशॉट संलग्न है चूंकि आपने मूल निर्देश बाइट प्रदान किया था, इसलिए हाथ से कोई असर का हिस्सा है: ऑफसेट 0: 55 8b ईसी / इन 3 बाइट्स में दिलचस्पी नहीं है ऑफ़सेट 3: E8 92 एफ 8 एफएफ एफएफ / रिश्तेदार कॉल निर्देश ऑफसेट 8: ई 8 13 00 00 00 // एक अन्य रिलेशियल कॉल ऑड्रेस ऑफसेट 13: ... जोड़ना 00 00 00 13 अगले निर्देश ( ऑफसेट 13 ) के पते पर आपको गंतव्य पता देता है, जो कि 0x20 है।

c# method Math.IEEERemainder(x,y) equivalent in matlab? -

A method exists in matlab equal to C # method Math.IEEERemainder . Information about this method can be found here: According to the IEEERemainder specifications: should be 3/2-1 Although the Matlab method returns mod (3,2) return 1 and rim (3,2) also 1. The correct mathematical function will be xy * round (x / y) . This expression and monastery The only difference between IEEERemainder is when the value of x / y is fine between two argers. In that case, the round (x / y) is far from zero, while the writing function also contains Math.IEEERemainder round integer. The function may look like this: out of function = IEEERemainder (x, y) xy * Round (x / y) end

linux - Tracker-extract and Tracker-store processes consuming huge Amount of RAM -

I am using ARC Linux, kernel 3.16. In the last one week, my two processes have a lot of RAM in the tracker-extracts and tracker-storage, it causes system hanging once every 2 hours. 300 MB and Tracker-Store is taking 2 GB RAM. (Total RAM 3.8 GB) I want to know what these tracker procedures are and what is their work, if I kill them then does it affect the performance of the system? What are the methods to kill them both permanently so that I can get rid of these two processes? Please help me. Use pkgfile to know the package related to these files: pkgfile tracker-extract Result: additional / tracker A quick package search, using pacman ( pacman -sss tracker ), shows: additional / tracker 1.2.3-1 (gnome) All-In-One Indexer, Search Tool and Metadata Database Since I am not a user of GNOME, Can not comment on the ability of the person who provides this package. But you can always try to delete the package and see what happens: pacman-rs tra...

Is there a way to subclass a generator in Python 3? -

Clearly, I thought I'd try it, just in case: Def sulfin (input = none): ... yield ... gpt = type (somgin ()) class subdivision (gtepe): def best_function_ass (): ... sorry The response to Python was quite unfavorable: "Type error: type generator is not an acceptable base type" will be in the form of fate, this is a The problem is meLook, I was thinking that maybe it would happen to play with a fun base type, if I gave it a chance. Imagine my surprise! ..and frustration is there any way to see things in the way of the omnipotent path? This is definitely a binary question outside, so please do not say that it is not possible that you can not think immediately in a way Python (especially PE3) is very flexible. Of course, if you have proof that why not ("should not be") is not the base type (P3), then I do Want to see and understand You can not make a generator subclass using this yield A function is defined as, but you can use it i...

c++ - How does memcpy work on pointers to arrays? -

मैं 2 arrays की तरह शुरू करता हूँ: x = (डबल *) malloc (sizeof (डबल) * एन); एक्सप्लस 1 = (डबल *) मॉलोक (आकारफ (डबल) * n); सबसे पहले, मैं निश्चित रूप से नहीं जानता कि एक्स या एक्सप्लस 1 अब क्या है, जो कि एक द्विपक्षीय पूर्ण सरणी के लिए एक संकेतक है, या संकेतों से भरा डैबल के लिए एक सरणी? : / उस प्रश्न का उत्तर शायद इस पर प्रभाव डालता है, लेकिन अगर मैं इन विभिन्न कार्यों को करता हूं, तो मैं इसे जो करना चाहता हूं, वह नहीं कर सकता, जो सिर्फ एक्सप्लस 1 से एक्स के मूल्यों को कॉपी करना है। एक्सप्लस 1 और एक्स प्रत्येक इंडेक्स के लिए अलग-अलग मान रखते हैं, क्योंकि लूप के लिए सरल होने के बाद वांछित प्रभाव प्राप्त होता है: के लिए (int i = 0; i & lt; n; i ++) {x [ आई] = एक्सप्लस 1 [आई]; } लेकिन इसका उपयोग ... memcpy (x, xPlus1, sizeof (x)); मेम्क्पी (एक्स, एंड एक्सप्लस 1, आकारफ (एक्स)); अगर मैं इनमें से किसी एक के बाद एक ही फ़ंक्शन में एक्स का उपयोग करता हूं, तो एक्स अपरिवर्तित है, इसे पुराने मान रखा गया है। memcpy (& amp; x, & amp; ; एक्सप्लस 1, आकारफ (एक्स));...

php - Querying a MySQL range using LIKE -

I have a ref field in a mysql table, which is 0-0 less than -3,267 -201411,041,356 ' The first part (0-0-in-3267-) varies in length and values ​​and the second part (201411041356) is a date / time, which refers to a composition date / time. This code, which is used for this code, is checked to see if it comes within a certain date / time period, such as 201409010000 and 201508312359 Normally I can just blast the data and then measure it, but for this example it will be very clunky so what do I do, in my query likes Function, such as LIKE '% 201411041356' but I can call it & gt; and & lt; symbols, therefore full query SELECT * FROM my_table WHERE such as Riff Laxx & gt; '% 201409010000' and like the referee & lt; '% 201508312359' Any idea would be most welcome! BTW, it has always been the way to store this data and there are lots of it, so changing it is not an option. Can you use between a substrings, something like t...

mongodb - Mongo filter results by distinct field -

I use this rugby driver to mow: I have many documents in such a collection Are: {"_productId" => 10 ....} {"_productId" => 10 ....} {"_productId" => 12 ....} What does it mean to get all the documents with a specific "_productId", I mean I want to take the first and last collection items in this example. @ db ['archive']. Specific ('_ Product ID')

Highcharts displaying decimals on yearly xAxis -

HTML> My xxis is appearing with decades of width depending on the screen, so if it is small (2012, 2013,2014 ...) But when I increase the width of the screen, it will be displayed (2012, 2012.1, 2012.2, 2012.3 ...) and based on decimal place width (2012, 2012.5, 2013 ...) will change. I know that it has some effect on the tick pixel interferol, but I do not know which value to use, I tried: xAxis: {Tick pixel interval: 100, / 10 and 1 and 1000 also tried a redundant crosshair: true} What can I do, so the chart is only full year (2012, 2013) , 2014) does not display the size of the screen and any specific width that gives the chart? "post-text" itemprop = "text"> Tick pixel intervals will provide a setting of how far ticking - this will not help in your situation, make sure That problem persists. What you want is just TickInternval , and set it to 1, because your year is in the pay scale of 1: If you do not always have an increment...

apache - Setting up Programm-o locally -

After reading the installation guide for the program, I was wondering how I am doing two steps locally and know how to install it without hosting it. An online server? Just enter your code in the htdocs directory (inside xampp) Instalation Directory). Then you will be able to execute your code by typing 'localhost' in your browser. Or if you want to use another domain instead of a local host, you have to edit your host file. Windows7 is located in the host file: % systemroot% \ system32 \ drivers \ etc For example, my host file : 127.0.0.1 domain.com I can access my code instead by typing 'domain.com' for example. 'Local Host'

java - I keep getting out of bounds error how do i fix this? -

स्कैनर स्कैन = नया स्कैनर (System.in); System.out.println ("एक शब्द दर्ज करें"); स्ट्रिंग रेखा = स्कैन। एनएक्सटाइन (); स्ट्रिंग डुबकी = ""; Int a = line.length (); Int x = 0; Int y = 0; जबकि (y & lt; ए) {int b = line.indexOf (""); If (line.substring (x, x + 1) .equals ("a") || line.substring (x, x + 1) .equals ("e") || लाइन.sबस्ट्रिंग (x, x + 1) .equals ("i") = line.substring (x, x + 1) .equals ("o") = line.substring (x, x + 1) .equals ("u")) {डॉट = लाइन । एसबस्ट्रिंग (एक्स, बी -1); } Else {pig = line.substring (b - 1, x + 2) + लाइन.चारअट (x); } लाइन = लाइन.substring (b + 1); y ++; } System.out.println (सुअर); मुझे लगता है कि शब्दों को किसी भी वाक्य में डुबकी लैटिन में परिवर्तित करने के लिए यदि शब्द स्वर से शुरू होता है तो बस अंत में रास्ता जोड़ते हैं यदि यह एक व्यंजन से शुरू होता है तो पहला अक्षर पीछे और जोड़ रास्ता स्टैकट्र्रेस: ​​ java.lang.StringIndexOutOfBoundsException: स्ट्रिंग इंडेक...

subnet - Subnetting how many networks can be contained -

OK, I have a submitted question, I know the answer, but I do not know why this is the correct answer : How many / 16 networks can be included in the A / 8 network? Answer 2 ^ (8), but why? Any help is appreciated :) An IPv4 address is 32 bit if the network takes 8 bits , Then it leaves 24 bits for the subnet and address. Your subnet size is 16 bits (for the host) that leaves 8 bits for the number of subnet, this is the reason for this subnet number of 2 ^ 8 And for the number of addresses is 2 ^ 16. 11111111.11111111.00000000.00000000 Network - Subnet - Addresses ------- -

syntax - Assigning partner values for paired rows in SPSS -

Imagine a dataset with participants' pairs ("duets" 1-10), each of which has a unique identifier ("Person" 1 side 2). Within each couple, each of these has a unique value on some variables, it is called "actor". I want to write a script that is considered "actor" for the person and it is called "companion" Puts in the pair. Thus, the value of each person (line) is their own ("actor") and their partner ("partner") is the value. The method I have tried has included reconstruction: sorted by doubles. CaseStovars / ID = Couple / Groupb = variable Computer Partner 1 = Actor 2 COMPUTE partner = 2 actors. Executed. VARSTOCASES / person to person 1 person 2 / actor to actress 1 actor. Actor 2 / Partner 1 Partner 2 to Partner 2 / Index = Index 1 (2) / KEP = Couple / Null = KEP Now it's complete for small, fictional datasets made for me However, I want to be able to handle more variables in the script, with...

R: new list with relationships -

Image
मुझे निम्न सूची मिल गई है: कोप्पल्स [[1] ] [1] 3634 3635 [[2]] [1] 5110 5200 [[3]] [1] 5110 5951 [[4]] [1 ] 5200 5951 [5]] [1] 5535 26398 [[6]] [1] 5699 733 9 सूची के प्रत्येक तत्व के लिए, इसका मतलब है कि वे एक दूसरे के साथ संबंध में हैं । तो "3634" और "3635" प्रत्येक दूसरे के साथ संबंध में हैं। इसलिए [[2]] , [[3]] का परिणाम और [[4]] यह है कि "5200", "5951" और "5110" एक दूसरे के साथ संबंध में हैं। तो अब मुझे एक नई सूची प्राप्त करना है, जहां मुझे ऊपर की सूची की तरह तीन अलग-अलग तत्वों के बजाय 5200 5951 5110 जैसे कोई तत्व मिलता है। लेकिन [[1]] , जैसे तत्व [[5]] और [[6]] भी सूची में होना चाहिए। जिस सूची में मैंने यहां उपयोग किया है वह मूल सूची का एक छोटा सा हिस्सा है जिसका उपयोग मैं करता हूं इसलिए कोड को बड़ी सूचियों के लिए भी काम करना है। dput (कोप्पल्स) सूची (सी (3634, 3635), सी (5110, 5200), सी (5110, 5951), सी ( सी (9 5, 104 9 7), सी (10475, 10476), सी (23462), सी (5, 9 5, 9 5 9), सी (5535, 26398), सी...

java - Why hashcode does not generate unique hashcode? -

We know that the default execution of hashcode () returns an integer after changing the internal address of an object in an integer. So the internal memory of each object is different, then why hasosh () does not generate the hash code unique My question is why ishosh () [This integer which represents the address represents an object] does not generate unique code, if we do not override the hash code () and equal is? Because it can not do. Since there are only 2 ^ 32 different inks and any VM instance can have 2 ^ 32 live objects, therefore it is impossible to guarantee a unique hash code for each object. Even if the default hash code can be based on the internal address of the object, then it is not the same as the internal address.

azure - Load balancing stateful web application -

I am trying to scale a web app from a web frequency to several instances on multiple scale The web app makes proper processing of the user per user, it is also quite interactive so the latency is important. At present we have a database, the test has shown that this is not an obstacle, so assume the question that we do not have to worry about scaling, all the examples will kill the same database. In this situation, I think that the per-user load balance is the best option, because the per-user status will be repeated in the per-user position in many web instances. In addition to the issue of maintaining continuity, I am worried that there will be consequences of unacceptable latency for end users. It says that ARR balances per-user load by default on Ezur. However, the traffic manager who I can collect is automatically enabled when you spin multiple web instances at Ezur, balancing the counter-request load. So my question is, which of these two load balances if I add some more ...

python - ExternalQuestion worker limitation -

Image
On the Mechanical Turk I have two different cases of use. I first is where there is a 'work' and I Ten unique workers are required to complete. Therefore, one example can be a HIT and only one worker can make one hit, a survey in which I would like ten people to fill it: q = ExternalQuestion (external_url = "http : //example.com/mturk ", frame_height = 800) Conn.create_hit (question = q, reward = 0.05, max_sagmentement = 10, title = 'my survey') this required Generates results, because it only shows one available HIT worker So how do I generate a 'work' where 10 HIT but one (or ten) to all of them? An example of this may be whether a picture is a boy or a girl. And they can leave one to go further: How do I Create_hit ? With this case of another use you have to separate 10 create / hit Operational, each with a different question value. Essentially, HITs who have the same hit type (i.e., displaying properties like title, r...

java - Printing Stars based on input from Command Prompt -

I have been assigned a project to print the pattern of stars with bee, we are assuming that the number given in the CMD And it will print a pattern. Or at least this is how I understand it. What the assignment says: Take a numerical input from the command line and produce the correct number of wires and rows. Example: C: \ Java will generate stars 3 , * * * *** So far my code is: public square stars 1 int len ​​= args. Length; If (lane and lt; = 0) {System.out.println ("Error: input value of 1-5"); System.exit (0); } At Jay; For (int i = 0; i & lt; = 4; i ++) {for (j = 0; j & lt; = i; j ++) System.out.print ("*"); Println (""); }}} I am trying to create a pattern: * ** *** **** ***** The example code he showed us was used to type args.length using the command prompt at any time. So if we type in the C: \ Java Echo I type, then type it. This will type I type, this type. This is the code he asked us to look ...

How Node.js event loop model scales well -

Image
I know that this question has been discussed in the past () but I still understand the node.js incident I've failed the Loop model and a single threaded model how it handles concurrent requests. Now I understand: we get an Io request-> a thread is internally generated by node.js and io request is assigned -> since it is an io request, so The CPU takes DMA controller and handles this thread-> This thread goes back to the thread pool to make a different request-> DMA is still doing the IO, when the DMA gets all the data Remove from a type of incident This event is captured by the node. Js system and it places the callback function supplied on the event loop - whenever the data received from the event loop is brought to the callback - by IO -> off Thanks to, the callback function only applies to the data received by the callback This process goes over and over again, please understand someone in my understanding and some Provide information Only one thread ...

Capybara won't start the web server when 'rspec spec' is used but does it only when 'rspec spec/features' is used -

This issue has been originally described in the topic. I really do not know whether this problem is the RSPC problem or the capsara one. I have not found anything on the web about this issue, Diving in the Capibara code has not helped me, I am using the capybara-webkit driver.

java - How can I fix package errors when compiling with Play Framework. Getting error: package redis.clients.jedis does not exist -

So when I try to use activator Eclipse To get the following, after clearing it, order my compilation order: error: package redis.clients.jedis import redis.clients.jedis.jedis does not exist; The Jar is on the build path, it does not show any error in Eclipse, the unit test can successfully save the data and read the data from the database. I believe that to use this, there is something to declare packages in a build or config file of some kind of SBT, but I'm not sure where I should look or I What should be modified; Maybe something in build.sbt? If so, what should I be kept there? This way build.sbt looks at this time: name: = "" myApp "" version: = "1.0-SNAPSHOT" lazy wall root = (file in the project ("." Enabled Plagiarize Scale Version: = "2.11.1" LibraryDePresence ++ = Seek (JavaEZDBC, Java Eben, Cache, JavaWise) SBT does not know where to extract dependence from this line in its build.sbt in libraryD...

contactscontract - Android: NORMALIZED_NUMBER not showing emulator number and device number -

जब मैं contactsContract.CommonDataKinds.Phone.NORMALIZED_NUMBER का उपयोग करके अपनी डिवाइस से संपर्क पुनर्प्राप्त कर रहा हूं यह सूची संपर्क सूची में सहेजा गया इम्यूलेटर नंबर और अपना फोन नंबर भी नहीं दिखाता है मैंने इसे विभिन्न प्रारूपों (+ 1-XXX-XXX-XXXX, XXX) XXX-XXXX, XXXXXXXXXX में अलग-अलग नामों के तहत सहेजने की कोशिश की, लेकिन कुछ भी काम नहीं किया। क्या कोई मुझे इस पर मदद कर सकता है?

Struct C++ array in function parameters not working at all -

Hello I have to do a program using an array of structures .. and I have to start it in a function. Below I am trying, but there is an error in my prototype "expected primary expression" .. I have followed the tutorials but I do not know what is doing wrong please help. I can not use pointers or vectors. Just thank you for the basic stuff your time. struct gamecases {bool flag = false; Int cosmum; Double value; }; Int initialise (gameCases cases); // prototype --- main () game cas case [26]; (Matter); // call int initialize (gameCases cases) // definition {double values ​​[26] = {.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, 1000, 5000, 10000, 25000, 50000, 75000, 100000, 200000, 300000, 400000, 500000, 1000000, 2000000}; For (int i = 0; i int initialize (gamecases case [26]) ; // Prototype Intralize (GameCase Case [26]) // Definition {Double Value [26] = {.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, 1000 , 5000, 10000, 25000, 5...

angularjs - Angular Basic Load Order -

एक बहुत ही बुनियादी अंगुलर ऐप में हमारे पास & lt; head & gt; ... और लेफ्टिनेंट है ; स्क्रिप्ट src = "app.js" & gt; & lt; / स्क्रिप्ट & gt; & Lt; script src = "maincontroller.js" & gt; & lt; / स्क्रिप्ट & gt; ऐप ने एप मॉड्यूल को परिभाषित किया है, और नियंत्रक तब ऐप को बंद कर देता है app.controller ("MainController ..") के रूप में यदि दो स्क्रिप्ट का क्रम उलट हो जाता है, तो ऐप एक त्रुटि को फेंक देगा "एप को परिभाषित नहीं किया गया है"। क्या इस लोड ऑर्डर पर निर्भरता के आसपास एक रास्ता है? मेरा डर है कि जैसे ही यह अधिक जटिल हो जाता है, मुझे स्क्रिप्ट ऑर्डर निर्भरता मिल जाएगी और संभवत: मैं अपनी स्क्रिप्ट async को भी लोड करना चाहूंगा। धन्यवाद। उदाहरण के लिए, यह प्लंकर देखें: मैंने SomeService को अपनी फ़ाइल में, svc.js परिभाषित किया है। मैंने मॉड्यूल और मुख्य कोड को app.js में परिभाषित किया है और भले ही मुख्य नियंत्रक उस सेवा पर निर्भर करता है जो "बाद में लोड करता है", निर्भरता का पता ...

sql server - SQL Inserting dups -

सम्मिलित करें dbo.FileColumns (FileID, RowID, ColumnID, मूल्य) का चयन करें FileID, RowID, ColumnID, मूल्य # से TempFileColumns; मैं मेज dbo.FileColumns पर इस सूचकांक सेटअप: क्लस्टर, अद्वितीय, प्राथमिक कुंजी RowID, ColumnID पर सूचकांक मैं इस त्रुटि मिलती है: प्राथमिक कुंजी के उल्लंघन बाधा 'PK_FileColumns' ऑब्जेक्ट 'dbo.FileColumns' में डुप्लिकेट कुंजी को सम्मिलित नहीं किया जा सकता। डालने के दौरान ऐसी डुप्लिकेट पंक्तियां कैसे निकालें? धन्यवाद, धन्यवाद। आपको यह तय करना होगा कि आप डुप्लिकेट रिकॉर्ड कैसे प्रबंधित करना चाहते हैं। एक तकनीक कुछ व्यापार नियम आपके द्वारा निर्धारित, तारीख या मूल्य आदेश की तरह के अनुसार पहले रिकॉर्ड को चुनने के लिए एक विभाजन के साथ एक ROW_NUMBER उपयोग करने के लिए है। सम्मिलित करें dbo.FileColumns (FileID, RowID, ColumnID, मूल्य) का चयन करें FileID, RowID, ColumnID, मूल्य से (चयन ROW_NUMBER () से अधिक ROWNUM, FileID, RowID, ColumnID, #TempFileColumns से मूल्य के रूप में (द्वारा FileID आदेश द्वारा RowID, ColumnID वाला भाग)) टी कहा...

total.js - POST request in Angularjs -

I'm new to Totaljs. I wrote a code that tried to make a PUUT request with an angular factory with the user Does: app.factory ('user', function ($ resource) {return $ resource ('/ register', empty), {register: {method: 'post'}} )}}; In my angle controller, when I click on the register button this method is turned on: $ scope.register = function () { $ Scope.user = new user ({email: $ scope.email, password: $ scope.password}); . $ Scope.user $ register (); } After clicking on the register button, I found this in the console: Failed to load the resource: The network connection was lost. This is my total JC controller: exports.install = function {framework.route ('/ register', registerPage); Framework.route ('/ register /', register, ['post']); }; Function register page () {var self = this; Self.view ('registerPage')} function register () {var self = this; Console.log ("run") / To add new user inst...

c# - WPF ContentControl inside another ContentControl not showing -

I have a content control window that I use to simulate a magician navigation that is working just fine . To rephire some code I have removed a form inside a Wizard of UserControl. I'm using the same window in the same way ... UserControl which I have removed works fine on other windows (Not the wizard), but inside my UserControl inside the wizard ... I am using content controls in both situations ... I do not get any error. .. i have debugged and constructor Programming has been called in both cases, but does not look like this in the wizard, just .. The code from a simple window is: & lt; Control: MetroWindo x: Class = "Desktop.View. View File PropertiesModel" & gt; & Lt; Grid & gt; & Lt; ScrollViewer VerticalScrollBarVisibility = "visible" & gt; & Lt; Content Control X: Name = "Document PropertieslistWell Mode" / & gt; & Lt; / ScrollViewer & gt; & Lt; / Grid & gt; & Lt; / Control: Metro...

java - Loop not working with float? -

(libGDX, Java) I'm trying to move an object from one side of the screen and when it is on the other side Access, which initiates the code I use for action: if (position.x The situation is a vector 2. 1 is the speed of the movement of the object and where I have the problem. Position the loop if it is okay. X - = a whole number, but if I want it to be 0.3F, 1.5 F ... the loop will not work and the object is still moving forward. How can it fix so that the loop works with any number? This is due to binary because the temporary numbers represent each integer (not very large) representing a binary Number is in the form but it does not have an accurate representation in 0.3. Required) & lt; 0.000001); }

python - System is unable to find the element for the second time -

Image
मेरा कोड क्या करने का प्रयास कर रहा है तत्वों का एक समूह ढूंढना है, फिर क्लिक करें प्रत्येक तत्व पर जिस पर एक टूलटिप संदेश प्रदर्शित होता है। टोटिप संदेश में एक लिंक पर क्लिक करें जो उपयोगकर्ता को एक अलग पृष्ठ पर ले जाएगा, वहां कुछ गतिविधियां करें और पिछले पृष्ठ पर वापस जाएँ और फिर दूसरे तत्व पर क्लिक करें और दूसरे तत्व के लिए टूलटिप संदेश में लिंक पर क्लिक करें। किसी कारण से मेरा कोड दूसरी बार टूल टिप संदेश में लिंक पर क्लिक कर रहा है। अगली बार टूलटिप संदेश में लिंक क्लिक करने में असमर्थ कृपया कोई कृपया मदद कर सकता है? मैंने अलग अलग चीजों की कोशिश की लेकिन कुछ भी काम नहीं किया। कृपया मुझे लगता है कि कोड के नीचे खोजें: मैं पायथन और सेलेनियम का उपयोग कर रहा हूँ elements = driver.find_elements_by_css_selector ("# टॉप-टेबल-चार्ट-कंटेनर & gt; div & gt; svg & gt; छ & gt; छ & gt; आयताकार ") काउंटर = 0 रेंज में काउंटर (काउंटर, लेन (तत्व)) के लिए: तत्वों = driver.find_elements_by_css_selector (" # शीर्ष टेबल-चार्ट-कंटेनर & gt; div & gt; s...

.net - Bootstrapper GUID -

वाईएक्स जला बूटस्ट्रेपर या तो HKLM \ सॉफ्टवेयर \ माइक्रोसॉफ्ट \ विंडोज़ \ CurrentVersion \ uninstall \ SOMEGUID या HKLM \ Software \ Wow6432Node \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ SOMEGUID वास्तुकला पर निर्भर करता है। मैंने देखा है कि SOMEGUID बदलता है जब भी मैं एक नया निर्माण बना देता हूं SOMEGUID के बारे में मेरे कुछ प्रश्न हैं, और निम्न में से किसी भी के उत्तर काफी उपयोगी होंगे यदि कोई भी कुछ प्रकाश डालने में सक्षम हो: मैं कैसे निर्धारित कर सकता हूं अपने बूटस्ट्रैपर से इंस्टॉल करने से पहले SOMEGUID क्या होगा क्या यह हार्डकोड SOMEGUID के लिए संभव है? यह बंडलआईड प्रॉपर्टी से निर्धारित होता है। नहीं, इसका सेट Intermally और हम उस पर नियंत्रण नहीं है। हर बार जब आप अपने बूटस्ट्रैप प्रोजेक्ट को संकलित करते हैं, तो इसे एक नई पहचान-एक GUID बुंडिलआईडी कहा जाता है जिसे आप बदल नहीं सकते हैं। इस संबंध में, आपके द्वारा बनाई जाने वाली प्रत्येक बंडल अद्वितीय है अपग्रेडकोड ​​विशेषता हमें दो बूटस्ट्रैप को लिंक करने की अनुमति देती है, जिससे उन्हें सं...

Implement google location search in android app like OlaCabs -

Image
I have implemented Google Location Search like the OLACAB app but it is faster to search as OLACAB No behind it, I think that to find places according to the text search, I must hit a rest api (). I saw that showing some text (see the screen below) showing "powered by Google" in the Olacab app. So I just want to know: 1. Is there any API available in Google for Android rather than API? 2. What if Ollacaps use some paid Google search APIs and where can I buy it? Most Community Limit (different for each API): div class = "post-text" itemprop = "text"> The majority are up and pay later. Courtesy limits are more if you have given your credit card information, but if you are beyond the free limit, then you should consider paying for them.

jquery - Javascript advent calendar, trouble with finding date/month -

I'm back with another newbie question! :) I'am trying to use an Advent Calendar I found here:. It has been installed for demo usage, so that the first door can be opened, even if its not December. I got a good job But when I try to check it's own date, even then all the doors are available which I try. Below is the code that checks (I think) the date: (function ($) {/ ** calendar action ********* // set Action takes place on the click on // Example with default override: $ ('ul.component-calendar'). PINT_Calendar ({date: 12}); $ .fn.PINT_calendar = function (option) {/ * * Add user settings (pass in function) / method call init) ** / var settings = $ .extend ({// default date: 1, // new date (.) GetDate (); set limit day (this All day of selection First) Month: 12, // New date (). GetMonth () + 1; Which month (ie December) FeedTiming to set: 300, // When you hover on a calendar day, this feed 'Animation Speed ​​Dinslundution: 500 / When you click on a cal...

python - Django site-external access -

A little bit of the initial question. Iv just started learning Django and can create very basic content. Now when I want to use my website on my computer I just type into the local URL and I can use the site, other links, etc. If I want to show it to someone else then how can I do this? To be able to type just in the local URL, what do they have to do to access it? Besides, if someone asks me what does it mean to create an API? I am beginning with Web Technologies so that any help thanks From: Note that the default IP address, 127.0.0.1, is not available from other machines on your network. To make your development server visible to other machines on the network, use your own IP address (such as 19 2.168.2.1) or 0.0.0.0 or :: (with IPv6 enabled). Python manage.py 0.0.0.0:port and other machines on the network http : // your_machine_ip: port

linux - using awk and sed find using lines in a file based on a field value from awk -

I use a postfix relay to send my mail server to our email server. I have to get the serial number value before some users receive an email address using the value of the e-mail they are sending. Examples of entry and entry from below are I think you have to use a combination of awk and sed. Sender Line 4 November 14:29:53 Server Postfix / qmgr [2089]: 42UE78JD7JE: to = & lt; Sender@domain.som&gt ;, size = 1182, nrcpt = 1 (Qi active) receiver line 4 November 14: 29: 54 server postfix / SMTP [10544]: 42UE78JD7JE: Too = & lt; User@gmail.com>, relay = gmail-smtp-in.l.google.com [74.125.22.27]: 25, delay = 1, delay = 0.02 / 0 In the above example, I want to remove 42UE78JD7JE from the first row and then find it in the second row. I'm thinking that you will use awk to get serial number values ​​in line with 'sender@domain.com', then use that value to search for lines with that value and use 'to =' awk '$ 7 ~ / ^ to = / {$ 6] = $ 7...

python - elif statement does not work -

I am sorry for this, but I am starting a whole and nothing that I try is just false Is anyone going to give me a small thought of being wrong in my alif statement, so can I keep it? (I also know that 0% of 0% is the current fault, only testing the theory) one = (1) three = (2) four = (4) 5 = (If Stamp duty> = 1 and Stamp duty = alif requires a condition, such as if statement if you want a non-block, then else Use: if stampduty> gt; = 1 and stampduty & lt; = 125000: add = (stampduty * one / 100.0) addamount = Add Stamp Duty + Print ("Stamp duty percent 0% \ n is your stamp duty amount", AdMount) Other: add = ed = (Stamp duty * one / 100.0 ) Addamount = add stampduty + print ("Stamp duty percent 0% \ n your stamp duty amount is", addamount)

actionscript 3 - Expecting Identifer Before Leftbrace -

आयात करें flash.events.MouseEvent; आयात करें flash.net.URLRequest; आयात करें flash.net.navigateToURL; Var EmailFlashVariable = "aa@aa.com"; Var AdfURLNavigator; Var AdfFlashVarsUtil; McButton.addEventListener (MouseEvent.MOUSE_UP, onClick); फ़ंक्शन onClick (e: MouseEvent): शून्य {AdfURLNavigator.navigateToUrl (AdfFlashVarsUtil.getParameter ("clickTAG") + "; cppar = 1 & amp; emailURLVariable =" + ईमेल फ्लैशवेरिएबल); Var click_url: स्ट्रिंग = रूट.लोडरइन्फ़ो.परमेटर्स.क्लिक करें TAG; यदि (click_url) {navigateToURL (नया URLRequest (click_url), '_blank'); } मैंने ऊपर की स्क्रिप्ट को अपडेट किया है और जो त्रुटि संदेश को मंजूरी दे दी है, लेकिन यह URL में पैरामीटर नहीं दिखाएगा इसके बजाय मुझे यह मिला - TypeError : त्रुटि # 1010: एक शब्द अनिर्धारित है और इसमें कोई गुण नहीं है। _10792MB_fla पर :: मुख्य टाइमलाइन / ऑनक्लिक () आप इस के लिए मिल रहे हैं >> > : या तो फ़ंक्शन एडफ़क्लेटेड (इवेंट: माउसइवेंट) या फ़ंक्शन एडफ़क्लेटेड (...

statistics - Three factor contingency table in R -

I'm looking to build contingency table for three main effects. The crime, gender, and former beliefs are the response variables whether a generous sentence was provided or not. This is by far the best. crime gender old yes no 1 shopping male n 24 1 2 other theft act men n 52 9 3 shoplifting women n 48 3 4 other theft act women n 22 2 5 shop lift men p 17 6 6 Other Theft Act Mens P 60 34 7 Shop Lifting Women P15 6 8 Other Theft Act Women P4 3 which was created by the following code Table1 & lt; -expand.grid (crime = factor (c ("Shoplifting", "Other theft Act"), gender = factor (C ("male", "woman")), pryarkov = factor (c ("n", "p "))) Table 1 & lt; -data.frame (Table 1, Yes = C (24, 52,48,22,17,60,15,4), No = C (1,9,3,2, 6,34,6,3)) Unfortunately this is not very beautiful and therefore I was thinking that there is another way to present the data more clearly. Thank you. For contingency, you ...

powershell - How to pull data from specific column from imported CSV -

Image
I have this CSV file: The procedure for the day name is PID Operation Path Results 52: 24.3 Notepad.exe 4828 Process Issue Breakthrough 52: 24.3 Notepad.EXE 4828 Create Thread Success 52: 24.3 Notepad.exa 4828 Load Image C: \ Windows \ Systemof \ Notepad.exe Success I import the file into a variable: $ csvContent = import-CSV D: \ Logfile.CSV Trying to pull out "PID": $ csvContent [0] | PID but it does not work How do I convert data from the PID column to the variable Can i remove There is no comma in that CSV file, and it assigns all the headers as the title of the single header Importing You have to specify / specify a digitizer for the elements in the file. For example: daytime, process name, PID, operation, path, result 52: 24.3, notepad XE, 4828, Process Start, Success 52: 24.3, Notepad.exe, 4828, Create Thread, Success 52: 24.3, Notepad.ax, 4828, Load Image, C: \ Windows \ System 32 \ Notepad.ax, Success

android - Upload Picture Form Fails On Mobile Chrome -

I am creating a mobile webpad, in which the pictures are an important part of the user's phone. I have received this form, in which a user can take a picture from his mobile phone in the DB of the app. I am using it for real upload. & lt; Form enctype = "multipart / form-data" action = "myapp / do_upload" method = "post" accept-charset = "utf-8" & gt; & Lt; Input type = "file" accept = "image / *" capture = "camera" name = "user file" & gt; & Lt; / Input & gt; & Lt; Input type = "submit" value = "submit" class = "btn btn-block" & gt; & Lt; / Button & gt; & Lt; / Form & gt; Problem: The app works great on my desktop computer: You choose a file, upload it, and throws an error. It does not work. However, when trying to do the same thing on my mobile phone (Android is running on Mobile Chrome), submit buttons refuse...

java - Jsf 2.2 with servlet filter -

I used JSF 2.2 and I have not used the session http session here.iam without having to login to JSF pages Want to redirect the page login to use the session variable scoped and check whether the whelther variable is blank or not and is trying to redirect it because the session scoped http session correct ?? My filter class is instead of enough package com.invoice; Import java.io.IOException; Import javax.servlet.filter; Import javax.servlet.filterChain; Import javax.servlet.filterConfig; Import javax.servlet.ServletException; Import javax.servlet.ServletRequest; Import javax.servlet.ServletResponse; Import javax.servlet.annotation.WebFilter; Import javax.servlet.http.HttpServletResponse; / ** * Servlet filter implementation class session filter * / public class session filter tool filter {/ ** * default constructor * / public sessionfilter () {// TODO automatic build creator stub} / ** * @see filter # deleted () * / Public Deletion of Zero () {// TODO Automatic Created Method...

objective c - Multiple nibs, multiple IBOutlets, one controller. Getting unrecognized selector? -

I have three nibbles, and there is a SetupController class. In the interface builder, the owner of the file in all the nibs on "SetupController" Has been set. I have the SetupController header file in the @property (strong) IBOutlet NSTextField * label; // Nib A (built with SetupController) @ Property (strong) IBOutlet NSTextField * label2; // nib three In my file with me: @implementation SetupController @ synthesize label = _label; @ Synthesis label 2 = _label2; Now, when I try to update NSTextField of label 2, using [_label2 setStringValue: @ "string"], nothing happens, I'm seeing debug open _label2 is zero, but not _label. The second and third jobs (which I can not update) are being loaded with initWithNibName in a widget controller: @ "NIB" bundle: zero; Do not load the outlet properly? Since the outlets are immediately in the SetupController, and I am loading new views as a new ViewController, they are not loading properly? ...

javascript - Js:Calling a function on click -

I use maplace.js, a Google Maps JavaScript plugin for jQuery. The plugin has a function that will display the marker on the map. map.ace.image = function (index) {// See if the trigger to show a location in the map (index === this.view_all_key) {this.o.beforeViewAll (); This.current_index = index; If (this.o.locations.length & gt; 0 & amp; amp; amp; this.o.generate_controls & amp; amp; this.current_control & amp; this.current_control.activateCurrent) {this.current_control ActivateCurrent.apply (this, [index]); } This.oMap.fitBounds (this.oBounds); This.CloseInfoWindow (); This.o.afterViewAll (); // specific location} other {index = percint (index, 10); If (typeof (index - 0) === 'number' in & amp; amp; index; gt; 0 & amp; amp; index & lt; = this.ln) {try {google.maps.event. Trigger (this.markers [index - 1], 'click'); } Catch (error) {this.debug ('ViewOnMap :: trigger', err.stack); }}} Return it; }; I tried to call this metho...

Updating session in hibernate -

After Then to get the number of rows from my database in a list I'm using Hibernate: public class FlightDAOImpl applies FlightDAO {Private session session = HibernateUtil.getSessionFactory () openSession () .; @SuppressWarnings ("uncontrolled") @Override from public list & lt; Flight & gt; ListFlight () {List & lt; Flight & gt; List = New Arrestist & lt; & Gt; (); Session.beginTransaction (); List = session.createQuery ("Flight_Origin = Flight: flight_id or Flight_Destination =: destination_id") .setParameter ("origin_id", App.airport.getAirportId ()) .setParameter ("destination_id", App.airport.getAirportId () ) .list (); Committed to session.getTransaction (). Return list; }} This works, but I will not update the session updating some data in the table (by the SQL developer way) I will get the same data the next time I get the listFlight phone ( ). I can use this instead: from public list & lt; Fligh...

ruby - Storing data from Twitter API in Rails -

Before I start, I'm still learning the entire MVC framework then understand in its explanation. I am calling Twitter API using Twitter Jam. Im collecting all their followers and genderize.io using their ruby ​​gem extension to return their name and gender. I am displaying the name and percentage of "male, female, unknown" gender on my index footing. I The code of my last code breaks into the JSON object. {\ "Count \": 59, \ "percent \": 0.46}, \ "female \": {\ "counting \ unknown gender \ : "0.24}, \" "31, \" percent \ ": {\" count \ ": 38, \" percent \ ": 0.3}}" My question is that How do I do this long index method refactor and break this so that the model data that I am getting back from APIs can do and break the penis? In other words, I need to store the screen name (screen_name), the list of followers (@username_name), and gender percentages (@gend_preview). If anyone kn...