unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Fusion Table - Zoom to Boundaries of Region === I am creating a multiregion and district map which you can see here: http://vciregionmap.com/new/ It used this Fusion Table in the new version: https://www.google.com/fusiontables/DataSource?snapid=S587803AEqk It works great, the only thing it does not do and used to do in the old version - the code is in there but stopped working about 8 months ago. I need the legend to is zoom to the bounds of the region and district that you choose. I am unsure of how to get the map to zoom upon clicking the legend - I think I may be able to do without drawing the bounds of regions and districts, but the zoom (as you see) is really needed. Here is what I am having issues with . . Map View 1 - Show all 5 Regions with outline on bounds of Region. Map View 2- Zoom into Region and show bounds for each district. Map View 3 - Zoom into District bounds showing only markers for that district.
0
[ 2, 11117, 859, 13, 8, 19469, 20, 6361, 16, 632, 800, 3726, 3726, 31, 589, 2936, 21, 1889, 18790, 17, 256, 2942, 56, 42, 92, 196, 235, 45, 7775, 6903, 8990, 49, 18790, 15022, 9, 960, 118, 2681, 118, 32, 147, 48, 11117, 859, 19, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Two Right Join in one Access SQL query === In my Ms Access, I want to insert data from two different table, so i write the sql like this: SELECT B.*, C.* INTO Table2 FROM Table1 AS A RIGHT JOIN ABC AS B ON A.HKID=B.HKID RIGHT JOIN DEF AS C ON A.HKID=C.HKID WHERE A.HKID Is Null and b.organization not like '*xxx*' and b.adj = 1 and c.[Status] = 'Suspend';" but it had error msg when running the sql, it said syntax error. Can I write the sql like this ?
0
[ 2, 81, 193, 1865, 19, 53, 1381, 4444, 255, 25597, 800, 3726, 3726, 19, 51, 4235, 1381, 15, 31, 259, 20, 14692, 1054, 37, 81, 421, 859, 15, 86, 31, 2757, 14, 4444, 255, 101, 48, 45, 5407, 334, 9, 2483, 15, 272, 9, 2483, 77, 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...
"ERROR: Failed to build gem native extension" on Heroku Aspen === I am tring to clone an old Ruby project from one Heroku app to another but I can't get it to run. I have setup a new app with the aspen-mri-1.8.6 stack. But when I push the code up (cloned directly from the app that's working), I get the following error: Counting objects: 465, done. Delta compression using up to 4 threads. Compressing objects: 100% (214/214), done. Writing objects: 100% (465/465), 192.12 KiB | 95 KiB/s, done. Total 465 (delta 239), reused 440 (delta 230) -----> Heroku receiving push -----> Ruby/Rack app detected -----> Installing gem patron from http://rubygems.org Building native extensions. This could take a while... ERROR: Error installing patron: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for curl-config... no checking for main() in -lcurl... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-curl-dir --without-curl-dir --with-curl-include --without-curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib extconf.rb:34: Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. Gem files will remain installed in /app/tmp/repo.git/gems_build/gems/patron-0.4.18 for inspection. Results logged to /app/tmp/repo.git/gems_build/gems/patron-0.4.18/ext/patron/gem_make.out ! Heroku push rejected, failed to install gem To git@heroku.com:thumbify.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:thumbify.git' Any advice would be hugely appreciated.
0
[ 2, 13, 7, 29992, 45, 1702, 20, 1895, 8551, 1275, 3896, 7, 27, 36, 9266, 28, 3014, 800, 3726, 3726, 31, 589, 13, 38, 2090, 20, 13871, 40, 315, 10811, 669, 37, 53, 36, 9266, 4865, 20, 226, 47, 31, 92, 22, 38, 164, 32, 20, 485,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
sigma.parseGexf.js got XMLHttpRequest Exception error === I'm trying to work out how to embed GEXF file onto webpage using Sigma.js. So I've duplicated the entire html page with all the js files from this page: [http://sigmajs.org/examples/gexf_example.html][1] However, the JavaScript doesn't work / couldn't load the arctic.gexf file. The codes are exactly the same as it was. I have no clue where it went wrong. Using Google Chrome inspector, i got the following warning: " Uncaught Error: NETWORK_ERR: XMLHttpRequest Exception 101 " image is here: [enter link description here][2] Anyone has any idea? Thanks very much!! [1]: http://sigmajs.org/examples/gexf_example.html [2]: http://i.stack.imgur.com/gPnjP.png
0
[ 2, 15020, 9, 3574, 18, 12906, 396, 410, 9, 728, 18, 330, 23504, 21127, 99, 10351, 5391, 7019, 800, 3726, 3726, 31, 22, 79, 749, 20, 170, 70, 184, 20, 11911, 69, 489, 1706, 410, 3893, 1204, 2741, 6486, 568, 15020, 9, 728, 18, 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...
How to sort a gridview using javascript based on column index === I'm using a gridview with the structure <table cellspacing="0" cellpadding="3" rules="cols" border="1" id="ctl00_Content_GrdCustomer" style="color:Black;border-color:#999999;width:640px;border-collapse:collapse;"> <tr style="color:White;background-color:Black;font-weight:bold;"> <th scope="col"> Something </th> <th scope="col">Client Name</th> <th scope="col">Address</th> <th scope="col">Place</th> <th scope="col">City</th> <th scope="col">Country</th> </tr> <tr class="home-history-grid-row customerData"> <td align="center" style="width:50px;"> // Checkbox </td> <td align="center">Raju Varghese</td> <td align="center">&nbsp;</td> <td align="center">&nbsp;</td> <td align="center">&nbsp;</td> <td align="center">Country4</td> </tr> <tr class="home-history-grid-row customerData"> <td align="center" style="width:50px;"> //Checkbox </td> <td align="center">Joseph K. J</td> <td align="center">&nbsp;</td> <td align="center">&nbsp;</td> <td align="center">&nbsp;</td> <td align="center">Country4</td> </tr> </table> I need to sort the grid based on the 'th' with header 'Client Name'. Gone through so many links and all are sorting based on header clicks and i dont know javascript much. Kindly help
0
[ 2, 184, 20, 2058, 21, 7354, 4725, 568, 8247, 8741, 432, 27, 4698, 4348, 800, 3726, 3726, 31, 22, 79, 568, 21, 7354, 4725, 29, 14, 1411, 13, 1, 5924, 2934, 10055, 68, 3726, 7, 387, 7, 1667, 1060, 11365, 3726, 7, 240, 7, 1761, 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...
Android long running activity / service === I've built an application that uses the magnetic field sensor to act as a magnetic reed switch to run some methods in an activity. This runs 24/7, and the phone is not accessible to people, so there is no fear of user's closing the app. However, the app is crashing after prolonged waiting period; and I'm unsure if I've taken the right approach: activity based or service based. My understanding of services is that they're good for background activities, but since my activity is always running I don't feel this is the right approach. Likewise, since my activity runs in the background and since it constantly reading the magnetic field and creating local broadcast intents when needed, this may cause some problems with the various broadcast receivers (that is if they're not created during the onResume, and unregistered during onPause). As I mentioned in the first paragraph, I'm wondering which is a preferred method to run the magnetic field sensor to fire off local broadcast intents.
0
[ 2, 13005, 175, 946, 2358, 13, 118, 365, 800, 3726, 3726, 31, 22, 195, 392, 40, 3010, 30, 2027, 14, 7877, 575, 14865, 20, 601, 28, 21, 7877, 5749, 5521, 20, 485, 109, 3195, 19, 40, 2358, 9, 48, 1461, 937, 118, 465, 15, 17, 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...
Android Virtual Keyboard KeyListener for getting Virtual Keyboard key presses === I want that on each key press I require to change the Counter some what similar to Tweeter Thing but the issue is that OnEditorActionListener only calls for the change while the user presses Enter or Done key, Please Can I Find a Resolution for this
0
[ 2, 13005, 6599, 8896, 1246, 13891, 106, 26, 1017, 6599, 8896, 1246, 16527, 800, 3726, 3726, 31, 259, 30, 27, 206, 1246, 901, 31, 4077, 20, 753, 14, 2105, 109, 98, 835, 20, 20224, 106, 584, 47, 14, 1513, 25, 30, 27, 13401, 8645, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Plugin Architecture and Entityframework === I am building an application as follows; There is only one table in the database and the domain as a base entity (Ipage) which represents an html page when viewed by the public. Inheriting that is an entity (IPageBuilder) which contains the information required to build the page, admin view. The concept is to prerender pages on the admin side and store everything in a single table. Below is the interface class for these two entities: public interface IPage { string BodyPreRender { get; set; } string ExcerptPreRender { get; set; } int ID { get; set; } bool IsPublished { get; set; } string Key { get; set; } string MetaTagsPreRender { get; set; } int Order { get; set; } string PageKey { get; set; } } public interface IPageBuild : IPage { string Author { get; set; } string CreatedBy { get; set; } DateTime CreatedOn { get; set; } string Description { get; set; } string EditListItemPreRender { get; set; } string Html { get; set; } string Keywords { get; set; } string Language { get; set; } string MetaDescription { get; set; } DateTime? ReleasedOn { get; set; } string Title { get; set; } int Version { get; set; } } I have created an plugin manager which will discover a dll containing a plugin descriptor interface and create a list of plugins for use in the application. Here is the plug descriptor interface: internal interface IPluginDescriptor { Assembly Assembly { get; } string Author { get; } string AuthorUrl { get; } Type DomainType { get; } PlugInFactories Factories { get; } void Install(); string Key { get; } string MenuName { get; } string Name { get; } string PageKey { get; } PluginRoute Route { get; } string SupportUrl { get; } void Uninstall(); Version Version { get; } } What I would like to do is create a domain object within the plugin, which is based upon the base page builder class, thus allowing the plugin to create and store any web page it wants, such as: public class Foo : IPageBuild { public string FooInfo { get; set; } } In the application startup I would like to run a method in my plugin descriptor, call it install(), which will check the data table and see if it has a column for FooInfo. So what is best method to accomplish this task? Thanks in advance. In addition I have setup the columns in the table to be formatted as: - Page_BodyPreRender, - Page_ExcerptPreRender, - etc., - Foo_FooInfo I am using - .Net Framework 4.0 - Entity Framework 4.3.1.0 - System.Data.SqlServerCe.Entity4.0.0.0 - System.Web.Mvc 3.0.0.0
0
[ 2, 307, 8990, 10922, 108, 2607, 17, 9252, 8361, 3783, 800, 3726, 3726, 31, 589, 353, 40, 3010, 28, 2415, 73, 80, 25, 104, 53, 859, 19, 14, 6018, 17, 14, 4603, 28, 21, 1000, 9252, 13, 5, 49, 6486, 6, 56, 4719, 40, 13, 15895, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 populate select from database in Struts2+Hibernate? === I'm using Struts2+Hibernate. I have a **form** in a JSP page, in which there is a **select that I need to populate it from Database**. I have implemented the DAO class BookDAO ( selectBooks(), updateBook(Book book)). I have created the Action class in which I declared an ArrayList of Book, and an object of class BookDAO. It seems that I need to define a function in the Action class which call selectBooks and populate my ArrayList, But **this action should be called automatically on loading my JSP page**. Is Ajax necessary in my case? Thank you.
0
[ 2, 184, 20, 1675, 12383, 5407, 37, 6018, 19, 18316, 18, 21812, 8630, 106, 8820, 60, 800, 3726, 3726, 31, 22, 79, 568, 18316, 18, 21812, 8630, 106, 8820, 9, 31, 57, 21, 13, 1409, 4190, 1409, 19, 21, 487, 3401, 2478, 15, 19, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mount Android emulator images === I trying to analyse Android malware on an emulator with Android 2.1. I want to analyze the files permissons and fingerprints after the exectution of the suspicious app. I know, I can use the adb shell to get this information, but I think I can't trust that informatoins after the execution of e.g. a rootkit. I think the only way to prevent rootkits from hiding is by mounting the images directly or? I have the following files: ramdisk.img snapshots.img userdata-qemu.img cache.img system.img userdata.img zImage How can the be mounted/extracted on Ubuntu (read access is enough)? With unyaffs I can extract the system.img and userdata.img file. simg2img returns "bad magic" for all files. Thanks Alex
0
[ 2, 2149, 13005, 3579, 14868, 3502, 800, 3726, 3726, 31, 749, 20, 13, 21702, 13005, 2814, 5011, 27, 40, 3579, 14868, 29, 13005, 172, 9, 165, 9, 31, 259, 20, 16051, 14, 6488, 416, 7292, 4710, 17, 21564, 18, 75, 14, 1396, 62, 13105, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
goMap Clean and Reset === I can clean and / or completely reset goMap ?? I want to remove the points created with **$.goMap.createMarker** and **$.goMap.createPolyline**. thanks
0
[ 2, 162, 15022, 2745, 17, 23422, 800, 3726, 3726, 31, 92, 2745, 17, 13, 118, 54, 1524, 23422, 162, 15022, 13, 60, 60, 31, 259, 20, 4681, 14, 819, 679, 29, 13, 1409, 4403, 9, 839, 15022, 9, 6037, 1373, 4527, 106, 1409, 17, 13, 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, 0, 0, 0, 0, 0...
How to make Url helper work when on routed page? === I have a url which routes to a custom module. I have added this line in my Bootstrap.php $router->addRoute('forum-board', new Zend_Controller_Router_Route( 'forum-board', array('module' => 'admin', 'controller' => 'users', 'action' => 'forumdisplay') )); Routes are working fine! But, in views of forumdisplay when I call: <a href="<?= $this->url( array ( 'module' => 'admin', 'controller'=> 'users', 'action' => 'resetpass', 'userid'=>$userid)); ?>">Reset</a> it does not render URL. When I opened the same page as: http://zfProj12.local/admin/users/forumdisplay it rendered correct urls but, on routing them, it doesn't i.e. as http://zfProj12.local/forum-board Any fixes?
0
[ 2, 184, 20, 233, 287, 6362, 448, 106, 170, 76, 27, 858, 43, 2478, 60, 800, 3726, 3726, 31, 57, 21, 287, 6362, 56, 5050, 20, 21, 5816, 12613, 9, 31, 57, 905, 48, 293, 19, 51, 5894, 16514, 9, 26120, 5579, 20179, 139, 8, 1, 148...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 coressponds RGB values to its colour name? === Is there any possible method in java that allows the programmer to retrieve color name from RGB values. Ex : R:255, G:255, B: 0 as yellow. Thank You
0
[ 2, 184, 20, 2884, 18, 18, 17738, 18, 761, 11400, 4070, 20, 82, 4609, 204, 60, 800, 3726, 3726, 25, 80, 186, 938, 2109, 19, 8247, 30, 2965, 14, 17968, 20, 11917, 1665, 204, 37, 761, 11400, 4070, 9, 1396, 13, 45, 761, 45, 20038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0...
toggle between borders of a image and remove border of existing images with border === http://i.stack.imgur.com/XTfrE.png[][1] i want to select only one image now many images can be selected and on deselect of selected image it removes border of all the images function clickpick(item) { for ( var i = 5; i < document.images.length; i++) { document.images[i].onclick = function() { if (this.style.borderWidth == '5px') { $("#display-frame").find("*").css("border", "0"); } else { this.style.border = '5px solid blue'; } }; } } i want help on select and deselecting single images [1]: http://i.stack.imgur.com/XTfrE.png
0
[ 2, 20, 263, 4875, 128, 5878, 16, 21, 1961, 17, 4681, 1862, 16, 3149, 3502, 29, 1862, 800, 3726, 3726, 7775, 6903, 49, 9, 25325, 9, 1660, 11147, 9, 960, 118, 396, 38, 10185, 9, 306, 2723, 2558, 500, 2558, 165, 500, 31, 259, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pass ArrayList<Double> from one activity to another activity on android === I've been stored `ArrayList<Double>` on my bean class, I'ge the bean class on my main activity, How to pass the `ArrayList<Double>` ,from my main activity to another activity.?
0
[ 2, 1477, 7718, 5739, 1, 14368, 1, 37, 53, 2358, 20, 226, 2358, 27, 13005, 800, 3726, 3726, 31, 22, 195, 74, 8214, 13, 1, 8576, 93, 5739, 1, 14368, 1, 27, 51, 15322, 718, 15, 31, 22, 834, 14, 15322, 718, 27, 51, 407, 2358, 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...
manage module's options approach === I'm about to create let say a custom CMS with php and mysql. each page has a few zones. each zone can output modules. for example we have a news module and we already added news categories and single news items at module admin section. but here it begin: end user wants to get different output of this module. for example user wants to show news of "sport" category, or user wants to show top 5 last news, or user wants to sort news by something, or, or, or .... many other options that a module can take. my question is what is your solution to handle and manage these options. - do you suggest a module_option table for every module like news_options? - do you suggest a single table that holds every modules options? hope I could get what i mean ;) also let me know if db diagram is necessary.
0
[ 2, 4705, 12613, 22, 18, 6368, 2141, 800, 3726, 3726, 31, 22, 79, 88, 20, 1600, 408, 395, 21, 5816, 2390, 18, 29, 13, 26120, 17, 51, 18, 22402, 9, 206, 2478, 63, 21, 310, 11225, 9, 206, 2464, 92, 5196, 17113, 9, 26, 823, 95, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ignore uncommited change in Github gui for MAC? === I am using Github GUI for Mac. Now I've some changes in my local repository, but I want to ignore them and pull latest remote repository. I tried Repository/Pull, but got Git Error. "•error: Your local changes to the following files would be overwritten by merge: Classes/xxx.m Please, commit your changes or stash them before you can merge." I tried Repository/Synchronize, but got following error. "Sync Failed. Please commit all your changes before syncing." Any idea?
0
[ 2, 184, 20, 7174, 367, 960, 5130, 69, 753, 19, 13, 10404, 20926, 9457, 26, 1572, 60, 800, 3726, 3726, 31, 589, 568, 13, 10404, 20926, 9457, 26, 1572, 9, 130, 31, 22, 195, 109, 1693, 19, 51, 375, 24869, 15, 47, 31, 259, 20, 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...
Multiple Django sites in Apache and DJANGO_SETTINGS_MODULE === I'm currently trying to host 2 isolated Django web applications in one Apache instance. They work, however at random times a 500 HTTP error is raised. Apache's logfile reveals that sometimes application A tries to load settings from application B, which means that the environment variable DJANGO_SETTINGS_MODULE gets messed up between both applications. I tried to run both sites embedded and in daemon mode, no success. Any ideas?
0
[ 2, 1886, 3857, 14541, 3259, 19, 17140, 17, 3857, 14541, 1, 19831, 18, 1, 19673, 62, 800, 3726, 3726, 31, 22, 79, 871, 749, 20, 2015, 172, 6331, 3857, 14541, 2741, 3767, 19, 53, 17140, 4851, 9, 59, 170, 15, 207, 35, 5477, 436, 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...
Opening application via ssh on iOS devices === Is this possible. I have seen ways to open applications on linux and Mac devices but cant seem to get the same idea working for iOS devices. I have jailbroken my device and have ssh access and would like to open an app without having to attend the device? This idea but for iOS and to open a Kiosk app or Safari. http://stackoverflow.com/questions/4230300/opening-netbeans-via-ssh
0
[ 2, 1214, 3010, 1197, 13, 18, 1635, 27, 13, 7760, 4690, 800, 3726, 3726, 25, 48, 938, 9, 31, 57, 541, 2847, 20, 368, 3767, 27, 13024, 17, 1572, 4690, 47, 2973, 2260, 20, 164, 14, 205, 882, 638, 26, 13, 7760, 4690, 9, 31, 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...
Simple sound play with button iPhone SDK === I follow a tutorial for creating a very simply sound playing after clicking a button as in this link: http://www.mybringback.com/tutorial-series/1126/xcode-4-tutorial-ios-ipad-iphone-20-playing-sound-with-button/ However, the Build Results gives errors: Build soundTest of project soundTest with configuration Debug Ld build/Debug-iphonesimulator/soundTest.app/soundTest normal i386 cd /Users/joegeneric/Documents/soundTest setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/joegeneric/Documents/soundTest/build/Debug-iphonesimulator -F/Users/joegeneric/Documents/soundTest/build/Debug-iphonesimulator -F/Users/joegeneric/Documents/soundTest -filelist /Users/joegeneric/Documents/soundTest/build/soundTest.build/Debug-iphonesimulator/soundTest.build/Objects-normal/i386/soundTest.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -framework AVFoundation -framework AudioToolbox -o /Users/joegeneric/Documents/soundTest/build/Debug-iphonesimulator/soundTest.app/soundTest ld: warning: in /Users/joegeneric/Documents/soundTest/AVFoundation.framework/AVFoundation, missing required architecture i386 in file ld: warning: in /Users/joegeneric/Documents/soundTest/AudioToolbox.framework/AudioToolbox, missing required architecture i386 in file Undefined symbols: "_AudioServicesPlaySystemSound", referenced from: -[soundTestViewController playSound] in soundTestViewController.o "_AudioServicesCreateSystemSoundID", referenced from: -[soundTestViewController playSound] in soundTestViewController.o ld: symbol(s) not found
0
[ 2, 1935, 646, 418, 29, 5167, 21024, 13, 18, 43, 197, 800, 3726, 3726, 31, 1740, 21, 29724, 26, 2936, 21, 253, 1659, 646, 791, 75, 25590, 21, 5167, 28, 19, 48, 3508, 45, 7775, 6903, 6483, 9, 915, 16883, 1958, 9, 960, 118, 2473, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
ProxyEnable registry key wont change...? === I try to use c# program to change proxy server address. [DllImport("wininet.dll")] public static extern bool InternetSetOption(IntPtr hInternet, int dwOption, IntPtr lpBuffer, int dwBufferLength); public const int INTERNET_OPTION_SETTINGS_CHANGED = 39; public const int INTERNET_OPTION_REFRESH = 37; bool settingsReturn, refreshReturn; void SetProxy() { RegistryKey RegKey = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings", true); RegKey.SetValue("ProxyServer", "192.168.1.1:8082"); RegKey.SetValue("ProxyEnable", 1); settingsReturn = InternetSetOption(IntPtr.Zero, INTERNET_OPTION_SETTINGS_CHANGED, IntPtr.Zero, 0); refreshReturn = InternetSetOption(IntPtr.Zero, INTERNET_OPTION_REFRESH, IntPtr.Zero, 0); } First thing is I cant find ProxyServer key in registry and when I created it and still it doesnt solve the problem. And when I try to enter manually in my pc and I found that still proxy server is not used by internet explorer. And it shows my own ip in whatismyip.com I dont understand why it is happening even I tried to reinstall the os.. problem still exists So is there any solution? Thanks
0
[ 2, 27188, 219, 579, 18269, 1246, 7290, 753, 9, 9, 9, 60, 800, 3726, 3726, 31, 1131, 20, 275, 272, 5910, 625, 20, 753, 27188, 8128, 3218, 9, 636, 8643, 8585, 1993, 5, 7, 4181, 1149, 38, 9, 43, 211, 7, 6, 500, 317, 12038, 1396, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
100% height for a absoulutely positioned child div === I'm making a navigation where the children will be showed in a different box, much like http://www.boffi.com/EN/Collections/bathrooms/b14.aspx . I managed to separate the child using absolute positioning, but can't get the child elements background to have a 100% height. it's a list element, so if I put height: 100% , the bottom two main navigation elements dissapears. Please help! Here's my html: <ul id="mainmenu"> <li id="liHome" class="active"> <a href="#item-x1y1" class="panel" rel="none" id="Home">Home</a> </li> <li id="liServices" class=" "> <a href="#item-x1y2" class="panel" rel="SubMenuY2" id="Services">Services</a> <div class="child"> <ul style="" id="SubMenuY2" class="submenu"> <li><a href="#">Sub-item 1</a></li> <li><a href="#">Sub-item 2</a></li> </ul> </div> </li> <li id="liEnvironment"> <a href="#item-x1y3" class="panel" rel="none" id="Environment">Environment</a> </li> <li id="liCareer"> <a href="#item-x1y4" class="panel" rel="none" id="Career">Career</a> </li> <li id="liContact"> <a href="#item-x1y5" class="panel" rel="none" id="Contact">Contact</a> </li> </ul> and the css body, html{ height:100%; } #mainmenu{ background:black; color: white; width:130px; position:relative; top:0; height:100% } #mainmenu li a { color:white; } ul.submenu{ position:absolute; background:blue; width:130px; } div.child{ position:relative; margin-left:130px; } Thanks a lot for the help.
0
[ 2, 12849, 2947, 26, 21, 12178, 2655, 14047, 102, 12125, 850, 13, 12916, 800, 3726, 3726, 31, 22, 79, 544, 21, 8368, 113, 14, 391, 129, 44, 1908, 19, 21, 421, 1649, 15, 212, 101, 7775, 6903, 6483, 9, 220, 1299, 49, 9, 960, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 represent a collection in a POJO to be rendered as a select in Grails view === I have a grails app using persistence annotated POJOs for domain model. Grails generates controllers and views from them as expected, but one class is a puzzle for me. I need to represent a collection of strings ( at the moment an ArrayList of strings ) in that is grails-view 'friendly' and will render as a drop-down. The data in ArrayList is 'fairly' constant so I thought enum could be used for it, but I'm just not sure. The class in question: /** * available categories: * Airplane * Rotorcraft * Glider * Lighter than air * Powered lift * Powered parachute * Weight-shift-control */ @Entity public class AircraftCategory { public AircraftCategory(){ this.aircraftCategories.add("Airplane"); this.aircraftCategories.add("Rotorcraft"); this.aircraftCategories.add("Glider"); this.aircraftCategories.add("Lighter Than Air"); this.aircraftCategories.add("Powered Lift"); this.aircraftCategories.add("Powered Parachute"); this.aircraftCategories.add("Weight Shift Control"); } long id; private long version; private ArrayList <String> aircraftCategories = new ArrayList<String>(); public ArrayList <String> getAircraftCategories() { return aircraftCategories; } public void setAircraftCategories(ArrayList <String> aircraftCategories) { this.aircraftCategories = aircraftCategories; } @Id @GeneratedValue public long getId() { return id; } public void setId(long id) { this.id = id; } public long getVersion() { return version; } public void setVersion(long version) { this.version = version; } }
0
[ 2, 184, 20, 3501, 21, 1206, 19, 21, 2353, 1636, 20, 44, 10877, 28, 21, 5407, 19, 489, 7301, 18, 1418, 800, 3726, 3726, 31, 57, 21, 489, 7301, 18, 4865, 568, 28584, 40, 1270, 1669, 2353, 1636, 18, 26, 4603, 1061, 9, 489, 7301, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Testing Android inapp subscription: You already own this subscription === I am testing Android inapp subscription with a test account, after I entered a real credit card to buy, the subscription is ok, but I cannot find the token in the json response. So in the developer console, I cancelled the order, when I try to re-subscribe again, it now show me the alert "You already own this subscription". When I click the "Detail" in the box, it opened the Play Store app, but showing "Item not found" Anyone experienced this error before? Thanks.
0
[ 2, 4431, 13005, 19, 7753, 14213, 45, 42, 614, 258, 48, 14213, 800, 3726, 3726, 31, 589, 4431, 13005, 19, 7753, 14213, 29, 21, 1289, 2176, 15, 75, 31, 1297, 21, 683, 3251, 2056, 20, 3034, 15, 14, 14213, 25, 5854, 15, 47, 31, 1967...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 change the List view theme at runtime === Can anyone give me some idea or code if possible regarding how to change the Theme of Listview ( like the back ground color, text color, icons etc) by clicking a button for example at runtime? I saw an example here <http://stackoverflow.com/questions/3241729/android-dynamically-change-style-at-runtime>. I want to know if something similar is possible for List Views? Thank You.
0
[ 2, 13005, 753, 14, 968, 1418, 3184, 35, 485, 891, 800, 3726, 3726, 92, 1276, 590, 55, 109, 882, 54, 1797, 100, 938, 3467, 184, 20, 753, 14, 3184, 16, 968, 4725, 13, 5, 101, 14, 97, 666, 1665, 15, 1854, 1665, 15, 9801, 18, 2722...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Django Multi Site CrossOver === Hello i've a little problem with multi sites django architecture. Inded, i've two (or more) django project : A and B And sometime when i try to access A, i've a 500 server error and in the apache2/error.log ImportError: Could not import settings 'B.settings' It's like projects are interfering. Somebody have an solution ? Thanks a lot.
0
[ 2, 3857, 14541, 1889, 689, 17602, 800, 3726, 3726, 10975, 31, 22, 195, 21, 265, 1448, 29, 1889, 3259, 3857, 14541, 2607, 9, 19, 7424, 15, 31, 22, 195, 81, 13, 5, 248, 91, 6, 3857, 14541, 669, 13, 45, 21, 17, 334, 17, 8530, 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...
FFTW for Windows/Eclipse/Android === I am developing a .cpp file in the JNI folder for an Android project integration and I need to use the FFTW library to manipulate the spectrum of a signal. I can't find any good documentation about compiling/installing these kind of libraries in Eclipse (I am using Cygwin to compile files); my question is if any one knows any reliable tutorial or how to allocate files from the prebuilt version of the FFTW. I am using Windows 7. Thanks in advance.
0
[ 2, 13, 2460, 38, 499, 26, 1936, 118, 3319, 6013, 870, 118, 290, 18524, 800, 3726, 3726, 31, 589, 3561, 21, 13, 9, 150, 3421, 3893, 19, 14, 487, 889, 19294, 26, 40, 13005, 669, 8078, 17, 31, 376, 20, 275, 14, 13, 2460, 38, 499,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Windows Phone 7 XNA crash no exception thrown === I have a simple game on WP7 that works fine in the debugger and emulator. If I run it on the phone, unplugged, it will crash at around the same point each time, usually 20-30 seconds into running. I have try catch statements around everything now, writing exceptions to isolated storage. No exception is thrown when the app crashes, it just closes. The only thing I've managed to ascertain is that it is somehow tied to my particle system. Removing particle generation code will stop it crashing, therefore I am assuming it must be some kind of memory issue with creating lots of new particle instances. Running the visual studio analyzer shows that memory usage is fine, no major leaks, program uses about 20MB and stays steady. I have no idea what else to try, what would cause an app to crash without throwing an exception?
1
[ 2, 1936, 1132, 453, 993, 325, 4597, 90, 5391, 6027, 800, 3726, 3726, 31, 57, 21, 1935, 250, 27, 13, 13790, 465, 30, 693, 1123, 19, 14, 121, 2345, 11356, 17, 3579, 14868, 9, 100, 31, 485, 32, 27, 14, 1132, 15, 367, 306, 27581, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Mysql insert succesful but not visible === I have a database with a table called games. People can send invites to each other in an app and then a row is inserted in this table. Recently it stopped working. When I insert a new row, php (and phpmyadmin when I insert it manually) says that the update was succesful (the query function returned true), but I can't find the freshly inserted rows in the table :( I really don't know what could possibly cause this. I've already checked the permissions and restarted the server but that didn't solve the problem. Anyone who can help me?
0
[ 2, 51, 18, 22402, 14692, 21792, 5052, 1566, 47, 52, 4560, 800, 3726, 3726, 31, 57, 21, 6018, 29, 21, 859, 227, 466, 9, 148, 92, 2660, 10275, 18, 20, 206, 89, 19, 40, 4865, 17, 94, 21, 3131, 25, 14215, 19, 48, 859, 9, 1989, 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...
chosing a correct client technology for a new project === I need to develop a new tool, shall we call it box editor: a user can add/remove boxes and add/remove connections between boxes, the user can also edit interior of boxes. Box editor should be something like editor [here][1] (see video). The thing I'm worrying about is to chose correct technologies. Here are my questions. 1. Do I understand correctly that for animation of objects (for my box editor) Flex is not an option? Is Flash (I mean AS3 without mxml) more convenient tool for my purposes? 2. HTML5 is geting very popular now. Still, I'm not very strong in HTML5. Will it be hard to write something like provided example in HTML5? Is HTML5 a better choise then Flash for that? Anyway, it will be nice to see an example of doing something like box editor in example with HTML5. Please note that future app do not need to be launched on mobile devices. So 'there's no Flash on iPad' is not very strong argument here! Thank you in advance! And please dont be shy, any thoughts are appreciated! [1]: http://didreseller.com/
0
[ 2, 4430, 18, 68, 21, 4456, 6819, 1099, 26, 21, 78, 669, 800, 3726, 3726, 31, 376, 20, 2803, 21, 78, 5607, 15, 3004, 95, 645, 32, 1649, 1835, 45, 21, 4155, 92, 3547, 118, 99, 16598, 8120, 17, 3547, 118, 99, 16598, 6760, 128, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Runtime-Attributes Size, Point, Rect === I'm using "User Defined Runtime Attributes" for my custom classes in IB. I catch the values in: -(void) setValue:(id)value forKey:(NSString *)key How do I convert values for Size, Point and Rect? NSLog(@"value %@", value) for Size writes: "value NSSize: {10, 10}" But isn't NSSize only a datatype for OSX? Thanks!
0
[ 2, 8406, 485, 891, 8, 721, 14755, 18, 1072, 15, 454, 15, 6042, 38, 800, 3726, 3726, 31, 22, 79, 568, 13, 7, 16704, 2811, 485, 891, 13422, 7, 26, 51, 5816, 2684, 19, 13, 4598, 9, 31, 2949, 14, 4070, 19, 45, 13, 8, 5, 2625, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Logo not appearing on some pages in ASP.net webforms title === ill try my best to explain this.. in the site.master I have added a logo to the title like so. <div class="title"> <img alt="" class="style1" src="Images/logo.png" /> </div> the logo shows up fine in all pages accept when the url is part of the account. for example.. "http://localhost:54341/Sitename/mypage.aspx" (shows fine) however "http://localhost:54341/Sitename/Account/Register.aspx" (doesnt show) im guessing its because it is in a parent folder (the images file). Is there a better way? EDIT: Images folder is at the top level thanks in advance
0
[ 2, 6449, 52, 4870, 27, 109, 4434, 19, 28, 306, 9, 2328, 2741, 4190, 18, 581, 800, 3726, 3726, 1838, 1131, 51, 246, 20, 3271, 48, 9, 9, 19, 14, 689, 9, 4594, 31, 57, 905, 21, 6449, 20, 14, 581, 101, 86, 9, 13, 1, 12916, 718...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jquery Ajax: Preload all pages with content including images === i am working on a project which have many pages and i am getting all pages content on index page through Ajax. But problem is there images are taking more time to load.. Is any way to preload all images from all pages..
1
[ 2, 487, 8190, 93, 20624, 45, 782, 8294, 65, 4434, 29, 2331, 215, 3502, 800, 3726, 3726, 31, 589, 638, 27, 21, 669, 56, 57, 151, 4434, 17, 31, 589, 1017, 65, 4434, 2331, 27, 4348, 2478, 120, 20624, 9, 47, 1448, 25, 80, 3502, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
User login/remember me/ban system === I currently have it that when a user logs in their username and userid are saved in a cookie. As this isn't the most secure method i now plan on changing the method; When the user logs in, a unique token is saved in the cookie. The username, userid, banned boolean and unique token are stored a session. The token in the cookie has to match the token in the session to be logged in. I've thought about storing the token in the database? Alot of times in my code i quickly require the username and userid, so storing in a session is the most logical idea to me instead of always querying the database. Anyway, is my method appropriate?; if not, what is a proven method?
0
[ 2, 4155, 6738, 108, 118, 18342, 55, 118, 4059, 329, 800, 3726, 3726, 31, 871, 57, 32, 30, 76, 21, 4155, 18893, 19, 66, 4155, 7259, 17, 275, 5175, 50, 4377, 19, 21, 19980, 9, 28, 48, 2532, 22, 38, 14, 127, 4315, 2109, 31, 130, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
visual studio highlighting space / horizontal line between Parentheses === I would like to show a horizontal line, next to the linenumbers, in my visual studio 2010 between parentheses when my courser is between those 2 parantheses. I alread had that option enabled, but somehow its gone.
0
[ 2, 3458, 1120, 23102, 726, 13, 118, 10095, 293, 128, 28273, 800, 3726, 3726, 31, 83, 101, 20, 298, 21, 10095, 293, 15, 328, 20, 14, 293, 16299, 18, 15, 19, 51, 3458, 1120, 498, 128, 28273, 76, 51, 674, 139, 25, 128, 273, 172, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Multiple seek bar === I have implemented multiple seek bar in android like @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); sb1=(SeekBar) findViewById(R.id.seekBar1); sb2=(SeekBar) findViewById(R.id.seekBar2); sb3=(SeekBar) findViewById(R.id.seekBar3); tv1=(TextView) findViewById(R.id.textView1); tv2=(TextView) findViewById(R.id.textView2); tv3=(TextView) findViewById(R.id.textView3); sb1.setOnSeekBarChangeListener(this); sb2.setOnSeekBarChangeListener(this); sb3.setOnSeekBarChangeListener(this); } @Override public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) { switch (arg0.getId()) { case R.id.seekBar1: tv1.setText(arg1); break; case R.id.seekBar2: tv2.setText(arg1); break; case R.id.seekBar3: tv3.setText(arg1); break; } } @Override public void onStartTrackingTouch(SeekBar arg0) { // TODO Auto-generated method stub } @Override public void onStopTrackingTouch(SeekBar arg0) { // TODO Auto-generated method stub } but whenever I ran this app, it give the following errors: > FATAL EXCEPTION: main 07-18 15:41:13.200: E/AndroidRuntime(596): android.content.res.Resources$NotFoundException:String resource ID #0x1 07-18 15:41:13.200: E/AndroidRuntime(596): at android.content.res.Resources.getText(Resources.java:201) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.TextView.setText(TextView.java:2817) 07-18 15:41:13.200: E/AndroidRuntime(596): at com.example.allocationseekbar.MainActivity.onProgressChanged(MainActivity.java:42) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.SeekBar.onProgressRefresh(SeekBar.java:89) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.ProgressBar.doRefreshProgress(ProgressBar.java:506) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.ProgressBar.refreshProgress(ProgressBar.java:515) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.ProgressBar.setProgress(ProgressBar.java:564) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.AbsSeekBar.trackTouchEvent(AbsSeekBar.java:337) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.widget.AbsSeekBar.onTouchEvent(AbsSeekBar.java:292) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.view.View.dispatchTouchEvent(View.java:3766) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863) 07-18 15:41:13.200: E/AndroidRuntime(596): at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1671) 07-18 15:41:13.200: E/AndroidRuntime(596): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1107) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.app.Activity.dispatchTouchEvent(Activity.java:2086) 07-18 15:41:13.200: E/AndroidRuntime(596): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1655) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.view.ViewRoot.handleMessage(ViewRoot.java:1785) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.os.Handler.dispatchMessage(Handler.java:99) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.os.Looper.loop(Looper.java:123) 07-18 15:41:13.200: E/AndroidRuntime(596): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-18 15:41:13.200: E/AndroidRuntime(596): at java.lang.reflect.Method.invokeNative(Native Method) 07-18 15:41:13.200: E/AndroidRuntime(596): at java.lang.reflect.Method.invoke(Method.java:521) 07-18 15:41:13.200: E/AndroidRuntime(596): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 07-18 15:41:13.200: E/AndroidRuntime(596): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-18 15:41:13.200: E/AndroidRuntime(596): at dalvik.system.NativeStart.main(Native Method) I don't know why this is happening. Please help me. Thanxs in advance
0
[ 2, 1886, 5048, 748, 800, 3726, 3726, 31, 57, 6807, 1886, 5048, 748, 19, 13005, 101, 13, 1, 2549, 11891, 317, 11364, 27, 6037, 1373, 5, 9930, 413, 4377, 108, 384, 2416, 3859, 6, 13, 1, 1026, 9, 218, 6037, 1373, 5, 19863, 3653, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Recurring Events Plugin for CakePHP/PHP and MySQL database schema === # Introduction # Hello, I have spent a good bit of time researching to find the appropriate solution for recurring events on an upcoming project. I have worked with events and recurring events before and I have never found or developed a solution I have liked. So I am thinking of building a Plugin for CakePHP to handle recurrence. I have two use cases that I would like to use this plugin/classes for: 1. Recurring Events - Calendar or List View 2. Recurring Payments - Sometimes I don't want to use the gateways recurring payments or I want to do notifications of upcoming payments, etc I am sure there are many other use cases but those are the two I encounter the most frequently, actually the database schema and basic source code should be similar if not completely reusable between the various use cases, anyways. So what I need help with is deciding the appropriate database schema to use for recurring events. I have two ideas and I think each have their pros and cons, but need to settle on the best overall approach for flexibility, maintainability & performance. So in either solution I need to be able to add, edit, delete and list the events. I would like to be able to edit a recurring event with the option to edit or delete all days the event occurs or a specific day(s). I would like to have recurrence rules/options similar google calendar. Options like daily, weekly, monthy, yearly, etc. # First Idea # One table called events to store the recurring events. In this approach I would need to parse the recurrence option and essentially loop and create an individaul event based on the recurrence option. So for example if I want to create an event called "Weekly Meeting" with start date of Jan 1st 2012 and end date of Dec 31st 2012 that occurs every Monday, I would create 52 records in the events table. I think this approach would be harder to manage editing and deleting and would take longer to save the event but listing the data should be simple as just querying a date range. It might be a nightmare if you have to change the recurrence for that event. CREATE TABLE `events` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) unsigned NOT NULL, `start_date` datetime NOT NULL, `end_date` datetime NOT NULL, `title` varchar(150) CHARACTER SET latin1 NOT NULL, `description` text CHARACTER SET latin1, `created` datetime NOT NULL, `modified` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 # Second Idea # Have multiple tables to handle the recurrence. This would eliminate the editing and deleting issues and saving should be faster too, but I would think querying the data to get the events would be complex (thinking the mysql queries will be complex) and slower. I should mention that this system is going to be reading far more than it is writing events. But I want a general solution that can be reused. I can also use caching to improve reading so it is not a huge concern. Using the example from above instead of 52 entries we would have only one in the events table. Not sure about the exact schema any ideas? Thanks in advance for your help and ideas! Want to get a sense of how others handle recurring events.
0
[ 2, 11344, 963, 10922, 108, 26, 8390, 26120, 118, 26120, 17, 51, 18, 22402, 6018, 23874, 800, 3726, 3726, 6926, 3445, 6926, 10975, 15, 31, 57, 1111, 21, 254, 1142, 16, 85, 527, 68, 20, 477, 14, 4593, 4295, 26, 11344, 963, 27, 40, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Should I be using [autorelease]? === I'm needing to quickly and simply parse an XML file in my app. The best solution for me seems to be something along the lines of an XML-to-NSDictionary converter which I can then dig through easier. I chose to use this small class: http://troybrant.net/blog/2010/09/simple-xml-to-nsdictionary-converter/ However I'm confused about the returned `NSDictionary*` and its state in memory. The class method `dictionaryForXMLData` allocs and inits the class. `objectWithData` then goes off and does the heavy lifting returning the `NSDictionary` object which gets returned to the caller. The confusing part for me is `[reader release]` before the return (I understand this must happen because of the way `reader` was created). My understanding of `NSDictionary`is that all the objects will also be sent the `release` message which means the object that we're returning shouldn't have a retain count. Note that the object is created with a convenience method and only gets a retain count when it is added to the stack. Should the return statement not be `return [rootDictionary autorelease]`. The problem I see with that is that there is no telling when `rootDictionary` will be released and depending on the size of the XML file it could sit there clogging memory? Or do I have it all wrong?
0
[ 2, 378, 31, 44, 568, 636, 18042, 15202, 500, 60, 800, 3726, 3726, 31, 22, 79, 12210, 20, 976, 17, 1659, 2017, 870, 40, 23504, 3893, 19, 51, 4865, 9, 14, 246, 4295, 26, 55, 2206, 20, 44, 301, 303, 14, 1560, 16, 40, 23504, 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...
.innerHTML issues on displaying table contents on Internet Explorer 9 === Yes, yet another topic on problems regarding using the .innerHTML property with tables in IE (version 9, in my case, but I believe it will be the same with previous ones). After searching here and Google I found several topics regarding problems with innerHTML and IE, made some changes to my code but it still won't work in IE. As many people, I tested my code firstly with Chrome and Firefox, and it is working fine. Then I tested it on IE, the the table's contents aren't shown. I've learned through my searchings that JQuery's .html() (http://api.jquery.com/html/) may be a solution, but all my attempts have failed till now. Basically, what I am trying to do is to randomize the appearance of the rows of a table, and the problem begins when trying to show its contents. My code is here -> http://jsfiddle.net/jaff/YQGYp/ If someone can help me, I'll be truly grateful! Thanks, João
0
[ 2, 13, 9, 18005, 15895, 1549, 27, 17418, 859, 8478, 27, 2620, 8520, 561, 800, 3726, 3726, 1643, 15, 768, 226, 8303, 27, 1716, 3467, 568, 14, 13, 9, 18005, 15895, 1354, 29, 7484, 19, 13, 660, 13, 5, 10898, 561, 15, 19, 51, 610, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Update dictionary in xml from csv file in python === Okay, so I have the following .csv file which contains: AAC=1|1|1,AAK=1|2|8 I want to write that file to the following .xml file: <html> <A> <B> <C> <D> <TYPE> <NUMBER>7297</NUMBER> <DATA /> </TYPE> <TYPE> <NUMBER>7721</NUMBER> <DATA>AAC=7|3|8,ABC=1|3|5,DAK=5|1|3,FFK=33</DATA> </TYPE> </D> </C> </B> </A> </html> I want to specifically write it to the <DATA> part under the <NUMBER>7721</NUMBER> so the updated .xml file would looks like: <html> <A> <B> <C> <D> <TYPE> <NUMBER>7297</NUMBER> <DATA /> </TYPE> <TYPE> <NUMBER>7721</NUMBER> <DATA>AAC=1|1|1,AAK=1|2|8,ABC=1|3|5,DAK=5|1|3,FFK=33</DATA> </TYPE> </D> </C> </B> </A> </html> As you can see if the key is already exist on both the .csv and the .xml then it will only update the value on the .xml file, but if both the key and value on the .csv file does not exist on the .xml file then it will add both those key and value to the .xml file. My code so far: element = etree.fromstring(xmlData) # Find all the TYPE with NUMBER=7721 and DATA optype_nodes = element.xpath("//TYPE[NUMBER='7721' and DATA]") for t in optype_nodes: d = t.find('DATA') d.text = 'csvdata' print etree.tostring(element) Just ended up importing all the .csv content and replace the .xml content completely. Thank you!
0
[ 2, 11100, 9186, 19, 23504, 37, 272, 18, 710, 3893, 19, 20059, 800, 3726, 3726, 1705, 15, 86, 31, 57, 14, 249, 13, 9, 6824, 710, 3893, 56, 1588, 45, 21, 1738, 3726, 165, 1, 165, 1, 165, 15, 58, 1378, 3726, 165, 1, 135, 1, 457...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Undesired drag and drop behaviour with JTable === I am attempting to add drag-and-drop functionality to my application, whereby the originator of the drag event is a `JTable`. I am currently using the built-in drag support `JTable` offers by calling [`setDragEnabled(true)`][1]. The problem I'm facing is that in order to commence a drag operation, one has to first click on a row of the table, and then release the mouse; it is only the **second** mouse press (and all subsequent mouse presses) that generate drag events. This occurs even if the `JTable` loses focus - i.e. Once the first left-click operation has been performed, drag-and-drop works perfectly **until I swap in a new `TableModel`**. When new model has been installed one needs to perform a left-click on the table before drags start working again. Reading the API documentation for `setDragEnabled(boolean)` the implication is that this is the L&F's responsibility and hence there may not be anything I can do to solve this. Does anyone have any suggestions? I am using the Alloy L&F but would be reluctant to change it. [1]: http://docs.oracle.com/javase/6/docs/api/javax/swing/JTable.html#setDragEnabled%28boolean%29
0
[ 2, 13, 12239, 9982, 69, 5501, 17, 2804, 7727, 29, 487, 5924, 800, 3726, 3726, 31, 589, 6314, 20, 3547, 5501, 8, 290, 8, 12361, 18548, 20, 51, 3010, 15, 15630, 14, 2986, 3457, 16, 14, 5501, 807, 25, 21, 13, 1, 728, 5924, 1, 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...
Android connect to servlets that is on cloud server === I have my server and servlets set up on openshift redhat server. I have an android application that needs to use these servlets. Normally on localhost the ipaddress in android would look like this `http://10.0.2.2:8080/SRD/` but now I want it to connect to cloud server so I tried: `http://xxx-caffeinepowered.rhcloud.com:8080/SRD/` but that's not working. What should the address be?
0
[ 2, 13005, 6379, 20, 13, 10321, 11045, 30, 25, 27, 4005, 8128, 800, 3726, 3726, 31, 57, 51, 8128, 17, 13, 10321, 11045, 309, 71, 27, 368, 14157, 402, 6775, 8128, 9, 31, 57, 40, 13005, 3010, 30, 2274, 20, 275, 158, 13, 10321, 1104...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
JSTL Code Convert to Java Class or how can I implement same in Separate class === I have below JSTL Code, <sql:setDataSource dataSource="jdbc/xxx"/> <sql:query var="ab" scope="application" maxRows="100"> Select Distinct DATE(timestamp) as DATE from tableA ORDER BY DATE DESC LIMIT 100; </sql:query> <c:forEach var="row" items="${ab.rows}"> <h1><c:out value="${row.DATE}"/></h1> <sql:query var="abc" scope="application" maxRows="100"> Select title from tableA Where DATE(timestamp) = "<c:out value="${row.DATE}"/>"; </sql:query> <c:forEach var="row" items="${abc.rows}"> <c:out value="${row.title}"/><br><br> </c:forEach> </c:forEach> How do I implement the same requirement as a java class.Here is my requirement which this JSTL Code meets http://stackoverflow.com/questions/11484680/display-data-based-on-date
0
[ 2, 487, 18, 7786, 1797, 8406, 20, 8247, 718, 54, 184, 92, 31, 8713, 205, 19, 1725, 718, 800, 3726, 3726, 31, 57, 1021, 487, 18, 7786, 1797, 15, 13, 1, 18, 22402, 45, 3554, 18768, 12097, 1054, 12097, 3726, 7, 728, 43, 7229, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 PhoneGap and CSS translate3d === I'm trying to apply -webkit-transform: translate3d(0,0,0) to an image in an Android PhoneGap app. I'm using iScroll4 for pinch-zoom on the image. The same exact CSS works great on iOS, but it is clear that the Android webview is not applying this to the image correctly (the image remains blocky and does not scale well at all). The strange thing is that if I open the same file in the Android browser (NOT in PhoneGap) it works fine. This happens with Android 2 and 4. Any ideas?
0
[ 2, 13005, 1132, 1136, 306, 17, 272, 18, 18, 20628, 240, 43, 800, 3726, 3726, 31, 22, 79, 749, 20, 5645, 13, 8, 14113, 13703, 8, 7028, 4190, 45, 20628, 240, 43, 5, 387, 15, 387, 15, 387, 6, 20, 40, 1961, 19, 40, 13005, 1132, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
(automake) How to generate a file for inclusion into makefile? === My `Makefile.am` includes a file (with various defined variables), for example: include make.config ... The problem is that this file is in turn generated by one tool (i.e. `config.generator.sh`) based on some input file (i.e. `input.dat`). The straightforward and **wrong** idea would be to add a rule to generate `make.config`: make.config : input.file config.generator.sh input.file > make.config include make.config ... Apparently, `make.config` is included before any rules are executed. It fails. So, I had another idea which uses recursive build: top\Makefile.am top\sub\Makefile.am In that case top-level `top\Makefile.am` generates the required `make.config`. Then it builds sub-directories using `SUBDIRS` variable recursively (note that the order is forced to build top-level first instead of sub-levels by specifying `.`): #################################### # top\Makefile.am SUBDIRS = . sub sub\make.config : input.file config.generator.sh input.file ... ##################################### # top\sub\Makefile.am include make.config ... The problem persists because rules are executed only after all files are included and processed to generate the ultimate `makefile` - `automake` complains immediately in this case: automake: cannot open < make.config: No such file or directory **Is there a way in Automake/Autotools to generate such included files before generating makefiles?** There is probably a way to simply run arbitrary commands before any makefile generation (i.e. [`AC_CONFIG_COMMANDS*`][1]). But the question is more complicated because the `config.generator.sh` is supposed to use executables which are generated during the same build process (so there is a dependency chain which logically has to be managed by makefiles of the same project). As it looks like a "chicken and egg" problem, I guess that it may require a split into recursive Autoconf directories and use of [`AC_CONFIG_SUBDIRS`][2]: top\configure.ac top\sub\configure.ac **Is there an expert who resolved similar problem in the way designed by Autotools?** [1]: http://www.gnu.org/software/autoconf/manual/autoconf-2.67/html_node/Configuration-Commands.html [2]: http://www.gnu.org/software/automake/manual/html_node/Subpackages.html
0
[ 2, 13, 5, 18042, 11115, 6, 184, 20, 7920, 21, 3893, 26, 10660, 77, 233, 16877, 60, 800, 3726, 3726, 51, 13, 1, 11115, 16877, 9, 765, 1, 1103, 21, 3893, 13, 5, 1410, 617, 2811, 12157, 6, 15, 26, 823, 45, 468, 233, 9, 14093, 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...
Check to see if a folder has unsynced "Offline" Files (Windows Offline Files Feature) === I am running into a problems with a client using the Windows Offline Files feature. We are seeing cases where the offline files are not fully synced and our application errors when trying to read or write to those files. Is there a way to check the status of the windows offline file sync? It would be nice if my application could check the folder (we work with numerous files in one folder) to see what the status is. That way if the folder is not fully accessible we can give the user a specific message about syncing up front instead of a random access denied message later. I did find the [Offline Files API Reference][1], but I can't file anyone actually using it. [1]: http://msdn.microsoft.com/en-us/library/windows/desktop/bb530660%28v=vs.85%29.aspx
0
[ 2, 2631, 20, 196, 100, 21, 19294, 63, 367, 9507, 11014, 13, 7, 1299, 1143, 7, 6488, 13, 5, 27508, 18, 168, 1143, 6488, 1580, 6, 800, 3726, 3726, 31, 589, 946, 77, 21, 1716, 29, 21, 6819, 568, 14, 1936, 168, 1143, 6488, 1580, 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...
using xpath with namespace from a java class === I am trying to parse an xml document with namespace using XPATH. I have read how it is supposed to be done. I have implemented NamespaceContext as well. But, I still am not getting the values. I think I am missing something simple. My xml input is <?xml version="1.0" encoding="UTF-8"?> <ns1:customer xmlns:ns1="http://test/ns1"> <ns1:name>john</ns1:name> </ns1:customer> My Main file is TestXMLPath public static void main(String[] args) throws Exception { String myInputXML = "src/testxmlpath/input-with-namespace.xml"; DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder(); String expression ="/ns1:customer/ns1:name"; Document document = db.parse(new File(myInputXML)) ; XPath xpath = XPathFactory.newInstance().newXPath(); xpath.setNamespaceContext(new SimpleNamespaceContextImpl()); String value = xpath.evaluate(expression,document); System.out.println("value" + value); } my NamespaceContext implementation is public class SimpleNamespaceContextImpl implements NamespaceContext { @Override public String getNamespaceURI(String prefix) { System.out.println("getNameSpace for prefix "+prefix); if (prefix == null) { throw new NullPointerException("Null prefix"); } else if ("ns1".equals(prefix)) { return "http://test/ns1"; } else if ("xml".equals(prefix)) { return XMLConstants.XML_NS_URI; } else { return XMLConstants.XML_NS_URI; } } @Override public String getPrefix(String namespaceURI) { return "ns1"; } @Override public Iterator getPrefixes(String namespaceURI) { return null; } } I print out when a method gets called. Here is the output. getNameSpace for prefix ns1 getNameSpace for prefix ns1 value BUILD SUCCESSFUL I can't understand, why won't it work ?? Any help will be greatly appreciated. Thanks
0
[ 2, 568, 993, 8353, 29, 204, 5582, 37, 21, 8247, 718, 800, 3726, 3726, 31, 589, 749, 20, 2017, 870, 40, 23504, 4492, 29, 204, 5582, 568, 993, 8353, 9, 31, 57, 1302, 184, 32, 25, 2293, 20, 44, 677, 9, 31, 57, 6807, 204, 5582, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Transform and scale path === I have this code: var personPath = "M255.968,166.154c34.206,0,61...." this.drawMarker = function (message) { var longitude = message.longitude, latitude = message.latitude, text = message.title, city = message.city; var coordinates = self.map([longitude, latitude]); x = coordinates[0]; y = coordinates[1]; self.member = self.svg.append("svg:g") .attr("transform", function() { return "translate(" + x + "," + y + ")"; }); self.member.append("svg:path") //self.member.append("svg:circle") .attr("d", personPath) .attr("transform","scale(0.07)") //.attr("r", 5) .attr("class", "member") .style("fill", "steelblue") .on("mouseover", function(){ d3.select(this).transition() //.attr("r", 20) .style("fill", "red") }) .on("mouseout", function() { d3.select(this).transition() //.attr("r", 5) .style("fill", "steelblue") }); self.svg.append("svg:text") .text(function(d) { return city; }) .attr("x", x) .attr("dy", y + 20) .attr('text-anchor', 'middle') .attr("class", "city"); and which is displayed: var self = this, width = $("#map").width(), mapCanvasHeight = (width * 0.45); this.init = function() { self.drawMap(); }; this.drawMap = function () { var data; // Most parts of D3 don"t know anything about SVG—only DOM. self.svg = d3.select("#map").append("svg:svg") .attr("width", "100%") .attr("height", "100%") .attr("viewBox", "0 0 " + width + " " + mapCanvasHeight); so i basically have the lon/lat which are passed in the 'message' that are then turned into coordinates. the problem i have is that for the 'circle' the placement of the 'circle' is in the correct place, but i would like to use the personPath scale it and display this centered on the 'coordinates' any advise much appreciated.
0
[ 2, 8007, 17, 3464, 2013, 800, 3726, 3726, 31, 57, 48, 1797, 45, 4033, 840, 8353, 800, 13, 7, 79, 20038, 9, 4060, 457, 15, 13126, 9, 13758, 150, 3965, 9, 18886, 15, 387, 15, 4821, 9, 9, 9, 9, 7, 48, 9, 43, 12404, 4527, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Rails 3 - how to add to autocomplete another condition? === I use the gem [rails3-jquery-autocomplete][1] for the autocomplete searching of items in my database. The autocomplete is working fine, but I would need to add another condition to the generated query. If I start to write a searched string, then is generated following query: SELECT persons.id, persons.name FROM "persons" WHERE (LOWER(persons.name) ILIKE 'jo%') ORDER BY persons.name ASC LIMIT 10 This returns me all rows, where the name starts at `jo`. But how could I search all persons, which name starts at `jo` and simultaneously, for example, the column `active_person`=`1`? Is there any helper for this purpose or something like that? Thank you [1]: https://github.com/crowdint/rails3-jquery-autocomplete
0
[ 2, 2240, 18, 203, 13, 8, 184, 20, 3547, 20, 3108, 15990, 226, 2874, 60, 800, 3726, 3726, 31, 275, 14, 8551, 636, 7301, 18, 240, 8, 728, 8190, 93, 8, 18042, 15990, 500, 2558, 165, 500, 26, 14, 3108, 15990, 5792, 16, 3755, 19, 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...
jquery centering span on image hover (because it is inline maybe?) === I'm trying to make fancy hover effect when contents is revealed when user hovers image. I want hover bubble to be centered and on the top of images. Illustrated in this fiddle: http://jsfiddle.net/sandrodz/TnEMU/ It is especially bad in chrome, where span which is automatically turned to display:inline on hover behaves differently from firefox. Putting both as block elements helps but hidden element is pan and it automatically gets display:inline. Any thoughts on how to fix this problem and make hover appear directly on top of correct images? Thanks!
0
[ 2, 487, 8190, 93, 459, 68, 6289, 27, 1961, 21350, 13, 5, 4451, 32, 25, 19, 1143, 913, 60, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 12251, 21350, 1590, 76, 8478, 25, 2204, 76, 4155, 21350, 18, 1961, 9, 31, 259, 21350, 1093...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
docx4j - Nodes Omitted From XmlUtils.marshalToString() === Using `XMLUtils.marshalToString()` from docx4j, I have the following content at identical locations in two docx files (extracted from corresponding `word/document.xml` after unzipping the .docx). These are the only differences between the files: <pre> &lt;w:t xml:space="preserve">New line. First is &lt;/w:t> </pre> and <pre> &lt;w:t xml:space="preserve"> &lt;w:r> &lt;w:t xml:space="preserve">New line.&lt;/w:t> &lt;/w:r> &lt;w:r> &lt;w:t xml:space="preserve"> First is &lt;/w:t> &lt;/w:r> &lt;/w:t> </pre> In the first document, the `<w:t>` node is output as above. However, in the second, an empty `<w:t>` node is printed as follows: <pre> &lt;w:t xml:space="preserve">&lt;/w:t> </pre> I checked the `w:t` schema at http://www.schemacentral.com/sc/ooxml/e-w_p-1.html and `w:r` is a valid contained element. What is keeping the second block from being output?
0
[ 2, 9765, 396, 300, 728, 13, 8, 16272, 18761, 37, 23504, 14255, 18, 9, 19988, 192, 262, 11130, 5, 6, 800, 3726, 3726, 568, 13, 1, 396, 8184, 14255, 18, 9, 19988, 192, 262, 11130, 5, 6, 1, 37, 9765, 396, 300, 728, 15, 31, 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...
Grabbing a part of the List<Item> by start and end indices === Is this possible? For example, if I have List<Item> myList = new List<Item>; //added 100 of Items to myList //then I want to grab items at indices 50 - 60 List<Item> myNewList = myList.? How do I do that w/o looping through myList? Thank you.
0
[ 2, 9910, 21, 141, 16, 14, 968, 1, 2119, 79, 1, 34, 799, 17, 241, 19, 8779, 18, 800, 3726, 3726, 25, 48, 938, 60, 26, 823, 15, 100, 31, 57, 968, 1, 2119, 79, 1, 51, 5739, 800, 78, 968, 1, 2119, 79, 1, 73, 12894, 14854, 69...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Need VpnService example === I am looking for a thorough VpnService and VpnService.Builder code example. I would like to write an app that establishes a PPTP connection via code. I see that the VPN calls are now exposed in ICS, but there is no examples showing how to establish a connection. Thanks for your help.
0
[ 2, 376, 13, 10924, 103, 11449, 823, 800, 3726, 3726, 31, 589, 699, 26, 21, 17509, 13, 10924, 103, 11449, 17, 13, 10924, 103, 11449, 9, 20904, 1797, 823, 9, 31, 83, 101, 20, 2757, 40, 4865, 30, 22753, 21, 3273, 13726, 2760, 1197, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Infinite Scroll Remove the paginator when we're done === I need remove the paginator when we're done like at the demo http://www.infinite-scroll.com/trigger.html // remove the paginator when we're done. $(document).ajaxError(function(e,xhr,opt){ if (xhr.status == 404) $('a#next').remove(); }); But this code doesn't work. I have mentioned that at the demo the version of Infinite Scroll is 1.5.100504 but the latest versiont that I have downloaded here is 2.0b2.110713 So, any help please?
0
[ 2, 9698, 12159, 4681, 14, 19006, 108, 3457, 76, 95, 22, 99, 677, 800, 3726, 3726, 31, 376, 4681, 14, 19006, 108, 3457, 76, 95, 22, 99, 677, 101, 35, 14, 8376, 7775, 6903, 6483, 9, 23025, 591, 8, 3862, 8694, 9, 960, 118, 3367, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do sftp python 3? === <br/> I am using the code below to do sftp:<br/><br/> \#!/opt/python3/bin/python3<br/> import paramiko<br/> import sys<br/><br/> host = '192.168.1.2'<br/> port = 22622<br/><br/> transport = paramiko.Transport((host, port))<br/> password = "p@ssw0rd"<br/> username = "web"<br/><br/> transport.connect(username = username, password = password)<br/> sftp = paramiko.SFTPClient.from_transport(transport)<br/> path = '/log/ERROR.LOG'<br/> localpath = '/home/web/ERROR.LOG'<br/> sftp.get(path, localpath)<br/> sftp.close()<br/> transport.close()<br/><br/> print ("Download done.")<br/><br/> But the output is:<br/><br/> Traceback (most recent call last):<br/> File "c.py", line 2, in <module><br/> import paramiko<br/> ImportError: No module named paramiko<br/><br/> There is no Paramiko module in Python3?<br/><br/> What I have to use to do sftp?<br/>
0
[ 2, 184, 20, 107, 15025, 13726, 20059, 203, 60, 800, 3726, 3726, 13, 1, 5145, 118, 1, 31, 589, 568, 14, 1797, 1021, 20, 107, 15025, 13726, 45, 1, 5145, 118, 1, 5145, 118, 1, 13, 1, 5910, 187, 118, 2594, 38, 118, 6448, 11570, 92...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
multi level hierarchical clustering selection === I have hierarchical clustering tree (using linkage). Each cluster has its own level in the dendrogram which corresponds to the cost of that cluster. I have budget for n1 clusters with cost c1, n2 clusters with cost c2, and n3 clusters with cost c3. The question is to select which cluster using the budget to cover all original items. and c1>c2>c3. Clusters with cost c1 can be used for c2 or c3 clusters obviously. For only one budget category, the solution is trivial: just start from the root and in each subtree when we go below c1 add it. If n1 categories are finished before subtrees there is no solution. For two categories it is also simple. Find all candidates for c1 cost. Label them with the number of c2 sub-clusters and sort them descendingly. Select the c1 categories with maximum label. Then select c2 clusters. But the problem is complex for more than 2 categories as sorting for c2 categories does not necessarily keeps track of c3 budget.
0
[ 2, 1889, 662, 21376, 4272, 7460, 68, 3155, 800, 3726, 3726, 31, 57, 21376, 4272, 7460, 68, 1541, 13, 5, 12655, 26215, 6, 9, 206, 7460, 63, 82, 258, 662, 19, 14, 5394, 8804, 6295, 56, 17016, 20, 14, 1516, 16, 30, 7460, 9, 31, 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...
Delay setting in jQuery Banner Rotator plugin not working === I'm working with an awesome and flexible jQuery banner rotator but I needed to modify it to load the slides from an external source. I got the external source working great and the slideshow loading but I can't seem to get it to recognize the delay setting. Basically I modified how the plugin initiates so that it loads my external content and then formats it before the slideshow function. // Grabs data from Sphere Photo Gallery and formats the HTML for jQuery Banner Rotator plugin function sphereSlider(options) { $.get("PhotoGallery.aspx.htm",function(data){ var html = ''; $(data).find('#pg_summary img').each(function(i){ var imgsrc = $(this).attr("src"); html += "<li>"; html += "<a href='"+imgsrc+"'><img src='"+imgsrc+"' border=0/></a>"; html += "<div class='imgCaption'>"; html += "<h1>"+$(data).find('#pg_summary .pg_title:eq('+i+')').html().replace("&nbsp;","")+"</h1>"; html += "<a href='"+$(data).find('#pg_summary .pg_title:eq('+i+')').html().replace("&nbsp;","")+"'></a>"; html += "<div class='slideDesc'>"+$(data).find('#pg_summary .pg_longdescriptor:eq('+i+')').html()+"</div>"; html += "</div>"; html += "</li>"; }); $('.thumbnails ul').html(html); $(".container").wtRotator(options); }); } And then in the html I call my function like this: <script type="text/javascript"> $(document).ready(function() { sphereSlider({ width:900, height:254, thumb_width:24, thumb_height:24, button_width:24, button_height:24, button_margin:5, auto_start:true, delay:5000, play_once:false, transition:"block.fade", transition_speed:800, auto_center:true, easing:"", cpanel_position:"inside", cpanel_align:"BR", timer_align:"top", display_thumbs:false, display_dbuttons:false, display_playbutton:false, display_thumbimg:false, display_side_buttons:true, display_numbers:false, display_timer:true, mouseover_select:false, mouseover_pause:true, cpanel_mouseover:false, text_mouseover:false, text_effect:"fade", text_sync:true, tooltip_type:"text", shuffle:false, block_size:75, vert_size:55, horz_size:50, block_delay:25, vstripe_delay:75, hstripe_delay:180 }); } ); </script> It should work since all other settings are working. It's just the delay time that is not correctly being set. Any help would be appreciated. I have uploaded the full source to http://www.truimage.biz/cc/rotator.zip for troubleshooting. Thanks!
0
[ 2, 7255, 2697, 19, 487, 8190, 93, 7492, 8629, 3457, 10922, 108, 52, 638, 800, 3726, 3726, 31, 22, 79, 638, 29, 40, 13706, 17, 13568, 487, 8190, 93, 7492, 8629, 3457, 47, 31, 851, 20, 17579, 32, 20, 6305, 14, 18066, 37, 40, 4886,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
maven, eclipse and the filter === I use Maven to manage my project. I find **`<properties>`** tag very useful but there's a issue with this. When I deploy my sources to Tomcat, I should put **`/target/classes`** into Deployment Assembly to get converted resources. example ) ![enter image description here][1] I think this above is right. ---------- ![enter image description here][2] But I put **`/target/classes/`** to get converted properties. **Spring bean example)** <!-- Database --> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="${database.classname}" /> <property name="defaultAutoCommit" value="${database.defaultAutoCommit}" /> <property name="testWhileIdle" value="${database.testWhileIdle}" /> <property name="timeBetweenEvictionRunsMillis" value="${database.timeBetweenEvictionRunsMillis}" /> <property name="url" value="${database1.url}" /> <property name="username" value="${database1.username}" /> <property name="password" value="${database1.password}" /> </bean> This pure variables just copied into Tomcat's webapp if I don't put **`/target/classes/`** even though it works, this drives me crazy because Eclipse sometimes says **`"sources are not sychronized!"`** [1]: http://i.stack.imgur.com/srjwO.jpg [2]: http://i.stack.imgur.com/W5pvq.jpg
0
[ 2, 1216, 3124, 15, 11652, 17, 14, 11945, 800, 3726, 3726, 31, 275, 1216, 3124, 20, 4705, 51, 669, 9, 31, 477, 13, 1409, 1, 10890, 106, 3915, 1, 1409, 3383, 253, 4811, 47, 80, 22, 18, 21, 1513, 29, 48, 9, 76, 31, 17617, 51, 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...
Landscape orientation switches to portrait === I'm new here, and I have a question. I've searched the web and found answers for my problem who seem to work for others. but not for me. I'm building an iPad app (Xcode 4.3.3 using storyboards) in landscape view (right) It launches in landscape-view but when i click a button (segue - Modal - Default) to jump to my next view the app jumps to portrait-view. I've added this code and tried a lot of varieties (given on this website) - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } -Set my view controllers to landscape mode instead of inferred. -added initial interface orientation to my plist file. But whatever I do, nothing seems to work properly. What am I doing wrong? I've uploaded my Xcode files to my server so you can check my code yourself. [download zip.][1] I hope you guys can help me out, Thanks a bunch! Mart [1]: http://bit.ly/OviqmC
0
[ 2, 4453, 10245, 18114, 20, 5548, 800, 3726, 3726, 31, 22, 79, 78, 235, 15, 17, 31, 57, 21, 1301, 9, 31, 22, 195, 9036, 14, 2741, 17, 216, 6709, 26, 51, 1448, 72, 2260, 20, 170, 26, 654, 9, 47, 52, 26, 55, 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...
routes are not recognized if i user before_filter and skip_before_filter === #application controller class ApplicationController < ActionController::Base protect_from_forgery before_filter :authorize_access private #---- def authorize_access if !session[:user_id] flash[:notice] = "Please log in." redirect_to(:controller => 'staff' ,:action => 'login') return false end #staff controller class StaffController < ApplicationController skip_before_filter :authorize_access, :only => [:login, :send_login] #routes.rb get '/users/index' match "/users/manage" ,:to => 'users#manage' resources :posts,:categories,:users,:comments match "/posts/:id" ,:to => "posts#update" match "/categories/:id" ,:to => "categories#update" match ':controller(/:action(/:id))' #error Routing Error No route matches [GET] "/staff/login" #doubt i am not able to understand y is it not working , but if i remove the before_filter from the application controller and the skip_before_filter from the staff contrller its working ?
0
[ 2, 5050, 50, 52, 2124, 100, 31, 4155, 115, 1, 11924, 815, 17, 12532, 1, 12750, 1, 11924, 815, 800, 3726, 3726, 6926, 2552, 20669, 9919, 718, 3010, 12898, 1252, 13, 1, 1028, 12898, 1252, 45, 45, 8436, 2196, 1, 2665, 1, 1106, 1674, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 change sequence name on Hibernate 3.6.10 with annotations (Oracle 10g) === I have a class annotated like this: @Entity @Table(name="MYENTITY") @SequenceGenerator(name="CODE_GEN", sequenceName="SEQ_NAME") public class MyEntity { @Id @GeneratedValue(strategy=GenerationType.AUTO, generator="CODE_GEN") @Column(name="CODE", nullable=false) private int code; I'm using hibernate 3.6.10 and Oracle10gDialect. The database is Oracle 10g. A sequence was created: CREATE SEQUENCE SCHEMA_NAME.SEQ_NAME START WITH 0 MAXVALUE 999999999999999999999999999 MINVALUE 0 NOCYCLE NOCACHE NOORDER; COMMIT; When I try to persist a MyEntity class, I get: Hibernate: select hibernate_sequence.nextval from dual 19-jul-2012 13:31:24 org.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: 2289, SQLState: 42000 19-jul-2012 13:31:24 org.hibernate.util.JDBCExceptionReporter logExceptions GRAVE: ORA-02289: sequence not exist Why is hibernate always trying to access hibernate_sequence if I'm declaring the sequence name with @SequenceGenerator (sequenceName="SEQ_NAME")? Is there something wrong in my annotations? I have tried lots of combinations and Hibernate always ignores the sequence name and looks for "hibernate_sequence". BTW I'm using GenerationType.AUTO because this app must also runs vs SQLServer. Thanks...
0
[ 2, 1967, 753, 4030, 204, 27, 4148, 2102, 8820, 203, 9, 379, 9, 1036, 29, 40, 1270, 7504, 13, 5, 6055, 5615, 332, 263, 6, 800, 3726, 3726, 31, 57, 21, 718, 40, 1270, 1669, 101, 48, 45, 13, 1, 2291, 856, 13, 1, 5924, 5, 7259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 server 2008 delete trigger on multiple rows === my trigger USE [xxx] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER TRIGGER [dbo].[trgPaxeDeleted] ON [dbo].[paxe] AFTER DELETE AS declare @HFflightID int, @RFflightID int BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. --SET NOCOUNT ON; Select @HFflightID = hfFlightID, @RFflightID = rfFlightID from deleted -- Hinflug: flugKontingent hochsetzen -- UPDATE flightdata SET flightQuota = flightQuota + 1 WHERE (flightID = @HFflightID) -- Rückflug: flugKontingent hochsetzen -- UPDATE flightdata SET flightQuota = flightQuota + 1 WHERE (flightID = @RFflightID) END works fine on deleting a single row. But when deleting multiple rows only one trigger operation is done. How to change this? thx
0
[ 2, 4444, 255, 8128, 570, 27448, 7286, 27, 1886, 11295, 800, 3726, 3726, 51, 7286, 275, 636, 13290, 500, 162, 309, 40, 18, 49, 1, 4215, 211, 18, 27, 162, 309, 9591, 1, 13384, 16292, 27, 162, 7835, 7286, 636, 43, 1192, 500, 9, 255...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can't format the date properly in VBA, Excel 2012 === I'm working on a VBA script in Excel 2010 that picks up certain events from a MySQL database based on the dates of the events. The dates in the database are stored in a "yyyy-mm-dd hh:mm:ss" . My users will be using a from-to date range to filter the events they are interested in. To make it easier for them I use two calendar controls (mscal.ocx) for the range - Calendar1 for from and Calendar2 for to. I wrote two simple subroutines to make sure that every click on the calendars automatically updates cells from which i take data for the query string, which looks like this : Private Sub Calendar1_Click() Dim date1, datetime1, time1 As Date Cells(29, 10) = CDbl(Calendar1.Value) Cells(29, 10).NumberFormat = "yyyy-mm-dd" Cells(30, 10).NumberFormat = "hh:mm:ss" Cells(31, 11).NumberFormat = "yyyy-mm-dd hh:mm:ss" date1 = Cells(29, 10) time1 = Cells(30, 10) datetime1 = date1 & " " & time1 Cells(31, 10) = datetime1 Cells(29, 10).Select End Sub Private Sub Calendar2_Click() Dim date2, datetime2, time2 As Date Cells(29, 11) = CDbl(Calendar2.Value) Cells(29, 11).NumberFormat = "yyyy-mm-dd" Cells(30, 11).NumberFormat = "hh:mm:ss" Cells(31, 11).NumberFormat = "yyyy-mm-dd hh:mm:ss" date2 = Cells(29, 11) time2 = Cells(30, 11) datetime2 = date2 & " " & time2 Cells(31, 11) = datetime2 Cells(29, 11).Select End Sub And well, it almost does what I want it to do, which is change the format that is given by the calendar control, which is dd/mm/yyyy to yyyy-mm-dd. Yes, almost, because it only works as long as the day value is between 1 and 12, then my datetime cell is displayed properly as "yyyy-mm-dd hh:mm:ss". For 13 to 31 day value my datetime cell does not get formatted and instead displays as "dd/mm/yyyy hh:mm:ss". Now, it's worth noting, that Cells 29,10 and 29,11 ALWAYS have the proper formatting (yyyy-mm-dd) regardless of the date, the problem is with Cells 31,11 and 31,10. Now, when i doubleclick the cell, get cursor flashing in it and press enter, the formatting is executed and the format changes to proper format (even for day value between 13 and 31). However the purpose of this is to automate everything as much as possible, so that's not really a solution. I can attach the file if needed, because I do realise it sounds a bit ridiculous that it works for certain values and not for others. Please help !
0
[ 2, 92, 22, 38, 2595, 14, 1231, 7428, 19, 566, 969, 15, 20700, 563, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 566, 969, 3884, 19, 20700, 498, 30, 13267, 71, 1200, 963, 37, 21, 51, 18, 22402, 6018, 432, 27, 14, 4076, 16, 14, 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...
Struts2 Loop Once in Nested Iterator === I'm trying to loop once inside a nested iterator with struts2 tags. This is what I have so far: JAVA: private List<Parent> allParent = new ArrayList<Parent>(); private List<Children> allChildren = new ArrayList<Children>(); JSP: <s:iterator value="allParent"> Parent name: <s:property value="parentName"/> <s:iterator value="allChildren"> First child: <s:property value="childName"/> </s:iterator> </s:iterator> If I separate the 2 iterators then all items are listed perfectly. If I nest them then none of the children show. After I get the children to show, I want to limit them so just one shows.
0
[ 2, 18316, 18, 135, 5293, 382, 19, 5618, 69, 32, 106, 3457, 800, 3726, 3726, 31, 22, 79, 749, 20, 5293, 382, 572, 21, 5618, 69, 32, 106, 3457, 29, 18316, 18, 135, 3383, 18, 9, 48, 25, 98, 31, 57, 86, 463, 45, 8247, 45, 932, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 unify Python Pyramid views for handling Ajax/html form POSTs === I have some HTML forms in my Python Pyramid application. I'd like them to work via AJAX when JavaScript is enabled and when JavaScript is disabled. Now I use different views for AJAX and normal form posts, but the code seems almost the same for these functions, except response. I use view class like this (class body): def ajax_ok(self, msg): return Response(body=msg) def ajax_error(self, msg): return HTTPInternalServerError(body=msg) @action(xhr=True, renderer='json', name='ftp') def ftp_ajax(self): log.debug('View: %s', 'ftp (ajax)') if 'form.submitted' in self.params: try: self.config.save(self.params) except: return self.ajax_error('some error') else: return self.ajax_ok('ok') @action() def ftp(self): if 'form.submitted' in self.params: try: self.config.save(self.params) except: self.request.session.flash('error; ' + msg) else: self.request.session.flash('success; ' + msg) return {'content': render('templates/ftp.pt', {'ftp': self.config.ftp})} I need to handle error if any and show them in html. Maybe I should use [finished_callback](http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/hooks.html#using-finished-callbacks) or my own renderer which will send different response for different request type??
0
[ 2, 184, 20, 367, 8612, 20059, 9565, 4146, 26, 7988, 20624, 118, 15895, 505, 9868, 800, 3726, 3726, 31, 57, 109, 13, 15895, 1997, 19, 51, 20059, 9565, 3010, 9, 31, 22, 43, 101, 105, 20, 170, 1197, 20624, 76, 8247, 8741, 25, 9338, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 servername for NetUserGetInfo? === I want to have a function that can take in any username on the local machine and tell me whether that user is an administator or not. I have tried using WindowsIdentity with no success. Now I am trying to use NetUserGetInfo. The problem is that it always returns 2221. Google tells me thats a user not found error. I'm pretty sure the problem is that I'm using null for the servername. But this is at a workplace with a large network. Users will create accounts on one machine and this code will only run on that. So what should I put for the servername? [DllImport("Netapi32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)] private extern static int NetUserGetInfo( [MarshalAs(UnmanagedType.LPWStr)] string serverName, [MarshalAs(UnmanagedType.LPWStr)] string userName, int level, out IntPtr bufPtr ); [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct USER_INFO_1 { [MarshalAs(UnmanagedType.LPWStr)] public string usri1_name; [MarshalAs(UnmanagedType.LPWStr)] public string usri1_password; [MarshalAs(UnmanagedType.U4, SizeConst = 34)] public string usri1_password_age; [MarshalAs(UnmanagedType.U4, SizeConst = 34)] public string usri1_priv; [MarshalAs(UnmanagedType.LPWStr)] public string usri1_home_dir; [MarshalAs(UnmanagedType.LPWStr)] public string usri1_comment; [MarshalAs(UnmanagedType.U4, SizeConst = 34)] public string usri1_flags; [MarshalAs(UnmanagedType.LPWStr)] public string usri1_script_path; } ... public static bool IsAuthorizedUser(string userId) { IntPtr bufPtr; USER_INFO_1 u1 = new USER_INFO_1(); int a = NetUserGetInfo(null, userId, 1, out bufPtr); if(a == 0) { u1 = (USER_INFO_1) Marshal.PtrToStructure(bufPtr, typeof (USER_INFO_1)); Console.WriteLine(u1.usri1_name); } else { Console.WriteLine("a:"+a); }
0
[ 2, 98, 8128, 7259, 26, 4275, 16704, 3060, 108, 4120, 60, 800, 3726, 3726, 31, 259, 20, 57, 21, 1990, 30, 92, 247, 19, 186, 4155, 7259, 27, 14, 375, 1940, 17, 494, 55, 1472, 30, 4155, 25, 40, 21, 43, 2160, 702, 3457, 54, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I load bitmap image into android map view and use it as a map === I need to load a bitmap image got from the SD card to android map view and mark locations on that bitmap image Is it possible if so please help me
0
[ 2, 92, 31, 6305, 1142, 15022, 1961, 77, 13005, 2942, 1418, 17, 275, 32, 28, 21, 2942, 800, 3726, 3726, 31, 376, 20, 6305, 21, 1142, 15022, 1961, 330, 37, 14, 13, 18, 43, 2056, 20, 13005, 2942, 1418, 17, 943, 4095, 27, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0...
NSRectFill without context results in debug warnings === I'm trying out drawing in Objective-C with NSRect, but all the examples I find online result in a warning in the output log. It does draw on the View, but I would like to see that there are no issues reported by the debugger :). I read some things about that the stuff you draw explicitly has to be inside a "context", but all the articles I find are way above my level at the moment. Here's my code: - (void)drawRect:(NSRect)rect { NSColor *white = [NSColor whiteColor]; NSColor *blue = [NSColor blueColor]; [white set]; NSRectFill([self bounds]); rect = NSMakeRect(100, 100, 50, 50); [blue set]; NSRectFill(rect); } I get these errors: > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextSetFillColorWithColor: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextGetCompositeOperation: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextSetCompositeOperation: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextFillRects: invalid context 0x0 > Jul 2 16:10:49 localhost X[27220] <Error>: CGContextSetCompositeOperation: invalid context 0x0 Most articles talked about using "NSGraphicsContext", but all were theoretical and I couldn't find an example of how to get that to work. I hope someone can help :)
0
[ 2, 13, 2172, 14673, 38, 19971, 366, 4141, 1736, 19, 121, 16254, 3590, 18, 800, 3726, 3726, 31, 22, 79, 749, 70, 3533, 19, 7038, 8, 150, 29, 13, 2172, 14673, 38, 15, 47, 65, 14, 3770, 31, 477, 2087, 829, 19, 21, 3590, 19, 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...
git push says Everything up to date === I am having trouble understanding the concept of git local and remote versioning. For example I have a iPhone app in a local git rep. Initally this was my master branch. I then checked out a new branch `git checkout -b "update-2.0.1"`. Then I set `git push origin update-2.0.1` to ensure that I have a seperate branch for developing this app update and when done merge it back into my master branch. Fine! Now that I am on my update-branch I want to create branches for every issue ID. So I say `git checkout -b "#3178"` - when I now try to push this new issue-branch in my remote repository git says `"Everything-up-to-date"`. I don't see why it is not possible to push this issue branch to the remote repository? `git remote -b` returns > origin/master > origin/update-2.0.1 I would love to see a third branch > origin/update-2.0.1/#3178
0
[ 2, 13, 10404, 3250, 898, 796, 71, 20, 1231, 800, 3726, 3726, 31, 589, 452, 2572, 3260, 14, 2420, 16, 13, 10404, 375, 17, 5388, 615, 68, 9, 26, 823, 31, 57, 21, 21024, 4865, 19, 21, 375, 13, 10404, 9411, 9, 19, 242, 1326, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove empty lines from a string in ruby === I've gone through other similar questions and they dont seem to explain my problem. My output ,right now is like this, I would like to remove empty lines from the string in ruby, CIRRUS LADIES NIGHT with DJ ROHIT 4th of JULY Party ft. DJ JASMEET @ I-Bar Submerge Deep @ Pebble | Brute Force (Tuhin Mehta) | DJ Arpan (Opening) Champagne Showers - DJs Panic & Nyth @ Blue Waves THURSDAY PAST AND PRESENT @ Hint and I want my output to be like this, CIRRUS LADIES NIGHT with DJ ROHIT 4th of JULY Party ft. DJ JASMEET @ I-Bar Submerge Deep @ Pebble | Brute Force (Tuhin Mehta) | DJ Arpan (Opening) Champagne Showers - DJs Panic & Nyth @ Blue Waves THURSDAY PAST AND PRESENT @ Hint I've tried `gsub /^$\n/,''` , `gsub(/\n/,'')` , `squeeze("\n")` and `delete! "\n"` to no avail.
0
[ 2, 4681, 2424, 1560, 37, 21, 3724, 19, 10811, 800, 3726, 3726, 31, 22, 195, 1042, 120, 89, 835, 2346, 17, 59, 1049, 2260, 20, 3271, 51, 1448, 9, 51, 5196, 13, 15, 4183, 130, 25, 101, 48, 15, 31, 83, 101, 20, 4681, 2424, 1560, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 load a separate UIView in iPhone development === I have to use an UIView as a kind of Pause view when clicking on the pause button in the game that I develop now. This pause view will be used in 40 UIViewControllers. I use "storyboard" for my UI but I have designed the pause view in a .xib file. How to load and to use this view in my application? How just to load an UIView?
0
[ 2, 184, 20, 6305, 21, 1725, 13, 5661, 4725, 19, 21024, 522, 800, 3726, 3726, 31, 57, 20, 275, 40, 13, 5661, 4725, 28, 21, 825, 16, 6911, 1418, 76, 25590, 27, 14, 6911, 5167, 19, 14, 250, 30, 31, 2803, 130, 9, 48, 6911, 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 filter category collection using storefilter? === i have one admin module and i want to get category collection to storewise in that module so how can we filter collection using storefilter, addstorefilter is not working for category collection?
0
[ 2, 184, 20, 11945, 3230, 1206, 568, 1718, 11924, 815, 60, 800, 3726, 3726, 31, 57, 53, 21, 43, 2160, 12613, 17, 31, 259, 20, 164, 3230, 1206, 20, 1718, 10474, 19, 30, 12613, 86, 184, 92, 95, 11945, 1206, 568, 1718, 11924, 815, 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, 0, 0, 0, 0, 0, 0, 0...
function inside a function ( objective c function inside C / C++ function ) === i'm trying to place a function inside another function, but i'm getting : 'self' was not declared in this scope This is the code: -(void) alone { label.text = [NSString stringWithFormat:@"Hello world"]; } void *multithreading( void *ptr ) { [self alone]; } Well then i found out, that the warning/error go away if the last code get changed to: -(void *) multithreading:( void * )ptr { [self alone]; } i'm trying to keep multithreading stay the same way or else my code wont work, so please help me out ...
0
[ 2, 1990, 572, 21, 1990, 13, 5, 7038, 272, 1990, 572, 272, 13, 118, 272, 20512, 1990, 13, 6, 800, 3726, 3726, 31, 22, 79, 749, 20, 209, 21, 1990, 572, 226, 1990, 15, 47, 31, 22, 79, 1017, 13, 45, 13, 22, 8411, 22, 23, 52, 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...
Pythonic way of write the code === I have to write a library in python which was written in Java before. Coming from a Java background python is giving me a little difficult time. I am stuck with choosing the right pythonic way of doing something.. So, My java code is something like: import java.util.Collection; public abstract class MyEnumBaseClass { protected int value; protected String description = null; protected MyEnumBaseClass(int iValue, String iDescription) { value = iValue; description = iDescription; } public int getValue() { return value; } public String getDescription() { return description; } protected static MyEnumBaseClass getEnum(Collection<MyEnumBaseClass> iter, int value) { for (MyEnumBaseClass enumObj : iter) { if (enumObj.getValue() == value) { return enumObj; } } return null; } } import java.util.ArrayList; import java.util.Collection; public class MyEnumClass extends MyEnumBaseClass { private final static Collection<MyEnumBaseClass> enumList = new ArrayList<MyEnumBaseClass>(); public final static int ERROR1 = 1; public final static int ERROR2 = 2; public final static int ERROR3 = 3; public final static int ERROR4 = 4; public final static MyEnumClass ErrorEnum1 = new MyEnumClass(ERROR1, "ERROR1"); public final static MyEnumClass ErrorEnum2 = new MyEnumClass(ERROR2, "ERROR1"); public final static MyEnumClass ErrorEnum3 = new MyEnumClass(ERROR3, "ERROR1"); public final static MyEnumClass ErrorEnum4 = new MyEnumClass(ERROR4, "ERROR1"); protected MyEnumClass(int iValue, String iDescription) { super(iValue, iDescription); } public static int getCount() { return enumList.size(); } public static Collection<MyEnumBaseClass> getList() { return enumList; } public static MyEnumBaseClass getEnum(int value) { return getEnum(enumList, value); } } I want to write something this in python. I understand both languages are totally different. I don't want to replicate exact code but I want to write something in python which give me the functionality Java code is giving. So I came up with something like: <pre><code> MODULE MYENUMBASECLASS::: class MyEnumBaseClass(object): def __init__(self, iValue, iDescription, ui = None): self._value = iValue self._description = iDescription def getValue(self): return self._value def getDescription(self): return self._description @classmethod def getEnum(cls, value, itr): for enumObj in itr: if enumObj.getValue() == value: return enumObj return None MODULE: ENUMS::: from MyEnumBaseClass import MyEnumBaseClass __all__ = ["MyEnumClassConstants", "MyEnumClass", "MyEnums"] _enumList = [] class MyEnumClassConstants(object): ERROR1 = 1 ERROR2 = 2 ERROR3 = 3 ERROR4 = 4 class MyEnumClass(MyEnumBaseClass): def __init__(self, v, d, ui): global _enumList super(MyEnumClass, self).__init__(v, d, ui) _enumList.append(self) @staticmethod def getCount(): return len(_enumList) @staticmethod def getList(): return _enumList @classmethod def getEmum(cls, value, itr = None): return super(MyEnumClass, cls).getEnum(value, _enumList) class MyEnums(object): ErrorEnum1 = MyEnumClass(MyEnumClassConstants.ERROR1, "ERROR1"); ErrorEnum2 = MyEnumClass(MyEnumClassConstants.ERROR2, "ERROR2"); ErrorEnum3 = MyEnumClass(MyEnumClassConstants.ERROR3, "ERROR3"); ErrorEnum4 = MyEnumClass(MyEnumClassConstants.ERROR4, "ERROR4"); </pre></code> I Want to know: 1. Is it the correct pythonic way of doing it? 2. I wanted to move the ErrorEnum1,2,3,4 and constants out of the MyEnums class as a module variable. But that way I will have a long list in my __all__ variable. also I have a risk of variable name clash when I will import Enums module in other module (some other Enums2 module may also have ErrorEnum1,2,3.. But that is not a big problem. We can always use Enums.ErrorEnum1 and Enums2.ErrorEnum1). Am I thinking right? 3. I know this is not perfect (my first python code ever). So I invite you guys for giving me ideas. Thanks
0
[ 2, 20059, 596, 161, 16, 2757, 14, 1797, 800, 3726, 3726, 31, 57, 20, 2757, 21, 1248, 19, 20059, 56, 23, 642, 19, 8247, 115, 9, 880, 37, 21, 8247, 2395, 20059, 25, 1438, 55, 21, 265, 1956, 85, 9, 31, 589, 4549, 29, 10883, 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...
Find all but allowed characters in column === I have a query I've been trying to make, it's supposed to pull all rows that do not contain characters we do not want. SELECT NID FROM NOTES WHERE NOTE LIKE '%[^0-9a-zA-Z#.;:/^\(\)\@\ \ \\\-]%' That should return any rows that do not contain 0-9 a-z A-z . : ; ^ & @ \ / ( ) # But any time i add one of these below it fails $ [ ] ? Even trying to escape them either by \ or [[ doesn't seem to work properly. I only have access to stock SQL install.
0
[ 2, 477, 65, 47, 1159, 1766, 19, 4698, 800, 3726, 3726, 31, 57, 21, 25597, 31, 22, 195, 74, 749, 20, 233, 15, 32, 22, 18, 2293, 20, 2201, 65, 11295, 30, 107, 52, 3717, 1766, 95, 107, 52, 259, 9, 5407, 1781, 43, 37, 2434, 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...
Typo3 - Printing view of page has weird information === When I try to print a page from my site created in typo3, I can read at the end of every link the string "(index.php?id=2) and or the ID of the page where the link goes. How can I turn this off?
0
[ 2, 22550, 240, 13, 8, 7312, 1418, 16, 2478, 63, 5455, 676, 800, 3726, 3726, 76, 31, 1131, 20, 4793, 21, 2478, 37, 51, 689, 679, 19, 22550, 240, 15, 31, 92, 1302, 35, 14, 241, 16, 352, 3508, 14, 3724, 13, 7, 5, 25671, 9, 2612...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Pushing without committing === I have a git repo and I just pushed it to a server. Then I setup a post-receive hook on the server. I want to check it works. I have to commit again just to see if it works? I would really like to just force a push while I'm trying to get this set up rather than keep making commits that have no real value. Its not working, and I just don't get it. $ git push --force origin master Everything up-to-date
0
[ 2, 5076, 366, 19524, 800, 3726, 3726, 31, 57, 21, 13, 10404, 302, 1638, 17, 31, 114, 2007, 32, 20, 21, 8128, 9, 94, 31, 18161, 21, 678, 8, 99, 1105, 1284, 5559, 27, 14, 8128, 9, 31, 259, 20, 2631, 32, 693, 9, 31, 57, 20, 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...
IMDB API to retrieve character information === IMDB API to retrieve character information ? Assuming I know the exact name of the character ?
0
[ 2, 797, 9007, 21, 2159, 20, 11917, 925, 676, 800, 3726, 3726, 797, 9007, 21, 2159, 20, 11917, 925, 676, 13, 60, 11704, 31, 143, 14, 5340, 204, 16, 14, 925, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
jQuery: on scroll, DIV always at the bottom right of whatever is viewable === I'm trying to determine the best way to make sure that a specific DIV is always 20px from the bottom and 20px from the right, even once a user scrolls. <body> <div id="wrap"> <p>Some content</p> </div> <div class="social-badges"><!-- this is the box that will always be at the bottom right --></div> </body> $(window).scroll(function() { console.log('scrolling'); $(".tba-social-slider").css({"position" : "absolute", "bottom" : "20px", "right" : "20px"}); });
0
[ 2, 487, 8190, 93, 45, 27, 12159, 15, 13, 12916, 550, 35, 14, 2129, 193, 16, 2099, 25, 1418, 579, 800, 3726, 3726, 31, 22, 79, 749, 20, 3746, 14, 246, 161, 20, 233, 562, 30, 21, 1903, 13, 12916, 25, 550, 434, 306, 396, 37, 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...
tty.js does not work === I installed tty.js: ```$ npm install -g tty.js``` Then I start it: ```$ tty.js``` When I call http://example.com:8080/ I can't open a terminal and http://example.com:8080/socket.io/socket.io.js returns a http error 404. I tried with node 0.6.19. I posted in [github][1] but maybe someone from stackoverflow can help :) [1]: https://github.com/chjj/tty.js/issues/32
0
[ 2, 13, 12007, 9, 728, 18, 630, 52, 170, 800, 3726, 3726, 31, 4066, 13, 12007, 9, 728, 18, 45, 13, 7, 1, 4403, 13, 103, 5576, 16146, 13, 8, 263, 13, 12007, 9, 728, 18, 7, 1, 94, 31, 799, 32, 45, 13, 7, 1, 4403, 13, 12007,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
docygen extern variables indexing === I just started to use doxygen and may not be familiar with all available settings. I looked into all tags and options in configuration file, but havent been able to locate any relevant tag for the operation. Is there any way to force doxygen to index externals in C/C++ ? Now they just plainly added to list of other variables in the source file.
0
[ 2, 107, 2731, 1863, 1396, 8766, 12157, 4348, 68, 800, 3726, 3726, 31, 114, 373, 20, 275, 107, 15161, 1863, 17, 123, 52, 44, 3694, 29, 65, 904, 12410, 9, 31, 292, 77, 65, 3383, 18, 17, 6368, 19, 8091, 3893, 15, 47, 12460, 74, 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...
Capture stdout to a string and output it back to stdout in C === C language is used. I have a function that writes to stdout. I would like to capture that output, modify it a bit (replacing some strings). And than output it again to the stdout. So I want to start with: char huge_string_buf[MASSIVE_SIZE]; freopen("NUL", "a", stdout); -OR- freopen("/dev/null", "a", stdout); setbuf(stdout, huge_string_buffer); /* modify huge_string_buffer */ The question is now, how do I output the huge_string_buffer back to the original stdout?
0
[ 2, 3683, 354, 43, 1320, 20, 21, 3724, 17, 5196, 32, 97, 20, 354, 43, 1320, 19, 272, 800, 3726, 3726, 272, 816, 25, 147, 9, 31, 57, 21, 1990, 30, 6215, 20, 354, 43, 1320, 9, 31, 83, 101, 20, 3683, 30, 5196, 15, 17579, 32, 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...
Session timeout event? - magento === I wanted to do some custom functionality upon user logout, so I hooked to the customer logout event, and added an observer to it. Here's the configuration in config.xml <customer_logout> <observers> <cwmyaccount> <type>singleton</type> <class>KrtMalta_Myaccount_Model_Observer</class> <method>setRegularCustomer</method> </cwmyaccount> </observers> </customer_logout> However I'd like the execute my custom functionality even on session-timeout. I've looked up google and Magento files with pretty much no success. Is it possible to hook to session-timeout somehow? Thanks, Krt_Malta
0
[ 2, 3723, 85, 1320, 807, 60, 13, 8, 4723, 17050, 800, 3726, 3726, 31, 417, 20, 107, 109, 5816, 18548, 685, 4155, 6738, 1320, 15, 86, 31, 14988, 20, 14, 7705, 6738, 1320, 807, 15, 17, 905, 40, 9855, 20, 32, 9, 235, 22, 18, 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...
Aptana find bar suddenly on the right instead of at the bottom === When pressing cmd+F to create a new Find the find bar all of a sudden now appears on the right of the window instead of at the bottom. And even worse: There is no input field anymore to enter search terms. Couldn't find a solution in the preferences. Thank you, Mike
0
[ 2, 8442, 9068, 477, 748, 1605, 27, 14, 193, 700, 16, 35, 14, 2129, 800, 3726, 3726, 76, 7196, 2390, 43, 2430, 410, 20, 1600, 21, 78, 477, 14, 477, 748, 65, 16, 21, 4224, 130, 1780, 27, 14, 193, 16, 14, 1463, 700, 16, 35, 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...
Resolve textbox background focus issue === I have a simple problem, but i'm new to silverlight. I have a textbox, transparent, but when i got focus, textfield background will come white. How to solve? ![enter image description here][1] ![enter image description here][2] thanks. [1]: http://i.stack.imgur.com/Z2NoX.png [2]: http://i.stack.imgur.com/HGY1q.png
0
[ 2, 9854, 1854, 5309, 2395, 1776, 1513, 800, 3726, 3726, 31, 57, 21, 1935, 1448, 15, 47, 31, 22, 79, 78, 20, 1172, 3130, 9, 31, 57, 21, 1854, 5309, 15, 14862, 15, 47, 76, 31, 330, 1776, 15, 1854, 1109, 2395, 129, 340, 359, 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...
This package is uninstallable? === Hi I'm trying to install an opensource package and I get this result on the terminal: $ gdebi Gonzales_epfl_viva_diadem_x86_64.deb Building dependency tree Reading state information... Done Building data structures... Done Building data structures... Done **This package is uninstallable Dependency is not satisfiable: libhighgui2.1 (>= 1.0)** The funny thing is that I have libhighgui2.1, because of OpenCV 2.3.1 I have installed. Or is this asking me for a version less than 1.0 of libhighgui?
0
[ 2, 48, 6030, 25, 367, 108, 21300, 579, 60, 800, 3726, 3726, 4148, 31, 22, 79, 749, 20, 16146, 40, 368, 12097, 6030, 17, 31, 164, 48, 829, 27, 14, 3855, 45, 5579, 489, 546, 2161, 26717, 1, 3492, 4372, 1, 12102, 58, 1, 4286, 115...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 run a specif .bashrc code only the first time konsole is opened === I have a chunk of code in my .bashrc, everytime one runs the shell (I usually use konsole) a switch case appears giving options of which branch or trunk to use. Example: 1) V0230 2) V0300 3) Dev Enter Option: __ $PROJECT_HOME and others variables are set upon the choise made. The annoying thing in this is that it appears everytime I open a new tab the same screen is printed. But yet I want to open a new konsole and use a different branch, so, simple export a variabe can not be the solution Must have a way to run this code only when a konsole new screen is open. Maybe making `alias konsole=konsole --run <desired-function>`. The konsole's documentation doesn't give a help, theres not even a `man konsole` just `konsole --help`.
0
[ 2, 184, 20, 485, 21, 12737, 821, 13, 9, 6093, 3112, 150, 1797, 104, 14, 64, 85, 5191, 18, 6069, 25, 520, 800, 3726, 3726, 31, 57, 21, 15009, 16, 1797, 19, 51, 13, 9, 6093, 3112, 150, 15, 352, 891, 53, 1461, 14, 3593, 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 display an animated icon during Ajax request processing - Rails 3 === I am trying to display an loading indicator for every ajax request, I working in a rails 3 app. **HTML:** <div id="loading-indicator"> <%= image_tag("loading.gif", :id => "loading-indicator", :style => "display:none") %> </div> **CSS:** #loading-indicator { position: absolute; left: 10px; top: 10px; } **loading.js:** which I placed in assest/javascripts/ $(document).ready(function(){ $(document).ajaxSend(function(event, request, settings) { $('#loading-indicator').show(); }); $(document).ajaxComplete(function(event, request, settings) { $('#loading-indicator').hide(); }); }); **My application.js looks like this:** //= require jquery //= require jquery_ujs //= require bootstrap //= require_tree . It dosent work, nothing shows up. Any help would be appreciated.
0
[ 2, 184, 20, 3042, 40, 5784, 9801, 112, 20624, 3772, 5511, 13, 8, 2240, 18, 203, 800, 3726, 3726, 31, 589, 749, 20, 3042, 40, 12797, 13310, 26, 352, 20624, 3772, 15, 31, 638, 19, 21, 2240, 18, 203, 4865, 9, 13, 1409, 15895, 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...
What is wrong with with my jQuery AJAX request? === I am trying to make an jQuery $ajax GET request to an ASPX-page returning an XML document but is not able to get it to work. What am I doing wrong? **jQuery** $(document).ready(function() { $("#loading").show(); $.ajax({ type: "GET", url: "http://www.url.com/reports/xml.aspx", dataType: "xml", success: parseXml }); function parseXml(xml) { $(xml).find("Year").each(function() { $("body").append( $(this).find("RevenueYear").text() + '<br />' }); }});​ **HTML** <!DOCTYPE html> <html> <head> </head> <body> </body> </html> ​**XML** <root> <Year> <RevenueYear>2011</RevenueYear> <RevenueType>actual</RevenueType> </Year> <Year> <RevenueYear>2012</RevenueYear> <RevenueType>estimate</RevenueType> </Year> </root>
0
[ 2, 98, 25, 1389, 29, 29, 51, 487, 8190, 93, 20624, 3772, 60, 800, 3726, 3726, 31, 589, 749, 20, 233, 40, 487, 8190, 93, 5579, 6881, 7522, 164, 3772, 20, 40, 28, 306, 396, 8, 6486, 2485, 40, 23504, 4492, 47, 25, 52, 777, 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...
cant find R.java === Am new to android. I just started studying android and for practicing i created a project "Temperature Converter" under package "de.vogella.android.temperature" and main activity as "ConvertActivity". On creating project I found errors in 1. ConvertActivity.java as R.cannot b resolved 2. AndroidManifest.xml file as "the markup in document following the root element must be well formed" 3. no R.java in gen folder
0
[ 2, 2973, 477, 761, 9, 1004, 1385, 800, 3726, 3726, 589, 78, 20, 13005, 9, 31, 114, 373, 4493, 13005, 17, 26, 13640, 31, 679, 21, 669, 13, 7, 9577, 2615, 6418, 25893, 7, 131, 6030, 13, 7, 546, 9, 2625, 263, 2120, 9, 290, 18524,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Haskell building a list of tuples === I am trying to build a list of tuples. Input is a list of tuples [([char], int1, int2), ...] and the output is the list of tuples such that [([char], int1, int2, (int1/int2)), ...]. I know that this code below is wrong because I think it is building a list of lists of tuples [[(),(),(),()], [(),(),(),()]]. Code: {- take a list of labels, values, and weights and return list of labels and fractions -} fraclist [] = [] fraclist x = [ (y,r,q,z) : y <- first (head x) | r <- scnd (head x) | q <- last (head x) | z <- r/q ] : fraclist tail x {- helper func to get values from tuples -} frst (a,b,c) = a scnd (a,b,c) = b last (a,b,c) = c How might I get the proper output form as described? Also, how might I output the list of tuples ordered such that the z's are in descending order?
0
[ 2, 63, 16507, 353, 21, 968, 16, 2289, 18534, 800, 3726, 3726, 31, 589, 749, 20, 1895, 21, 968, 16, 2289, 18534, 9, 6367, 25, 21, 968, 16, 2289, 18534, 636, 5, 2558, 5433, 500, 15, 19, 38, 165, 15, 19, 38, 135, 6, 15, 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...
HTML accesskey 'e' not working in Chrome === I assigned access key <kbd>e</kbd> to email input field in a simple html form. I am currently testing this in chrome. So on pressing <kbd>Alt</kbd> + <kbd>e</kbd>, instead of switching focus to the email input field, the Chrome menu get activated. How should I go around with this? How to gain focus to the input element on pressing <kbd>Alt</kbd> + <kbd>e</kbd>. Any ideas? Thanks
0
[ 2, 13, 15895, 1381, 4237, 13, 22, 62, 22, 52, 638, 19, 13, 12985, 800, 3726, 3726, 31, 2467, 1381, 1246, 13, 1, 18167, 43, 1, 62, 1, 118, 18167, 43, 1, 20, 8517, 6367, 575, 19, 21, 1935, 13, 15895, 505, 9, 31, 589, 871, 4431...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 you build 10.7 applications with xcode 3? === Can you build Mac SDK 10.7 applications without having Mac SDK 10.7? Such as with an old Xcode? Or do you need a new one? And what's the earliest 10.7 SDK was included in Xcode?
0
[ 2, 92, 42, 1895, 332, 9, 465, 3767, 29, 993, 9375, 203, 60, 800, 3726, 3726, 92, 42, 1895, 1572, 13, 18, 43, 197, 332, 9, 465, 3767, 366, 452, 1572, 13, 18, 43, 197, 332, 9, 465, 60, 145, 28, 29, 40, 315, 993, 9375, 60, 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...
Time Complexity of two loops === I have two loops written in C whereby the first runs `n` times, where `n` is the length of an input string. Assume the input string is: `*& 201 +ACD 3491 AASD 3`. The loop will scan each character, and if a digit is encountered, it will calculate the length of the digit, and increment a pointer by that distance. So when the pointer `p` points to `2` and reads an integer, it will `sscanf` the number (`201`) and increment `p` by 3. Two nested loops where one runs `N` times and the other runs `M` times have a time complexity of `O(N * M)`. Would it be safe to say that the time complexity in my algorithm is also `O(N * M)`, where `M` is the number of digits scanned at that particular iteration? If not, what would be the time complexity for the whole thing?
0
[ 2, 85, 12745, 16, 81, 19661, 800, 3726, 3726, 31, 57, 81, 19661, 642, 19, 272, 15630, 14, 64, 1461, 13, 1, 103, 1, 436, 15, 113, 13, 1, 103, 1, 25, 14, 1476, 16, 40, 6367, 3724, 9, 7158, 14, 6367, 3724, 25, 45, 13, 1, 2483...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Trying to pass multiple numbers into an array === So, I'm trying to find a way to put a list or something ('list' not being the actual Java definition of 'list', instead the vernacular usage) of numbers into an array. It would go like this: Land FlintsFinger = new Land(0,0,1,0,9, 1 2 3); With the latter digits then going into the array in Land(ignore the other numbers). Is there any syntax to do this on the fly? I know in Python there are tuples, but are there any such things in Java? Thanks!
0
[ 2, 749, 20, 1477, 1886, 2116, 77, 40, 7718, 800, 3726, 3726, 86, 15, 31, 22, 79, 749, 20, 477, 21, 161, 20, 442, 21, 968, 54, 301, 13, 5, 22, 5739, 22, 52, 142, 14, 3463, 8247, 5465, 16, 13, 22, 5739, 22, 15, 700, 14, 2119...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Webkit Wrapper for Desktop Apps === I have a desktop app based on HTML/JS that needs WebKit to function at a reasonable speed. Normally, I would live with IE behaving badly, but its JS engine is just too slow. I would normally go to Appcelerator for this, but it seems they have discontinued their desktop SDK and left it for the "community"... This needs to function on Windows PCs, or I would just use Fluid (http://fluidapp.com)... Is there a simple Webkit wrapper that I can use, or should I build one really quick in something like Qt. I haven't used Qt in a while, so I'd have to look at it again and make sure WebKit is implemented in it...
0
[ 2, 2741, 13703, 28051, 26, 17404, 4865, 18, 800, 3726, 3726, 31, 57, 21, 17404, 4865, 432, 27, 13, 15895, 118, 728, 18, 30, 2274, 2741, 13703, 20, 1990, 35, 21, 9954, 1362, 9, 4147, 15, 31, 83, 515, 29, 13, 660, 44, 13693, 5730,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create WPF-Window in second GUI-Thread modal to MainWindow of Main-UI-Thread === I create in my application a second UI-Thread where I am showing a ProgressWindow (Window with a ProgressBar for Waiting). Now, it is possible, that the User click on the MainWindow of the Main-UI-Thread and then it will come in front when I update the ProgressWindow in the second UI-Thread. How can I prevent this?
0
[ 2, 1600, 619, 7721, 8, 27508, 19, 153, 9457, 8, 96, 10647, 13, 20756, 20, 407, 27508, 16, 407, 8, 5661, 8, 96, 10647, 800, 3726, 3726, 31, 1600, 19, 51, 3010, 21, 153, 13, 5661, 8, 96, 10647, 113, 31, 589, 3187, 21, 3455, 2750...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
AJAX Global Array Storage === Long story short, I'm trying to store corresponding data values from a JSON returning AJAX into these global arrays. I know that the arrays are constructing correctly because I've put alerts within AJAX, but when I put it outside the AJAX, the array is still undefined. How can I export either the entire popData JSON object to work on it and store the values in the global arrays or get the populating of the arrays in the AJAX to carry outside the call? I need these arrays to be accessible by another function to compare the population values to a narrow range of values selected by the user--if anyone wants to suggest a better way of doing this, but it has to pull the population values onLoad which is already done in the HTML. I think this is the most streamlined way to do that with the fewest AJAX calls on the server, but I'm open to suggestions! :D var popProducers = new Array(); var popProducersCount = new Array(); function getPopulationInfo(){ $.ajax({ url:phpURL, cache:false, dataType:"json", data: { }, success:function(popData){ for (i=0;i<popData.length;i++){ //producers and producersCount should be the same length at all times! //If current producer name isn't in array already if(popProducers.indexOf(popData[i].ProducerName) == -1){ //add new element to represent new producer quantity (producerCount.length returns number of elements in the array, thus if there are no elements = 0 thus making index 0 equal to 1 and so on) popProducersCount[popProducersCount.length] = 1; //Adds the producer name to the list of producers popProducers[popProducers.length] = popData[i].ProducerName; } else { //Otherwise, it will increment the index of the producersCount array corresponding with the pre-existing producer name's index by 1 popProducersCount[popProducers.indexOf(popData[i].ProducerName)] += 1; } } } }); alert("Population Data Alert: " + popProducers);
0
[ 2, 20624, 2062, 7718, 4326, 800, 3726, 3726, 175, 609, 502, 15, 31, 22, 79, 749, 20, 1718, 7265, 1054, 4070, 37, 21, 487, 528, 2485, 20624, 77, 158, 2062, 7718, 18, 9, 31, 143, 30, 14, 7718, 18, 50, 18660, 12044, 185, 31, 22, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Browser race conditions leading to blank or corrupt cookies? === Is it possible for a browser to occasionally blank out a cookie, especially if it hasn't finished writing the cookie before the page changes? We happen to have a cookie that changes every request. Lately we switched over so that cookies are written via an ajax request. The code (which happens to be in PHP) looks like this: Request Cookie: xyz ... Response Ajax Request Cookie: xyz ... Ajax Response with Set-Cookie: xyz... This happens with every page request, however it seems that occasionally we see the cookie being blanked out on the browser side. Also is it possible with a cookie that changes every request for some chance of corruption?
0
[ 2, 16495, 764, 2039, 1005, 20, 6463, 54, 11305, 19396, 60, 800, 3726, 3726, 25, 32, 938, 26, 21, 16495, 20, 4533, 6463, 70, 21, 19980, 15, 1118, 100, 32, 9979, 22, 38, 842, 1174, 14, 19980, 115, 14, 2478, 1693, 60, 95, 2384, 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...
Blackist webistes htaccsess === I fund a guide that helps blacklist certain website from accsessing your site , RewriteCond %{HTTP_REFERER} ^http://.*somebadforum\.com [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*example\.com [NC,OR] RewriteCond %{HTTP_REFERER} ^http://.*lastexample\.com [NC] but it does not say if it is including subdomains we have websites that are trying to attack us by placing a image link to unexisting file on our website which results in 404 and couple thousand hits and you are toast we cant even find IP on some of them and some , IP to google US domains are someblo.blogspot DOT com someblo.blogspot DOT com DOT br someblo.blogspot DOT com DOT mn someblo.blogspot,gogo DOT mn can someone please enlighten us so we can block these morons thank you!
0
[ 2, 319, 702, 2741, 17012, 18, 13, 17134, 3384, 7202, 18, 800, 3726, 3726, 31, 2780, 21, 3378, 30, 7778, 319, 5739, 1200, 2271, 37, 7602, 7202, 18, 68, 154, 689, 13, 15, 27891, 1126, 43, 13, 11881, 1, 21127, 1, 99, 2407, 106, 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...