Posts

Showing posts from January, 2010

c - Implicit parameter cast -

I have a code that works in the following manner: There is an announcement for the function in the header, say: Typing File Type MyStruct {int thing; Zero * reserved; } Mystread; Zero Fu (Mystrak * bar); And then, in my .c code, I have this: typedef straight extension {float more_stuff; } extended guideline; Struct MyStructEx {int cheese; EXTENDED * ex; } MyStructEx; Void foo (MyStructEx * bar) {...} This is fine under MSVC (with the warning that the header and implementation parameters do not match), but the code :: block ( GCC throws an error on this? Is there a way to silence this error or at least make it a warning, or am I the only option to put extra definitions in the header? I am doing this because I have a modular library in C, so sometimes the individual components need "scratch space" to work (which is reserved * in the header), and every To avoid the place bunch I place the general purpose for mystate structure for a more specific one. So my qu...

wpf - dynamic binding of Button Content to an image button'sTextBlock? -

I have a style for an image button, as I am following, how can I create a text block, Where equals "POSITION" 'below, similar to button content? Thank you. ' style x: key = "top button style" target type = "button" & gt; & Lt; Setter property = "padding" value = "0" /> & Lt; Setter Property = "Button. BorderBrush" Value = "Steelblue" /> gt; & Lt; Setter property = "button. BorderThickness" value = "0" /> gt; & Lt; Setter Property = "ContentTemplate" & gt; Setter.value & gt; & Lt; DataTemplate & gt; Grid background = "steelblue" & gt; & Lt; Image source = "picture / blue_button_up.png" horizontal align = "center" margin = "0,0,0, 0" height = "auto" width = "auto" statch = "uniformtofil" gt; & Lt; Text block text = "position" horizontal ali...

android - VLC Beta (NEON) Installation on HTC Evo 3D -

I have HTC Avo 3D and I want to try VLC Beta. Although the HTC Avo is neon in 3D (I have checked it with / proc / cpuinfo), Google Play does not allow me to install it / proc / cpuinfo output is given below: Processor: ARMV7 processor RE2 (v7l) Processor: 0 BogomIs: 13.53 Features: SPP half thumb fastest vfp edsp thumbnail neon vfpv3 CPU Implementation: 0x51 CPU Architecture: 7 CPU Version: 0x0 CPU Part: 0x02d CPU Suspended Money: 2 Hardware: shooter_u Revision: 0001 Engineer: 0000 Serial: 0000000000000000 Play says that VLC Beta is compatible with my device is not. Is there any other source for downloading and installing VLC Dual Android? I was able to install VLC Beta by downloading software and installing it from File Manager URL but Google Play does not let me install it as mentioned above. This works but it can not decode some video captured with the phone. If the hardware acceleration is selected, this decoding problem decreases. There is no visible...

map alt+shift+] in vim -

मैं Alt + Shift + ] मानचित्र करना चाहता हूं और Alt + शिफ्ट + [ से gt और जीटी ( इसलिए यह मैक पर काम करता है) मैं यह कैसे कर सकता हूं क्योंकि यह काम करने में प्रतीत नहीं होता है अगर मैं बस इसे करता हूं: map & lt; as -]> gt ; Gt किसी भी तरह से ] से बचने की आवश्यकता है आपकी परिभाषा में कुछ भी गलत नहीं है विम सही तरीके से उस संयोजन को मैप करेगा, लेकिन यह आपके द्वारा अपेक्षा की जाती है। मैप की अनिवार्य रूप से क्या कहती है जब Shift + Alt को ] मानक कुंजीपटल पर ] चरित्र जब शिफ्ट के साथ जोड़ता है } उत्पन्न करेगा इसका अर्थ है कि विम ] Shift के साथ संयोजन में कभी भी नहीं देखेगा बल्कि इसके बजाय सिर्फ } देखता है। आप जिस व्यवहार को ढूंढ रहे हैं उसे पाने के लिए आप इसका लाभ उठा सकते हैं। इसके बजाय निम्नलिखित मैपिंग की कोशिश करें (मानक QWERTY कुंजीपटल मानकर) : मानचित्र & lt; A -} & gt; Gt: नक्शे & lt; ए - {& gt; जीटी

matlab - Ignoring similar columns when concating matrixes vertically -

In matlab I have 128 by a matrix, which we can call [ABC] Where each letter is 128 by a matrix. So what I want to do, processes the matrix with another matrix, [A ~ DE]. A where the values ​​of A are the same. What do I want to get as a result of the concert: [ABCDE], Where A is dropped. What is the best way to do this? Note that I do not already know that there is a similarity. To clarify, my problem is how do I decide that two columns are the same? In the same way I mean that between the two columns, many of the row values ​​are close to the value. Perhaps an example would also help vector A: [1 2 3 4 5 6 7 8 9] '| | | | | | | | | Vector B: [20 2.4 4 5 7 7 7.6 10] Where are some examples where prices are completely different, but for the most part the value is close to me. There is no defined limit for this, but ideally it will be something that I can use. If you want to leave only same columns, do so One way is: % # Define the example ma...

html - Overlay several images -

Image
I have three images that I want to overlay (with HTML + CSS, I not If you want to use Javascript if possible): This is the result that I want to get: [image4] This is what I have tried: CSS: .imageContainer {status: relative; } # Image1 {Status: Completed; Top: 0; Z-index: 10; Border: 1px solid blue; } # Image2 {Status: Completed; Top: 0; Z-index: 100; Border: 1 px solid flame; } # Image3 {Status: Absolute; Top: 0; Z-index: 1000; Width: 10%; Height: 10%; Border: 1 px solid green; } HTML: & lt; Div class = "imageContainer" & gt; & Lt; Img id = "image1" src = "http://i.stack.imgur.com/Es4OT.png" /> & Lt; Img id = "image2" src = "http://i.stack.imgur.com/WQSuc.png" /> & Lt; Img id = "image3" src = "http://i.stack.imgur.com/Xebnp.png" /> & Lt; / Div & gt; Line image1 : "main" image (image1 should set maximum height and maximum width for an i...

regex - Javascript replace `sq-` or `sq.` -

मैं एक स्ट्रिंग पर प्रतिस्थापित करना चाहूंगा जिसमें sq - या वर्ग मैं इस तरह से कुछ करने की सोच रहा था: मैं यह कैसे काम कर सकता हूं पर कोई विचार? आप इसे एक रेगेक्स के साथ कर सकते हैं ... imgSrc = imgSrc.replace (/ sq ([.-]) / g, 'mt $ 1'); । । चरित्र वर्ग एक शाब्दिक से मेल खाएगा। (क्योंकि यह एक चरित्र वर्ग में इसका विशेष अर्थ खो देता है) और एक शाब्दिक - (एक श्रेणी की तरह नहीं दिखता है, इसलिए इसका कोई विशेष अर्थ नहीं है)। यह मैच समूह 1 को कैप्चर करने में रखा गया है, जो संदर्भित है $ 1 के साथ प्रतिस्थापन में। ।

RabbitMQ Shovel plugin stuck on "starting" status -

The rabbit MQ starts just fine, but the shovel plugin status is listed as "Start". I am using the following rabbitmq.config: Each broker is running on a different AWS example. Remote server is Windows 2008 server, the local server is Amazon Linux. gt; & Gt;}, {ack_mode, on_confirm}, {publish_properties, [{delivery_mode, 2})}, {publish_fields, [{exchange, and lieutenant; & Lt; "" & Gt; & Gt;}, {routing_key, & lt; & Lt; "Scp_request" & gt; Returns: According to [{scrape_request_shovel, start, {{2012,7,11}, {23,38,47}}} , the result may be that the user is correct on two brokers Have not been installed in the manner. However, I have checked twice that I have installed the user correctly on both machines through rubbitmusic user- it has also tried with a different set of users to make sure. I also ran a NMAP scan of port 5672 on the remote host to host port and is running on that port. UPDATE The problem ha...

php - get coordinates from kml -

I have several km files, with only 1 path created in each. In which direction can I get the coordinates and how can I change them in an array with each set of coordinates placed within my array? For example: [[lat1, long1], [lat2, long2] [lat3, long3]] I like javascript, but I can also php. Example km: http://98.214.131.200/ route / test .kml can be used as a stand-alone parser (although it is not particularly well tested in that mode). If you want polyline, you probably want a polyis branch instead of a trunk. The array of coordinates is not enough in the format you requested; Playstained [] [Core] [Core: float, lng: float, alt: float] If you have a "path" in each of your km lists, maybe the array will be: [0]. [0]. Linestring [0]. CoreDeNet and it is also available as google.maps.Polyline object. Your example here is km L, if you press the page with the debugger, then you can see the coordinate array.

python - Couchdb server error (500 system_limit) -

My program is written in Python that I use couchdb-python for data storage, but when the program datas stores, so this is an error gives .: file "/home/koc/dnsReputation/dnsDatabasekpy", line 45, check Haswu that LAN (results) == 0: file "/ Usr / local / lib / python2.6 / dist-packages / CouchDB-0.8-py2.6.egg / couchdb / client.py ", in line 987, __len__ file" / usr / local / lib / python2.6 / dist -packages / couchDB-0.8-py2.6.egg / couchdb / client.py ", line 1003, file in rows" /usr/local/lib/python2.6/dist-packages/CouchDB-0.8-Py 2.6.egg / couchdb / client.py ", line 990," /usr/local/lib/python2.6/dist-packages/CouchDB-0.8-py2.6.egg/couchdb/client.py "in the _fetch file, Line 914, "/usr/local/lib/python2.6/dist-packages/CouchDB-0.8-py2.6.egg/couchdb/http.py" in the _exec file, line 399, in the post_json file "/ usr / local /lib/python2.6/dist-packages/CouchDB-0.8-py2.6.egg/couchdb/http.py ", line 381, in t...

- Where Developers Learn, Share, & Build Careers

My goal is to import thousands of hostnames / logins / passwords into the SQLite database "signons.sqlite". I believe the table is "moz_logins". This file is located on ~ / .mozilla / RANDOM_STRING.default / signons.sqlite for me I'm trying to understand two things out: 1) What is the encryption method used for encryption and encrypted passwords? 2) What is the guide column / how is it worth its price? If the answer is somewhere on the lines of "Need to read the source code", then this work may be larger than I imagined. Any help would be appreciated. Have you seen? There are several article links in it, the key should be in key3.db behind the main password, if necessary. You need a way to handle passwords. Take a look. The GIDE is a unique ID of some kind, which is generated somehow :) There are some programs available, such as backup / decryption, instead of the RTF of FF, you have a look at them Can be inserted.

http - How to interpret "Connection: keep-alive, close"? -

मैं जो समझता हूं, एक HTTP कनेक्शन या तो हो सकता है या close । मैंने एक सर्वर को एक HTTP अनुरोध भेजा है: प्राप्त / page1 / HTTP / 1.1 होस्ट: server.com कनेक्शन: रख-जिंदा और इसका उत्तर दिया: HTTP / 1.1 200 ओके कनेक्शन: रख-जिंदा, बंद करें मूलतः, मैं मानते हैं कि सर्वर को बग़ल में लगाया गया है क्योंकि जैसे-जैसे प्रतिक्रियाएं, बंद करें अस्पष्ट है। हालांकि, रिसीवर के रूप में, हम कैसे संभाल ऐसा संदेश? क्या हमें व्याख्या इस हेडलर मान को रखना-जिंदा या close जैसा होना चाहिए? टीएल; डॉ: क्रोम इस प्रतिक्रिया हैडर को रख-जिंदा के रूप में रखता है और फ़ायरफ़ॉक्स प्रत्येक कनेक्शन को बंद कर देता है, तो एक अप्रत्यक्ष कनेक्शन बनाए रखता है। मैंने इस प्रश्न पर ठोकर खाई थी क्योंकि मैंने अनुकूलन करने की कोशिश की थी मेरी वेबसाइट के लिए पृष्ठ लोड होने का समय। संदर्भित आरएफसी में मुझे इस बारे में कुछ नहीं पता था कि कनेक्शन हैडर में कितने प्रविष्टियाँ ठीक से नियंत्रित हो सकती हैं ऐसा प्रतीत होता है कि कार्यान्वयन दो संभावनाओं में से चुन सकता है: यदि कई प्रविष्टि...

Trouble with armed bear common lisp--calling user defined classes from repl? -

I'm very new to Ornate and Java and I'm very new as well. I was working on a trivial game in Java and I thought it would be interesting to interact with the game because I was coding it through REPL. I am following practical mesmerizing and I have knowledge of basic function structure. I started using LISP as an armed bear - an implementation that runs on the Java Virtual Machine - and was able to codify some basic functions to make a GUICE, such as: (Defnstant + jframe + "Javax.swing.JFrame") (vs frame (length width and visible) "Create + a + Jeffre +" (let (jnew (jnew (jconstructor + jframe +))) (jcall (jmethod + Jframe + "setSize" "int" "int") frame length width) (if visible (frame-visible T-frame)) frame)) Although I do not know how the implementation of the entire class from user defined class lizard is very poorly documented, and I am having difficulty starting Java specific things from within Lispi. For example,...

jquery - HTML best practice to animate and fallback -

I have to do some animation in a homepage on Apple's iPhone homepage I am quite simple, for some div (with some fade), stay a few seconds, slide out and some left to the same effect in the lower device. I'm planning to do JQuery Use () since I am using jQuery for almost everything in the site, but I have some doubts: What is the most to animate the objects in jQuery Good way I have also considered using CSS3 transitions, but I think that is not more consistent with such modern browsers like jQuery (cough ... cough ...) What will be the event of fire animation? How can I ensure that the image is loaded before animating the image? The initial state of the elements will be 0% ambiguity, so I get them 100%. If someone has javascript turned off or there is an error in the page and the animation function has not been run, the elements will remain invisible for them. If the initial state has to have 100% opacity and then change it to convert it to 0%, if it is not...

django - Why does Gunicorn use port 8000/8001 instead of 80? -

I used a development environment for Django Framework using Gangororn (as a Django service) and using NGINX (as a reverse proxy) I'm busy setting up When I look at several tutorials and I think they are port 8000 and port 8001 ( http://127.0.0.1:8000 and http: / /127.0.0.1:8001 ). Port 8000 is often used for radio streaming and malware, so why? BTW: I'm running it on the Ubuntu 12.04 system using Virtualenv. On the NGINX port 80 and on the other side of the Gunoricorn listen to 127.0.0.1 instead of Gunicorn 0.0.0.0 Is running on, so it is not publicly listening, and therefore the only way to use the site externally is via port 80.

python - How to set the alpha value for each element of a numpy array -

I want to populate an array and then want to show it as an image. I want to set two parameters for each array element: A "color value" and "transparency value" I am using imshow from matplotlib, but I have open for other solutions I have tried to do something like this, Where ca_map is an MxN array. ca_map = np.array (ca_map) palette = cm.jet palette.set_under ('w', 1.0) plt. Axis ('off') plt.imshow (ca_map, cmap = palette, norm = colors.Normalize (vmin = 0, clip = false), projection = 'sinc') plt.show () Thanks in advance. Docs () says that to show you an MxNx4 array values ​​of RGBA, CA_map Believing MxNx3, you can do something like this: plt.imshow (np.dstack ([ca_map, alpha], ...) Or if ca_map is MxN: plt.imshow (np.dstack ([ca_map, ca_map, ca_map, alpha], ...)

php - MySQL wildcard return only matches with hyphen and number -

I have the following lines in my database, which is a duplicate if it increases: foo F-1 F-2 F-3 Bar Bar-1 I want to ask DB and want to get previous F - # . I've tried to use the operator like below: Select * Link where '$ slug%' object timestamp DESC limit1 "; my problem if $ slug == f gives foo-3 instead of f-3. Is there a better way to use% wildcard? select link * Where '$ slug-%' or slug = '$ slug' order timestamp DESC limit 1 option, if you do not have or If you want to do this, you will need to use a REGEXP match. However, you probably leave the ability to use the index for the query if you do this.

SQL Server stored procedure with optional parameters but not all optional -

What is possible to create a stored procedure is a parameter that has all the different options, but in at least the parameters Should one be from? For example, if I have a process that updates the record, then I will have to pass in the record id, and then at least one column has to be updated. I must check the process to provide at least one additional parameter / column to do this . Why do I want to be a programming language of my choice rather than a stored proc? This logic is the type of investigation that TSQL is not very good; To check this, the syntax will be "icky" and it will slow down. In addition, the biggest performance gain is running a stored proc you compile SQL. In this situation, because the SQL needs to be dynamically created, you lose that profit, thus, why is it in the form of a stored procedure?

c++ - Failure to allocate memory resulting in segmentation fault -

I am developing in C ++ and Opansiel this test application would but I did not know that I find it very strange Why is getting the issue proceeds in the segmentation fault some code: output = new cl_float [TestCount * TrainCount]; // Output array output_buf = new cl :: buffer (* reference, CL_MEM_WRITE_ONLY, size (cl_float) * testcount * traincount, tap); // .... some more accessories queue- & gt; Encurred buffer (* output_book, CLTTRR, 0, testcount * traincount, output); Here, the output and output_buffs are signs of their respective data. The seg-fault occurs when I try to access an element of the output array after all processed. On the next debugging, I came to know that it stores the maximum 562 elements, while it should be 2250 (TestCount = 150, Train Count = 15). Apart from this, surprisingly, I can use any element from GDB, but not above 562. I have no problem no doubt that code and I being processed by making sure that all the 2250 output GPU is completed t...

javascript - Using jQuery Mobile Adapter in AngularJS - Applying jqmCompatMode false to Enable Angular Routing -

I am learning AngularJS and have created a small application. Now that it's done functionally, I want to make it style using jQuery Mobile. I have dropped in the results of Tigre and, as my known result, none of my previous ways is working. A solution is outlined, but unfortunately, I still do not understand how to implement it for my routing. Where would the module.config line go to go to set jqmCompatMode? My routes look like this: Angular Module ('myApp', []). Config (['$ routeProvider', function ($ migration provider), {$ routeProvider. ('/ Finds', {templateUrl:' views / find-list.html ', controller: FindListCtrl}) when (' / add_find 'When {template / url:' views / add-find.html ', Controller: AddFindCtrl}), when' {add_find / success', {templateUrl: 'views / add-find-success.html', Controller: AddFindSuccessCtrl}) ('/ Find /: findId', {templateUrl: 'views / specific-find.html', Controll...

Get random values from array on PHP using foreach and array_slice? -

How can I randomize results on this code? I have an array with more than four objects on it, but I would like to get only four out of them but not in order, how do I feel like doing this? It can be done using $ code as foreach (array_slice ?? $ i = 0; foreach (array_slice ($ items_array, 0,4) {$ Output. = 'Item ID:'. $ Item ['id']; $ i ++;} My array one: 6: {i: 0; a: 4: {s: 5: of "title" of: 17: "SPEDITION" of: 2: of "id": 11: "ZCXbgH1JDt4" : 3: of "uRL": 40: "Embed / ZCXbgH1JDt4" of: 5: "image" of: 38: "transport";} I: 1; one: 4: {s: 5: "title" of: 77 : "DC ...... $ output = array_rand ( $ Items_array, 4);

- Where Developers Learn, Share, & Build Careers

In the process of using GIFF, I have written a C ++ program, I've found that the vast majority of the execution function "frames_dummy "The time spent is more precise, from the output of GPRF, calls a function with the frame in 76.38% of the sampling time and 24611191 in the first entry in the flat profile - _orama. In short, I am trying to understand both of the frame_dummy refers to - as I do not have such a function - as well as what it means for my optimization efforts. Although unlikely to be relevant, I should add that this program was designed to solve POSON's equation using multigrid algorithms, and employs MPI to parallel the work is. However, although MPI function calls are present, the above described GPRF output has been obtained from running only one process. I should also note that there is no dependency other than the MPI in my program and it has been compiled with G ++ 4.6.1. Here's a very good explanation: But I'm not sure why you...

c++ - How do I determine if a particular key is unique in a multimap? -

मेरे पास एक multimap & lt; key_type, value_type & gt; है और मैं जानना चाहूंगा कि क्या कोई विशेष कुंजी सबसे अधिक समय में मानचित्र में प्रतीत होता है। मुझे पता है कि multimap.equal_range (key) को एक iterator को खोजने के लिए वाले रेंज की शुरुआत और समाप्ति पर कॉल कर सकता है कुंजी लेकिन मुझे यह जानना चाहिए कि क्या श्रेणी.first और range.second के बीच एक ही तत्व है। क्या वहां है यह range.end के बराबर है, यह देखने के लिए range.first मान को बढ़ाना से बेहतर तरीका है? चूंकि multimap :: iterator द्विदिश है, यह वृद्धि को पूर्ववत करने के लिए कोई बड़ा सौदा नहीं है, लेकिन यह ऐसा करने के लिए ढलान लगता है। क्या आप जांच सकते हैं कि == 1?

java - I'm trying to read from a word file .. I don't know which jar file I missed : -

I am trying to read a word file. But in reality there is a problem that "type org.apache" .xmlbeans.XmlException can not be solved. This is indirectly expected. Class files are referred to ".. then can i know the problem ?? import org.apache.poi.xwpf.extractor.XWPFWordExtractor; import java.io.file; Import java.io.FileInputStream; import java.io.IOException; Import java.io.InputStream; Import java.io * *; Import org.apache.poi.poifs.filesystem.POIFSFileSystem; import org.apache.poi.xwpf .usermodel.XWPF document; public class Read_File {public static zero main (string [] args) {try {fileInputStream fis = new FileInputStream ("C: \\ user \\ desktop \\ m.docx"); Org.apache Poi.xwpf.extractor.XWPFWordExtractor oleTextExtractor = New XWPFWordExtractor (new XWPFDocument (FIS); System.out.print (oleTextExtractor.getText ());} Hold (Exception E) {e.printStackTrace ();}}}} I have already encountered the problem. Adding Xmlbeans-2.3.0.jar can fix this proble...

java - does swing view needs synchronized methods if its set by new threads in controller -

There are actually more than 1 question. Looking at the model view and controller (I find a lot - see your controller knows, and the controller knows.) Whether the new thread in the controller is original Can be removed from the form - with the new runnable () {(..) run () {}} or in some "swing methods", to make it properly ? Maybe with timer or invokeLater () ? The other thing is that this new thread has started - when it is running on the straight view, set some JTextField s (and so on) - what do the ways As if setThatTextFieldWithNewValue (msg) needs to be synchronized as a result of the call from the required thread? If so - is there any better way that gives less time to spend time about less coupling and essential synchronization? Anything in the swing to run on EventQueue is If you have swing There is no way to tell, it will already be running there (such as an action listener) If you do not know if you are in the event queue, then EventQueue...

Looking for an XMPP server library written in Ruby -

I'm in the process of creating a web-based chat app written in Ruby. I also want to provide the ability to connect to this chat server using an XMPP client. That's why I'm looking for a library which is a real XMPP server that I can add to my existing ruby ​​code (or using something like radis in between). However, I have a hard time finding a server library (though I can find many libraries to work as a customer who consumes or interacts with the server). I'm not feeling too much with XMPP so that I can demand the wrong thing. Can you use XMPP server libraries? XMPP server libraries usually do not mean much, because XMPP servers (such as an HTTP server for example) run as standalone long-term processes. You usually do not embed them into your application. XMPP is also one step ahead of HTTP - there are there HTTP server libraries that allow you to listen to a port, and send a response. The XMPP is completely different in this aspect - the XMPP sessions last lon...

- Where Developers Learn, Share, & Build Careers

I have an encryption method, which has the following behavior: Each letter of the password is placed through a method The ASCII value obtains that the bytes of that character vary one side, and then the second way, and returns the following: $ shifted_left $ Original_char $ Shifted_right An example of a password is divided into pieces before it: a p8à ?? A0à | s9à | s9îw, a ?? O7är9à ?? D2à ?? G3à ?? O7à ?? E2a | s9à ?? H4a ?? E2är9à ?? E2d2 After this, the use of the string formed from going through each character in the original password is mixed using BCrypt. Are the passwords around these junk characters improving the strength of the password or to protect them from breaking through rainbow tables / dictionary attacks? pre-computed rainbow tables, because you have a unique Algorithm is probably someone has not cared to create a rainbow table. However, the same password is still hashes for the same hash, so an attacker who tries to haveh all your passwords ...

c# - Windows form colors -

I used Visual Studio 2010 in Windows XP, the problem is, other versions like W7 .. or changing my system The theme of upgraded versions also changes the colors of the forms, so can anyone tell me that despite the elements to change the colors dynamically according to the OS or the subjects ??? Just comment on the code below from the Program.cs file Is: Application.EnableVisualStyles (); And then apply the color or theme to whatever you want and it will be affected in spite of the operating system.

opencl - Execution flow on the host just after starting the kernel -

I have many questions for which I need some explanation. Sorry if they are very basic. When we use the kernel to clEnqueueNDRangeKernel, then what exactly is the host code, does it wait for the kernel to complete or ..? Say that we have many kernels, what happens in this case? Does it happen that if a kernel has completed, then the host can get results from that kernel, while others are still computing. I openCL spec to clCreateBuffer (). Check the details of flag CL_MEM_USE_HOST_PTR for your convenience I posted it here: "This indicates that the OpenCL implementation wants to use the memory referenced by host_ptr as storage bits for the memory object." What can I really mean by "app" and "open anecd implementation" Apart from this, it also states that "OpenCL implementation is allowed to cache buffer content." The kernel module is executed as encrypted and asynchronously , The Cloncondirenge kernel continues immediat...

c++ - Initializing a control's member variable from device context -

I'm writing custom control obtained from CWnd I use my custom presentation to get my custom control What is the right way to do this, to start the member's variables (such as: a memory DC)? I think the device will not be ready in the reference constructor. So what's the next option? Is it OnCreate event protected by using DC? I'm probably looking for something like OnInitDialog , but it has a custom control, no dialogue. Update : I have no chance of receiving custom control via the original editor because of the WM_CREATE event because it is sub-clinging Already made.

selenium ide - How can i store the result of verifyElementPresent ie either true/false in a variable, for further use? -

मैं परिणाम को सशर्त प्रयोजन के लिए इस्तेमाल करना चाहता हूं। आप निम्न कोड का उपयोग कर सकते हैं आप अधिक उपयोग के लिए "चेक" चर में "सच्चे" या "गलत" मान प्राप्त करेंगे। & lt; tr & gt; & LT; टीडी & gt; storeTextPresent & lt; / टीडी & gt; & Lt; td & gt; मैं सत्यापित करने के परिणाम को कैसे संभाल सकता हूँ, अर्थात् या किसी भी सही / गलत में चर, आगे उपयोग के लिए? & Lt; / td & gt; & LT; टीडी & gt; जाँच & lt; / टीडी & gt; & Lt; / टीआर & gt; & LT; टीआर & gt; & LT; टीडी & gt; getEval & lt; / टीडी & gt; & LT; टीडी & gt; चेतावनी ($ {जांच}) & lt; / टीडी & gt; & LT; टीडी & gt; & lt; / टीडी & gt; & Lt; / टीआर & gt;

- Where Developers Learn, Share, & Build Careers

I'm trying to selfupdate my macports, but I get the following message : Error: / opt / local / bin / port: Port auto-update failed: Error synchronizing MacPort sources: Command execution failed I have my / opt / Local / bin / macports and the directory does not exist; instead, it is in / opt / local / var . Can this be the problem? Edit: -dt is running, I get the following: [user / user] & gt; Self-promotion discounts: The location of the McPort sources: /opt/local/var/macports/sources/rsync.macports.org/release/base --- & gt; Updating base sources of MacPords using Rsync rsync: failed to connect to rsync.macports.org: Connection refused (61) rsync error: Error in socket IO (code 10) / sourcecache / rsync / rsync- 42 / rsync / clientserver.c (105) [receiver = 2.6.9] Command failed: / usr / bin / rsync -rtzv --delete-after rsync: //rsync.macports.org/release/base/ / opt / Local / var / macports / source / Rsync.macports.org/release/base Exit code: 10 ...

java - Force Delete all files from a folder -

I am using a specific code to delete files from a folder but it is proving to be very problematic because perhaps I forgot to turn off an InputStream or two. My such code is so big that I can not see all the inputstream that I have not stopped. Is there a way to delete files or whether there is an open InputStream or not? This is the code I am using; file = new file ("C: ABC details / last"); File [] finlist = fin.listFiles (); {If (finlist [n] .isFile ()) {System.gc (); for {int n = 0; n & lt; phenist. Length; n ++}; Thread.Sleep (2000); Finlist [n] .delete (); }} I have edited the code. This version works. There is no input stream example in the provided piece of code. Do not write too many unauthorized IO codes, please take a look at the project. Especially in class, for the removal of the file. Your code can look like this: FileFin = New file ("C: ABC for details / last"; (File file: fin.listFiles () } {FileDeleteStrategy.FORCE.delete...

how to cropp image in titanium by programming? -

I am implementing an iPhone / Android application using Titanium in which I want to crop the image. Implemented. 1) Open camera 2) Take photo 3) Display picture in application 4) PIC crop with some area I have worked above 3 steps, but I have to face the problem for the crop Used to be. I code down for the crops var file = titanium.file system.gatefile (header1) .toBlob (); Var Crop = File. Image asproped (10, 10, 29, 232); var croImg = Ti.UI.createImageView ({image: file, above: 0, left: 0, width: 29, height: 232}); win1.add (croImg); But I can not get success if you recommend me if you recommend me an appreciate. Thanks Another way to do this with a different image Smaller scenes than images and what to display part. Check out this link which gives a good example:

java - In HMVC how to send model change event to multiple views? -

I can see many ways to do this. In the model, a controller model sends an event to this controller and the other controller passes it through the hierarchy to the viewer and To view changes through listeners (list of models listener) on all interested controller models Listen to all interested thoughts models lets see. Your third option is old school ideas Is notified by the model, and the scene decides how to handle it. It's fine but the other options are better. Your second choice seems to inform the views by the controller (make sure there are different administrators to update your ideas and update the model). Therefore the controllers can modify events before going to see them. Administrators can customize the data for the scene. The scene should not do this, the job is only to show something (option is to do this in three options). Your first option is a small improvement of option to filter two event premises with hierarchy, it may be better i...

hadoop - Difference between Nutch crawl giving depth='N' and crawling in loop N times with depth='1' -

Background of my problem: I'm running Nutch1.4 at Hutchop0.20.203. I'm working on the niche segment to get the last output. But waiting for the entire crawl before running the matrade, the solution causes a long lasting run. Now I am triggering the mapping as soon as they are released, as soon as the jobs are removed from the areas. I give a depth = 1 to crawl a loop ('n = at the time of' depth). I am losing some URL while I crawl in the loop in depth 1, giving depth while making the N times equal. Please get below the pseudo code: Case 1 : Noah Crawl = 3 // on Hobachup Create a list object to store, which we are going to pass the Enchatch list nutchArgsList = new ArrayList (); nutchArgsList.add ("-depth"); nutchArgsList.add (integer.stosting (3)); & lt; ... other nutch args ... & gt; Case 2 : In Crawling In Loop 3, Crawling In Loop 3 (multiple times with depth) = 1 (int depth = Roe; =; Depth; Stretch; ;;; Depth; Run ++) { // Cre...

jquery - MVC3 getting values from edited rows in datatable -

I am using MVC3 to create a web application. In my web application, I have a dataset displayed object value with a checkbox in each row that the user can check / uncheck. What I would like to do to fix a setup, so that the user can check / uncheck many boxes without having to do anything. Then when the user is done, he presses the "made" button next to the table. Now this happens when I want to do magic. I want to see all the rows to be assembled in an array so that I can send the entire table in the controlling method. I have found in the DataAtable API that I can use the code var table = $ .fn.dataTable.fnTables (true); If (table.length & gt; 0) {$ (table) .dataTable () FnAdjustColumnSizing (); } so that all data can be saved in one variable. How can I use it now? In addition to this, I want all this when the user presses my Ajax. The ActionLink, which is currently returning only one more view. Is it possible that my action link sets a variables of the JavaS...

- Where Developers Learn, Share, & Build Careers

I have a windows form written in VB.NET (I'm also taking suggestions in C #) and I have Two datagrid views are vertically aligned, so above each other. I would like to be able to maximize the window and would like to extend the datagrid window with the window so that it looks roughly the same but bigger. I have tried to use the docking and anchoring control and I have not found any way to do this without having to overlap or leave huge spaces in which this should be expanded. Thank you You first make grid and second dock to fill on top While docking should be executed before top docking (you can adjust it in the document settings tool window) This solution will first release the grid at the same height. You can also handle the form resize event and calculate the position and size of the grid.

Need help understanding this Python Viterbi algorithm -

I am trying to replace a Python implementation of the Viterbi algorithm found in Ruby. The whole story can be found in the lower part of this question with my observations. Unfortunately, I know very little about Python so that the translation is proving as difficult as possible for me. Even so, I have made some progress now, the only line that is completely melting my mind is this: prob_k, k = max ((probs [j] * word_prob (text [J: i]), j) Does anyone please tell me what is this doing? Here is the full Python script: imported by importer imported by # text to the group, the group will have a 'compound word' such as 'bad weather' DEF viterbi_segment (text): probe, stays = [1.0], [0] # in compound Iterate on letters # Such as [W, icked icked we ather ather], [y, cecade weather] and so on. I (1, lane + 1) in the category: # I do not know what this line is doing and I Range (max (0, i - max_word_length), i) adding value to # ARMs, prob_k, k = max ((probs [j] * ...

GUI components not submitted when publishing to gallery: Google App Script -

When I published an app for the Google app scripts gallery for spreadsheet tools, then uploading the GUI builder components Failed in Do you know how should I go about treating it? I just received this: Invalid argument: Resource Name (line 37) Line 37 corresponds to the code when attempting to execute the code Where the code is present, which loads the GUI builder component in the UI app. I had to rewrite the code and create visual element according to the program, but it seems that it would be defeating purpose! Many thanks, Eamonn You are right , The GUI Builder gets smaller when you try to share it. Being through the script gallery, there is no way to export it and import it into any other script. And the reason for this is that I have never used it. Sometimes I play with it to ridicule quickly to see if an in-script script will actually look at any idea, but I'm going to develop as the real thing anytime. You should open an issue report, because publishi...

- Where Developers Learn, Share, & Build Careers

Can you recommend some libraries to manipulate the available splinines for Delphi? I did a search, but I have C / C ++ / Python binding. What features do I need: Add Splene to 2D: Rotating, translate, mirror, scale and intersecting, spelling with polyline, connecting spletting with palletline. Edit: What is GLScene is because I need only support for 2D Splene And besides for 3D surfaces, I do not want the library to be kept with the rendering engine. I want to make some calculations and GLCCN is not in line with my needs. Take a look at this Here is an example of duck nurse ... Good luck ...

- Where Developers Learn, Share, & Build Careers

I want to node the file. Exe But ignoring all other .exe files, how can I get it? My code is not working: #Compiled source #################### build / *! Node.exe * .exe * .o * .so * .com * .pdb * .i Specify the following order: ! From Node.exe * .exe : *. Exe! Node.exe Previous description "Overwrite" last.

ruby on rails - Headless gem: webkit_server: cannot connect to X server -

I have some problems running Kathrybara webkit, with Headless Mani, XVFB and our CI server. We use this setup for automatic integration testing and Javascript testing of our Ruby on Rails 3.2 app. During the trial, it complains that webkit_server: X can not connect to the server but when I ps aux | Grep Xvfb Dedicated 1602 0.0 0.1 61696 1912 points / 2 S + July 10 00:00 / USR / bin / XVFB: 99 -Screen 0 1280x1024x24 -ac I am running XVBB. If I run a test with - trace then this only shows the error log above and I can not debug the error. Any ideas how can I get some more information, or even a solution? I was trying to work with Kapira-Webkit Mani with Capira and ended up with my tests Using xvfb-run in CI job for xvfb-run bundle ACC CAK ... Is your CI executing a job?

- Where Developers Learn, Share, & Build Careers

मेरी समस्या यह है कि मुझे HTML जैसे डेटा 84 101 & lt; br & gt; कुछ पाठ & lt; br & gt; तालिका सीमा = '1' & gt; यहां एक टेबल परिभाषा आती है & lt; / table & gt; और XmlPullParserException निम्न पर फेंक दिया जाता है: जबकि (eventType! = XmlPullParser.END_DOCUMENT) {if (eventType == XmlPullParser.START_TAG) {// कुछ करना और दूसरा} यदि (eventType == XmlPullParser। END_TAG) {// कुछ और करें} eventType = xpp.next (); / / XmlPullParserException यहाँ फेंक दिया गया है, विधि पर अगला ()} और बहुत दिलचस्प और अजीब हिस्सा यह है: अपवाद केवल एक नेक्सस पर फेंक दिया जाता है एस (ओएस संस्करण 4.0.4), कम ओएस संस्करण वाले उपकरणों पर, यह विधि अच्छी तरह से काम करती है। त्रुटि संदेश निम्न है: org.xmlpull.v1 .XmlPullParserException: अनपेक्षित टोकन (स्थिति: TEXT 84 101 @ 1: 8 java.io.StringReader@414e3248) क्या कोई मुझे समझा सकता है कि यह केवल आईसीएस पर क्यों हो रहा है? धन्यवाद। 1) कैरेक्टर एन्कोडिंग: क्या आप नेक्सस एस के साथ अलग-अलग एन्कोडिंग का उपय...

php - "Unable to download. Content not supported" when forcing download on Android device -

I am writing a website that automatically downloads an APK when a link is "http: // www. Sample- Link.com/download/downloadApp This is my code on PHP code. $ fileName = "./uploads/MyAPK.apk"; header ('content-type: application / download '); Title (' Content-Transfer-Encoding: Binary '); readfile ($ fileName); / Pre> When I go to that link on a PC, It works. When I do it on an Android device Can not download. It is unable to download "stuck" with error in the download queue content is not supported " I tried to restart the device but it does not work. How to fix context: "

How to use Skype Java API inside android application? -

I want to create an application that will monitor the other IM chat history in the phone. I could not find any Skype API for Android, though I got Skype 4 Java AP from the Net. I want to use it in the Android application. I've imported the .jar file of that API on my Java Build path. When I run my code, I'm lynchkaype. Jenilib and Libskype I'm getting errors for the file. I can not even delete that file, because when I try to delete it, I get an error. How do I do this? How can I use Skype's Java API inside the Android app? According to the current writing of this answer, there is no Android implementation of Skype. There are many third party chat APIs, although I personally can not work with any one because I can not name any one. The Skype4Java API is causing you to throw errors because it was not designed to remove .jar files for use with Android, you have to delete all its references and try to delete it It must be removed from its build path.

cannot create forloop array php -

& lt; ul class = "selectplanparagraph" & gt; & Lt; li & gt; & Lt; h3 & gt; & lt;? Php ईको $ comparetext [0] [0]; ? & Gt; & lt; / h3 & gt; & Lt; img width = "280" height = "80" src = "& lt;? Php गूंज $ comparetext [0] [1];? & Gt;" alt = "" & gt; & Lt; p & gt; & lt;? Php ईको $ comparetext [0] [2]; ? & Gt; & lt; / p & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; h3 & gt; & lt;? Php ईको $ comparetext [1] [0]; ? & Gt; & lt; / h3 & gt; & Lt; img width = "280" height = "80" src = "& lt;? Php प्रतिध्वनि $ comparetxt [1] [1];? & Gt;" alt = "" & gt; & Lt; p & gt; & lt;? Php ईको $ comparetext [1] [2]; ? & Gt; & lt; / p & gt; & Lt; / li & gt; & Lt; li & gt; & Lt; h3 & gt; & lt;? Php ईको $ comparetext [2] [0]; ? & Gt; ...

resx - ArgumentException for a localized app in Windows Phone? -

Image
I have translated my app into 12 languages ​​but now I think that while simulators in Simulator, simplified Chinese (Zee- CN), it shows that argument expression - value does not come within the expected range this error starts ; Insert (); of App.xaml.cs. This error is only for Chinese and not for other languages ​​only in debug mode. Although the app does not end, if I continue, it works as expected Is anyone familiar with it? Can this error be ignored? I've included the screenshot. Alpha

.net - DotNetZip extracting to stream problems using provided code sample -

I am trying to open a zip file and extract a password and 256 AES encrypted text file in a stream without which I Put a copy of the text on the drive you can read if I understand what I want to do correctly, then using a stream I have to complete it. I am not experianced with a lot of code, so im using the example I found on DontNetZip site which is bellow. Problems 2 times, it throws 2 errors when processing, I expected that someone can help with these 1 occure the first error on the 3 line - "As the CrcCalculatorStream = e1.OpenReader uses the" error 'object reference is not set for an instance of an object,' I have tried declearing and new and still it crashes on that line 2 second error is after a line on a loop - "If (s.Crc32 > e1.Crc32) then there is a squigly line under" error and S.Crc32 and it is sais that CRC32 Under CrcCalculatorStream, e1.Crc32 is not a member of a similar error which is not a member of Ionic.zip.zipEntry is the code t...

hover - css for permanent change on mouseover -

Visibility: hidden and using : Hover . However, I want the second state, with which the changed element will continue, even when the mouse element leaves. It would be easy to do with javascript, but is there a way to do it in pure CSS? CSS is stateless, so there is no way to change the state in a permanent manner. The only way I can think of approaching is to increase the size of the element (or the sub-element which is large) so that the mouse does not go, but it will blur the rest of the page and controls.

- Where Developers Learn, Share, & Build Careers

If the service is loaded via ABC, then it is possible to communicate with the Android Debug Bridge (ADB) from within the app is? Here's the case of use: I can take a screenshot of the framebuffer without ADB, which is a bit slow to broadcast on the phone with no problems, but to completely broadcast the raw buffer USB Especially if I want to take every 2 seconds more than one frame, what I would like to do is use the framebuffer from within an app on the phone, which can then transmit or watch on WiFi either Sector could further compression. Does not work on jellybin (they stop the way to set up native services on / data / local), so I would like to join the ADB service through some socket or whatever and the way framebuffer requests To be released. I am fine with connecting via USB to load ADB service, but once connected, I want to process the phone before transmission. ONLINEER: Is this possible? $ adb shell screen cap-p \ | Gzip -c \ & gt; /mnt/sdcard/s.png....

python - Shortcut for super(type(self), self) -

I do this often when a method is overridden in a sub class: def method_x self): x = super (type (self), self). Mythoix () [some additional code] return x My question is: a short cut for the super (type (self), itself) Do not do this: if super as the first code by using type (self) So, it must have been written not to take two arguments in the first place. You should not give an expression to the actual class here that can be converted to sub-sections of class. The need for super which should be the current method definition class, as you are super list of bases to start searching for it. Python 3 knows about it and behaves magically with super () on time compilation, but in Python 2.x this is just a simple task. [edit to add my starting points] In fact, there is another less used method to use super () in Python 2. x You can use an unbound form and you can force it when you access it: & g T; & Gt; & Gt; Category A (object): def foo (self): pr...

- Where Developers Learn, Share, & Build Careers

I am quite new to Python .. I was wondering how to remove whitespace just before the output. Output is Paid Enter height: 5 * *** ***** ******* = ******** * * = is the text slot marked with "White location" I need to remove .. Thanks guys! I hope that I have found what you say here: height = input ("Please enter tree height:") height1 = height trunk = height / (I + 1) * 2) -1) Height = height for -1 / 3 spacewise = str (i ) For category (0, height): print spacebar * (height -1) + "*" * ((i + 1) * 2) for category P (0, trunk): print spacebar * (height 1 -1) + "*" I think the bus (height) and altitude 1 instead of 1 operand -1 seems to be for example It did the trick. If this is not what you want, please just tell me.

C# Excel Addin used like formula -

OK, I'm developing an Excel addin that changes the text in a cell, it changes. I want to work on it like things are like full values ​​in axle when you can type a cell = ABS (yOurnumBER) and then it's the text of the cell The full value of your number will take place How do I set up Excel to add a custom option that would like to accept the string in a fashion like this, instead of = molem (YOURSTRING) It seems that you want to create an Excel user-defined function (UDF) using C # Are there. The best way to do this is to use the free library (which I develop). The code will be allowed from: [ExcelFunction (description = "My crafty work")] Public static string mole (string input) {return "you pass" + input; } = Molem ("some words") in your worksheet .

- Where Developers Learn, Share, & Build Careers

Say I want to be a server that can accept socket connection and monitor which server is plugged in. P> The server can do two things. Monitor / accept client connections through 1 TCP / IP; 2 Number 1 I'm planning to use Linux sockets to accept client connections. I'm planning to use the number 2 to monitor the library library device that has a tutorial on signal 11. I already have code on Linux sockets and Libudev.h .. but they are separate user space apps, I need to merge them as one. How should I do this?. Or any suggestions how can I do this? Thank you So do you want your I / O multiplex? If this is all you ask then you have a choice of options to choose the method or selection of traditional Unix method. - Or you can go for spawning thread for all those connections which require I / O. This is naturally the easiest option, but it is risky to maintain data integrity between two threads, locking and a concrete implementation of the race in the...

replacement for Autofac.Integration.Web.Mvc (upgrading from autofac 2.3 to 2.6) -

Autofac.ControllerFactory as a class dll in autofac.Integration.Web.MVc autofac version 2.3.2.632 itemprop = "text" Was pre> public class AutofacControllerFactory: DefaultControllerFactory {Public AutofacControllerFactory (IContainerProvider containerProvider); Protected Override IController GetControllerInstance (RequestContext Reference, Type Controller Type); Public override zero release controller (IC controller controller); } The latest version of autofac (2.6.3.862) is not Autofac.Integration.Web.Mvc, but instead it is Autofac.Integration.Mvc. Although this is not an AutofacControllerFactory class in Dll. Dll Autofac.Integration.Mvc is defined as a class AutofacDependencyResolver defined public class is AutofacDependencyResolver: IDependencyResolver {public AutofacDependencyResolver (ILifetimeScope container); Public AutofacDependencyResolver (ILifetimeScope Container, Action & lt; ContainerBuilder & gt; configurationAction); Public AutofacDepen...

virtual machine - How to minimize memory usage and install Hyper-V role on Windows Server 2008 R2 with SQL Server already installed -

कैसे स्थापित करें और Windows Server Std पर Hyper-V भूमिका सेटअप करें 2008 R2 SQL सर्वर 2012 के साथ पहले से ही स्थापित है। SQL सर्वर इस मशीन की प्राथमिकता है। केवल एक आभासी मशीन स्थापित हो जाएगी और आपदा वसूली परीक्षण के लिए इस्तेमाल किया जाएगा सर्वर के छवि बैकअप से पुनर्स्थापित करता है, जब वीएम को हटाया जा सकता है परीक्षण किया जा सकता है ताकि हम दूसरे सर्वर का परीक्षण कर सकते हैं अन्य सर्वर कम मेमोरी के समान या कम शक्तिशाली होते हैं। मैं इसके लिए एक विभाजन बनाने की योजना नहीं बना रहा हूं। हमारे पास अब तक हमारी RAID ड्राइव पर काफी जगह है मैं स्थिर मेमोरी का उपयोग करने के बारे में सोच रहा था और वर्चुअल मशीन को 4 जीबी रैम के लिए सीमित कर दिया और SQL सर्वर के लिए 12 जीबी सेट कर रहा था। हाइपर-वी होस्ट करने वाला सर्वर 16 जीबी रैम, इंटेल क्सीन, ई 5345 @ 3.33 जीएचजेड (2 प्रोसेसर) के साथ डेल पावरएड्ज 2900 है। चर्चा: यदि हमारे पास कोई वर्चुअल मशीन स्थापित नहीं है या वीएम का इस्तेमाल / परीक्षण किया गया है तो हायपर-वी कितनी मेमोरी होगी? हाइपर-वी का उपयोग कितना मेमोरी होगा यदि हमारे पास...

I'd like to create a mock object in python -

I need a dummy object that I can install in Python and create attributes through a setter for programm I am I made it into an object but probably for a good reason which was not working. How can I use for such purposes in Python, do not really define yourself You can not use the Fake = object , instead of just object Class duplicate (object): pass fake = mock () setter (fake, 'test', 'whatever')

- Where Developers Learn, Share, & Build Careers

Images are blurred when I see in the built-in mobile safari, though the images are completely sharp. I do not know what the images are blurred, the resolution of images is sufficient, so there is nothing with retina display in it. You are using HTML to resize your images in Photoshop or one of the files in the code Use to create separate, recompiled small versions. The browser diminishes the size of the images, you should use the software to change the size (if you wish, it can be done in your code). Just putting an image size in your markup, it can change a non-reciprocating shape that often looks nonsense. This link is dated, but it says what you should know. .. The only reason that it works on PCs is that the modern PCs will remplling again when they resize in the browser. They will not do all this and probably not mobile.

- Where Developers Learn, Share, & Build Careers

संबंधित सॉफ़्टवेयर: Red Hat Enterprise Linux सर्वर रिलीज 6.3 (सैंटियागो) Cpanel स्थापित 11.34.0 (बिल्ड 7) पृष्ठभूमि और समस्या: मुझे एक डिस्क उपयोग चेतावनी (cpanel के माध्यम से) मिल रही थी क्योंकि / var पर भरना लग रहा था मेरा सर्वर धारणा यह होगी कि एक लॉग फ़ाइल बहुत बड़ी हो रही है और विभाजन को भरना है। मैंने हाल ही में एक बड़ी लॉग फ़ाइल निकाल दी और लॉग फाइल को अधिक नियमित रूप से घुमाने के लिए मेरी syslog कॉन्फ़िग को बदल दिया। मैंने / var / log / somefile जैसी कुछ हटाई और संपादित /etc/rsyslog.conf इसका कारण यह है कि मुझे सीपीएनएल द्वारा जारी डिस्क उपयोग रिपोर्ट चेतावनी के बारे में संदेह था जो मुझे मिल रहा था क्योंकि यह सही नहीं था। यह वह है जो डीएफ विभाजनों के लिए रिपोर्ट कर रहा था: $ [/ var] # df -h फाइल सिस्टम आकार प्रयुक्त उपयोग की गई संख्या% / / dev / sda2 9.9G 511 एम 8.9 जी 6% / tmpfs 5.9G 0 5.9G 0% / dev / shm / dev / sda1 पर आरोहित 99 एम 53 एम 42 एम 56% / बूट / डेवि / एसडीए 88 88 जीजी 384 जी 455 जी 46% / होम / डेवि / एसडीबी 1 9 .99 जी 151 एम 9 .3 जी 2% / टीएमपी /...

php - Cookies not being set but rest of code executing? -

Good it's really confusing I have two pages, A and amp; Both use the following code: $ row = mysqli_fetch_array ($ data); $ _SESSION ['user_id'] = $ line ['user_id']; $ _SESSION ['username'] = $ line ['username']; Setkey ('user_id', $ line ['user_id'], time () + (60 * 60 * 24 * 30)); // Setkeykey ('username', $ line ['user name'], time () + (60 * 60 * 24 * 30) ends in 30 days;); // expires in 30 days $ home_url = 'http: //' $ _SERVER ['HTTP_HOST'] Dirname ($ _ SERVER ['PHP_SELF']) '/main.php'; Header ('location:' $ Home_url); A code will execute after the settings of the headers (you have been removed for easy) and then set the header; After setting the header of B. will execute the code and will not set the header. I have checked a lot of answers, and there is no white spot, the main.php file is set to normal, A and A; The B file looks alike, but which is useless wit...