unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
How do I make a JSON object with multiple arrays? === I've never used JSON before so I'm not familiar with its syntax. At the moment I have multiple arrays containing different pieces of data. I would like to create one JSON object, that contains the multiple arrays each with several pieces of data. E.g. An object called cars, containing multiple arrays each for a different make of car. In each array would be the model of car along with some other types of data e.g. number of doors (doesn't really matter its just a fictional example.) It would be greatly appreciated if someone explained the syntax with an example. Thanks.
0
[ 2, 184, 107, 31, 233, 21, 487, 528, 3095, 29, 1886, 7718, 18, 60, 800, 3726, 3726, 31, 22, 195, 243, 147, 487, 528, 115, 86, 31, 22, 79, 52, 3694, 29, 82, 22649, 9, 35, 14, 688, 31, 57, 1886, 7718, 18, 3503, 421, 2491, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
R - Can not merge a CSV, for some reason === > imqd = read.csv("csv/quest/IMQ.csv") > demod = read.csv("csv/DEMO.csv") > mcqd = read.csv("csv/quest/MCQ.csv") > > length(demod) [1] 145 > length(demod[[1]]) [1] 9965 > length(mcqd) [1] 168 > length(mcqd[[1]]) [1] 9493 > length(imqd) [1] 5 > length(imqd[[1]]) [1] 9965 > > mydata = merge(imqd, demod) > length(mydata) [1] 148 > length(mydata[[1]]) [1] 9965 So far, so good. But, if I try to merge `mcqd` with anything, I lose most of my rows, even though the data looks good to me. > intersect(intersect(names(imqd), names(mcqd)), names(demod)) [1] "X" "seqn" > finaldata = merge(mydata, mcqd) > length(finaldata) [1] 314 > length(finaldata[[1]]) [1] 18 Why are there only 18 rows now? If you want to play along at home, you can [get the csv files here][1]. [1]: https://github.com/skyl/NHANES-opensource/tree/master/1999-2000/csv
0
[ 2, 761, 13, 8, 92, 52, 12666, 21, 272, 18, 710, 15, 26, 109, 1215, 800, 3726, 3726, 13, 1, 797, 1251, 43, 800, 1302, 9, 6824, 710, 5, 7, 6824, 710, 118, 10351, 118, 1660, 1251, 9, 6824, 710, 7, 6, 13, 1, 8376, 43, 800, 130...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are different certificate types, formats in Cryptography === We are adding server certificates verification in SSL handshake for one of our clients. Being very new to Cryptography and C world, thought I would first clear my concepts about these things and then start with implementation. So, I googled a lot looking mostly for Certificates concepts, but couldn't clear up my concepts any better to my satisfaction. Actually it added more confusion. :) Here are some things which I don't understand almost at all: 1. What is base64 format? Is it same as DER? 2. PEM file always contains base64 content? 3. What is the format used by Windows Certificate Store? Is it binary? Can someone please help me here. Would be very much thankful if these things get cleared for me.
0
[ 2, 98, 50, 421, 6259, 2551, 15, 13767, 19, 16277, 15438, 800, 3726, 3726, 95, 50, 4721, 8128, 6259, 18, 25056, 19, 13, 18, 18, 255, 224, 17248, 26, 53, 16, 318, 7421, 9, 142, 253, 78, 20, 16277, 15438, 17, 272, 126, 15, 289, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Paypal sandbox - unable to checkout === I'm trying to integrate Paypal HTML payments standards. I've redirected from my site to the sandbox, logged in with my test customer but whenever I click the pay now button on the 'review your information' screen, the loading animated gif appears and just sits there. Therefore I can't get any further than this with my integration. I've checked the sanbox status page and it isn't reporting any issues, so I wondered if anyone had experienced this before? Is there somewhere i can report it? or do I just have to wait for them to fix it? Also, even though I'm sending through a 'return' param in the POST to Paypal, last time (when I could get the sandbox to work), there was no 'return to merchant site' link, which I rely on to complete the transaction. Does anyone know why this would be? Thanks
0
[ 2, 1372, 6720, 1965, 5309, 13, 8, 2343, 20, 2631, 1320, 800, 3726, 3726, 31, 22, 79, 749, 20, 18399, 1372, 6720, 13, 15895, 11161, 3364, 9, 31, 22, 195, 302, 14147, 37, 51, 689, 20, 14, 1965, 5309, 15, 13, 19287, 19, 29, 51, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Preparing Data Structure and algorithms in a short time period === *Firstly, I apologize if this question isn't suitable for stack overflow. But I needed advice and thought this might be a good place.* Consider a guy who has been slacking off for the last 2 years of college. Now he is in a new semester and feels he falls very short of others in terms on Algorithmic and Programming knowledge. He knows basic C/C++ programming and basic data structure and algorithms. He knows Stacks, Queues and Linked Lists and Binary Search Trees but isn't confident when he sits down to write code. He needs to appear for interviews soon. So, how can this guy improve his algorithmic programming in a short time period (1-2 months). He tried coremen but it's more of a reference and doesn't help much. Your advice will be very much appreciated.
4
[ 2, 7575, 1054, 1411, 17, 15935, 19, 21, 502, 85, 620, 800, 3726, 3726, 1637, 3552, 102, 15, 31, 12059, 100, 48, 1301, 2532, 22, 38, 6445, 26, 7566, 20285, 9, 47, 31, 851, 4978, 17, 289, 48, 530, 44, 21, 254, 209, 9, 2483, 3563...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Pre-Generate Views for multiple DbContexts? === We have an application which uses entity framework 4.1 with the DbContext API. The application has **multiple DbContexts** mapping to different databases and tables. This week we pre-generated the views for the DbContext with [Code first T4 templates for view generation][1] to save on start-up time and everything was wonderful.... until we needed to use the second DbContext. At that point, we got the following exception: > "The mapping and metadata information for EntityContainer 'CodeFirstContainer' no longer matches the information used to create the pre-generated views." Whether we have generated the view for one or multiple of our DbContexts, we get that exception. **How can I Pre-Generate Views for multiple DbContexts and still have a working application?** I looked at the suspicious 'CodeFirstContainer' in the message to discover it was in both Pre-Generated views constructor which looked like: public ViewsForBaseEntitySetsCE5A4DE7E067A5879A835C5C494F186A390ADC2D26E82631FDC17C61E7E3D076 { this.EdmEntityContainerName = "CodeFirstContainer"; this.StoreEntityContainerName = "CodeFirstDatabase"; this.HashOverMappingClosure = "198099ba4b299a8dc37402a5c4c65096d216c3ca5f3c1e6c796d33e723483d74"; this.HashOverAllExtentViews = "85be433ad451c345f4d8e92827653fd9203be3008dd387745798f939514a0b2f"; this.ViewCount = 14; } The only difference between both view constructor was the last 3 properties. ALternatively, if somebody knows how I can tell EF not to use CodeFirstContainer for both DbContexts then I'd be able to change the generate views or DbContext myself and get things working... unless this is included in the hash. [1]: http://blog.3d-logic.com/2012/06/13/entity-framework-codefirst-view-generation-templates-on-visual-studio-code-gallery/
0
[ 2, 184, 20, 782, 8, 17083, 1373, 4146, 26, 1886, 13, 9007, 1126, 11969, 18, 60, 800, 3726, 3726, 95, 57, 40, 3010, 56, 2027, 9252, 6596, 268, 9, 165, 29, 14, 13, 9007, 1126, 11969, 21, 2159, 9, 14, 3010, 63, 13, 1409, 21531, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
setupCCR.exe error...msvcr71.dll not found === Im trying to install weblogic 10.3.5. During installtion I get setupCCR.exe error popup with msvcr71.dll missing. Once i say ok, it says installation complete. I started quick start guide, once i create domain and finish creating server, my server doesnt start up. I guess it because of this popup error. This entire process completes in 5mins. Last time when i installed it took more time. So i assume im missing something. How can i install without this pop up error which confirms its not this issue. I got msvcr71.dll from google search and put them under windows/system 32 folder, but still get the same error.
0
[ 2, 18161, 3384, 139, 9, 1706, 62, 7019, 9, 9, 9, 79, 18, 8990, 139, 4241, 9, 43, 211, 52, 216, 800, 3726, 3726, 797, 749, 20, 16146, 2741, 24268, 332, 9, 240, 9, 264, 9, 112, 16146, 3309, 31, 164, 18161, 3384, 139, 9, 1706, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multithreading with loop === I have made an application for reading RSS and outputting it to labels, but what I am using is a Timer since I want to loop it. I want as soon as my thread finishes, to wait 3 mins, then restart it. What the thread/timer does it makes a panel with 2 labels, one for title and one for description, and in it, i put the rss item's value. The timer does what I need, but the control becomes unresponsive. btw. I am using a custom control.
0
[ 2, 1889, 96, 22883, 29, 5293, 800, 3726, 3726, 31, 57, 117, 40, 3010, 26, 1876, 13, 1224, 18, 17, 5196, 1203, 32, 20, 13173, 15, 47, 98, 31, 589, 568, 25, 21, 85, 139, 179, 31, 259, 20, 5293, 32, 9, 31, 259, 28, 651, 28, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
can i connect to an api after basic or digest authentication, in a google chrome extension === I want to connect to an API which uses Basic or Digest Auth- so the user can use the extension fully, only after he has logged in to the API- the extension will send and receive messages through the API and perform actions based on responses sent by the API. Is such authentication possible for a google chrome extension? Can i ask user to provide userid/password (or API key) through a popup HTML File which is part of the extension? Or do I have to open a new tab in Chrome itself and ask the user to authenticate through that... Which is the best/ideal way to authenticate into a web based API from a Google Chrome extension... Any guides or how-to s would be very helpful for me...
0
[ 2, 92, 31, 6379, 20, 40, 21, 2159, 75, 2125, 54, 14779, 27963, 15, 19, 21, 8144, 13, 12985, 3896, 800, 3726, 3726, 31, 259, 20, 6379, 20, 40, 21, 2159, 56, 2027, 2125, 54, 14779, 10343, 96, 8, 86, 14, 4155, 92, 275, 14, 3896, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
mod_rewrite mask folder name === Looking to do the following: domain.com - root directly with unique files that are different than individual cities. domain.com/city_name - this folder will have CMS elements and individual content based on the city the user ends up at. Ultimately, all files to control the CMS will be in /city_name but I page a file called pageLoader.php?page=$1 so I can do a $_GET['']; and request the name of the city they've entered, example: domain.com/vancouver So, what I need to do is "mask" the city_name folder with /vancouver, /los-angeles etc... Is this possible? How would I go about doing this. ANY RESPONSE IS SUPER HELPFUL on a deadline for a project and having difficulties figuring this out. Thanks.
0
[ 2, 7226, 1, 99, 23716, 5983, 19294, 204, 800, 3726, 3726, 699, 20, 107, 14, 249, 45, 4603, 9, 960, 13, 8, 5900, 1703, 29, 2619, 6488, 30, 50, 421, 119, 1359, 1920, 9, 4603, 9, 960, 118, 5788, 1, 7259, 13, 8, 48, 19294, 129, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Symfony2: setting a cookie === I'm trying to set a cookie within a login controller to achieve "remember me" system. Though I used the exact code I found on the web, things for me are going wrong. I hope you can help me figure out what I'm missing. Let's go through the code: public function loginAction(Request $request) { // Receiving the login form // Get Doctrine, Get EntityManager, Get Repository if(/* login information matche database information */) { // Creating a session => it's OK // Creating the cookie $response = new Response(); $response->headers->setCookie(new Cookie("user", $user)); $url = $this->generateUrl('home',array('user'=>$response)); return $this->redirect($url); } else return $this->render('***Bundle:Default:Login.html.php'); } I included these: use Symfony\Component\HttpFoundation\Response; use Symfony\Bundle\FrameworkBundle\Templating\Helper\RequestHelper; Note that loging-in works fine, the session has been created, but the cookie hasn't.
0
[ 2, 13, 7261, 10229, 93, 135, 45, 2697, 21, 19980, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 21, 19980, 363, 21, 6738, 108, 9919, 20, 4689, 13, 7, 18342, 55, 7, 329, 9, 362, 31, 147, 14, 5340, 1797, 31, 216, 27, 14, 2741, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
xslt - Sorting nodes into different divs === I have to say that xslt is not one of my best skills :( I've read a lot about sorting nodes into different groups and i managed to sort different issues into different groups. But my problem now is, that i have to sort the same objects into groups again. My xml structure looks like this <issues> <issue status="open" type="Bug"> <fix_versions>6.14.0</fix_versions> <title>issue1</title> <description>Description</description> </issue> <issue status="open" type="Feature"> <fix_versions>6.13.0</fix_versions> <title>issue2</title> <description>Description</description> </issue> <issue status="open" type="Improvement"> <fix_versions>6.14.0</fix_versions> <title>issue3</title> <description>Description</description> </issue> What i want is to have a html structure like this: <div class="version"> <a>6.14.0</a> <div class="issues"> <div class="Bugs"> <a href="">issue1</a> </div> <div class="Improvements"> <a href="">issue3</a> </div> </div> </div> <div class="version"> <a>6.13.0</a> <div class="issues"> <div class="features"> <a href="">issue2</a> </div> </div> </div> But all i get is: <div class="version"> <a>6.14.0</a> <div class="issues"> <a href="">issue1</a> <a href="">issue3</a> </div> </div> <div class="version"> <a>6.13.0</a> <div class="issues"> <a href="">issue2</a> </div> </div> This is my xslt so far: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:key name="versions" match="issue" use="fix_versions"/> <xsl:key name="type" match="issue" use="@type"/> <xsl:template match="/"> <xsl:for-each select="//issue[generate-id(.)=generate-id(key('versions', fix_versions)[1])]"> <xsl:sort select="fix_versions" order="descending"/> <div class="release"> <a href="" class="version"><xsl:value-of select="fix_versions"/></a> <div class="version" style="display:none;"> <xsl:for-each select="key('versions', fix_versions)"> <xsl:if test="@type='Bug'"> <xsl:value-of select="title"/> </xsl:if> </xsl:for-each> </div> </div> </xsl:for-each> </xsl:template> I would just need a posibilty to sort the issues inside "<xsl:for-each select="key('versions', fix_versions)">" and put them into different div's. That would be enough for me. Do you have any suggestions? Tried out a lot, but nothing works :( Thank you a lot
0
[ 2, 993, 18, 255, 38, 13, 8, 2058, 68, 16272, 77, 421, 13, 12916, 18, 800, 3726, 3726, 31, 57, 20, 395, 30, 993, 18, 255, 38, 25, 52, 53, 16, 51, 246, 3207, 13, 45, 5, 31, 22, 195, 1302, 21, 865, 88, 2058, 68, 16272, 77, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Set Default Access for MySQL === I'm sure this is an easy question, but I can't seem to find the answer anywhere. When I log into the command line mysql program, I want to have root access by just typing `mysql`. However, I need to type `mysql -uroot -p`, and then enter my password. How can I change this? Thanks, Adam
0
[ 2, 184, 20, 309, 12838, 1381, 26, 51, 18, 22402, 800, 3726, 3726, 31, 22, 79, 562, 48, 25, 40, 2010, 1301, 15, 47, 31, 92, 22, 38, 2260, 20, 477, 14, 1623, 4922, 9, 76, 31, 6738, 77, 14, 1202, 293, 51, 18, 22402, 625, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is basic/digest auth sufficient in terms of security, for using an API from a Google Chrome Extension? === Is basic/digest auth sufficient for a google chrome extension to authenticate into a web based API? Can someone hack into it? I thought that I dont need OAuth because the API is not a 3rd party API but part of my service (for which I plan to create an API and the Google Chrome extension which will use the API...)
0
[ 2, 25, 2125, 118, 1115, 14288, 10343, 96, 6722, 19, 1663, 16, 1221, 15, 26, 568, 40, 21, 2159, 37, 21, 8144, 13, 12985, 3896, 60, 800, 3726, 3726, 25, 2125, 118, 1115, 14288, 10343, 96, 6722, 26, 21, 8144, 13, 12985, 3896, 20, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Accessing a Google App Engine application from a Windows application using OAuth === We have an application built on top of the Google App Engine. We now need to write a Windows 7 tray application that accesses services provided by our GAE application. This implies that we need to first make an OAuth connection to our application, and we are finding it difficult to locate information about how to accomplish this. We have already successfully used Google's [OAuth2 API .net client][1] to establish a trusted connection from our Windows application to the Google API, but this does not seem to also give us access to the Google App Engine which seems to live in a different part of the ether. So first, I would like to ask, are we correct in our understanding that Google App Engine only supports OAuth 1.0 and does not support OAuth 2 as the rest of the Google API seems to support? And second, (assuming the answer to the above is yes) does anyone know of any information or example code where someone has already made a successful OAuth 1.0 connection from a Windows .NET (C#) application to a Google App Engine application? It would be of great help to us to locate such an example. [1]: https://code.google.com/p/google-api-dotnet-client/wiki/OAuth2
0
[ 2, 1381, 68, 21, 8144, 4865, 1406, 3010, 37, 21, 1936, 3010, 568, 635, 1346, 96, 800, 3726, 3726, 95, 57, 40, 3010, 392, 27, 371, 16, 14, 8144, 4865, 1406, 9, 95, 130, 376, 20, 2757, 21, 1936, 453, 10121, 3010, 30, 1381, 160, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Stored Procedure Vs Normal SQL Query in Latest MySQL? === I would like to know whether there is any performance benefit in using the stored procedure in the latest MySQL ? As Normal SQL also works like stored procedure since the db does Syntax checking, Plan is selected, Compiled and cached. What are the benefits with the recent version? Since still few companies are using stored procedure mostly. Thanks In Advance, Kathir
0
[ 2, 8214, 7004, 4611, 1826, 4444, 255, 25597, 19, 5736, 51, 18, 22402, 60, 800, 3726, 3726, 31, 83, 101, 20, 143, 1472, 80, 25, 186, 956, 4234, 19, 568, 14, 8214, 7004, 19, 14, 5736, 51, 18, 22402, 13, 60, 28, 1826, 4444, 255, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to setup https in express.js === I'm pretty much following this tutorial (all other tutorials I found look the same) http://www.hacksparrow.com/express-js-https.html My code is as follows: // dependencies var express = require('express') , https = require('https') , fs = require('fs'); var privateKey = fs.readFileSync('./ssl/rp-key.pem').toString(); var certificate = fs.readFileSync('./ssl/rp-cert.pem').toString(); var app = express.createServer({ key : privateKey , cert : certificate }); ... // start server https.createServer(app).listen(app.get('port'), function(){ console.log("Express server listening on port " + app.get('port')); }); The app starts fine after sudo node app Express server listening on port 443 Now when I curl curl https://localhost/ I get curl: (35) Unknown SSL protocol error in connection to localhost:443 Any ideas?
0
[ 2, 2343, 20, 18161, 7775, 18, 19, 2999, 9, 728, 18, 800, 3726, 3726, 31, 22, 79, 1772, 212, 249, 48, 29724, 13, 5, 1233, 89, 29724, 18, 31, 216, 361, 14, 205, 6, 7775, 6903, 6483, 9, 22983, 3401, 17638, 9, 960, 118, 21230, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
OPC_CLIENT_FOR_ANDROID === I have got question: my task is: I have got a device where is "OPC server", and my task is to create an application which could connect to this server by smatphone with Android so I need "OPC client" for Android.My question is: have you got libraries or some SDK (it not need to be for free) to create this kind of application? thank You very much
0
[ 2, 3088, 150, 1, 150, 18513, 38, 1, 1106, 1, 290, 18524, 800, 3726, 3726, 31, 57, 330, 1301, 45, 51, 3005, 25, 45, 31, 57, 330, 21, 3646, 113, 25, 13, 7, 2594, 150, 8128, 7, 15, 17, 51, 3005, 25, 20, 1600, 40, 3010, 56, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trouble when I try to run ARCHIVE command on X-CODE === Im making an app with Facebook validation and it is working fine on simulator and in the device. But, when I try to "Archive" (Product => Archive) I got this error: ld: library not found for -lfacebook_ios_sdk clang: error: linker command failed with exit code 1 (use -v to see invocation) The libraries are ok, otherwise it would not compile on simulator/device. I dont know if this information is relevant, but my project is an ARC project. Thank you.
0
[ 2, 2572, 76, 31, 1131, 20, 485, 9250, 1202, 27, 993, 8, 9375, 800, 3726, 3726, 797, 544, 40, 4865, 29, 9090, 27999, 17, 32, 25, 638, 1123, 27, 24565, 17, 19, 14, 3646, 9, 47, 15, 76, 31, 1131, 20, 13, 7, 23941, 7, 13, 5, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to select table and count other table === Suppose I have two tables: Customers Name | id | ------------------- Benny | 1 | Wilson | 2 | Joe | 3 | Austin | 4 | Orders Product | id | --------------------- TV | 1 | Hifi-set | 1 | HTPC | 1 | CD | 1 | DVD | 1 | CD | 1 | DVD | 1 | And this is what I want with the results: Name | Orders | ------------------- Benny | 7 | Wilson | 0 | Joe | 0 | Austin | 0 | I'm not familiar with SQL, But I tried: SELECT c.Name FROM Customers AS c LEFT JOIN Orders AS o ON c.id=o.id GROUP BY c.Name But got a wrong result: Name | Orders | ------------------- Benny | 4 | Wilson | 1 | Joe | 1 | Austin | 1 | What do I do?
0
[ 2, 184, 20, 5407, 859, 17, 2468, 89, 859, 800, 3726, 3726, 5787, 31, 57, 81, 7484, 45, 5279, 204, 13, 1, 4924, 13, 1, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 13359, 13, 1, 137, 13, 1, 2571, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
shutdown hook in tomcat (necessary) not running === I have a long running cpu and database intensive thread (that runs at low priority) that can be fired off by my tomcat application by an administrator request. I use a shutdown hook for this thread, so that if the application is stopped forcefully, it can clean up the database state before exiting. Works in standalone mode perfectly, with control-C and canceling in eclipse console. But when running under tomcat, and when I do a: $CATALINA_HOME/bin/shutdown.sh I verified with debug logging that my servlet contextDestroyed message gets sent by tomcat, but for this thread, there is no way that message can stop it, and the important point is that my shutdown hook never fires. I noticed other people saying use contextDestroyed message, but that won't work for me, and also some questions and answers imply that the shutdown hook works for them in tomcat. I am using tomcat 6.0.35.
0
[ 2, 28450, 5559, 19, 2067, 5782, 13, 5, 556, 5052, 18, 1857, 6, 52, 946, 800, 3726, 3726, 31, 57, 21, 175, 946, 17578, 17, 6018, 13633, 9322, 13, 5, 887, 1461, 35, 708, 9857, 6, 30, 92, 44, 3899, 168, 34, 51, 2067, 5782, 3010, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Bit Array Program === So I'm in a summer OO class and we have a test tomorrow based around this project. Basically we need to create an array that holds an unspecified amount of bits and write four functions that perform operations on this array- `Set() //set bit with given index to 1`, `Unset() //set bit with given index to 0`, `Flip() // change bit (with given index)` and `Query() // return true if the given bit is set to 1, false otherwise`. Here's a complete description if anyone is interested: http://pastebin.com/v7BCCYjh and some sample runs: http://pastebin.com/1ijh5p7p The problem I'm having is with the high level concept. I'm pretty sure we're meant to store byte representations of the bits in each index of the array. If that is true, then I'm completely at a loss for how to implement the `Flip()` function. If anyone can give me some pointers on how to approach this (I need to have a good understanding of it by tonight because I have to write out some pseudo code for it tomorrow for a midterm) I would be much, much appreciative. Here's my `.h` if it helps // bitarray.h // // BitArray class declaration #ifndef _BITARRAY_H #define _BITARRAY_H #include <iostream> using namespace std; class BitArray { friend ostream& operator<< (ostream& os, const BitArray& a); friend bool operator== (const BitArray&, const BitArray&); friend bool operator!= (const BitArray&, const BitArray&); public: BitArray(unsigned int n); // Construct an array that can handle n bits BitArray(const BitArray&); // copy constructor ~BitArray(); // destructor BitArray& operator= (const BitArray& a); // assignment operator unsigned int Length() const; // return number of bits in bitarray void Set (unsigned int index); // set bit with given index to 1 void Unset (unsigned int index); // set bit with given index to 0 void Flip (unsigned int index); // change bit (with given index) bool Query (unsigned int index) const; // return true if the given bit // is set to 1, false otherwise private: unsigned char* barray; // pointer to the bit array int arraySize; }; #endif And my constructor: BitArray::BitArray(unsigned int n){ int size = sizeof(char); if(n%(8*size) != 0) arraySize = ((n/(8*size))+1); else arraySize = n/(8*size); barray = new unsigned char[arraySize]; for(int i = 0; i < arraySize; i++) barray[i] = 0; }
0
[ 2, 1142, 7718, 625, 800, 3726, 3726, 86, 31, 22, 79, 19, 21, 697, 13, 4328, 718, 17, 95, 57, 21, 1289, 3450, 432, 140, 48, 669, 9, 11374, 95, 376, 20, 1600, 40, 7718, 30, 2763, 40, 27005, 2006, 16, 10181, 17, 2757, 222, 3719, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tomcat Cluster 6 and ContextListener === <br> On single instance of Tomcat I have a thread that was started when context was initialized. Something like this :<br> public class MyContextListener implements ServletContextListener { private MyThread thread = null; @Override public void contextInitialized(ServletContextEvent sce) { //Start thread... } @Override public void contextDestroyed(ServletContextEvent sce) { //Stop thread... } } This thread performs some important jobs in system every 10 minutes, and it was working fine. Now I have switched to cluster of to instances of tomcat and this thread is running on two instances. I'm trying to achieve different behavior. What I'm trying to achieve: - This thread should be running only on one instance at the time. - If first instance fails (on which thread was running), thread should be started on second instance. I would be grateful for any hint.
0
[ 2, 2067, 5782, 7460, 400, 17, 4141, 13891, 106, 800, 3726, 3726, 13, 1, 5145, 1, 27, 345, 4851, 16, 2067, 5782, 31, 57, 21, 9322, 30, 23, 373, 76, 4141, 23, 2104, 1333, 9, 301, 101, 48, 13, 45, 1, 5145, 1, 317, 718, 51, 1126...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get all Ldap Groups of a user including nested groups in JAVA === I want to find all the groups a user is part of, including nested groups. Like if user is part of group A1 and group A1 is part of A, then I want to get A as well. Following is code , I have tried variuos filterstrings... but nothing is given expected output. String samAccountName = "group"; String searchFilter = "(&(objectclass=user)(memberof: 1.2.840.113556.1.4.1941:="+samAccountName+"))"; //String searchFilter = "(&(objectCategory=person)(memberOf=CN="+samAccountName+"))"; //String searchFilter = "(&(objectcategory=user)(memberof=CN="+samAccountName+",OU=Users,DC=new,DC=com))"; String searchBase = "DC=new,DC=com"; NamingEnumeration answer = ctx.search(searchBase, searchFilter, ontrols); List rolesList = new ArrayList(); while(answer.hasMoreElements()){ SearchResult sr = (SearchResult)answer.next(); ... Any help is appreciated.
0
[ 2, 184, 20, 164, 65, 644, 20472, 1170, 16, 21, 4155, 215, 5618, 69, 1170, 19, 8247, 800, 3726, 3726, 31, 259, 20, 477, 65, 14, 1170, 21, 4155, 25, 141, 16, 15, 215, 5618, 69, 1170, 9, 101, 100, 4155, 25, 141, 16, 214, 21, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Job no issue assignig to multiple users === Let me describe the problem in detail. I have a table called export. Which has a field job_no. When a user comes and fills this query run select max(job_no) as Last_Job from jobs The result is A005 which is the last job number in the table. On the php end i display A006 in the entry form which user is going to fill and submit. The job_no field in the form is read only and user can not change it. Now here comes the problem if multiple user are filling the form at the same time A006 is being displayed to each and when they submit the form A006 is submitted with their record. Which is duplicate and is not required. Now what should be the solution to prevent this situation. I have three solutions but i want to know if there is some better solution. Solution 1 I insert the job number to user_entry form with user id and display it to user. Then when user submits the form i update it. Draback seems that if user cancels the form submission the job_no is useless then. Solution 2 I display the job number to each user and when submitting i check the job number , increment it and tell the user that the job number has already been assigned so he is going to be assigned the next one. if i don't display the prompt message to user he will be under the impression that his job number is A006 where in the database it will be A007. Also if i run ajax request with setInterval it will be a load on server and there is still chance of duplicate. This is necessary to display the job number to the user. So what is the better approach in this situation. Or is there any alternative to this problem?
0
[ 2, 1205, 90, 1513, 13952, 2816, 20, 1886, 3878, 800, 3726, 3726, 408, 55, 4996, 14, 1448, 19, 6110, 9, 31, 57, 21, 859, 227, 7487, 9, 56, 63, 21, 575, 1205, 1, 251, 9, 76, 21, 4155, 1624, 17, 3509, 18, 48, 25597, 485, 5407, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Generalized Inverse Gamma Distribution in R === Mathematica has a four-parameter generalized inverse gamma distribution: http://reference.wolfram.com/mathematica/ref/InverseGammaDistribution.html and gives its PDF on that page too. Has anyone implemented the density, distribution, quantile, and sampling-from functions for that in R? I did make a quick start (the PDF is just the equations on that page translated into R) but if its done already I'll not bother with implementing the CDF and the quantile function. Does a general function for computing the CDF (by integration of PDF) and the Quantile (by inversion of the CDF) of any distribution given the PDF exist? [Note this is *not* the generalized inverse Gaussian]
0
[ 2, 22173, 19, 9453, 14598, 2523, 19, 761, 800, 3726, 3726, 5057, 5996, 12630, 63, 21, 222, 8, 6351, 7307, 22173, 19, 9453, 14598, 2523, 45, 7775, 6903, 28018, 9, 15435, 2781, 9, 960, 118, 540, 124, 6732, 58, 118, 14057, 118, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Prevent Google Indexing my Pagination System === I am wondering if there is a way to include in my robots.txt a line which stops Google from indexing any URL in my website, that contains specific text. I have different sections, all of which contain different pages. I don't want Google to index page2, page3, etc, just the main page. The URL structure I have is as follows: http://www.domain.com/section http://www.domain.com/section/page/2 Is there any way to put in my robots.txt file a way to NOT index any URL containing: /page/ Thanks in advance everyone!
0
[ 2, 2501, 8144, 4348, 68, 51, 19006, 108, 857, 329, 800, 3726, 3726, 31, 589, 5712, 100, 80, 25, 21, 161, 20, 468, 19, 51, 15521, 9, 38, 396, 38, 21, 293, 56, 6604, 8144, 37, 4348, 68, 186, 287, 6362, 19, 51, 2271, 15, 30, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create Json using JsonArray and JsonObject === I want to create a Json structure which is actually a JsonArray inside a JsonObject. The sample structure is: 1. { “req”: [ { “ctrlId”:”txt1” }, { “ctrlId”:”txt2” } ] } 2. { “req”: [ { “ctrlId”:”txt1”, “val” : “val1” }, { “ctrlId”:”txt2”, “val” : “val2” } ] } But i am not able to get it..Any help is appreciated..
0
[ 2, 184, 20, 1600, 487, 528, 568, 487, 528, 8576, 93, 17, 487, 528, 23793, 800, 3726, 3726, 31, 259, 20, 1600, 21, 487, 528, 1411, 56, 25, 1121, 21, 487, 528, 8576, 93, 572, 21, 487, 528, 23793, 9, 14, 5717, 1411, 25, 45, 137, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to set variable in preg_replace (html syntax)? === $con = preg_replace('#(<input type="text"[^>]+?>)#', '<input type="hidden" name="dog" value="$a">${1}', $content); How to set value as variable? This what I've got is not correct ($a, syntax?)
0
[ 2, 184, 20, 309, 7612, 19, 782, 263, 1, 99, 5119, 13, 5, 15895, 22649, 6, 60, 800, 3726, 3726, 5579, 1126, 800, 782, 263, 1, 99, 5119, 5, 22, 5910, 5, 1, 108, 4881, 1001, 3726, 7, 11969, 7, 2558, 1, 500, 2430, 60, 1, 6, 59...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android - how to create most appealing mobile app design === I am a android developer and i have a very short knowledge of photoshop and other designing tool. I have not much interest in designing. But to make my own android app i will have to put myself in desining phase. Please tell me what should i learn or practice so that i will make my application look better than now.
2
[ 2, 13005, 13, 8, 184, 20, 1600, 127, 18518, 3241, 4865, 704, 800, 3726, 3726, 31, 589, 21, 13005, 10058, 17, 31, 57, 21, 253, 502, 1918, 16, 7064, 5347, 17, 89, 15026, 5607, 9, 31, 57, 52, 212, 1163, 19, 15026, 9, 47, 20, 233,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
compare 2 dataset values in vb.net === am using datasets named "ds" and "ds1". i want to compare 2 dataset values are equal or not equal, if not equal then write it in notepad through vb.net.first dataset name ds. values are filled by excel sheet. second dataset values filled by msql table. when compare these 2 datset values am getting error. am new to vb.net error ----- Column 'Phonenumbers' does not belong to table Table my code ------- MyCommand = New System.Data.OleDb.OleDbDataAdapter _ ("select * from [Sheet1$]", MyConnection) ' 'MyCommand.TableMappings.Add("Table", "TestTable") Ds = New System.Data.DataSet MyCommand.Fill(Ds) MyConnection.Close() myconnection1 = New MySqlConnection(str) myconnection1.Open() mycommand1 = New MySqlCommand("select * from dummy", myconnection1) ada = New MySqlDataAdapter(mycommand1) ada.Fill(ds1) myconnection1.Close() Dim j As Integer = 0 Do While (j < Ds.Tables(0).Rows.Count) 'Do While (i < ds.Tables(0).Rows.Count) Dim i As Integer = 0 Do While (i < ds1.Tables(0).Rows.Count) If (Ds.Tables(0).Rows(j)("phone_number").ToString <> ds1.Tables(0).Rows(i)("Phonenumbers").ToString) Then phone = ds1.Tables(0).Rows(i)("Phonenumbers").ToString Else End If i = (i + 1) Loop j = (j + 1) Loop am getting error in if condition.please help to do this?
0
[ 2, 11590, 172, 1054, 3554, 4070, 19, 13, 20468, 9, 2328, 800, 3726, 3726, 589, 568, 1054, 3554, 18, 377, 13, 7, 43, 18, 7, 17, 13, 7, 43, 18, 165, 7, 9, 31, 259, 20, 11590, 172, 1054, 3554, 4070, 50, 2747, 54, 52, 2747, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Redirect PHP query === I need to redirect visiters from: /plug/survey/survey.php?22 to /publications.php?1.articles.view.547 I have a limited understanding of .htaccess and php and wonder if anyone has any tips/ideas for me? Any help would be very much appreciated! Thank you
0
[ 2, 302, 14706, 13, 26120, 25597, 800, 3726, 3726, 31, 376, 20, 302, 14706, 2139, 445, 37, 45, 13, 118, 18527, 263, 118, 4082, 8704, 118, 4082, 8704, 9, 26120, 60, 2287, 20, 13, 118, 12259, 7504, 9, 26120, 60, 165, 9, 20360, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there any Reporting Engine which supports MarkDown or it`s HTML-Subset? === I am looking for a Reporting Engine which supports MarkDown or the HTML-Subset needed to display MarkDown formatted Text correctly, is there any? I already tried Crystal Reports, but learned during my Test's that `<ul>` and `<ol>` are not supported.
0
[ 2, 25, 80, 186, 6670, 1406, 56, 6747, 943, 2968, 54, 32, 1, 18, 13, 15895, 8, 7563, 3554, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 6670, 1406, 56, 6747, 943, 2968, 54, 14, 13, 15895, 8, 7563, 3554, 851, 20, 3042, 943, 2968, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Only one Looper may be created per thread === I have an app which request data information on internet (client-server app), but this communication is very slow, thus i have decided to create an AsyncTask to manage the delay. inside of doInBackground i call `Looper.prepare()` then a my "view generator (which retrives data)". **in detail (the problem):** I have an activity that dinamically create the rows of a list view. but every time i try to inflate rows, android throws a Looper exception "Only one Looper may be created per thread" i followed the steps: - call `Looper.preapare()` - use a first inflaction to create a container of my list - use a second inflaction to create a list row I suppose I cannot inflate two times but i don't know how i can resolve that (i don't post the code, becouse i think is not necessary, if you want that, notify me!) : ) Regards p.s. sorry for my english
0
[ 2, 104, 53, 5293, 106, 123, 44, 679, 416, 9322, 800, 3726, 3726, 31, 57, 40, 4865, 56, 3772, 1054, 676, 27, 2620, 13, 5, 150, 18513, 38, 8, 10321, 106, 4865, 6, 15, 47, 48, 3291, 25, 253, 2276, 15, 1086, 31, 57, 868, 20, 160...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Change region after adding new pins === When I load my mapView I have only one tick - user location. After some actions I'm adding more pins. But focus is still in user location. I want to magnify the image in order to see all targets. How can I do this? My code: -(void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views { if (views.count == 1) { MKAnnotationView *annotationView = [views objectAtIndex:0]; id<MKAnnotation>mp = [annotationView annotation]; MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance([mp coordinate], 500, 500); [mapView setRegion:region animated:YES]; } else { for (NSUInteger i = 0; i<views.count; i++) { [mapView addAnnotation:[views objectAtIndex:i]]; } } } Sorry, if I'm doing something wrong, working with map kit first time.
0
[ 2, 753, 632, 75, 4721, 78, 18869, 800, 3726, 3726, 76, 31, 6305, 51, 2942, 4725, 31, 57, 104, 53, 8809, 13, 8, 4155, 1474, 9, 75, 109, 3078, 31, 22, 79, 4721, 91, 18869, 9, 47, 1776, 25, 174, 19, 4155, 1474, 9, 31, 259, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a submit data page in php? === Hi i have little experience in PHP and i want to create just a simple page that transfers data sent from the url to another PHP page where i can easily read the data that was sent. The url I want should be something like 'http://data.milkycraft.net/submit.php?plugin=entitymanager&ip='senders ip':'sender's port'@name='senders name'&emver='version' + &ucount='user count'. Now the stuff like senders ip are variables. Im going to be opening a connection to this URL within a java application. Getting the variables is not my concern though its the php itself as I don't even know where to begin to look for help on this.
1
[ 2, 184, 20, 1600, 21, 12298, 1054, 2478, 19, 13, 26120, 60, 800, 3726, 3726, 4148, 31, 57, 265, 1496, 19, 13, 26120, 17, 31, 259, 20, 1600, 114, 21, 1935, 2478, 30, 2617, 18, 1054, 795, 37, 14, 287, 6362, 20, 226, 13, 26120, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Django - queryset vs model in Generic View === I'm pretty new at Django and wondering what is the difference between defining model vs queryset in a generic view like ListView. Here's my code example in my urls.py file for the project: urlpatterns = patterns('', url(r'^$', ListView.as_view( model=Person, context_object_name='people', template_name='index.html', )), ) I've also used the same this: urlpatterns = patterns('', url(r'^$', ListView.as_view( queryset=Person.objects.all, context_object_name='people', template_name='index.html', )), ) And received the same result on my view. I'm assuming there are different things you can do with a queryset?
0
[ 2, 3857, 14541, 13, 8, 25597, 3554, 4611, 1061, 19, 12733, 1418, 800, 3726, 3726, 31, 22, 79, 1772, 78, 35, 3857, 14541, 17, 5712, 98, 25, 14, 2841, 128, 14684, 1061, 4611, 25597, 3554, 19, 21, 12733, 1418, 101, 968, 4725, 9, 235,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Implement push notification server in php === This is my first post, sorry my English Hello every one. I am a new programmer in PHP and i would like to use Zend Mobile Framework to implement my push notificator server. I'm searching how to implement the tomcat project used in http://developer.android.com/guide/google/gcm/demo.html but written in PHP. In the code most below I written the used sources. When I call the submit button, always have response with InvalidRegistration error. Can anyone see where the error? Thank You very much http://pastebin.com/MauzLX71
0
[ 2, 8713, 3250, 52, 4634, 8128, 19, 13, 26120, 800, 3726, 3726, 48, 25, 51, 64, 678, 15, 1875, 51, 486, 10975, 352, 53, 9, 31, 589, 21, 78, 17968, 19, 13, 26120, 17, 31, 83, 101, 20, 275, 10526, 43, 3241, 6596, 20, 8713, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
c++ running error === I am getting this error while running my-program (which compiles fine with g++): my-program: malloc.c:2451: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed. I usually understand the error but this time I have no idea what's wrong.
0
[ 2, 272, 20512, 946, 7019, 800, 3726, 3726, 31, 589, 1017, 48, 7019, 133, 946, 51, 8, 19746, 13, 5, 2140, 26561, 18, 1123, 29, 489, 20512, 6, 45, 51, 8, 19746, 45, 3668, 2499, 9, 150, 22830, 4246, 45, 10315, 15988, 2499, 45, 2087...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WP7 IsolatedStorageFile's MoveFile() method throws IsolatedStorageException === Description: The code below is the simplest code I could write which causes the failure. I've also tried: putting the CreateFile and MoveFile in different using statements, putting them in different xaml pages, moving the file into a subdirectory with a new filename, moving it into a subdirectory with the same filename. They all throw the same exception. CopyFile throws the same exception in all circumstances. Question is--what incredibly simple thing am I not accounting for? 1. Open a new Silverlight for Windows Phone 7 project targeting Windows Phone 7.1. 2. Open App.xaml.cs. 3. Paste the following lines of code into Application_Launching: <pre>using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) { isf.CreateFile("hello.txt"); isf.MoveFile("hello.txt", "hi.txt"); }</pre> 4. Click start debugging, targeting emulator or device. Expected: creates a file named "hello.txt", then (effectively) renames "hello.txt" to "hi.txt".<br/> Actual: throws exception below. <pre>System.IO.IsolatedStorage.IsolatedStorageException was unhandled Message=An error occurred while accessing IsolatedStorage. StackTrace: at System.IO.IsolatedStorage.IsolatedStorageFile.MoveFile(String sourceFileName, String destinationFileName) at PhoneApp4.App.Application_Launching(Object sender, LaunchingEventArgs e) at Microsoft.Phone.Shell.PhoneApplicationService.FireLaunching() at Microsoft.Phone.Execution.NativeEmInterop.FireOnLaunching() </pre>
0
[ 2, 13, 13790, 465, 6331, 18, 2153, 1303, 16877, 22, 18, 780, 16877, 5, 6, 2109, 13566, 6331, 18, 2153, 1303, 10066, 872, 800, 3726, 3726, 5318, 45, 14, 1797, 1021, 25, 14, 24384, 1797, 31, 110, 2757, 56, 4047, 14, 2990, 9, 31, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to iterate over a `const vector<int>`? === Is it possible to iterate over a `const vector<int>`? Or, would this be undesirable anyway? Given I have the function `getIntVector` which returns a `vector<int>` I can iterate over it with the following: vector<int> vec = getIntVector(); vector<int>::iterator it; for (it=vec.begin();it!=vec.end();++it) {} But I can not do the following: const vector<int> vec = getIntVector(); vector<int>::iterator it; // complier throws error below for (it=vec.begin();it!=vec.end();++it) {} My thinking was that the vector would not be recreated by declaring it as a `const`....
0
[ 2, 25, 32, 938, 20, 32, 106, 1373, 84, 21, 13, 1, 12124, 38, 7497, 1, 6391, 1, 60, 800, 3726, 3726, 25, 32, 938, 20, 32, 106, 1373, 84, 21, 13, 1, 12124, 38, 7497, 1, 6391, 1, 60, 54, 15, 83, 48, 44, 29030, 2774, 60, 504...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to wait for complete after file upload === Code below is used to upload 6 MB file from ASP .NET MVC2 application. After file is uploaded it takes 5 minutes to return responce form controller. After file upload IE9 does not show any sign that processing is completed: user can select other file and re-post, user has no idea that processing is in process. How to inform user that operation is not completed and disable submit button so that user cannot submit new file before old file processing is completed ? <% using (Html.BeginForm("InvoiceImport", "Grid", FormMethod.Post, new { enctype = "multipart/form-data" })) {%> <input name="uploadFile" type="file" /> <input type="submit" name='invoice' value='Read'/> <%} %> Controller: [AcceptVerbs(HttpVerbs.Post)] [Authorize] ActionResult ImportFromFile(HttpPostedFileBase uploadFile) { Server.ScriptTimeout = 30 * 60; var res = ImportFromFile(uploadFile.InputStream); // takes lot of time TempData["Message"] = uploadFile.FileName + " Readed records " + res; return RedirectToAction("Complete"); }
0
[ 2, 184, 20, 1760, 26, 1279, 75, 3893, 71, 8294, 800, 3726, 3726, 1797, 1021, 25, 147, 20, 71, 8294, 400, 14023, 3893, 37, 28, 306, 13, 9, 2328, 307, 8990, 135, 3010, 9, 75, 3893, 25, 23782, 32, 1384, 331, 902, 20, 788, 302, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
AVAssetWriter How to create mov video with no compression? === I'am creating a video from an array of images. The purpose of my work is to create a .mov video with no compression. I have see in developer library that it exist a key "AVVideoCompressionPropertiesKey" but I don't know how to specify no compression with this key. Could you help me please? Here is my sample code : NSDictionary *videoCleanApertureSettings = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:320], AVVideoCleanApertureWidthKey, [NSNumber numberWithInt:480], AVVideoCleanApertureHeightKey, [NSNumber numberWithInt:10], AVVideoCleanApertureHorizontalOffsetKey, [NSNumber numberWithInt:10], AVVideoCleanApertureVerticalOffsetKey, nil]; NSDictionary *codecSettings = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithInt:960000], AVVideoAverageBitRateKey, [NSNumber numberWithInt:1],AVVideoMaxKeyFrameIntervalKey, videoCleanApertureSettings, AVVideoCleanApertureKey, nil]; NSDictionary *videoOutputSettings = [NSDictionary dictionaryWithObjectsAndKeys:AVVideoCodecH264, AVVideoCodecKey,codecSettings,AVVideoCompressionPropertiesKey, [NSNumber numberWithInt:size.width], AVVideoWidthKey, [NSNumber numberWithInt:size.height], AVVideoHeightKey, nil]; self.videoWriterInput = [AVAssetWriterInput assetWriterInputWithMediaType:AVMediaTypeVideo outputSettings:videoOutputSettings];
0
[ 2, 21, 8471, 3554, 9657, 184, 20, 1600, 13, 15146, 763, 29, 90, 14864, 60, 800, 3726, 3726, 31, 22, 765, 2936, 21, 763, 37, 40, 7718, 16, 3502, 9, 14, 2131, 16, 51, 170, 25, 20, 1600, 21, 13, 9, 15146, 763, 29, 90, 14864, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Loading PNG Textures to OpenGL with libPNG only === I'm rather new to OpenGL coding, I know as much as is taught in the basic tutorials I've looked at. Currently I'm building a 3d engine from scratch using (open) GL, GLU, and freeGLUT, with libConfig used for loading config files (not relevant), and I hope to use libPNG for loading PNGs to OpenGL textures. I've seen quite a few other questions about this but I'm wondering specifically about libPNG and libPNG only, unless another library is absolutely necessary. ***I only want to use libPNG for loading the files*** So far I have the libPNG library installed on my Linux machine, and it works, according to my compiler, but I was wondering about getting any PNG file (with an alpha channel or not) to be useable as an OpenGL texture. Also, because it's a 3d engine, it's going to require that I can have multiple textures, and that they can easily be called up and used for drawing. I already have my PNG files that I need, with different versions containing an alpha layer and with a black background. I just need to know what functions I should use to load a file, using libPNG, into an OpenGL texture, and to call up the texture when I'm trying to draw with it.
1
[ 2, 12797, 351, 2723, 12714, 18, 20, 368, 8430, 29, 13, 8326, 306, 2723, 104, 800, 3726, 3726, 31, 22, 79, 864, 78, 20, 368, 8430, 13, 15458, 15, 31, 143, 28, 212, 28, 25, 2359, 19, 14, 2125, 29724, 18, 31, 22, 195, 292, 35, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to get DocumentBodySection.appendImage(InlineImage) to function properly? === https://developers.google.com/apps-script/class_documentbodysection#appendImage I basically open a document and get its DocumentBodySection, I then iterate through the elements, copy them (Element.copy()) to get a deep detached copy and then append the element to another document. This works well for paragraph and other element types, but when it comes to inline images, I get a broken link in the resulting document. Anyone got that to work? Here is a snippet function appendSection(doc, section) { for (i=0; i<section.getNumChildren(); i++) { var el = section.getChild(i); if (el.getType() == DocumentApp.ElementType.PARAGRAPH) { if (el.getNumChildren() != 0) { var el_child = el.getChild(0); if (el_child.getType() == DocumentApp.ElementType.INLINE_IMAGE) { doc.appendImage(el_child.asInlineImage().copy()); Logger.log("Image"); } } doc.appendParagraph(el.copy()); Logger.log("Paragraph"); } } return doc } Thanks in advance.
0
[ 2, 2343, 20, 164, 4492, 9760, 10579, 9, 22358, 43, 22039, 5, 108, 1143, 22039, 6, 20, 1990, 7428, 60, 800, 3726, 3726, 7775, 18, 6903, 26051, 445, 9, 16111, 4875, 9, 960, 118, 7753, 18, 8, 8741, 118, 1898, 1, 28132, 9760, 10579, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SublimeCodeIntel and PyQ4 === I'm using Sublime Text 2 and SublimeCodeIntel plugin. I want to have some code completion for PyQt4 but I'm receiving notification "... could not resolve first part ...". For python libraries code completion is working awesome. Is it possible to configure SublimeCodeIntel to have code completion for PyQt4? Thanks for help Pawel
0
[ 2, 27644, 9375, 108, 3454, 17, 7103, 1251, 300, 800, 3726, 3726, 31, 22, 79, 568, 27644, 1854, 172, 17, 27644, 9375, 108, 3454, 10922, 108, 9, 31, 259, 20, 57, 109, 1797, 5392, 26, 7103, 1251, 38, 300, 47, 31, 22, 79, 3396, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Make a (compact) Application from a Python script === I am writing as I have a problem in making a compact application using several python scripts, some jar files and some other open source applications (Makehuman, Sweethome3D, Blender). I have my main script which is written in python 2.7. I have connected all the scripts together and filed them in a very organized way. Every script/ jar/ OS application is connected with each other with relevant paths. If I open my main script with the Pyton IDLE 2.7 and run it it runs correctly. I have searched through out the internet to find a solution for my inquiry, however I was not able to find one that could really solve my problem. I have tried py2app (as I am running it on macintosh) but I can’t find a way to merge all the scripts / jars/ OS applications using this module. I have also tried to make my application using the Eclipse console, but I got lost... I have import my project in a new Py project I have created inside the console, but it doesn’t seem to recognize the relative paths? Should I make any changes in the paths? Furthermore, I would like to note that I am importing all my subfolders (scripts / jars/ OS applications) in the src of the project i have created... I would be grateful if someone could offer his help and knowledge! Cheers, Dimitra
0
[ 2, 233, 21, 13, 5, 11103, 5183, 6, 3010, 37, 21, 20059, 3884, 800, 3726, 3726, 31, 589, 1174, 28, 31, 57, 21, 1448, 19, 544, 21, 8285, 3010, 568, 238, 20059, 17505, 15, 109, 5112, 6488, 17, 109, 89, 368, 1267, 3767, 13, 5, 111...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Win 7 Task Scheduler Interactive Mode === I would like to run a scheduled bat file every day on Win7 machines. The file needs to launch IE interactively and crawl a list of web pages to generate web traffic. I could achieve this with wget and it will generate the traffic, but I need IE to run interactively so it launches and generates the traffic through an IE plugin that tracks urls visited. The interactive Need to run interactively when user is logged and or when not logged on Every Day at 5am repeat for 12 hours Problem is that IE wont launch. bat file looks like this start /d iexplore.exe http://www.google.com ping 1.1.1.1 -w 5000 >NUL start /d iexplore.exe http://www.yahoo.com taskkill /im iexplore.exe
0
[ 2, 628, 453, 3005, 4345, 139, 9194, 3740, 800, 3726, 3726, 31, 83, 101, 20, 485, 21, 3758, 3570, 3893, 352, 208, 27, 628, 465, 6035, 9, 14, 3893, 2274, 20, 3394, 13, 660, 9194, 102, 17, 12392, 21, 968, 16, 2741, 4434, 20, 7920, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calculate height of new shape created by Jquery 3D rotation plugin === I am using [this jquery plugin][1] to rotate a div. I want to know the math equation to calculate the height of the new shape. By 'new height" I mean the height of the top most part of the shape to the most bottom part of the shape, but in a straight line from top to bottom. I want to change my container DIV height to match the shape's new height. [1]: http://www.zachstronaut.com/projects/rotate3di/#demos
0
[ 2, 18469, 2947, 16, 78, 2539, 679, 34, 487, 8190, 93, 203, 43, 9431, 10922, 108, 800, 3726, 3726, 31, 589, 568, 636, 1565, 487, 8190, 93, 10922, 108, 500, 2558, 165, 500, 20, 21448, 21, 13, 12916, 9, 31, 259, 20, 143, 14, 5057, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to search for all the content of index using unindexed filed value like URLs using index of zend_search_lucene? === I am using zend_search_Lucene for indexing files and its contents. below is the code I am using: $index=$index = new Zend_Search_Lucene('/home/project/news4u/data/search_file/lucene.customer.index', new); $doc = new Zend_Search_Lucene_Document(); $doc->addField(Zend_Search_Lucene_Field::unIndexed('URL', $file1_path)); $doc->addField(Zend_Search_Lucene_Field::text('contents',$content)); $index->addDocument($doc); Now I want to see all the URLs in indexed files: field name URL is of type 'unIndexed' and can I display content by passing $file1_path into search query. Please help
0
[ 2, 184, 20, 2122, 26, 65, 14, 2331, 16, 4348, 568, 367, 25671, 69, 5263, 1923, 101, 13, 911, 7532, 568, 4348, 16, 10526, 43, 1, 25136, 1, 2377, 13739, 60, 800, 3726, 3726, 31, 589, 568, 10526, 43, 1, 25136, 1, 2377, 13739, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pictures not showing up in heroku sample app when doing local development === Hey I'm trying to get my local facebook development environment set up using WAMP and I'm almost there but there's a slight problem. I'm using the heroku sample app to test the environment and for some reason even though I have click the login button and given permissions the page has failed to update. Usually the page updates with the information from your profile including images of your friends but just produces the same screen seen in the image and if you click the log in button again produces the dialog box beside it. I've done a search and nothing is coming up with a similar problem so this doesn't seem to be normal problem. ![enter image description here][1] [1]: http://i.stack.imgur.com/fb0gf.jpg
0
[ 2, 3104, 52, 3187, 71, 19, 36, 9266, 5717, 4865, 76, 845, 375, 522, 800, 3726, 3726, 8409, 31, 22, 79, 749, 20, 164, 51, 375, 9090, 522, 2307, 309, 71, 568, 619, 10158, 17, 31, 22, 79, 557, 80, 47, 80, 22, 18, 21, 6442, 1448...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Changing Excel cell properties with C# using Late Binding === I can't seem to get at the properties for individual cells in my Excel sheet. The function that I have creates an Excel worksheet, populates it with data from a DataSet and then prints the sheet. The issue that I'm having is that when I print the sheet, the formatting is all out of whack- the cells are too small and a lot of the information is truncated. How would I set the width of the cells and change the font? Here's a little snippet for perusal: // Add rows foreach (DataRow row in table.Rows) { iCol = 1; iRow = 1; foreach (DataColumn col in table.Columns) { Parameters = new Object[2]; Parameters[0] = iRow + 1; Parameters[1] = iCol; excelCell = excelSheet.GetType().InvokeMember("Cells", BindingFlags.GetProperty, null, excelSheet, Parameters); Parameters = new Object[1]; Parameters[0] = row[col.ColumnName]; excelCell.GetType().InvokeMember("Value", BindingFlags.SetProperty, null, excelCell, Parameters); iCol++; } iRow++; } There seem to be plenty of examples of how to achieve something similar with early-binding, but I must be missing something with late-binding.
0
[ 2, 4226, 20700, 1667, 3704, 29, 272, 5910, 568, 456, 8728, 800, 3726, 3726, 31, 92, 22, 38, 2260, 20, 164, 35, 14, 3704, 26, 1359, 2934, 19, 51, 20700, 6125, 9, 14, 1990, 30, 31, 57, 9695, 40, 20700, 170, 17627, 15, 1675, 12383,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Removing elements from an array: pop is not a function (javascript) === thead = new Array(); alert(thead.length); thead = document.getElementsByTagName("th"); alert(thead.length); thead.pop(); alert(thead.length); `document.getElementsByTagName("th")` returns an array of elements, so `thead` variable should be an array, if so, then why it gives me the error "thead.pop() is not a function"?
0
[ 2, 9096, 2065, 37, 40, 7718, 45, 1675, 25, 52, 21, 1990, 13, 5, 1004, 1385, 8741, 6, 800, 3726, 3726, 14, 1283, 800, 78, 7718, 5, 6, 73, 7863, 5, 38, 1743, 9, 6325, 6, 73, 14, 1283, 800, 4492, 9, 3060, 27567, 18, 779, 8628, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IIS 7.5 Authorization Issue - Network share not accessible === I am facing a trouble in accessing a file in ASP.NET application suddenly. I am not able to access the files which lies over the share (Different server than web server). Say, My dev machine is “A” I have files to access from Server “B”. When I write code in asp.net, it works fine in debug mode. But when I deploy into IIS 7.5, I am getting Unauthorized exception. Piece of code : protected void Button1_Click(object sender, EventArgs e) { string filepath = @"\\ServerB\MyDocs\{0}"; //Here MYDocs folder is a shared folder in ServerB string filename = "Resume.pdf"; string fileFullName = String.Format(filepath,filename); Response.TransmitFile(fileFullName); } The pdf document opens up in IE when I run in debug mode but not when I deploy. Most of the Google pages says, it would run under Application Pool Identity in IIS 7.5. But I could not figure out what else I need to modify. Note : I’m running under Anonymous Authentication -> Application Pool Identity
0
[ 2, 595, 18, 453, 9, 264, 22677, 1513, 13, 8, 982, 1891, 52, 7342, 800, 3726, 3726, 31, 589, 4325, 21, 2572, 19, 1381, 68, 21, 3893, 19, 28, 306, 9, 2328, 3010, 1605, 9, 31, 589, 52, 777, 20, 1381, 14, 6488, 56, 1966, 84, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
wordpress plugin to add images to main navigation menu === Please advise about wordpress plugin to add multi states images to the main navigation menu I need to be able to add images on top of text for normal, hover and current state. Thanks
1
[ 2, 833, 5890, 10922, 108, 20, 3547, 3502, 20, 407, 8368, 11379, 800, 3726, 3726, 2247, 14640, 88, 833, 5890, 10922, 108, 20, 3547, 1889, 202, 3502, 20, 14, 407, 8368, 11379, 31, 376, 20, 44, 777, 20, 3547, 3502, 27, 371, 16, 1854,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
parameter passing with jumi === I have a problem about passing parameter with jumi. In my normal php code i passed it like this <a href=\"editdata_form.php?isbn=$row[isbn]\"> Edit </a> the $row[isbn] is an integer value which putting in isbn variable and send it to "editdata_form.php" page where i get that value with $_GET['isbn']. In jumi i want to pass this kind of data from a module (custom jumi module) to a article page. For that when i using this code for transferring the data like <a href=\"index.php?option=com_content&view=article&id=18&Itemid=18?isbn=$row[isbn]\"> Edit </a> it shows an error like "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource" So, in jumi what is the appropriate way to pass data from one module to another article page. Thanks in advance.
0
[ 2, 18906, 2848, 29, 3191, 1435, 800, 3726, 3726, 31, 57, 21, 1448, 88, 2848, 18906, 29, 3191, 1435, 9, 19, 51, 1826, 13, 26120, 1797, 31, 1100, 32, 101, 48, 13, 1, 58, 746, 14057, 3726, 1, 7, 69, 242, 18768, 1, 4190, 9, 26120,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hibernate statistics === is it possible to get hibernate statistics as generated by hibernate using java melody [http://docs.jboss.org/hibernate/orm/3.6/javadocs/org/hibernate/stat/Statistics.html][1]
0
[ 2, 4148, 2102, 8820, 5818, 800, 3726, 3726, 25, 32, 938, 20, 164, 4148, 2102, 8820, 5818, 28, 6756, 34, 4148, 2102, 8820, 568, 8247, 8668, 636, 21127, 6903, 13799, 18, 9, 728, 10349, 18, 9, 5583, 118, 8630, 106, 8820, 118, 248, 79...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MVC3 How to add validation errors dynamically === I am trying to show the error message on view. Can you please suggest me the right approach to do this. I was thinking to add the data annotation dynamically but can't find any solution. Thanks [HttpPost] public ActionResult AddBook(BooksModel booksModel) { try { booksModel.Account = _bookRepository.BookDetails(booksModel.Title,booksModel.RefCode, booksModel.DontHaveRefCode); } catch (FaultException faultException) { switch (faultException.Code.Name) { case "exc1": // Show Error Message Here return View("AddBook", booksModel); default: break; } } return View("ConfirmBook", booksModel); }
0
[ 2, 307, 8990, 240, 184, 20, 3547, 27999, 11908, 7782, 1326, 800, 3726, 3726, 31, 589, 749, 20, 298, 14, 7019, 2802, 27, 1418, 9, 92, 42, 2247, 5601, 55, 14, 193, 2141, 20, 107, 48, 9, 31, 23, 1440, 20, 3547, 14, 1054, 40, 1270...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Get access to HttpServletRequest within a custom AuthenticationProvider === How do I get access to HttpServletRequest within a custom AuthenticationProvider. I have tried doing this RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); HttpServletRequest request = ((ServletRequestAttributes) requestAttributes).getRequest(); String username = (String) httpReq.getAttribute("j_username"); OR RequestAttributes requestAttributes = RequestContextHolder.getRequestAttributes(); HttpServletRequest httpReq = ((ServletRequestAttributes)RequestContextHolder.currentRequestAttributes()).getRequest(); String username = (String) httpReq.getAttribute("j_username"); i am getting username null but RequestContextHolder.getRequestAttributes(); returns null. I want to reference the requestcontext, pass it in, or have Spring do its Magic so I can reference it. I am also giving the RequestContextListener in my web.xml <listener> <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> </listener> I have searched the security forum but still havent found anything yet. Thanks in advance.
0
[ 2, 164, 1381, 20, 7775, 10321, 1336, 99, 10351, 363, 21, 5816, 27963, 26735, 139, 800, 3726, 3726, 184, 107, 31, 164, 1381, 20, 7775, 10321, 1336, 99, 10351, 363, 21, 5816, 27963, 26735, 139, 9, 31, 57, 794, 845, 48, 3772, 721, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GWT Code Generation, MVC & Support === I'm reading up on GWT and so far it sounds too good to be true (!). I'd like to start investing the time to really learning GWT but I would have some very specific uses for it, and I'd hate to spend 2 weeks learning it only to find out that I can't use it after all. I've combed over the FAQs and done a ton of searches but for the life of me cannot find answers to some very specific questions. Since they're so similar in nature (they all have to do with the capabilities of GWT, which are, surprisingly, largely-absent from the project docs) I figured rather than clutter SO with lots of micro-questions I would just put them here as they should shed light on the same issue that I'm having difficulty wrapping my head around: * One of the hallmarked "best practices" for performant web development is to place CSS at the top of each HTML page, and JS at the bottom; **can GWT honor this**, and more generally, does GWT allow you to output client-side code however you like (meaning, the order the code gets generated in as well as the code that gets generated)? * Does GWT support client-side MVC/MVP patterns? In a nutshell, how? * Does GWT require any sort of special configuration, libraries, etc. for outputting a "mobile web" version of your code **in addition** to the "normal web" version (meaning, 2+ generated codebases where 1 is meant to be served to web browser and the other is meant to be served to a mobile browser like WebKit)? * Where does the official GWT project (hosted and maintained by **Google**) document its list of supported browsers? I was only able to find [this](http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_CurrentlySupportBrowsers) which is 4 years old. Thanks in advance for any help/nudges in the right direction.
0
[ 2, 14094, 38, 1797, 2782, 15, 307, 8990, 279, 555, 800, 3726, 3726, 31, 22, 79, 1876, 71, 27, 14094, 38, 17, 86, 463, 32, 2795, 266, 254, 20, 44, 1151, 13, 5, 187, 6, 9, 31, 22, 43, 101, 20, 799, 22999, 14, 85, 20, 510, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Converting PDF to image temporarily for the purpose of reading QR codes === I need to be able to read QR codes from PDF files. I am using thoughtworks.QRCode, which accepts an image and returns the data held in the QR code. I have that part working. However, I need to be able to accept a multipage PDF file and send each page as an image to the QR reader. I then need to save each page of the original PDF as single page PDF's named after the data contained in the QR codes. What library would you recommend I use for this project? Many that I have seen create permanent images, but I just want temporary ones. Is there something that would easily allow me to do this? Is there perhaps another QR reader that can read pdfs? Thanks for any advice you might be able to lend!
0
[ 2, 19583, 13, 11124, 20, 1961, 7866, 26, 14, 2131, 16, 1876, 2593, 139, 11358, 800, 3726, 3726, 31, 376, 20, 44, 777, 20, 1302, 2593, 139, 11358, 37, 13, 11124, 6488, 9, 31, 589, 568, 289, 7684, 9, 1251, 139, 9375, 15, 56, 16548...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove vertical space at start of latex document === I have this test file which is supposed to put `Hello there.` near the top of the page but it does not work in so far as there is still tons of vertical space at top. How can I fix this? \documentclass{article} \begin{document} \vspace{-10cm} Hello there. \end{document}
2
[ 2, 4681, 7035, 726, 35, 799, 16, 456, 396, 4492, 800, 3726, 3726, 31, 57, 48, 1289, 3893, 56, 25, 2293, 20, 442, 13, 1, 11515, 80, 9, 1, 424, 14, 371, 16, 14, 2478, 47, 32, 630, 52, 170, 19, 86, 463, 28, 80, 25, 174, 5278,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
facebook authentication using actionscript === I am trying to use actionscript 3.0 API for Facebook authentication. I am able to authenticate successfully but I need user email id. Can some one provide me example of how to get details with additional permission. I presume that you can get user email information using additional permissions and not basic authentication permissions. Regards. Dilip
0
[ 2, 9090, 27963, 568, 1028, 8741, 800, 3726, 3726, 31, 589, 749, 20, 275, 1028, 8741, 203, 9, 387, 21, 2159, 26, 9090, 27963, 9, 31, 589, 777, 20, 14351, 1373, 3673, 47, 31, 376, 4155, 8517, 4924, 9, 92, 109, 53, 1181, 55, 823, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Where should I define my enumerations? === I have this enumeration: enum battleType {localEnemy,multiplayerEnemy}; Which is declared in the .h file of my game battle scene. However, I would like to also use those two keywords in my party screen (which is another .h file). Do I have to declare this same enumaration twice (in both .h files), or is there a way to just declare it once and use it everywhere in my project? As a side note, those keywords are exactly the same as integers, right? So I can't really store them as objects in my array, and instead I have to create a NSNumber instance for this, right?
0
[ 2, 113, 378, 31, 9267, 51, 26940, 5757, 60, 800, 3726, 3726, 31, 57, 48, 26940, 872, 45, 1957, 723, 692, 4474, 13, 1, 15580, 4622, 915, 15, 21531, 14049, 4622, 915, 1, 73, 56, 25, 2482, 19, 14, 13, 9, 252, 3893, 16, 51, 250, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending data packets over udp === I am creating an app that acts as a remote control for a lighting console and I need to send commands to the console over UDP. The protocol that I am using has its own custom header. How do I create the data packet with header and message to send over UDP? Thanks!
0
[ 2, 4907, 1054, 12795, 18, 84, 287, 7431, 800, 3726, 3726, 31, 589, 2936, 40, 4865, 30, 3167, 28, 21, 5388, 569, 26, 21, 7134, 8650, 17, 31, 376, 20, 2660, 14294, 20, 14, 8650, 84, 287, 7431, 9, 14, 8494, 30, 31, 589, 568, 63, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java execute process on linux === I've been struggling for a while now with this problem and i can't seem to fix it. i already have tried different approaches (Runtime.exec(), ProcessBuiler) but none seem to work. This is my issue. I have a laptop which is always on. This laptop runs a java tool connected to an arduino via usb to turn on and off the lights in the house. i have created this program myself, therefore i'm also doing some regular maintenance work on it. Recently i have added a button to restart the program from my html interface (in case i have an update, or if for some other reason i might need to restart the program or i decide to implement auto updating in the near future). This idea behind this is to start a second instance of the application from the first instance and then System.exit(0) the first instance. For some reason i'm not able to start a second instance of the application. Here's some code. public void shutdown(boolean restart) { if (this.serial != null) { this.serial.disconnect(); } if (restart) { System.out.println(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()); String startupCommand = "java -jar \"" + this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath().replace("%20", " ") + "\""; ProcessBuilder builder = new ProcessBuilder(); // String[] command = new String[1]; // command[0] = "-jar \"" + (System.getProperty("user.dir") + "/Home_Automation_Executor.jar") + "\""; try { // //System.out.println("Restarting Home Automation with command: " + command[0]); // System.out.println("Restarting Home Automation with command: " + startupCommand); // Runtime.getRuntime().exec("bash"); // Process proc = Runtime.getRuntime().exec(startupCommand); Process proc = builder.command(startupCommand).start(); InputStream stderr = proc.getErrorStream(); InputStreamReader isr = new InputStreamReader(stderr); BufferedReader br = new BufferedReader(isr); String line = null; System.out.println("<ERROR>"); while ((line = br.readLine()) != null) { System.out.println(line); } System.out.println("</ERROR>"); int exitVal = 0; try { exitVal = proc.waitFor(); } catch (InterruptedException ex) { Logger.getLogger(Engine.class.getName()).log(Level.SEVERE, null, ex); } System.out.println("Process exitValue: " + exitVal); } catch (IOException ex) { ex.printStackTrace(); } } System.out.println("Terminating Home Automation"); System.exit(0); } > java.io.IOException: Cannot run program "java -jar "/Users/NightWalker/Dropbox/Development/Source Code/Java/NightWare Tools/Home Automation/Home Automation Executor/dist/Home_Automation_Executor.jar"": error=2, No such file or directory > at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) > at home.automation.executor.Engine.shutdown(Engine.java:186) > at home.automation.executor.webserver.HTTPGenerator._handleActionCommand(HTTPGenerator.java:190) > at home.automation.executor.webserver.HTTPGenerator._generateHTTPPage(HTTPGenerator.java:165) > at home.automation.executor.webserver.HTTPGenerator.getHTTPPage(HTTPGenerator.java:58) > at home.automation.executor.webserver.HTTPRequestHandler.run(HTTPRequestHandler.java:160) > Caused by: java.io.IOException: error=2, No such file or directory > at java.lang.UNIXProcess.forkAndExec(Native Method) > at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) > at java.lang.ProcessImpl.start(ProcessImpl.java:91) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) > ... 5 more
0
[ 2, 8247, 15644, 953, 27, 13024, 800, 3726, 3726, 31, 22, 195, 74, 7587, 26, 21, 133, 130, 29, 48, 1448, 17, 31, 92, 22, 38, 2260, 20, 6098, 32, 9, 31, 614, 57, 794, 421, 7501, 13, 5, 3169, 891, 9, 1706, 3319, 5, 6, 15, 953...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WebView in Fragment Load with White Screen === I'm developing a Tab based application using Fragments,I need to open a web page when user click on item in List fragment. My Question is, when i click on the list item it's load the white screen first and then load the web page. when i press the back button it's going to that white screen again, FLOW: List ->Click List Item->White Screen -> Web Page Display Then Web Page->device Back Button ->White Screen-> Show the list. Can some one help me to get rid of this white screen. I have used the following code to build the webview, This is how i call the web view when user select an item in list. Bundle bundle = new Bundle(); bundle.putString("url", "http://google.com/"); WebViewWidget newFragment = new WebViewWidget(); newFragment.setArguments(bundle); FragmentTransaction transaction = getFragmentManager().beginTransaction(); transaction.replace(R.id.realtabcontent, newFragment); transaction.addToBackStack(null); // Commit the transaction transaction.commit(); public class WebViewWidget extends Fragment { private WebView mWebView; private boolean mIsWebViewAvailable; private String mUrl = null; AppMajikApplicationContext _appContext = null; String widgetId = null; String header = null; RequestData requestData = null; /** * Creates a new fragment which loads the supplied url as soon as it can * @param url the url to load once initialised */ public WebViewWidget() { super(); } public void onCreate(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); Activity activity = getActivity(); _appContext = (AppMajikApplicationContext)activity.getApplicationContext(); if (activity != null) { Bundle bundle = getArguments(); mUrl = bundle.getString("url"); } } /** * Called to instantiate the view. Creates and returns the WebView. */ @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { if (mWebView != null) { mWebView.destroy(); } mWebView = new WebView(getActivity()); mWebView.loadUrl(mUrl); mIsWebViewAvailable = true; return mWebView; } /** * Convenience method for loading a url. Will fail if {@link View} is not initialised (but won't throw an {@link Exception}) * @param url */ public void loadUrl(String url) { if (mIsWebViewAvailable) getWebView().loadUrl(mUrl = url); else Log.w("ImprovedWebViewFragment", "WebView cannot be found. Check the view and fragment have been loaded."); } /** * Called when the fragment is visible to the user and actively running. Resumes the WebView. */ @Override public void onPause() { super.onPause(); //mWebView.onPause(); } /** * Called when the fragment is no longer resumed. Pauses the WebView. */ @Override public void onResume() { // mWebView.onResume(); super.onResume(); } /** * Called when the WebView has been detached from the fragment. * The WebView is no longer available after this time. */ @Override public void onDestroyView() { mIsWebViewAvailable = false; super.onDestroyView(); } /** * Called when the fragment is no longer in use. Destroys the internal state of the WebView. */ @Override public void onDestroy() { if (mWebView != null) { mWebView.destroy(); mWebView = null; } super.onDestroy(); } /** * Gets the WebView. */ public WebView getWebView() { return mIsWebViewAvailable ? mWebView : null; } }
0
[ 2, 2741, 4725, 19, 14847, 6305, 29, 359, 2324, 800, 3726, 3726, 31, 22, 79, 3561, 21, 6523, 432, 3010, 568, 10837, 15, 49, 376, 20, 368, 21, 2741, 2478, 76, 4155, 10840, 27, 9101, 19, 968, 14847, 9, 51, 1301, 25, 15, 76, 31, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL injection in Symfony/Doctrine === Using parameters instead of placing values directly in the query string is done to prevent SQL injection attacks and should always be [done][1]: ... WHERE p.name > :name ... ->setParameter('name', 'edouardo') Does this mean that if we use parameters like this, we will always be protected against SQL injections? While using a form (registration form of FOS), I put `<b>eduardo</b>` instead and this was persisted to the database with the tags. I don't really understand why using parameters is preventing against SQL injections... Why are the tags persisted to the database like this? Is there a way to remove the tags by using Symfony's validation component? Is there a general tip or method that we should be using before persisting data in the database in Symfony? [1]: http://symfony.com/doc/current/book/doctrine.html
0
[ 2, 4444, 255, 13646, 19, 13, 7261, 10229, 93, 118, 13799, 38, 7850, 800, 3726, 3726, 568, 12905, 700, 16, 5861, 4070, 1703, 19, 14, 25597, 3724, 25, 677, 20, 2501, 4444, 255, 13646, 3080, 17, 378, 550, 44, 636, 43, 849, 500, 2558,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Testing strategy. PHPUnit mocks whithin zend framework controller integration/smoke tests === I have a complex backend application, using zf 1.11.11 and phpunit 3.5.15. The application has some complex communication components (soap, rest, etc.). In the CIS or dev testing environment i have to mock this models, because i can't established a connection or a request to the productive 3rd party backends. So with mocking the unittest layer works really good. Full coverage - no problem. The problem is that i can't use this technique during the controller integration tests. Its a higher layer which complete hide the models. So I guess its impossible to inject mocks at this point. On the one hand this is right and good because its the nature of integration tests, on the other hand i get a very low coverage on the controller tests. Summary of the problem: - i can't create test services that communicate to the commponents (high costs) - i can't inject component mocks during controller testing (i only set request data and trigger the dispatcher) - my coverage on controller is way to low I've seen a solution which implements all as a plugin. So that some namespace redirecting can point to the mock plugins. But i don't think that this is a good solution Can u give me some hints to solve the problem. :-/ Best regards, jami
0
[ 2, 4431, 4427, 9, 13, 26120, 15464, 10506, 18, 5558, 7359, 10526, 43, 6596, 9919, 8078, 118, 26499, 4894, 800, 3726, 3726, 31, 57, 21, 1502, 97, 2451, 3010, 15, 568, 2052, 410, 137, 9, 1306, 9, 1306, 17, 13, 26120, 15464, 203, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Heroku rails-problems ((syntax error, unexpected ',', expecting ')' in textarea-form-helper) === I'm trying to push my rails application on the heroku cedar-stack. Everything works fine on my local machine (Ruby Version 1.9.3 and rails version 3.2.6) When i push my app to heroku, i get the following error in my _post_form-partial (see code below): /app/app/views/posts/_post_form.html.erb:9: syntax error, unexpected ',', expecting ')' 2012-07-18T11:25:36+00:00 app[web.1]: ...:id =>"textarea", :cols => "5", :rows => "8", :class => "inp... 2012-07-18T11:25:36+00:00 app[web.1]: ... ^ 2012-07-18T11:25:36+00:00 app[web.1]: /app/app/views/posts/_post_form.html.erb:9: syntax error, unexpected ',', expecting ')' 2012-07-18T11:25:36+00:00 app[web.1]: ...a", :cols => "5", :rows => "8", :class => "inputx-large boxs... 2012-07-18T11:25:36+00:00 app[web.1]: ... ^ 2012-07-18T11:25:36+00:00 app[web.1]: /app/app/views/posts/_post_form.html.erb:9: syntax error, unexpected ')', expecting keyword_end 2012-07-18T11:25:36+00:00 app[web.1]: ... => "inputx-large boxsizing") );@output_buffer.safe_concat(' 2012-07-18T11:25:36+00:00 app[web.1]: ... ^): I really don't get the problem here. What am I doing wrong? Thank you very much! <div id="inputfield_visible_wrapper"> <div class="well"> <input type="text" id="inputfield_visible" class="input-xlarge boxsizing" value="Create Posting here"> </div> </div> <div id="form_hidden_wrapper"> <%= form_for Post.new, :html => { :class => "well" } do |f| %> <%= render "shared/posting_information" %> <%= f.text_area (:content, :id =>"textarea", :cols => "5", :rows => "8", :class => "inputx-large boxsizing") %> <%= f.submit "Post", :disabled => true, :id => "submit_button", :class => "btn btn-primary" %> <%= submit_tag "Cancel", :class => "btn", :id => "cancel_button", :type => "button" %> <div class="characters_left_wrapper"> <span id="characters_left">100</span> <span class="hidden-phone">Characters left</span> </div> <div class="clear"></div> <% end %> </div>
0
[ 2, 36, 9266, 2240, 18, 8, 2740, 2854, 79, 18, 13, 5, 5, 9507, 15514, 7019, 15, 9380, 13, 22, 15, 22, 15, 7752, 13, 22, 6, 22, 19, 1854, 17760, 8, 4190, 8, 14593, 106, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 3250, 51, 2240...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I stop the automatic string to number conversion in perl? === Well, when I named a folder with "4.0" in backup and store the name in database. When I get it from the database using perl, I changed to "4". How can I stop the automatic conversion?
1
[ 2, 184, 92, 31, 747, 14, 6715, 3724, 20, 234, 6263, 19, 416, 255, 60, 800, 3726, 3726, 134, 15, 76, 31, 377, 21, 19294, 29, 13, 7, 300, 9, 387, 7, 19, 10119, 17, 1718, 14, 204, 19, 6018, 9, 76, 31, 164, 32, 37, 14, 6018, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
internal error 500 with htaccess file === after upload the htaccess file my website show the internal serever error 500... RewriteEngine On Options +FollowSymLinks RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^deztimes\.com RewriteRule (.*) http://deztimes.com/$1 [R=301, L] RewriteRule ^([^/]*)\.html$ /index.php?tag=$1 [L] RewriteRule ^do/([^/]*)/post/([^/]*)/size/([^/]*)/status/([^/]*)/([^/]*)\.jpg$ /index.php?do=$1&post=$2&size=$3&status=$4&title=$5 [L] RewriteRule ^do/([^/]*)/post/([^/]*)/([^/]*)\.jpg$ /index.php?do=$1&post=$2&title=$3 [L] RewriteRule ^do/([^/]*)/size/([^/]*)/status/([^/]*)/id/([^/]*)/([^/]*)\.jpg$ /?do=$1&size=$2&status=$3&id=$4&tite=$5 [L] RewriteRule ^do/([^/]*)/id/([^/]*)/([^/]*)\.jpg$ /?do=$1&id=$2&title=$3 [L] RewriteRule ^do/([^/]*)/image/([^/]*)/size/([^/]*)/status/([^/]*)/([^/]*)\.jpg$ /index.php?do=$1&image=$2&size=$3&status=$4&title=$5 [L] RewriteRule ^do/([^/]*)/image/([^/]*)/([^/]*)\.jpg$ /index.php?do=$1&image=$2&title=$3 [L] RewriteRule ^do/([^/]*)/height/([^/]*)/id/([^/]*)/([^/]*)\.jpg$ /index.php?do=$1&height=$2&id=$3&title=$4 [L] RewriteRule ^do/([^/]*)/id/([^/]*)/([^/]*)\.jpg$ /index.php?do=$1&id=$2&title=$3 [L] RewriteRule ^post/([^/]*)/([^/]*)\.html$ /?post=$1&title=$2 [L] thanks
1
[ 2, 3117, 7019, 3033, 29, 13, 9020, 20604, 3893, 800, 3726, 3726, 75, 71, 8294, 14, 13, 9020, 20604, 3893, 51, 2271, 298, 14, 3117, 4245, 5221, 7019, 3033, 9, 9, 9, 27891, 16847, 27, 6368, 2754, 19184, 7261, 6258, 18, 27891, 1126, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python to JavaScript object graph (de)serialization === I'm trying to send an object graph from Python to JavaScript running in a browser, and I was wondering whether there is a pair of ready-to-use libraries for handling serialization on the Python side and deserialization on the JavaScript side. JSON does not support object references out of the box, the docs for JS-YAML say it's not production-ready in a browser environment, and I didn't find anything for XML. Any suggestions?
0
[ 2, 20059, 20, 8247, 8741, 3095, 7210, 13, 5, 546, 6, 4104, 2815, 1829, 800, 3726, 3726, 31, 22, 79, 749, 20, 2660, 40, 3095, 7210, 37, 20059, 20, 8247, 8741, 946, 19, 21, 16495, 15, 17, 31, 23, 5712, 1472, 80, 25, 21, 2146, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ternary if operator inside a regular if one === In Java, if I use a ternary if operator inside a regular if, for example: if ((x > y - z) ? true : callLongWaitedMethod(many, parameteres)) { loveTeddyBear(); } will it execute the callLongWaitedMethod if `x > y - z` is indeed true? I hope it is not and I can use this nice statement, slightly complicated at the first glance, but more attractive to compare with the extra boolean variable: boolean b = (x > y - z) ? true : callLongWaitedMethod(many, parameteres); if (b) { loveTeddyBear(); } especially if I'm using this inside a big loop which iterates over and over, so creating boolean each time will not be nice from the performance point of view while if I declare the boolean outside the loop, I may miss the neat because of the big size of the loop.
0
[ 2, 13, 8766, 1857, 100, 6022, 572, 21, 1290, 100, 53, 800, 3726, 3726, 19, 8247, 15, 100, 31, 275, 21, 13, 8766, 1857, 100, 6022, 572, 21, 1290, 100, 15, 26, 823, 45, 100, 13, 5, 5, 396, 13, 1, 13, 93, 13, 8, 2052, 6, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sahi's proxy no longer working properly === I have a suite of tests for our website using Sahi. These tests are automated and feed into our Jenkins build system. The tests run on a dedicated PC that is used for nothing else. It has Sahi plus all the browsers installed. The Jenkins server makes a remote call to the testing PC to run the tests. Due to the time it takes to run all the tests, this functional test suite is run overnight. For several months this system was all working beautifully. But suddenly one day a few weeks ago I came into the office and found that all the tests had failed. they haven't worked since. As far as I know, nothing significant has changed (we obviously keep the browser versions up-to-date, but I don't think the failure co-incided with any updates; Sahi itself hasn't had an update since last year) I've done some work to find out what's happening: Sahi uses a proxy as part of it's browser control magic, and I believe that this proxy is the source of the problem. But I can't work out how or why. When the browser under Sahi's control loads the page to be tested, it seems none of the HTTP requests are succeeding. The raw page content is shown (I think because it's cached), but none of the styles, graphics or scripts (except those already cached by the browser). Furthermore, the Sahi script then tries to click on a button to proceed through the test, but the browser fails to load anything. Sahi waits for a bit, but eventually the script times out and the test fails. I can replicate this on the affected PC when running Sahi manually. It happens on any site, and in all browsers. However it doesn't happen on my own desktop PC, which has the same versions of all the relevant software installed. And of course, it worked fine in the past on the test box. I have tried uninstalling Sahi and the browsers, and re-installing from scratch. This has not made any difference. (I appreciate that uninstalling often doesn't actually delete everything, so perhaps there's more I could do here?) I'm really hoping someone can help me here, because I'm unsure what else to try. Many thanks in advance.
0
[ 2, 16781, 49, 22, 18, 27188, 90, 1045, 638, 7428, 800, 3726, 3726, 31, 57, 21, 6160, 16, 4894, 26, 318, 2271, 568, 16781, 49, 9, 158, 4894, 50, 14904, 17, 4063, 77, 318, 11420, 1895, 329, 9, 14, 4894, 485, 27, 21, 2360, 5168, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to open Browser settings from my android application? === As per my requirement i have to clear browser cache from my application. i want to open browser settings from my application, so that user can clear the cache. By using following code. startActivityForResult(new Intent(android.provider.Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS), 0); Am able to open all manage applications. Is there any way to open browser settings directly. Thanks
0
[ 2, 184, 20, 368, 16495, 12410, 37, 51, 13005, 3010, 60, 800, 3726, 3726, 28, 416, 51, 8981, 31, 57, 20, 1207, 16495, 16522, 37, 51, 3010, 9, 31, 259, 20, 368, 16495, 12410, 37, 51, 3010, 15, 86, 30, 4155, 92, 1207, 14, 16522, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Launch the Android App which is in No Longer Visible State === My issue is An android application went in background when i click "Home" button and lauch again my app from home screen by clicking Application icon it should be visible the same screen as which I quit.But it call onDestory() method then came out of my application.I thought the application is killed by the system because of memory requirement etc.But i need the keep the activity and it should again show with the same screen. This may be achieved like maintaining sessions... Thanks in advance...
0
[ 2, 3394, 14, 13005, 4865, 56, 25, 19, 90, 1045, 4560, 146, 800, 3726, 3726, 51, 1513, 25, 40, 13005, 3010, 296, 19, 2395, 76, 31, 10840, 13, 7, 8167, 7, 5167, 17, 333, 6396, 188, 51, 4865, 37, 213, 2324, 34, 25590, 3010, 9801, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can xsi:nil="true" be added to an xml-element using PHP === I hope somebody can help me with this. I have a script that generates an XML-file: <Reeleezee version="1.15" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.reeleezee.nl/taxonomy/1.15 taxonomy\1.15\Reeleezee.xsd" xmlns="http://www.reeleezee.nl/taxonomy/1.15"> <Import> <CustomerList> <Customer> <ID/> <FullName>Dennis Rijken</FullName> <SearchName>Dennis Rijken</SearchName> <Code/> <DefaultAddress>Office</DefaultAddress> <LanguageCode>nl</LanguageCode> <FaxNumber/> <EmailAddress/> <WebsiteAddress/> <Comment/> <ChamberOfCommerceNumber/> <ChamberOfCommerceCity/> <FiscalIdentificationNumber/> <TaxDepositLHNumber/> <TaxDepositOBNumber/> <TaxDepositICLNumber/> <BankAccountNumber/> <BranchReference/> <AddressList> <Address Type="Office"> <Street>Stuivenes</Street> <Number>11</Number> <Zipcode>3911 XX</Zipcode> <City>Rhenen</City> <CountryCode>NL</CountryCode> </Address> </AddressList> <ContactPersonList> <ContactPersonReference/> </ContactPersonList> </Customer> </CustomerList> </Import> </Reeleezee> But it should be like: <Customer RlzID="23232.51.8C8D54156584290"> <ID xsi:nil="true" /> <FullName>GPXS</FullName> <SearchName>GPXS</SearchName> <Code xsi:nil="true" /> <DefaultAddress>Office</DefaultAddress> <LanguageCode>nl</LanguageCode> <PhoneNumber xsi:nil="true" /> <FaxNumber xsi:nil="true" /> <EmailAddress xsi:nil="true" /> <WebsiteAddress xsi:nil="true" /> <Comment xsi:nil="true" /> <ChamberOfCommerceNumber xsi:nil="true" /> <ChamberOfCommerceCity xsi:nil="true" /> <FiscalIdentificationNumber xsi:nil="true" /> <TaxDepositLHNumber xsi:nil="true" /> <TaxDepositOBNumber xsi:nil="true" /> <TaxDepositICLNumber xsi:nil="true" /> <BankAccountNumber xsi:nil="true" /> <BranchReference xsi:nil="true" /> <AddressList> <Address Type="Office"> <Street>Stephensonstraat</Street> <Number>19</Number> <Zipcode>1097 BA</Zipcode> <City>Amsterdam</City> <CountryCode>NL</CountryCode> </Address> <Address Type="Delivery" xsi:nil="true" /> </AddressList> <ContactPersonList> <ContactPersonReference RlzID="23232.89.8CA58ACEACD0560" /> </ContactPersonList> </Customer> My question is: how can I add the **xsi:nil="true"** to an XML-element> The xml is generated as follows: $query = "SELECT orders.id AS orderid, DATE_FORMAT(orders.datum, '%d-%m-%Y %k:%i:%s') AS datum, orders.bedrag, debiteur.naam, debiteur.achternaam, debiteur.adres, debiteur.huisnummer, debiteur.toevoeging, debiteur.postcode, debiteur.plaats, debiteur.rek_nummer, debiteur.email FROM orders LEFT JOIN debiteur ON orders.debiteur_id = debiteur.id"; $result = mysql_query($query) or die(mysql_error()); $exportXML = new SimpleXMLElement("<Reeleezee></Reeleezee>"); $import = $exportXML->addChild('Import'); $customerlist = $import->addChild('CustomerList'); while($res = mysql_fetch_array($result, MYSQL_ASSOC)){ $customer = $customerlist->addChild('Customer'); $customer->addChild('ID'); $customer->addChild('FullName', $res['naam']." ".$res['achternaam']); $customer->addChild('SearchName', $res['naam']." ".$res['achternaam']); $customer->addChild('Code'); $customer->addChild('DefaultAddress', 'Office'); $customer->addChild('LanguageCode', 'nl'); $customer->addChild('FaxNumber'); $customer->addChild('EmailAddress'); $customer->addChild('WebsiteAddress'); $customer->addChild('Comment'); $customer->addChild('ChamberOfCommerceNumber'); $customer->addChild('ChamberOfCommerceCity'); $customer->addChild('FiscalIdentificationNumber'); $customer->addChild('TaxDepositLHNumber'); $customer->addChild('TaxDepositOBNumber'); $customer->addChild('TaxDepositICLNumber'); $customer->addChild('BankAccountNumber'); $customer->addChild('BranchReference'); $addresslist = $customer->addChild('AddressList'); $address = $addresslist->addChild('Address'); $address->addAttribute('Type', 'Office'); $address->addChild('Street', $res['adres']); $address->addChild('Number', $res['huisnummer']); $address->addChild('Zipcode', $res['postcode']); $address->addChild('City', $res['plaats']); $address->addChild('CountryCode', 'NL'); $contactpersonlist = $customer->addChild('ContactPersonList'); $contactpersonlist->addChild('ContactPersonReference'); } Header('Content-type: text/xml'); $strxml = $exportXML->asXML(); $root = '<Reeleezee version='.'"1.15"'.' xmlns:xsi='.'"http://www.w3.org/2001/XMLSchema-instance"'.' xsi:schemaLocation='.'"http://www.reeleezee.nl/taxonomy/1.15 taxonomy\1.15\Reeleezee.xsd"'.' xmlns='.'"http://www.reeleezee.nl/taxonomy/1.15"'.'>'; $newxml = str_replace("<Reeleezee>", $root, $strxml); //echo $newxml; file_put_contents("test.xml", $newxml); Can somebody please help me? And how can I define an XML-element type, like integer, string etc.
0
[ 2, 184, 92, 993, 18, 49, 45, 103, 947, 3726, 7, 13398, 7, 44, 905, 20, 40, 23504, 8, 27567, 568, 13, 26120, 800, 3726, 3726, 31, 1376, 8861, 92, 448, 55, 29, 48, 9, 31, 57, 21, 3884, 30, 7920, 18, 40, 23504, 8, 16877, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Date formatting issue in Marklogic === I am using xdmp:document-filter(doc(uri)) to fetch the metadata from the documents. When I run this command on one of the documents I get the following result:- xdmp:document-filter(doc("/Vision.doc"))//*:meta[@name eq "Creation_Date"]/@content <?xml version="1.0" encoding="UTF-8"?> <results warning="attribute node"> <warning warning="attributes cannot be root nodes" content="17-05-2012 00:48:00"/> </results> And when I run this command on another document then I get this:- <?xml version="1.0" encoding="UTF-8"?> <results warning="attribute node"> <warning warning="attributes cannot be root nodes" content="2012-06-03T13:45:00Z"/> </results> You can see that date format is different in both the outputs. There may be different date formats in documents uploaded in Marklogic Server. But I want to show the creation date of documents in some fixed format ( e.g. May 16, 2012). How can I convert the different date formats to a fixed date format ? And I also want to compare these dates to the date entered by the user. The documents matching the search criteria should get returned by the search query. So I have two questions here:- 1. How to convert creation date of documents to some fixed format to show in the UI. 2. How to compare this creation date to the date entered by the user(which is in "mm/dd/yyyy" format) so that I can get the correct result.
0
[ 2, 1231, 2595, 1203, 1513, 19, 943, 24268, 800, 3726, 3726, 31, 589, 568, 993, 43, 2554, 45, 28132, 8, 11924, 815, 5, 13799, 5, 3594, 6, 6, 20, 18312, 14, 28057, 37, 14, 4374, 9, 76, 31, 485, 48, 1202, 27, 53, 16, 14, 4374, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to count number of records as well get the records from the query? === I have 3 tables A,B and C. In the stored procedure,I have used a query to get the result but i also want the total number of records i got from the above query. Is this possible. I tried using something like this Select count(*) from (select A.Name,B.Address,C.grade from A,B,C where A.id=B.id AND B.Tlno=C.tlno) But this is not working.
0
[ 2, 184, 20, 2468, 234, 16, 742, 28, 134, 164, 14, 742, 37, 14, 25597, 60, 800, 3726, 3726, 31, 57, 203, 7484, 21, 15, 220, 17, 272, 9, 19, 14, 8214, 7004, 15, 49, 57, 147, 21, 25597, 20, 164, 14, 829, 47, 31, 67, 259, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can inputstream as image in JSF2.0? === With OmniFaces how can we inputstream as image in JSF2.0?
0
[ 2, 184, 92, 6367, 11260, 28, 1961, 19, 487, 18, 410, 135, 9, 387, 60, 800, 3726, 3726, 29, 14677, 6413, 18, 184, 92, 95, 6367, 11260, 28, 1961, 19, 487, 18, 410, 135, 9, 387, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Django FileField upload === I am quite confused. I have wrote an upload form in my site. everything works perfectly.. however, I am reading that I needed to implement a function like handle_uploaded_file to dump the file content from the request.FILES to a physical file. however , I didn't do it any the file exists in the location I set the upload_to in the FileField field. everything works as expected.. Am I missing something ? why do I need handle_uploaded_file then ?
0
[ 2, 3857, 14541, 3893, 1109, 71, 8294, 800, 3726, 3726, 31, 589, 1450, 4230, 9, 31, 57, 738, 40, 71, 8294, 505, 19, 51, 689, 9, 796, 693, 5759, 9, 9, 207, 15, 31, 589, 1876, 30, 31, 851, 20, 8713, 21, 1990, 101, 3053, 1, 576,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use background image inside CSS for wicked_pdf === I'm using the wicked_pdf plugin with a rails 3.0 project. I want to define background with image inside css file. Here is my css code .thumb-image { background: url(http://localhost:3000/images/pdf/ideathumbbg.png) no-repeat left top; width: 1979px; height: 946px; position: relative; padding: 54px; text-align: center; margin-bottom: 15px; } This does not find the ideathumbbg.png and it does render ideathumbbg.png in the pdf generated. Is it possible to use the wicked_pdf_image_tag helper inside a css file? or any other best solution for this problem?
0
[ 2, 184, 20, 275, 2395, 1961, 572, 272, 18, 18, 26, 9840, 1, 11124, 800, 3726, 3726, 31, 22, 79, 568, 14, 9840, 1, 11124, 10922, 108, 29, 21, 2240, 18, 203, 9, 387, 669, 9, 31, 259, 20, 9267, 2395, 29, 1961, 572, 272, 18, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Storing MySQL connection details as a function in PHP (PDO) === I'm trying out the PDO extension, and was wondering if it were possible to store the opening of the DB connection as a function that could be called whenever needed. I tried some basic stuff, but it doesn't seem to work. Can it? **Example Function** function DB() { $conn = new PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASS); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); if (!$conn) { echo "<br />MySQL SERVER CONNECTION ERROR.<br />\n"; } if($conn) { return $conn; } } **Example Useage** function is_post_id($submitted) { try { $id = $submitted; DB(); //check to see if there is a post //with an id matching the submitted query $qPOST= $conn->prepare('SELECT COUNT(*) FROM posts WHERE id = :id'); $qPOST->execute(array('id' => $id)); //results counted $cPOST= (int)$qPOST->fetchColumn(); if($cPOST > 0) { return TRUE; } else { return FALSE; } } catch(PDOException $e) { echo $e->getMessage(); } }
0
[ 2, 25615, 51, 18, 22402, 2760, 3289, 28, 21, 1990, 19, 13, 26120, 13, 5, 306, 537, 6, 800, 3726, 3726, 31, 22, 79, 749, 70, 14, 351, 537, 3896, 15, 17, 23, 5712, 100, 32, 46, 938, 20, 1718, 14, 1214, 16, 14, 13, 9007, 2760, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I retrieve the ClickOnce updater application, programatically? === I have a ClickOnce application, that I want to run everytime the computer starts, based on user's choice. For this I add my application's executable to the registry. But this directly starts the app, skiping the ClickOnce search for updates. So I need the path to the ClickOnce application to correctly setup in the registry.
0
[ 2, 184, 92, 31, 11917, 14, 10840, 13120, 11100, 139, 3010, 15, 625, 721, 8438, 60, 800, 3726, 3726, 31, 57, 21, 10840, 13120, 3010, 15, 30, 31, 259, 20, 485, 352, 891, 14, 1428, 3244, 15, 432, 27, 4155, 22, 18, 1837, 9, 26, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
change wp-admin folder === I'm running some Wordpress websites and I have googled this several times without being able to find an concrete answer to my problem. I have my sites protected with a login-lock plugin which locks an IP for a certain time if that IP tries to login with wrong credentials repeatedly. So my problem is that I keep receiving alerts and alerts of IPs trying to login to my backend. I know I could turn those notifications off, but I would like to solve this correctly. So I have seen some good WP sites where you can type the /wp-admin and nothing is shown, you get a 404 or you are redirected to homepage. I have also read here about a plugin called stealth login but plugin is no longer listed on wordpress site. I have also saw some plugins that work with IPs and restrict the folder to certain IP but on my ISP I have a dynamic IP so if I have a new one I'd not be able to see the wp-admin folder. I'd like to know if there is a standardized or a good way to fix that and hide the wp-admin directory to public. Thank you very much. Juan.-
0
[ 2, 753, 13, 13790, 8, 1283, 2160, 19294, 800, 3726, 3726, 31, 22, 79, 946, 109, 833, 5890, 13931, 17, 31, 57, 8144, 43, 48, 238, 436, 366, 142, 777, 20, 477, 40, 4105, 1623, 20, 51, 1448, 9, 31, 57, 51, 3259, 3803, 29, 21, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Create a Contact with PhoneGap and Sencha Touch 2 === I'm building an example app using Sencha Touch 2 and PhoneGap. Originally it was just a Sencha Touch 2 app that showed some static text, specifically contact information for any random person. Now, I've integrated PhoneGap into the project because I'd like to be able to add that contact information to the device (currently an android emulator). I've gone through the code here at: http://docs.phonegap.com/en/1.0.0/phonegap_contacts_contacts.md.html#Contact But I haven't been able to get it working. Does anybody have an example of how to get this going. **TL;DR** - How can I take static contact information from Sencha Touch 2 javascript view and add it to the contacts list on an Android emulator? Thanks in advance.
0
[ 2, 184, 20, 1600, 21, 2203, 29, 1132, 1136, 306, 17, 8252, 1651, 1723, 172, 800, 3726, 3726, 31, 22, 79, 353, 40, 823, 4865, 568, 8252, 1651, 1723, 172, 17, 1132, 1136, 306, 9, 912, 32, 23, 114, 21, 8252, 1651, 1723, 172, 4865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Conditional if with OR checking all conditions === If have if block like that if(foo() || foo2() || foo3()) { //do some things } I need only one foo function to return true to execute that code. But I have to call all of them. Problem starts when first foo returns true. This way rest of foos (foo2 and foo3) are not being called. I know that I can do it like that: bool foo1 = foo1(); bool foo2 = foo2(); bool foo3 = foo3(); if(foo1 || foo2 || foo3) {} But I have 18 foo functions and this is in few parts of my code. Is there any trick to do it short and easy?
0
[ 2, 21206, 100, 29, 54, 9886, 65, 2039, 800, 3726, 3726, 100, 57, 100, 1921, 101, 30, 100, 5, 4120, 111, 5, 6, 13, 1, 4310, 111, 135, 5, 6, 13, 1, 4310, 111, 240, 5, 6, 6, 13, 1, 12894, 537, 109, 564, 13, 1, 31, 376, 104,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at === System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at http://prodserver:8080/FxWebservice/services/FxRateFetcher.FxRateFetcherHttpSoap11Endpoint/ that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. ---> System.Net.WebException: The remote server returned an error: (404) Not Found. -- I am calling this webservice hosted on server which use tomcat/axis2 for hosting. Now when I open this link in browser http://servername:8080/FxWebservice/services/FxRateFetcher?wsdl it open correct but when I open any of SOAP links or even http links it does not open. This cause exception in code. On server it does work and show everything fine on axis2 webbased manager. Also from axis2 services when I try to open EPR link it does not open. May be any config or web xmls wrong? Can someone please point what part is wrong in hosting this webservice?
0
[ 2, 329, 9, 11449, 13998, 9, 2451, 3132, 1270, 12235, 10066, 872, 45, 80, 23, 90, 241, 3132, 4948, 35, 800, 3726, 3726, 329, 9, 11449, 13998, 9, 2451, 3132, 1270, 12235, 10066, 872, 45, 80, 23, 90, 241, 3132, 4948, 35, 7775, 6903, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jquery ui tabs issue with tab selection === when using jquery tabs with datatables and i add this line: var selectedTab = $tabs.tabs('option', 'selected'); $tabs.find('li').eq(selectedTab).removeClass('ui-tabs-selected').end().tabs('select', selectedTab); this line is the only thing that I have found that will hide the tabs that are not initially active and then when a new tab is clicked it hides the old active tab and makes the tab that was clicked active. however when i add that line the css for the tabs and the datatables goes away. the tabs are displayed as a bullet list of anchors to the datatables (which act correctly in terms of hiding and displaying when the link is clicked) if any one has any ideas how to fix this issue it would be much appreciated. thank you so much!
0
[ 2, 487, 8190, 93, 13, 5661, 6523, 18, 1513, 29, 6523, 3155, 800, 3726, 3726, 76, 568, 487, 8190, 93, 6523, 18, 29, 1054, 5924, 18, 17, 31, 3547, 48, 293, 45, 4033, 1704, 15783, 800, 5579, 15783, 18, 9, 15783, 18, 5, 22, 2594, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ERROR: invalid mode ('r') - Cannot conduct Cognate Analysis using LingPy in Python 2.7 === I'm using the LingPy 1.0.1 library for Python 2.7, attempting to conduct Cognate Analysis on a single tab-delimited list of Spanish-English words I created. The list is named SE.lxs and looks like this: ID Words Spanish 1 dog pero 2 cat gato 3 water agua 4 table meza 5 hand mano 6 red rojo 7 blue azul 8 green verde 9 person persona 10 girl chica Which I believe is the appropriate format as defined here: http://lingulist.de/lingpy/docu/lingpy.lexstat.LexStat.html However, when I run the commands: lex = LexStat(get_file('C:\Python27\SE.lxs')) I get the following error: Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> lex = LexStat(get_file('C:\Python27\SE.lxs')) File "C:\Python27\lib\site-packages\lingpy-1.0.1-py2.7-win32.egg\lingpy\lexstat.py", line 62, in __init__ self._init_lxs(infile) File "C:\Python27\lib\site-packages\lingpy-1.0.1-py2.7-win32.egg\lingpy\lexstat.py", line 278, in _init_lxs txt = array(loadtxt(infile),dtype="str") File "C:\Python27\lib\site-packages\lingpy-1.0.1-py2.7-win32.egg\lingpy\algorithm\misc.py", line 454, in loadtxt f = open(infile) IOError: [Errno 22] invalid mode ('r') or filename: 'C:\\Python27\\lib\\site-packages\\lingpy-1.0.1-py2.7-win32.egg\\lingpy\\test/tests/lxs/C:\\Python27\\SE.lxs' A picture of the problem can be found here: http://i.imgur.com/XdLig.png
0
[ 2, 7019, 45, 16671, 3740, 13, 5, 22, 139, 22, 6, 13, 8, 1967, 3989, 13, 13974, 8820, 2495, 568, 13, 802, 6448, 19, 20059, 172, 9, 465, 800, 3726, 3726, 31, 22, 79, 568, 14, 13, 802, 6448, 137, 9, 387, 9, 165, 1248, 26, 20059...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
TableSorter repaginate after rows are hidden === After searching around and not finding an answer to this, here goes. I have a table that's paginated with tablesorter, and I'm going to add some buttons at the bottom which, when clicked, will hide certain rows in the table (ie. filter it). Is there any way to repaginate the table (ie. refresh it) after the rows have been hidden, so that the table remains paginated, but with the rows still hidden? At the moment once rows are hidden, the first page is missing rows, and the subsequent pages' rows aren't hidden.
0
[ 2, 7484, 248, 815, 9411, 3302, 17939, 75, 11295, 50, 3689, 800, 3726, 3726, 75, 5792, 140, 17, 52, 3007, 40, 1623, 20, 48, 15, 235, 1852, 9, 31, 57, 21, 859, 30, 22, 18, 19006, 12721, 29, 7484, 248, 815, 15, 17, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
tileMode="repeat" broken on Android 4.1 jelly bean === My app uses tiled backgrounds in a couple of places, and when I tested in the Android 4.1 Jelly Bean emulator, these backgrounds simply don't show up. I tried putting a regular image in instead, and it shows up fine. So I'm wondering if the tileMode="repeat" had been deprecated or something? Though I can't find any information saying so online. Here's my background xml file: backrepeat.xml <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/greenchecker" android:tileMode="repeat" /> And here is where I use it in my button: greenchecker_btn.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="false" android:state_enabled="true" android:state_focused="false" android:drawable="@drawable/backrepeat" /> <item android:state_pressed="true" android:state_enabled="true" android:drawable="@drawable/backrepeat_over" /> <item android:state_pressed="false" android:state_enabled="true" android:state_focused="true" android:drawable="@drawable/backrepeat" /> <item android:state_pressed="false" android:state_enabled="false" android:state_focused="false" android:drawable="@drawable/backrepeat" /> <item android:state_pressed="false" android:state_enabled="false" android:state_focused="true" android:drawable="@drawable/backrepeat" /> </selector> Anyone got any idea why this has stopped working in 4.1? Works in all other versions as far as I know. Thanks!
0
[ 2, 13, 9802, 15570, 3726, 7, 99, 7081, 38, 7, 2023, 27, 13005, 268, 9, 165, 18749, 15322, 800, 3726, 3726, 51, 4865, 2027, 9189, 69, 2395, 18, 19, 21, 1335, 16, 1489, 15, 17, 76, 31, 7631, 19, 14, 13005, 268, 9, 165, 18749, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
create new vectors from columns of an existing matrix === I'd like to create new vectors from columns of an existing matrix. My code looks like: Matrix=[1 2 3;4 5 6;7 8 9]; A=Matrix(:,1); B=Matrix(:,2); C=Matrix(:,3); I see that this code is not really elegant especially if I have a big number of columns, that's why I'm looking for something like: [A B C]=Matrix; But Matlab said the matrix can't be assigned to multiple values. Is there another way?
0
[ 2, 1600, 78, 7497, 18, 37, 7498, 16, 40, 3149, 8187, 800, 3726, 3726, 31, 22, 43, 101, 20, 1600, 78, 7497, 18, 37, 7498, 16, 40, 3149, 8187, 9, 51, 1797, 1879, 101, 45, 8187, 3726, 2558, 165, 172, 203, 73, 300, 331, 400, 73, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to change textsize in datepicker? === The default textsize in datepicker is too big for my app. I've seen a way suggested to do it [here](http://stackoverflow.com/questions/8837480/android-honeycomb-datepicker-text-color), but fishing around for the textviews nested inside the datepicker class seems clunky and error prone. Is there a better/cleaner way to do it?
0
[ 2, 184, 20, 753, 6381, 2952, 19, 1231, 16855, 106, 60, 800, 3726, 3726, 14, 12838, 6381, 2952, 19, 1231, 16855, 106, 25, 266, 580, 26, 51, 4865, 9, 31, 22, 195, 541, 21, 161, 2347, 20, 107, 32, 636, 6836, 500, 5, 21127, 6903, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ruby on rails - update table with jquery GET method === I am using Rails and jquery. My problem is when I try to update the resources table, by sending the parameters with the get method it doesn't work. My controller class ResourcesController < ApplicationController ... # PUT /resources/18 def update @resource.update_attributes(params[:resource]) end ... end javascript file $.get("/resources/18", {color: blue, size: 15}, function(data) { }); Thanks in advance for any help.
0
[ 2, 10811, 27, 2240, 18, 13, 8, 11100, 859, 29, 487, 8190, 93, 164, 2109, 800, 3726, 3726, 31, 589, 568, 2240, 18, 17, 487, 8190, 93, 9, 51, 1448, 25, 76, 31, 1131, 20, 11100, 14, 2566, 859, 15, 34, 4907, 14, 12905, 29, 14, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Making custom uitableviewcell in a uitableview on top of a cocos2d layer === First here is the code showing the uiviewcontroller which contain the uitableview: //View Controller with navigation bar InAppPurchaseViewController *purchaseViewController = [[InAppPurchaseViewController alloc] init]; purchaseViewController.title = @"Liste de packs"; purchaseViewController.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(dismissViewController:)] autorelease]; //Creation de la navigation bar et release du viewcontroller UINavigationController *navController = [[[UINavigationController alloc] initWithRootViewController:purchaseViewController] autorelease]; [purchaseViewController release]; container = [[UIViewController alloc] init]; [container setView:[[CCDirector sharedDirector] openGLView]]; [container setModalTransitionStyle: UIModalTransitionStyleCoverVertical]; [container presentModalViewController: navController animated: YES]; here is how i create my uitableviewcell which is : InAppPurchaseCell.h @interface InAppPurchaseCell : UITableViewCell @property (strong, nonatomic) IBOutlet UIImageView *ImageThumbnail; @property (strong, nonatomic) IBOutlet UIButton *BuyButton; @property (strong, nonatomic) IBOutlet UILabel *TitleLabel; @property (strong, nonatomic) IBOutlet UILabel *PriceLabel; @end InAppPurchaseCell.m @implementation InAppPurchaseCell @synthesize PriceLabel; @synthesize TitleLabel; @synthesize BuyButton; @synthesize ImageThumbnail; -(id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { } return self; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; } @end InAppPurchaseCell.xib All the iboutlet are linked correctly And : - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *cellIdentifierCasual = @"ShopCell"; InAppPurchaseCell *cell = (InAppPurchaseCell*)[tableView dequeueReusableCellWithIdentifier:cellIdentifierCasual]; if (cell == nil) { cell = (InAppPurchaseCell*)[[[NSBundle mainBundle] loadNibNamed:@"InAppPurchaseCell" owner:nil options:nil]lastObject]; cell.selectionStyle = UITableViewCellSelectionStyleGray; } else { cell.selectionStyle = UITableViewCellSelectionStyleGray; } Packages *packages = [PackagesParser loadData]; Package *package = [packages.Packages objectAtIndex:indexPath.row]; cell.ImageThumbnail.image = [UIImage imageNamed:@"Icon-Small.png"]; cell.PriceLabel.text = @"0,75$"; cell.TitleLabel.text = package.Name; return cell; } What's hapenning when the table pop up : 2012-07-13 13:56:55.378 Testing[1276:1c103] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<NSObject 0xa10da00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ImageThumbnail.'
0
[ 2, 544, 5816, 13, 11193, 579, 4725, 9725, 19, 21, 13, 11193, 579, 4725, 27, 371, 16, 21, 22470, 18, 135, 43, 5385, 800, 3726, 3726, 64, 235, 25, 14, 1797, 3187, 14, 13, 5661, 4725, 12898, 1252, 56, 3717, 14, 13, 11193, 579, 4725...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android application current activity bring to front issue === I have a basic questions for which I don't think attaching any code-snippet may help. When we press home button while a app is in front we go to the home page and the app looses its focus. Now, My application has to have notification icon in the status bar. And As in my application, there is a possibility of having 2-3 activity visible(one above another in dialogue view) in certain situation so I am not really sure as to how could I resume such state when I press notifications icon in the status bar. But, when I press home button and then press the application icon in the home screen I get everything as expected. So, is there any way, by which I can do the same with notification bar icon.
0
[ 2, 13005, 3010, 866, 2358, 1499, 20, 431, 1513, 800, 3726, 3726, 31, 57, 21, 2125, 2346, 26, 56, 31, 221, 22, 38, 277, 19514, 68, 186, 1797, 8, 29061, 123, 448, 9, 76, 95, 901, 213, 5167, 133, 21, 4865, 25, 19, 431, 95, 162, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to update imshow in matplotlib without overwriting new color bar or subplot title? === **Background:** I am working an a data processing application and am trying to visualize 2D arrays with matplotlib embedded into a tkinter gui. I am trying to update the matplotlib figure by collecting user input (i.e. what frame they want displayed, various other options) so I do not want to generate the animation in advance. **System:** Windows xp, Python 2.7, matplotlib 1.1.1rc **Question:** How do I update only the image produced by imshow and not the colorbar? **GUI** ![gui snapshot][1] *Notice how color bars write over themselves.* **Code:** *note: the code below is untested, however it is the basic idea of how my current code is setup* import matplotlib import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg import Tkinter as tk import numpy as np class MainWindow: def __init__(self,application): self.mainframe=tk.Frame(application) #update button ttk.Button(application,text='Update',command=self.update).pack() #matplotlib setup self.ren2DFig=plt.figure(figsize=(4,4),dpi=100) self.renCanvas=FigureCanvasTkAgg(self.ren2DFig,master=self.renWin2D) self.renCanvas.show() self.renCanvas.get_tk_widget().pack() self.subPlot=self.ren2DFig.add_subplot(111) self.subPlot.get_yaxis().set_visible(False) self.subPlot.get_xaxis().set_visible(False) self.subPlot.get_axes().set_frame_on(False) frame=np.zeros((20,40),) frame[9:11 ,9:11]=1 frame[5 ,5]=.5 self.im=self.subPlot.imshow(self.rotate(frame), origin = 'lower') self.cbar=self.ren2DFig.colorbar(self.im) self.cbar.set_label('Solid Fraction') self.renCanvas.draw() def update(self): self.im.set_array(np.zeros((20,40),)) self.renCanvas.draw() application=tk.Tk() application.focus_force() window=MainWindow(application) application.protocol("WM_DELETE_WINDOW",window.close) application.mainloop() Any help would be much appreciated! Thanks! [1]: http://i.stack.imgur.com/CIXjL.png
0
[ 2, 184, 20, 11100, 797, 9303, 19, 4277, 13221, 38, 8326, 366, 84, 12646, 78, 1665, 748, 54, 972, 13221, 38, 581, 60, 800, 3726, 3726, 13, 1409, 1958, 8810, 45, 1409, 31, 589, 638, 40, 21, 1054, 5511, 3010, 17, 589, 749, 20, 3458...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mantis Bug tracker severity options customization php === When we `Report Issue` in Mantis, there comes `Severity` option, where I want to add one custom field, which should display in that drop down. Any idea which files needs to change this for or can we manage it from Database? Any body has done this kind of customization into Mantis? I'm using Mantis 1.1.6 version, but other version updates will also do for me. Thanks
0
[ 2, 169, 3409, 6256, 792, 106, 21671, 6368, 5816, 1829, 13, 26120, 800, 3726, 3726, 76, 95, 13, 1, 17437, 1513, 1, 19, 169, 3409, 15, 80, 1624, 13, 1, 18, 5221, 856, 1, 4255, 15, 113, 31, 259, 20, 3547, 53, 5816, 575, 15, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...