Posts by hrmg • 313 points
7 posts
-
1
votes2
answers306
viewsQ: Go function with parameters
I came across the following function in a framework of Map Reduce, but I didn’t understand her syntax. func (fc *FlowContext) newNextDataset(shardSize int, dType reflect.Type) (ret *Dataset) { ret =…
-
0
votes1
answer421
viewsQ: Start application through windows service
It is possible to start an . exe application on Windows Service c#? Something like: protected override void OnStart(string[] args) { Process.Start(@"C:\service.exe"); } protected override void…
-
1
votes3
answers807
viewsQ: Remove row from an array
How do I remove the line without getting blank? N7 G90 N8 G26 RA 10.840 N9 G54 G92 X115.00 Y25.00 N11 C5 N12 D14 N13 G42 G01 X76.3276 Y-19.86 Having to stay that way: N7 G90 N8 G26 RA 10.840 N9 G54…
-
5
votes1
answer110
viewsQ: Allow new conditions to be added without modifying code
I am manipulating a .txt and I have to exchange values like M31 for T90 for example. My code is like this at the moment: //Change machine tools for Sodick if (_strLinesFinal.Contains("M50")) { _OS =…
-
3
votes2
answers116
viewsQ: Add number in each row in c#
How to remove the numbering of this line and then add again in another format? Input: N0006 G90 N0007 G90 N0008 G92 X21.7301 Y88.9657 N0009 S555 N0010 D14 N0011 G42 G01 X22.0659 Y89.3015 N0012…
-
10
votes2
answers6254
viewsQ: What is data persistence?
What would that term be? I always see around and can’t decipher!
-
0
votes1
answer340
viewsQ: How to create C# method to do 2 Query SQL Insert?
To create a c# method to insert data, this method does more than one INSERT behind the other? 'Cause I tried it here and it didn’t work out!