unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
convert string to datetime according to Culture === does any one know how to convert string into date according to user's culture i am using this code DateTime.Parse("2-7-1997", CultureInfo.InvariantCulture); it works fine since my culture is set to us but if i pass DateTime.Parse("23-7-1997", CultureInfo.InvariantCulture); it throws Format exception String was not recognized as a valid DateTime. I have also tried this but it requires string according to Currentculture DateTime.Parse("7/23/1997",Thread.CurrentThread.CurrentCulture) Is there any thing which converts string into date according to user culture
0
[ 2, 8406, 3724, 20, 1231, 891, 496, 20, 1365, 800, 3726, 3726, 630, 186, 53, 143, 184, 20, 8406, 3724, 77, 1231, 496, 20, 4155, 22, 18, 1365, 31, 589, 568, 48, 1797, 1231, 891, 9, 3574, 870, 5, 7, 135, 8, 465, 8, 4168, 7, 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 de-select a previous row in a Grid-view? === I have gridview with template field of dropdownlist in each row.when i select any value from dropdownlist it will change color of 3rd row below than it.But when i click on another dropdownlist it is changing the color of 3rd row below than it but color of previous row is still stick to it.I want one row colored at a time.How to do it .? I am doing following. protected void GridView1_SelectedIndexChanged(object sender,EventArgs e) { DropDownList ddl = (DropDownList)sender; GridViewRow row = (GridViewRow)ddl.NamingContainer; int g = row.RowIndex + 3; GridView1.Rows[g].BackColor = Color.Yellow; } Thanks in advance.
0
[ 2, 184, 20, 121, 8, 18, 16964, 21, 1158, 3131, 19, 21, 7354, 8, 4725, 60, 800, 3726, 3726, 31, 57, 7354, 4725, 29, 22894, 575, 16, 2804, 2968, 5739, 19, 206, 3131, 9, 3185, 31, 5407, 186, 1923, 37, 2804, 2968, 5739, 32, 129, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 configure Delay timing in celery? === input: >>> from registration import tasks >>> tasks.mail.delay() <AsyncResult: 36a2e61c-493b-472c-99f1-cb2391110aa9> >>> r=tasks.mail.delay() >>> r.ready() output: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/dist-packages/celery/result.py", line 174, in ready return self.state in self.backend.READY_STATES File "/usr/local/lib/python2.6/dist-packages/celery/result.py", line 277, in state return self.backend.get_status(self.id) File "/usr/local/lib/python2.6/dist-packages/celery/backends/base.py", line 487, in _is_disabled raise NotImplementedError('No result backend configured. ' NotImplementedError: No result backend configured. Please see the documentation for more information. How can i configure the back end so taht i can fix specific period of delay
0
[ 2, 184, 20, 1065, 15951, 7255, 11812, 19, 11692, 3849, 60, 800, 3726, 3726, 6367, 45, 13, 1, 37, 8587, 9010, 8674, 13, 1, 8674, 9, 8079, 9, 546, 4414, 5, 6, 13, 1, 58, 9507, 150, 29955, 45, 3372, 58, 135, 62, 4821, 150, 8, 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...
How do I prevent my vim autocmd from running in the command-line window? === I use an autocommand to close the preview window when I leave insert mode as described in [this answer](http://stackoverflow.com/a/3107159/79125). But when I am in the command-line window (`q:`), I get an error: `E11: Invalid in the command-line window; <CR> executes, CTRL-C quits: :pclose|endif` How can I prevent this error? I tried running `:set` in the command-line window and a regular window, but no obvious option revealed itself in the diff.
0
[ 2, 184, 107, 31, 2501, 51, 1790, 79, 3108, 9095, 43, 37, 946, 19, 14, 1202, 8, 1143, 1463, 60, 800, 3726, 3726, 31, 275, 40, 3108, 16239, 20, 543, 14, 16121, 1463, 76, 31, 767, 14692, 3740, 28, 745, 19, 636, 1565, 1623, 500, 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...
How to clear output in Vte.Terminal? === How to clear all output in Vte.Terminal ?
0
[ 2, 184, 20, 1207, 5196, 19, 566, 591, 9, 20907, 60, 800, 3726, 3726, 184, 20, 1207, 65, 5196, 19, 566, 591, 9, 20907, 13, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Spell Checking Merge Fields in merge document in Microsoft Word === By default, Microsoft Word 2010 does not spell check merge fields in documents created using Microsoft Mail Merge. Is there a way of easily changing the behavior of MS-Word to spell check merge fields by default? ------------------------ NOTE: The following article describes the problem and a way of working around the issue: [How can I spell check merge fields in Microsoft Word][1] Unfortunately, the document that i am working with has approximately 40 merge fields - so the approach above is unwieldy. [1]: http://community.rxworks.com/rxworks_veterinary_practice_management_software/topics/how_can_i_spell_check_merge_fields_in_micrososft_word
0
[ 2, 4762, 9886, 12666, 2861, 19, 12666, 4492, 19, 7099, 833, 800, 3726, 3726, 34, 12838, 15, 7099, 833, 498, 630, 52, 4762, 2631, 12666, 2861, 19, 4374, 679, 568, 7099, 4216, 12666, 9, 25, 80, 21, 161, 16, 2351, 4226, 14, 3257, 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...
Playing MIDI-files and synchronizing time with visuals with WPF === I'm writing an application using C#/Windows Presentation Foundation. It is visualizing the steps of a dance with foot shapes. Currently I'm playing the music as WAV-file and timing the steps with a Timer. Because of the irregularities of a **Timer** the music is **not in sync** with the steps. I need some kind of **synchronization**, this is why I wanted to use **MIDI-files**. To sync the steps I need an **event for each time** in the music and would then show the next step. In this case I wouldn't use the Timer anymore. I already looked at **NAudio**. I found tutorials for playing MP3-files which don't help me. I created a **MidiFile-object** but I don't know how to play it. I know that a MIDI-file contains information on how to play the music (for synthesizers) but I don't want to implement my own player. 1. What is a **simple** way to **play** a MIDI-file with NAudio? 2. How can I **receive Events** in each time of the music? 3. Is there an **alternative** to NAudio that can probably help me better? 4. Is there an alternative to MIDI that can sync to my visualization? I am thankful for every kind of help. I've been searching for a while and think that I am maybe looking in the wrong direction.
0
[ 2, 791, 907, 49, 8, 16877, 18, 17, 13, 16023, 3335, 85, 29, 3458, 18, 29, 619, 7721, 800, 3726, 3726, 31, 22, 79, 1174, 40, 3010, 568, 272, 5910, 118, 27508, 18, 6364, 1304, 9, 32, 25, 3458, 3335, 14, 2382, 16, 21, 1329, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 - redirect after after payment to my own page === I would like to automatically redirecta a user after successful payment to my own "thank you" page. Currently I am working with Paypal under the sandbox account and on my localhost. Is there any way to do it? I tried to browse through the admin account in sandbox, but I didn't find something useful...
0
[ 2, 1372, 6720, 13, 8, 302, 14706, 75, 75, 7582, 20, 51, 258, 2478, 800, 3726, 3726, 31, 83, 101, 20, 7499, 302, 14706, 58, 21, 4155, 75, 1300, 7582, 20, 51, 258, 13, 7, 5904, 42, 7, 2478, 9, 871, 31, 589, 638, 29, 1372, 6720...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 repeat certain amount of code === I have created an application that connect on a web-server and reads an xml file,there will be an update in the xml on the webserver every 5 minutes.I want to connect on the webserver by using my application to get this updated xml file.How can i do that? this a sample code of my application HandlingXMLStuff doingwork=new HandlingXMLStuff(); try { URL website=new URL(FinalURL); SAXParserFactory spf=SAXParserFactory.newInstance(); SAXParser sp=spf.newSAXParser(); XMLReader xr=sp.getXMLReader(); xr.setContentHandler(doingwork); xr.parse(new InputSource(website.openStream())); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (ParserConfigurationException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SAXException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } and this the code of class that handle the xml file public class HandlingXMLStuff extends DefaultHandler{ String street1=null,street2=null,street3=null,street4=null; @Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { // TODO Auto-generated method stub if(localName.equals("Street1")) { street1=attributes.getValue("data"); } if(localName.equals("Street2")) { street2=attributes.getValue("data"); } if(localName.equals("Street3")) { street3=attributes.getValue("data"); } if(localName.equals("Street4")) { street4=attributes.getValue("data"); } }
0
[ 2, 184, 20, 6830, 1200, 2006, 16, 1797, 800, 3726, 3726, 31, 57, 679, 40, 3010, 30, 6379, 27, 21, 2741, 8, 10321, 106, 17, 11137, 40, 23504, 3893, 15, 1887, 129, 44, 40, 11100, 19, 14, 23504, 27, 14, 2741, 10321, 106, 352, 331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
libdft_api.h:36:25: fatal error:sys/syscall.h:No such file or directory === I got a problem when compiling libdft in windows xp I use cygwin terminal to compile it and I have installed everything in devel and I have modified the Makefile to avoid the OS check but when I try the make command it returns the error: libdft_api.h:36:25: fatal error:sys/syscall.h:No such file or directory I hope you can help me with this question. Please forgive my poor English. Thanks~
0
[ 2, 13, 8326, 43, 3072, 1, 2552, 49, 9, 252, 22841, 45, 1811, 45, 8773, 7019, 45, 4980, 18, 118, 4980, 18, 9200, 9, 252, 45, 251, 145, 3893, 54, 16755, 800, 3726, 3726, 31, 330, 21, 1448, 76, 24378, 13, 8326, 43, 3072, 19, 1936...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Optimizing SDF filesize === Hello developers out there, I recently started learning Linq and SQL. As a small project I'm writing a dictionary application for Windows Phone. The project is split into two Applications. One Application (that currently runs on my PC) generates a SDF file on my PC. The second App runs on my Windows Phone and searches the database. However I would like to optimize the data usage. The raw entries of the dictionary are written in a TXT file with a filesize of around 39MB. The file has the following layout germanWord \tab englishWord \tab group germanWord \tab englishWord \tab group The file is parsed into a SDF database with the following tables. Table *Word* with columns *\_version (rowversion), Id (int IDENTITY), Word (nvarchar(250)), Language (int)* This table contains every single word in the file. The language is a flag from my code that I used in case I want to add more languages later. A word-language pair is unique. Table *Group* with columns *\_version (rowversion), GroupId (int IDENTITY), Caption (nvarchar(250))* This table contains the different groups. Every group is present one time. Table *Entry* with columns *\_version (rowversion), EntryId (int IDENTITY), WordOneId (int), WordTwoId(int), GroupId(int)* This table links translations together. *WordOneId* and *WordTwoId* are foreign keys to a row in the *Word* Table, they contain the id of a row. *GroupId* defines the group the words belong to. I chose this layout to reduce the data footprint. The raw textfile contains some german (or english) words multiple times. There are around 60 groups that repeat themselfes. Programatically I reduce the wordcount from around 1.800.000 to around 1.100.000. There are around 50 rows in the *Group* table. Despite the reduced number of words the SDF is around 80MB in filesize. That's more than twice the size of the the raw data. Another thing is that in order to speed up the searching of translation I plan to index the *Word* column of the *Word* table. By adding this index the file grows to over 130MB. How can it be that the SDF with ~60% of the original data is twice as large? Is there a way to optimize the filesize?
0
[ 2, 19259, 3335, 13, 18, 8736, 6488, 2952, 800, 3726, 3726, 10975, 10168, 70, 80, 15, 31, 1989, 373, 2477, 6294, 1251, 17, 4444, 255, 9, 28, 21, 284, 669, 31, 22, 79, 1174, 21, 9186, 3010, 26, 1936, 1132, 9, 14, 669, 25, 2132, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 every incoming request to specific path preserving file and query? === As I'm not strong with apache could someone point me in right direction with this? I currently have urls like this `www.domain.com/public/my_file.php?query=thing&another=thing` What I'm looking to do is to rewrite my code so i it don't use `/public/` part anymore, but after that i still need to support all crawlers and old urls people are linking to. So how would i do 301 redirect preserving everything that comes after `public/` part? Need to redirect this request `www.domain.com/public/my_file.php?query=thing&another=thing` and make it into this `www.domain.com/my_file.php?query=thing&another=thing` with 301 redirect. Thnaks.
0
[ 2, 302, 14706, 352, 17126, 3772, 20, 1903, 2013, 17936, 3893, 17, 25597, 60, 800, 3726, 3726, 28, 31, 22, 79, 52, 966, 29, 17140, 110, 737, 454, 55, 19, 193, 1400, 29, 48, 60, 31, 871, 57, 13, 911, 7532, 101, 48, 13, 1, 6483, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 edit help->welcome menu to my own feature in eclipse === I want to edit the submenu welcome in help menu to a new feature in eclipse.But i can't find how to.I'm chinese,my english not good. Thanks first~~~
1
[ 2, 184, 20, 9392, 448, 8, 1, 16873, 11379, 20, 51, 258, 1580, 19, 11652, 800, 3726, 3726, 31, 259, 20, 9392, 14, 972, 755, 291, 5575, 19, 448, 11379, 20, 21, 78, 1580, 19, 11652, 9, 811, 31, 92, 22, 38, 477, 184, 20, 9, 49, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0...
Game center cocos2d questions === Do I need iPhone developer certificate and the app available on the app store in order to implement game center. Is it easy to implement game center leader boards into your game and if so any tutorials on doing so. I have a score counter already ,but not sure how I would add it into game center. Any good tutorials on implementing game center into cocos2d and if so may I see a link (yes I have seen some tutorials ,but I want to be recommended a good tutorial).
0
[ 2, 250, 459, 22470, 18, 135, 43, 2346, 800, 3726, 3726, 107, 31, 376, 21024, 10058, 6259, 17, 14, 4865, 904, 27, 14, 4865, 1718, 19, 389, 20, 8713, 250, 459, 9, 25, 32, 2010, 20, 8713, 250, 459, 1156, 8755, 77, 154, 250, 17, 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...
Convert excel formula to an access qry === Is there a way to convert the below excel formula to a qry/criteria in access? L2 = Date J2 = Another Date Z1 = Todays Date I think it is calculating the number of days in between 2 dates but not sure how to do this in an access qry. IF((AND((L2<1),(J2>1))),(NETWORKDAYS(J2,$Z$1)-1),0)
0
[ 2, 8406, 20700, 3729, 20, 40, 1381, 2593, 622, 800, 3726, 3726, 25, 80, 21, 161, 20, 8406, 14, 1021, 20700, 3729, 20, 21, 2593, 622, 118, 16063, 9605, 19, 1381, 60, 644, 135, 800, 1231, 487, 135, 800, 226, 1231, 2052, 165, 800, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Database: Generating key - reference number === **Tech Stack**: Java 1.6, JPA (Hibernate 3), Spring 3, Oracle 11g I am working on a project where one of the requirement is to give back the customers a ‘ReferenceNumber’. One option is to return the row ID, but for that to work, it must not be sequential. Otherwise, you can guess the next number etc. I can generate a number in Java and store it in a separate column, but then I’ll have make sure there are no collusions. There are ways to generate such number in database, but not sure if it will guarantee uniqueness. *Is there a best practice for such a requirement from the database point of view?* Thanks Adi
0
[ 2, 6018, 45, 13500, 1246, 13, 8, 2801, 234, 800, 3726, 3726, 13, 1409, 6524, 7566, 1409, 45, 8247, 137, 9, 379, 15, 487, 1060, 13, 5, 8630, 106, 8820, 203, 6, 15, 1573, 203, 15, 15759, 547, 263, 31, 589, 638, 27, 21, 669, 113,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Thread abort after handling a POST === So this application runs seamlessly in Visual Studio, but I have created an installer for the program in which the error is encountered. I think I have pinned down what the issue is. When a POST is received it is handled which kicks off a separate decoupled process which eventually gets aborted from the webpage disposing/closing. The program flow is such, POST received `context.Request.HttpMethod == "POST"`, pertinent xml info extracted and written to disk `csfireEyeHandler.`DonJobOnLastIp()`, a monitor running in the background picks up on the file creation event `void OnChanged' and starts running services based on the XML doc `FileAdded` --> `readerRef.ReadInServices(e.FullPath, false)`. The problem is after the POST is handled it causes the services to abort with the ThreadAbortException. If a delay is placed after `handler.ProcessRequest(context)` the services finish, I presume because the page still open. I cannot figure out how to properly handle this situation, its terribly difficult to debug because I cannot get the error to occur in VS. public partial class fireEye : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { HttpContext context = Context; fireEyeHandler handler = new fireEyeHandler(); handler.ProcessRequest(context); } } public class fireEyeHandler : IHttpHandler { public void ProcessRequest(HttpContext context) { if (context.Request.HttpMethod == "POST") { var extension = context.Request.Url.AbsolutePath.Split('/')[2].ToLower(); var stream = context.Request.InputStream; var buffer = new byte[stream.Length]; stream.Read(buffer, 0, buffer.Length); var xml = Encoding.UTF8.GetString(buffer); FileManage.WriteToFile(xml, @"C:\ECC_output\fireEye.xml"); var csfireEyeHandler = new FireEyeService { config = extension + ".config" }; csfireEyeHandler.Load(); csfireEyeHandler.DonJobOnLastIp(); context.Response.StatusCode = 202; } } public bool IsReusable { get { return false; } } } public class Monitor { bool monitorIsActive; readonly XmlRead readerRef; // Reference to the xml reader readonly FileSystemWatcher watch; public bool monitorRunning; public Monitor(XmlRead reader) { watch = new FileSystemWatcher(); readerRef = reader; try { watch.Path = @"C:\ECC_temp"; //directory to monitor } catch (ArgumentException ex) { Report.LogLine (ex.Message); return; } watch.NotifyFilter = NotifyFilters.LastAccess | NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName; watch.Filter = "*.xml"; monitorIsActive = true; watch.Created += OnChanged; watch.Deleted += OnChanged; watch.Renamed += OnRenamed; watch.EnableRaisingEvents = true; } /// <summary> /// Toggles on/off if a directory is being monitored /// </summary> public void ToggleMonitor() { monitorIsActive = !monitorIsActive; var monitorState = monitorIsActive ? "on" : "false"; Report.LogLine ("Monitor is " + monitorState); } /// <summary> /// File has been added to the directory /// </summary> public bool FileAdded(FileSystemEventArgs e, XmlDocument xmlDocument) { try { var date = string.Format ("<br>\r\n**********************Report {0:yyyy MM-dd hh:mm tt}**********************", DateTime.Now); Report.LogLine(date); readerRef.Validate(e.FullPath, false); readerRef.ReadInServices(e.FullPath, false); Report.CreateReport(); } catch (Exception exception) { Report.LogLine(exception.Message + " id:6"); Report.CreateReport(); return true; } return true; } /// <summary> /// When a file is added, renamed or deleted, OnChanged is called and the appropriate action is taken /// </summary> private void OnChanged(object source, FileSystemEventArgs e) { monitorRunning = true; while (true) { if (e.ChangeType == WatcherChangeTypes.Created || e.ChangeType == WatcherChangeTypes.Renamed) { var xmlDocument = new XmlDocument(); try { xmlDocument.Load(e.FullPath); } catch (IOException) { Thread.Sleep(100); } if (FileAdded(e, xmlDocument)) { break; } } } monitorRunning = false; } }
0
[ 2, 9322, 21557, 75, 7988, 21, 678, 800, 3726, 3726, 86, 48, 3010, 1461, 13927, 9687, 19, 3458, 1120, 15, 47, 31, 57, 679, 40, 16146, 106, 26, 14, 625, 19, 56, 14, 7019, 25, 8208, 9, 31, 277, 31, 57, 12957, 125, 98, 14, 1513, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 mail api : exception thrown saying java.lang.SecurityException: Access to default session denied === when im trying to send a mail using java mail api in my web application , I'm getting this exception. java.lang.SecurityException: Access to default session denied the inputs are fron an html page. then it goes to a servlet which eventually calls a java class where the mail logic is written
0
[ 2, 8247, 4216, 21, 2159, 13, 45, 5391, 6027, 1148, 8247, 9, 9949, 9, 17749, 10066, 872, 45, 1381, 20, 12838, 3723, 5265, 800, 3726, 3726, 76, 797, 749, 20, 2660, 21, 4216, 568, 8247, 4216, 21, 2159, 19, 51, 2741, 3010, 13, 15, 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...
Resize whole window elements === I'm looking for a way to resize the whole window of my webpage to fit the window size. So, kind of this : http://css-tricks.com/examples/FullPageBackgroundImage/progressive.php (look at the background image) But for the whole page? And I'm not talking about keeping the font the same size, or the images. I'm really talking about resizing everything in the screen. So even the images would resize. Sorry for my english. Thank you!
0
[ 2, 302, 10454, 979, 1463, 2065, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 161, 20, 302, 10454, 14, 979, 1463, 16, 51, 2741, 6486, 20, 2742, 14, 1463, 1072, 9, 86, 15, 825, 16, 48, 13, 45, 7775, 6903, 6824, 18, 8, 15294, 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...
restrict access to only one page in Zen Cart === I have a client who sell shirts that are available to the general public, but also wants to sell the same shirts for organizations through his site that aren't for the general public, such as company shirts, etc. I figured out how to password protect an EZ page, so the general public cannot have access without a code to view; however, the password protect does not trickle down to the child EZ pages which I have located inside a 'Table of Contents'. My problem: I do not want the retailers to have access to view all the other organization price discounts. Currently, the password protect code is set up that once a retailer makes it pass the password protect EZ parent Page, they are able to access all the organization links. No good. Is there a way I can only restrict 1 page per retailer without them seeing the discount that their competitors receive? I am not to sure if this can be solved using code or if this is a database question?
0
[ 2, 15436, 1381, 20, 104, 53, 2478, 19, 10526, 6420, 800, 3726, 3726, 31, 57, 21, 6819, 72, 3344, 18168, 30, 50, 904, 20, 14, 297, 317, 15, 47, 67, 2846, 20, 3344, 14, 205, 18168, 26, 2856, 120, 33, 689, 30, 4847, 22, 38, 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...
Flex 4.6 If creationConmplete Has Occured === Allow me to ask my question by presenting it with a similar situation. Within AS3, I know I can check if the stage is accessible to, say, an externally loaded SWF by including this at the beginning of the loaded SWF: if (stage) { this.init(); } else { addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler); } The above solution is great for checking if the stage is accessible to the program by the time these lines are executed, or adding an event listener to listen for when the stage is accessible. I am trying to replicate a similar situation within a custom component in Flex 4.6. However, instead of listening for the presence of the stage, I am looking for whether or not the `creationComplete` event for the component has been fired. Is there a similar solution for whether or not the `creationComplete` event has been fired, and listen for it if it hasn't been? Thank you for your time.
0
[ 2, 14409, 268, 9, 379, 100, 2502, 1126, 2554, 1336, 62, 63, 3744, 69, 800, 3726, 3726, 1655, 55, 20, 1349, 51, 1301, 34, 12310, 32, 29, 21, 835, 1858, 9, 363, 28, 240, 15, 31, 143, 31, 92, 2631, 100, 14, 876, 25, 7342, 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...
iOS native app working with jquery mobile === I have my native iOS xcode project that have some views working with jquery mobile and iframes inside it. I am afraid if apple is going to accept it! Could anybody please share his experience on it? Is my app going to be rejected for it? Thank you
0
[ 2, 13, 7760, 1275, 4865, 638, 29, 487, 8190, 93, 3241, 800, 3726, 3726, 31, 57, 51, 1275, 13, 7760, 993, 9375, 669, 30, 57, 109, 4146, 638, 29, 487, 8190, 93, 3241, 17, 31, 8361, 18, 572, 32, 9, 31, 589, 2910, 100, 4037, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Cannot use the XOR operator with two char's for some reason, does anyone get why? === Is there some formal standards that do not allow one to use the ^ or XOR function in C# with two chars? public char[] XORinput(char[] input, char SN) { int InputSize = input.Length; //initialize an output array char[] output = new char[InputSize]; for (int i = 0; i < InputSize; i++) { output[i] = input[i] ^ SN; } return output; } For whatever reason this code is giving me this error, Error 1400 Cannot implicitly convert type 'int' to 'char'. An explicit conversion exists (are you missing a cast?) This does not make any sense.
0
[ 2, 1967, 275, 14, 993, 248, 6022, 29, 81, 4892, 22, 18, 26, 109, 1215, 15, 630, 1276, 164, 483, 60, 800, 3726, 3726, 25, 80, 109, 3337, 3364, 30, 107, 52, 1655, 53, 20, 275, 14, 13, 1, 54, 993, 248, 1990, 19, 272, 5910, 29, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Process VS thread : can two processes share the same shared memory ? can two threads ? === After thinking about the the whole concept of shared memory , a question came up: can two processes share the same shared memory segment ? can two threads share the same shared memory ? After thinking about it a little more clearly , I'm almost positive that two processes can share the same shared memory segment , where the first is the father and the second is the son , that was created with a `fork()` , but what about two threads ? Thanks
0
[ 2, 953, 4611, 9322, 13, 45, 92, 81, 5102, 1891, 14, 205, 2592, 1912, 13, 60, 92, 81, 20396, 13, 60, 800, 3726, 3726, 75, 1440, 88, 14, 14, 979, 2420, 16, 2592, 1912, 13, 15, 21, 1301, 281, 71, 45, 92, 81, 5102, 1891, 14, 205...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Intellisense not updating on a reference library === I have a C# application that reference is a C# library, they are both in the same solution, and was added using the Add Reference/Project tab. When I change something (Add/Remove a member) in a class in the library, the intellisence in the C# application doesn't get updated. Everything compiles find, but I don't see the new members that were recently added. I've tried things like rebuild all but that didn't do it. The only fix I have for it right now is to remove the reference, and add it again. That updates the intellisense information. Does anyone know how to fix this?
0
[ 2, 14635, 3159, 6498, 52, 71, 43, 1880, 27, 21, 2801, 1248, 800, 3726, 3726, 31, 57, 21, 272, 5910, 3010, 30, 2801, 25, 21, 272, 5910, 1248, 15, 59, 50, 156, 19, 14, 205, 4295, 15, 17, 23, 905, 568, 14, 3547, 2801, 118, 21011,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
array_map callback access to associative array key and value === I'm used to perl's map() function where the callback can assign both the key and the value, thus creating an associative array where the input was a flat array. I'm aware of `[array_fill_keys()][1]` which can be useful if all you want to do is create a dictionary-style hash, but what if you don't necessarily want all values to be the same? Obviously all things can be done with foreach iteration, but what other (possibly more elegant) methods exist? [1]: http://www.php.net/manual/en/function.array-fill-keys.php
0
[ 2, 7718, 1, 15022, 645, 1958, 1381, 20, 28, 18, 16325, 3366, 7718, 1246, 17, 1923, 800, 3726, 3726, 31, 22, 79, 147, 20, 416, 255, 22, 18, 2942, 5, 6, 1990, 113, 14, 645, 1958, 92, 13952, 156, 14, 1246, 17, 14, 1923, 15, 1086,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Reverse(Array, Int32, Int32) or List<T>::Reverse Method (Int32, Int32 over IList? === My program intensively uses `Reverse`, e.g. `Array.Reverse(myArray,3,5)` I would like my program could accept both `array` and `List` as input, so I go for `IList` However, I couldn't find an `IList` method which is the same as `Reverse`. There is one extension method named `Reverse`, however it produces `IEnumerable` stream but not in-place rearrangement. (which I assume takes more copy time) I thought of using `cast`, but was afraid that `cast` would be inefficient as well. So, what should I do? Worst case scenario, I make 2 program, 1 takes array, the other takes List, and then overloading?
0
[ 2, 184, 20, 275, 7006, 5, 8576, 93, 15, 19, 38, 3125, 15, 19, 38, 3125, 6, 54, 968, 1, 38, 1, 45, 45, 99, 9453, 2109, 13, 5, 6391, 3125, 15, 19, 38, 3125, 84, 31, 5739, 60, 800, 3726, 3726, 51, 625, 13633, 102, 2027, 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...
Sql to remove utf8 invalid characters === We have a large database of products and gave up on fixing the invalid utf8 characters. Is there a way via a query just to remove those characters from a certain field?
1
[ 2, 4444, 255, 20, 4681, 287, 11720, 457, 16671, 1766, 800, 3726, 3726, 95, 57, 21, 370, 6018, 16, 1985, 17, 492, 71, 27, 20047, 14, 16671, 287, 11720, 457, 1766, 9, 25, 80, 21, 161, 1197, 21, 25597, 114, 20, 4681, 273, 1766, 37,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
MySQL query to search keywords ordered by relative match === I am creating an online system that matches bank statements (description, value, type, etc) to purchasers (names, addresses) and would like some feedback on the way I am currently doing this: $array = array("keywords", "taken", "from", "bank", "statements", "using", "explode", "function", "using", "a", "space"); $i = 0; $r = array(); //r = relevant while($i<count($array)) { $keyword = $array[$i]; $get = mysql_query("SELECT `id` FROM `users`, `addresses` LEFT JOIN `users`.`id` = `addresses`.`user` WHERE (`users`.`frame` LIKE '%$keyword%' OR `users`.`lname` LIKE '%$keyword%') OR ((`addresses`.`address` LIKE '%$keyword%' OR `addresses`.`town` LIKE '%$keyword%') OR (`addresses`.`county` LIKE '%$keyword%' OR `postcode`.`town` LIKE '%$keyword%'));"); if(mysql_num_rows($get)) { while($fetch = mysql_fetch_array($get)) { list($var) = $fetch; push_array($r, $var); } } $i++; } //count the IDs that match within the relative array to see which is most relative to the search Is there a better way of doing this as well as keeping the execute time to an absolute minimum? The database will be in the 10s of thousands when it's finished.
0
[ 2, 51, 18, 22402, 25597, 20, 2122, 1246, 12827, 1905, 34, 4543, 730, 800, 3726, 3726, 31, 589, 2936, 40, 2087, 329, 30, 1717, 965, 9015, 13, 5, 546, 8741, 872, 15, 1923, 15, 1001, 15, 2722, 6, 20, 3301, 1224, 13, 5, 7259, 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...
How to determine method names and parameters in wsdl web service === I have few problems with Web Services and KSoap library. I searched this topic before asking but couldn't find anything. Here is the question : I have an url like http://www.anyting.com/bulkService.wsdl but i haven't got any documentation about it. Can I determine **METHOD NAME** and **NAMESPACE** parameters just examining wsdl file. Example : *http://www.webservicex.net/isbn.asmx?WSDL* If it is possible, where can i found method parameters for sending request. I'm working on Android Project so I'm using KSoap2, that what i need METHOD NAME and NAMESPACE. Little question : Is *myservice.wsdl* url same *myservice.asmx?WSDL* Thanks for your support..
0
[ 2, 184, 20, 3746, 2109, 1817, 17, 12905, 19, 619, 18, 8643, 2741, 365, 800, 3726, 3726, 31, 57, 310, 1716, 29, 2741, 687, 17, 680, 656, 2552, 1248, 9, 31, 9036, 48, 8303, 115, 3379, 47, 711, 22, 38, 477, 602, 9, 235, 25, 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...
Conditional column type in GridView === I'm using ASP.NET GridView control in one of my projects. In one of the columns I'm getting values which I want to use to define the type of the cell. For example, if the cell contains a value equal to "ABC", I want to show "ABC" as a hyperlink and as an ordinary text if it is not equal to "ABC". Could anybody help me with a clue on how can this be done? Thanks in advance.
0
[ 2, 21206, 4698, 1001, 19, 7354, 4725, 800, 3726, 3726, 31, 22, 79, 568, 28, 306, 9, 2328, 7354, 4725, 569, 19, 53, 16, 51, 2314, 9, 19, 53, 16, 14, 7498, 31, 22, 79, 1017, 4070, 56, 31, 259, 20, 275, 20, 9267, 14, 1001, 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...
Mirror only a subdirectory from a git repository === I've been doing some work for the University in a folder within their git repository. There are other projects on the same repository divided in different folders and I would like to mirror my folder separately, so that it appears also in github. Is it possible to do this without mirroring the entire repository and all the other folders?
0
[ 2, 3402, 104, 21, 972, 10197, 93, 37, 21, 13, 10404, 24869, 800, 3726, 3726, 31, 22, 195, 74, 845, 109, 170, 26, 14, 155, 19, 21, 19294, 363, 66, 13, 10404, 24869, 9, 80, 50, 89, 2314, 27, 14, 205, 24869, 2350, 19, 421, 19294,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Find selected cells in a TableView === I'm writing an iPhone application with a tableview which displays a list of items,each one with a checkmark. I can selected/deselect each item just with one click. When I press a button [DONE] I would like to iterate along all the cells and check which one has the checkmark enabled. Something like: for (int i = 0; i < [fullDataset count]; i++) { NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:0]; UITableViewCell* cell = [self.tableView cellForRowAtIndexPath:indexPath]; if (cell.accessoryType == UITableViewCellAccessoryCheckmark) { NSLog(@"THIS CELL IS SELECTED!"); } } Now,the problem is that using this procedure I get only the cell which are selected and which are CURRENTLY DISPLAYED. I want to be sure that the procedure runs across ALL the cell,even the ones not displayed. I might use another data structure for keeping track of the selection but it looks to be a bit redundant. Any idea? Thanks a lot! Claus
0
[ 2, 477, 1704, 2934, 19, 21, 859, 4725, 800, 3726, 3726, 31, 22, 79, 1174, 40, 21024, 3010, 29, 21, 859, 4725, 56, 9412, 21, 968, 16, 3755, 15, 14322, 53, 29, 21, 2631, 4527, 9, 31, 92, 1704, 118, 3196, 16964, 206, 9101, 114, 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...
Does any one knows an Mobile/Web UI design tool which has XML as export option. which is open source and free === Does any one knows an Mobile/Web UI design tool which has an **XML** as export option. which is open source and free. Thanks I found relative links but I didn't see any of free and open source tools. Please, let me know. Thanks Ranjith
0
[ 2, 630, 186, 53, 3620, 40, 3241, 118, 14113, 13, 5661, 704, 5607, 56, 63, 23504, 28, 7487, 4255, 9, 56, 25, 368, 1267, 17, 551, 800, 3726, 3726, 630, 186, 53, 3620, 40, 3241, 118, 14113, 13, 5661, 704, 5607, 56, 63, 40, 13, 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...
On Java happens-before relation, clarification needed === It is said in [JLS][1]: > Two actions can be ordered by a happens-before relationship. If one action happens-before another, then the first is visible to and ordered before the second. also there is said: > Writes in one thread that are in a data race with reads in another thread may, for example, appear to occur out of order to those reads. Does this mean that if `hb(r, w)`, then `r` must be prior to `w`, or that __if__ `r` is before, then happens-before relation takes place? [1]: http://docs.oracle.com/javase/specs/jls/se7/html/jls-17.html#jls-17.4.5
0
[ 2, 27, 8247, 5531, 8, 12750, 5827, 15, 13, 12078, 4634, 851, 800, 3726, 3726, 32, 25, 87, 19, 636, 22897, 18, 500, 2558, 165, 500, 45, 13, 1, 81, 3078, 92, 44, 1905, 34, 21, 5531, 8, 12750, 1429, 9, 100, 53, 1028, 5531, 8, 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...
JAVA_HOME not found as Sudo === I have a bash script on a Linux box that runs a Jar file. When logged in as a regular user I don't have permission to run the script, but it prints the following log: *INFO * Using JVM found at /opt/jdk6/bin/java When I try to use the script with Sudo though, it gives: *ERROR* Unable to locate java, please make sure java is installed and JAVA_HOME set I've set `JAVA_HOME` to the same path above — can see it with `echo $JAVA_HOME` & it's also set as an option within the script. I'm happy that the script isn't the issue — it's a default CQ5 control script & I'm using it on dozens of other boxes without issue. Just unsure what I'm doing wrong above & presume it's something I'm missing re Linux set-up? When I run the `sudo` command, does it have access to the `JAVA_HOME` that I set up as myself?
0
[ 2, 8247, 1, 8167, 52, 216, 28, 13, 18, 18601, 800, 3726, 3726, 31, 57, 21, 13158, 3884, 27, 21, 13024, 1649, 30, 1461, 21, 5112, 3893, 9, 76, 13, 19287, 19, 28, 21, 1290, 4155, 31, 221, 22, 38, 57, 5572, 20, 485, 14, 3884, 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...
Simple javascript time/money per hour calculator === So I'm just learning Javascript and I'm trying to create a calculator that can subtract time. I have the other parts working (although I'd love feedback on my code there as I'm sure it can be majorly improved on), I just need to get the time subtracting right. I'm doing simple math so when I subtract 1:30 (hours and minutes are separate values) from 2:00 it gives me 1:30 instead of just 00:30. Another problem is the gold per hour doesn't calculate unless I hit the 'Get Results' button twice.... This is the first script I have ever written so please let me know what I should be doing, I want to do this the best and easiest way possible. Calculator and script are here: http://www.coolestwebsiteintheuniverse.com/gold-calculator/ http://www.coolestwebsiteintheuniverse.com/gold-calculator/calc.js I'd also like the ability to expand it to 10 rows and average all of them but I think I could figure that out on my own once this part is figured out. Thanks
0
[ 2, 1935, 8247, 8741, 85, 118, 22520, 416, 1671, 28539, 800, 3726, 3726, 86, 31, 22, 79, 114, 2477, 8247, 8741, 17, 31, 22, 79, 749, 20, 1600, 21, 28539, 30, 92, 27031, 85, 9, 31, 57, 14, 89, 1341, 638, 13, 5, 8655, 31, 22, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Oracle 11g - Merging single column duplicates to create a vertical summary === Does anybody know how to remove and merge duplicates based on a single column of a multi-column table to create a 'vertical summary'. I.E) Trying to build Table B from Table A Table A: Person Language Bob English Sarah French John Chinese Bob French Sarah English Sarah Chinese Table B (RESULT): Person English French Chinese Bob Y Y (null) Sarah Y Y Y John (null) (null) Y How I was thinking originally of doing it was: Creating Table A from the data and then doing the following: Create table summary as Select person, (case when language = 'English' then 'Y') as English, (case when language = 'French' then 'Y') as French, (case when language = 'Chinese' then 'Y') as Chinese From Table A; Finally doing a select distinct of the summary table. The logic is however wrong, especially because distinct does so across all columns, but I only want distinct people names. The other option I was thinking of in my head was Creating a table populated with only the distinct names of people and empty columns English, French and Chinese. Then using an update statement to populate them via matching to Table A. Does anybody know a better way / how I could implement this. I'm still in the earlier stages of learning Oracle (especially regarding looping) and any help would be greatly appreciated. Thanks!
0
[ 2, 15759, 547, 263, 13, 8, 18842, 345, 4698, 19429, 18, 20, 1600, 21, 7035, 14740, 800, 3726, 3726, 630, 11181, 143, 184, 20, 4681, 17, 12666, 19429, 18, 432, 27, 21, 345, 4698, 16, 21, 1889, 8, 716, 4404, 103, 859, 20, 1600, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
optimisation nesc === In my code i used tinyos-2.1.1 and a mote telosb in Ubuntu 10.10 When i compile my code, i get the following error : >msp430-ld: l'adresse 0x3c88 de build/telosb/main.exe de la section .bss n'est pas dans la région data >msp430-ld: l'adresse 0x3c88 de build/telosb/main.exe de la section .noinit n'est pas dans la région data >msp430-ld: section .vectors [0000ffe0 -> 0000ffff] chevauche la section .data [0000fbca -> 00010455] >make: *** [exe0] Error 1 I search a solution to minimize the size of my code. I thought to do an optimization. But i have no idea. I found ideas about C or C++ and not for the NesC. Is there any solution to optimize the code in nesC?
0
[ 2, 19259, 4330, 13, 2696, 150, 800, 3726, 3726, 19, 51, 1797, 31, 147, 3228, 759, 8, 135, 9, 165, 9, 165, 17, 21, 13, 20209, 6757, 759, 220, 19, 287, 12968, 2473, 332, 9, 1036, 76, 31, 26561, 51, 1797, 15, 31, 164, 14, 249, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a way to pull posts by the date they appear on the timeline? Like from 1987? === On the Facebook timeline, you can set the date an event happened. Like when you were born, married, really anything. However, when using the API, it only searches on the created date. Example: If I create an event today and set the date to March 18, 1987, it shows up on my timeline properly, but the API pulls it out as an event that happened today as its 'created date' is today. Is there a way to pull posts by the date they appear on the timeline?
0
[ 2, 25, 80, 21, 161, 20, 2201, 9868, 34, 14, 1231, 59, 1893, 27, 14, 18398, 60, 101, 37, 1917, 60, 800, 3726, 3726, 27, 14, 9090, 18398, 15, 42, 92, 309, 14, 1231, 40, 807, 1190, 9, 101, 76, 42, 46, 386, 15, 567, 15, 510, 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 send form data from sencha to php email script === I am trying to use sencha touch form functionality to send the form content to PHP mail script. I have pretty weak knowledge in php and sencha but still trying to make it work with a php example script I found. The sencha part is basic feedback form with 3 fields. Here is the sencha part of the code: feedbackForm = Ext.create("Ext.tab.Panel", { items: [{ title: 'Feedback', iconCls: 'user', xtype: 'formpanel', url: 'feedback.php', layout: 'vbox', tabBar: false, items: [ { xtype: 'fieldset', tabBar: false, items: [ { xtype: 'textfield', label: 'Your Name' }, { xtype: 'emailfield', label: 'Your Email' }, { xtype: 'textfield', label: 'The Good' }, { xtype: 'textfield', label: 'The Bad' } ] }, { xtype: 'button', text: 'Send', ui: 'confirm', handler: function() { this.up('formpanel').submit(); } }] }] }); The this.up('formpanel').submit(); line is in charge of sending the data to the feedback.php script which looks like this: <?php // Configuration Settings $SendFrom = "Form Feedback <feedback@myDomain.com>"; $SendTo = "myEmail@gmail.com"; $SubjectLine = "Feedback Submission"; $ThanksURL = "thanks.html"; //confirmation page // Build Message Body from Web Form Input foreach ($_POST as $Field=>$Value) $MsgBody .= "$Field: $Value\n"; sgBody .= "\n" . @gethostbyaddr($_SERVER["REMOTE_ADDR"]) . "\n" . $_SERVER["HTTP_USER_AGENT"]; sgBody = htmlspecialchars($MsgBody, ENT_NOQUOTES); //make safe // Send E-Mail and Direct Browser to Confirmation Page mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom"); header("Location: $ThanksURL"); ?> The above is working and sending an email but only with the last field content of 'label: 'The Bad'' in the following way: null: ff (when entered ff for the last field) It looks to me that the PHP loop of assembling the message is the problem but perhaps I am not transferring the data correctly? Any suggestions? Thanks in advance.
0
[ 2, 184, 20, 2660, 505, 1054, 37, 8252, 1651, 20, 13, 26120, 8517, 3884, 800, 3726, 3726, 31, 589, 749, 20, 275, 8252, 1651, 1723, 505, 18548, 20, 2660, 14, 505, 2331, 20, 13, 26120, 4216, 3884, 9, 31, 57, 1772, 3910, 1918, 19, 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...
Core Data Relationships on Abstract Entities === Is it legitimate to create a one to one relationship between two entities when one is set to be abstract ?
0
[ 2, 2884, 1054, 5833, 27, 8502, 12549, 800, 3726, 3726, 25, 32, 11912, 20, 1600, 21, 53, 20, 53, 1429, 128, 81, 12549, 76, 53, 25, 309, 20, 44, 8502, 13, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to shrink external java libs? === I'm writing an applet, which uses ~10 external libraries. Together they occupy more than 2 megabytes. In some libs we use only 1-2 classes, so a lot of others can be safely deleted. So the question is how to remove unused classes from jar libraries? A lot of other questions link to Proguard. But it doesn't process libraries (or I am doing something wrong) and also ruins parts of code which use reflection.
0
[ 2, 184, 20, 16269, 4886, 8247, 13, 8326, 18, 60, 800, 3726, 3726, 31, 22, 79, 1174, 40, 4037, 38, 15, 56, 2027, 13, 1, 1036, 4886, 8649, 9, 429, 59, 12290, 91, 119, 172, 5957, 23246, 18, 9, 19, 109, 13, 8326, 18, 95, 275, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Showing a single loadingscreen for multiple events === My app downloads from several URLs at the same time. Non of them finishes at the same time, but i only want one loading screen letting the user see that something is going on :-) I've tried a "ticket" system, where i have a List<>. Each event that triggers a download add a ticket to the list. When they are done they remove one. I've then have a BackgroundWorker running every 200ms that checks this list. If the list count is 0 and the loadingscreen (UserControl) exists (busyscreen.GetType().Name comparison to every object in this.LayoutRoot.Children) it removes the child. If the list isnt 0 and there is no child name busyscreen it gets added. What's wrong with this logic? I cant seem to get it to work, is there a better way to do this kind of work?
0
[ 2, 3187, 21, 345, 12797, 7187, 26, 1886, 963, 800, 3726, 3726, 51, 4865, 7121, 18, 37, 238, 13, 911, 7532, 35, 14, 205, 85, 9, 538, 16, 105, 13625, 35, 14, 205, 85, 15, 47, 31, 104, 259, 53, 12797, 2324, 4252, 14, 4155, 196, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
EF 4.3.1 How adding affects related entities that exist already === Imagine this graph: Device 1..* OperatingEnvironment 1..* NetworkEndpoint If I construct a detached entity graph in-memory and the Device at the root of the graph is new while the OperatingEnvironment exists and the NetworkEndpoint exists but is assigned to a different OperatingEnvironment, will EF figure all this out? When I say 'figure this out', its simply a case of walking the graph and doing (IfExist ? MergeValues : AddNew) Because the entities all have foreign keys, relationships should effectively get reassigned automatically during the property merge. Is this how EF works or will I have to walk my own graph and apply this logic? If I do this, then my in-memory graph will have to avoid linking via navigation properties, and instead use the foreign key values, otherwise the whole graph will be added as EF will crawl down the nav links as soon as I add one entity. Thanks - hope that's clear as mud.
0
[ 2, 11599, 268, 9, 240, 9, 165, 184, 4721, 15476, 1597, 12549, 30, 3182, 614, 800, 3726, 3726, 4382, 48, 7210, 45, 3646, 137, 9, 9, 2483, 2455, 28976, 137, 9, 9, 2483, 982, 2451, 3132, 100, 31, 6960, 21, 14631, 9252, 7210, 19, 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...
How to display an iOS 5 notification? === I would display a notification banner when I push an UIButton. Maybe there is already an answer, but I didn't find.
1
[ 2, 184, 20, 3042, 40, 13, 7760, 331, 52, 4634, 60, 800, 3726, 3726, 31, 83, 3042, 21, 52, 4634, 7492, 76, 31, 3250, 40, 13, 5661, 811, 444, 9, 913, 80, 25, 614, 40, 1623, 15, 47, 31, 223, 22, 38, 477, 9, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Android: Custom horizontal progress bar === Im trying tu customize horizontal progress bar in my application. I want it to have sharp corners (no radius) and blue color (not default yellow or a mix of colors, so I also dont want to be using gradient). The reason Im mentioning these two things is that in every example code I found, the progress bar color was being changed into a color mixture using gradient instead of a simple color. For example in this post: http://stackoverflow.com/questions/2020882/how-to-change-progress-bars-progress-color-in-android I was trying to modify this code but with no luck. My question is what is the meaning of the three sections of the code in the answer to the question I linked above? I mean the @android:id/background @android:id/secondaryProgress @android:id/progress Also when I was trying to get some help from the Eclipse using ctrl+space, it couldnt give me any because the content assist wasnt available at that location. I only want my progress bar to change to a simple color and not to have rounded corners. Thanks!
0
[ 2, 13005, 45, 5816, 10095, 3455, 748, 800, 3726, 3726, 797, 749, 2289, 5816, 2952, 10095, 3455, 748, 19, 51, 3010, 9, 31, 259, 32, 20, 57, 2641, 8894, 13, 5, 251, 13288, 6, 17, 705, 1665, 13, 5, 1270, 12838, 2019, 54, 21, 2917, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Append mode on Google Drive === Is it possible to perform "append" operations on a file on Google Drive? Let's say I want to save log entries "as-they-come-in" using Google Drive, is there some sort of "append only" operation available?
0
[ 2, 4865, 2451, 3740, 27, 8144, 1493, 800, 3726, 3726, 25, 32, 938, 20, 2985, 13, 7, 22358, 43, 7, 1311, 27, 21, 3893, 27, 8144, 1493, 60, 408, 22, 18, 395, 31, 259, 20, 2079, 6738, 11399, 13, 7, 472, 8, 2077, 8, 3967, 8, 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...
Proper 'private' variable initialization in JavaScript === I'm trying to figure out why this simple code doesn't initialize correctly. Yes, I'm from the Java world and I'm also a 'purist' and would like to do JavaScript properly. Many (if not all) will recommend to declare the variables prefixed with a 'this' keyword and thus exposing all those variables without using proper setter and getter functions. To me this is unacceptable and does not reflect good OOP practice. They say JavaScript is an OOP language so why do people always try to bypass this I'll never understand!? But that's not the questions, so lets move on... The problem with the following code is that when I run it in Chrome, it keeps telling me: Uncaught ReferenceError: x is not defined I could create a constructor which accepts the default values, but I'd rather not expose what the default value is suppose to be on those constructing the object (that is not good practice either). Also, during run-time, the setter methods would get invoked to change the 'x' and 'y' values for a specific instance. There are many 'Model' instances available at once! So here is the simple code: function Model() { var x = 3; var y = 'hello'; } Model.prototype.getX = function() { return x; } Model.prototype.getY = function() { return y; } Model.prototype.setX = function(myX) { x = myX; } Model.prototype.setY = function(myY) { y = myY; } var model = new Model(); console.log("Model Y = '" + model.getY() + "'"); console.log("Model X = " + model.getX()); console.log("Model Y = '" + model.getY() + "'"); Thanks for your help...
0
[ 2, 4119, 13, 22, 20181, 22, 7612, 2104, 1829, 19, 8247, 8741, 800, 3726, 3726, 31, 22, 79, 749, 20, 1465, 70, 483, 48, 1935, 1797, 1437, 22, 38, 2104, 2952, 12044, 9, 1643, 15, 31, 22, 79, 37, 14, 8247, 126, 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...
How to distinguish if merge was manually or automatically? === Is that possible to distinguish if merge was performed manually or automatically? I'm using ClearCase 7.1.2 on Windows, and I'd like to know if you can find it by watching the version tree or by any given command-line Thank you
0
[ 2, 184, 20, 9705, 100, 12666, 23, 23671, 54, 7499, 60, 800, 3726, 3726, 25, 30, 938, 20, 9705, 100, 12666, 23, 986, 23671, 54, 7499, 60, 31, 22, 79, 568, 1207, 10325, 453, 9, 165, 9, 135, 27, 1936, 15, 17, 31, 22, 43, 101, 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...
Chrome renders HTML dropdown menus facing upwards === I have a work notebook computer running Windows 7 Professional 64-bit and Chrome 19.0.1084.56. I run the resolution at a native 1366x768 and I have an external monitor connected via a VGA cable. Chrome renders dropdown menus weird on the smaller resolution, even with the external screen unplugged. I started noticing this behaviour a few weeks ago and now I just need to know if this is a bug or an issue with Chrome/Windows. Here is a screenshot of the issue: http://j.mp/Lv0Vm1
0
[ 2, 13, 12985, 16535, 18, 13, 15895, 2804, 2968, 11379, 18, 4325, 16686, 800, 3726, 3726, 31, 57, 21, 170, 14630, 1428, 946, 1936, 453, 736, 4384, 8, 3326, 17, 13, 12985, 732, 9, 387, 9, 1036, 3790, 9, 3776, 9, 31, 485, 14, 4302,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Ebay api GetSellerList, Parsing response XML === I am using the ebay trading api to get a sellers stock which is currently listed. I am using the call GetSellerList.I am having trouble parsing the xml which I would then insert into there website shop. This is the xml request. <?xml version='1.0' encoding='utf-8'?> <GetSellerListRequest xmlns='urn:ebay:apis:eBLBaseComponents'> <UserID>".$user_id."</UserID> <DetailLevel>ReturnAll</DetailLevel> <ErrorLanguage>RFC 3066</ErrorLanguage> <WarningLevel>Low</WarningLevel> <Version>".$compat_level."</Version> <RequesterCredentials> <eBayAuthToken>".$auth_token."</eBayAuthToken> </RequesterCredentials> <StartTimeFrom>2012-06-12T23:35:27.000Z</StartTimeFrom> <StartTimeTo>2012-08-30T23:35:27.000Z</StartTimeTo> <Pagination> <EntriesPerPage>200</EntriesPerPage> </Pagination> <OutputSelector>ItemArray.Item.Title</OutputSelector> <OutputSelector>ItemArray.Item.Description</OutputSelector> <OutputSelector>ItemArray.Item.BuyItNowPrice</OutputSelector> <OutputSelector>ItemArray.Item.Quantity</OutputSelector> </GetSellerListRequest> I am not the best with php, I am still learning so i have looked through w3schools and php docs and found nothing. I have been using this (off of ebay tuts) to try and get the values of the xml tags by using getElementsByTagName. $dom = new DOMDocument(); $dom->loadXML($response); $titles = $dom->getElementsByTagName('Title')->length > 0 ? $dom->getElementsByTagName('Title')->item(0)->nodeValue : ''; Now i was hoping that i would be able to create an array with this then use foreach to insert them into the db but when i use this it only gets the value of the first 'Title' tag Im sure there is a way to create an array with all values of 'Title' in it. All help is appreciated.
0
[ 2, 13, 62, 7011, 21, 2159, 3049, 8461, 5739, 15, 2017, 18, 68, 1627, 23504, 800, 3726, 3726, 31, 589, 568, 14, 13, 62, 7011, 5205, 21, 2159, 20, 164, 21, 22304, 2070, 56, 25, 871, 1510, 9, 31, 589, 568, 14, 645, 3049, 8461, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Excel Macro - Add 1 to cell values, Secondly delete all rows with Value >3 in that column === I am working on an Excel system for my new telesales business that will help me when it comes to dispositioning paper data for my sales staff once its been dialed. I will explain this a bit more. Dispositioning is the process of removing leads from the data batch that have been called and either been customers that were "not interested", "completed sales" or "incorrect details" with the idea of recycling the leads that were not contactable and should be tried on another day. The current process is manual on the system and I am trying to write a number of macros that will automate this. **Process:** Fresh data is received each day, but depending on the number of sales staff will depend on how much old data I will need to supliment the fresh leads in order to reach that days required quota. *Example*. Each sales staff requires 4 sheets of data and each sheet has 36 records on it. Therefore if we have 8 staff, we need 8*36*4=**1152** leads for that day. If the data batch received that day is 900 leads to make us up to that days quota, we will need 1152-900=**252** additional leads to be added from previous days data that were not contacted from previous batches of data. In order to facilitate this I have got the following system in place. We do not want to dial numbers more than three times if they are not contactable, so we remove numbers from our data batch if they are tried three times without getting through to that person. I have added a column after each record that signifies how many times they have been added to a days dialling data. This is simply a number 1 or 2 in that column. When the user is going through the days data on the spreadsheet they add a 0 in this column next to the "not interested", "completed sales" or "incorrect details" to signify that they need to be removed. Once the whole batch has been manually gone through we sort the data by that column and manually delete all records that have a 0 therefore removing all the "not interested", "completed sales" or "incorrect details". What we are left with at this point is all the previous days data that were not contacted and could be recycled again another day. The remaining data that was from that days fresh batch much now all be given a value of 1 to signify its been dialed once. The remaining data that had already been dialed once will already show a value of 1 in this column and this value must become 2. Those dialed twice will already be 2, and must be made 3, and so on. Those records that will then become 4 are the ones that will need to then be deleted from the back data so we do not try them again. To me this process can be done in 3 macros or less? 1. Simple macro that removes all records with a value of 0 in column "I" 2. Macro to assign a value of "1" to all records without an entry in column "I". Add 1 to column "I" on all remaining records. 3. Macro that deletes all records with a value of 4 or more in column "I". Is it possible to design a macro that will complete step 2 so we dont need to do this manually, or ideally combine both step 2 and 3 into one. I can provide additional information as required, many thanks in advance! Dan Spreadsheet currently set up as follows Sheet names, "Batch_Records" , "DISPOSITION" , "Data_Store" , "COMPILED" . Batch_Records : Just used to record information on the different data batches recieved. Not linked to part of the working system. DISPOSITION : The sheet where the actual dispositioning takes place. The user will take the previous days data batch (printed from "COMPILED") and manually remove the records that are not to be contacted again. Here they would also set the increase in column "I" to signify how many times a record has been contacted. Data_Store : This is where all back data is stored. Once data is dispositioned on the DISPOSITION sheet, the remaining data is moved here to be stored for use again in future. Compiled : This is where a new days data is compiled to be printed out. The user will add the days completely fresh data, and add additional records from the Data_Store as required to reach that days quota. After randomising and printing the data, the entire sheet is copied back over to the "DISPOSITION" sheet so the next day the data can be cleaned again. I really hope this is clear enough!
0
[ 2, 20700, 9069, 13, 8, 3547, 137, 20, 1667, 4070, 15, 153, 102, 27448, 65, 11295, 29, 1923, 13, 1, 240, 19, 30, 4698, 800, 3726, 3726, 31, 589, 638, 27, 40, 20700, 329, 26, 51, 78, 4338, 18, 14461, 508, 30, 129, 448, 55, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Animating text value on iOS? === I want to animate my UILabel whenever the text changes. For some context: I have a label which has the current temperature in it (say 57º) I want to animate it so it goes from 0º to 57º counting upwards. Here's a video which shows what I want: http://www.youtube.com/watch?v=mXfOvGflVWw (It's found in the National Geographic Parks app for iPhone and iPad, in the stats menu) If anyone could point me in the right direction on how to do so, it would be wonderful. Thanks!
0
[ 2, 14487, 1203, 1854, 1923, 27, 13, 7760, 60, 800, 3726, 3726, 31, 259, 20, 14487, 591, 51, 13, 5661, 21018, 6634, 14, 1854, 1693, 9, 26, 109, 4141, 45, 31, 57, 21, 1899, 56, 63, 14, 866, 3348, 19, 32, 13, 5, 6366, 6544, 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...
API designed for PHP but needed in iOS === I'm relatively new to fetching data using an API, but I understand the concept. I'm trying to make API calls in my iOS application but the API I'm trying to use is designed for PHP use. The documentation for the API can be found here: http://codex.bbpress.org/context/developer/ Is there a way that I can still use the API in the application? I can't seem to find any information on this so anything will help. Thanks.
4
[ 2, 21, 2159, 1006, 26, 13, 26120, 47, 851, 19, 13, 7760, 800, 3726, 3726, 31, 22, 79, 3109, 78, 20, 18312, 68, 1054, 568, 40, 21, 2159, 15, 47, 31, 1369, 14, 2420, 9, 31, 22, 79, 749, 20, 233, 21, 2159, 3029, 19, 51, 13, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 make mouse events only apply to outer DIV? === How do I make this work: <div onclick="alert('You clicked me!')" style="background:lightblue;display:inline-block;padding:20px"> <textarea rows="5" cols="50">You can click and select text here normally, but I don't register mouse events from the DIV behind me!</textarea> <div id="inner" style="background:lightgreen">Same here. I want my own mouse events - not the ones from #inner.</div> </div> Thank you!
0
[ 2, 184, 20, 233, 7567, 963, 104, 5645, 20, 4896, 13, 12916, 60, 800, 3726, 3726, 184, 107, 31, 233, 48, 170, 45, 13, 1, 12916, 27, 150, 10129, 3726, 7, 192, 6767, 5, 22, 245, 15802, 55, 13466, 6, 7, 1034, 3726, 7, 1958, 8810, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
SQLite3, Select From Two Tables One with Priority? === So I have two sqlite3 tables Table 1 ID Color Value 1 red 5 2 green 3 3 yellow 5 4 blue 1 5 white 4 Table 2 ID Color Value 2 green 6 3 yellow 2 5 white 3 What I would like to do with one select if possible is: ID Color Value 1 red 5 2 green 6 3 yellow 2 4 blue 1 5 white 3 So use the record from table 1 unless it exists in table 2. if the record exists in table 2 use that instead. I looked at unions but no luck. I added a forth column with a 1 or 0 in it, 1 being table 2 data and tried to prioritize for table two with an order by/limit 1 but that didn't work either. I'm hoping for one select that will just do it automatically without me have to provide the select with a where clause and items to exclude so that I would have to concantenate a string query. Is this possible?
0
[ 2, 4444, 10601, 240, 15, 5407, 37, 81, 7484, 53, 29, 9857, 60, 800, 3726, 3726, 86, 31, 57, 81, 4444, 10601, 240, 7484, 859, 137, 4924, 1665, 1923, 137, 402, 331, 172, 647, 203, 203, 2019, 331, 268, 705, 137, 331, 359, 268, 859,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Getting bounds of an NSImage within an NSImageView === I've got an NSImageView that takes up the full extent of a window. There's no border to the image view, and its set to display in the lower left. So this means that the origin of the view matches the origin of actual image, no matter how the window is resized. Also, the image is much larger than what I can reasonably fit at full scale on the screen. So I also have the imageview set to proportionally scale down the size of the image. However, I can't seem to find this scale factor anywhere. My ultimate goal is to map a mouse down event into actual image coordinates. To do this, I think I need one more piece of information...how big the displayed NSImage actually is. If I look at the `[imageView bounds]`, I get the bounding rectangle of the image view, which generally will be larger than the image.
0
[ 2, 1017, 4138, 18, 16, 40, 13, 2172, 22039, 363, 40, 13, 2172, 22039, 4725, 800, 3726, 3726, 31, 22, 195, 330, 40, 13, 2172, 22039, 4725, 30, 1384, 71, 14, 503, 5674, 16, 21, 1463, 9, 80, 22, 18, 90, 1862, 20, 14, 1961, 1418, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 implement multithread safe singleton in C++11 wihtout using <mutex> === now that C++11 has multithreading I was wondering what is the correct way to implement lazy initialized singleton without using mutexes(for perf reasons). I came up with this, but tbh Im not really good at writing lockfree code, so Im looking for some better solutions. // ConsoleApplication1.cpp : Defines the entry point for the console application. // # include <atomic> # include <thread> # include <string> # include <iostream> using namespace std; class Singleton { public: Singleton() { } static bool isInitialized() { return (flag==2); } static bool initizalize(const string& name_) { if (flag==2) return false;// already initialized if (flag==1) return false;//somebody else is initializing if (flag==0) { int exp=0; int desr=1; //bool atomic_compare_exchange_strong(std::atomic<T>* obj, T* exp, T desr) bool willInitialize=std::atomic_compare_exchange_strong(&flag, &exp, desr); if (! willInitialize) { //some other thread CASed before us std::cout<<"somebody else CASed at aprox same time"<< endl; return false; } else { initialize_impl(name_); assert(flag==1); flag=2; return true; } } } static void clear() { name.clear(); flag=0; } private: static void initialize_impl(const string& name_) { name=name_; } static atomic<int> flag; static string name; }; atomic<int> Singleton::flag=0; string Singleton::name; void myThreadFunction() { Singleton s; bool initializedByMe =s.initizalize("1701"); if (initializedByMe) s.clear(); } int main() { while (true) { std::thread t1(myThreadFunction); std::thread t2(myThreadFunction); t1.join(); t2.join(); } return 0; } Note that clear() is just for testing, real singleton wouldnt have that function.
0
[ 2, 184, 20, 8713, 1889, 96, 10647, 1834, 345, 444, 19, 272, 20512, 1306, 4807, 9020, 1320, 568, 13, 1, 7903, 1706, 1, 800, 3726, 3726, 130, 30, 272, 20512, 1306, 63, 1889, 96, 22883, 31, 23, 5712, 98, 25, 14, 4456, 161, 20, 8713...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Perl and XS modules === Correct me if i'm wrong, but XS and Dynaloader based modules are those who use C/C++ shared objects (.so) and which are not PP (Pure Perl)?? Now assuming I have a machine, which does not have web-connectivity whatsoever (Solaris 10) and I want, for instance, to install `Crypt::OpenSSL::AES` (XS based module), copying the `AES.pm` file to the relevant path in @INC wont do any good since my system does not have `libssl` installed. my second and most important question is, how do I install such modules when I dont have CPAN? my approach is: 1. first get `libssl` for my platform, compile it, but where should I put that shard object file so that perl can find it? 2. when I have libssl installed and compiled and located where it should be, is it enough now to just copy the `AES.pm` to the relevant path in @INC, or do I need to configure / make it? Thanks,
0
[ 2, 416, 255, 17, 993, 18, 17113, 800, 3726, 3726, 4456, 55, 100, 31, 22, 79, 1389, 15, 47, 993, 18, 17, 24151, 8294, 106, 432, 17113, 50, 273, 72, 275, 272, 118, 150, 20512, 2592, 3916, 13, 5, 9, 656, 6, 17, 56, 50, 52, 3273...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
pop and refresh viewcontroller === i have three viewcontroller. when i get to the third viewcontroller, i use poptorootviewcontroller to pop to my first view controller, but when i use popviewcontroller in my third viewcontroller (i want to go back to my second viewcontroller) its poping but all the info that i edit in my second viewcontroller are there, and i want the secondviewcontroller to be new (reset this viewcontroller), like this viewcontroller to be reloaded. here is my code in the third viewcontroller: -(IBAction)playAgain:(id)sender { [self.navigationController popViewControllerAnimated:YES]; } how can i do it? thanks!
0
[ 2, 1675, 17, 24905, 1418, 12898, 1252, 800, 3726, 3726, 31, 57, 132, 1418, 12898, 1252, 9, 76, 31, 164, 20, 14, 422, 1418, 12898, 1252, 15, 31, 275, 1675, 262, 14032, 4725, 12898, 1252, 20, 1675, 20, 51, 64, 1418, 9919, 15, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
php to java with servlet === i have a plug-in write in php and i want to translate it to java language(servlet). Can u give me some advise how to procide. I have difficulty couse i didnt work before with java servlet's. the plug in is jquery upload file. the link to the website of the plug-in demo is: http://blueimp.github.com/jQuery-File-Upload/ this are the two files that i want to translate to java servlet. https://github.com/blueimp/jQuery-File-Upload/blob/master/server/php/upload.class.php and the other index.php thanks a lot
1
[ 2, 13, 26120, 20, 8247, 29, 13, 10321, 1336, 800, 3726, 3726, 31, 57, 21, 10922, 8, 108, 2757, 19, 13, 26120, 17, 31, 259, 20, 20628, 32, 20, 8247, 816, 5, 10321, 1336, 6, 9, 92, 287, 590, 55, 109, 14640, 184, 20, 13, 15617, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MVC 4 DB access design decision === Currently i'm updating a project from MVC 2 to MVC 4 and I'm about to swap the custom ORM/data access "layer" with EF 4.3.1 ( upgrading to 5 when it's out) and as i currently understand most of the controllers use functions from another file which are wrappers to DB queries and stored procedures. So , my question is this : Should i delete this file with the wrapper functions and directly use EF to fetch the data from the controllers or should i just delete the contents of each function and replace it with EF code ? Any other design tips you could give me ? Thanks !
0
[ 2, 307, 8990, 268, 13, 9007, 1381, 704, 1401, 800, 3726, 3726, 871, 31, 22, 79, 71, 43, 1880, 21, 669, 37, 307, 8990, 172, 20, 307, 8990, 268, 17, 31, 22, 79, 88, 20, 17150, 14, 5816, 54, 79, 118, 18768, 1381, 13, 7, 15187, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 integer part padding === Sorry I was initially wanting to do it in php http://stackoverflow.com/questions/11383597/php-java-integer-part-padding, but realised I will do it in Java in another part of code So I need to format numbers with the integer part at least 2 chars double x=2.11; System.out.println(String.format("%08.5f", x)); could do it, but it's annoying the right trailing zeros, I would like to have an arbitrary large floating part String.format("%02d%s", (int) x, String.valueOf(x-(int) x).substring(1)) is totally ugly and unexact (gives 02.1099...) thx for any better solutions
0
[ 2, 8247, 13820, 141, 4432, 3258, 800, 3726, 3726, 1875, 31, 23, 1537, 4638, 20, 107, 32, 19, 13, 26120, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 11698, 13993, 27295, 9816, 26120, 8, 1004, 1385, 8, 6391, 13699, 8, 3091,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Excel Document and login === I have a excel file with 2 columns username and password. I want to have a website with login.The code should auth the user name and password available in excel file for entering into website and if its not available it wont login. If there are any examples please send me. Thanks!
0
[ 2, 20700, 4492, 17, 6738, 108, 800, 3726, 3726, 31, 57, 21, 20700, 3893, 29, 172, 7498, 4155, 7259, 17, 20884, 9, 31, 259, 20, 57, 21, 2271, 29, 6738, 108, 9, 124, 1797, 378, 10343, 96, 14, 4155, 204, 17, 20884, 904, 19, 20700, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Setting a databound TextBox control's BorderStyle overrides the new Text value === I've found and was able to reproduce a peculiar behaviour in Windows Forms, in that updating the text in a databound textbox and then changing the borderstyle will override the new text value. To reproduce: Create a new form, add three TextBox controls, and use the following code: Public Class Form1 Private Class SampleObject Public Property MyText As String = String.Empty End Class Private _sampleObject1 As New SampleObject With {.MyText = "Old Text 1"} Private _sampleObject2 As New SampleObject With {.MyText = "Old Text 2"} Private _sampleObject3 As New SampleObject With {.MyText = "Old Text 3"} Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load TextBox1.DataBindings.Add(New Binding("Text", _sampleObject1, "MyText", True, DataSourceUpdateMode.OnValidation, String.Empty)) TextBox2.DataBindings.Add(New Binding("Text", _sampleObject2, "MyText", True, DataSourceUpdateMode.OnValidation, String.Empty)) TextBox3.DataBindings.Add(New Binding("Text", _sampleObject3, "MyText", True, DataSourceUpdateMode.OnValidation, String.Empty)) TextBox1.Text = "New Text 1" TextBox2.Text = "New Text 2" TextBox3.Text = "New Text 3" 'Application.DoEvents() '<- won't fix this. 'TextBox2.Invalidate() '<- won't fix this. 'TextBox2.Update() '<- won't fix this. 'TextBox2.Refresh() '<- won't fix this. TextBox1.BorderStyle = BorderStyle.Fixed3D TextBox2.BorderStyle = BorderStyle.FixedSingle TextBox3.BorderStyle = BorderStyle.None End Sub End Class Running this application will give you a form with three textboxes. The first one will display the new text value, as its border style has not changed. The other two textboxes will display their old values. ![The results as described above.][1] I've made the following observations: 1. Changing the BorderStyle of the first textbox to something else at the beginning of Form1_Load will cause it to also display the original value and not the new value. 2. None of the commented-out lines correct the problem if they're uncommented. 3. Moving the text assignment to after the border style change does correct this, but this example is a simplified version of a more complex application that uses Form class inheritance. 4. Commenting out the databindings will also correct this, but is not a feasible option. 5. Putting a new textbox on the form and setting it to be the first control to get focus does not change the observed behaviour. 6. Setting the text value of `_sampleObjectN.MyText` instead of `TextBoxN.Text` reverses the behaviour so that the textbox without the border change displays the old value and the other two display the new value. 7. Changing the DataSourceUpdateMode to `DataSourceUpdateMode.OnPropertyChanged` will correct this, but would also change the behaviour of the binding. The obvious fixes are to change the text assignment so that it's assigned after the BorderStyle is changed or to change the DataSourceUpdateMode, but my question is: Why is this happening in the first place? [1]: http://i.stack.imgur.com/axYQd.png
0
[ 2, 2697, 21, 1054, 7410, 1854, 5309, 569, 22, 18, 1862, 4381, 84, 11891, 18, 14, 78, 1854, 1923, 800, 3726, 3726, 31, 22, 195, 216, 17, 23, 777, 20, 21509, 21, 13193, 7727, 19, 1936, 1997, 15, 19, 30, 71, 43, 1880, 14, 1854, 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 not display JQuery tabbed content when page loads === I would like to have the JQuery tabs act like a nav bar where no tabbed content displays until the user clicks a tab. I have this code that hides the tabbed content but also breaks the tabs so they don't display content when clicked. I cannot figure out the syntax and would love some help. I'm only accessing static HTML content. <pre><script> $(function() { $( "div.panes" ).panes({ selected: -1 }); $("ul.tabs").tabs("div.panes > div"); }); </script></pre>
0
[ 2, 184, 20, 52, 3042, 487, 8190, 93, 6523, 4283, 2331, 76, 2478, 19069, 800, 3726, 3726, 31, 83, 101, 20, 57, 14, 487, 8190, 93, 6523, 18, 601, 101, 21, 16048, 748, 113, 90, 6523, 4283, 2331, 9412, 163, 14, 4155, 10840, 18, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 to do if exec() fails? === Let's suppose we have a code doing something like this: int pipes[2]; pipe(pipes); pid_t p = fork(); if(0 == p) { dup2(pipes[1], STDOUT_FILENO); execv("/path/to/my/program", NULL); ... } else { //... parent process stuff } As you can see, it's creating a pipe, forking and using the pipe to read the child's output (I can't use `popen` here, because I also need the PID of the child process for other purposes). Question is, what should happen if in the above code, `execv` fails? Should I call exit() or abort()? As far as I know, those functions close the open file descriptors. Since `fork`-ed process inherits the parent's file descriptors, does it mean that the file descriptors used by the parent process will become unusable?
0
[ 2, 98, 20, 107, 100, 1396, 3319, 5, 6, 13614, 60, 800, 3726, 3726, 408, 22, 18, 5787, 95, 57, 21, 1797, 845, 301, 101, 48, 45, 19, 38, 14104, 2558, 135, 12660, 7642, 5, 15185, 18, 6, 73, 13, 11031, 1, 38, 351, 800, 8777, 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...
Getting a UIKeyboard related animation just right === I am currently using `keyboardWillShow` and `keyboardWillHide` notifications to animate a user interface element in response to a `UIKeyboard` appearing on the screen. I am calling a method - (void) animateElement: (UIToolbar*) toolbar up: (BOOL) up inside of the selectors that get called with the notifications are broadcasted. The method creates the animations and adds them to the appropriate layer. Everything works well, but visually the experience is disappointing because the keyboard appears before the element is translated and therefore the transition feels abrupt, as the element momentarily disappears from view and then reappears at the right place. The animation is basically obscured by the keyboard animation. Other apps like Path have a better transition, that starts sooner and is not obscured by the keyboard. Does anyone how it's accomplished? I can't think of a way to call it sooner, because the prior to receiving the notifications, the app has no way of knowing that the keyboard is appearing, right?
0
[ 2, 1017, 21, 13, 5661, 4237, 2806, 1597, 6236, 114, 193, 800, 3726, 3726, 31, 589, 871, 568, 13, 1, 4237, 2806, 5580, 9303, 1, 17, 13, 1, 4237, 2806, 5580, 19522, 1, 52, 4634, 18, 20, 14487, 591, 21, 4155, 6573, 4520, 19, 1627, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Writing JSON serializer === If I want to develop a serializer for a language for which one doesnt exist already (e.g. ABAP), what could be the efforts involved in it? Does it involve merely writing "text equivalent" of ABAP serialzer - how would I tackle complex objects. What would be the best starting point for this?
0
[ 2, 1174, 487, 528, 5956, 11907, 800, 3726, 3726, 100, 31, 259, 20, 2803, 21, 5956, 11907, 26, 21, 816, 26, 56, 53, 5886, 3182, 614, 13, 5, 62, 9, 263, 9, 5941, 2552, 6, 15, 98, 110, 44, 14, 2396, 1013, 19, 32, 60, 630, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Bundling and Minification mvc4 === I create a mvc4 application for test Bundling and Minification but when i run it and look html rendered code I noticed no my css and javascript are not Bundle <link href="/Content/themes/base/jquery.ui.core.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.resizable.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.selectable.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.accordion.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.autocomplete.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.button.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.dialog.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.slider.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.tabs.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.progressbar.css" rel="stylesheet" type="text/css" /> <link href="/Content/themes/base/jquery.ui.theme.css" rel="stylesheet" type="text/css" /> <link href="/Content/site.css" rel="stylesheet" type="text/css" /> but by default visual studio added in my layout file @Styles.Render("~/Content/themes/base/css", "~/Content/css") @Scripts.Render("~/bundles/modernizr") so i want to know why css and javascript are not Bundle?
0
[ 2, 5502, 11371, 17, 4232, 4634, 307, 8990, 300, 800, 3726, 3726, 31, 1600, 21, 307, 8990, 300, 3010, 26, 1289, 5502, 11371, 17, 4232, 4634, 47, 76, 31, 485, 32, 17, 361, 13, 15895, 10877, 1797, 31, 2711, 90, 51, 272, 18, 18, 17,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Microsoft Office 14.0 Object Library to close excel === Having referenced: Microsoft Office 14.0 Object Library in a C# project. Is it possible to close all open excel application on a computer? Thanks.
0
[ 2, 7099, 488, 513, 9, 387, 3095, 1248, 20, 543, 20700, 800, 3726, 3726, 452, 17571, 45, 7099, 488, 513, 9, 387, 3095, 1248, 19, 21, 272, 5910, 669, 9, 25, 32, 938, 20, 543, 65, 368, 20700, 3010, 27, 21, 1428, 60, 3669, 9, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
adding days to dates bring up ValueError:Unconverted data remains === This is another probably very simple question, but I haven't been able to find anything to fix it so far. I'm trying to add 14 days to some dates in a list of 2000 lists (each list='number1','number2','Day Month Year') and put the new date as a value at the end of each list (i.e. each list becomes 'number1', 'number2', 'Day Month Year', 'Day Month Year'). What I've got so far is: from datetime import timedelta listf=[] z=range(len(hinfo)) for i in z: datetime.datetime.strptime(hinfo[i][2],'%d %b %y') listf.append(hinfo[i][2]+timedelta(days=14)) But this brings up the error 'ValueError: unconverted data remains: 01'. All of the dates in the list should be fine so I can't figure out why the errors coming up. Forgive a beginner if it's just a simple mistake :) Thanks!
0
[ 2, 4721, 509, 20, 4076, 1499, 71, 1923, 29992, 45, 1020, 1126, 8122, 69, 1054, 1678, 800, 3726, 3726, 48, 25, 226, 910, 253, 1935, 1301, 15, 47, 31, 2933, 22, 38, 74, 777, 20, 477, 602, 20, 6098, 32, 86, 463, 9, 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...
How to get webpage link address === I'm loading an webpage from my application and keep on browsing and move to some other page, at any point i want to store current web page link address in my string field. any idea..? Thanks in advance.
0
[ 2, 184, 20, 164, 2741, 6486, 3508, 3218, 800, 3726, 3726, 31, 22, 79, 12797, 40, 2741, 6486, 37, 51, 3010, 17, 643, 27, 10175, 68, 17, 780, 20, 109, 89, 2478, 15, 35, 186, 454, 31, 259, 20, 1718, 866, 2741, 2478, 3508, 3218, 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, 0, 0, 0, 0...
How should I normalize a vector in Matlab where the sum is 1? === I need to normalize a vector of N integers so that: * Each value is proportional to its original value (the value will be between 0 and 1) * The sum of all values is =1 For instance: If I have a vector V = [2,2,1,0] the normalized vector should should be: V_norm = [0.4,0.4,0.2,0] % 0.4+0.4+0.2 = 1 I tried with many solutions found in this community and on the web and finally I did it with this code: part = norm(V); if part > 0 V_norm = V/part; else % part = 0 --> avoid "divide by 0" V_norm = part; end The problem this works if: * all elements of array are "0" --> resultant array doesn't change * only one element of the array is >0 and all other elements are = 0 --> resultant array: the element >0 is 1 and the other 0 but if I have a different case,although the result is proportional,the sum is not 0. For instance: V = [1,0,1] V_norm = [0.74,0,0.74] V = [1,1,1] V_norm = [0.54,0.54,0.54] (I'm not sure if the number are correct because I can't use Matlab right now but I'm sure the sum is > 1 ) Ahy hint? Thank you in advance
0
[ 2, 184, 378, 31, 1826, 2952, 21, 7497, 19, 4277, 9086, 113, 14, 3907, 25, 137, 60, 800, 3726, 3726, 31, 376, 20, 1826, 2952, 21, 7497, 16, 13, 103, 13820, 18, 86, 30, 45, 1637, 206, 1923, 25, 13822, 20, 82, 501, 1923, 13, 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...
How to know total number of downloads for an ios app.? === How to know total number of downloads for an ios app. ? In sales and trends under my developers account it shows only weekly or daily. Where can i see total number of downloads ? ![enter image description here][1] [1]: http://i.stack.imgur.com/NaKCg.png
0
[ 2, 184, 20, 143, 600, 234, 16, 7121, 18, 26, 40, 13, 7760, 4865, 9, 60, 800, 3726, 3726, 184, 20, 143, 600, 234, 16, 7121, 18, 26, 40, 13, 7760, 4865, 9, 13, 60, 19, 2598, 17, 14947, 131, 51, 10168, 2176, 32, 1285, 104, 3481...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Suppress / detect rotation in Android using Javascript === I'm trying to implement a wrapper around a modified VNC viewer applet (VNC = a remote display protocol) to provide an enhanced user experience (using javascript) but have run into problems with handling rotation. The width/height of the applet are fixed (1) - so when the user rotates the device, the applet overlows the screen: +------------+ +-------+ |............| |.......|... |. .| |. | . |. .| > |. | . |............| |.......|... +------------+ | | | | +-------+ :( While I can detect *the autorotation* from [the change in screen dimenions][1] in javascript, and, if it were written in Java, I could [suppress the autorotation][2], neither of these achieves my desired result: specifically, that - the orientation of the display would not change when the device is rotated - that my javascript would detect that device has been rotated and re-orient the *content* of the applet (by sending an OOB message to run xrandr at the vncserver). (I'm not averse to implementing the detection of rotation as a seperate applet exposed to the javascript) Is it possible to lock the orientation in a html app manifest file? Is it possible to detect rotation using javascript when the orientation is locked? Is there another way to solve this? 1 - this is a limitation of the underlying protocol, I'm already making changes to the Java applet, I don't really want to have to rewrite the server too! [1]: http://stackoverflow.com/questions/1649086/detect-rotation-of-android-phone-in-the-browser-with-javascript [2]: http://stackoverflow.com/questions/6119606/how-to-set-android-show-vertical-orientation
0
[ 2, 12451, 13, 118, 9092, 9431, 19, 13005, 568, 8247, 8741, 800, 3726, 3726, 31, 22, 79, 749, 20, 8713, 21, 28051, 140, 21, 5372, 566, 6897, 16812, 4037, 38, 13, 5, 16578, 150, 800, 21, 5388, 3042, 8494, 6, 20, 1181, 40, 10062, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Unix egrep looks into folder information? === I am have a simple egrep command that searches through all the files in the current directory for lines that contain the word "error": egrep -i "error" * This command will also go through the sub-directories as well. Here is a sample of what the whole folder looks like: /Logfile_20120630_030000_ID1.log /Logfile_20120630_030001_ID2.log /Logfile_20120630_030005_ID3.log /subfolder/Logfile_20120630_031000_Errors_A3.log /subfolder/Logfile_20120630_031001_Errors_A3.log /subfolder/Logfile_20120630_031002_Errors_A3.log /subfolder/Logfile_20120630_031003_Errors_A3.log The logfiles at the top directory contain "error" lines. But the logfiles in the "subfolder" directory do not contain lines with "error". (only in the filename) So the problem I am getting is that the egrep command seems to be looking at the information within the "subfolder". My result gets a chunk of what seems to be binary block, then the text lines that contain the word "error" from the top folder logfiles. If I deleted all the files underneath "subfolder", but did not delete the folder itself, I get the exact same results. So does Unix keep file history information inside a folder?? The problem was corrected by running: find . -type f | egrep -i "error" * But I still dont understand why it was a problem. I'm running C-shell on a SunOS.
0
[ 2, 22540, 12369, 99, 306, 1879, 77, 19294, 676, 60, 800, 3726, 3726, 31, 589, 57, 21, 1935, 12369, 99, 306, 1202, 30, 19994, 120, 65, 14, 6488, 19, 14, 866, 16755, 26, 1560, 30, 3717, 14, 833, 13, 7, 29992, 7, 45, 12369, 99, 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...
Is there a better way of writing the following jQuery script? === The following works as intended, however is there a more concise way to write this script without changing it too much? It's a simple menu with sub-levels which have a plus/minus icon when each li opens/closes. jQuery: $(document).ready(function() { $li = $('#main > li.expand'); $li.click(function(){ $ul = $(this).find('ul.sub-level').delay(200).slideDown(400); $(this).removeClass('expand').addClass('minus'); $('#main > li > ul').not($ul).slideUp('slow'); $('#main > li.minus').not($(this)).removeClass('minus').addClass('expand'); }) $li2 = $('.sub-level > li.expand'); $li2.click(function(){ $(this).find('ul.sub-level2').delay(200).slideToggle(400); $li2.toggleClass('minus').toggleClass('expand'); }) }); HTML: <ul id="main"> <li class="expand">test-1 <ul class="sub-level"> <li class="expand">sub-test-1 <ul class="sub-level2"> <li>sfasfasf</li> <li>sfafasf</li> </ul> </li> </ul> </li> <li>test-2</li> <li class="expand">test-3 <ul class="sub-level"> <li>sub-test-2</li> </ul> </li> <li>test-4</li> </ul> Thank you
2
[ 2, 25, 80, 21, 574, 161, 16, 1174, 14, 249, 487, 8190, 93, 3884, 60, 800, 3726, 3726, 14, 249, 693, 28, 2081, 15, 207, 25, 80, 21, 91, 29455, 161, 20, 2757, 48, 3884, 366, 4226, 32, 266, 212, 60, 32, 22, 18, 21, 1935, 11379,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Construct and Sytax Erros === I've found this example code online. It seems to do what I want, making a request to an API, I just need to customize it a bit. However, it when I try to compile it, it gives me the same errors for three lines Syntax error on token(s), misplaced construct(s) - Syntax error on token "setEntity", = expected after this token Maybe some one can see something I don't? Here's the code: import java.util.ArrayList; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; public class http { HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://www.yoursite.com/script.php"); List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameValuePairs.add(new BasicNameValuePair("id", "12345")); nameValuePairs.add(new BasicNameValuePair("stringdata", "AndDev is Cool!")); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); // Execute HTTP Post Request HttpResponse response = httpclient.execute(httppost); } The error is thrown for the nameValuePairs.add lines, and the httppost.setEntity line
0
[ 2, 13005, 6960, 17, 10315, 15514, 13, 106, 3171, 800, 3726, 3726, 31, 22, 195, 216, 48, 823, 1797, 2087, 9, 32, 2206, 20, 107, 98, 31, 259, 15, 544, 21, 3772, 20, 40, 21, 2159, 15, 31, 114, 376, 20, 5816, 2952, 32, 21, 1142, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
UITableView displays data then crashes === I'm making an iOS that lists the files in the Documents dictionary. I want to display this data in a UITableView, the problem is that it's not working. It loads the data in to the view. *Then* the application freezes and calls `EXC_BAD_ACCESS`<br>This is my code: - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{ timesRun = 0; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectoryPath = [paths objectAtIndex:0]; NSString *bundleRoot = [[NSBundle mainBundle] bundlePath]; dirContents = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:documentsDirectoryPath error:nil]; [bundleRoot release]; NSLog(@"Count: %i",[dirContents count]); return [dirContents count]; } - (UITableViewCell *)tableView:(UITableView *)tableViewData cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = nil; int Locatation = indexPath.row; Locatation++; cell = [tableViewData dequeueReusableCellWithIdentifier:@"MyCells"]; if (cell == nil) { cell = [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"MyCell"]autorelease]; } //cell.textLabel.text = [NSString stringWithFormat:@"Cell: %i",Locatation]; cell.textLabel.text = [dirContents objectAtIndex:timesRun]; timesRun++; return cell; NSLog(@"Did return"); } - (void)tableView:(UITableView *)tableViewDat didSelectRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; NSLog(@"%@",cell.textLabel.text); [tableView deselectRowAtIndexPath:indexPath animated:YES]; }
0
[ 2, 13, 11193, 579, 4725, 9412, 1054, 94, 21563, 800, 3726, 3726, 31, 22, 79, 544, 40, 13, 7760, 30, 7227, 14, 6488, 19, 14, 4374, 9186, 9, 31, 259, 20, 3042, 48, 1054, 19, 21, 13, 11193, 579, 4725, 15, 14, 1448, 25, 30, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Read resource file content despite having custom ResourceProvider === I have read the following articles and created small test programs but still I am at loss. http://msdn.microsoft.com/en-us/library/aa905797.aspx http://www.west-wind.com/presentations/wwdbresourceprovider/ http://www.codeproject.com/Articles/14190/ASP-NET-2-0-Custom-SQL-Server-ResourceProvider When I use the following entry in my web.config of asp.net (VS2010) application, <globalization resourceProviderFactoryType="CustomResourceProviders.DBResourceProviderFactory" /> I can no longer read key/value pairs from WebForm1.aspx.resx file. It only access key/value pair from DB as specified in resource provider. Is it possible to read key/value pairs from my my .resx file and still able to read the DB key/values specified in resource provider model? Please help. Thanks
0
[ 2, 1302, 6577, 3893, 2331, 869, 452, 5816, 6577, 26735, 139, 800, 3726, 3726, 31, 57, 1302, 14, 249, 3376, 17, 679, 284, 1289, 1726, 47, 174, 31, 589, 35, 1526, 9, 7775, 6903, 79, 18, 43, 103, 9, 22019, 12980, 9, 960, 118, 219, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
CUDA: shared data member of struct and member of reference to that struct have different addresses, values === Ok, heres the problem: using a CUDA 1.1 compute gpu, I am trying to maintain a set of (possibly varying number of, here fixed to 4) indices per thread, a reference to which I keep as a member of a struct var. My problem is that getting a reference to the struct then results in incorrect results when accessing the member array: I initialise the member array values with 0, when I read the array vals using the original struct var, I get the correct value (0), but when I read it using a reference to the struct var, I get garbage (-8193). This happens even if using a class instead of a struct. why does tmp below != 0 ?? c++ isn't my primary language, so this may be a conceptual issue, or it may be a quirk of working in cuda struct DataIdx { int numFeats; int* featIdx; }; extern __shared__ int sharedData[]; __global__ void myFn(){ int tidx = blockIdx.x * blockDim.x + threadIdx.x; DataIdx myIdx; //instantiate the struct var in the context of the current thread myIdx.numFeats = 4; size_t idxArraySize = sizeof(int)*4; //get a reference to my array for this thread. Parallel Nsight debugger shows myIdx.featIdx address = 0x0000000000000000e0 myIdx.featIdx = (int*)(&sharedData[tidx*idxArraySize]); myIdx.featIdx[0] = 0x0; //set first value to 0 int tmp = myIdx.featIdx[0]; // tmp is correctly eq to 0 in Nsight debugger -- As Expected!! tmp = 2*tmp; antIdx.featIdx[0] = tmp; //ensure compiler doesn't elide out tmp DataIdx *tmpIdx = &myIdx; //create a reference to my struct var tmp = tmpIdx.featIdx[0]; // expected 0, but tmp = -8193 in debugger !! why? debugger shows address of tmpIdx.featIdx = __devicea__ address=8 tmpIdx.featIdx[0] = 0x0; tmp = tmpIdx.featIdx[0]; // tmp = -1; cant even read what we just set //forcing the same reference as myIdx.featIdx, still gives a problem! debugger shows address of tmpIdx.featIdx = __devicea__ address=8 tmpIdx->featIdx = (int*)(&sharedData[tidx*idxArraySize]); tmp = tmpIdx.featIdx[0]; //tmp = -8193!! why != 0? DataIdx tmpIdxAlias = myIdx; tmp = tmpIdx.featIdx[0]; //aliasing the original var gives correct results, tmp=0 myIdx.featIdx[0] = 0x0; mySubfn(&myIdx); //this is a problem because it happens when passing the struct by reference to subfns mySubfn2(myIdx); } __device__ mySubfn(struct DataIdx *myIdx){ int tmp = myIdx->featIdx[0]; //tmp == -8193!! should be 0 } __device__ mySubfn2(struct DataIdx &myIdx){ int tmp = myIdx.featIdx[0]; //tmp == -8193!! should be 0 }
0
[ 2, 272, 5729, 45, 2592, 1054, 322, 16, 13, 10346, 17, 322, 16, 2801, 20, 30, 13, 10346, 57, 421, 12636, 15, 4070, 800, 3726, 3726, 5854, 15, 235, 18, 14, 1448, 45, 568, 21, 272, 5729, 137, 9, 165, 23909, 489, 4201, 15, 31, 589...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
dired+ does not launch automactically === The builtin dired is launched when I type `C-x d`. dired+ is loaded because I can run diredp-** commands and dired+ is only lauched after I have run a diredp command. What is the problem? By the way, I am using emacs 24.1 and installed dired+ thru the package manager.
0
[ 2, 18473, 43, 2430, 630, 52, 3394, 3108, 6893, 38, 8438, 800, 3726, 3726, 14, 392, 108, 18473, 43, 25, 1601, 76, 31, 1001, 13, 1, 150, 8, 396, 13, 43, 1, 9, 18473, 43, 2430, 25, 8572, 185, 31, 92, 485, 18473, 7431, 8, 1409, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Best way to auto arrange grid style elements? === I have a grid of items in my application like so: <img src="http://cl.ly/1m243117220B060Z0M26/Screen%20Shot%202012-07-09%20at%2011.34.22%20AM.png"> These are just custom UIButtons at the moment. What might be the best way to go about making these grid items rearrange automatically to fit the width of landscape mode? <img src="http://cl.ly/1d0x431P1n211W1H2n3B/Screen%20Shot%202012-07-09%20at%2011.35.42%20AM.png"> Obviously this is done commonly in apps but I searched a bit and couldn't find exactly what I was looking for. Added bonus if someone knows of something like Isotope for iOS (http://isotope.metafizzy.co/)
0
[ 2, 246, 161, 20, 3108, 12400, 7354, 1034, 2065, 60, 800, 3726, 3726, 31, 57, 21, 7354, 16, 3755, 19, 51, 3010, 101, 86, 45, 13, 1, 1660, 263, 13, 18, 5453, 3726, 7, 21127, 6903, 5316, 9, 102, 11698, 79, 21904, 17440, 18411, 220,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do you make a div follow as you scroll? === I have a div on the left hand side which includes the business hours and weather. I would like that div to scroll down and up according to how the user scrolls. So it would follow and move up and down with the page. How would I attempt this? This is my website [judystropicalgarden.com][1] [1]: http://judystropicalgarden.com Thanks
0
[ 2, 184, 107, 42, 233, 21, 13, 12916, 1740, 28, 42, 12159, 60, 800, 3726, 3726, 31, 57, 21, 13, 12916, 27, 14, 225, 224, 270, 56, 1103, 14, 508, 974, 17, 2580, 9, 31, 83, 101, 30, 13, 12916, 20, 12159, 125, 17, 71, 496, 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...
Why does storing a Nancy.DynamicDictionary in RavenDB only save the property-names and not the property-values? === I am trying to save (RavenDB build 960) the names and values of form data items passed into a Nancy Module via its built in `Request.Form`. If I save a straightforward instance of a `dynamic` object (with test properties and values) then everything works and both the property names and values are saved. However, if I use Nancy's `Request.Form` then only the dynamic property names are saved. I understand that if I get this working then I will have to deal with further issues to with types when retrieveing this data (RavenJObjects etc) but for now, I want to solve the problem of saving the data in the first place. Here is the entire test request and code: **Fiddler Request (PUT)** ![enter image description here][1] **Nancy Module** Put["/report/{name}/add"] = parameters => { reportService.AddTestDynamic(Db, parameters.name, Request.Form); return HttpStatusCode.Created; }; **Service** public void AddTestDynamic(IDocumentSession db, string name, dynamic data) { var testDynamic = new TestDynamic { Name = name, Data = data }; db.Store(testDynamic); db.SaveChanges(); } **TestDynamic Class** public class TestDynamic { public string Name; public dynamic Data; } **Dynamic contents of Request.Form at runtime** ![enter image description here][2] **Resulting RavenDB Document** { "Name": "test", "Data": [ "username", "age" ] } **Note**: The type of the Request.Form is `Nancy.DynamicDictionary`. I think this may be the problem since it inherits from `IEnumerable<string>` and not the expected `IEnumerable<string, object>`. I think that RavenDB is enumerating the `DynamicDictionary` and only getting back the dynamic member-names rather than the member name / value pairs. Can anybody tell me how or whether I can treat the Request.Form as a `dynamic` object with respect to saving it to RavenDB? If possible I want to avoid any hand-crafted enumeration of `DynamicDictionary` to build a `dynamic` instance so that RavenDB can serialise correctly. Thank You [1]: http://i.stack.imgur.com/T9TQI.png [2]: http://i.stack.imgur.com/csbjn.png
0
[ 2, 483, 630, 25615, 21, 7477, 9, 20985, 22595, 1857, 19, 7542, 9007, 104, 2079, 14, 1354, 8, 7259, 18, 17, 52, 14, 1354, 8, 15165, 18, 60, 800, 3726, 3726, 31, 589, 749, 20, 2079, 13, 5, 16224, 2451, 220, 1895, 13, 24504, 6, 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...
Rewrite Rule exclude certain strings from (.*) in Regex === I currently have the following htaccess rewrite rule: RewriteRule (.*) index.php/$1 [L] How do I make it exclude 2 certain strings like : 'template' and 'image'? I read other posts but it was not clear to me.
0
[ 2, 27891, 1828, 21077, 1200, 7887, 37, 13, 5, 9, 2483, 6, 19, 7953, 1706, 800, 3726, 3726, 31, 871, 57, 14, 249, 13, 9020, 20604, 27891, 1828, 45, 27891, 16154, 13, 5, 9, 2483, 6, 4348, 9, 26120, 118, 11019, 636, 255, 500, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
PHP: Convert the FULL Excel date serial format to unix timestamp? === I've seen lots of references to converting the "date" portion of the Excel serial date format, but everyone seems to skip the "time" portion of it. I'm stuck and have been searching without result for hours. Here is what I need to do: I have an excel file I'm importing. PHP in use. I am encountering the Excel Date Serial format (dddddd.tttttt) and need to convert this to an entire Unix timestamp. I've tried a few different things, but am getting hung up on how to do this in a fluid motion. Can someone help?
0
[ 2, 13, 26120, 45, 8406, 14, 503, 20700, 1231, 5956, 2595, 20, 22540, 436, 38, 10158, 60, 800, 3726, 3726, 31, 22, 195, 541, 7503, 16, 7231, 20, 19583, 14, 13, 7, 8209, 7, 2980, 16, 14, 20700, 5956, 1231, 2595, 15, 47, 1266, 2206...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Variables and allocation inside of a loop === Recently I stumbled upon source code where programmer declared variables inside one infinite loop depending on *if/else* conditions. What I found odd is that the code ran and it didn't implied any memory leaks. First I thought that maybe it was architecture specific thing (the code was for ARM) but I ran some tests and I found out that binaries on IA32 compiled with GCC acted in same way. My approach was like this: I've created two small program foo.c and bar.c Foo.c: #include <stdio.h> int main(void) { int i; for(i=0; i<10; i++) { char buf[10]; buf[i] = 0; printf("buf[%d] (@ %#x) == %d\n", i, &buf, buf[i]); } return(0); } Bar.c: #include <stdio.h> int main(void) { int i; for(i=0; i<10; i++) { char *ptr; ptr = (char *) malloc(10); ptr[i] = 0; printf("buf[%d] (@ %#x) == %d\n", i, &ptr, ptr[i]); } return(0); } The reason behind making explicit distinction between declaring an array in *Foo.c* and allocating memory in *Bar.c* was that first I thought that maybe compiler auto-magically detects that it's the same variable and just ignoring the declaration after initial *for* iteration which of course shouldn't be the case in *Bar.c* because I explicitly allocate the memory. What was really weird to me that in both examples the address of both an array and allocated memory stays the same after initial *for* iteration. I do not completely understand that and I don't have my copy of *K&R* with me so I'll be thankful for an explanation. (Also if I made any mistake in my reasoning I'd be glad for pointing it out.)
0
[ 2, 12157, 17, 16840, 572, 16, 21, 5293, 800, 3726, 3726, 1989, 31, 10282, 685, 1267, 1797, 113, 17968, 2482, 12157, 572, 53, 9698, 5293, 4758, 27, 1637, 821, 118, 6798, 62, 2483, 2039, 9, 98, 31, 216, 4210, 25, 30, 14, 1797, 717, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Files not being written to device === I have been trying a hundred different methods to solve my problem, but for some reason they simple won't work. I'm trying to make a quick and dirty way, for my application to be persistent. It basically got a lot of objects it needs to save when destroying, so I thought I would make it put the objects into an ArrayList, and then write the ArrayList to the file using an ObjectOutputStream. public void onDestroy() { super.onDestroy(); Log.d("Event", "Destroyed"); FileOutputStream fos = null; ObjectOutputStream oos = null; try { fos = openFileOutput("Flights", MODE_WORLD_WRITEABLE); oos = new ObjectOutputStream(fos); } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } ArrayList<Flight> alFlightList = new ArrayList<Flight>(); Iterator it = flightMap.entrySet().iterator(); while (it.hasNext()) { Map.Entry pairs = (Map.Entry)it.next(); alFlightList.add((Flight) pairs.getValue()); } try { oos.writeObject(alFlightList); oos.close(); } catch (IOException e) { e.printStackTrace(); } finally { Log.d("Info", "File created!"); } } I got a similar algorithm for reading it out again, but it complains about there not being any file to read from. I know using files for persistence is not the best practice, but this is as previously mentioned, supposed to have been a quick and dirty solution. (But the time I have used on it now, might as well have been spent on making a database. ._.) Thanks!
0
[ 2, 6488, 52, 142, 642, 20, 3646, 800, 3726, 3726, 31, 57, 74, 749, 21, 1874, 421, 3195, 20, 8402, 51, 1448, 15, 47, 26, 109, 1215, 59, 1935, 230, 22, 38, 170, 9, 31, 22, 79, 749, 20, 233, 21, 2231, 17, 6121, 161, 15, 26, 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...
what's the issue with AttachDbFilename === Apparently, using `AttachDbFilename` and `user instance` in your connection string is a bad way to connect to a DB. I'm using SQL server express on my local machine and it all seems to work fine. But what's the proper way to connect to SQL server then? Thanks for your explanation.
0
[ 2, 98, 22, 18, 14, 1513, 29, 19514, 9007, 16877, 7259, 800, 3726, 3726, 3083, 15, 568, 13, 1, 14986, 673, 9007, 16877, 7259, 1, 17, 13, 1, 16704, 4851, 1, 19, 154, 2760, 3724, 25, 21, 896, 161, 20, 6379, 20, 21, 13, 9007, 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...
Displaying Cubepoints and Ranks in bbpress replies === i've been searching for a while now on how to show Cubepoints Points and Ranks in bbPress replies right below the user avatar and name... Found the template file where to show the info, tho not sure this would be the correct one to grab the reply-author info, the "loop-single-reply.php" and just bellow bbp_reply_author_link(); i'm placing the output (correct me if i'm wrong), and i discovered the functions to calculate and display Cubepoints and Ranks (cp_displayPoints($user->ID); & cp_module_ranks_getRank($user->ID)), correct me if i'm wrong again ^^ The question is, since working with bbpress is way more harder then wordpress due to the lack of easy to reach documentation (like wordpress codex), how can I get the reply-author ID and display the Cubepoints and Ranks, am I in the right way? what am I missing? thank you in advance!
0
[ 2, 17418, 13682, 3132, 18, 17, 6309, 19, 13, 3490, 5890, 16287, 800, 3726, 3726, 31, 22, 195, 74, 5792, 26, 21, 133, 130, 27, 184, 20, 298, 13682, 3132, 18, 819, 17, 6309, 19, 13, 3490, 5890, 16287, 193, 1021, 14, 4155, 22234, 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 create instance of org.springframework.dao.DataAccessException? === I need to create JUnit test for handling of DataAccessException, but when I try: throw new DataAccessException(); Receive: Cannot instantiate the type DataAccessException Why? What can I do? Thanks.
0
[ 2, 184, 20, 1600, 4851, 16, 13, 5583, 9, 15827, 8361, 3783, 9, 17104, 9, 18768, 20604, 10066, 872, 60, 800, 3726, 3726, 31, 376, 20, 1600, 7446, 242, 1289, 26, 7988, 16, 1054, 20604, 10066, 872, 15, 47, 76, 31, 1131, 45, 3814, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ember.js component is responsible for inserting templates into the DOM? === I am building an ember.js/rails application. All the handlebar templates are stored in .js files. I'd like to understand how they get inserted into the DOM when the router changes state. **Which part of ember does this?** How do I tell ember to place templates? Right now I can only get my templates appended to the `<body>` I have a [jsFiddle here][1]. Thanks. [1]: http://bit.ly/MItOcl
0
[ 2, 98, 13, 19603, 9, 728, 18, 5912, 25, 1864, 26, 14692, 68, 22894, 18, 77, 14, 11859, 60, 800, 3726, 3726, 31, 589, 353, 40, 13, 19603, 9, 728, 18, 118, 7301, 18, 3010, 9, 65, 14, 3053, 1850, 22894, 18, 50, 8214, 19, 13, 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...
ActionScript Syntax Errors === I am probably the biggest N00b there is in flash and I need some help solving some compile errors. I was following a tutorial (at http://www.youtube.com/watch?v=E8oM808ETWs) and typed down all of the code displayed in the video. When I tried to publish, I was presented two compile errors: Scene=Scene 1, layer=action, frame=1, Line 16 '{' expected Scene=Scene 1, layer=action, frame=1, Line 33 Syntax error. Here is the code that I have import flash.external.ExternalInterface import gfx.motion.Tween _global.gfxExtentions = true; var angle:Number; function init() { _root.Health._yrotation = 30; _root.Ammo._yrotation = 30; angle = 0; } init(); _root.onEnterFrame = function(); { angle +=0.1; var sined:Number = Math.sin(angle) + 2; sined /=2; _root.Health.Title._z = -200 * sined; _root.Health.Bar._z = -500 * sined; _root.Health.Value._z = -200 * sined; _root.Health.Background._z = 200 * sined; _root.Ammo.Title._z = -200 * sined; _root.Ammo.Bar._z = -500 * sined; _root.Ammo.Value._z = -200 * sined; _root.Ammo.Background._z = 200 * sined; _root.Weapon._z = -200 * sined; } If someone could please tell me how to fix these errors, I would appreciate it Thank you, jSoftApps
0
[ 2, 1028, 8741, 22649, 11908, 800, 3726, 3726, 31, 589, 910, 14, 3835, 13, 103, 2032, 220, 80, 25, 19, 4433, 17, 31, 376, 109, 448, 17533, 109, 26561, 11908, 9, 31, 23, 249, 21, 29724, 13, 5, 721, 7775, 6903, 6483, 9, 245, 19302,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
EWS writing LegacyDN address instead of SMTP to contacts === I'm currently attempting to implement a service which uses EWS to make updates to the outlook contacts of users but I'm having a bit of trouble correctly writing to the email address fields. Note that I'm not an Exchange developer and I'm a newbie when it comes to EWS. When using the FindItems() method to search a user's contacts folder, the returned Contact objects have their email address fields as the correct SMTP address (blah@blah.com). However, when I update and save the contact, the next I time retrieve that contact, the email address field displays the LegacyDN address (/o=Blah/ou=Exchange Administrative Group/cn=Recipients/cn=Blah). This occurs even if I write the exact same SMTP address to the contacts field when updating. Somehow, EWS seems to be internally converting the SMTP address to an ExchangeLDn address. This is problematic for a number reasons. In particular, it seems to be breaking some of our other services that read from the exchange server and it makes it impossible to correctly display the email address without doing a very slow ResolveName call. Is there a way to stop EWS from doing this? A different service which uses Outlook Redemption has no problem properly writing an SMTP address but we're attempting to retire that service and the use of the Redemption API. I should also mention that this problem only occurs when updating contacts for internal users. External users always write the correct SMTP address. Thanks.
0
[ 2, 13, 4460, 18, 1174, 7780, 43, 103, 3218, 700, 16, 7613, 13726, 20, 11894, 800, 3726, 3726, 31, 22, 79, 871, 6314, 20, 8713, 21, 365, 56, 2027, 13, 4460, 18, 20, 233, 16779, 20, 14, 19837, 11894, 16, 3878, 47, 31, 22, 79, 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...
Can I register my iPhone to multiple Dev accs? === <br> So I've got my iPhone and it's already registered to my friend's Dev Acc, because I'm helping him to test his app. But I want to register as an Apple Dev and of course I want to add my iPhone to my acc.<br> Is it possible to it will registered to multiple accs?<br> Did anybody tried this?
0
[ 2, 92, 31, 2243, 51, 21024, 20, 1886, 9664, 7602, 18, 60, 800, 3726, 3726, 13, 1, 5145, 1, 86, 31, 22, 195, 330, 51, 21024, 17, 32, 22, 18, 614, 3801, 20, 51, 860, 22, 18, 9664, 7602, 15, 185, 31, 22, 79, 3713, 61, 20, 128...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 webpage to the mobile version using Android custom browser === I'm implementing a browser for Android. What I need to do is to find out whether the website I'm visiting has a mobile version or not. If the mobile version is available I should be able to redirect the webpage to the mobile version. I also have an option for the user to decide whether or not to redirect the webpage to the mobile version. For example if the user prefers to keep the option Redirect to Mobile Ver. "On" then I should redirect him from ex.`www.google.com -> m.google.com` if he selects otherwise then I should let him visit `www.google.com`. [Source][1]: There are several ways you can redirect requests to the mobile version of your web site, using server-side redirects. Most often, this is done by "sniffing" the User Agent string provided by the web browser. To determine whether to serve a mobile version of your site, you should simply look for the "mobile" string in the User Agent, which matches a wide variety of mobile devices. If necessary, you can also identify the specific operating system in the User Agent string (such as "Android 2.1"). I need the code for Android to perform sniffing and identifying the website. Hope you can help me with this. Thank you for your time! [1]: http://developer.android.com/guide/webapps/best-practices.html
0
[ 2, 302, 14706, 2741, 6486, 20, 14, 3241, 615, 568, 13005, 5816, 16495, 800, 3726, 3726, 31, 22, 79, 17333, 21, 16495, 26, 13005, 9, 98, 31, 376, 20, 107, 25, 20, 477, 70, 1472, 14, 2271, 31, 22, 79, 4803, 63, 21, 3241, 615, 54...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Could not complete the operation due to error 80020101 === I am running an ExtJS 4.1 application. It is running just fine in FireFox, but I get this error in Internet Explorer 8: `Could not complete the operation due to error 80020101.` I have found various possible fixes, but none seemed to fit my needs. How can I make the application work in IE8?
0
[ 2, 110, 52, 1279, 14, 1453, 397, 20, 7019, 7993, 2751, 165, 800, 3726, 3726, 31, 589, 946, 40, 1396, 38, 728, 18, 268, 9, 165, 3010, 9, 32, 25, 946, 114, 1123, 19, 535, 18219, 15, 47, 31, 164, 48, 7019, 19, 2620, 8520, 469, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...