Categories
Development Linux

shuffle two parallel text files not giving same lines even if same random source

This is similar to Shuffle two parallel text files I have – two large csv files with parallel lines. (they represent ‘before’ and ‘after’ states for particular items). The fields are sometimes strings, sometimes numbers. – a sufficiently long random data file to use with shuf when I want to get a matching random sample […]

Categories
Development Linux

Failed to start Light Display Manager when i915.modeset=0

When I boot kali linux, I get a black screen, so what I do with that is set i915.modeset=0, and it works. Just a day after, it’s not working, it returns a lightdm failed to start error. I tried to remove i915.modeset=0 and it boots only that it’s leaving a black screen with a cursor.

Categories
CMS Development

HTTP 503 – Service Unavailable error

I’ve cloned a Craft 3 repo that was created by another developer and I’m trying to get it running on my local server but I get HTTP 503 – Service Unavailable – craft\web\ServiceUnavailableHttpException I’ve created a quick db test script to test my database connection… <?php $dbname = ‘local’; $dbuser = ‘root’; $dbpass = ‘root’; […]

Categories
Development

task.getResult() is throwing a ClassCastException

I am using this code in order to retrieve the Uri of an image stored in the firebase storage and retrive this image into user piture , this my code : final StorageReference fileReference = storageReference.child(System.currentTimeMillis() + “.” + getFileExtension(imgUri)); uploadTask = fileReference.putFile(imgUri); uploadTask.continueWith(new Continuation<UploadTask.TaskSnapshot,Task<Uri>>() { @Override public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception { […]

Categories
Development

how to not gone gone gone

count lines in a file for more information

Categories
Development

I’m trying to add components relating to bets to my game in Java, but the program stops working after it asks for a bet amount

So I’m trying to make this car racing game, modeled after horse races. I’ve tested the game without the betting component and it works the way I want it to, so thats no problem. But once I started to implement the betting, the program kinda gave up on me. After the user is prompted to […]

Categories
Development

The ) is missing Crystal Report

This is my code, but i keep getting ‘missing )’ error. Please Help! “If mid(FYM_01,3,4)=({@FY_as_Number}) then IF mid(FYM_01,1,2) = 01 Then FYM_Link_A = PurchQty_10_Jan;”

Categories
Development

How to properly append a list to a DataFrame in a for loop

I’m attempting to add every item in a list of strings (lines from a file) to my DataFrame. The line is filled with keys and values dumped into a list and converted to json. The issue is I cant get pandas to properly make a DataFrame from the list in the loop (code gets stuck […]

Categories
Development

TSQL: Merge two sets with grouping and concatenation on the values

I have two tables with 2+ million rows in each. I need to merge them and the performance is very important. The flags need to get concatenated after merge. Table 1 ip flags ———– 23.4.2.8 x 94.4.7.3 t 12.5.7.9 x 33.1.2.3 xc Table 2 ip flags ———– 23.4.2.8 y 94.4.7.3 t 99.6.7.9 t Table 3 […]

Categories
Development Linux Ubuntu

Foxconn H-I41-uATX MoBo , CPU upgrade

I’m trying to upgrade my very old MOBO and wonder if any of you could help me. My set up now is: HP p6710t Desktop, Samsung 500 GB SSD, E5800 CPU, A-Tech 2×2 GB RAM. Xubuntu 18.04 LTS, 64 Bit. Bios:6.05, 8-12-2010 Tried to install E6700 CPU but I get 1 short,1 long beep at […]