Posts

Way to Create Keyboard Shortcuts for Google Search Results? -

i wondering if knows way create keyboard shortcuts google search results. instance, i'm looking way open first google search result number 1, on keyboard, , each successive entry opened next number. i've searched high , low ways this, haven't gotten closer. ways/extensions/languages can use carry out feature? at least, wondering if can point me in direction of resources or ways program this. have tampermonkey extension downloaded chrome extension, haven't been able create or find appropriate js code want. example of i'm looking can found here: http://googlesystem.blogspot.com/2007/02/keyboard-shortcuts-for-google-search.html . unfortunately, scripts , links found there dead , incredibly old (from 2007). this idea got me interested, here's basic implementation tampermonkey works on google domains via special .tld domain available userscripts. // ==userscript== // @name google digits // @include https://www.google.tld/* // @run-at ...

scala - How to catch exceptions when using DataFrameWriter to write dataframe with JDBC -

i writing dataframe mysql database. database throwing java.sql.batchupdateexception: duplicate entry 'qwer1234' key 'transaction_id_unique' . the code using write database is txnsdf.write.mode("append").jdbc(connprop.getproperty("url"), query, connprop) now can't write try catch around because not on row level , looking @ org.apache.spark.sql.execution.datasources.jdbc.jdbcutils class inserts batches of 1000 transactions @ time. i remove constraint on database doesn't solve problem of handling exceptions coming class. my last option, partially rewrite savepartition method in jdbcutils handle exception , don't want that. suggestions?

eclipse - Out put in console -

package lesson1; public class starprogram { public static void main(string[] args) { // todo auto-generated method stub for(int i=1;i<=3;i++){ for(int j=1;j<=3;j++) { system.out.println("*"); }system.out.println(); } } } for program, getting out put * * * * * * * * * but should right?: * * * * * * * * * what problem in program? this may you. read difference between system.out.print , system.out.println change for(int j=1;j<=3;j++) { system.out.print("*"); }system.out.println(); instead of for(int j=1;j<=3;j++) { system.out.println("*"); }system.out.println();

c++ - Relationship between dwPageSize and dwAllocationGranularity -

i’m reading google’s tcmalloc source code (the windows porting). int getpagesize() { static int pagesize = 0; if (pagesize == 0) { system_info system_info; getsysteminfo(&system_info); pagesize = std::max(system_info.dwpagesize, system_info.dwallocationgranularity); } return pagesize; } as can se in code snippet above pagesize (that unit of allocation) calculated max between dwpagesize , dwallocationgranularity. mean know kind of relationship between these 2 values: necessary calculate value in way here upside explicated? , there situations in dwpagesize greater dwallocationgranularity? disclaimer: answer not based on documentation on interpretation of these constants. i assume page size correctly reported. assume allocation granularity refers granularity of os memory allocation interface. there these 2 cases consider: the allocation granularity greater page size. allocating memory block of size of page lead larger al...

asp.net - Regexing an email with national chars -

i trying build web site friend of mine. found nice article contact-form. in article usage of regex validation of emails explained (as anti-hacking tool). idea tried this: <asp:regularexpressionvalidator validationexpression="^([\w\-\.\+\~]+\@[\w\.\-\!]+)$" runat="server" controltovalidate="email" cssclass="text-danger" errormessage="invalid email." ></asp:regularexpressionvalidator> it works expected when gets usual emaile me@master.com . want allow national special chars ç or Ă© , email snÄ›hurka@trpaslĂ­ci.cz through. the reason behind fact in country (czech republic) (was?) motion allow characters punctuation in url addresses (see http://háčkyčárky.cz - czech web discussing this; idea named idn - internationalized domain names - google-magic). far know didn´t got through, knows future holds? so, please, know way how improve regex national characters in mind? (yeah, suppose not standard-compliant, not care it....

.net - Azure AD Graph API $filter not working with spaces -

Image
i want filter groups based on displayname . this works: https://graph.windows.net/x.onmicrosoft.com/groups?$filter=displayname%20eq%20'programmers'"&api-version=2013-11-08 this doesn't: https://graph.windows.net/x.onmicrosoft.com/groups?$filter=displayname%20eq%20'web%20developers'api-version=2013-11-08 note space in web%20developers . groups without space work, groups space not. what doing wrong? thanks! https://graph.windows.net/x.onmicrosoft.com/groups ?$filter=displayname%20eq%20'web%20developers'api-version=2013-11-08 please check request url carefully. think there wrong it. need add '&' in part 'web%20developers'api-version=2013-11-08 i have tested on local api-version 1.6. space in group name not affect our result. see more detailed information following screenshot:

java - JLabel#setIcon in javafx -

i have swing code base, using lot of new jlabel().seticon() snippets. i'm trying migrate app javafx, have no idea on how since there no such method using javafx label object. any ideas? use label setgraphic of node (like imageview ). @james_d commented. as jlabel can add "graphic" (image) constructor. what misleading different api terminology, , abstract node child of label .