pid
int64 2.28k
41.1M
| label
int64 0
1
| text
stringlengths 1
28.3k
|
---|---|---|
16,783,198 | 0 | <p>I haven't done that kind in <code>AsyncTask</code> but you can try perform the second task inside the <code>doInBackground{}</code> of the first task.</p> <pre><code>@Override protected String doInBackground(Object... objs) { . . . new ClientEspejoAsyncTask().execute(objs[0]); } </code></pre> <p>but i would recommend you to use Thread instead for this kind of concept. <a href="http://www.tutorialspoint.com/java/java_thread_synchronization.htm" rel="nofollow">http://www.tutorialspoint.com/java/java_thread_synchronization.htm</a></p> |
23,716,783 | 0 | Subquery returns more than 1 row i dont know <p>When i trying get the "tytul" field i catch this error</p> <pre><code> SELECT f.*, (SELECT MAX(e) FROM seriale WHERE s = MAX(k.s) AND id_serialu = f.id) as e, MAX(k.s) as s, (SELECT tytul FROM seriale c WHERE c.s = s AND c.e = e) as tytul FROM serial f LEFT JOIN seriale k ON f.id=k.id_serialu GROUP BY f.id ORDER BY f.id DESC LIMIT 25 </code></pre> |
14,306,925 | 0 | How do I add a string to browser's auto-complete popup? <p>Here is what google login screen looks like:</p> <p><img src="https://i.stack.imgur.com/NUGyI.png" alt="text suggestions"></p> <p>you click it and a list of suggestions pops out.</p> <p>I'd like to do something similar on my own website, where the user would click on the input, and a list of javascript populated suggestions would pop out (or the list of past searches together with my suggestions).</p> <p>How can I do this using javascript?</p> |
35,729,161 | 0 | <p>Your JSX syntax was not correct. I tested this by copying your code into <a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a>. Specifically, in your <code>User</code> component, you have:</p> <pre><code><img src="{this.props.pics} /> </code></pre> <p>You need to remove the double quote from that line.</p> |
36,355,136 | 0 | Bind dynamic parameters to SQL SP with php pdo <p>This question is related to this <a href="http://stackoverflow.com/questions/36349307/sql-stored-procedure-formatting-error">SQL Stored procedure formatting error</a></p> <p>Wanna bind dynamic parameters from PHP PDO. Only getting results for one parameter(@rep=:rep). When second parameter added won't getting any out put</p> <pre><code>public function ar_report($rep,$market,$agent,$warehouse,$customername,$regionalname){ $query = "{CALL arReports(@rep=:rep,@market=:market)}"; $stmt = $this->db->prepare($query); if ($rep != "") { $stmt->bindParam(':rep', $rep); } if ($market != "") { $stmt->bindParam(':market', $market); } $stmt->execute(); $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); return $rows; } </code></pre> |
10,421,664 | 0 | <p>remove dot <strong>.</strong> after <code>$.("</code></p> <pre><code>$("#test1").click( function () { $ratio = 1; }); $("#test2").click( function () { $ratio = 2; }); </code></pre> |
35,594,745 | 0 | how to add an offset and limit with join query? <p>I'm new to codeigniter ,and I have done the below code </p> <pre><code>public function members($limit, $offset) { $this->load->model('Management/Member_model', 'member'); $this->db->reset_query(); $this->db->select('*'); $this->db->from($this->member->table); $this->db->join('ib_communities_dtl','ib_communities_dtl.dtl_user_id='.$this->member->table.'.user_id','inner'); $this->db->join('ib_communities','ib_communities_dtl.dtl_community_id=ib_communities.community_id','inner'); $this->db->where('ib_communities.community_id', $this->community_id); return $this->db->get()->result('Member_model'); } </code></pre> <p>I want to add offset and limit to the above query , can anyone help me modify it to accomplish that?</p> <p>Thanks in advance </p> |
6,851,475 | 0 | <p>There are two things you aught to keep in mind when trying to optimize network bandwidth.</p> <p>The first is that you have to transfer about 40 bytes of overhead every time you want to talk to the peer. That's just inherent in IP. Trying to get communication down to a single byte is often a false economy. What you should be doing is making the best of the round trip: combine the message with as much additional data as the peer <em>might</em> later need. To a limited extent, the Nagle algorithm already takes care of this for naive services, delaying the packet until the peer actually indicates that it's ready for more data, and that's usually sufficient.</p> <p>The second is that, at typical MTU scales, it's almost impossible to design an uncompressed, binary protocol that's more space efficient than a simpler protocol that is tunneled using general purpose compression. There is no "packed binary http" because the gzipped ascii transfer encoding would beat it anyways. When bandwidth is a concern, always include compression. All that's left is to make sure that your protocol is "easy" to compress. </p> |
29,344,631 | 0 | Getting a datetime to php from javascript array <p>I'm working with a JQuery datetime picker and am trying to save the selected date time into the php variable in order to save it into mysql database. I've seen alot of different eaxmples on here and have tried a few but none seem to be working for me. The output of the date time seems to be outputed to an array, this is where i am having difficulty before conversion.</p> <p>this is my JQuery picker and posting method: </p> <pre><code>$(function () { $('*[name=date2]').appendDtpicker({ "inline": true, "allowWdays": [1, 2, 3, 4, 5], // 0: Sun, 1: Mon, 2: Tue, 3: Wed, 4: Thr, 5: Fri, 6: Sat "futureOnly": true, "autodateOnStart": false }); $('#btn_input').on('click', function () { var input = $('*[name=date2]').handleDtpicker('getDate'); console.log(input); $.post("backend.php", { 'input': input }).done(function (data) { alert("Server Response: " + data); }); }); }); </code></pre> <p>This is the backend.php:</p> <pre><code><?php session_start(); print_r($_POST); ?> </code></pre> <p>and finally this is the output in the alert:</p> <pre><code>Server Response: Array ( [input] => Tue Mar 31 2015 11:20:00 GMT+0100 (GMT Standard Time) ) </code></pre> <p>and the output if backend.php is run:</p> <pre><code>Array ( ) </code></pre> <p>If anyone can point me in the right direction i appreciate all the help, new to php and very confused!</p> |
31,869,705 | 0 | <p>I got this answer by casting value into dacimal.</p> <p><strong>SET p_percentage = DECIMAL(((p_obtain_marks * 100)/p_total),3,2);</strong></p> <p>Thanks Henrik Loeser and Alex.</p> |
36,102,038 | 0 | <p>First modify your tableView:cellForRowAtIndexPath: implementation as follows. Then you need to implement the click handler. One way would be in the MyCell class. Another would be to override <a href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITableView_Class/index.html#//apple_ref/occ/instm/UITableView/selectRowAtIndexPath:animated:scrollPosition:." rel="nofollow">selectRowAtIndexPath</a>. Without knowing more about what you want (e.g. multiple vs single selection), it's hard to give actual code but here's something.</p> <pre><code>BOOL clickedRows[MAX_ROWS]; // Init this array as all false in your init method. It would be better to use NSMutableArray or something similar... // selectRowAtIndexPath code int row = indexPath.row if(clickedRows[row]) clickedRows[row]=NO; // we reverse the selection for the row else clickedRows[row]=YES; [self.tableView reloadData]; // cellForRowAt... code MyCell *cell = [tableView dequeueResuableCell... if(cell.clicked) { // Nice Nib [tableView registerNib:[UINib nibWithNibName... for CellReuse... } else { // Grey Nib [tableView registerNib:[UINib nibWithNibName... for CellReuse... } </code></pre> |
33,873,782 | 0 | <p>Thanks alvas for summing it up so nicely, this would help other people too. Moreover I also find any version of the Reuters dataset which has relatively less number of categories. This article <a href="http://www.datalyzers.com/downloads/reuters-21578-dataset-for-text-classification/" rel="nofollow">here</a> explains it better.</p> |
32,460,271 | 0 | <p>You could modify the ioslide template to remove the repetition of the logo on each page. Download the template <a href="https://github.com/rstudio/rmarkdown/blob/3d46213d750fd4ebb83e73d0df357f081c73f49f/inst/rmd/ioslides/default.html" rel="nofollow">on the rmarkdown github repository</a> or find your local version on your computer. Remove the following part:</p> <pre><code>$if(logo)$ slides > slide:not(.nobackground):before { font-size: 12pt; content: ""; position: absolute; bottom: 20px; left: 60px; background: url($logo$) no-repeat 0 50%; -webkit-background-size: 30px 30px; -moz-background-size: 30px 30px; -o-background-size: 30px 30px; background-size: 30px 30px; padding-left: 40px; height: 30px; line-height: 1.9; } $endif$ </code></pre> <p>Save the resulting file as <code>default.ioslides</code> in your pandoc home:</p> <pre><code>$HOME/.pandoc/templates (unix) C:\Documents And Settings\USERNAME\Application Data\pandoc\templates (windows XP) C:\Users\USERNAME\AppData\Roaming\pandoc\templates (windows 7) </code></pre> <p>The <code>logo</code> linked in your yaml front matter should now only appear on the title slide.</p> <p>(I answered a similar question <a href="http://stackoverflow.com/a/30955475/4132844">here</a>)</p> |
7,743,588 | 0 | <p>There's not much to go on here but it sounds like you are looking for the Admin Skin functionality. The admin skin is the skin used when you are editing the contents of a module.You can specify the Admin skin in Site Settings. There are definitely cases, and I suspect this is one of them, where it's helpful to have a separate Admin skin.</p> <p>But generally, I'm not aware of any cases where DotNetNuke will prevent you from doing something you can do outside of DNN. There really are no limitations in it's skinning implementation, as it exposes the full capabilities of ASP.NET. The only caveat is sometimes some additional unwanted markup is added around your content. With DNN6, they are making the rendering of lots of elements cleaner and more semantic.</p> |
30,456,412 | 0 | <p>SQL server specially don't have any function to add and subtract time but if you need you can use </p> <pre><code>DATE_SUB() DATE_ADD() </code></pre> <p>By putting same date in each time <a href="http://www.w3schools.com/sql/func_date_add.asp" rel="nofollow">http://www.w3schools.com/sql/func_date_add.asp</a></p> <p><a href="http://www.w3schools.com/sql/func_date_sub.asp" rel="nofollow">http://www.w3schools.com/sql/func_date_sub.asp</a></p> |
33,565,196 | 0 | <p>Just use </p> <pre><code>onblur="fnx()" </code></pre> <p>It may work!! </p> |
7,386,070 | 0 | <p>You could take a look at <a href="http://stackoverflow.com/questions/2772908/max-size-ipad-iphone-offline-application-cache/2784859#2784859">this</a>. </p> <p>Try repeating the process of increasing the manifest in chunks less than 5MB before updating the cache with <code>window.applicationCache.update()</code> and you should be able to pass the 10mb limit</p> |
14,291,778 | 0 | <h1>Analysis</h1> <p>The <code>propertyChanged</code> event is raised when ... a property changes. But that's not what you want to watch. You want to monitor the <code>entityAspect.entityState</code> </p> <p>When you set a property to a new value (for example <code>person.FirstName("Naunihal")</code>), you get <strong>both</strong> a propertyChanged event and a change to the entity's <code>EntityState</code>. </p> <p>When you delete the entity, the entity's <code>EntityState</code> changes ... to "Deleted". But deleting doesn't change a property of the entity. Breeze does not consider the <code>EntityState</code> itself to be a property of the entity. Therefore, there is no <code>propertyChanged</code> notification. </p> <h1>Solution</h1> <p><strong>Update Jan 12, 2013</strong> I think more people will discover this solution if I rephrase the question that you asked so people understand that you want to listen for changes to <code>EntityState</code>.</p> <p>So I moved my answer to a new SO question: <a href="http://stackoverflow.com/questions/14297908/how-can-i-detect-a-change-to-an-entitys-entitystate">"<em>How can I detect a change to an entity's EntityState?</em>"</a>. Hope you don't mind following that link.</p> |
22,906,138 | 0 | <pre><code>function paging_nav() { $paged = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' ) ) : 1; $pagenum_link = html_entity_decode( get_pagenum_link() ); $query_args = array(); $url_parts = explode( '?', $pagenum_link ); if ( isset( $url_parts[1] ) ) { wp_parse_str( $url_parts[1], $query_args ); } $pagenum_link = remove_query_arg( array_keys( $query_args ), $pagenum_link ); $pagenum_link = trailingslashit( $pagenum_link ) . '%_%'; $format = $GLOBALS['wp_rewrite']->using_index_permalinks() && ! strpos( $pagenum_link, 'index.php' ) ? 'index.php/' : ''; $format .= $GLOBALS['wp_rewrite']->using_permalinks() ? user_trailingslashit( 'page/%#%', 'paged' ) : '?paged=%#%'; $links = paginate_links( array( 'base' => $pagenum_link, 'format' => $format, 'total' => $GLOBALS['wp_query']->max_num_pages, 'current' => $paged, 'mid_size' => 1, 'add_args' => array_map( 'urlencode', $query_args ), 'prev_text' => __( 'Previous Page ' ), 'next_text' => __( 'Next Page' ), ) ); echo $links ; </code></pre> |
3,452,327 | 0 | C# Adding one more option to PictureBox <p>i was wondering how could i add .customString to PictureBox object.<br> Something like:</p> <pre><code>PictureBox box = new PictureBox(); box.CustomString = "string here"; </code></pre> <p>And then later on i would be access it.</p> <pre><code>MessageBox.Show(boxname.CustomString); </code></pre> <p>Thank you.</p> |
21,755,538 | 0 | Nginx proxy rewrite configuration <p>it is possible to rewrite a url and use a proxy server for backgound connection?</p> <p>An example, I want to use this URL <code>my.domain.org/demo</code> on my proxy server and redirect this into the root directory of my tomcat on another server with proxy_pass <code>my.tomcat.local</code>.</p> <p>The url must be place <code>my.domain.org/demo</code> and must used the proxy url <code>my.tomcat.local</code> (without any subdomains). Is this hook possible?</p> <p>Thanks !!!!</p> |
4,836,625 | 0 | How to update table values using regular expression? <p>Hi is it possible to update email and website links using regular expression. in my wordpress post meta table I loss all metakey values. I have the meta values only. is it possible to check the meta value like email or site links using regular expression and update ?</p> |
22,383,216 | 0 | Trying to use CASE in APEX function <p>I am trying to create a fucntion that will read in the value of a column, that is either "H", "C" or "N" and return "Hot", "Cold" or "None", but the case statement i have written keeps casuing this error: </p> <p><code>Error at line 5: PL/SQL: Statement ignored</code></p> <p>Here is my code, i'm not sure what i'm doing wrong, and the error is typically vague.</p> <pre><code>CREATE OR REPLACE FUNCTION refreshment( code IN string) RETURN STRING IS BEGIN RETURN( CASE code WHEN "H" THEN "Hot" WHEN "C" THEN "Cold" WHEN "N" THEN "None" END ); END; </code></pre> |
39,697,560 | 0 | <p>Orientation attribute is per activity so you can declare the orientation for only the activity that contains the fragment so that it is in landscape and the rest of the activities will remain as they are.</p> <p>So you need set orientation in onCreateView of each fragment Plse Check below code:</p> <p>FragmentA </p> <pre><code> public class FragmentA extends Fragment { @Override public View onCreateView(LayoutInflater inflater,ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_a, container, false); changeFragmentOrientation(); return view; } } public void changeFragmentOrientation(){ getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); } </code></pre> <p>FragmentB</p> <pre><code>public class FragmentB extends Fragment { @Override public View onCreateView(LayoutInflater inflater,ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_b, container, false); changeFragmentOrientation(); return view; } } public void changeFragmentOrientation(){ getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); } </code></pre> |
22,711,940 | 0 | AWK : Field Separator as Double Pipes or more <p>My data:</p> <pre><code>-1||"A|AA"||aaa@ymail -10||"B ||B|ttB||b|| bb@ymail -7||C||c </code></pre> <p>I want to exchange the double pipe delimiters <code>||</code> with a comma <code>,</code> like this:</p> <pre><code>awk -F'||' -v OFS="," '{$1=$1} 1' 2.txt </code></pre> <p>but the output remains the same. The reverse case (comma delimiter to double pipe), however, works:</p> <pre><code>awk -F"," -v OFS="||" '{$1=$1} 1' 1.txt </code></pre> <p>What am I doing wrong?</p> |
29,863,166 | 0 | <p>Just use the <code>Cache-Control: no-cache</code> header.<br> Implement it as delegating-Handler and make sure your header is applied (with MS Owin Implementation hook up on <code>OnSendingHeaders()</code>. I'm using it here <a href="https://github.com/StefanOssendorf/SecurityHeadersMiddleware/blob/master/src/OwinContrib.SecurityHeaders/ContentSecurityPolicyMiddleware.cs" rel="nofollow">OnSendingHeaders() Example</a>).</p> |
15,520,820 | 0 | Populate ListView from XML file <p>I have the following sample XML file from which i need to poplutate a ListView. I've been playing for hours but I don't know the best way to go about it. I want to use Linq to achieve this but my knowledge is somewhat lacking. It is a Winforms c# project.</p> <pre><code><DMs> <dataModule> <DMC>11111</DMC> <techName>Test Techname 1</techName> <infoName>info 1</infoName> <status>complete</status> <notes>Note 1</notes> </dataModule> <dataModule> <DMC>22222</DMC> <techName>Test Techname 2</techName> <infoName>info 2</infoName> <status>in work</status> <notes>Note 2</notes> </dataModule> <dataModule> <DMC>33333</DMC> <techName>Test Techname 3</techName> <infoName>info 3</infoName> <status>QA required</status> <notes>Note 3</notes> </dataModule> </DMs> </code></pre> <p>I have the following very basic code which successfully populates the first column of the listview with the DMC element text, but i need the sibling elements (techName, infoname, status and notes) to populate the other columns of the listview.</p> <pre><code>XDocument doc = XDocument.Load(CSDBpath + projectName + "\\Data.xml"); var DMCs = from item in doc.Descendants("dataModule") select item.Element("DMC").Value; foreach (var dmc in DMCs) { ListViewItem item = new ListViewItem(dmc); listView1.Items.Add(item); } </code></pre> |
13,516,169 | 0 | <p>The code you need is as following:</p> <pre><code>Context context = instrumentation.getTargetContext(); PreferenceManager.getDefaultSharedPreferences(context).edit().clear().commit(); </code></pre> <p>If your application uses any different shared preferences you may need to clear them too in the following way:</p> <pre><code>context.getSharedPreferences("XXX", Context.MODE_PRIVATE).edit().clear().commit(); </code></pre> |
31,610,939 | 0 | How to winforms C# application having two image folder? <p>I have a situation that there are two image folders containing images. These image folder are dynamically populated with images. I have made these image folder under project directory of visual studio. Its working fine before publishing. After publishing, one image folder gives me images but for the next one I am not getting any images .</p> <p>I have made all images property as <code>Build</code> in action as <code>Content</code> and copy always </p> |
18,645,452 | 0 | <p>try </p> <p>author_name as 'John O'Mahony'.</p> |
9,521,750 | 0 | Facebook API crashed after changing hosting server <p>I implemented the Facebook API on my website and everything was working fine. Two days ago I moved my website to another server and the Facebook API stopped working. I reset my APP Secret Key thinking that it may fix the problem but it didn't.</p> <p>The javascript works fine. I can connect using it but when I try to get the user with php it says some error like this: <strong>Uncaught OAuthException: Error validating application.</strong></p> <p>Thanks for your help</p> |
26,660,097 | 0 | <p>Try this:</p> <pre><code>public function show_image() { // this returns "keepcalm.png" $remoteImage = $this->get_local_link_from_id($this->imageid); // Set Header header("Content-Type: image/png"); // More info: http://stackoverflow.com/a/2086406/2332336 // Output the contents of image readfile($remoteImage); exit; } </code></pre> <p>If this doesn't work for you, it means PHP is not able to locate the local image <code>keepcalm.png</code> Possibly because it doesn't exist here: <code>http://niederrad.no-ip.org/portal/keepcalm.png</code> (i.e. from the script (<code>image_get.php</code>) execution location <code>http://niederrad.no-ip.org/portal/</code>)</p> <p>If this is the case, you might have to tell your <code>readfile()</code> command where the image is located on your server. By that I mean specify the absolute path to file (on linux server <code>/home/USERNAME/public_html/images/</code> for example)</p> <p>If the image is on a remote server (as your variable name suggests), then your code should look like this:</p> <pre><code> // Output the contents of image exit(file_get_contents('http://remote-site.com/path/to/'. $remoteImage)); </code></pre> <p>Assuming your PHP config has <code>allow_url_fopen</code> set to true.</p> |
26,589,849 | 0 | <p>I finally found a solution so I thought I'd share.</p> <p>To start with it turns out I was editing an old index file so any changes weren't taking affect. Once I realised this I noticed I was including cordova.js <strong>twice</strong>, once in the head and once below the body, this was causing the following error to occur </p> <pre><code>module org.apache.inappbrowser does not exist </code></pre> <p>I removed this but still couldn't get the plugin to work, I used the CLI to add and remove the plugin several times but still no joy.</p> <p>After hours of digging I realised I had old redundant plugin code in several different directories, I deleted all plugins from the following directories, along with the android.json file:</p> <pre><code>[my_project]/plugins [my_project]/platforms/android/src/org/apache/cordova/inappbrowser [my_project]/platforms/android/cordova/plugins/ [my_project]/platforms/android/assets/www/plugins </code></pre> <p>Once I had removed all this I then added the plugin</p> <pre><code>cordova plugin add org.apache.cordova.inappbrowser </code></pre> <p>This appears to have fixed everything for me so hopefully it'll help someone else!</p> |
19,751,094 | 0 | Valgrind out of memory <p>This is the message I get when valgrind crashes and stops profiling my app: </p> <pre><code> ==16317== ==16317== Valgrind's memory management: out of memory: ==16317== newSuperblock's request for 4194304 bytes failed. ==16317== 3013349376 bytes have already been allocated. ==16317== Valgrind cannot continue. Sorry. ==16317== ==16317== There are several possible reasons for this. ==16317== - You have some kind of memory limit in place. Look at the ==16317== output of 'ulimit -a'. Is there a limit on the size of ==16317== virtual memory or address space? ==16317== - You have run out of swap space. ==16317== - Valgrind has a bug. If you think this is the case or you are ==16317== not sure, please let us know and we'll try to fix it. ==16317== Please note that programs can take substantially more memory than ==16317== normal when running under Valgrind tools, eg. up to twice or ==16317== more, depending on the tool. On a 64-bit machine, Valgrind ==16317== should be able to make use of up 32GB memory. On a 32-bit ==16317== machine, Valgrind should be able to use all the memory available ==16317== to a single process, up to 4GB if that's how you have your ==16317== kernel configured. Most 32-bit Linux setups allow a maximum of ==16317== 3GB per process. ==16317== ==16317== Whatever the reason, Valgrind cannot continue. Sorry. </code></pre> <p>I 've tried using huge swap files but it doesn't get better. The crash happens long before my swap file is nearly full. I 'm using Fedora 19. Does anyone know anything about this?I think I read something on the internet about how there may be a limit to the memory a single process can allocate.If this is the case ,where can I set it?At least give me a good alternative to valgrind people :P.</p> <p>Thanks in advance</p> |
24,264,857 | 0 | <p>The two relevant pieces of code that are conflicting with each other are:</p> <pre><code>removeByValue(myArray, new Date(year, month, day)); if (arr[i].begin == val) { </code></pre> <p>You are creating a brand new object and then checking if it is the same object as an object that already existed. It can't be. It's brand new.</p> <p>Instead of reference equality, if you can trust that <code>arr[i].begin</code> is a date, then you perhaps want a date comparison:</p> <pre><code>if (arr[i].begin.getTime() === val.getTime()) { </code></pre> <p>This takes both dates and converts them to an integer representation of the number of millisecond since 1970, then makes sure those integers match.</p> |
11,004,959 | 0 | <p>That article "<a href="http://www.art-coder.com/2010/06/20/little-bit-about-encoding/" rel="nofollow">Little bit about encoding</a>" should help you with your problem.</p> |
36,589,961 | 0 | <p>Try it!!!!</p> <pre><code>@Override public void onReceive(Context context, Intent intent) { Notification notification = null; String action = intent.getAction(); if(action.equalsIgnoreCase("com.example.app.ACTION_PLAY")){ if(mp.isPlaying()) { notification.contentView.setViewVisibility(R.id.pause, View.INVISIBLE); notification.contentView.setViewVisibility(R.id.play, View.VISIBLE); mp.pause(); } else { notification.contentView.setViewVisibility(R.id.play, View.INVISIBLE); notification.contentView.setViewVisibility(R.id.pause, View.VISIBLE); mp.start(); } } } </code></pre> |
154,582 | 0 | <p><strong>EDIT:</strong> As noted in comments, these days I'm happy to use <code>Interlocked</code> for the cases of a <em>single variable</em> where it's <em>obviously</em> okay. When it gets more complicated, I'll still revert to locking...</p> <p>Using <code>volatile</code> won't help when you need to increment - because the read and the write are separate instructions. Another thread could change the value after you've read but before you write back.</p> <p>Personally I almost always just lock - it's easier to get right in a way which is <em>obviously</em> right than either volatility or Interlocked.Increment. As far as I'm concerned, lock-free multi-threading is for real threading experts, of which I'm not one. If Joe Duffy and his team build nice libraries which will parallelise things without as much locking as something I'd build, that's fabulous, and I'll use it in a heartbeat - but when I'm doing the threading myself, I try to keep it simple.</p> |
31,948,662 | 0 | <p>You should be able to configure these mappings using either Data Annotations or the Fluent API. Here's a sample of how you might do it using the annotations:</p> <pre><code>[Table("Clients")] class Client { [Key] public int Client_Id {get;set;} public virtual ICollection<Note> Notes {get;set;} } [Table("Notes")] class Note { [Key] public int Note_Id {get;set;} public int Account_Id {get;set;} [ForeignKey("Account_Id")] public virtual Client Client {get;set;} } </code></pre> |
39,287,113 | 0 | How to mock a Wicket component <p>I am trying to unittest a wicket panel with the help of WicketTester and Spock/Mockito.</p> <p>In this panel, a <code>ModalWindow</code> (confirmation dialog) is show in a good case scenario.</p> <p>I want to validate this dialog will be shown, so I tried to mock the component, inject it into the panel and test if the <code>show</code> method is called. This won't work, as Wicket throws the following error:</p> <pre><code>java.lang.IllegalStateException: org.apache.wicket.Component has not been properly detached. Something in the hierarchy of X has not called super.onDetach() in the override of onDetach() method </code></pre> <p>It's not suprising a mock can not call the <code>onDetach</code> method on it's super class.</p> <p>I've tried stubbing the <code>ModalWindow</code> and using a spy to verify if the <code>show</code> method is called, but the implementation of that method has dependencies / external calls that are hard to mock.</p> <p>Which way should I approach this problem? Or shouldn't I even try to make this kind of test work?</p> |
11,497,372 | 0 | Executing a function after the previous function has finished running <p>I have a function <code>my_function()</code> which I need to run 10 times. Right now all 10 functions are running at the same time (asynchronously?). How can the next execution of the function occur after the previous one has finished?</p> <p><em><code>my_function</code> contains <code>CURL</code> calls and reading/writing to database tables. I wonder if any of these are running asynchronously</em></p> <pre><code>$repetitions = 10; for($i = 0; $i < $repetitions; $i++) { my_function($param); } </code></pre> |
26,644,824 | 0 | <p>Right off hand it looks like you're trying to reference the images and container in your JavaScript before the document is loaded. Try moving your script tag with code after (or right before) the closing <code></body></code> tag.</p> <p>Because the document hasn't fully loaded, the DOM API in JavaScript can't yet access those elements if your JavaScript is in the head.</p> |
526,733 | 0 | Maven plugin executing another plugin <p>I'm trying to create a new plugin to package my latest project. I'm trying to have this plugin depend on the maven-dependency-plugin to copy all my projects dependencies.</p> <p>I've added this dependency to my plugin's pom, but I can't get it to execute.</p> <p>I have this annotation in my plugins main Mojo:</p> <pre><code>@execute goal="org.apache.maven.plugins:maven-dependency-plugin:copy" </code></pre> <p>I've tried a few other names for the goal, like <em>dependency:copy</em> and just <em>copy</em> but they all end with a message saying that the required goal was not found in my plugin. What am I doing wrong?</p> <p>Secondary to this is where to I provide configuration info for the dependency plugin?</p> |
21,704,345 | 0 | How to use "Process Document From File" operator of RapidMiner in Java Code <p>I have just started using rapid miner for text classification. I have created a process in which i used "Process Document from Files" operator for tf-idf conversion. I want to ask how to use this operator in Java code ? I search on internet but all are using the already created process or word list generated from documents ? I want to start it from scratch i.e. </p> <p>1 ) Process Documents From File </p> <p>1.1) Tokenization</p> <p>1.2) Filtering</p> <p>1.3) Stemming</p> <p>1.4) N-Gram</p> <p>2) Validation</p> <p>2.1) Training (K-NN)</p> <p>2.2) Apply Model</p> |
38,213,858 | 0 | <p>This is a Java solution that computes the ways by basically counting them one by one. One billion ways is computed in ~ 8 seconds.</p> <pre><code>long compute(int N, int M, int[] positions, int[] dimensions) { if (M == 0) { return 1; } long sum = 0; for (int i = 0; i < N; i++) { if (positions[i] < dimensions[i]) { positions[i]++; sum += compute(N, M - 1, positions, dimensions); positions[i]--; } if (positions[i] > 1) { positions[i]--; sum += compute(N, M - 1, positions, dimensions); positions[i]++; } } return sum % 1000000007; } </code></pre> |
27,240,585 | 0 | Private namespaces for library sub-modules using prototype <p>I'm working on a large JavaScript UI module, think about something in the dimension of iScroll. For keeping the thing sane, I split the library up into several logical sub-modules (like: touch interaction, DOM interaction, etc.) that communicate with each other using a simple pubsub system.</p> <p>Each of these sub-modules has it's own namespace I use for storing variables. To enable several instances of the library running at the same time, the constructor includes some logic to copy every namespace that has been assigned to a 'toCopy' object directly into every new instance.</p> <p>The basic structure looks something like this:</p> <pre><code>// constructor function Constructor() { for (var key in this.toCopy) { // create a deep copy and store it inside the instance this[key] = utils.copyObj(this.toCopy[key]); } } Constructor.prototype.toCopy = {} // sub-module #1 Constructor.prototype.toCopy._module1Namespace = {} Constructor.prototype._privateFn = function() { /** do stuff within this._module1Namespace or send events */ } Constructor.prototype._privateFn = function() { /** do stuff within this._module1Namespace or send events */ } // sub-module #2 Constructor.prototype.toCopy._module2Namespace = {} Constructor.prototype._privateFn = function() { /** do stuff with this._module2Namespace or send events */ } Constructor.prototype._privateFn = function() { /** do stuff with this._module2Namespace or send events */ } </code></pre> <p>My problem: I really dislike having to expose the namespace of each sub-module to the rest of the library. Although I'm disciplined enough not to access the namespace of sub-module #1 within a function of sub-module #2, I want it to be technically impossible.</p> <p>However, as several instances of the UI library have to run at the same time, I cannot put every sub-module inside a closure and define a private namespace inside this closure. This would result in every instance of the library accessing the same sub-module closure and therefore the same namespace.</p> <p>Also, putting everything inside the constructor instead of into the prototype would create a new set of functions for every new instance, which somehow contradicts the idea of a good library.</p> <p>My research hasn't brought up any useful patterns for this problem so far, I'm thankful for all suggestions.</p> |
2,430,963 | 0 | <p>I ended up having to set the innerHTML of the select.</p> <p>I came up with the following extension method that has a special routine for IE6:</p> <pre><code>$.fn.setDropDownValue = function(valueToSet) { if ((!this[0].options) || (this[0].options.length == 0)) return; if ($.browser.msie && $.browser.version == 6.0) { var open = '<OPTION value=\''; var html = ''; for (var i = 0; i < this[0].options.length; i++) { var opt = $(this[0].options[i]); html += open + $(opt).val() + '\''; if (opt.val() == valueToSet) { html += ' selected'; } html += '>' + opt.html() + '</OPTION>'; } $(this).html(html); } else { this.val(valueToSet); } }; </code></pre> |
37,472,279 | 0 | Run war with tomcat in docker <p>I've followed these two post <a href="https://stackoverflow.com/questions/29201262/deploying-java-webapp-to-tomcat-8-running-in-docker-container">1</a> & <a href="https://stackoverflow.com/questions/27818856/docker-add-warfile-to-official-tomcat-image">2</a> and neither work. I'm currently building my tomcat with the below.</p> <p>Build File</p> <pre><code>FROM tomcat:8.0 COPY server/build/libs/server.war /usr/local/tomcat/webapps/server.war CMD ["catalina.sh", "run"] </code></pre> <p>Terminal</p> <pre><code>docker build -t my_server . docker run -it -rm -p 8080:8080 </code></pre> <p>When I go to <code>http:localhost:8080</code> I see the manager home page but <code>http:localhost:8080/server</code> or <code>http:localhost:8080/server/webapp/</code>do not show up. My terminal tells me that my war is getting added, but nothing that says it's expanded</p> <pre><code> INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive /usr/local/tomcat/webapps/server.war has finished in 2,518 ms </code></pre> |
22,882,564 | 0 | Go/Mgo -> []byte in MongoDB, slice of unaddressable array <p>I'm getting a:</p> <blockquote> <p>reflect.Value.Slice: slice of unaddressable array</p> </blockquote> <p>Error when I'm trying to add a sha256 hash to a mongoDB with mgo. Other []bytes work fine.</p> <pre><code>hash := sha256.Sum256(data) err := c.Col.Insert(bson.M{"id": hash}) </code></pre> <p>Any idea what the problem might be? I know I could encode the hash as a string but that should not be necessary.</p> |
20,375,665 | 0 | How to run a loop with a specific interval in casperjs? <p>I want to automate clicking a button with <code>id='vote'</code> 3 times with an interval of say 5 seconds with <strong>casperjs</strong>, for that I have written the code below</p> <pre><code> var casper = require('casper').create(); casper.start('http://www.mysite.com/mypage'); casper.repeat(3, function() { this.click('#vote'); }); casper.then(function() { console.log('clicked vote ,and voted successfully , and curernt url is ' + this.getCurrentUrl()); }); casper.run(); </code></pre> <p>But this only working once, what I want to do is to repeat the loop 3 times with a specific interval, since this is a JavaScript ajax post on clicking the vote button and it updates the database, is it doing all 3 clicks at once? What do I have to do to avoid that, and update the database 3 times?</p> |
37,190,864 | 0 | How I can show only three elements of my associative array using for? <p>This is my Associative Array:</p> <pre><code>$vetor = array( "Name"=> "myName", "Tel"=> "555-2020", "Age"=> "60", "Gender"=> "Male" ); </code></pre> <p>How I can show only three elements using the loop <code>for</code>?</p> <p>I tried this:</p> <pre><code>for($i=0; $i<=2; $i++){ echo $vetor[$i]."<br>"; } </code></pre> <p>But without success. How I can do this?</p> |
8,250,133 | 0 | <p>I haven't tested this, but it seems like it should work off the top of my head.</p> <pre><code>int spacesCount = 0; NSRange textRange; textRange = [string rangeOfString:@" "]; if(textRange.location != NSNotFound) { spacesCount = spacesCount++; } NSLog(@"Spaces Count: %i", spacesCount); </code></pre> |
12,801,761 | 0 | Force page expiration in wicket 1.5.8 <p>I'm trying to expire all previous versions of a given page with Wicket 1.5.8. In wicket 1.4, it was done by <code>getPage().getPageMap().clear()</code>. Now in wicket 1.5, page map is gone, and I can't figure out how to dot that.</p> <p>My use case is that I have a wizard (http://www.wicket-library.com/wicket-examples/wizard/) to create/edit an entity. When the wizard is submitted, the user is redirected to the entities list. At this point I don't want the user to be able to use the browser back button to go back to the wizard in the state it was, and thus want to expire previous versions of the page with the wizard (I am using <code>getPageSettings().setRecreateMountedPagesAfterExpiry(true);</code> so the mounted page will be recreated in a blank state if the page expires when the user goes back, which is what I want).</p> <p>Looking around I found the possibility to use <code>Session.get().clear();</code> which removes all pages from the Session (I don't know if the 1.4 version was removing all pages or just all versions of the page used to access the PageMap - which would be better for multi-tab support). However, using that works only partly, as the last page is not expired.</p> <p>Supposing the wizard is mounted at <code>/wizard</code>, redirecting to <code>/list</code> at the end, the flow would be something like: <code>/wizard?1</code>, <code>/wizard?2</code>, <code>/wizard?3</code>, <code>/list</code>. Now when I use the back button, <code>/wizard?3</code> is not expired, although <code>/wizard?1</code> and <code>/wizard?2</code> are as expected. The session clearing and sending to the list page are done in the <code>onFinish</code> method of the wizard, which reads like this:</p> <pre><code>@Override public void onFinish() { Session.get().clear(); Session.get().getFeedbackMessages().add(new FeedbackMessage(..)); setResponsePage(ListPage.class); } </code></pre> <p>So, come to the question itself: would anyone know how to get the expected behaviour, i.e. expiring <code>/wizard?3</code> as well?</p> <p>Thanks</p> <p>Note: <code>ListPage</code> is a bookmarkable page and I tried as well with <code>setResponsePage(new ListPage());</code></p> <hr> <p><strong>Update with what I finally did base on Andrea's suggestion</strong></p> <p>It is to be noted that my application uses a custom session object extending wicket's <code>Session</code>; let's call it <code>AppSession</code>.</p> <ol> <li>in <code>AppSession</code>, I added a <code>boolean clearRequested</code> attribute (defaults to false)</li> <li>in <code>AppSession</code>, I added a static void method <code>requestClear()</code> which is just a shortcut to set <em>clearRequested</em> to true in the session</li> <li>in the <code>onFinish()</code> of my wizard, just before calling <code>setResponsePage</code>, I call <code>AppSession.requestClear()</code></li> <li><p>lastly I just add a <code>RequestCycleListener</code> to my application.</p> <pre><code>getRequestCycleListeners.add(new AbstractRequestCycleListener() { @Override public void onBeginRequest(RequestCycle cycle) { super.onBeginRequest(cycle); AppSession session = AppSesssion.get(); if (session.isClearRequested()) { session.clear(); session.setClearRequested(false); } } }); </code></pre></li> </ol> <p>Now anytime I need to clear session after an action in order to expire pages, I juste call <code>AppSession.requestClear()</code> and in the next request the session is cleared.</p> |
22,441,824 | 0 | Windows batch way to replace all files in subdirectories with singular file (copy, rename all files) <p>I have a good command over <code>cmd</code> commands, but this may require a variable or a loop which is where I fail in batch commands. Please help if you can!</p> <p>-- Have about 100 subdirectories each has 1-20 HTML files in it. There are about 100 HTML files in the root directory too. -- Need to replace all HTML files in the above directories with the same HTML source (copy over existing file and keep the name the same). Basically trying to replace all existing files with a redirect script to a new server for direct bookmarked people. We are running a plain webserver without access to server-side redirects so trying to do this just by renaming the files (locked down corp environment).</p> <p>Seems pretty simple. I can't get it to work with wildcards by copying the same file over to replace. I only get the first file replaced, but the rest of the files will fail. Any one with any advice?</p> |
37,954,321 | 0 | In Rails, why do I get a "can't write unknown attribute" when I try and save my model with non-nil state and country member fields? <p>I’m using Rails 4.2.3. I have the following model …</p> <pre><code>class MyObjectTime < ActiveRecord::Base belongs_to :my_object has_one :state has_one :country </code></pre> <p>I’m having an issue when I try and save my entity with non-empty state and country objects. I have</p> <pre><code> state = State.find_by_iso_and_country_id(hometown_parts[1].strip!, us_country.id) country = state.country my_object_time = MyObjectTime.new(:name => my_object_time[2], :age => my_object_time[7], :time_in_ms => time_in_ms, :overall_rank => my_object_time[1], :city => city, :state => state, :country => country, :gender_rank => my_object_time[7], :my_object_id => my_object_id) </code></pre> <p>but unless both “state” and “country” are nil, I get the error</p> <pre><code>ActiveModel::MissingAttributeError can't write unknown attribute `my_object_time_id` </code></pre> <p>Everything will save fine if both these fields are nil. What’s going on and how can I fix it?</p> <p><b>Edit:</b> Here is the PostGres description of the table in question</p> <pre><code>davedb=> \d my_object_times; Table "public.my_object_times" Column | Type | Modifiers ----------------+-----------------------------+--------------------------------------------------------- id | integer | not null default nextval('my_object_times_id_seq'::regclass) my_object_id | integer | not null first_name | character varying | last_name | character varying | time_in_ms | bigint | created_at | timestamp without time zone | not null updated_at | timestamp without time zone | not null name | character varying | age | integer | city | character varying | state_id | integer | country_id | integer | overall_rank | integer | age_group_rank | integer | gender_rank | integer | Indexes: "my_object_times_pkey" PRIMARY KEY, btree (id) "index_my_object_times_on_country_id" btree (country_id) "index_my_object_times_on_my_object_id" btree (my_object_id) "index_my_object_times_on_state_id" btree (state_id) Foreign-key constraints: "fk_rails_0fe1d25967" FOREIGN KEY (country_id) REFERENCES countries(id) "fk_rails_a8771b3575" FOREIGN KEY (state_id) REFERENCES states(id) "fk_rails_ba656ceafa" FOREIGN KEY (my_object_id) REFERENCES my_bojects(id) ON DELETE CASCADE Referenced by: TABLE "user_my_object_time_matches" CONSTRAINT "fk_rails_2e7860946c" FOREIGN KEY (my_object_time_id) REFERENCES my_object_times(id) </code></pre> |
31,819,559 | 0 | <p><a href="https://github.com/sockjs/sockjs-client" rel="nofollow">SoketJS Github</a></p> |
16,825,149 | 1 | Can't get "retry" to work in Celery <p>Given a file <code>myapp.py</code></p> <pre><code>from celery import Celery celery = Celery("myapp") celery.config_from_object("celeryconfig") @celery.task(default_retry_delay=5 * 60, max_retries=12) def add(a, b): with open("try.txt", "a") as f: f.write("A trial = {}!\n".format(a + b)) raise add.retry([a, b]) </code></pre> <p>Configured with a <code>celeryconfig.py</code></p> <pre><code>CELERY_IMPORTS = ["myapp"] BROKER_URL = "amqp://" CELERY_RESULT_BACKEND = "amqp" </code></pre> <p>I call in the directory that have both files:</p> <pre><code>$ celeryd -E </code></pre> <p>And then</p> <pre><code>$ python -c "import myapp; myapp.add.delay(2, 5)" </code></pre> <p>or</p> <pre><code>$ celery call myapp.add --args="[2, 5]" </code></pre> <p>So the <code>try.txt</code> is created with</p> <pre><code>A trial = 7! </code></pre> <p>only once. That means, the retry was ignored.</p> <p>I tried many other things:</p> <ul> <li>Using MongoDB as broker and backend and inspecting the database (strangely enough, I can't see anything in my broker "messages" collection even in a "countdown"-scheduled job)</li> <li>The PING example in <a href="http://comments.gmane.org/gmane.comp.python.amqp.celery.user/3745" rel="nofollow">here</a>, both with RabbitMQ and MongoDB</li> <li>Printing on the screen with both <code>print</code> (like the PING example) and <code>logging</code></li> <li>Make the retry call in an except block after an enforced <code>Exception</code> is raised, raising or returning the retry(), changing the "throw" parameter to <code>True</code>/<code>False</code>/not specified.</li> <li>Seeing what's happening with <code>celery flower</code> (in which the "broker" link shows nothing)</li> </ul> <p>But none happened to work =/</p> <p>My <code>celery report</code> output:</p> <pre><code>software -> celery:3.0.19 (Chiastic Slide) kombu:2.5.10 py:2.7.3 billiard:2.7.3.28 py-amqp:N/A platform -> system:Linux arch:64bit, ELF imp:CPython loader -> celery.loaders.default.Loader settings -> transport:amqp results:amqp </code></pre> <p>Is there anything wrong above? What I need to do to make the retry() method work?</p> |
10,455,298 | 0 | Best practices using JPA to load object from query with a list member <p>I'm getting started with JPA and I want to know the best way to achieve something like this: I need to implement a service that returns a list of scripts, and each script has a list of parameters. I simplified the query, but it is something like this:</p> <pre><code>(SELECT p.DESC FROM INPUT_PARAMETERS p INNER JOIN SCRIPT_PARAMS sp ON p.PARAM_ID = sc.PARAM_I INNER JOIN SCRIPT s ON s.SCRIPT_ID = sc.SCRIPT_ID WHERE s.NAME = 'name') UNION (SELECT p.DESC FROM OUPUT_PARAMETERS p INNER JOIN SCRIPT_PARAMS sp ON p.PARAM_ID = sc.PARAM_I INNER JOIN SCRIPT s ON s.SCRIPT_ID = sc.SCRIPT_ID WHERE s.NAME = 'name') </code></pre> <p>And I want to return a list of POJO objects that are something like:</p> <pre><code>public class Script { private String name; private List<String> params; public Script(){} public String getName() { return name; } public void setName(String pName) { name = pName; } public List<String> getParams() { return params; } public void setParams(List<String> pParams) { params = pParams; } } </code></pre> <p>I want to know what is the best way to load the POJO object from a query. Is it best to build a JPQL query, or can I use a Native Named Query, and do I need to get a object[] and construct my POJOs manually, or can I use JPA to load the objects from the query?</p> |
1,552,189 | 0 | <p>The kiosk API is probably your best bet for this, though I haven't used it in years and don't know if it's even supported anymore. </p> <p><a href="http://developer.apple.com/mac/library/technotes/tn2002/tn2062.html" rel="nofollow noreferrer">http://developer.apple.com/mac/library/technotes/tn2002/tn2062.html</a></p> |
39,996,249 | 0 | <p>finally I made this code which is working for me </p> <pre><code> $(".wp-list-table input[name='users[]']:checked").each(function(){ row = $(this).closest("tr"); anchor = $(this).closest('tr').find("a:first"); }); alert($(anchor).text()); </code></pre> |
20,506,347 | 0 | <p>So it turned out, that there was something wrong with the connection. It was created with that code:</p> <pre><code>void PostgresqlDatabase::pgMDBconstruct(std::string host, std::string port, std::string user, std::string password, std::string dbname ) { std::string conn_info = "host=" + host + " port=" + port + " user=" + user + " password=" + password + " dbname=" + dbname; connection_= PQconnectdb(conn_info.c_str()); if (PQstatus(connection_)!=CONNECTION_OK) { ROS_ERROR("Database connection failed with error message: %s", PQerrorMessage(connection_)); } } </code></pre> <p>With <code>host=192.168.10.100, port=5432, user=turtlebot, password= , dbname=rosdb.</code><br> But an empty username doesn't satisfy the usage of PQconnectdb, which, for some parsing-reason, caused it to login to the database "turtlebot". That database unfortunately existed on my server. And there it - of course - didn't get any notifications sent out in the "rosdb"-database and had a good connection.</p> <p>What an, for me, awkward and unlucky behaviour.</p> |
21,010,639 | 0 | While loop with assignment operator <p>I can't seem to figure out how this loop works in PHP:</p> <pre><code>$people = array(); while($row = $result->fetch_assoc()) $people[] = $row; </code></pre> <p>It seems as though the loop would just keep going, infinitely. But, it doesn't How exactly does this work? Can someone explain it to me step-by-step? I'm guessing that the while loop could also be written like this:</p> <pre><code>while(($row = $result->fetch_assoc()) == true) </code></pre> |
15,829,271 | 0 | <p>You can easy add it as static param to url manager rules. I recommend using urls in form <code>/en/controller/action</code> etc, so first parameter is always language. I'm using this approach for long time and works like a charm.</p> <p>For details check this answer: <a href="http://stackoverflow.com/a/4625710/133408">http://stackoverflow.com/a/4625710/133408</a></p> |
720,154 | 0 | <p>You might want to try:</p> <pre><code>$(document).ready(function(){ $(".shareLink").hide(); $("a.trigger").click(function(e){ e.preventDefault(); $(this).next().toggle("400"); }); }); </code></pre> <p>The answer is it depends on the structure of your document. Here is a sample of something that will work with the above function.</p> <pre><code><a class="trigger">click here</a> <div class="shareLink"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </div> </code></pre> |
7,349,006 | 0 | <p>Maybe you should take a look at <a href="http://download.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/CompletionService.html" rel="nofollow">CompletionService</a></p> <p>It is designed to combine executor and a queue functionality in one. Tasks which completed execution will be available from the completions service via </p> <pre><code>completionServiceInstance.take() </code></pre> <p>You can then again use another executor for 3. i.e. fill DB with the results, which you will feed with the results taken from the completionServiceInstance.</p> |
21,226,407 | 0 | <p>SpawnUri automatically appends ".js" when compiled to JavaScript.</p> |
33,498,464 | 0 | <p>I dont know if this is a good method with parameters, but it works well The method receives a list of "ParamDbList"(Collection of ParamDB) and insert rows every 1000 registers or 1900 parameters(limit of 2000). Just adapt this for your drive</p> <pre><code> public bool InsertBatch(System.Collections.Generic.List<ParamDbLIST> dados, string tabela) { if (dados.Count == 0) return true; string campos = ""; dados[0].ForEach(delegate(ParamDB p) { campos += (campos == "" ? "" : ", ") + "@" + p.sNOME + "#N#"; }); bool resultado = true; //Insere de 999 a 999, que é o máximo q o sql server permite por vez //Maximo de 2000 parametros int k = 0; while (k < dados.Count) { this.sql = new StringBuilder(); List<String> vals = new List<string>(); ParamDbLIST parametros_insert = new ParamDbLIST(); int c_sqls = 0; int c_parametros = 0; while (k < dados.Count && c_sqls < 1000 && c_parametros < 1900) { c_sqls++; vals.Add("(" + campos.Replace("#N#", c_sqls.ToString()) + ")"); foreach (ParamDB p in dados[k]) { p.sNOME += c_sqls.ToString(); parametros_insert.Add(p); c_parametros++; } k++; } this.sql.Append("INSERT INTO " + tabela + "(" + campos.Replace("#N#", String.Empty).Replace("@", String.Empty) + ") VALUES " + String.Join(",", vals)); resultado = resultado && this.RunSQL(sql.ToString(), parametros_insert); } return resultado; } public class ParamDbLIST : System.Collections.ObjectModel.Collection<ParamDB> {/*I have other stuff here, but this will work*/} public class ParamDB { public string sNOME { get; set; } public Object sVALOR { get; set; }} </code></pre> <p>Remember the method INSERT INTO tbl_name (a,b,c) VALUES (1,2,3), (4,5,6), (7,8,9); has a limit of 1000 rows per command.</p> <p>I think a good thing to do here would be to use transaction(for secure)</p> <p>The method you should change is RunSQL</p> <p>If this method can be optimized, please let me know</p> |
16,642,547 | 0 | <p>I did it finally. for example i have a file in <code>localjost:8000/media/1.jpg</code> and i want to get ip of the user who enters this url to load the <code>1.jpg</code>.</p> <p>I added this line in my urls : <code>url(r'^media/(?P<path>.*)$', 'project.views.serve','document_root': settings.MEDIA_ROOT,}),</code> and i set the MEDIA_ROOT already. then in <code>project.views.serve</code> i called <code>django.views.static.serve</code> and i returned the result of that as a HttpResponse. i have a request argument in my <code>project.views.serve</code> and i did this to get the user's ip from that :</p> <pre><code>x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(',')[-1].strip() else: ip = request.META.get('REMOTE_ADDR') print ip </code></pre> |
20,176,691 | 0 | <p>Your problem is exacerbated by the datastructure you are using. Although it is suitable for printing, it is not especially good for performing the operation you want to perform.</p> <p>You need to use, or create a datastructure which supports row and column operations. You might like to use a <code>numpy</code> <code>array</code> to store this data, and then manipulate it with slicing operations.</p> |
3,472,462 | 0 | Git repository was suddenly broken <p>My git repository was suddenly broken. I had been working as usual, but when I typed in <code>git status</code> to see my changes, it said:</p> <pre><code>error: inflate: data stream error (incorrect data check) fatal: object 0dbfde4875a5f9c5fe25b4d1b9d34ab58986501e is corrupted </code></pre> <p>What can I do to recover my repository?</p> |
31,573,202 | 0 | <p><em>Premise</em>: I really think the ideal way to solve your problem is convert your stored datetimes to UTC, and then use that when you search.</p> <p>But you said you can't change those, so using <code>ConvertTime</code> to convert them at request time is probably your best second option.</p> <ul> <li><a href="https://msdn.microsoft.com/en-us/library/bb382770(v=vs.110).aspx" rel="nofollow">Here</a> you can find all the details you need.</li> <li>You might also want to give a look at <a href="http://nodatime.org/" rel="nofollow">Noda Time</a>, which is quite useful when dealing with TimeZones and DateTime.</li> </ul> |
17,297,696 | 0 | <p>"std::array wants to behave like a c-array" is not how the standard describes behavior. It's a user-defined type, and members of user-defined types are initialized by calling their constructor, i.e. <code>array<int,10>::array()</code></p> |
16,849,635 | 0 | <p>Please Reset Content and Settings of simulator from top menu and try in again. It will surely sign out from old account.</p> |
40,630,202 | 0 | AppDelegate in IOS fails when navigating to a page with SfDataGrid on it <p>i'm having problems with SfDataGrid on IOS that works fine on Android</p> <p>when i try to navigat to a page called "Hovedside" that has a SfDataGrid it gose into Main.cs in the IOS part and fails on UIApplication.Main(args, null, "AppDelegate");</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace PrismUnityApp2.iOS { public class Application { // This is the main entry point of the application. static void Main(string[] args) { try { UIApplication.Main(args, null, "AppDelegate"); } catch (Exception e) { throw; } } } } </code></pre> <p>with this output: System.NullReferenceException: Object reference not set to an instance of an object</p> <p>at Syncfusion.SfDataGrid.XForms.iOS.ExtendedScrollViewRenderer.WillMoveToWindow (UIKit.UIWindow window) [0x0000b] in :0 </p> <p>at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)</p> <p>at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/src/UIKit/UIApplication.cs:79 </p> <p>at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/3818/3983064a/source/xamarin-macios/src/UIKit/UIApplication.cs:63 </p> <p>at PrismUnityApp2.iOS.Application.Main (System.String[] args) [0x00002] in C:\Users\asr\Desktop\GBS APP bakups\PrismUnityApp2 b4 scanner\PrismUnityApp2\PrismUnityApp2.iOS\Main.cs:20 </p> <p>There is nothing in the error list</p> <p>if i remove the SfDataGrid then it navigates just fine to the page</p> <p>i have the Required assemblies that syncfusion shows on <a href="https://help.syncfusion.com/xamarin/sfdatagrid/getting-started" rel="nofollow noreferrer">https://help.syncfusion.com/xamarin/sfdatagrid/getting-started</a></p> <p>i feel like im missing something in AppDelegate but can't find out what it may be</p> <pre><code> using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; using Prism.Unity; using Microsoft.Practices.Unity; using Syncfusion.SfDataGrid.XForms.iOS; namespace PrismUnityApp2.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to // application events from iOS. [Register("AppDelegate")] public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate { // // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ZXing.Net.Mobile.Forms.iOS.Platform.Init(); global::Xamarin.Forms.Forms.Init(); SfDataGridRenderer.Init(); LoadApplication(new App(new iOSInitializer())); return base.FinishedLaunching(app, options); } } public class iOSInitializer : IPlatformInitializer { public void RegisterTypes(IUnityContainer container) { } } } </code></pre> <p><a href="https://github.com/ZarpGitHub/PrismUnityApp-gbs" rel="nofollow noreferrer">https://github.com/ZarpGitHub/PrismUnityApp-gbs</a></p> <p>im using visual studio 2015 community, xamarin, prism v6.2.0 Xam.Plugin.Geolocator v3.0.4 and Syncfusion 14.3451.0.49. mostly running it on a sony xperia z3 with Android version 6.0.1 and using API 23 i also use test it on a virtual iphone 6s plus IOS 10.0</p> <p>Any help is deeply appreciated</p> |
5,522,482 | 0 | <p>Before I started university they recommended: <a href="http://scratch.mit.edu/" rel="nofollow">Scratch</a> from MIT. I haven't used it heavily but it was fun and you get a feel for programming. How does that look?</p> |
37,810,727 | 0 | Popup value in Simulink Mask doesn't refresh <p>I am currently masking a block in simulink. The mask contains a popup list called dbclist with hardcoded type options (1, 2, 3, ..., 7). The callback function of said popup list looks like this:</p> <pre><code>msk = Simulink.Mask.get(gcb); dbcPopup = msk.getParameter('dbclist'); dbcPopup.Value </code></pre> <p>When changing the value of dbclist while using the mask the command window always responds with:</p> <pre><code>ans = 1 ans = 1 ans = 1 </code></pre> <p>How can I get the actual value of dbclist? I am using MATLAB 2014b on Mac OS X.</p> |
29,551,594 | 0 | <p>As stated in the <a href="https://developer.apple.com/library/ios/releasenotes/General/iOS83APIDiffs/modules/MapKit.html">iOS 8.3 API Diffs in the MapKit module</a>, the <code>setCoordinate</code> method was removed:</p> <blockquote> <p><em>Removed</em> MKAnnotation.setCoordinate(CLLocationCoordinate2D)</p> </blockquote> <p><br> Fortunately, you must now use the simpler assignment syntax (which was already available in previous versions of Swift and the same could be done in Objective-C):</p> <pre><code>annotation.coordinate = location </code></pre> |
4,269,785 | 0 | <p>You are in an infinite loop because you are setting the property (prop2) to itself.</p> |
40,669,353 | 0 | \s and whitespace in vim <pre><code>:%s/^\s\{4\}//g </code></pre> <p>It can replace four blank spaces at the beginning of a line with zero blank space. We draw the conclusion that <code>\s</code>=whitespace <code>\{4\}</code>=four times.</p> <pre><code>:%s/^\s\{4\}/ /g </code></pre> <p>It can replace four blank spaces at the beginning of a line with two blank spaces.<br> And it is obvious that <code>\s\{2\}</code>=two white spaces.</p> <pre><code>:%s/^\s\{4\}/\s\{2\}/g </code></pre> <p>Why the command can't replace four blank spaces at the beginning of a line with two blank spaces? Why the command means that to replace four blank spaces at the beginning of a line with s{2} ?</p> |
1,922,981 | 0 | <p>You will need to do the printing yourself, as everyone suggested here.</p> <p>It's worthy to note that some languages (e.g. Scala, Ruby, Groovy) have language features that enable you to write:</p> <pre><code>x should be(3) </code></pre> <p>And that will report:</p> <pre><code>0 should be 3 but is not. </code></pre> <p>In Groovy, with <a href="http://code.google.com/p/spock" rel="nofollow noreferrer">Spock testing framework</a>, you can write:</p> <pre><code>def "my test": when: x = 0 expect: x == 3 </code></pre> <p>And that would output:</p> <p>Condition not satisfied:</p> <pre><code>x == 3 | | | 0 | 3 false </code></pre> <p>I don't think this possibly cleanly in python though.</p> |
17,296,831 | 0 | What is Best practice in objective c for creating an object and setting its properties <p>Considering I have a <code>UIViewController</code> called <code>ErrorViewController</code> that I am instantiating using <code>initWithNibName</code>.</p> <p>There is a enum on this <code>ErrorViewController</code> describing its "type".</p> <p>This <code>ErrorViewController</code> has one delegate function that returns to its delegate which will respond according to the type set on the <code>ErrorViewController</code>.</p> <p>Is it better to pass all the parameters within a new <code>initWithNibName</code> function, and set private properties on the <code>ErrorViewController</code>. Like this:</p> <pre><code>ErrorViewController *errorVc = [[ErrorViewController alloc] initWithNibName:@"ErrorViewController" bundle:nil andErrorType:kErrorTypeA andDelegate:self]; - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil andErrorType:(ErrorType)errorType andDelegate:(id<ErrorDelegate>)delegate{ self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { self.delegate = delegate; self.errorType = errorType; } return self; } </code></pre> <p>Or is it better to instantiate the object and afterward set its public properties like this:</p> <pre><code>ErrorViewController *errorVc = [[ErrorViewController alloc] initWithNibName:@"ErrorViewController" bundle:nil]; errorVc.delegate = self; errorVc.type = kErrorTypeA. </code></pre> <p>And regarding the delegate method, is it best practice to check the type by passing a parameter, or by checking the property of the passed back Controller as follows:</p> <pre><code>- (void)ErrorPage:(ErrorViewController *)ErrorPage // check ErrorPage.errorType } </code></pre> <p>or this: ?</p> <pre><code>- (void)ErrorPage:(ErrorViewController *)ErrorPage andErrorType:(ErrorType)errorType // check errorType } </code></pre> |
27,918,323 | 0 | <p>You can do it like this. But i have cheked your code and it works as well. I dont know why you getting not enabled products...</p> <pre><code>var manufacturers = (from o in _context.Manufacturer where o.Enabled select new { manufacturers = o, products = o.Products.Where(c=>c.Enabled).ToList() }).ToList(); </code></pre> |
10,797,153 | 0 | <p>Maybe you can try it like this: </p> <pre><code>com1.CommandText = "TRB01.set_idoc('DOC','1','" + sender + "','" + reciver + "'," + "to_timestamp_tz('"+ cre_date + "','yyyy-mm-dd\"T\"hh24:mi:ss:TZH:TZM'),'" + bod_ID + "')"; com1.ExecuteNonQuery(); </code></pre> <p>Though a better solution should be by havaing a <code>DateTime</code> in c# code and adding it as an OracleParameter</p> |
966,691 | 0 | <p>You wouldn't retain ClassA in ClassB, because ClassA already owns ClassB and it's assumed that when ClassA is deallocated, it will take care of cleaning up any references in ClassB.</p> <p>If you followed the "normal" rules of ownership and retained ClassA when setting the delegate method in ClassB, you'd end up with a retain loop where neither objects would ever be deallocated. Instead, you should be using a weak reference exactly like you are.</p> |
20,395,887 | 0 | <p>you can do null check for <code>edittext.getText()</code> & try it to put somewhere in code where you have an input for editext</p> |
8,630,585 | 0 | <p>First, I don't think that setting <code>$MaxPrecision</code> and/or <code>$MachinePrecision</code> will have the effect that you desire. Here's an example.</p> <pre><code>$MaxPrecision = $MinPrecision = $MachinePrecision; result1 = Nest[4 # (1 - #) &, 0.123, 10^6]; // Timing result2 = Nest[4 # (1 - #) &, SetPrecision[0.123, $MinPrecision], 10^6]; // Timing </code></pre> <p>On my machine, the first computation takes 8 hundreths of a second, while the second computation takes nearly three seconds. The reality is that the first computation is done in machine arithmetic, while the second is done in software arithmetic, that happens to have the same numerical precision.</p> <p>I think that the easiest way to force machine arithmetic in Mathematica 8 is to use <code>Compile</code> with the <code>"CatchMachineOverflow"</code> and <code>"CatchMachineUnderflow"</code> set to <code>False</code>; or better yet just set <code>"RuntimeOptions"</code> to <code>"Speed"</code>.</p> <p>Also, I think the reason you are getting 0 for your <code>AbsoluteTiming</code> command is that you have set the precision too low to represent the result.</p> |
19,212,372 | 0 | CQRS where to put domain / business logic <p>I am developing framework for MVC application. As part of framework, I have created a dummy application. I am following Onion Architecture and SOLID principle with CQRS. This is my first project with MVC and CQRS. I am also following Chain of Responsibility in CQRS.</p> <p>At present I am not sure about the part where I should keep business logic.</p> <p>Example. I have Command of Debit Account from bank account. I have created command as DebitAccount and handler as IDebitAccountHandler. IDebitAccountHandler will be implemented in Infrastructure layer with required dependencies as DebitAccountHandler.</p> <p>Here I have core logic of checking balance before debiting account. I would want to implement this in Core as it does not change with Infrastructure.</p> <p>Now where should I implement this logic and also load required dependencies. My commands are interfaces without any method body, also they contain only on method of Handle/Execute. </p> <p>I feel this is newbie question and arising due to my limited understanding of patterns.</p> |
36,620,854 | 0 | <p><a href="https://msdn.microsoft.com/en-us/library/ms141821.aspx" rel="nofollow">I would use a lookup transformation</a> No need for staging - no need to write SQL code - it's the way SSIS was meant to be!</p> |
4,053,572 | 0 | Updating IValueConverter through code <p>I'm trying to figure out if its possible to update an IValueConverter through the code behind.</p> <p>My situation is that I've got two ComboBoxes. Once the first one is updated, I change the ItemsSource property of the second to be one of a variety of enums. I've grabbed an EnumToFriendlyNameConverter from CodeProject, but I'm not sure how to set it.</p> <p>If I set the converter in the ItemsSource (see below) then it gets ignored when I next set the items source.</p> <p><code>ItemsSource="{Binding Converter={StaticResource enumItemsConverter}}"</code></p> <p>I found that it is possible by using an ItemTemplate but then I have to manually place in a label, which then has a different style to my other combobox. Getting the styles right just seems like a lot of work...</p> |
2,227,628 | 0 | <p>You could check if pasting the text is faster:</p> <pre><code>textbox1.SelectionStart = textbox1.GetFirstCharIndexOfCurrentLine(); textbox1.SelectionLength = 0; textbox1.Paste(";"); </code></pre> <p>Edit:<br> As the textbox isn't a textbox after all, but a richtextbox, the Paste method works differently. You can put the text in the clipboard and paste it, or use the SelectedText property instead:</p> <pre><code>textbox1.SelectedText = ";"; </code></pre> |
29,403,375 | 0 | <p>I think you are misunderstanding how to look ahead in a game like this. Do not 'total' the values returned by <code>evaluateLine</code>.</p> <p>Here is pseudocode for the minimax score of a tic-tac-toe board (what <code>evaluateBoard</code> should return). Note that <code>evaluateBoard</code> will need to have a notion of <code>currentTurn</code>.</p> <pre><code>function evaluateBoard(board, currentTurn) // check if the game has already ended: if WhiteHasWon then return -10 if BlackHasWon then return +10 // WhiteHasWon returns true if there exists one or more winning 3-in-a-row line for white. // (You will have to scan for all 8 possible 3-in-a-row lines of white pieces) // BlackHasWon returns true if there exists one or more winning 3-in-a-row line for black if no legal moves, return 0 // draw // The game isn't over yet, so look ahead: bestMove = notset resultScore = notset for each legal move i for currentTurn, nextBoard = board Apply move i to nextBoard score = evaluateBoard(nextBoard, NOT currentTurn).score if score is <better for currentTurn> than resultScore, then resultScore = score bestMove = move i return (resultScore, bestMove) </code></pre> <p>One very key difference between this and your version and my version is that my version is <strong>recursive</strong>. Yours only goes one level deep. Mine calls <code>evaluateBoard</code> from inside <code>evaluateBoard</code>, which would be an infinite loop if we aren't careful (once the board fills up, it can't go any deeper, so it's not actually infinite)</p> <p>Another difference is that yours totals stuff when it shouldn't. The resulting score from tic-tac-toe is -10,0, or 10 only once you've looked to the end of the game. You should be picking the best possible move available to that player at that time, and ignoring all other possibilities completely because you only care about the "best" line of play. The game score is equal to the result of optimal play.</p> <p>Expanding <code><better for currentTurn></code> is messy in minimax, which is why negamax is cleaner. White prefers low scores and black prefers high scores, so you need some if statements to make it choose the appropriate preferred score. You have this part already (at the end of your best move code), but it needs to be evaluated inside the recursion instead of just at the end.</p> |
25,461,038 | 0 | Having the variable names in func_get_args() <p>As this function can take unknown numbers of parameters:</p> <pre><code>function BulkParam(){ return func_get_args(); } </code></pre> <p>A <code>print_r</code> will print only the values, but how i can retrieve the variable names as well as the array key? For example:</p> <pre><code>$d1 = "test data"; $d2 = "test data"; $d3 = "test data"; print_r(BulkParam($d1, $d2, $d3)); </code></pre> <p>It will print this:</p> <pre><code>Array ( [0] => test data [1] => test data [2] => test data ) </code></pre> <p>But i want to have the variables name as the index name or key name of all arrays. Then the array would look like this:</p> <pre><code>Array ( [d1] => test data [d2] => test data [d3] => test data ) </code></pre> |
23,134,193 | 0 | <p>The provider class changed from <code>org.hibernate.ejb.HibernatePersistence</code> to <code>org.hibernate.jpa.HibernatePersistenceProvider</code> in new version of Hibernate check if this is solving your problem.</p> |
27,215,109 | 0 | <p>You cannot use aggregate functions after <code>WHERE</code> clause because it makes no sense, whereas <code>DATEDIFF</code> is usable. It makes no sense because it would be like telling the computer:</p> <blockquote> <p>select all the rows for which the maximum of the id column is 34</p> </blockquote> <p>which may sound somewhat logical but is not really, and is in fact the same as <code>id < 35</code>. that second way is also way clearer. </p> <p>The real problem is in fact that counting the max of a column in a selection requires that a selection already be made. Hence <code>MAX</code> can't be used as a condition to actually select rows to be evaluated.</p> <p>as for <code>DATEDIFF</code>, it works because the resulting question, for the computer, is logical:</p> <blockquote> <p>select all the rows for which the difference between date1 and date2 is less then 10</p> </blockquote> |
17,878,513 | 0 | Character limit - Joomla (Article Content) <p>I am stuck working on a gallery, which uses 3 columns and 1 row multiplied alot of times to show a simple and clear gallery.</p> <p>The problem comes when after publishing, the max-length of articles cut the content, but I can't find the config where I can change it.</p> |
31,541,242 | 0 | <p>What it looks like is happening here is because you're altering the List's whilst iterating through them. Consider this for loop you have here </p> <pre><code> for(int i=0;i<ballList.size();i++){ Ball bb=ballList.get(i); bb.update(); bb.render(); bb.migrate(); text(bb.age,bb.pos.x,bb.pos.y); } </code></pre> <p>Say ballList has 2 balls in it both age 3, the first loops gets ball[0] and then removes it from the list, i will increment and the loop will immediately exit because ballList.size() is now 1. So it's not the ball which gets to age 4 that vanishes but the subsequent one. </p> |
4,233,671 | 0 | <p>Two problems here</p> <ol> <li><p>In your <code>__mul__</code> implementation of <code>MyFloatExt</code> you're never checking if <code>other</code> is an instance of <code>MyFloatExt</code></p></li> <li><p><code>isinstance(e, MyFloat)</code> will always be true, because <code>MyFloatExt</code> inherits from <code>MyFloat</code></p></li> </ol> <p>To fix it: </p> <pre><code>def __mul__(self, other): # check if we deal with a MyFloatExt instance if isinstance(other, MyFloatExt): return MyFloatExt(self.a * other.a) if type(other) == (int, long, float): return MyFloatExt(self.a * other) else: return MyFloat.__mul__(self, other) # do the correct check print isinstance(e, MyFloatExt) </code></pre> |
18,706,306 | 0 | <p>If you use the jquery ui datepicker, the compatibility issue should be taken care of for you. I'me using it with IE8 without issue. Then your code is just:</p> <pre><code>$(document).ready(function(){ $('.datepick').datepicker();}); </code></pre> |
28,505,021 | 0 | Nservicebus failing to start on localsystem <p>I recently upgraded to v4.6 of nservicebus and when I am trying to start locally using services.msc, it is throwing error "services on local system started and stopped". Can't make out what is missing. I can use command line to start the nservicebus using like this:</p> <pre><code>NServiceBus.Host.Exe NServiceBus.Master NService.Integration </code></pre> <p>Can someone please help?</p> |
4,443,321 | 0 | <p>I would check out the fantastic Rome library: <a href="http://wiki.java.net/bin/view/Javawsxml/Rome" rel="nofollow">http://wiki.java.net/bin/view/Javawsxml/Rome</a></p> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.