How to highlight an HTML table column without using loops?

Issue I have a table like this: <table> <thead> <tr> <th id=”col-1″><input type=”button” class=”some” value=”Company” /></th> <th>name</th> <th>Adress</th> <th>Zip</th> <th>Place</th> <th>Country</th> </tr> </thead> <tbody> <tr class=”even”> <td headers=”col-1″>Some ltd</td> <td>some name</td> <td>some street</td> <td>some zip</td> <td>some town</td> <td>some country</td> </tr>

Continue reading

How to get the first 6 texts

Issue for now I have an output with many ratings, and would want to only print out the first sixth in python. import re import requests data = requests.get(‘https://www.imdb.com/chart/’).text titles = re.findall(‘/title/\w*/(?=">)’, data) rating = re.findall(‘\d\.\d.*ratings’, data) rating output I

Continue reading

PHP while loop add by 2

Issue Currently I have a code that looks like: for ($i=0; $i<=($num_newlines – 1); $i++) { $tweetcpitems->post(‘statuses/update’, array(‘status’ => wordFilter(“The item $parts[$i] has been released on Club Penguin. View it here: http://clubpenguincheatsnow.com/tools/swfviewer/items.swf?id=$parts[$id]”))); sleep(90); } What I want to do make

Continue reading

change values while reading a file / shell scripting loops ,

Issue I have a log file that looks like this, <tr><td>AAA-application-01 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> <tr><td>AAA-application-02 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> <tr><td>BBB-application-03 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> <tr><td>BBB-application-04 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> <tr><td>CCC-application-01 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> <tr><td>CCC-application-02 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> <tr><td>CCC-application-03 <br> Qality_gate_failed_reason:xxxxxxx </td></tr> I am

Continue reading

PHP Uploads with loop array

Issue I’m uploading files into cloud files and, but they have a limit of 100 uploads/second per container, so what I’m trying to do is, if the upload fails, I tried again. while (!$object = $container->uploadObject($remoteFile, $handle));{ $container = $objectStoreService->getContainer($containerName);

Continue reading

Pass json string having dynamic data as a source to primeNG datatable

Issue I’ll be getting json dynamically from service as follows: {“items”:[[{“key”: “SerialID”,”value”: “P1.M1.T1”},{ “key”: “Description”, “value”: “Dummy Desc 1”},{ “key”: “Label”, “value”: “A123”}],[{“key”: “SerialID”,”value”: “P1.M1.T2”},{ “key”: “Description”, “value”: “Dummy Desc 2”},{ “key”: “Label”, “value”: “B123”}]]} Here, sample 2 rows in

Continue reading