This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.cobi.wms.json; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.TypeAdapter; | |
import com.google.gson.TypeAdapterFactory; | |
import com.google.gson.internal.$Gson$Types; | |
import com.google.gson.internal.ConstructorConstructor; | |
import com.google.gson.internal.Excluder; | |
import com.google.gson.internal.ObjectConstructor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void hideKeyboard(Activity activity) { | |
InputMethodManager imm = getIMM(activity); | |
IBinder windowToken = activity.getWindow().getDecorView().getRootView().getWindowToken(); | |
imm.hideSoftInputFromWindow(windowToken, 0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<includeonly><!-- | |
-->{{#if: {{{last|}}} <!-- | |
If lastname given: | |
-->|{{{last}}}, {{{first| {{error|First name missing}} }}}{{#if: {{{date|}}} | ({{{date}}})}}. <!-- | |
Else if author given: | |
-->|{{#if: {{{author|}}} <!-- | |
-->|{{{author}}}{{#if: {{{date|}}} | ({{{date}}})}}. <!-- | |
-->}}<!-- | |
-->}}<!-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test.java: | |
class Test<LineT extends Line> { | |
private LineT line; | |
private void test() { | |
Serial serial = new Serial(); | |
line.serials.add(serial); // warning: unchceked call to add(E) ... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NestedScrollView nestedScrollView = new NestedScrollView(this){ | |
@Override | |
public void onStopNestedScroll(View target) { | |
super.onStopNestedScroll(target); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apr 05 17:00:01 raspberrypi CRON[3338]: pam_unix(cron:session): session opened for user root by (uid=0) | |
Apr 05 17:00:01 raspberrypi CRON[3342]: (root) CMD (shutdown -h now) | |
Apr 05 17:00:01 raspberrypi CRON[3338]: (CRON) info (No MTA installed, discarding output) | |
Apr 05 17:00:01 raspberrypi CRON[3338]: pam_unix(cron:session): session closed for user root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static AsyncHandle<List<Item>> getMTPNItems( | |
SQL.ResultHandler<List<Item>> resultHandler, | |
SQL.ExceptionHandler exceptionHandler | |
) { | |
return query( | |
"select * from cwms_mtpnItems", | |
null, | |
resultSet -> makeObjectList(resultSet, DB::makeItem), | |
resultHandler, | |
exceptionHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select r.DocEntry as rdrDocId, | |
r1.LineNum as rdrLineId | |
into #orderLines | |
from rdr1 r1 | |
join ordr r on r.DocEntry = r1.DocEntry | |
where r1.LineStatus = 'O' and r.DocStatus = 'O' | |
select U_KommNr as pklDocId, | |
max(cast(U_Space as int)) as maxPlace | |
into #picklistDetails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select r.DocEntry as rdrDocId, | |
r1.LineNum as rdrLineId | |
into #orderLines | |
from rdr1 r1 | |
join ordr r on r.DocEntry = r1.DocEntry | |
-- If I filter only by LineStatus or only by DocStatus here, query takes <1s | |
where r1.LineStatus = 'O' and r.DocStatus = 'O' | |
select U_KommNr as pklDocId, | |
max(cast(U_Space as int)) as maxPlace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- The query takes about 5s | |
-- In comments I explain a few changes that can bring it down to <1s | |
with | |
orderLines as ( | |
select r.DocEntry as rdrDocId, | |
r1.LineNum as rdrLineId | |
from rdr1 r1 | |
join ordr r on r.DocEntry = r1.DocEntry | |
-- If I filter only by LineStatus or only by DocStatus here, query takes <1s | |
where r1.LineStatus = 'O' and r.DocStatus = 'O' |