Posts

Showing posts from July, 2012

android - onsaveInsanceState never gets called fragment -

A lot of information and followed by Goggle, I have tried many things onsaveState to work when a user has a different piece Navigates to and then back to the previous section by using the back key. I have two pieces A and B, which are stored in a container xml layout kept by a normal activity and used it. A single activation Here I am adding a piece in the slice manager and my container xml about FragmentA = new piece (); Fragment Transaction Feet = FM BBT transactions (); Ft.replace (About R.id.mainViewContainer,) .addToBackStack (TAG_ABOUT_PAGE); Ft.commit (); Here is the onswest status on Fragment A Override public null at @SaveInstanceState (bundle outstate) {super.onSaveInstanceState (outstate); // Something save. Input level (KEY_CENTER_POINT, mlatLong); Log D. ("Jezezie", "onsite personasset"); Fragment Transaction Feet = FM BBT transactions (); Ft.replace (R.id.mainViewContainer, fragmentB) .addToBackStack (TAG_ABOUT_PAGE); Ft.commit ()...

c# - How to Convert to Decimal formated gridview cell with DataFormatString="{0:#,###,##0.00}" -

I try to convert to formatted decimal with DataFormatString = "{0: #, ###, #) # 0.00} " Gridview cell function Convert.ToDecimal (gridview.Rows [0] .cel [1]) some such as" Wrong string format " returns. It seems that the format you are using for decimals is correct for culture. Not that which is used in your application. There are two solutions: 1. For the cell use DataFormatString = "{0: D}" 2. Correctly with Decimals Try using the Trypers Number style and FormatProvider . Click for details. In your case you should use the FR-FR culture as follows: Decimal. Trypsers (gridview.Rows [0]. [0] Number Style Anyone, Culture InfoGetCalcherInfo ("FR-FR"), Out Wall)

zip - Pkzip - CRC-32 in Central directory file header -

Image
I am searching the internet that CRC-32 is being calculated which field of calculation of CRC-32 As mentioned here As you can see that there are some calculations but I do not know which fields are recorded in this calculation, the main reason is that I have to enter some data in the comment area Ahta and I still have something to do with a dock file (= pkzip) office may open in 2007+ without the message corrupt file, I after long research that convinced the CRC-32 calculation. If there are any other ideas then I am happy to hear them edit Now I try to hide more information on the additional field and I think That file has been fixed, I added the footer size If you just have a comment in the center Are putting the al directories, then the problem is not to do anything with the CRC at the end of the central directory area of ​​you The size of the central directory are messing up.

WinForms - Dynamically Add Multiline Textboxes to Panel with Horizontal Scrollbars -

Image
I have been given a design that I have to reproduce in Winforms. My attempt is shown below ... At the moment I have 5 static labels and 5 static multi-lingual text boxes, which my list belongs to "items" ... But, able to cope with more than 5 columns should be there .. . If Winforms is not being experienced extensively, what would be the best way to add extra columns with horizontal scrollbar to enable the user to scroll from left to right? I was thinking that maybe a panel, which is set for scrollbar auto, and then dynamically add headings and text boxes to the calculation status? Is this possible? Is this the best way? Any help would be greatly appreciated. Thank you Yes, it looks like this ... This code works as a test ... Integer number = 0; Int location x = 169; While (number & lt; 10) {// Create a new multilingual text box textbox trev = new TextBox (); Trev.size = txtParent1.Size; Trev.Location = New point () {X = txtParent1.Locat...

ios - XCode 6.1 creates provisioning profiles that are EXPIRED on testflight -

Image
I want to deploy testflight which currently tells me that my provisioning profile has ended. XCode 6.1 automatically generates such a provision profile that looks like this: e.g. XC: * and XC: bundle. Identifier And despite setting up against my team, despite the installation of my UIDID, I do not see any device. When I have an app (expected to start using TasFlight) to connect to iTunes, this provision profile has made it difficult: I thought I could correct it with my own Adjacp provision profile , And so I created one: and yaki me That it was setup to use it for the release profile: But I still see the same provisioning profile being deposited: I have also tried: Deleting all the profile profiles from my device . Apple Developer Area Sector delete all provisions profile. I think there is no control over (1) that the provision profile on an iTunes connectivity verification / submission has been selected, and (2) in the automatically generated...

listview - Android call findViewById from adapter custom class -

Hello, So I have an item that has a custom listView with a custom adapter In my getView I setOnCheckedChangeListener and onCheckedChanged operators for my checkbox implemented a checkbox for the line Now, the problem is:. Whenever I check a list of items that I want to update / delete items, I want to have an external text view with values ​​(say value for each item connected So I want to show the total price below the list). How can I access the "external" view from the GetView of the adapter? I have other workarounds here. I leave here some parts of my code on the getView function of my custom adapter: checkbox name = (checkbox) view.findViewById ( R.id.product); Name.setText (content [i] [0]); Final view v = scene; Final intestinal condition = i; Name.setOnCheckedChangeListener (new CompoundButton.OnCheckedChangeListener) {@Override Changed in public checked at zero (compound button group, boolean's check) {setCheckedItem (status); Edit tab volume = (...

Jmeter script not recording Google map -

I am using a recording script from jmeter 2.7. I have set up a proxy and have also added the HTTP proxy server in the JMeter workbench with port 8080. In my application only the user has to load Google Maps with certain colors after logging in. There is no problem with the script, the user login, after login, the user has no Google Maps on the ground on the right page. I tried the same activity again & amp; Thanks "text"> Google API (aka GWT) Customer-side makes heavy use of Javascript IMHO, it is very difficult to emulate the data transmitted over the HTTP protocol within the custom client. I have resolved to use Selenium-WebDriver so that the browser does all the work.

c# - Web Api route {id:int}.xlsx is not found -

I have an API endpoint that will export as some Excel Excel Xlsx file. The URL I try to get is as follows: localhost / service / resources / 123.xlsx (because I think this is a good way to use this extension). But it did not always get me a 404. The Administrator has a Root Prefix: [RoutePrefix ("resources")] and the path attribute on the action is: [root ("{id: int}. Xlsx ")] Even when I changed the route to [root (" 123.xlsx ")] I will not find it Also tried to do with a resux barrier [root ("{key: regex (\\ d + \\. Xlsx}")] with no luck. I suspect That it can be caught by the static file handler, but already in the web config settings & lt; modules are run AllManagedModulesForAllRequests = "true" /> I believe this should work because it's a lot in the previous project Worked for the same route, using the old routing setup and not attribute of routing. That project was not used owine, but is this p...

pooling - Java resource pool -

I have app data that stores data in XML when user asks for data, then XML is read in institutions , Which is then shown through a few-like-servlet. My problem is, after every refresh, data for some kind of service has to be processed again and parsing XML is expensive. There is too much XML to store all data in memory. I was thinking something like resource pooling, where the program asks the bridge, if the name in the pool is the unit with foo . If it is, then foo is returned from the pool, if not, the foo has been created from XML and saved in the pool. Something like this: unit unit = zero; Entity.setId (id); (Unit unitFormpool: pool.getAellientes ()) {if (entityFromPool.getId (.) Equals (entity.getId ())} {entity = entityFromPool (); IsInPool = True; } If (! INPool is) {entity = getEntityFromXML (); } I have read about Apache object pooling , but if I understand it correctly, then I can not store the F store. With this, 5 different entities and then ask if the...

Cuda thread linear indexing -

I need to index my thread in such a way that I'm sure 32 of them are taunts of the same, That is, the linear index follows how warps internally is created. In other words, there are linear indexes that are used to create Warpace C such as Fortune. To illustrate this, consider a block of size 2x5 thread, I can make a linear indicator that happens after the FORTRAN or C Convention: 0, 1, 2, 3, 4 5, 6, 7, 8, 9 versus 0, 2, 4, 6, 8, 1, 3, 5, 7, 9 For a large array, I have to make sure That my first 32 threads are in the same warp. What is the correct way to generate a linear index? Your thread has been set in 32 groups. Threads fall from 0 to 31 in the first tranche, 32-63 on the second and so on. If threads 32%! = 0 , the warp is full of "shadow" threads (so you have to make this thread a mechanism to access the wrong memory position, usually a if statement). You are not able to change this order, so the first 32 threads will always be in the same w...

django - How to forward image from internal REST service -

I have a design site that includes some media in the form of images, audio and video. Object storage will be retrieved from the REST API which is not accessible to the outside. I have created a quick prototype, where a Django view / object is callable on / which in turn returns the internal object storage REST API and the object. Media has been shown using HTML 5 tags. How can I make the best calls to my internal REST API without having to show performance problems by having everything through the DEGENGO? It can work fine to go with my current solution, but I am a little worried about serving big files like this. Is there a better way? I call the rest of the internal service through a third party dragon library which manages authentication and so on. If this happens then the site TomCase server will be likely to run in production. The site is not expected to have too much traffic, but video files can be large enough. Hopefully I explain you correctly - a general approa...

scala - Generating static docs -

I'm trying to run static-docs.sh from the swagger-codegen project, but the exception thread "Main" java.lang.RuntimeException: The target can not be detected to run: ./bin/Version.scala ... this ends please Set scalaVersion: = "Build.sbt and run ./sbt assembly . I'm running on Ubuntu 12.0.4, Java version" 1.6.0_33 ", Scala Code Runner version 2.9 .1 - Copyright 2002-2011, LAMP / EPFL I swagger-codegen-master / build.sbt file ( scalaVersion: = "2.9.1 " ), but I still keep getting the same error. How can someone give me a direct guide that to run .sh file please ? If you require swagger 2.10.4 to build with ./sbt assembly then It should work by default.

controller - fectching textbox value from angularjs -

I am using angularjs, where I have created a login form and a controller where I get the value of the text box I am trying to do My HTML looks like this: & lt; Div class = "form-group" & gt; & Lt; Label = "username" & gt; Username: & lt; / Label & gt; & Lt; Input type = "text" class = "form-control" id = "user.uname" placeholder = "enter username" ng-model = "usname" & gt; & Lt; / Div & gt; & Lt; Div class = "form-group" & gt; & Lt; Label = "username" & gt; First name: & lt; / Label & gt; & Lt; Input type = "text" class = "form-control" id = "user.firstname" placeholder = "enter first name" & gt; & Lt; / Div & gt; And I've got a controller like: module1.controller ('RegisterController', function ($ radius, $ http) {$ scope.XHR_Result = "XHR is not st...

java - How to handle the session in HttpUnit -

प्रयास करें {एचटीपीएन्टिटी इकाई = शून्य; HttpGet httpget = null; HttpResponse प्रतिक्रिया = नल; Httpclient = नया DefaultHttpClient (); Httpget = नया HttpGet (क्रेडेंशियल URL); Httpget.setHeader (HttpHeaders.USER_AGENT, "मोज़िला / 5.0 (विंडोज़ एनटी 6.1; WOW64) ऐप्पल वेबकैट / 535.2 (केएचटीएमएल, जिएको जैसे क्रोम / 15.0.874.120 सफारी / 535.2"); प्रतिक्रिया = httpclient.execute (httpget); इकाई = प्रतिक्रिया। गेटइन्टीटी (); अगर (इकाई! = नल) {EntityUtils.consume (इकाई); }} पकड़ (अपवाद ई) {} वापसी httpclient; मैं सत्र को संभालने के लिए एचटीटीपी क्लायंट का उपयोग कर रहा हूं। लेकिन एजीएक्स कॉल को संभाल नहीं देगा I मैं अपनी समस्या को दूर करने के लिए httpunit में जाने की योजना बना रहा हूँ मूल रूप से मेरे पास एक रेफरल यूआरएल (या ऑथेंटिकेशन सर्वर) है जिसके लिए मुझे कुकीज़ और सैशन प्राप्त करने और क्लाइंट में इसे स्टोर करने की आवश्यकता है। और लॉग इन उपयोगकर्ता जानकारी प्राप्त करने के लिए वेबसाइट पर इस क्लाइंट का उपयोग करें। Httpunit का उपयोग करने के लिए यह उचित समाधान क्या है Credenti...

bluetooth - Linking with libbluetooth.so -

At Ubuntu 14.04, I'm trying to make a small case of Bluetooth device entry but I face a simple problem Comparing this minimalistic demo when connecting with the Bluetooth Shared Library: $ sudo apt-get install libbluetooth- dev $ gcc -lbluetooth simplescan.c -o simplescan /tmp/ccuwRsB5.o : 'Main' at the ceremony: Simplescan.c: (text + 0x79): 'undefined reference to hci_get_route' ..: `hci_open_dev 'simplescan.c :( undefined reference text + 0x132): simplescan.c: (text + 0x8c) undefined'. Text simplescan.c :( + 0x18f): references to `ba2str undefined reference 'hci_inquiry simplescan.c :( text + 0x1f0):. Undefined reference to `hci_read_remote_name 'collect2: error: exit to ld 1 position $ nm -d /usr/lib/x86_64-linux-gnu/libbluetooth.so.3.13.0 | Grapes hci_get_route 0000000000008f00 t hci_get_route The Bluetooth shared library is found and is being done with essential functions, but adding does not achieve the phase. The solution (for me)...

flex lexer - Negate a range of characters inside a character class in regex -

मैं जो कुछ भी इस regex [_ a-zA-Z] / code>। कोशिश की गई ^ [_ a-zA-Z] लेकिन यह केवल एक पंक्ति के शुरू होने पर regex से मेल खाता है क्या इस स्थिति को हल करने के लिए regex होना चाहिए? मैं एक फ्लेक्स फ़ाइल के नियम अनुभाग में इसका उपयोग कर रहा हूं, जिससे [^ _ a-zA-Z] फेंकता है एक चेतावनी नियम मिलान नहीं किया जा सकता। इस चेतावनी को निकालने का कोई भी तरीका? उस अक्षर को उस कोड में रखें ^ वर्ग इसे अस्वीकार करने के लिए। [^ _ a-zA-Z] अब उपरोक्त वर्ग एक नकारात्मक कक्षा है।

how can i combine multiple pdf to convert single pdf in android? -

I have several PDF files in the SD card, now I have to add those single page PDF files to a program in a PDF document. I have used the Android PDF Writer Library to create those single PDF files. How can I do this? I tried some code and questions but I could not find a good answer. Can somebody help me out? I do not know how this is APW (Android PDF Writer), but you have the latest PDF files on Android Can combine with the latest. (Not yet the last ... RC3 ...) Just add your build.gradle this dependency: compile 'org.apache.pdfbox : Pdfbox: 2.0.0-RC3 ' And do this in an async function: Private file download ANDCombinePDFs (string urlToPdf1, string urlToPdf2, string UrlToPdf3) throws IOException {PDFMergerUtility ut = new PDFMergerUtility (); Ut.addSource (NetworkUtils.downloadFile (urlToPdf1, 20)); Ut.addSource (NetworkUtils.downloadFile (urlToPdf2, 20)); Ut.addSource (NetworkUtils.downloadFile (urlToPdf3, 20)); Last file file = new file (getContext (). GetExter...

unit testing - mock out return of a method base on the number of invocation only in spock -

Is it possible to copy the return value of a method based on NT time? Note that I do not want to specify passed parameters because it does not matter for a specific test case. For example, for the first call it should be returned, it should be returned for the second call. Yes it is possible. someObject.someMethod (* _) & Gt; & Gt; & Gt; ['X', 'Y'] This will return to the second invitation of the method on x and y . example: zero "test something" () {given: def sample = duplicate (sample) {some method (_) & gt; & Gt; & Gt; ['Hello', 'world']} Hopefully: sample.someMethod ('foo') == 'Hello' sample. Some method ('bar') == 'world'} Sample of class {def someMethod (Df A ) {Return A}}

android - How to remove selected date rectangle in QCalendarWidget and small icons in widgets -

Image
I am writing the implementation of my own QCalendarWidget, I have to select dates, but I do not want to see the default selection rectangle . It looks like: and my code: In Producer: setSelectionMode (single selection); Zero ShiftCalendar :: paintCell (QPainter * painter, const QRect and amp; rect, const QDate and date) const {if (date == selectedDate ()) {fillCell (painter, rect, CalendarWidget :: cellFillColor); } DrawCellText (painter, rect, quastering :: number (date.day ()), color); } Zero ShiftCalendar :: fillCell (QPainter * illustrator, const QRect & amp; rect, const QColor & amp; color) const {painter- & gt; Save (); Painter- & gt; SetRenderHint (QPainter :: Antialiasing); Painter- & gt; SetPen (QPen (color)); Painter- & gt; SetBrush (QBrush (color)); Painter- & gt; Drill Eclipse (FRact.center), Rect.Wide () / 2, Rect.Hight () / 2); Painter- & gt; resumed (); } What can I do? The second problem, as seen in the picture are the push...

r - Windows encoding with unicode? -

मेरे पास विकास में एक पैकेज है cowsay मैं यूनिकोड वर्णों का उपयोग करता हूं कुछ मामले। उदा।, उन यूनिकोड वर्ण केवल मैक और लिनक्स मशीन पर आर में छपाए जाते हैं, लेकिन खिड़कियों पर वे सही ढंग से प्रिंट नहीं करते हैं। जहां मेरे मैक \ uFF8A देता है "\ uFF8A" [1] "ハ" विंडोज मशीन पर मैंने कोशिश की "\ uFF8A" [1] & lt; U + FF8A & gt; गिटौब का मुद्दा यहां है चूंकि यह एक पैकेज है, इसलिए हम सभी प्रमुख प्लेटफार्मों में काम कर सकते हैं, मुझे उम्मीद है कि यह बिना काम करता है विंडोज उपयोगकर्ताओं को एक अतिरिक्त कदम उठाना है कि * यूनिक्स उपयोगकर्ताओं के पास नहीं है मुझे लगता है कि यह एन्कोडिंग के साथ क्या करना है, लेकिन मुझे यकीन नहीं है कि यह कैसे तय किया जाए, और मुझे एक समाधान googling / खोज नहीं मिला है।

eclipse - Is it possible to develop for Android 4.4W with Android 5.0 SDK installed? -

I recently updated Eclipse to Android 5.0 (bad idea) and Android-support-v7-app-compact The library will no longer be compiled Target is set to Android-21 The app I was working on was using API 20, but until now the Android Manifest Target SDK Warson will not be set to 21 Will work. This turns out to be the result of some assets whether the new appcapet is still stationed on version 20, or if this is not possible, can I downgrade everything to the previous API version? thank you in advanced. How to downgrade from SDK here 20: Epcamples Download the version again 20: Delete the epacaap project from your app's workstation Import an Ephemeric version 20 Build target set for Android-support To run the app, change its Android manifest's target SDK version to 20 For Android 4.4W.2 (Project-> Proper AT> Android] In the app, project-> property-> Android, set the build target for Android 4.4W.2, add the Epippip library to the library window again. Als...

How to Select text on mobile web browser by moving touch on screen using javascript? -

Image
By turning on touch on the screen using Javascript, trying to select text from a mobile web browser on touch based mobile I am here. I do not want to use long touch to select text I am trying to get selected text like the browser on the desktop, like mobile not provided when I try to select a text page I'm scrolling, but instead of scrolling I have to select the text. Please provide me with a way to choose the text. This is not a development question, and the superuser should be migrated. But to answer your question, generally in mobile, you need to tap the tap and bring the text selection toolbar. Then you have to select the limit using two selectors. How do you want to use it javascript? If you are selecting a category that can not be selected, then use it: If you can use images for uneditable text, you can use an image background You can work on it by using: body {font-family: 'verdana'; Font-size: 10pt;}. Editable (background: url ('http://i...

Deploying azure webjob via git -

मेरे पास एक .net mvc वेबसाइट युक्त एक समाधान है, और एक वेबबोज। मैं git - तो गीजर को नीला करने के लिए पुश करने पर, मेरी वेबसाइट अपग्रेड हो गई है। अब मैं एक कंसोल एप्लिकेशन जोड़ रहा हूं जो एक कार्यक्रम पर चलने वाला है। जब मैं git push पर वेबसाइट के साथ इस पर तैनात करना चाहता हूं, तो मुझे यह सुनिश्चित करने की कोशिश कर रहा हूं, लेकिन मुझे यकीन नहीं है कि यह कैसे करना है। मुझे पता है कि मैं एक फ़ोल्डर वेबसाइट \ app_data \ jobs \ triggered \ webjob और फाइलों को वहाँ में कॉपी करें (वेबबॉयड पर एक पोस्ट-बिल्ड इवेंट से कहें), लेकिन इसका मतलब होगा कि मुझे उन सभी फाइलों को उन्हें लेने के लिए तैनात के लिए जीआईटी रेपो - इसका मतलब यह भी होगा कि हर बार जब मैं निर्माण करता हूं, तो गीट मुझे फिर से करने के लिए प्रेरित कर रही होगी। क्या ऐसा करने का एक अच्छा तरीका है - जहां मैं सिर्फ मेरे रेपो को नीला करने के लिए धक्का दे सकता है, और यह मेरी वेबसाइट ठीक से और मेरी वेब जॉब तैनात करेगा? धन्यवाद हाँ, आप फ़ोल्डर में वास्तविक EXE और प्रोजेक्ट आउटपुट को स्पष्ट रूप से बिना डाल कर ऐसा कर सकते ...

ajax - Node/Express - one route/complex route code? or multiple-routes/simple route code? -

How to do the CRUD and see the best practice guideline on having a synchronized browser-code model with DB. The context is an Angular / Express App and Postgres DB. I have a UI editing form that currently shows data records stored in DB, can implement, submit, and express updates to user postgres. After the update, I perform an edited operation to pull the data record again so that my client-side model is synchronized with DB data. So there are two DB visits, updates and read here. My question is, is it better practice for 1? Keep your expressway code ultra-simple and keep two Ajaxes from the browser (AJAX on the form, after the success response, another AJAX to read the data again from DB), or 2) do a single Ajax on the form and express Update the route, then read, then return the data to the browser?

c - Structure element is unable to assign this is asked but i coudn't get apporiate ans? -

Hello structure is unable to specify the element (string) if it is assigned as code given below during the creation of this object Why is not done? My code is below please help me understand struct st {int i; Four f [10]; Four * ch1; }; Int main () {struct st var2 = {"hello"}; // This is a good str str; Var.ch = "Hello"; // Why this bad? // so var.i = 9; // Why is it good? Var.ch1 = "hello"; // good why? } straight street var2 = {"hello"}; // This is good No, it's not good. :) You are trying to start the integer varaiable i with the first letter of the string as the "Hello" indicator. var.ch = "Hello"; // Why is it bad? This is really bad because arrays do not have any assignment operators. You have been declared the standard function strcpy in the header & lt; String.h & gt; for copying that string in the Data Member ch strcpy (var.ch, "hello"); var.i = 9; // Why is it ...

python - Optimize a function in scipy without explicitly defining the gradient -

I am currently trying to customize a function using Scripts. I have some obstacles on the variable, and with this link: - It seems that SLSQP is actually what I want. In their example, there is a clearly defined formula for the result in reference to their input, from which they get shields. I have a very disgusting computational intensive task, which calculates how the electromagnetic fields descend on metal walls, so that no meaning can be expressed in closed form (I am using MEEP FDTD Python simulation, If you are interested) Is there an equivalent function that finds the shield of function for you and then optimizes it? Or, equally, there is a function that is made in waste (a basic dragon library will be fine) which will be the shield of a function for me, so that I can go to this optimization program? Any suggestions would be appreciated. Since you can not easily calculate the gradient, use it to pay off There is a gradient-free optimization algorithm available here in s...

Reading Last Line of a text file C# -

I am using the following code to read the last line of the text file: What is wrong with this code? I have written the complete error generated by the debugger below, what would be the mistake I am doing? using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; System usage threading. Task; Using System.IO; // Using System.Linq; Namespace file {class program {public void GetDataFromFile () {// Opening stream !!! FileStream fo = new filestream ("Hello.txt", FileMode.Open); Streamer sr = new streamer (for); If (! File.example ("hello.txt")) {Console.WriteLine ("{0} does not exist.", "Hello.txt"); } Other {// string record; // record = sr.ReadLine (); String lastline = file. Readline ("helotext"). Last (); Console.WriteLine (lastLine); } Sr.Close (); Fo.Close (); } Static zero main (string [] args) {program p = new program (); P.GetDataFromFile (); }}} Error: System.IO.IOException was without a...

android - How to apply a gradient overlay in a Drawable? -

Image
I'm able to get a good result by using the color filter But this is not exactly accurate I want to do something like this How do I get such a thing without pre-processing Can i do

c++ - pselect blocks even though data is available for read on socket -

I am experiencing an intermittent delay while reading from POSIS Socket (RHEL 6x86_64C ++ ICPC). My code is designed so that the user can provide a full time-limit (a relative timeout) that Many call can be used for recv. I ask PECEL to make sure that the data is available for reading before reading. This usually works as expected (waiting for data, but not exceeding the deadline, no noticeable delay can be offered when available to retrieve the data ). However, I have a user who can get his application from time to time (~ 50% of the time) in a state where ~ 400-500 ms for selection block though data is available on the socket. If I look at / proc / net / tcp, then I can see that the data is available in the RX queue and I can slowly read the queued data after seeing the application. If I leave to choose the call and only call books, then the behavior is the same (but at least delay indicates that RRV is also blocking unnecessarily) When the application comes in this situation I...

python - How to run Pygame? -

We were asked to download Pygame for class. I have ensured that it has been downloaded correctly by opening the IWL and those instructions have been followed and it is being downloaded but I am confused about running it, this happens when I call it Python Try to run: Trackback (most recent call final): File "C: \ user \ Sharon \ download \ pygametest-1.py", in line 11, (module ) Ball = pygame.image.load ("python.png") Pygame.error: pytho N.png could not open please help! This means that python.png is unavailable in your downloads folders. So please make sure that the file is there before you run the program again again.

sending Messages from one domain to another using postMessage function in javascript -

If I open a domain in a browser. Example.com and www.example.com (cross domain) on other browsers ) Open Is it possible that a message can be sent from www.abc.com to chat.abc.com? I tried the following: The message to receive the script iewww.example.com on the receiver is as follows: jqcc (document). Ready (function () { var eventMethod = window.addEventListener? "AddEventListener": "attachEvent"; var eventer = window [eventMethod]; var message event = event method = "activate"? "OnMessage": "Message"; // Listen Message from Child Window Eventener (messageEvent, function (e) {if (e.data.indexOf ("He") & Gt; = -1) {console.log ("Message Received: "+ e.data);}}, wrong); }); I try to send a message as I have not found anything in the browser console . Please No, this will not work. Post Message The API is used only with iframes What do you want to do, www.chat.example.com insid...

ruby - rails, best way to get random nested record -

I have a post model and a comment model; There are many comments in the post, and comments belong to a post In my post controller, I want to select a random comment, and want to display the date of the comment. In my post controller, I have: @posts = Post.where (: public_flag = & gt; true) .dr ('created_at DESC') After this I'm stuck a bit. Should I get a comment from this idea? Or are there any other queries from the controller to get the comments? Then, how do I choose a random comment after a comment? Thanks in advance! Appreciate your help. Answer to your question Application: Offset = rand (@ Post.comments.count) # rails4rand_record = @ post.comments.offset (offset) First # Rail 3 rand_record = @ post.comments.first (: offset = & gt; offset) I hope it helps

javascript - Use Bootstrap affix in Colorbox -

मेरा एचटीएमएल: और div यह काम नहीं कर रहा है इसलिए, मैं Colorbox फ़ंक्शन में एिप्क्स जावास्क्रिप्ट कोड शामिल करता हूं। $ (document) .bind ('cbox_open', function () {$ ("। स्क्रॉलहेडर")। Affix ({offset: { शीर्ष 10 } }); }); लेकिन अभी भी काम नहीं कर रहा है जब मैंने इसे DevTools की जांच की, त्रुटि नहीं। मेरी समस्या क्या है? मैं इसे कैसे सुलझाऊं? धन्यवाद। यदि आपका रंग बॉक्स स्क्रॉल नहीं करता है, तो आप affix विकल्प का उपयोग नहीं करते हैं।

objective c - iOS 8 API printing PDFs: broken when drawing text? -

After I have an application that has been generously created using Quartz / UIKit since IOS 4, But since the upgrade of the project to iOS 8, whenever PDF attempts to present the text in context, it crashes the drawing line & amp; A rectangle is fine, but any change of string rendering fails with one exception in one of the low level libraries. Instead of posting your own source, I tried working backwards from Apple's document. Assumption that it has been outdated, but if it is not going to work, then they have to decide it. Customized source code: - (zero) yield PDF {NSString * text = "Bergerge Bluff Glup Foo!" ;; CFATAditorisingTraftTect = CFETEEDStringCarate (zero, (CF stringerf) text, faucet); CTFramesetterRef frameset = CTFramesetterCreateWithAttributedString (current text); NSString * pdfFileName = fullPath; Create PDF Contection using the default page size of 612 x 792. UigRFixBijinPDFCTXToFile (PDFFilename, CGRTaZero, Zero); CFRange current range...

Redis Time() command returns an empty result -

Our Redis Server behaves weird under high load. When calling time () command it will sometimes return an empty result (no exception, only empty result). Is this an expected behavior when the server or network is overloaded? Edit: info # server redis_version: 2.8.9 redis_git_sha1: 00000000 redis_git_dirty: 0 redis_build_id: 61e31fc3ea5bf6c redis_mode: standalone OS: Linux 3.5.0-49-generic x86_64 Arc_bits: 64 multiplexing APIs: Apol Jisisi_warjn: 4.6 .3 PROCESS_ID: 31,347 run_id: be2da8cf9660eebd9c70149e0eb6c6e75f424eb2 tcp_port: 6379 uptime_in_seconds: 7,774,141 uptime_in_days: 89 Hz: 10 lru_clock: 5,927,592 config_file: /etc/redis/6379.conf # clients connected_clients: 2471 client_longest_output_list: 0 client_biggest_input_buf : 0 blocked_clients: 64 # memory used_memory: 3162944192 used_memory_human: 2.95g used_mummary_rs: 3483242496 Ughrd_mimori_pik: 16284341712 _mmori_ used Kia_mmori_pik_human: used 15.17 g lua: 797,696 mem_fragmentation_ratio: 1.10 mem_allocator: jemallo...

c++ - What has gone wrong with this sorting code using Linked Lists? -

I want to say that I started learning C ++ now and I just got to enter, delete, Good catch, Finding element and element in position I have tried sorting to use bubble sort (?) And the program is crashing. Please help me Structure node {Int data; Structure node * link; }; Typedf Structure node * NODE; NODE REIR (NODE Route) {NODE temp = root; While (temp! = NULL) {NODE curr = temp; Whereas (curr! = NULL) {if (curr-> Data> (curr-> link -> data) {int temp1 = curr-> Data; Curr-> Data = (curr- & gt; link) - & gt; Data; (Curr-> Link) - & gt; Data = temp1; } Curr = curr- & gt; Link; } Temp = temp- & gt; Link; } Return route; } To put it in and also remove the function, but I have not copied here. If you want, I'll post the whole program. Curr- & gt; If the link is zero or not data memeber causes a fault. If (curr-> link! = Null & amp; curr- & gt; data & gt; - & gt; link) - & gt; Data)

pausing execution - R: I fail to pause my code -

I am trying to stop my code for a while, time for me to follow plots. I tried: print ('A') some = readline ("press enter") print ('b') print ('c') , then there is no break, line print ('b') is fed to read and receive in and Therefore, only printed on the A and C screen. Note that if I type a blank between Something = readline (press "Enter") and print ("B") , then print ("B") Add the line printed on the screen but still the console does not allow the user to enter before continuing. And I tried: print ('A' s' (3) print ('b') print ('c') > The problem with "itemprop =" text "> readline is that if you paste your script into an R console, or you can execute it as an example, then RuStueu, redline function is read and then the next line of the script The console is read as entry, which sets the value of in your case to print (...

html - CSS - I can't get my menu to center(horizontally) dynamically -

मेरे पास इस तरह एक सरल लेआउट है: & lt; html & gt; & LT; बॉडी & gt; & Lt; div & gt; & LT; ul & gt; & Lt; li & gt; & lt; a href = "#" & gt; होम & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; समाचार & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; संपर्क & lt; / a & gt; & lt; / li & gt; & Lt; li & gt; & lt; a href = "#" & gt; इसके बारे में & lt; / a & gt; & lt; / li & gt; & Lt; / ul & gt; & Lt; / div & gt; & Lt; / body & gt; लेकिन मैं यह नहीं समझ सकता कि इस मेनू को क्षैतिज और गतिशील रूप से कैसे केन्द्रित किया जाए। सीएसएस यहां है मैं सोच रहा हूं कि इसके बारे में चौड़ाई के साथ कुछ करना है & lt; उल>। लेकिन अगर मैं इसे एक निश्चित आकार में बताता हूं तो उदाहरण के लिए 500 पाउंड कहना है, तो यह गतिशील नहीं होग...

java - List<byte[]> fills wrong -

When the loop is over, the array in this code is filled with the same value everywhere. After some debugging I saw that the array on every add (fade) is completely filled with the same value. list & lt; Byte [] & gt; Datas = new ArrayList & lt; Byte [] & gt; (); // CODE ... // FileInputStream fis = New FileInputStream (file); Byte [] Chef = new byte [2]; Int n; While ((n = fis.read (buff))! = - 1) {this.datas.add (fond); } Fis.close (); I tried the same code with an array of string and it worked correctly ... Why this is happening, and I How can i fix You are filling ArrayList with similar examples of byte [] buffer variables so every time you Modify FoF (in fis.read (fond)) You are actually modifying all the items in ArrayList. Try creating a new byte in each iteartion: from the list & lt; Byte [] & gt; Datas = new ArrayList & lt; Byte [] & gt; (); // CODE ... // FileInputStream fis = New FileInputStream (file); Byte [] Chef = new ...

javascript - Weird behavior in Google chrome (After submitting a form, it goes to the bottom of the page) -

I have a template design, everything works fine when I submit a form when the server responds (the same page ), Then they will go to the bottom of the page. This happens if the whole page is larger than the height of the screen. Example (if whole page is smaller than screen height): Submit form, server responds with one page Example (if whole page is larger than screen height ): Submit the form, the server responds with the same page, then the page goes down. I disabled javascript ( & lt; script & gt; tag has been deleted). And it only happens in Chrome I have tested it in Firefox and IE, and after submitting the form the page will be on top. .......... Also, if I have an empty & lt; Script & gt; Before content & lt; / Script & gt; tag, just like that. Page (in Chrome) I'm assuming how it should be how Chrome presents the page If any & lt; Script & gt; tag, Chrome will render the page aggressively. And if there is a ...

php - Flexslider - Load specific slide from huge group -

I am working on the slider to browse all the available units in the condo building. This is for a touchscreen in the building, so it was understood to use Flexlider because this Touch is a fun and easy set up. ... now the hard part ... there are about 300 slides, and the unit #s slide does not match the #slide Slide 5 unit can be 412. Does anyone have any recommendations about linking to a different slide separately? Thanks for any input!

java - Android adapter Not reading XML file -

I have a line file XML and I am trying to print my database in the list view. Layout of the XML file (two textviews) but when I set my adapter layout layout to a row.xml file it does not work. I am very new to Android so I am doing something silly. Any help would be great row.xml & lt; LinearLayout xmlns: Android = "http://schemas.android.com/apk/res/android" Android: Layout_width = "fill_parent" Android: layout_height = "fill_parent" Android: Orientation = "vertical" & gt; & Lt; Android: layout_heid = "wrap_content" android: textSize = "15sp" Android: & Lt; Android: layout_height = "wrap_content" android: textSize = "15sp" Android: paddingBottom = "5dp" /> & Lt; / LinearLayout & gt; This code I am using for my adapter and xml file com.example.rory.dbtest.DBAdapter db = make new call Trying to com.example.rory.dbtest.DBAdapter (this); Db.open (); ArrayList...

wordpress - Remove YouTube embedding with wp_oembed_remove_provider() -

I'm trying to remove YouTube embedding from some of my WordPress output, so it only shows the link. I have tried the following code without any luck. wp_oembed_remove_provider ('#http: // (www)? Youtube \ .com / watch. * # I'); Wp_oembed_remove_provider ('.? #https: // (www \) YouTube \ .com / clock * # i.'); Wp_oembed_remove_provider ('#http: // youtu \ .suggestion /.*# I'); Wp_oembed_remove_provider ('#https: // youtu \ .suggestion /.*# I'); Echo application_filters ("the_content", $ result-> text); What am I doing wrong? And how am I doing this correctly? Chances are that you are at a point where it is too late to remove providers Try hooking in plugins_loaded or init : add_action ('init', 'so26743803_wp_oembed_remove_provider'); Function SO26743803_wp_oembed_remove_provider () {wp_oembed_remove_provider ('#https: // youtu.be /.*# i'); // etc} Edit (untrade): By setting providers with ...

javascript - Not found page pops up for a second - Meteor - iron - router -

I upgraded my app to meteorite 1.0 and updated my router.js because I do not use .wait () However, now my unpiled page is popped up for just a second before the 'real page' appears before. How can I fix this? This is my code: this.route ('gamePage', {path: '/ game /: slug /', onBeforeAction: [function () Subscriber ('singleplayer', this.param.Sol); var single player = DATA (); if (single player) {if (singlepillier upgrade) {this.subscribe ('upgrade', this .params.slug);}} This.next ();}], data: function () {return games.Fundon ({slug: this.params.slug}}}, waiton: function (return) [Return meteor ('single game', ' This.params.slug)]}}); Any help would be greatly appreciated. its Instead of subscriptions patterns. this.route ('gamePage', {path: '/ game /: slug /', subscription: function ()} return meteor membership Take ('singleplayer', this.parms. Slug);}, on-backaction: function () {va...

html - Collapsed table borders in firefox sometimes missing -

Elements of the table in HTML spec are allowed for the tag . I have a case where Firefox does not want to handle collapsed boundaries. Actually, it seems that if any any contains hidden content (only?), Then it fails to render borders right for the right table is. Is there any way to attract the boundaries correctly? I have not tried to break the boundaries, which seems to work, but leave aside this specific table which looks different than other tables on the site. Code sample for the above link: with several `TVs` elements: & lt; Table class = "main content" & gt; & Lt; Thead & gt; & Lt; TR & gt; & Lt; Th & gt; Hi & lt; / Th & gt; & Lt; Th & gt; There & lt; / Th & gt; & Lt; / TR & gt; & Lt; / Thead & gt; & Lt; Tbody & gt; & Lt; TR & gt; & Lt; TD & gt; Hi & lt; / TD & gt; & Lt; TD & gt; There & lt; / TD & gt; & ...

java - How to iterate through an ArrayList and only pull out 1 field from each object -

I am working on a jellist issue. I have an array list of the arrays in which there are 3 fields. I want to give the last name, first name in JLIS but only to find out how to remove the last objects from ArrayList any help Would be appreciated. Thanks Import java.awt.EventQueue; Import java.lang.reflect.Array; Import java.util.ArrayList; Import java.util.list; Import javax.swing.JFrame; Import javax.swing.JList; Import javax.swing.ListModel; Import javax.swing.List SelectionModel; Import javax.swing.AbstractListModel; Public Class Testing Listings {Private Jeffrey Frame; string value; / ** * Launch Application * / Public Fixed Zero Main (String [] Elps) {EventQueue.invokeLater (New Runnabal () (Public Zero Void) ({TestingListsGUI window = New TestingListsGUI (); window.frame.setVisible (true );} Catch (exception e) {e.printStackTrace ();}}}};} / ** * create apps * / public test list () {start ();} / ** * start the content of the frame * / Private Zero Start () {frame = new JFra...

objective c - How to get a UITableView bigger in iOS -

वर्तमान में मैं UITableViewController subclassing हूँ (CGFloat) मैं कोड: तालिका दृश्य: (UITableView *) तालिका अनुमानितहॉइटफोररूअटइंडएपपाथ: (एनएसआईएसएक्सपैथ *) इंडेक्सपैथ {सीजीएफ्लॉट स्क्रीनहाइट = [[यूएसस्क्रीन मुख्य स्क्रीन] बाउंड]। आकार। हाइट; वापसी स्क्रीनहाइट * 1/2; } (सीजीएफ्लॉट) तालिकादृश्य: (UITableView *) तालिकाउच्च ऊँचाईफोरोटीएंडएपपाथ: (एनएसआईएनएक्सएपैथ *) इंडेक्सपेथ {सीजीफ़्लॉट स्क्रीनहाइट = [[यूएसस्क्रीन मुख्य स्क्रीन] सीमा]। आकार। हाइट; वापसी स्क्रीनहाइट * 1/2; } मेरे पास दो समस्याएं / प्रश्न हैं मेरी तालिका को बहुत थोड़ा दाहिनी ओर धकेलने लगता है, मैं यह कैसे तय कर सकता हूं? क्या यह यूआईटीबल वीक्यून्ट्रोलर्स सेल को बड़ा बनाने का सही तरीका है? भी: अगर मैं एक कस्टम सेल बनाऊं, तो मैं सिर्फ एक पूरे सेल की जगह कस्टम सेल को लगाऊं, तो इससे कोई फर्क नहीं पड़ेगा कि सेल की ऊंचाई क्या है? चूंकि, इसका कस्टम कक्ष द्वारा प्रतिस्थापित किया जा रहा है? कोई सलाह मदद करेगा धन्यवाद। यदि आप चाहते हैं कि हर पंक्ति एक ही ऊंचाई हो तो दो विधियों को लागू न करें...

.net - ASP.Net website showing me code errors on IIS8 than dont happen on Visual Studio -

I created my asp.NET web app on Visual Studio 2013 and everything works perfectly, but when I But it was published (on Windows Server 2012) I get blank reference exceptions, which do not make any sense because the code works perfectly well on the studio. Do I have to install something on my machine? I honestly do not know what to do, can someone help me? Many thanks!

Python's 'cmd' listing all command options, regardless of nested level -

Well. Excuse a real newbie. My question: I have got a nested looping cloth from the top, which works, okay, okay, consider total newness. When I type 'help', I get a proper list of possible commands based on code. When I enter a command that goes to the nested level, and then type 'help', I get the same list of possible commands, it seems that they have commands in the whole dragon app. What I see is a nested level, reference list of available commands at that level is sensitive. So, I hope that when I am at a level, can I see the orders available at that level? Yes? I can show the code, but I'm sure it will only confuse things, and the concept is very straight forward, I think. If the dragon's CMD is not the way to go, it's okay. In this endeavor I have only one afternoon, but I do not want to proceed until I solve it. A great site and thanks to all the great people. Jeff

osx - Profiling OpenCL on Mac OS X -

I have to find out when my colonel is spending the most time. Can anyone please tell that there is no way to do this in Mac OS X (Darwin). Previously asked: The answer shows how to use the OpenCL's inbuilt profiler, but it will not tell me the type of extension I am looking for. The NSEIDIA version of NVIDIA under Mac OS X can work in a limited amount of OpenCL profiling. . I'm not sure if he gives line-to-line details as you would like.

ios - Develop Apple mobile application without submitting to Apple store -

I want to develop some mobile applications on iphone / ipad etc., but it is completely intact. Do not even want to go. Is there any way to do that? I saw that there is some service for companies with Apple 500+ people, but this is definitely low for me. Thank you. Yes you can enroll for. No problem when the company size is less than 500. Developer create an account at .apple.com and you can distribute your apps using your own server. Providing delivery service for free

performancecounter - "Category does not exist." Creating performance counter for MSMQ Queue -

I am trying to: using System.Diagnostics; // ... var queueCounter = new PerformanceCounter ("MSMQ queue", "message in queue", @ "machinename \ private $ \ testqueue2"); Console.light line ("qi contains {0} messages", queueCounter.extValue (). ToString ()); that came from this post: This error is mentioned, but there is no resolution when using PerformanceCounter. I also mentioned here: However, this thread began on this exact topic, but before answering the preliminary question on what to do about the error, a Got another direction Actually I do not need to know the records per second, I just need to know when the back line of the queue is starting. What is the reason for this error? I have tried to point out to the private and public queue as well as the messages pointing to the queue which was a message to them. Edit: I've added Perfmum to ensure the path and queue name in the server correctly. / P> OK ... put it ...

laravel - Get from related tables with query builder -

Image
टेबल्स: प्रश्न (आईडी, सवाल), उत्तर (आईडी, प्रश्न_आईडी, उत्तर) एक सवाल कई जवाब हैं मैं एक टेबल से डेटा कैसे प्राप्त कर सकता हूं (उदाहरण के प्रश्न) और उसके सभी संबंधित आंकड़े केवल लार्वेल क्वेरी बिल्डर का उपयोग करते हुए अन्य तालिका (उत्तर) से प्राप्त कर सकते हैं। DB :: तालिका ('प्रश्न') - & gt; सहीजोड़ें ('उत्तर', 'प्रश्न.आईडी', '=', 'answers.question_id') - & gt; समूहवाले ('questions.id') - & gt; चयन करें (' Questions.question ',' answers.answer ',' questions.id ',' answers.question_id ') - & gt; प्राप्त करें (); यह मेरे पास इतनी दूर है, लेकिन एनटी ऐसा नहीं लगता है कि जिस तरह से मैं डेटा को संरचित करना चाहता हूं। टेबल्स: प्रश्न (आईडी, प्रश्न), उत्तर (आईडी, प्रश्न_आईडी, उत्तर) $ query = डीबी :: तालिका ('प्रश्न') - & gt; जुड़ें ('जवाब' 'Questions.id', '=', 'answers.question_id') - & gt; चयन करें ('questions.question...

javascript - Issues with .on() and AJAX -

इस सवाल का पहले से ही एक उत्तर है: 18 उत्तर मेरे पास इन पंक्तियाँ हैं हेडर $ (document) .ready (function () {$ ("। अंगूठे")। Hide (); $ ("। Thumb")। पहले ()। Show (); $ ("। Text") .mouseenter (function () {$ (this) .prev ("। अंगूठे")। Show ();})। माउसलेव (फ़ंक्शन () {$ (this) .prev ("। अंगूठे ")।छिपाना(); }); }); वे पृष्ठ लोड पर ठीक काम करते हैं, लेकिन जैसे ही मैं नया HTML सामग्री AJAX के साथ लोड कर रहा हूं, इन पंक्तियों को अनदेखा किया जा रहा है। मेरे पिछले प्रश्नों में, कुछ कोमल व्यक्ति मुझे इस्तेमाल करने के लिए कहा था। पर () ठीक है। लेकिन मैं यह कैसे लागू कर सकता हूँ। पर () मेरे कोड को ऊपर? मुझे पता है कि यह आप में से अधिकांश के लिए एक मूक सवाल है, लेकिन मैं एक पूर्ण शुरुआत कर रहा हूं और मैं वास्तव में इसकी सराहना करता हूं, अगर कोई कुछ उपयोगी सलाह दे सकता है। आपका कोड ऐसा कुछ होगा (संशोधनों के लिए खुला) $ (document) .ready (function ()। $ ("। अंगूठे"), ($। "अंगूठे"), $ ("। अ...

python - Why are my app engine queries not finding my instances? -

I'm playing with an app engine, but I think the NDB datastore queries are misleading. I put the errors thrown next to the query. Playing around in the Interactive Console: Google.appengine.ext Import Ndb class client (ndb.model): email = ndb.StringProperty () name = ndb #StantProperty (indexed = true) #Instantiated client example ID 6578378068983808 with parameters below # Client = Client (email = "bryan@gmail.com", name = "Brian Wheelock"). Input () Client = Client.query (Client.name == 'Brian Wheelock') #client = Client Query (client.id == 6578378068983808) #Internet Enter: Type object 'Client' attribute 'id' #client = Client.all () # Enter attribute: Type object 'Client' has no attribute 'all' #client = Client Get_by_id (6578378068983808) # This Works gives you a printprint.print (customer.name) of U'brayan velock. Examples of query engine app documentation done by me Sector'm right, that I do wrong?...

c++ - Initializing a ref-to-ptr in a struct after malloc() -

I am experiencing a problem using VC ++ and debug CRT with a DLL in development. I have a structure that holds some references. Structure data {TA * & amp; a; TB * & amp; B; TC * & amp; C; TD * & amp; D; Four ** characters; Int num_chars; Private: // Because: // Data A; // data b; // a = b; // Impossible Data is & amp; Operator = (Cantt Data & amp;); // Attach "= delete;" Data for C ++11 / Default CTOR (Private because the structure should be made manually using Molok) Data (TA * A and A, TB * and B, TC * and C, TD * and D): A (A), B (B), C (C), D (D), Character (NULL), NewMars (0) {}}; And create it like this: Data & amp; () Find () Static Static Data * Data = (Structure Data *) Molec (Format Data); Return data; } Now it should hold the undefined Rif-to-PTR, which I want to init by: void func (TA * a) , TB * b, TC * C, TD * D) {Gate () -> A = A; () - & gt; B = get B; () - & gt; C = c; () - & gt; D = D; ...} w...

Why is the size of my MySQL database larger than the individual values would indicate? -

I am accumulating two columns of unsigned integer (which should be 4 bytes according to each) and I Table for close rows * 8 bytes of individual table files (which are with IBD extensions, correct me, if I am thinking this wrong) starting with 96 KB for all my small tables, as I have a large number of rows Table with I come not, size dramatically increases and are also around one per line byte 30, as shown in a table to lines 2 ^ and a table for each K first column is the primary key. + -------- + ------------ + --------- - + ------ ------- + ------------- + | Size k | Rows | KB | Byte | B / R | + -------- + ------------ + ---------- + ------------- + - - ---------- + | 1 | 2 | 96 | 98304 | 49152 | | 2 | 4 | 96 | 98304 | 24576 | | 3 | 8 | 96 | 98304 | 12288 | | 4 | 16 | 96 | 98304 | 6144 | | 5 | 32 | 96 | 98304 | 3072 | | 6 | 64 | 96 | 98304 | 1536 | | 7 | 128 | 96 | 98304 | 768 | | 8 | 256 | 96 | 98304 | 384 | | 9 | 512 | 96 | 98304 | 192 || | 10 | 1024 | 128 | 131072 | 128 | |...